/* Layout: a single scrolling product page. Warm paper ground like the app's home screen, the app's
   blue for action, and gold only for vibration itself: every gold shape on the page is a real pattern. */
:root {
  --bg: #F5F3EF;
  --surface: #FFFFFF;
  --ink: #1C1B19;
  --muted: #625E58;
  --line: #E6E1D9;
  --blue: #0277BD;          /* links and accents on the page ground */
  --btn: #0288D1;           /* filled buttons, white text */
  --sky: #29B6F6;           /* the icon's blue */
  --tint: #E1F5FE;
  --gold: #D9A12A;
  --gold-hi: #F3D98C;
  --track: #E9E4DC;
  --hero-ink: #FFFFFF;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem);
  --radius: 22px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1E1C1A;
    --ink: #EEEAE4;
    --muted: #ABA59D;
    --line: #34302C;
    --blue: #4FC3F7;
    --btn: #0288D1;
    --sky: #29B6F6;
    --tint: #12303F;
    --gold: #E0AE3E;
    --gold-hi: #F6DE9A;
    --track: #2E2B28;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.eyebrow { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.top { padding-block: max(16px, env(safe-area-inset-top, 0px)) 8px; }
.top .wrap { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand span { font: 800 1.6rem/1 var(--display); letter-spacing: -0.02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.nav a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--btn); color: #fff; text-decoration: none; font-weight: 700;
  padding: 14px 22px; border-radius: 999px; font-size: 1.02rem;
}
.btn:hover { filter: brightness(1.08); }
.btn.small { padding: 10px 16px; font-size: 0.95rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 760px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* Hero */
.hero { padding-block: 40px 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: var(--step-4); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--blue); }
.lede { font-size: var(--step-1); color: var(--muted); margin-top: 22px; max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.play-badge img { height: 58px; width: auto; }
.cta-note { color: var(--muted); font-size: 0.95rem; }
.cta-note b { color: var(--ink); }

.stage {
  position: relative; border-radius: 30px; padding: 28px;
  background: linear-gradient(135deg, #0277BD 0%, #0A93D8 55%, #29B6F6 100%);
  color: var(--hero-ink); min-width: 0;
}
.phone {
  width: min(240px, 100%); margin: 0 auto; aspect-ratio: 9 / 17; border-radius: 34px;
  background: #101418; padding: 10px; box-shadow: 0 30px 60px -24px rgba(0, 30, 60, 0.6);
  will-change: transform;
}
.screen {
  height: 100%; border-radius: 26px; background: linear-gradient(180deg, #1C2A33, #0F161B);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 18px;
}
.screen .label { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #9FB7C5; }
.avatar {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(41, 182, 246, 0.18); color: #E1F5FE; font: 800 2rem/1 var(--display); margin-block: 8px;
}
.caller { font: 700 1.5rem/1.1 var(--display); color: #fff; }
.caller-pattern { font: 400 0.82rem/1.2 var(--mono); color: #CFE6F2; }
.rows { display: grid; gap: 12px; margin-top: 24px; }
.row {
  display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.10);
  transition: background 0.3s;
}
.row.on { background: rgba(255, 255, 255, 0.24); }
.row b { font: 700 0.98rem/1.1 var(--display); }
.row small { display: block; font: 400 0.72rem/1.2 var(--mono); opacity: 0.85; margin-top: 3px; }
.row canvas { width: 100%; height: 34px; background: rgba(255, 255, 255, 0.92); border-radius: 10px; min-width: 0; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .lede { max-width: 46ch; }
}

/* Sections */
section { padding-block: 72px; }
.section-head { max-width: 60ch; display: grid; gap: 14px; margin-bottom: 40px; }
.section-head h2 { font-size: var(--step-3); font-weight: 800; }
.section-head p { color: var(--muted); font-size: var(--step-1); }

/* How it works: a real sequence, so it's numbered. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--blue); font: 700 1rem/1 var(--mono);
}
.steps h3 { font-size: var(--step-1); font-weight: 700; }
.steps p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--surface); padding: 28px 26px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.feature h3 { font-size: 1.22rem; font-weight: 700; }
.feature p { color: var(--muted); }
.spec { font: 500 0.78rem/1.3 var(--mono); color: var(--blue); }
.pro { font: 700 0.68rem/1 var(--mono); letter-spacing: 0.08em; color: #8A6510; background: #F8EBC6; padding: 4px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 3px; }
@media (prefers-color-scheme: dark) { .pro { color: #F3D98C; background: #3A3020; } }
@media (max-width: 920px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Pattern library */
.library { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pattern { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 14px; display: grid; gap: 10px; min-width: 0; }
.pattern header { display: flex; align-items: baseline; gap: 8px; }
.pattern h3 { font-size: 1.08rem; font-weight: 700; }
.pattern .len { margin-left: auto; font: 400 0.78rem/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.pattern canvas { width: 100%; height: 40px; background: var(--bg); border-radius: 10px; }
.pattern p { font-size: 0.9rem; color: var(--muted); }
.library-note { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }

/* Free vs Pro */
.plans { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.compare td:nth-child(2), .compare td:nth-child(3), .compare th:nth-child(2), .compare th:nth-child(3) { text-align: center; white-space: nowrap; }
.compare td:nth-child(3) { color: var(--gold); font-weight: 700; }
@media (prefers-color-scheme: light) { .compare td:nth-child(3) { color: #A97808; } }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.compare col.feature-col { width: 52%; }
@media (max-width: 600px) {
  .compare { font-size: 0.95rem; }
  .compare th, .compare td { padding: 12px 10px; }
  .compare td:nth-child(2), .compare td:nth-child(3), .compare th:nth-child(2), .compare th:nth-child(3) { white-space: normal; }
}
.trial-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.trial-card h3 { font-size: var(--step-2); font-weight: 800; }
.trial-card p { color: var(--muted); }
.trial-card ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 6px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* Privacy band */
.privacy { background: var(--surface); border-block: 1px solid var(--line); }
.privacy .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.privacy h2 { font-size: var(--step-3); font-weight: 800; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.facts li { display: grid; gap: 4px; padding-left: 18px; border-left: 3px solid var(--sky); }
.facts b { font-family: var(--display); font-size: 1.12rem; }
.facts span { color: var(--muted); }
@media (max-width: 860px) { .privacy .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* FAQ */
.faq { max-width: 780px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; font: 700 1.08rem/1.35 var(--display); padding: 16px 30px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font: 400 1.5rem/1 var(--mono); color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 18px; max-width: 65ch; }

/* Closing CTA and footer */
.closing { text-align: left; }
.closing .box {
  border-radius: 30px; padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(135deg, #0277BD 0%, #0A93D8 55%, #29B6F6 100%); color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.closing h2 { font-size: var(--step-3); font-weight: 800; }
.closing p { opacity: 0.9; margin-top: 10px; font-size: var(--step-1); }
@media (max-width: 760px) { .closing .box { grid-template-columns: 1fr; } }
footer { padding-block: 40px max(40px, env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 14px 22px; }
footer a { color: var(--muted); }
footer .copy { margin-left: auto; }
@media (max-width: 600px) { footer .copy { margin-left: 0; } }
