/* Layout and components for the marketing site. Values come from tokens.css only. No shadows, no gradients. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.5 var(--font);
  font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; transition: color .15s ease-out; }
a:hover { color: var(--link); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-weight: 400; margin: 0 0 .5em; }
h1 { font-size: 2rem; line-height: 1.1; letter-spacing: -0.04em; }
h2 { font-size: 1.5rem; line-height: 1.24; font-weight: 450; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; line-height: 1.24; font-weight: 500; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--font); }
.display { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 400; }
.eyebrow { font-size: 11px; line-height: 1; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 0 0 12px; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 42rem; }
.small { font-size: .875rem; line-height: 1.43; } .xs { font-size: .75rem; line-height: 1.33; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--bg); padding: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 500; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.brand:hover { color: var(--accent); }
.ani-dark { display: none; }
:root[data-theme="dark"] .ani-light { display: none; } :root[data-theme="dark"] .ani-dark { display: inline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ani-light { display: none; } :root:not([data-theme="light"]) .ani-dark { display: inline; } }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: var(--r-pill); font-size: .9375rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { background: var(--surface); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu { display: none; }
@media (max-width: 1023px) {
  .nav, .tools .hide-sm { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-panel { display: flex; }
  .menu-panel { display: none; flex-direction: column; position: absolute; right: 0; top: 44px; min-width: 220px;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-box); padding: 8px; }
  .menu-panel a { padding: 10px 12px; color: var(--text); text-decoration: none; border-radius: var(--r-subtle); }
  .menu-panel a:hover { color: var(--link); background: var(--surface); }
}

/* Buttons: pill; coral only for the one primary CTA per page; everything turns blue on hover */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 18px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; color: var(--text);
  font: 500 .9375rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out; }
.btn:hover, .btn:focus-visible { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.btn-primary { background: var(--cta); border-color: var(--cta); color: var(--cta-text); }
.btn-sm { min-height: 34px; padding: 6px 14px; font-size: .875rem; }
.btn-subtle { border-radius: var(--r-subtle); background: var(--raised); border-color: var(--raised); color: var(--muted); }
.icon-btn { min-width: 34px; padding: 6px 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 12px; }

/* Sections and surfaces */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.hero { padding: 72px 0 64px; }
.hero .display { max-width: 18ch; margin-bottom: 20px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } }
.surface { border: 1px solid var(--line); border-radius: var(--r-box); padding: 20px; background: var(--bg); }
.surface-2 { border: 1px solid var(--line); border-radius: var(--r-box); padding: 20px; background: var(--surface); }
.surface h3, .surface-2 h3 { margin-bottom: 8px; }
.surface p:last-child, .surface-2 p:last-child { margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 20px 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: var(--r-pill);
  border: 1px solid var(--line); display: grid; place-items: center; font-size: .875rem; color: var(--muted); }
.tag { display: inline-block; font-size: .75rem; line-height: 1; padding: 5px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.tag-info { border-color: var(--info); color: var(--info); background: transparent; }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--warning); border-radius: var(--r-box); padding: 12px 16px; background: var(--surface); }
.list { padding-left: 1.2em; margin: 0; } .list li { margin-bottom: 8px; }
.check li::marker { content: "✓  "; color: var(--success); }
.cross li::marker { content: "✗  "; color: var(--muted); }

/* Sample report */
.report { border: 1px solid var(--line); border-left: 3px solid var(--error); border-radius: var(--r-box); background: var(--surface); padding: 20px; }
.report .rid { font-size: .75rem; color: var(--faint); }
.bar { height: 6px; border-radius: var(--r-pill); background: var(--raised); overflow: hidden; margin: 8px 0 12px; }
.bar > span { display: block; height: 100%; background: var(--error); }
.quote { border-left: 2px solid var(--success); padding: 4px 0 4px 12px; margin: 8px 0; color: var(--text); }
.quote::before { content: "✓ "; color: var(--success); }

/* Prose pages (legal, about, how it works) */
.page-head { padding: 56px 0 24px; }
.prose { max-width: 46rem; padding-bottom: 72px; }
.prose h2 { margin-top: 2em; } .prose h3 { margin-top: 1.6em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .875rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.prose th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--faint); }
.prose blockquote { margin: 1em 0; padding: 4px 0 4px 16px; border-left: 2px solid var(--line); color: var(--muted); }

/* Tables (pricing) */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-box); overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .9375rem; }
table.t th, table.t td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
table.t tr:last-child td { border-bottom: 0; }
table.t th { background: var(--surface); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--faint); }
table.t .num { text-align: right; white-space: nowrap; }

