/* Brewie marketing site. Colours match the app (client/src/index.css). */

:root {
  color-scheme: light;

  --brand-50: #fff8eb;
  --brand-100: #feeac7;
  --brand-200: #fdd28a;
  --brand-300: #fcb44d;
  --brand-400: #fb9824;
  --brand-500: #f5760b;
  --brand-600: #d95306;
  --brand-700: #b43709;
  --brand-800: #922a0e;

  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;

  --bg: #fcfaf7;
  --tint: #f6f1ea;
  --surface: #ffffff;
  --ink: var(--stone-900);
  --ink-2: var(--stone-700);
  --muted: var(--stone-500);
  --line: var(--stone-200);
  --line-strong: var(--stone-300);
  --red: #dc2626;
  --red-bg: #fef2f2;
  --blue: #0284c7;
  --blue-bg: #f0f9ff;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgb(28 25 23 / 0.06);
  --shadow: 0 1px 2px rgb(28 25 23 / 0.04), 0 8px 24px -8px rgb(28 25 23 / 0.12);
  --shadow-lg: 0 2px 4px rgb(28 25 23 / 0.04), 0 24px 64px -16px rgb(120 36 15 / 0.22);

  --gutter: 24px;
  --max: 1180px;
  --header-h: 68px;
}

/* --- Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-underline-offset: 3px; }
a:hover { color: var(--brand-800); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--brand-200); }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.4em;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--stone-50);
  box-shadow: 0 1px 0 var(--line-strong);
  color: var(--stone-600);
  font-family: var(--font-sans);
  font-size: 0.78em;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  vertical-align: 0.1em;
}

.icon { flex: none; width: 24px; height: 24px; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--stone-900); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

/* --- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 15px/1.3 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 1px 2px rgb(180 55 9 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.12); }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--stone-50); border-color: var(--stone-400); color: var(--ink); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--stone-100); color: var(--ink); }
.btn-light { background: #fff; color: var(--brand-700); box-shadow: 0 6px 20px -6px rgb(0 0 0 / 0.35); }
.btn-light:hover { background: var(--brand-50); color: var(--brand-800); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* --- Header ---------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(252 250 247 / 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header[data-scrolled] { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; background: var(--brand-500); color: #fff;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.08);
}
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.brand-light, .brand-light:hover { color: #fff; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  padding: 8px 12px; border-radius: 8px;
  color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none;
}
.site-nav a:not(.btn):hover { background: var(--stone-100); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--brand-700); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer;
}
.nav-toggle .nav-toggle-open { display: inline-flex; }
.nav-toggle .nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -16px rgb(28 25 23 / 0.2);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px; font-size: 16px; }
  .site-nav .btn { margin: 8px 0 0; padding: 13px 18px; font-size: 16px; }
}

/* --- Shared section styles -------------------------------------------------- */

.section { padding: 96px 0; }
.section-tint { background: var(--tint); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  color: var(--brand-700);
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow.center { display: flex; justify-content: center; }
.eyebrow-light { color: var(--brand-300); }

.section-title, .feature-title, .page-title, .hero-title, .cta-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-title { font-size: clamp(30px, 4vw, 44px); }
.section-title.center { max-width: 22ch; }
.section-lede { max-width: 60ch; margin-top: 18px; color: var(--ink-2); font-size: 18px; }

.checks { display: grid; gap: 10px; margin-top: 20px; list-style: none; }
.checks li {
  position: relative; padding-left: 30px; color: var(--ink-2);
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b43709' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--brand-50); color: var(--brand-600);
  border: 1px solid var(--brand-100);
}
.card-icon .icon { width: 22px; height: 22px; }

/* --- Screenshots ------------------------------------------------------------- */

.shot {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.shot-bar {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 14px;
  background: var(--stone-100); border-bottom: 1px solid var(--line);
}
.shot-bar .dots { position: absolute; left: 14px; display: flex; gap: 7px; }
.shot-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--stone-300); }
.shot-url {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 14px; border-radius: 7px;
  background: var(--surface); color: var(--muted);
  font-size: 12.5px; font-weight: 500;
}
.shot-panel { border-radius: var(--radius); }

