/* Site styles. All colors/fonts come from tokens.css. Mobile-first:
   base rules are for phones, @media blocks add tablet/desktop layout. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 650; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-section) 0; }
.section + .section { border-top: 1px solid var(--line); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }
.muted { color: var(--ink-soft); }
.eyebrow {
  font: 500 .78rem/1 var(--font-mono); text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent); margin-bottom: 1rem; display: block;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .75em 1.3em; border-radius: 8px;
  font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #c94b08; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.logo-mark { width: 26px; height: 26px; }
.nav-desktop { display: none; }
.nav-desktop a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav-desktop a:hover, .nav-desktop a[aria-current] { color: var(--ink); }

/* Mobile menu: a <details> element, so it works with no JavaScript. */
.nav-mobile summary { list-style: none; cursor: pointer; padding: 8px; font-weight: 600; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] .nav-mobile-panel {
  position: absolute; left: 0; right: 0; top: 68px; background: var(--bg);
  border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
}
.nav-mobile-panel a { display: block; padding: 12px 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav-mobile-panel .btn { margin-top: 16px; border-bottom: 0; text-align: center; }

@media (min-width: 820px) {
  .nav-mobile { display: none; }
  .nav-desktop { display: flex; align-items: center; gap: 28px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 11vw, 140px) 0 var(--space-section); }
.hero h1 { max-width: 15em; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.card p { color: var(--ink-soft); }
.card .card-link { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--accent); }
.card .card-link:hover { text-decoration: underline; }
a.card { text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--ink); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 1rem; }
.num { font: 500 .85rem var(--font-mono); color: var(--accent); }

/* ---------- Status badge ---------- */
.badge {
  display: inline-block; font: 500 .72rem/1 var(--font-mono); text-transform: uppercase;
  letter-spacing: .08em; padding: 6px 9px; border-radius: 999px; white-space: nowrap;
}
.badge-dev { color: var(--status-dev); background: var(--status-dev-bg); }
.badge-pilot { color: var(--status-pilot); background: var(--status-pilot-bg); }
.badge-live { color: var(--status-live); background: var(--status-live-bg); }

/* ---------- Product page ---------- */
.steps { counter-reset: step; display: grid; gap: 56px; }
.step { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) {
  .step { grid-template-columns: 5fr 7fr; gap: 48px; }
  .step:nth-child(even) .step-text { order: 2; }
}
.step-text h3::before {
  counter-increment: step; content: "0" counter(step); display: block;
  font: 500 .85rem var(--font-mono); color: var(--accent); margin-bottom: .6rem;
}
/* Browser-style frame around screenshots */
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 32px -18px rgba(20,33,61,.35); }
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.frame a { display: block; }
.frame-placeholder {
  aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 16px;
  font: .85rem var(--font-mono); color: var(--ink-soft);
  background: repeating-linear-gradient(135deg, var(--bg) 0 12px, var(--surface) 12px 24px);
}
.video { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list-check li { padding-left: 28px; position: relative; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 2px; background: var(--accent); }
.status-box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 24px 28px; }

/* ---------- Dark call-to-action band ---------- */
.cta-band { background: var(--ink); color: var(--bg); padding: var(--space-section) 0; }
.cta-band .lead { color: #c9d0dc; }
.cta-band .btn-ghost { border-color: var(--bg); color: var(--bg); }
.cta-band .btn-ghost:hover { background: var(--bg); color: var(--ink); }

/* ---------- Two-column text ---------- */
.split { display: grid; gap: 32px; }
@media (min-width: 860px) { .split { grid-template-columns: 4fr 7fr; gap: 64px; } }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #cfccc2;
  border-radius: 8px; background: var(--surface); color: var(--ink); width: 100%;
}
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { display: none; } /* honeypot: hidden from people, bots fill it in */
.form .btn { justify-self: start; }
.form-note { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Prose pages (privacy) ---------- */
.prose { max-width: 42em; }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; font-size: .92rem; color: var(--ink-soft); }
.site-footer .container { display: grid; gap: 24px; }
@media (min-width: 720px) { .site-footer .container { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* Keep the header CTA's white text (nav link styles would otherwise override it). */
.site-header a.btn-primary, .site-header a.btn-primary:hover { color: var(--accent-ink); }

/* Tall phone screenshots: cap the height and center them inside the frame. */
.frame img { max-height: 560px; width: auto; margin: 0 auto; }
