/* ==========================================================================
   Oaken Notes — Landing Page Stylesheet
   Design System: DESIGN.md (forest green + warm amber, Instrument Serif/Sans)
   ========================================================================== */

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* Colors — Light Mode */
  --color-primary: #1B4332;
  --color-primary-light: #2D6A4F;
  --color-primary-bg: #D1FAE5;
  --color-accent: #D4A574;
  --color-accent-light: #E8C9A0;
  --color-accent-bg: #FEF3E2;
  --color-bg: #FAF8F5;
  --color-surface: #F0EDE8;
  --color-surface-elevated: #FFFFFF;
  --color-border: #E2DDD6;
  --color-text: #1A1A1A;
  --color-text-secondary: #5C5850;
  --color-text-muted: #8C8780;
  --color-success: #166534;
  --color-success-bg: #DCFCE7;

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Type Scale */
  --text-display: clamp(2.5rem, 5vw, 3.5rem);   /* 40–56px */
  --text-h1: clamp(2rem, 3.5vw, 2.5rem);          /* 32–40px */
  --text-h2: clamp(1.5rem, 2.5vw, 1.75rem);       /* 24–28px */
  --text-h3: 1.125rem;                              /* 18px */
  --text-body: 1rem;                                /* 16px */
  --text-small: 0.875rem;                           /* 14px */
  --text-label: 0.75rem;                            /* 12px */
  --text-hero-sub: clamp(1rem, 1.8vw, 1.25rem);   /* 16–20px */

  /* Spacing (8px base) */
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 26, 26, 0.06);
  --shadow-lg: 0 8px 32px rgba(26, 26, 26, 0.08);
  --shadow-xl: 0 16px 48px rgba(26, 26, 26, 0.1);
  --shadow-card-hover: 0 8px 24px rgba(26, 26, 26, 0.1);

  /* Transitions */
  --transition-micro: 100ms ease-out;
  --transition-short: 150ms ease-out;
  --transition-medium: 250ms ease-out;
  --transition-long: 400ms ease-out;

  /* Layout */
  --content-max: 1200px;
  --nav-height: 64px;
}

