/* Voice Journal — light theme, matching the app's Palette (DesignSystem/Palette.swift). */
:root {
  --canvas: #F4F2EC;
  --surface: #FFFFFF;
  --surface-raised: #ECE9E1;
  --hairline: rgba(11, 11, 11, 0.08);
  --ink: #0B0B0B;
  --ink-2: #5C5A55;
  --ink-3: #8E8B84;
  --accent: #556E00;      /* lime text on light */
  --lime: #D4F24A;        /* lime fills, dark text on top */
  --lime-muted: #E3EFA8;
  --radius: 22px;
  --radius-sm: 12px;
  --gutter: 20px;
  --max: 1120px;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.mono.accent { color: var(--accent); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 17px/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-links .pill { color: var(--ink); }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  background: var(--lime); color: var(--ink);
  font: 600 17px/1 var(--text);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 0 rgba(11,11,11,.06), 0 8px 24px -10px rgba(85,110,0,.55);
}
.pill:hover { transform: translateY(-1px); }
.pill:active { transform: translateY(0); }
.pill.small { min-height: 38px; padding: 0 16px; font-size: 15px; box-shadow: none; }
.pill.dark { background: var(--ink); color: var(--canvas); box-shadow: none; }
.pill svg { width: 20px; height: 20px; }
.link { color: var(--accent); text-underline-offset: 3px; }

/* Hero */
.hero { padding: 72px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.035em; }
h1 { font-size: clamp(56px, 9vw, 112px); line-height: 1.0; font-weight: 700; }
h1 .hl, h2 .hl {
  background: var(--lime);
  padding: 0 0.12em;
  border-radius: 0.14em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.lede { font-size: 20px; color: var(--ink-2); max-width: 30em; margin: 26px 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.cta-note { color: var(--ink-3); font-size: 14px; }

.phones { position: relative; height: 640px; }
.phone {
  position: absolute;
  width: 290px;
  border-radius: 46px;
  padding: 9px;
  background: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(11,11,11,.45), 0 2px 0 rgba(255,255,255,.08) inset;
}
.phone img { border-radius: 38px; width: 100%; }
.phones .front { right: 4%; top: 0; z-index: 2; }
.phones .back { right: 44%; top: 70px; transform: rotate(-4deg); }

/* Promise strip */
.strip { margin: 40px 0 0; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  font-family: var(--mono); font-size: 13px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--hairline);
}
.chip b { color: var(--accent); font-weight: 600; }

/* Sections */
section { padding: 96px 0; }
.kicker { margin-bottom: 14px; display: block; }
h2 { font-size: clamp(40px, 6vw, 68px); line-height: 0.98; font-weight: 700; }
.section-lede { color: var(--ink-2); font-size: 19px; max-width: 34em; margin: 18px 0 0; }

.tile {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 72px; }
.feature:nth-child(even) .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(32px, 4vw, 44px); line-height: 1; font-weight: 700; }
.feature-copy p { color: var(--ink-2); font-size: 18px; margin: 16px 0 0; }
.feature-copy ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.feature-copy li { display: flex; gap: 12px; align-items: baseline; }
.feature-copy li::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 3px var(--lime-muted); transform: translateY(-2px);
}
.shot {
  display: flex; justify-content: center; align-items: flex-start;
  padding: 44px 24px 0; overflow: hidden; height: 520px;
  background: var(--surface-raised);
}
.shot .phone { position: static; width: 270px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; }
.shot .phone img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* Grid of small features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.grid .tile { padding: 26px; }
.grid h3 { font-size: 22px; letter-spacing: -0.02em; margin-top: 18px; }
.grid p { color: var(--ink-2); margin: 8px 0 0; font-size: 16px; }
.icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--lime);
}
.icon svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.plan { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.plan.featured { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.plan.featured .mono { color: var(--lime); }
.plan.featured p { color: #B9B6AE; }
.plan h3 { font-size: 30px; }
.price { font: 700 56px/1 var(--display); letter-spacing: -0.04em; }
.price small { font: 400 15px/1 var(--text); letter-spacing: 0; color: var(--ink-3); margin-left: 6px; }
.plan.featured .price small { color: #8E8B84; }
.plan p { margin: 0; color: var(--ink-2); }
.fine { color: var(--ink-3); font-size: 14px; margin-top: 18px; }

/* Waveform band */
.band { padding: 0; }
.band .tile { padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; overflow: hidden; }
.wave { display: flex; align-items: center; gap: 5px; height: 140px; }
.wave i { flex: 1; min-width: 3px; border-radius: 4px; background: var(--ink); opacity: .85; }
.wave i:nth-child(3n) { background: var(--accent); }

/* FAQ */
.faq { margin-top: 40px; display: grid; gap: 10px; max-width: 820px; }
details { padding: 20px 24px; }
summary { cursor: pointer; font: 600 18px/1.35 var(--display); letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); margin: 12px 0 0; }

/* Final CTA */
.final { text-align: center; }
.final img.app-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 20px 40px -18px rgba(11,11,11,.5); }
.final .cta-row { justify-content: center; margin-top: 32px; }

/* Footer */
footer { border-top: 1px solid var(--hairline); padding: 36px 0 48px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
footer a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
footer a:hover { color: var(--ink); }

/* Document pages (privacy, support) */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(48px, 8vw, 84px); margin-top: 14px; }
.doc h2 { font-size: 26px; letter-spacing: -0.02em; margin-top: 40px; }
.doc p, .doc li { color: var(--ink-2); font-size: 18px; }
.doc .card { padding: 24px 26px; margin-top: 32px; }
.doc .card p { margin: 6px 0 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero .wrap, .feature, .band .tile, .pricing { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-copy { order: 0; }
  .phones { height: 560px; max-width: 460px; margin: 0 auto; width: 100%; }
  .phones .front { right: 0; }
  .phones .back { right: auto; left: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  section { padding: 72px 0; }
  .feature { margin-top: 56px; gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav-links a:not(.pill) { display: none; }
  .phones { height: 470px; }
  .phone { width: 230px; border-radius: 38px; padding: 7px; }
  .phone img { border-radius: 31px; }
  .phones .back { top: 60px; }
  .grid { grid-template-columns: 1fr; }
  .shot { height: 440px; }
  .shot .phone { width: 240px; }
  .lede { font-size: 18px; }
  footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill { transition: none; }
}