/* --- Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 88px 0 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgb(254 234 199 / 0.85), transparent 70%),
    linear-gradient(var(--bg), var(--bg));
  overflow: hidden;
}
.hero::after {
  /* the dark band the screenshot sits on */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: var(--stone-900);
}
.hero-inner { position: relative; text-align: center; }
.hero-title {
  max-width: 15ch; margin: 0 auto;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
}
.hero-title em { font-style: italic; color: var(--brand-600); }
.hero-lede { max-width: 58ch; margin: 22px auto 0; color: var(--ink-2); font-size: clamp(17px, 2vw, 20px); }
.page-form .hero-lede, .form-intro .hero-lede { margin-left: 0; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 14px; }

.hero-visual { position: relative; z-index: 1; max-width: 1120px; margin-top: 56px; padding-bottom: 72px; }

.float-card {
  position: absolute; display: flex; align-items: flex-start; gap: 12px;
  max-width: 300px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 48px -12px rgb(28 25 23 / 0.35);
  font-size: 14px; line-height: 1.4; text-align: left;
}
.float-card strong { display: block; color: var(--ink); font-weight: 600; }
.float-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.float-card-a { left: -8px; bottom: 26%; }
.float-card-b { right: -8px; top: 14%; }
.float-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; }
.tone-red { background: var(--red-bg); color: var(--red); }
.tone-blue { background: var(--blue-bg); color: var(--blue); }

@media (max-width: 960px) { .float-card { display: none; } }

/* --- Replace strip ------------------------------------------------------------ */

.section-replace { padding: 88px 0 72px; }
.replace-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 48px; list-style: none;
}
.replace-grid li {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-top: 2px solid var(--line);
}
.replace-old {
  color: var(--muted); font-size: 15px; font-weight: 500;
  text-decoration: line-through; text-decoration-color: var(--brand-500); text-decoration-thickness: 2px;
}
.replace-icon { color: var(--brand-600); }
.replace-grid p { color: var(--ink-2); font-size: 16px; }

/* --- Product tour --------------------------------------------------------------- */

.section-tour { padding-top: 24px; }
.tour { display: grid; gap: 120px; }
.feature-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center; gap: 64px;
}
.feature-row.is-reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-row.is-reverse .feature-copy { order: 2; }
.feature-title { font-size: clamp(28px, 3.4vw, 40px); }
.feature-copy > p:not(.eyebrow) { margin-top: 18px; color: var(--ink-2); }
.feature-copy > p.muted { color: var(--muted); font-size: 15px; }
.feature-media .shot-panel { max-width: 600px; margin: 0 auto; }
.tour-more { text-align: center; }

/* --- How it works (dark) ------------------------------------------------------------ */

.section-dark {
  background: var(--stone-900);
  color: var(--stone-300);
}
.section-dark .section-title { color: #fff; }
.section-dark .section-lede { color: var(--stone-400); }

.track-title {
  display: flex; align-items: center; gap: 10px;
  margin: 56px 0 20px;
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
}
.track-title .icon { color: var(--brand-400); }
.track {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  list-style: none; counter-reset: step;
}
.track-short { grid-template-columns: repeat(5, 1fr); }
.track li {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 20px 18px 22px;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: var(--radius);
  counter-increment: step;
}
.track li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--brand-400); font: 600 13px/1 var(--font-mono);
}
.track li:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; right: -10px; z-index: 1;
  width: 8px; height: 8px;
  border-top: 2px solid var(--stone-600); border-right: 2px solid var(--stone-600);
  transform: rotate(45deg);
}
.track strong { color: #fff; font-size: 16px; font-weight: 600; }
.track span { color: var(--stone-400); font-size: 14px; line-height: 1.5; }

/* --- Trust cards ---------------------------------------------------------------- */

.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 56px; list-style: none;
}
.card-grid .card { padding: 28px; }
.card-grid h3 { margin-top: 18px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.card-grid p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }

/* --- Keyboard ------------------------------------------------------------------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }

.shortcut-list { display: grid; gap: 4px; margin: 28px 0 0; }
.shortcut-list div {
  display: grid; grid-template-columns: 92px 1fr; align-items: baseline; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line-strong);
}
.shortcut-list div:last-child { border-bottom: 0; }
.shortcut-list dt { white-space: nowrap; }
.shortcut-list dd { margin: 0; color: var(--ink-2); font-size: 16px; }

.keys-demo {
  margin: 0; overflow: hidden;
  background: var(--stone-900); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.keys-demo-head {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.keys-demo-head span { width: 11px; height: 11px; border-radius: 50%; background: var(--stone-700); }
.keys-demo-head b { margin-left: 10px; color: var(--stone-400); font-size: 13px; font-weight: 500; }
.keys-demo pre {
  margin: 0; padding: 26px 24px; overflow-x: auto;
  color: #fff; font: 500 15px/2 var(--font-mono); white-space: pre-wrap;
}
.keys-demo i { color: var(--brand-300); font-style: normal; font-weight: 600; }
.keys-demo figcaption {
  padding: 16px 24px 20px; border-top: 1px solid rgb(255 255 255 / 0.08);
  color: var(--stone-400); font-size: 14px;
}
.keys-demo figcaption kbd { background: var(--stone-800); border-color: var(--stone-700); box-shadow: 0 1px 0 var(--stone-700); color: var(--stone-200); }

/* --- Setup steps ------------------------------------------------------------------ */

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 40px;
  margin-top: 56px; list-style: none; counter-reset: setup;
}
.steps li { padding-top: 22px; border-top: 1px solid var(--line-strong); counter-increment: setup; }
.steps li::before {
  content: counter(setup);
  display: block; margin-bottom: 12px;
  color: var(--brand-600); font: 600 34px/1 var(--font-display);
}
.steps h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.steps p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }

/* --- FAQ -------------------------------------------------------------------------- */

.section-faq { background: var(--tint); }
.faq { margin-top: 44px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  position: relative; display: block;
  padding: 22px 48px 22px 0;
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 14px; height: 2px; border-radius: 2px; background: var(--brand-600);
  transition: transform .2s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--brand-700); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); }

/* --- CTA band ------------------------------------------------------------------------ */

.cta-band {
  padding: 80px 0;
  background:
    radial-gradient(80% 120% at 100% 0%, rgb(251 152 36 / 0.45), transparent 60%),
    linear-gradient(135deg, var(--brand-600), var(--brand-800));
  color: #fff;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { font-size: clamp(30px, 4vw, 44px); color: #fff; max-width: 18ch; }
.cta-band p { margin-top: 12px; color: rgb(255 255 255 / 0.86); font-size: 18px; }
.cta-band .btn { flex: none; }

/* --- Footer ------------------------------------------------------------------------------ */

.site-footer { background: var(--stone-900); color: var(--stone-400); font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand { max-width: 340px; }
.footer-brand p { margin-top: 16px; }
.footer-links { display: flex; gap: 72px; }
.footer-links div { display: flex; flex-direction: column; gap: 10px; }
.footer-links h2 { margin-bottom: 4px; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-links a { color: var(--stone-400); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-base { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--stone-800); font-size: 14px; }

/* --- Features page ------------------------------------------------------------------------ */

.page-hero {
  padding: 88px 0 72px;
  background: radial-gradient(60% 80% at 50% 0%, rgb(254 234 199 / 0.85), transparent 70%);
}
.page-title { font-size: clamp(36px, 5.5vw, 60px); }
.page-hero .hero-lede { margin-left: auto; }

.chip-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.chip-nav a {
  padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink-2);
  font-size: 15px; font-weight: 500; text-decoration: none;
}
.chip-nav a:hover { border-color: var(--brand-400); color: var(--brand-700); }

.feature-group { padding: 72px 0; }
.group-title { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 36px); font-weight: 600; letter-spacing: -0.02em; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; list-style: none; }
.detail-card { padding: 28px; }
.detail-head { display: flex; gap: 16px; align-items: flex-start; }
.detail-head h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.detail-head p { margin-top: 2px; color: var(--muted); font-size: 15.5px; }
.detail-card .checks { margin-top: 20px; font-size: 15.5px; }
.group-shot { max-width: 900px; margin: 48px auto 0; }
.group-shot .shot-panel { max-width: 640px; margin: 0 auto; }
.group-shot p { margin-top: 16px; font-size: 14px; }

/* --- Early-access form ------------------------------------------------------------------------ */

.form-section {
  padding: 72px 0 96px;
  background: radial-gradient(50% 60% at 15% 0%, rgb(254 234 199 / 0.7), transparent 70%);
}
.form-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.form-intro { padding-top: 12px; }
.intro-subtitle { margin-top: 40px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.next-steps { display: grid; gap: 16px; margin-top: 16px; list-style: none; counter-reset: next; }
.next-steps li { position: relative; padding-left: 44px; color: var(--ink-2); counter-increment: next; }
.next-steps li::before {
  content: counter(next);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--stone-900); color: #fff; font-size: 14px; font-weight: 600;
}
.next-steps strong { color: var(--ink); font-weight: 600; }

.intro-points { display: grid; gap: 12px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-strong); list-style: none; }
.intro-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 15.5px; }
.intro-points .icon { margin-top: 3px; color: var(--brand-600); }

