/*
  WhisperBoard landing page, hi-fi.
  Design system: the app's Light & Minimal theme (docs/landing-page-brief.md s17,
  docs/design-system/tokens/light-minimal.md in the app repo).
  One accent, indigo #5B5BD6, used sparingly. Tactile 3D keycaps. The mic button
  with its live voice ring is the signature motif.
*/

:root {
  /* color */
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-pressed: #ECEEF3;
  --primary: #5B5BD6;
  --primary-strong: #4B4BC9;
  --primary-soft: rgba(91, 91, 214, 0.10);
  --primary-softer: rgba(91, 91, 214, 0.06);
  --ink: #1A1A2E;
  --muted: #6B6E80;
  --divider: #E6E8EC;

  /* privacy band: deep indigo-navy from the ink family */
  --ink-band: #171830;
  --band-text: #EDEDF4;
  --band-muted: #A6A8C6;
  --band-link: #C3C4F5;
  --band-icon: #A3A4F0;

  /* shape */
  --radius-s: 8px;
  --radius-key: 14px;
  --radius-card: 16px;
  --radius-xl: 24px;

  /* depth */
  --shadow-key: 0 3px 8px rgba(26, 26, 46, 0.10);
  --shadow-key-pressed: 0 1px 3px rgba(26, 26, 46, 0.06);
  --shadow-card: 0 1px 2px rgba(26, 26, 46, 0.05);
  --shadow-primary: 0 3px 10px rgba(91, 91, 214, 0.32);

  /* motion (the app's press curve and mic ripple timing) */
  --ease: cubic-bezier(0, 0, 0.2, 1);
  --press: 120ms;
  --ripple: 3s;

  --container: 1080px;
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* The hidden attribute must always win over author display rules.
   The CTA state swap and the icon sprite depend on it. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.3rem, 7vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 600; }
p { margin: 0; }

a { color: var(--primary); }
a:hover { color: var(--primary-strong); }

::selection { background: rgba(91, 91, 214, 0.18); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-s);
  z-index: 10;
}
.skip-link:focus { left: 16px; top: 16px; }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 72px; }

