/* Desktop first (doc/SPEC.md): the base rules are the approved desktop design; smaller screens are at the end. */
@font-face { font-family: Display; src: url(/fonts/display.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Body; src: url(/fonts/body.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #0b1736; --navy-2: #14285c; --green: #2fe07a; --green-deep: #0b7a3b;
  --ink: #101a33; --muted: #55607a; --line: #e2e6ef; --paper: #fff; --tint: #f4f7f5;
  --error: #b3261e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 17px/1.65 Body, system-ui, sans-serif; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: Display, system-ui, sans-serif; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: 64px; font-weight: 700; }
h2 { font-size: 40px; font-weight: 700; }
h3 { font-size: 21px; font-weight: 650; }
h1 em { font-style: normal; color: var(--green-deep); }
p { margin: 0 0 16px; }
a { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; }
.wrap { width: min(1160px, 100% - 64px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--paper); padding: 8px 14px; }
.tabs { display: none; }
#ask { scroll-margin-top: 72px; }

.top { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 22px Display, sans-serif; color: var(--ink); text-decoration: none; }
nav { display: flex; align-items: center; gap: 32px; }
nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
nav a:not(.btn):hover, nav a[aria-current='page'] { color: var(--ink); border-color: var(--green); }

.btn { display: inline-block; border: 1.5px solid var(--navy); background: var(--navy); color: #fff; border-radius: 999px; padding: 13px 26px; font: 600 15px/1.2 Body, sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-sm { padding: 9px 18px; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: rgb(11 23 54 / .06); border-color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.link { font-weight: 600; text-decoration: none; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 14px; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.fine { font-size: 14px; color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .actions { justify-content: center; }

.hero { background: linear-gradient(180deg, var(--tint), var(--paper)); padding: 80px 0; overflow: hidden; }
.hero.compact { padding: 72px 0 24px; }
.hero-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.collage { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 540px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; min-height: 0; }
.c-a { grid-row: span 2; }
.shot { max-width: 960px; margin-top: 32px; }

.section { padding: 96px 0; }
.section.alt { background: var(--tint); }
.section.page { padding-top: 72px; }
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
.split.top-align { align-items: start; }
.wide { font-size: 22px; max-width: 36em; color: var(--muted); margin: 0; }

.ticks { list-style: none; padding: 0; margin: 24px 0; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--green-deep); font-weight: 800; }

.browser { margin: 0; }
.browser-bar { display: flex; gap: 7px; padding: 12px 16px; background: var(--navy); border-radius: 14px 14px 0 0; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .3); }
.browser img { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; box-shadow: 0 30px 60px -30px rgb(11 23 54 / .35); }
.browser figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }

.features { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.features li { grid-column: span 2; border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--paper); }
.features li:nth-child(n + 4) { grid-column: span 3; }
.features p { color: var(--muted); margin: 0; }
.num { display: block; font: 700 14px Display, sans-serif; color: var(--green-deep); margin-bottom: 18px; }

.strip { list-style: none; padding: 0; margin: 32px 0 16px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; border-top: 3px solid var(--navy); padding-top: 22px; }
.steps li::before { content: 'Step ' counter(step); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); }
.steps h3 { margin-top: 8px; }
.steps p { color: var(--muted); }

.band { background: var(--navy); color: #fff; }
.band-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; padding: 72px 0; }
.band img { width: 100%; height: 380px; object-fit: cover; object-position: 50% 20%; border-radius: 20px; }
.band p { color: #c9d2ea; }
.band a:not(.btn) { color: var(--green); }
.band .btn { background: var(--green); border-color: var(--green); color: var(--navy); }
.band .btn-ghost { background: transparent; border-color: #fff; color: #fff; }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: inherit; border: 1px solid #bcc4d4; border-radius: 10px; padding: 11px 14px; background: var(--paper); }
.field textarea { resize: vertical; }
.field [aria-invalid] { border-color: var(--error); }
.error { color: var(--error); font-size: 14px; margin: 6px 0 0; }
.alert { border: 1px solid var(--error); background: #fdf1f0; border-radius: 10px; padding: 12px 16px; font-size: 15px; }
.notice { border-color: var(--green-deep); }
.cf-turnstile { margin-bottom: 18px; }
.form .btn { margin-bottom: 14px; }
.form .fine { margin: 0; }
.trap { position: absolute; left: -9999px; }

.prose { max-width: 720px; }
.prose h2 { font-size: 24px; margin-top: 40px; }

.foot { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 15px; }
.foot-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }
.foot a:not(.brand) { color: var(--muted); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p { color: var(--muted); margin-top: 12px; }
.legal { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; color: var(--muted); font-size: 14px; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 900px) {
  .wrap { width: min(640px, 100% - 40px); }
  h1 { font-size: clamp(38px, 9vw, 52px); }
  h2 { font-size: clamp(28px, 6.5vw, 36px); }
  .lead { font-size: 18px; }
  .wide { font-size: 19px; }

  .hero { padding: 40px 0 48px; }
  .hero.compact { padding: 40px 0 8px; }
  .hero-row, .split, .band-row, .steps, .features { grid-template-columns: 1fr; }
  .hero-row, .split { gap: 36px; }
  .collage { height: clamp(320px, 100vw, 520px); gap: 10px; }
  .collage img { border-radius: 16px; }

  .section { padding: 56px 0; }
  .section.page { padding-top: 40px; }
  .features { margin-top: 24px; gap: 14px; }
  .features li, .features li:nth-child(n + 4) { grid-column: auto; padding: 22px; }
  .num { margin-bottom: 10px; }
  .strip { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
  .strip img { border-radius: 10px; }
  .steps { gap: 24px; margin-top: 28px; }
  .steps p { margin: 0; }

  .band-row { gap: 32px; padding: 56px 0; }
  .band img { height: 300px; }
  .foot-row { grid-template-columns: 1fr 1fr; }
  .foot-row > div { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  /* The phone screenshot of the demo, narrower than the text so it reads as a phone. */
  .browser { width: min(320px, 100%); margin-inline: auto; }
  .browser-bar { justify-content: center; padding: 10px; border-radius: 26px 26px 0 0; }
  .browser-bar i { display: none; }
  .browser-bar i:first-child { display: block; width: 64px; height: 6px; border-radius: 6px; }
  .browser img { border: 6px solid var(--navy); border-top: 0; border-radius: 0 0 26px 26px; }

  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .top { padding-top: env(safe-area-inset-top); }
  .top-row { height: 64px; }
  .top nav a:not(.btn) { display: none; }
  #ask { scroll-margin-top: 64px; }

  .actions { flex-direction: column; margin-top: 24px; }
  .actions .btn { text-align: center; padding-block: 15px; }
  .form { padding: 20px; border-radius: 16px; }
  .form .btn { width: 100%; padding-block: 15px; }
  .btn-sm { padding: 12px 18px; }
  .brand { min-height: 44px; }
  .link, .foot li a { display: inline-block; padding-block: 8px; }
  .foot li { margin: 0; }

  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: fixed; z-index: 10; inset: auto 0 0 0; background: var(--paper); border-top: 1px solid var(--line); padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
  /* :not(.btn) so these outrank the header's link rules, which also match this <nav>. */
  nav.tabs a:not(.btn) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 63px; padding: 0; border: 0; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; }
  .tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  nav.tabs a:not(.btn)[aria-current='page'] { color: var(--green-deep); }
}

/* The spam check is a fixed 300px box: shrink it, and give it more room, on narrow phones. */
@media (max-width: 380px) {
  .form { padding: 14px; }
  .cf-turnstile { zoom: 0.8; }
}