/* ---------- Dark Mode (class-based toggle + OS preference fallback) ---------- */
html[data-theme="dark"] {
  --color-primary: #4ADE80;
  --color-primary-light: #6EE7A0;
  --color-primary-bg: rgba(74, 222, 128, 0.1);
  --color-accent: #E8B87A;
  --color-accent-light: #F0CCA0;
  --color-accent-bg: rgba(232, 184, 122, 0.08);
  --color-bg: #141413;
  --color-surface: #1F1E1C;
  --color-surface-elevated: #28271F;
  --color-border: #3A3730;
  --color-text: #F5F2EE;
  --color-text-secondary: #A8A49C;
  --color-text-muted: #6E6A62;
  --color-success: #4ADE80;
  --color-success-bg: rgba(74, 222, 128, 0.1);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* OS preference fallback (only when user hasn't chosen via toggle) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --color-primary: #4ADE80;
    --color-primary-light: #6EE7A0;
    --color-primary-bg: rgba(74, 222, 128, 0.1);
    --color-accent: #E8B87A;
    --color-accent-light: #F0CCA0;
    --color-accent-bg: rgba(232, 184, 122, 0.08);
    --color-bg: #141413;
    --color-surface: #1F1E1C;
    --color-surface-elevated: #28271F;
    --color-border: #3A3730;
    --color-text: #F5F2EE;
    --color-text-secondary: #A8A49C;
    --color-text-muted: #6E6A62;
    --color-success: #4ADE80;
    --color-success-bg: rgba(74, 222, 128, 0.1);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light dark;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 200;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-small);
  border-radius: var(--radius-md);
  transition: top var(--transition-short);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* Focus-Visible — global ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Remove default outline for non-keyboard interactions */
:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- Scroll-Driven Reveal Animations ---------- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modern scroll-driven animation (Chrome 115+) */
@supports (animation-timeline: view()) {
  .reveal {
    animation: fadeSlideUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

/* Fallback: IntersectionObserver-driven (set via JS) */
@supports not (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .privacy-pulse__ring {
    animation: none !important;
    opacity: 0.3 !important;
  }
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-short),
              box-shadow var(--transition-short),
              transform var(--transition-micro);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-body);
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .btn--primary {
  color: #141413;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .btn--primary {
    color: #141413;
  }
}

.btn--primary:hover {
  background-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.btn--primary-lg {
  padding: 18px 40px;
  font-size: 1.0625rem;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-small);
  font-weight: 500;
}

.btn--ghost:hover {
  color: var(--color-primary);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary-lg svg {
  width: 20px;
  height: 20px;
}

/* App Store button variant */
.btn--appstore {
  background-color: var(--color-surface-elevated);
  color: var(--color-text);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-body);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn--appstore:hover {
  background-color: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.btn--appstore-lg {
  padding: 18px 40px;
  font-size: 1.0625rem;
}

.btn--appstore svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--appstore-lg svg {
  width: 20px;
  height: 20px;
}

/* ---------- Badge / Pill ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   1. NAVIGATION
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-medium),
              backdrop-filter var(--transition-medium),
              border-color var(--transition-medium);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background-color: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: var(--color-border);
}

html[data-theme="dark"] .nav.is-scrolled {
  background-color: rgba(20, 20, 19, 0.85);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .nav.is-scrolled {
    background-color: rgba(20, 20, 19, 0.85);
  }
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__logo img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
}

.nav__logo span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-short);
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__cta {
  margin-left: var(--space-md);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
  z-index: 110;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition-short), opacity var(--transition-short);
}

.nav__hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 105;
  background-color: var(--color-bg);
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.nav__mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav__mobile-menu .nav__link {
  font-size: 1.25rem;
}

.nav__mobile-menu .btn--primary {
  margin-top: var(--space-md);
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  transition: color var(--transition-short),
              background-color var(--transition-short);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--color-primary);
  background-color: var(--color-surface);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle__sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle__sun {
    display: block;
  }
  html:not([data-theme="light"]) .theme-toggle__moon {
    display: none;
  }
}

.theme-toggle--mobile {
  gap: var(--space-sm);
  width: auto;
  padding: var(--space-sm) var(--space-md);
}

.theme-toggle__label {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   2. HERO
   ========================================================================== */

.hero {
  padding-top: calc(var(--nav-height) + var(--space-4xl));
  padding-bottom: var(--space-4xl);
  text-align: center;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: 1.1;
  color: var(--color-text);
  max-width: 780px;
  margin-inline: auto;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__subheadline {
  font-size: var(--text-hero-sub);
  line-height: 1.55;
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: var(--space-lg) auto 0;
}

.hero__actions {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.hero__buttons {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.hero__meta {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* MacBook Frame */
.hero__frame {
  margin-top: var(--space-3xl);
  max-width: 920px;
  margin-inline: auto;
  perspective: 1200px;
}

.hero__macbook {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 10px 10px 0;
  box-shadow: var(--shadow-xl);
  transform: rotateX(2deg);
  transform-origin: bottom center;
  border: 1px solid var(--color-border);
}

.hero__macbook-notch {
  width: 64px;
  height: 8px;
  background: var(--color-border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin: 0 auto var(--space-sm);
}

.hero__screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg,
    var(--color-bg) 0%,
    var(--color-surface) 100%
  );
}

/* App UI silhouette inside the screen */
.hero__app-ui {
  position: absolute;
  inset: 0;
  display: flex;
}

.hero__app-sidebar {
  width: 22%;
  background: var(--color-surface-elevated);
  border-right: 1px solid var(--color-border);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hero__app-sidebar-item {
  height: 10px;
  border-radius: var(--radius-sm);
  background: var(--color-border);
  opacity: 0.6;
}

.hero__app-sidebar-item:first-child {
  width: 60%;
  background: var(--color-primary);
  opacity: 0.3;
}

.hero__app-sidebar-item:nth-child(2) { width: 80%; }
.hero__app-sidebar-item:nth-child(3) { width: 70%; }
.hero__app-sidebar-item:nth-child(4) { width: 90%; }
.hero__app-sidebar-item:nth-child(5) { width: 55%; }

.hero__app-content {
  flex: 1;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero__app-title {
  height: 16px;
  width: 45%;
  border-radius: var(--radius-sm);
  background: var(--color-text);
  opacity: 0.12;
}

.hero__app-line {
  height: 8px;
  border-radius: var(--radius-sm);
  background: var(--color-text);
  opacity: 0.06;
}

.hero__app-line:nth-child(2) { width: 90%; }
.hero__app-line:nth-child(3) { width: 95%; }
.hero__app-line:nth-child(4) { width: 80%; }
.hero__app-line:nth-child(5) { width: 88%; }
.hero__app-line:nth-child(6) { width: 70%; }
.hero__app-line:nth-child(7) { width: 85%; }
.hero__app-line:nth-child(8) { width: 60%; }

/* Accent dot for recording indicator in app */
.hero__app-indicator {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.6;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.hero__macbook-base {
  height: 14px;
  background: linear-gradient(to bottom, var(--color-border) 0%, var(--color-surface) 100%);
  margin: 0 -10px;
  border-radius: 0 0 2px 2px;
  position: relative;
}

.hero__macbook-base::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20%;
  height: 4px;
  background: var(--color-border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* ==========================================================================
   3. TRUST BAR
   ========================================================================== */

.trust {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

/* ==========================================================================
   4. PRIVACY SECTION
   ========================================================================== */

.privacy {
  padding: var(--space-5xl) 0;
  background-color: var(--color-surface);
}

.privacy__title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  text-align: center;
  color: var(--color-text);
  line-height: 1.2;
  text-wrap: balance;
}

/* Privacy Pulse — the signature element */
.privacy-pulse {
  margin: var(--space-3xl) auto;
  width: 200px;
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-pulse__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0.15;
}

.privacy-pulse__ring--1 {
  animation: pulseRing 2.4s ease-in-out infinite;
}

.privacy-pulse__ring--2 {
  inset: 16px;
  animation: pulseRing 2.4s ease-in-out infinite 0.4s;
}

.privacy-pulse__ring--3 {
  inset: 32px;
  animation: pulseRing 2.4s ease-in-out infinite 0.8s;
}

.privacy-pulse__core {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  opacity: 0.2;
  animation: pulseCore 2.4s ease-in-out infinite;
  position: absolute;
}

.privacy-pulse__label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes pulseRing {
  0%, 100% { opacity: 0.08; transform: scale(0.95); }
  50% { opacity: 0.35; transform: scale(1.02); }
}

@keyframes pulseCore {
  0%, 100% { opacity: 0.12; transform: scale(0.9); }
  50% { opacity: 0.3; transform: scale(1.1); }
}

/* Proof points */
.privacy__proofs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 960px;
  margin: 0 auto;
}

.proof {
  text-align: center;
}

.proof__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.proof__icon svg {
  width: 24px;
  height: 24px;
}

.proof__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.proof__desc {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 280px;
  margin-inline: auto;
}

/* ==========================================================================
   5. HOW IT WORKS
   ========================================================================== */

.how {
  padding: var(--space-5xl) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  text-align: center;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--space-3xl);
  text-wrap: balance;
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  position: relative;
  max-width: 960px;
  margin-inline: auto;
}

/* Connecting line between steps */
.how__steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.667% + 24px);
  right: calc(16.667% + 24px);
  height: 1px;
  border-top: 2px dashed var(--color-border);
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

html[data-theme="dark"] .step__number {
  color: var(--color-border);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .step__number {
    color: var(--color-border);
  }
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.step__desc {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 300px;
  margin-inline: auto;
}

/* ==========================================================================
   6. FEATURES GRID
   ========================================================================== */

.features {
  padding: var(--space-5xl) 0;
  background-color: var(--color-surface);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform var(--transition-short),
              box-shadow var(--transition-short);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-primary-bg);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.feature-card__desc {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   7. COMPARISON
   ========================================================================== */

.comparison {
  padding: var(--space-5xl) 0;
}

.comparison__table {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-elevated);
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison__header {
  background: var(--color-surface);
}

.comparison__header-cell {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: center;
}

.comparison__header-cell:first-child {
  text-align: left;
}

.comparison__header-cell--oaken {
  color: var(--color-primary);
}

.comparison__row {
  border-bottom: 1px solid var(--color-border);
}

.comparison__row:last-child {
  border-bottom: none;
}

.comparison__cell {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-small);
  text-align: center;
  vertical-align: middle;
}

.comparison__cell:first-child {
  color: var(--color-text);
  font-weight: 500;
  text-align: left;
}

.comparison__check {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.comparison__x {
  width: 22px;
  height: 22px;
  color: var(--color-text-muted);
  opacity: 0.5;
}

/* ==========================================================================
   8. FINAL CTA
   ========================================================================== */

.cta-final {
  padding: var(--space-5xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 80%,
    var(--color-accent-bg) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.cta-final__content {
  position: relative;
  z-index: 1;
}

.cta-final__headline {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}

.cta-final__sub {
  font-size: var(--text-hero-sub);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.cta-final__buttons {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-final__meta {
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer__brand-logo img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
}

.footer__brand-logo span {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--color-text);
}

.footer__brand-desc {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 260px;
}

.footer__col-title {
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  transition: color var(--transition-short);
}

.footer__link:hover {
  color: var(--color-primary);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-size: var(--text-label);
  color: var(--color-text-muted);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-md);
}

.footer__legal-links a {
  font-size: var(--text-label);
  color: var(--color-text-muted);
  transition: color var(--transition-short);
}

.footer__legal-links a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   10. LEGAL PAGES (Privacy Policy, Terms of Service)
   ========================================================================== */

.legal {
  padding-top: calc(var(--nav-height) + var(--space-4xl));
  padding-bottom: var(--space-4xl);
}

.legal__container {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.legal__header {
  margin-bottom: var(--space-3xl);
}

.legal__title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.legal__meta {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.legal__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.legal__section h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

.legal__section h3 {
  font-family: var(--font-body);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal__section p {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.legal__section p:last-child {
  margin-bottom: 0;
}

.legal__section ul {
  list-style: disc;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.legal__section li {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.legal__section li::marker {
  color: var(--color-primary);
}

.legal__section a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color var(--transition-short);
}

.legal__section a:hover {
  color: var(--color-primary-light);
}

.legal__section strong {
  color: var(--color-text);
  font-weight: 600;
}

.legal__section em {
  font-style: italic;
}

/* ==========================================================================
   RESPONSIVE — TABLET (< 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how__steps::before {
    display: none;
  }

  .comparison__header-cell,
  .comparison__cell {
    padding: var(--space-sm) var(--space-md);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   RESPONSIVE — MOBILE (< 768px)
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  .container {
    padding-inline: var(--space-md);
  }

  /* Nav — hamburger mode */
  .nav__links {
    display: none;
  }

  .nav__cta-desktop {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__mobile-menu {
    display: flex;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--nav-height) + var(--space-3xl));
    padding-bottom: var(--space-3xl);
  }

  .hero__subheadline {
    font-size: var(--text-body);
  }

  .hero__frame {
    margin-top: var(--space-2xl);
  }

  .hero__macbook {
    transform: none;
    border-radius: var(--radius-md);
    padding: 6px 6px 0;
  }

  .hero__macbook-notch {
    width: 40px;
    height: 5px;
  }

  .hero__macbook-base {
    height: 10px;
    margin: 0 -6px;
  }

  /* Trust */
  .trust__inner {
    gap: var(--space-sm);
  }

  .badge {
    font-size: var(--text-label);
    padding: 6px var(--space-sm);
  }

  .badge svg {
    width: 14px;
    height: 14px;
  }

  /* Privacy */
  .privacy {
    padding: var(--space-4xl) 0;
  }

  .privacy__proofs {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .proof__desc {
    max-width: 360px;
  }

  /* How it works */
  .how {
    padding: var(--space-4xl) 0;
  }

  .how__steps {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .how__steps::before {
    display: none;
  }

  .step__number {
    font-size: 3rem;
  }

  /* Features */
  .features {
    padding: var(--space-4xl) 0;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Comparison */
  .comparison {
    padding: var(--space-4xl) 0;
  }

  .comparison__cell {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-label);
  }

  .comparison__header-cell {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-label);
  }

  /* CTA Final */
  .cta-final {
    padding: var(--space-4xl) 0;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ==========================================================================
   RESPONSIVE — SMALL MOBILE (< 420px)
   ========================================================================== */

@media (max-width: 420px) {
  .btn--primary-lg {
    padding: 14px 28px;
    font-size: var(--text-body);
  }

  .btn--appstore-lg {
    padding: 14px 28px;
    font-size: var(--text-body);
  }

  .hero__buttons,
  .cta-final__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero__buttons .btn,
  .cta-final__buttons .btn {
    width: 100%;
    justify-content: center;
  }
}