/* shared SVG icon behavior: stroke-only, currentColor */
svg[viewBox] {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- keycap buttons (the product's tactile keys) ---------- */

.keycap {
  display: inline-block;
  font: 600 1rem var(--font-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-key);
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-key), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform var(--press) var(--ease),
              box-shadow var(--press) var(--ease),
              background-color var(--press) var(--ease);
}
.keycap:active:not([disabled]) {
  transform: translateY(2px);
  background: var(--surface-pressed);
  box-shadow: var(--shadow-key-pressed);
}
.keycap-sm { padding: 8px 16px; font-size: 0.875rem; }
.keycap-primary {
  background: var(--primary);
  border-color: var(--primary-strong);
  color: #fff;
  box-shadow: var(--shadow-primary), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.keycap-primary:active:not([disabled]) {
  background: var(--primary-strong);
  box-shadow: 0 1px 4px rgba(91, 91, 214, 0.4);
}
.keycap[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: var(--shadow-key), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ---------- block 1: header ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ---------- block 2: hero ---------- */

.hero { padding-top: 72px; }

/* Hero container: plain color for now. To restore the generated art later, add:
   background-image: url("assets/img/hero-bg.webp");
   background-repeat: no-repeat;
   background-size: cover;
   background-position: center top; */
.hero > .container {
  background-color: var(--bg);
  padding-bottom: 56px;
}

.hero-copy {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 14px;
}
.hero-copy h1 { margin-top: 2px; }

/* dictation typing effect; JS drives it, full text is the no-JS/reduced-motion state */
.type-line::after {
  content: none;
}
.type-line.typing::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.82em;
  margin-left: 3px;
  vertical-align: -0.06em;
  background: var(--primary);
  animation: caret 0.9s steps(2, start) infinite;
}
@keyframes caret {
  to { visibility: hidden; }
}

.subhead {
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36ch;
  margin-inline: auto;
}

.cta { margin-top: 30px; }
.cta-note {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}
.trust-line {
  margin-top: 22px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- hero media band: full-bleed 16:9 stage ---------- */

/* the hero band visual: full image, never cropped, flush to the viewport edges */
.hero-band {
  display: block;
  width: 100%;
  height: auto;
}

/* the mic button with its live voice ring, THE brand image */
.closing-motif {
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  flex: none;
}
.mic-button {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-primary), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.mic-button svg { width: 28px; height: 28px; }
.mic-ring {
  position: absolute;
  inset: 8px;
  border-radius: 9999px;
  border: 2px solid rgba(91, 91, 214, 0.4);
  animation: ring var(--ripple) linear infinite;
}
.mic-ring:nth-child(2) { animation-delay: 1s; }
.mic-ring:nth-child(3) { animation-delay: 2s; }
@keyframes ring {
  from { transform: scale(1); opacity: 0.55; }
  to { transform: scale(1.9); opacity: 0; }
}

.step-captions {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  margin: 20px 0 0;
}
.step-captions li {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 9999px;
  padding: 5px 13px;
}

/* ---------- block 3: how it works ---------- */

.how h2,
.why h2,
.ways h2,
.faq-section h2,
.privacy h2 { text-align: center; }

.steps-grid {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  gap: 32px;
}
.step { text-align: center; position: relative; }
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  font: 600 1rem var(--font-body);
  box-shadow: var(--shadow-primary);
}
.step p { color: var(--muted); margin-top: 6px; }

.section-footnote {
  text-align: center;
  color: var(--muted);
  margin-top: 40px;
  font-size: 0.95rem;
}

/* ---------- block 4: why whisperboard ---------- */

.cards-grid {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
}
.card .icon-chip { margin-bottom: 16px; }
.card p { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }

/* wide strip under the cards: the mode switcher visual */
.feature-strip {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  margin-top: 44px;
  border-radius: var(--radius-card);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-card);
}

/* ---------- block 5: privacy band ---------- */

.band-ink {
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(91, 91, 214, 0.30), transparent 65%),
    var(--ink-band);
  color: var(--band-text);
  padding-block: 84px;
}
.band-ink h2 { color: #fff; }.privacy-points {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.privacy-points li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  text-align: left;
}
/* the shared step badge, sized down for this band and reset from its centering margins */
.privacy-points .step-num {
  width: 36px;
  height: 36px;
  margin: 0;
  font-size: 0.9rem;
}
.privacy-points h3 { color: #fff; }
.privacy-points p { color: var(--band-muted); margin-top: 6px; font-size: 0.95rem; }

/* ---------- block 6: works your way ---------- */

.ways-grid {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.way {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 18px;
}
.way .icon-chip { margin-inline: auto; margin-bottom: 16px; }
.way p { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }

/* ---------- block 7: faq ---------- */

.faq-container { max-width: 760px; }
.faq-list { margin-top: 32px; border-top: 1px solid var(--divider); }
.faq-item { border-bottom: 1px solid var(--divider); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: none;
  color: var(--muted);
  transition: transform var(--press) var(--ease);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); color: var(--primary); }
.faq-answer {
  color: var(--muted);
  padding: 0 2px 20px;
  max-width: 60ch;
}

/* ---------- block 8: closing + footer ---------- */

.closing {
  text-align: center;
  padding-block: 0;
}
.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.closing-motif { margin-bottom: 8px; }
.closing .cta-coming-soon,
.closing .cta-live {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--divider);
  padding-block: 26px;
}
.footer-line {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.footer-line a { color: inherit; }
.footer-line a:hover { color: var(--primary); }
.legal-line {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- breakpoints ----------
   Base: single column. Only blocks 3, 4, 6 change shape.
   The 6-card grid follows the wireframe rule exactly: 1 -> 2 at 640px -> 3 at 1024px.
   The 3-item grids (steps, ways) go 1 -> 3 at 640px: two columns would orphan
   the third item, three narrow columns fit comfortably from 640px up. */

@media (min-width: 640px) {
  .steps-grid,
  .ways-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-points { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .section { padding-block: 96px; }
  .closing { padding-block: 0; } /* keep the no-padding rule winning over .section above */
  .band-ink { padding-block: 104px; }
  .hero { padding-top: 96px; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }

  /* connector between numbered steps, desktop only */
  .steps-grid { gap: 24px; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22px;
    left: calc(50% + 38px);
    width: calc(100% - 76px);
    height: 1px;
    background: linear-gradient(90deg, var(--divider), transparent);
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mic-ring { animation: none; opacity: 0.25; }
  .mic-ring:nth-child(2) { transform: scale(1.35); }
  .mic-ring:nth-child(3) { transform: scale(1.65); }
  .type-line.typing::after { animation: none; }
  .keycap,
  .faq-icon { transition: none; }
}
