/* ==========================================================================
   STUDYTIMER — Main Stylesheet v5.0.0
   Stack: Plus Jakarta Sans + JetBrains Mono · Light-first · CSS custom props
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS — Light (default)
   ========================================================================== */

:root {
  /* Colors — Light (default) */
  --bg:            #f9f9f7;
  --bg-elevated:   #f3f3f1;
  --bg-card:       #ffffff;
  --bg-card-hover: #f8f8f6;
  --border:        #e8e8e5;
  --border-hover:  #d1d1cd;
  --text-primary:  #0a0a0a;
  --text-secondary:#4b5563;
  --text-muted:    #6b7280;
  --accent:        #10b981;
  --accent-hover:  #0ea472;
  --accent-muted:  rgba(16, 185, 129, 0.10);
  --accent-glow:   transparent;
  --danger:        #ef4444;
  --danger-muted:  rgba(239, 68, 68, 0.07);
  --warning:       #f59e0b;

  /* Button colors */
  --btn-primary-bg:    #0a0a0a;
  --btn-primary-text:  #ffffff;
  --btn-primary-hover: #1f1f1f;
  --btn-ghost-bg:      #ffffff;
  --btn-ghost-border:  #0a0a0a;
  --btn-ghost-text:    #0a0a0a;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.09), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.11), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-glow:none;

  /* Phone frame */
  --phone-frame: #1a1a1a;
  --phone-border: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-sans:  'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Courier New', monospace;

  /* Spacing & Shape */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-pill: 9999px;

  /* Nav */
  --nav-h: 68px;

  /* Subpage / Legal shared tokens */
  --header-bg:             rgba(249, 249, 247, 0.88);
  --border-subtle:         var(--border);
  --border-focus:          #10b981;
  --transition-fast:       0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth:     0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max:         1200px;
  --font-heading:          var(--font-sans);
  --accent-emerald:        var(--accent);
  --accent-emerald-subtle: var(--accent-muted);
  --mobile-drawer-bg:      var(--bg-card);
  --card-shadow:           var(--shadow-md);
  --card-shadow-hover:     var(--shadow-lg);
  --input-bg:              var(--bg-card);
  --bg-subtle:             var(--bg-elevated);
  --bg-canvas-darker:      #f3f3f0;
  --text-sm:               14px;
  --badge-bg:              rgba(0, 0, 0, 0.05);
  --btn-secondary-bg:      #ffffff;
  --btn-secondary-text:    #0a0a0a;
  --btn-secondary-border:  var(--border);
  --btn-secondary-hover-bg:var(--bg-elevated);
}

/* Dark mode overrides */
[data-theme="dark"] {
  --bg:            #09090b;
  --bg-elevated:   #111113;
  --bg-card:       #18181b;
  --bg-card-hover: #1e1e22;
  --border:        rgba(255, 255, 255, 0.07);
  --border-hover:  rgba(255, 255, 255, 0.14);
  --text-primary:  #fafafa;
  --text-secondary:#a1a1aa;
  --text-muted:    #71717a;
  --accent:        #10b981;
  --accent-hover:  #0ea472;
  --accent-muted:  rgba(16, 185, 129, 0.12);
  --accent-glow:   transparent;
  --danger-muted:  rgba(239, 68, 68, 0.12);

  --btn-primary-bg:    #ffffff;
  --btn-primary-text:  #09090b;
  --btn-primary-hover: #f4f4f5;
  --btn-ghost-bg:      rgba(255,255,255,0.06);
  --btn-ghost-border:  rgba(255,255,255,0.12);
  --btn-ghost-text:    #fafafa;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6);
  --shadow-glow:none;

  --phone-frame: #0a0a0c;
  --phone-border: rgba(255, 255, 255, 0.12);

  --header-bg:             rgba(9, 9, 11, 0.88);
  --border-subtle:         var(--border);
  --border-focus:          #10b981;
  --accent-emerald:        var(--accent);
  --accent-emerald-subtle: var(--accent-muted);
  --mobile-drawer-bg:      var(--bg-card);
  --card-shadow:           var(--shadow-md);
  --card-shadow-hover:     var(--shadow-lg);
  --input-bg:              var(--bg-card);
  --bg-subtle:             var(--bg-elevated);
  --bg-canvas-darker:      #111114;
  --badge-bg:              rgba(255, 255, 255, 0.08);
  --btn-secondary-bg:      rgba(255, 255, 255, 0.06);
  --btn-secondary-text:    #fafafa;
  --btn-secondary-border:  rgba(255, 255, 255, 0.12);
  --btn-secondary-hover-bg:rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "tnum" 1;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
}

