/* ============================================================
   Design tokens — Tostato (light, default)
   ============================================================ */
:root {
  --accent: #C19C60;
  --accent-hover: #B08A4E;
  --accent-soft: rgba(193, 156, 96, 0.12);
  --accent-gradient: linear-gradient(135deg, #D4B274, #B08A4E);

  --bg: #F8F2E8;
  --bg-elevated: #FDF8EF;
  --surface-glass: rgba(255, 255, 255, 0.55);
  --surface-glass-border: rgba(255, 255, 255, 0.7);
  --surface-glass-highlight: rgba(255, 255, 255, 0.85);

  --text-primary: #1A1612;
  --text-secondary: #5C5249;
  --text-tertiary: #8A7E72;

  --border-subtle: rgba(26, 22, 18, 0.08);
  --shadow-glass: 0 8px 32px rgba(60, 40, 20, 0.08), 0 2px 8px rgba(60, 40, 20, 0.05);

  --radius-card: 22px;
  --radius-btn: 12px;
  --radius-kbd: 6px;

  --ambient-amber: rgba(193, 156, 96, 0.22);
  --ambient-rose: rgba(212, 151, 96, 0.16);

  /* Mockup popover (always shows on a window-chrome wallpaper, both themes) */
  --popover-bg: rgba(255, 250, 244, 0.86);
  --popover-text: #1A1612;
  --popover-text-secondary: #5C5249;
  --popover-row: rgba(193, 156, 96, 0.06);
  --popover-border: rgba(26, 22, 18, 0.08);
}

[data-theme="dark"] {
  --accent: #D4B274;
  --accent-hover: #C19C60;
  --accent-soft: rgba(212, 178, 116, 0.10);
  --accent-gradient: linear-gradient(135deg, #E0C28A, #B08A4E);

  --bg: #14110D;
  --bg-elevated: #1E1A14;
  --surface-glass: rgba(255, 255, 255, 0.05);
  --surface-glass-border: rgba(255, 255, 255, 0.09);
  --surface-glass-highlight: rgba(255, 255, 255, 0.12);

  --text-primary: #F2EDE6;
  --text-secondary: #B8AC9E;
  --text-tertiary: #7D7468;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --shadow-glass: 0 8px 40px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(0, 0, 0, 0.3);

  --ambient-amber: rgba(193, 156, 96, 0.16);
  --ambient-rose: rgba(212, 151, 96, 0.12);

  --popover-bg: rgba(38, 32, 24, 0.78);
  --popover-text: #F2EDE6;
  --popover-text-secondary: #B8AC9E;
  --popover-row: rgba(212, 178, 116, 0.06);
  --popover-border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Ambient radial blobs */
.ambient {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.ambient-amber {
  width: 620px;
  height: 620px;
  background: var(--ambient-amber);
  top: -160px;
  left: -180px;
  transition: transform 0.1s linear;
}

.ambient-rose {
  width: 720px;
  height: 720px;
  background: var(--ambient-rose);
  bottom: -220px;
  right: -220px;
  transition: transform 0.1s linear;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

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

/* ============================================================
   Typography
   ============================================================ */
.display {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-size: clamp(56px, 8vw, 88px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-size: clamp(34px, 4.6vw, 50px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}

.eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: var(--radius-kbd);
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), inset 0 1px 0 var(--surface-glass-highlight);
  color: var(--text-primary);
  white-space: nowrap;
  vertical-align: baseline;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--accent);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* ============================================================
   Focus styles
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.scrolled {
  background: var(--surface-glass);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text-primary);
}

.header-brand:hover {
  color: var(--text-primary);
}

.header-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.header-wordmark {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.header-nav a {
  font-size: 14px;
  font-weight: 450;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ============================================================
   Glass surface utility
   ============================================================ */
.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--surface-glass-highlight);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn:hover  { opacity: 0.9; transform: translateY(-1px); }
.btn:active { opacity: 0.95; transform: translateY(0); }

.btn-primary {
  background: var(--accent-gradient);
  color: #14110D;
}

.btn-primary:hover {
  color: #14110D;
}

.btn-ghost {
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--surface-glass-border);
  color: var(--accent);
  box-shadow: var(--shadow-glass);
}

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

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 10px;
}

/* Mac App Store badge — official Apple style replication */
.mas-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #14110D;
  color: #FDF8EF;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.12s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .mas-badge {
  background: #FDF8EF;
  color: #14110D;
  border-color: rgba(0, 0, 0, 0.1);
}

.mas-badge:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  color: #FDF8EF;
}

[data-theme="dark"] .mas-badge:hover {
  color: #14110D;
}

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

.mas-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.mas-badge-line1 {
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.mas-badge-line2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 110px 0 80px;
  text-align: center;
}

.hero .eyebrow {
  margin-bottom: 18px;
  display: block;
}

.hero .display {
  margin-bottom: 22px;
}

.hero-tagline {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.cta-meta {
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  margin-bottom: 64px;
}

/* ============================================================
   Hero popover mockup
   ============================================================ */
.demo-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.demo-stage {
  aspect-ratio: 16 / 11;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 30px 80px rgba(60, 40, 20, 0.16), 0 6px 18px rgba(60, 40, 20, 0.08);
}

.demo-wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212, 178, 116, 0.55), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(193, 130, 96, 0.35), transparent 55%),
    linear-gradient(135deg, #2a1f14 0%, #1a120a 100%);
}

