/* manuvr.ai site styles.
   Colour, radius, spacing and shadow tokens: manuvr docs/product/design-guidelines.md §2.1–2.3.
   Values marked "site" are the landing-page additions from the LP-1 v2 layout note
   (MNVR-145): the display type scale, the paper band and the 48 px controls. */

@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #FFFFFF; --bg-subtle: #F7F7F8; --bg-muted: #F2F2F4;
  --border: #E0E0E3; --border-input: #8A8D96;
  --text: #1B1B1F; --text-secondary: #3E4250; --text-muted: #62666D;
  --accent: #0E5A5E; --accent-hover: #16787D; --accent-subtle: #E7F1F1;
  --model: #4651B8; --model-subtle: #EEF0FB; --model-border: #6670CF;
  --success: #1F5E3B; --success-subtle: #F1F9F4;
  --warning: #A35A00; --warning-subtle: #FFF4E5;
  --danger: #B42318; --danger-subtle: #FEF3F2;
  --env-staging: #4A3A8C; --env-staging-subtle: #F2EFFB;
  --paper: #F6F5F1;                                  /* site: brand paper */
  --shadow: 0 8px 24px rgba(20, 20, 30, .12);        /* the one shadow level */
  --radius-input: 6px; --radius-panel: 12px;
  --control-h: 48px;                                 /* site: landing-page controls */

  /* site display scale, phone first (overridden at 1024 px and up) */
  --h1-size: 34px; --h1-lh: 1.12;
  --lede-size: 18px;
  --h2-size: 24px;
  --body-size: 16px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 400 var(--body-size)/1.55 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i12 { width: 12px; height: 12px; }

.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--bg); padding: 8px 12px; border-radius: var(--radius-input); z-index: 10; }
.skip:focus { top: 8px; }

/* Layout */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.band-paper { background: var(--paper); }
.band-white { background: var(--bg); border-top: 1px solid var(--border); }