ul { list-style: none; }

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px)  { .container { padding: 0 32px; } }
@media (min-width: 1200px) { .container { padding: 0 48px; } }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: var(--btn-ghost-bg);
  color: var(--btn-ghost-text);
  border: 1.5px solid var(--btn-ghost-border);
}

.btn-sm  { padding: 8px 18px;  font-size: 0.85rem; }
.btn-lg  { padding: 14px 28px; font-size: 1rem; }
.btn-xl  { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* Touch & pointer foundations */
button, a, .calc-chip, [role="button"], .theme-toggle-btn, .hamburger-btn {
  touch-action: manipulation;
}

button, .btn, .calc-chip, .theme-toggle-btn, .hamburger-btn {
  user-select: none;
  -webkit-user-select: none;
}

.btn:active,
.calc-chip:active,
.theme-toggle-btn:active,
.hamburger-btn:active,
.drawer-link:active,
.footer-social a:active {
  transform: scale(0.97) !important;
  transition: transform 80ms ease-out !important;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .btn-ghost:hover {
    background: var(--bg-elevated);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
}

/* ==========================================================================
   5. SECTION SHARED STYLES
   ========================================================================== */

section {
  padding: 80px 0;
}

@media (min-width: 768px) {
  section { padding: 112px 0; }
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   6. SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal-item {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-item {
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal-delay-1.revealed { transition-delay: 0.08s; }
  .reveal-delay-2.revealed { transition-delay: 0.16s; }
  .reveal-delay-3.revealed { transition-delay: 0.24s; }
  .reveal-delay-4.revealed { transition-delay: 0.32s; }
  .reveal-delay-5.revealed { transition-delay: 0.40s; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   7. NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg, rgba(249, 249, 247, 0.88));
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .site-header {
  background: var(--header-bg, rgba(9, 9, 11, 0.88));
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-hover);
}

.nav-island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1160px;
  height: 62px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .nav-island {
    padding: 0 16px;
    height: 58px;
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 820px) { .nav-links { display: flex; } }

.nav-link {
  padding: 7px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 440px) {
  .nav-actions .btn-sm {
    display: none;
  }
}

.nav-try-link {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}

.nav-try-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

@media (min-width: 820px) { .nav-try-link { display: block; } }

/* Theme toggle */
/* Theme toggle button — standardized across all pages */
.theme-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: var(--radius-pill) !important;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0 !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.theme-toggle-btn svg,
.theme-toggle-btn .icon-sun,
.theme-toggle-btn .icon-moon {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block;
}

/* Show sun in dark mode (switch to light), moon in light mode (switch to dark) */
[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Hamburger */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 820px) { .hamburger-btn { display: none; } }

/* ==========================================================================
   8. MOBILE BOTTOM-SHEET DRAWER
   ========================================================================== */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: all;
}


@media (min-width: 820px) {
  .mobile-drawer,
  .drawer-backdrop {
    display: none !important;
  }
}

.mobile-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 12px 24px max(32px, calc(16px + env(safe-area-inset-bottom)));
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
}

.mobile-drawer.active { transform: translateY(0); }

.drawer-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-pill);
  margin: 0 auto 24px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}

.drawer-link {
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: background 0.2s, color 0.2s;
}

.drawer-link:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.drawer-cta {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   9. HERO SECTION
   ========================================================================== */

.hero-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

/* Hero text */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 24px;
  background: var(--accent-muted);
}