[data-theme="dark"] .demo-wallpaper {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212, 178, 116, 0.32), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(193, 130, 96, 0.22), transparent 55%),
    linear-gradient(135deg, #1a120a 0%, #0c0805 100%);
}

/* Mock menu bar at top of stage */
.demo-menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: rgba(20, 17, 13, 0.55);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 14px;
  gap: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 2;
}

.demo-menubar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.demo-menubar-icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.demo-menubar .countdown-mini {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* The Tostato popover, anchored to top-right */
.popover {
  position: absolute;
  top: 38px;
  right: 22px;
  width: 320px;
  max-width: calc(100% - 44px);
  background: var(--popover-bg);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border: 1px solid var(--popover-border);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45), 0 6px 18px rgba(0, 0, 0, 0.25);
  padding: 16px;
  color: var(--popover-text);
  z-index: 3;
  overflow: hidden;
}

.popover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .popover::before {
  background: rgba(255, 255, 255, 0.14);
}

.popover-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--popover-border);
  margin-bottom: 12px;
}

.popover-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.popover-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--popover-text);
}

.popover-status {
  margin-left: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--popover-text-secondary);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--popover-row);
  border: 1px solid var(--popover-border);
}

.popover-status.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(193, 156, 96, 0.28);
}

.popover-section-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--popover-text-secondary);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  margin-bottom: 8px;
  margin-top: 6px;
}

.popover-protections {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.popover-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
  color: var(--popover-text);
}

.popover-row:hover {
  background: var(--popover-row);
}

.popover-row .checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--popover-text-secondary);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.popover-row.checked .checkbox {
  background: var(--accent);
  border-color: var(--accent);
}

.popover-row.checked .checkbox::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #14110D;
  border-bottom: 2px solid #14110D;
  transform: rotate(-45deg) translate(0px, -1px);
}

.popover-row-label {
  flex: 1;
}

.popover-row-hint {
  font-size: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  color: var(--popover-text-secondary);
}