.form-card { padding: 36px; box-shadow: var(--shadow); }
.form-card form { display: grid; gap: 20px; }

.form-alert {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px; padding: 12px 16px;
  border: 1px solid #fecaca; border-radius: var(--radius-sm);
  background: var(--red-bg); color: #991b1b; font-size: 15px; font-weight: 500;
}

.form-alert.is-info { border-color: var(--brand-200); background: var(--brand-50); color: var(--brand-800); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.field legend { margin-bottom: 8px; padding: 0; }
.req { color: var(--brand-600); }
.optional { margin-left: 4px; color: var(--muted); font-weight: 400; }

.input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.4 var(--font-sans);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--stone-400); }
.input:hover { border-color: var(--stone-400); }
.input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgb(245 118 11 / 0.2); }
.input[aria-invalid="true"] { border-color: var(--red); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgb(220 38 38 / 0.18); }
select.input {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}
textarea.input { resize: vertical; min-height: 110px; }

.field-error { display: flex; align-items: center; gap: 6px; color: var(--red); font-size: 14px; font-weight: 500; }

.check-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill { position: relative; cursor: pointer; }
.check-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-pill span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px 9px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink-2);
  font-size: 15px; font-weight: 500;
  transition: background-color .15s, border-color .15s, color .15s;
}
.check-pill .icon { opacity: 0.25; }
.check-pill:hover span { border-color: var(--stone-400); }
.check-pill input:checked + span { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-800); }
.check-pill input:checked + span .icon { opacity: 1; color: var(--brand-600); }
.check-pill input:focus-visible + span { outline: 2px solid var(--brand-500); outline-offset: 2px; }

.form-fineprint { margin-top: -6px; color: var(--muted); font-size: 13.5px; text-align: center; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn[aria-busy="true"] { opacity: 0.75; cursor: progress; }

/* --- Thanks / errors -------------------------------------------------------------------------- */

.thanks { padding: 40px 0; }
.thanks-mark {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; margin-bottom: 24px; border-radius: 50%;
  background: var(--brand-100); color: var(--brand-700);
}
.thanks-mark .icon { width: 30px; height: 30px; }
.thanks .hero-lede { margin-left: auto; }
.thanks .muted { margin-top: 16px; }

/* --- Responsive ----------------------------------------------------------------------------------- */

@media (max-width: 1020px) {
  .track { grid-template-columns: repeat(3, 1fr); }
  .track-short { grid-template-columns: repeat(3, 1fr); }
  .track li::after { display: none; }
  .replace-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .feature-row, .feature-row.is-reverse { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature-row.is-reverse .feature-copy { order: 0; }
  .tour { gap: 80px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .form-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; --header-h: 60px; }
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding-top: 56px; }
  .hero::after { height: 22%; }
  .hero-visual { margin-top: 40px; padding-bottom: 48px; }
  .hero-actions .btn { width: 100%; }
  .shot-bar { height: 30px; }
  .shot-bar .dots i { width: 8px; height: 8px; }
  .shot-url { font-size: 11px; padding: 2px 10px; }
  .replace-grid, .card-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .replace-grid { gap: 0; }
  .replace-grid li { padding: 20px 0; }
  .track, .track-short { grid-template-columns: minmax(0, 1fr); }
  .shortcut-list div { grid-template-columns: 76px 1fr; gap: 12px; }
  .keys-demo pre { font-size: 13.5px; padding: 20px 18px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: 24px 20px; }
  .faq summary { font-size: 17px; }
  .faq details p { padding-right: 0; }
  .footer-links { gap: 48px; }
  .cta-band { padding: 64px 0; }
  .cta-band .btn { width: 100%; }
}