.hero-headline {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.headline-line { display: block; }

.headline-accent { color: var(--accent); }

.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

/* Trust strip */
.trust-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-highlight {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.trust-version-pill {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--accent);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.trust-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.trust-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-divider {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.trust-unit {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Phone mockup */
.hero-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-phone-wrap {
    animation: phoneEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
  }

  @keyframes phoneEntrance {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* Authentic Modern Android Phone Mockup (Exact 1080x2401 native aspect-ratio) */
.phone-mockup {
  position: relative;
  width: 255px;
  aspect-ratio: 1080 / 2401;
  height: auto;
  background: #0d111d;
  border-radius: 36px;
  border: 4px solid #282f42;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    var(--shadow-lg),
    0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.phone-mockup:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    var(--shadow-lg),
    0 32px 70px rgba(0, 0, 0, 0.45);
}

@media (min-width: 480px) {
  .phone-mockup {
    width: 285px;
    border-radius: 40px;
    border-width: 4.5px;
  }
}

@media (min-width: 1024px) {
  .phone-mockup {
    width: 310px;
    border-radius: 42px;
    border-width: 5px;
  }
}

/* Minimalist Android Centered Punch-Hole Camera */
.android-camera-dot {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #000000;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.9);
  z-index: 10;
  pointer-events: none;
}

.phone-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  display: flex;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

/* ==========================================================================
   10. HOW IT WORKS (Option 2: 3D Depth Tactile Elevation & Physical Press)
   ========================================================================== */

.how-section {
  background: var(--bg-elevated);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
  }
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  box-shadow:
    0 2px 0 var(--border),
    0 8px 20px -4px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.85);
  transition:
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease;
  cursor: pointer;
}

[data-theme="dark"] .step-card {
  border-bottom: 3px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.8),
    0 10px 24px -4px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

@media (hover: hover) and (pointer: fine) {
  .step-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow:
      0 6px 0 var(--border-hover),
      0 20px 36px -6px rgba(0, 0, 0, 0.14),
      inset 0 1px 1px rgba(255, 255, 255, 0.95);
  }

  [data-theme="dark"] .step-card:hover {
    box-shadow:
      0 6px 0 rgba(255, 255, 255, 0.2),
      0 24px 44px -6px rgba(0, 0, 0, 0.65),
      inset 0 1px 1px rgba(255, 255, 255, 0.18);
  }
}

.step-card:active {
  transform: translateY(1px) scale(0.992);
  box-shadow:
    0 1px 0 var(--border-hover),
    0 4px 10px -2px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition-duration: 0.08s;
}

.step-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: inline-block;
}

.step-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover .step-icon-wrap {
  border-color: var(--border-hover);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector { display: none; }

@media (min-width: 768px) {
  .step-connector {
    display: block;
    width: 48px;
    height: 1px;
    background: var(--border);
    flex-shrink: 0;
  }
}

/* ==========================================================================
   11. FEATURES — BENTO GRID (Option 2: 3D Depth Tactile Elevation & Press)
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 860px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card-fullwidth {
    grid-column: 1 / -1;
  }
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow:
    0 2px 0 var(--border),
    0 8px 20px -4px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition:
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease;
  cursor: pointer;
}

[data-theme="dark"] .bento-card {
  border-bottom: 3px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.8),
    0 10px 24px -4px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

@media (min-width: 540px) {
  .bento-card {
    flex-direction: row;
    align-items: center;
  }
}

@media (hover: hover) and (pointer: fine) {
  .bento-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow:
      0 6px 0 var(--border-hover),
      0 20px 36px -6px rgba(0, 0, 0, 0.14),
      inset 0 1px 1px rgba(255, 255, 255, 0.95);
  }

  [data-theme="dark"] .bento-card:hover {
    box-shadow:
      0 6px 0 rgba(255, 255, 255, 0.2),
      0 24px 44px -6px rgba(0, 0, 0, 0.65),
      inset 0 1px 1px rgba(255, 255, 255, 0.18);
  }
}

.bento-card:active {
  transform: translateY(1px) scale(0.992);
  box-shadow:
    0 1px 0 var(--border-hover),
    0 4px 10px -2px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition-duration: 0.08s;
}

.bento-content {
  flex: 1;
  min-width: 0;
}

.bento-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  margin-bottom: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover .bento-icon-wrap {
  border-color: var(--border-hover);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.bento-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.bento-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.bento-screenshot {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

/* Mini Android mobile mockups (exact 1080x2401 native ratio, zero cropping) */
.mini-phone-frame {
  width: 104px;
  aspect-ratio: 1080 / 2401;
  height: auto;
  background: #0d111d;
  border-radius: 18px;
  border: 2px solid #282f42;
  overflow: hidden;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.16),
    0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: zoom-in;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
}

.mini-phone-frame:hover {
  transform: scale(1.03);
  border-color: var(--border-hover);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.14);
}