/* Duration grid */
.popover-durations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.popover-duration {
  background: var(--popover-row);
  border: 1px solid var(--popover-border);
  border-radius: 8px;
  padding: 8px 0;
  text-align: center;
  font-size: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
  color: var(--popover-text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.popover-duration:hover {
  border-color: rgba(193, 156, 96, 0.45);
}

.popover-duration.selected {
  background: var(--accent-soft);
  border-color: rgba(193, 156, 96, 0.55);
  color: var(--accent);
}

/* Countdown / start area */
.popover-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popover-countdown {
  font-family: -apple-system, "SF Pro Display", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--accent);
  text-align: center;
  font-variant-numeric: tabular-nums;
  display: none;
}

.popover.is-active .popover-countdown {
  display: block;
}

.popover-cta {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: none;
  background: var(--accent-gradient);
  color: #14110D;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.12s ease;
  font-family: inherit;
}

.popover-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.popover.is-active .popover-cta {
  background: var(--popover-row);
  color: var(--popover-text);
  border: 1px solid var(--popover-border);
}

.popover.is-active .popover-cta::before {
  content: "■";
  margin-right: 6px;
  color: var(--accent);
}

/* Demo controls below stage */
.demo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.demo-caption {
  margin-top: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
}

/* ============================================================
   Section base
   ============================================================ */
section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Why section
   ============================================================ */
.why-inner {
  max-width: 720px;
  margin: 0 auto;
}

.why-inner .section-title {
  margin-bottom: 28px;
}

.why-inner p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.7;
}

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

/* ============================================================
   Features
   ============================================================ */
.features .section-title {
  text-align: center;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
}

.feature-tile {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  flex-shrink: 0;
}

.feature-heading {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============================================================
   How it works
   ============================================================ */
.how-it-works .section-title {
  text-align: center;
  margin-bottom: 16px;
}

.how-intro {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 56px;
  font-size: 17px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
  margin-bottom: 56px;
}

.step {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-number {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.step-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.screenshot-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.screenshot-card img {
  width: 100%;
  max-width: 920px;
  height: auto;
  border-radius: 14px;
  display: block;
  box-shadow: 0 18px 50px rgba(60, 40, 20, 0.16);
}

.screenshot-card figcaption {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ============================================================
   Privacy summary
   ============================================================ */
.privacy-summary .section-title {
  margin-bottom: 24px;
}

.privacy-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-bottom: 24px;
}

.privacy-list li {
  font-size: 16px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.privacy-list li::before {
  content: "✕";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ============================================================
   Technical facts
   ============================================================ */
.tech-card {
  padding: 36px 40px;
}

.tech-card .section-title {
  margin-bottom: 24px;
}

.tech-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 32px;
  row-gap: 12px;
  margin-bottom: 24px;
  font-size: 15px;
}

.tech-list dt {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  align-self: center;
}

.tech-list dd {
  color: var(--text-primary);
}

.tech-note {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq .section-title {
  text-align: center;
  margin-bottom: 40px;
}

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

.faq-item {
  padding: 4px 22px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 0 18px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   Privacy page
   ============================================================ */
.privacy-page {
  padding: 80px 0 120px;
}

.privacy-page h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.privacy-page .updated {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}

.privacy-page h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.privacy-page p,
.privacy-page li {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
}

.privacy-page p {
  margin-bottom: 16px;
}

.privacy-page ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.privacy-page li {
  margin-bottom: 6px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-left a {
  color: var(--text-tertiary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Theme segmented control */
.theme-control {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--text-tertiary);
}

.theme-control > span:first-child {
  opacity: 0.6;
}

.theme-control > span[aria-hidden="true"] {
  opacity: 0.4;
}

.theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--text-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

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

.theme-btn.active {
  color: var(--accent);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-right a {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ============================================================
   Scroll entrance animation
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .privacy-list {
    grid-template-columns: 1fr;
  }

  .tech-list {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }

  .tech-list dt {
    margin-top: 8px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .popover {
    width: 280px;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 70px 0 50px;
  }

  .header-nav {
    gap: 14px;
  }

  .header-nav a {
    font-size: 13px;
  }

  .demo-stage {
    aspect-ratio: 4 / 5;
  }

  .popover {
    width: calc(100% - 36px);
    right: 18px;
    top: 38px;
  }

  .tech-card {
    padding: 28px 24px;
  }
}