/* FAQ */
details.qa { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.qa summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.qa summary::after { content: "+"; color: var(--faint); }
details.qa[open] summary::after { content: "−"; }
details.qa summary:hover { color: var(--accent); }
details.qa p { margin: 12px 0 0; color: var(--muted); }

/* Forms */
.form { max-width: 28rem; }
.form-field, .form-group { margin-bottom: 16px; }
.form label, .form-label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 6px; }
.form input[type=text], .form input[type=email], .form input[type=url], .form select, .form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-field); padding: 9px 12px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form .checkboxes label, .form .form-checkbox label { display: inline; font-weight: 400; }
.form button[type=submit], .form .button { background: var(--cta); border: 1px solid var(--cta); color: var(--cta-text);
  border-radius: var(--r-pill); min-height: 40px; padding: 8px 20px; font: 500 .9375rem var(--font); cursor: pointer; }
.form button[type=submit]:hover, .form button[type=submit]:focus-visible { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.form-errors, .alert { border: 1px solid var(--line); border-left: 3px solid var(--error); border-radius: var(--r-box); padding: 12px 16px; margin-bottom: 16px; }
.alert.success, .notices.green, .notices.success { border-left-color: var(--success); }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 48px 0 32px; font-size: .875rem; color: var(--muted); }
.foot .cols { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .foot .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot ul { list-style: none; padding: 0; margin: 0; } .foot li { margin-bottom: 8px; }
.foot a { color: var(--muted); text-decoration: none; } .foot a:hover { color: var(--link); }
.foot .legal-note { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: .75rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .top, .foot .cols, .cta-row { display: none; } }

/* Pricing: annual/monthly toggle without JS (radio + sibling panels); annual is checked by default */
.plans .panel { display: none; }
.plans:has(#p-annual:checked) .panel-annual, .plans:has(#p-monthly:checked) .panel-monthly { display: block; }
.plans span.panel { display: none; }
.plans:has(#p-annual:checked) span.panel-annual, .plans:has(#p-monthly:checked) span.panel-monthly { display: inline; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px; margin: 0 0 20px; }
.seg input { position: absolute; opacity: 0; }
.seg label { padding: 6px 16px; border-radius: var(--r-pill); cursor: pointer; color: var(--muted); font-size: .9375rem; }
.seg input:checked + label { background: var(--raised); color: var(--text); }
.seg label:hover { color: var(--accent); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.price { font-size: 1.875rem; letter-spacing: -0.025em; margin: 0; }
@media (min-width: 768px) { .g4 { grid-template-columns: repeat(4, 1fr); } }
.plan-icon { display: inline-flex; color: var(--text); }
.plan-icon svg { width: 40px; height: 40px; }
.pad-bottom { padding-bottom: 72px; }
.pad-bottom-sm { padding-bottom: 32px; }

/* Coming-soon newsletter hero (#260, docs/design/brand-ani/COMING-SOON.md): tokens only, no shadows, one coral CTA. */
.cs-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.cs-art { position: absolute; top: 0; right: 0; width: 58%; height: 100%; z-index: 0; pointer-events: none; }
.cs-art .blob { fill: var(--accent); opacity: .07; }
.cs-art .t { fill: var(--bg); stroke: var(--line); stroke-width: 1; }
.cs-art .t-hi { stroke: var(--accent); }
.cs-art .l { fill: var(--line); } .cs-art .l-hi { fill: var(--accent); opacity: .5; }
.cs-art .m { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cs-art { opacity: .6; }
.cs-grid { position: relative; z-index: 1; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.cs-copy h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 16ch; }
.cs-copy .lead { margin-bottom: 28px; }
.cs-ani { display: flex; align-items: center; gap: 14px; }
.cs-ani img { flex: none; }
.cs-bubble { position: relative; max-width: 22rem; margin: 0; padding: 10px 16px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-box); font-size: .9375rem; }
.cs-bubble::before { content: ""; position: absolute; left: -6px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  background: var(--bg); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.cs-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-box); padding: 28px; }
.cs-card .form { max-width: none; }
.cs-card-title { font-size: 1.25rem; font-weight: 500; margin-bottom: 16px; }
.cs-what { max-width: 46rem; padding-top: 48px; }
@media (prefers-reduced-motion: no-preference) {
  .cs-art .t-pulse { animation: cs-pulse 3.2s ease-in-out infinite; }
  @keyframes cs-pulse { 50% { stroke-width: 3; } }
}
@media (max-width: 1023px) {
  .cs-grid { padding-top: 32px; padding-bottom: 40px; gap: 28px; }
  .cs-art { display: none; }
  .cs-card { padding: 20px; }
}