.mini-phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.mini-phone-frame .android-camera-dot {
  top: 5px;
  width: 6px;
  height: 6px;
  border-width: 1px;
}

/* Mini Android landscape mockup (exact 1080x486 native ratio, zero cropping) */
.mini-phone-frame.mini-phone-frame-landscape {
  width: 176px;
  aspect-ratio: 1080 / 486;
  height: auto;
  border-radius: 14px;
}

.mini-phone-frame.mini-phone-frame-landscape img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.mini-phone-frame.mini-phone-frame-landscape .android-camera-dot {
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
}

/* Screenshot Zoom Hint */
.screenshot-zoom-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  z-index: 5;
}

.phone-mockup:hover .screenshot-zoom-hint,
.mini-phone-frame:hover .screenshot-zoom-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* Offline & Ad-Free Badge Visual */
.offline-pill-visual {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.offline-tag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-bottom: 2px solid var(--border-hover);
  color: var(--accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover .offline-tag-badge {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   13. TACTILE DEPTH ENGINE
   ========================================================================== */

.tilt-card-3d {
  position: relative;
}

.tilt-card-glare {
  display: none; /* In Option 2 Tactile Depth, glare is hidden in favor of crisp elevation */
}

/* ==========================================================================
   14. FAQ ACCORDION (Pure Question-Only Default, Zero Closed Text Leakage)
   ========================================================================== */

.faq-section { background: var(--bg); }

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item.active {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-sans);
  font-size: 1.025rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.faq-question-btn:hover {
  color: var(--text-primary);
}

.faq-icon-toggle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease;
}

.faq-question-btn:hover .faq-icon-toggle {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.faq-item.active .faq-icon-toggle {
  transform: rotate(180deg);
  background: var(--text-primary);
  color: var(--bg);
  border-color: transparent;
}

/* Bulletproof FAQ Answer Display: Hidden by default, questions-only */
.faq-answer,
.faq-answer[hidden],
.faq-item:not(.active) .faq-answer {
  display: none !important;
}

.faq-item.active .faq-answer {
  display: block !important;
  animation: faqReveal 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes faqReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-answer-inner {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 0 0 20px 0;
}

/* ==========================================================================
   17. FINAL CTA
   ========================================================================== */

.final-cta-section { overflow: hidden; }

.final-cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 72px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.final-cta-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  position: relative;
}

.final-cta-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  position: relative;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
}

.final-cta-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
}

/* ==========================================================================
   18. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1fr 2fr; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
}

.footer-logo img { border-radius: 8px; }

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-social { display: flex; gap: 12px; }

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.footer-social a:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 480px) {
  .footer-links-grid { grid-template-columns: 1fr 1fr; }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-link:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-copyright { font-size: 0.8rem; color: var(--text-muted); }

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links .footer-link { font-size: 0.8rem; }

/* ==========================================================================
   19. SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ==========================================================================
   20. FOCUS & SELECTION
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent-muted);
  color: var(--text-primary);
}

/* ==========================================================================
   21. SCREENSHOT LIGHTBOX MODAL (Click to Enlarge App Screenshots)
   ========================================================================== */

.screenshot-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.screenshot-modal[hidden] {
  display: none !important;
}

.screenshot-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.screenshot-modal.is-open .screenshot-modal-backdrop {
  opacity: 1;
}

.screenshot-modal-dialog {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 95vw;
  max-height: 96vh;
  max-height: 96dvh;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.screenshot-modal.is-open .screenshot-modal-dialog {
  transform: scale(1);
  opacity: 1;
}

.screenshot-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  z-index: 20;
}

.screenshot-modal-close:hover {
  transform: scale(1.08);
  background: var(--text-primary);
  color: var(--bg-card);
}

/* Authentic Modern Android Mockup in Lightbox (Zero Cropping) */
.screenshot-modal-phone {
  position: relative;
  height: min(84vh, 84dvh);
  aspect-ratio: 1080 / 2401;
  width: auto;
  max-width: calc(92vw - 32px);
  background: #0a0d16;
  border-radius: 36px;
  border: 4px solid #282f42;
  box-shadow:
    0 30px 80px -10px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: aspect-ratio 0.25s ease, width 0.25s ease, height 0.25s ease;
}

.screenshot-modal-phone .android-camera-dot {
  top: 9px;
  width: 11px;
  height: 11px;
  border-width: 1.5px;
}

@media (max-width: 480px) {
  .screenshot-modal-phone {
    height: min(78vh, 78dvh);
    border-radius: 28px;
    border-width: 3.5px;
  }
}

/* Adaptive Landscape Mode in Lightbox */
.screenshot-modal-dialog.is-landscape .screenshot-modal-phone {
  aspect-ratio: 1080 / 486;
  width: min(90vw, 880px);
  height: auto;
  max-height: min(80vh, 80dvh);
  border-radius: 24px;
}

.screenshot-modal-dialog.is-landscape .android-camera-dot {
  display: none !important;
}

.screenshot-modal-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.screenshot-modal-caption {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  text-align: center;
  max-width: 440px;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}


/* ==========================================================================
   22. SUBPAGES & LEGAL SHARED STYLES (Privacy, Terms, Contact, Deletion, About)
   ========================================================================== */

.bg-ambient-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.header-nav, .site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  touch-action: manipulation;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.logo, .brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
  touch-action: manipulation;
}