/* Header */
.hdr { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.hdr .logo img { height: 26px; width: auto; }
.early { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 600; }

/* Hero */
.hero { padding-block: 32px 48px; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
h1 { font-size: var(--h1-size); line-height: var(--h1-lh); font-weight: 650; letter-spacing: -0.025em; text-wrap: balance; }
.lede { font-size: var(--lede-size); line-height: 1.4; font-weight: 500; color: var(--text-secondary); margin-top: 12px; }
.gea { font-size: 16px; font-weight: 600; margin-top: 32px; }

/* Forms */
.form { margin-top: 10px; max-width: 520px; }
.field + .field { margin-top: 20px; }
.label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.label .opt { font-weight: 400; color: var(--text-muted); }
.input, .textarea { display: block; width: 100%; min-height: var(--control-h); border: 1px solid var(--border-input); border-radius: var(--radius-input); background: var(--bg); padding: 0 14px; font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.4; color: var(--text); }
.textarea { padding: 12px 14px; resize: vertical; min-height: calc(3 * 1.4em + 26px); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.inline { display: flex; flex-direction: column; gap: 8px; }
.inline .input { flex: 1; }
.hint, .err { font-size: 14px; line-height: 1.5; margin-top: 8px; }
.hint { color: var(--text-muted); }
.err { color: var(--danger); display: flex; gap: 6px; align-items: flex-start; }
.err .i { margin-top: 3px; }
.priv { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin-top: 4px; }
.form .priv { margin-top: 12px; }
.hint + .priv { margin-top: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control-h); padding: 0 24px; border-radius: var(--radius-input); border: 1px solid var(--accent); background: var(--accent); color: #fff; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; width: 100%; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn[aria-disabled="true"] { cursor: progress; opacity: .8; }
.btn-outline { background: var(--bg); color: var(--accent); }
.btn-outline:hover { background: var(--accent-subtle); color: var(--accent); border-color: var(--accent); }

fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
.radios { display: grid; gap: 8px; margin-top: 2px; }
.radio { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-input); background: var(--bg); font-size: 16px; line-height: 1.35; cursor: pointer; }
.radio:hover { border-color: var(--border-input); }
.radio input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; }
.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-subtle); }
.radio:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.radio input:focus-visible { outline: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ts { margin-top: 12px; }
.ts:empty { display: none; }

.alert { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-input); border: 1px solid #F3C4BF; background: var(--danger-subtle); color: var(--danger); font-size: 14px; line-height: 1.5; }
.alert .i { margin-top: 3px; }
.alert .ref { display: block; color: var(--text-muted); font-size: 13px; }
.alert ul { margin: 4px 0 0 18px; }
.alert a { color: var(--danger); }

.done { margin-top: 10px; max-width: 520px; padding: 16px; border-radius: var(--radius-input); border: 1px solid #BFDCCB; background: var(--success-subtle); color: var(--text); display: flex; gap: 10px; align-items: flex-start; }
.done .i { color: var(--success); width: 20px; height: 20px; margin-top: 2px; }
.done strong { display: block; font-weight: 600; }
.done:focus { outline: none; }
.done:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.noscript { margin-top: 10px; font-size: 14px; color: var(--text-secondary); }

/* Product card (D-1 change card, sample data); presentational, read as one image */
/* The card is an illustration: one image to assistive tech, not selectable, nothing interactive. */
.card { -webkit-user-select: none; user-select: none; pointer-events: none; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-panel); box-shadow: var(--shadow); overflow: hidden; color: var(--text); }
.card .req { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-secondary); }
.agent { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--model-subtle); color: var(--model); font-weight: 500; }
.env { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; border-radius: 6px; background: var(--env-staging-subtle); color: var(--env-staging); font-size: 11px; font-weight: 500; }
.env::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--env-staging); }
.cardtitle { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 10px; }
.cardtitle h3 { font-size: 14px; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.pill.wait { background: var(--warning-subtle); color: var(--warning); }
.pill.ok { background: var(--success-subtle); color: var(--success); }
.pill.stop { background: var(--danger-subtle); color: var(--danger); }
.pill.kind { background: var(--bg-muted); color: var(--text-secondary); }
.row { display: grid; grid-template-columns: 1fr; row-gap: 6px; column-gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 13px; }
.row > .mono { white-space: nowrap; }
.row .pill { justify-self: start; }
.row .sku { font-size: 12px; color: var(--text-secondary); }
.row s { color: var(--text-muted); }
.row .to { font-weight: 600; }
.row .arrow { display: inline; color: var(--text-muted); vertical-align: -1px; margin: 0 4px; }
.row.bad { background: var(--danger-subtle); }
.row.bad .to { color: var(--danger); }
.check { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; background: #fff; border: 1px solid #F3C4BF; border-radius: 6px; padding: 10px 12px; }
.check .t { font-size: 12px; font-weight: 600; }
.check .d { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.check .x { color: var(--danger); margin-top: 1px; }
.check .pill.kind { margin-left: 24px; }
.also { display: none; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); background: var(--bg-subtle); font-size: 12px; color: var(--text-secondary); }
.also .k { color: var(--text-muted); }
.cfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); }
.rev { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.approve { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
.done-link { margin-top: 4px; }

/* Pilot band (home) */
.pilot { padding-block: 40px 32px; display: grid; grid-template-columns: minmax(0, 1fr); }
.pilot h2 { font-size: var(--h2-size); line-height: 1.2; font-weight: 650; letter-spacing: -0.015em; }
.pilot p { color: var(--text-secondary); margin-top: 10px; max-width: 520px; }
.pilot .act { margin-top: 20px; }
.mail { font-size: 14px; color: var(--text-secondary); margin-top: 14px; }

/* Inner pages (/pilot, /privacy) */
.page { padding-block: 32px 56px; max-width: 640px; }
.page h1 { font-size: var(--h2-size); line-height: 1.2; letter-spacing: -0.015em; }
.page .intro { color: var(--text-secondary); margin-top: 10px; }
.page .form { max-width: 560px; margin-top: 24px; }
.page .form .btn { margin-top: 24px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 16px; }
.prose h2 { font-size: 18px; line-height: 1.3; font-weight: 600; margin-top: 28px; }
.prose p, .prose ul { margin-top: 8px; color: var(--text-secondary); }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 4px; }
.prose .updated { color: var(--text-muted); font-size: 14px; margin-top: 12px; }

/* Footer */
.ftr { border-top: 1px solid var(--border); background: var(--bg); }
.ftr .wrap { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 24px; padding-bottom: 32px; font-size: 13px; color: var(--text-muted); }
.ftr a { color: var(--text-muted); }

/* Wider than a phone: the email field and button share a row */
@media (min-width: 560px) {
  .inline { flex-direction: row; }
  .inline .btn { width: auto; flex: none; }
  .page .form .btn { width: auto; }
  .row { grid-template-columns: 112px 1fr auto; row-gap: 0; }
  .row .pill { justify-self: end; }
  .env { margin-left: auto; }
  .check { flex-wrap: nowrap; }
  .check .pill.kind { margin-left: auto; }
  .also { display: flex; }
  .pilot .act .btn { width: auto; }
}

@media (min-width: 768px) {
  :root { --gutter: 48px; }
}

/* Desktop: two columns, display scale */
@media (min-width: 1024px) {
  :root { --h1-size: 56px; --h1-lh: 1.07; --lede-size: 22px; --h2-size: 32px; --body-size: 18px; --gutter: 80px; }
  .hdr { height: 72px; }
  .hdr .logo img { height: 32px; }
  .hero { grid-template-columns: minmax(0, 560fr) minmax(0, 600fr); column-gap: 64px; padding-block: 72px; align-items: start; }
  .lede { margin-top: 16px; }
  .gea { margin-top: 40px; }
  .form { margin-top: 12px; }
  .pilot { grid-template-columns: minmax(0, 560fr) minmax(0, 600fr); column-gap: 64px; padding-block: 48px 72px; }
  .pilot p { margin-top: 12px; }
  .pilot .act { margin-top: 0; padding-top: 6px; }
  .page { padding-block: 56px 96px; }
  .page .intro { font-size: 18px; }
  .prose p, .prose ul { font-size: 16px; }
}

@media (min-width: 1280px) {
  :root { --gutter: 120px; }
  .hero, .pilot { column-gap: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* "Other" free text under the data-store radios */
.other { margin: 4px 0 4px 30px; }
