/* NeuraOrder website. Layout: one 1120px column; hero = copy + forecast chart;
   proof numbers carry footnote markers that link to the research page.
   System fonts only (no third-party requests: the site makes no tracking calls). */
:root {
  --bg: #f5f8f7;
  --surface: #ffffff;
  --ink: #12201d;
  --muted: #52615c;
  --line: #d5dfdb;
  --brand: #146b62;
  --brand-strong: #0e524b;
  --brand-soft: #e1f1ed;
  --bright: #2a9d8f;
  --warn: #a65f00;
  --warn-soft: #fbefd9;
  --ok: #1d7438;
  /* research charts: lost sales / carrying stock (checked for colour-blind separation), result / comparison */
  --viz-lost: #a65f00;
  --viz-hold: #2a78d6;
  --viz-us: #146b62;
  --viz-ref: #86938f;
  --radius: 14px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1211; --surface: #111a18; --ink: #e3ece9; --muted: #9caca7; --line: #24312e;
    --brand: #5cc6b8; --brand-strong: #8fdccf; --brand-soft: #123029; --bright: #5cc6b8;
    --warn: #e8ab4f; --warn-soft: #33260f; --ok: #6fcb8c;
    --viz-lost: #c27f17; --viz-hold: #3987e5; --viz-us: #5cc6b8; --viz-ref: #5d6c68;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--bright); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 760; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); font-weight: 720; }
h3, .h3 { font-size: 1.15rem; font-weight: 680; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.eyebrow { font: 600 0.78rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.09em; color: var(--brand); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 560; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.menu-button { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--ink); font: inherit; }
@media (max-width: 760px) {
  .menu-button { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .nav .button { margin-top: 8px; text-align: center; }
}

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .button-primary, .button-primary:hover { color: #08201c; } }
.button-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button-secondary:hover { border-color: var(--brand); color: var(--brand); }
.nav .button { padding: 9px 16px; font-size: 0.95rem; color: #fff; }
@media (prefers-color-scheme: dark) { .nav .button { color: #08201c; } }

/* sections */
section { padding-block: 72px; }
.section-head { display: grid; gap: 12px; max-width: 46rem; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* hero */
.hero { padding-block: 64px 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy .lede { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 0.92rem; color: var(--muted); }
.hero-visual { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 18px 40px -24px rgba(10, 40, 35, 0.35); min-width: 0; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* forecast chart (hero) */
.chart-title { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.chart-title strong { color: var(--ink); }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-bar { fill: color-mix(in srgb, var(--bright) 55%, var(--surface)); }
.c-range { fill: var(--brand-soft); }
.c-line { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.c-dash { fill: none; stroke: var(--brand); stroke-width: 3; stroke-dasharray: 7 7; stroke-linecap: round; }
.c-today { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 4; }
.c-label { fill: var(--muted); font: 600 17px var(--font); }
.c-order { fill: var(--warn); }
.chart-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.chart-foot div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.chart-foot b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.chart-foot span { font-size: 0.78rem; color: var(--muted); }

/* proof numbers */
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.proof { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.proof .big { font-size: clamp(2.1rem, 4vw, 2.8rem); font-weight: 780; letter-spacing: -0.03em; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.05; }
.proof h3 { font-size: 1rem; }
.proof p { font-size: 0.92rem; color: var(--muted); }
sup a { text-decoration: none; font-weight: 700; padding-inline: 1px; }
.headline-proof { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 650; max-width: 50rem; margin-bottom: 28px; text-wrap: balance; }
.headline-proof strong { color: var(--brand); }
@media (max-width: 900px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .proof-grid { grid-template-columns: 1fr; } }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 10px; align-content: start; min-width: 0; }
.feature p { color: var(--muted); font-size: 0.97rem; }
.feature .tag { font: 600 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(step); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 760; font-variant-numeric: tabular-nums; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* callout */
.callout { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px; border-radius: 18px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.callout p { color: var(--muted); margin-top: 6px; }
@media (max-width: 700px) { .callout { grid-template-columns: 1fr; } }

/* pricing */
.billing-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin-bottom: 28px; }
.billing-toggle button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font: 600 0.95rem var(--font); color: var(--muted); cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .billing-toggle button[aria-pressed="true"] { color: #08201c; } }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plan > .button { margin-top: auto; }
.plan.featured { border: 2px solid var(--brand); position: relative; }
.plan .badge { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font: 700 0.72rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .plan .badge { color: #08201c; } }
.plan .price { font-size: 2.4rem; font-weight: 780; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .limit { font-weight: 650; }
.plan ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.95rem; display: grid; gap: 6px; }
.plan .yearly-note { font-size: 0.85rem; color: var(--muted); min-height: 1.4em; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.everything { margin-top: 32px; padding: 24px; border: 1px dashed var(--line); border-radius: 16px; }
.everything ul { columns: 2; gap: 32px; margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
@media (max-width: 640px) { .everything ul { columns: 1; } }

/* tables (research) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font: 600 0.75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--bg); white-space: nowrap; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.us td { background: var(--brand-soft); font-weight: 650; }
.prose { max-width: 46rem; display: grid; gap: 14px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.spaced { margin-top: 20px; }

/* research charts: static SVG (no scripts) drawn from the test results; bars use % widths
   so text keeps its size at every screen width; every bar carries its value */
.viz-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; align-items: start; }
@media (max-width: 900px) { .viz-row { grid-template-columns: 1fr; } }
.viz { margin: 0 0 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.viz-row .viz { margin: 0; }
.viz-solo { max-width: 780px; }
.viz-title { font-size: 1.05rem; }
.viz-sub { color: var(--muted); font-size: 0.9rem; margin-top: -6px; }
.viz-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.85rem; color: var(--muted); }
.viz-legend li { display: inline-flex; align-items: center; gap: 8px; }
.viz-key { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.key-lost { background: var(--viz-lost); }
.key-hold { background: var(--viz-hold); }
.key-us { background: var(--viz-us); }
.key-ref { background: var(--viz-ref); }
.viz-svg { display: block; width: 100%; overflow: visible; }
.viz-multiples { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 28px; }
.v-lost { fill: var(--viz-lost); }
.v-hold { fill: var(--viz-hold); }
.v-us { fill: var(--viz-us); }
.v-ref { fill: var(--viz-ref); }
.v-gap { fill: var(--surface); }
.v-cat { fill: var(--ink); font: 600 14px var(--font); }
.v-val { fill: var(--ink); font: 700 14px var(--font); font-variant-numeric: tabular-nums; }
.v-note { fill: var(--muted); font: 500 13px var(--font); }
.viz figcaption { display: grid; gap: 6px; font-size: 0.86rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.viz-source { font-size: 0.8rem; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 50rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style-position: outside; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* form */
.signup { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.signup-copy { display: grid; gap: 14px; }
.signup-copy ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
form.lead { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 14px; min-width: 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 620; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--bright); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 96px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-status { font-weight: 600; border-radius: 10px; padding: 12px 14px; }
.form-status.ok { background: var(--brand-soft); color: var(--brand-strong); }
.form-status.error { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 900px) { .signup { grid-template-columns: 1fr; } }

/* footnotes + footer */
.footnotes { font-size: 0.86rem; color: var(--muted); display: grid; gap: 8px; max-width: 60rem; margin-top: 28px; padding-left: 20px; }
.footnotes li::marker { font-weight: 700; color: var(--brand); }
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { grid-column: 1 / -1; font-size: 0.82rem; border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* page heads (inner pages) */
.page-head { padding-block: 56px 8px; }
.page-head .wrap { display: grid; gap: 14px; max-width: 1120px; }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 46rem; }