.nav-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (min-width: 820px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
  }
}

.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
  text-decoration: none;
  touch-action: manipulation;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions .subpage-studio-link {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.nav-actions .subpage-studio-link:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent-emerald);
  transform: translateY(-1px);
}

.btn-secondary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-smooth);
}

.btn-secondary-pill:hover {
  background-color: var(--btn-secondary-hover-bg);
  border-color: var(--border-focus);
  opacity: 1;
}

.home-text-short {
  display: none;
}

.home-text-full {
  display: inline;
}

@media (max-width: 640px) {
  .home-text-full {
    display: none;
  }
  .home-text-short {
    display: inline;
  }
  .nav-actions .subpage-studio-link {
    display: none;
  }
  .nav-container {
    padding: 0 16px;
    height: 64px;
  }
}

.badge-pill, .eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--badge-bg);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all var(--transition-smooth);
}

.btn-secondary:hover {
  background-color: var(--btn-secondary-hover-bg);
  border-color: var(--border-focus);
  transform: translateY(-2px);
  opacity: 1;
}

.btn-block {
  width: 100%;
}

.text-center {
  text-align: center;
}

.container-narrow {
  max-width: 820px;
}

.nav-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  touch-action: manipulation;
}

.nav-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-breadcrumbs a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.legal-document-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.legal-document-card h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-date-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-document-card h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-document-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-document-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-document-card ul, .legal-document-card ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.legal-document-card li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.legal-document-card ol li {
  padding-left: 6px;
}

.study-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.study-form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.study-form-input, .study-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.study-form-input:focus, .study-form-textarea:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px var(--accent-emerald-subtle);
}

.study-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-bg);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.study-form-submit:hover {
  background-color: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 1;
}

.info-box-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  margin-bottom: 28px;
}

.site-footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas-darker);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.6;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: auto;
}

.footer-nav-col h4,
.footer-nav-col h3,
.footer-heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.footer-nav-col a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav-col a:hover {
  color: var(--text-primary);
  opacity: 1;
}

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .legal-document-card {
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}


/* Top bar scroll-reveal download button */
.nav-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-bg);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.nav-download-btn.is-visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.nav-download-btn:hover {
  background: var(--btn-primary-hover);
  color: var(--btn-primary-text);
}

@media (max-width: 600px) {
  .nav-download-btn {
    padding: 6px 12px;
    font-size: 0.775rem;
  }
}

@media (max-width: 380px) {
  .nav-download-btn {
    padding: 5px 10px;
    font-size: 0.725rem;
  }
}


/* Contact form & Subpage form styling */
.study-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.study-form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.study-form-input, .study-form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--input-bg, var(--bg-card));
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.study-form-input:focus, .study-form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.study-form-textarea {
  resize: vertical;
  min-height: 130px;
}

.study-form-submit,
#contactForm .btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px !important;
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-bg);
  cursor: pointer;
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              box-shadow 0.2s ease;
}

.study-form-submit:hover,
#contactForm .btn-primary:hover {
  background-color: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
