:root {
  color-scheme: dark;
  --bg: #0d1117;
  --bg-2: #131a23;
  --card: #17202b;
  --card-2: #1e2934;
  --line: #2a3644;
  --text: #f2f4f7;
  --muted: #9aa6b5;
  --steel: #6f93b5;
  --ice: #a9c8e6;
  --sage: #8fb3b0;
  --copper: #d08a57;
  --ok: #7fd0a8;
  --warn: #e0b36a;
  --alert: #e08a7a;
  --btn-bg: #a9c8e6;
  --btn-text: #0b1220;
  --btn-hover: #ffffff;
  --before-bg: #1d1a18;
  --before-line: #3d3129;
  --cta-from: #1e2d3f;
  --cta-to: #0f1620;
  --rel-from: #6f93b5;
  --rel-to: #35506b;
  --glow: rgba(111, 147, 181, .18);
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: Calibri, "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* Light theme: follows the system setting unless the visitor picks one with the toggle */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f8fb; --bg-2: #eef2f7; --card: #ffffff; --card-2: #f1f5f9; --line: #d5dde8;
    --text: #121a24; --muted: #4f5b70; --steel: #3d5a73; --ice: #2e5f8a; --sage: #3c7470;
    --copper: #9a5226; --ok: #1d7a4f; --warn: #8a5f12; --alert: #a8422f;
    --btn-bg: #2e5f8a; --btn-text: #ffffff; --btn-hover: #1f4a6e;
    --before-bg: #faf1ea; --before-line: #e6cdbb;
    --cta-from: #eaf0f7; --cta-to: #d9e4f1; --rel-from: #3d5a73; --rel-to: #2c4a63;
    --glow: rgba(61, 90, 115, .12);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fb; --bg-2: #eef2f7; --card: #ffffff; --card-2: #f1f5f9; --line: #d5dde8;
  --text: #121a24; --muted: #4f5b70; --steel: #3d5a73; --ice: #2e5f8a; --sage: #3c7470;
  --copper: #9a5226; --ok: #1d7a4f; --warn: #8a5f12; --alert: #a8422f;
  --btn-bg: #2e5f8a; --btn-text: #ffffff; --btn-hover: #1f4a6e;
  --before-bg: #faf1ea; --before-line: #e6cdbb;
  --cta-from: #eaf0f7; --cta-to: #d9e4f1; --rel-from: #3d5a73; --rel-to: #2c4a63;
  --glow: rgba(61, 90, 115, .12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn-bg); color: var(--btn-text); padding: 10px 14px; border-radius: 6px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
section { padding: 100px 0; position: relative; }
.alt { background: var(--bg-2); }
.border-t { border-top: 1px solid var(--line); }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.015em; line-height: 1.12; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }
p { color: var(--muted); }
p + p { margin-top: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--steel); }
.lead { font-size: 1.15rem; max-width: 720px; }
.head { max-width: 800px; margin-bottom: 52px; }
.accent { color: var(--ice); font-style: italic; }
.fine { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 1rem; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s, color .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-text); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--ice); color: var(--ice); }
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--steel); text-decoration: none; }
.crumb a:hover { color: var(--ice); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Nav */
header.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
header.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.wordmark { font-family: var(--sans); font-weight: 700; font-size: 1.12rem; letter-spacing: 0.02em; color: var(--text); }
.brand-f { margin-bottom: 14px; }
.logo { height: 50px; width: auto; display: block; color: var(--text); }
.brand-f .logo { height: 58px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.93rem; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--btn-text); }
.theme-toggle { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 14px; font-size: .85rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.theme-toggle:hover { color: var(--text); border-color: var(--ice); }
.theme-toggle .dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

/* 01 Hero */
.hero { padding: 170px 0 100px; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -220px; right: -220px; width: 760px; height: 760px; background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hook { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ice); margin-bottom: 18px; }
.hero .lead { margin-bottom: 34px; }
.hint { margin-top: 28px; font-size: .92rem; }
.split-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0; }
.sc-col { padding: 28px 24px; }
.sc-hi { background: var(--card-2); border-left: 1px solid var(--line); }
.sc-tag { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); font-weight: 700; margin-bottom: 16px; }
.sc-item { padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.sc-item.done::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.sc-hi .sc-item { color: var(--text); }

/* 02 Normal week */
.week { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.week li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; }
.week .day { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--steel); margin-bottom: 10px; }
.week p { color: var(--text); font-size: .98rem; }
.bridge { margin-top: 36px; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); text-align: center; color: var(--text); }

/* 03 Problems */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--steel); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; }
.problem .tag { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); font-weight: 700; margin-bottom: 10px; }
.problem dl { display: grid; gap: 10px; margin: 14px 0 18px; }
.problem dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); font-weight: 700; }
.problem dd { color: var(--muted); font-size: .95rem; margin: 0 0 6px; }
.problem .more { margin-top: auto; color: var(--ice); font-weight: 700; text-decoration: none; font-size: .95rem; }
.problem .more:hover { text-decoration: underline; }

/* 04 Calculator */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 36px; margin: 0; }
.calc-inputs, .calc-assume { border: none; padding: 0; min-width: 0; }
.calc-inputs { grid-column: 1; }
.calc-assume { grid-column: 1; margin-top: 8px; }
legend { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); font-weight: 700; margin-bottom: 14px; padding: 0; }
.fld { display: grid; gap: 6px; margin-bottom: 14px; }
.fld label { font-size: .9rem; color: var(--text); }
.fld input { width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.fld input:focus { outline: 2px solid var(--ice); outline-offset: 1px; }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.calc-inputs legend { grid-column: 1 / -1; }
.calc-assume .fld { max-width: 420px; }
.calc-note { font-size: .82rem; color: var(--muted); margin-top: 6px; max-width: 480px; }
.calc-result { grid-column: 2; grid-row: 1 / span 2; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 18px; align-content: start; position: sticky; top: 96px; }
.calc-result .label { font-size: .84rem; color: var(--muted); }
.calc-result .big { font-family: var(--serif); font-size: 2.5rem; color: var(--copper); font-weight: 700; line-height: 1.1; }
.res-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.res-split > div { background: var(--card); border-radius: 10px; padding: 14px; }
.res-split b { display: block; font-size: 1.3rem; color: var(--text); }
.res-split .sub { font-size: .8rem; color: var(--muted); }
.breakdown { width: 100%; border-collapse: collapse; font-size: .92rem; }
.breakdown caption { text-align: left; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); font-weight: 700; margin-bottom: 8px; }
.breakdown th, .breakdown td { padding: 9px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.breakdown td { text-align: right; color: var(--text); }
.breakdown th { color: var(--muted); }

/* 05 Shift */
.shift { display: grid; grid-template-columns: 1fr auto 1.3fr; gap: 24px; align-items: stretch; }
.shift-before, .shift-after { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.shift-before { background: var(--before-bg); border-color: var(--before-line); }
.shift-after { border-color: var(--ice); }
.shift-h { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; color: var(--copper); }
.shift-after .shift-h { color: var(--ice); }
.shift-before ul { list-style: none; display: grid; gap: 8px; }
.shift-before li { color: var(--muted); }
.shift-before li::before { content: "✕ "; color: var(--copper); }
.shift-arrow { align-self: center; color: var(--steel); font-size: 1.8rem; }
.chain { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chain li { background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 10px; text-align: center; font-weight: 700; font-size: .92rem; color: var(--text); }
.chain li:not(:last-child)::after { content: none; }

/* 06 What is AudiStory */
.what { align-items: center; }
.quote { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ice); margin-top: 24px; }
.thread { list-style: none; position: relative; padding-left: 28px; }
.thread::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--steel); }
.thread li { position: relative; padding: 10px 0 14px; }
.thread li::before { content: ""; position: absolute; left: -26px; top: 16px; width: 11px; height: 11px; background: var(--bg-2); border: 1px solid var(--ice); border-radius: 50%; }
.thread li:last-child::before { background: var(--ice); }
.thread span { display: block; color: var(--text); font-weight: 700; font-family: var(--serif); font-size: 1.1rem; }
.thread small { color: var(--muted); font-size: .9rem; }

/* 07 Intake */
.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.channel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; }
.ch-tag { display: none; }
.channel h3 { font-size: 1.15rem; color: var(--text); }
.channel p { font-size: .94rem; }
.note { margin-top: 18px; font-size: .9rem; }
.pipeline { margin-top: 48px; background: var(--card-2); border: 1px solid var(--steel); border-radius: 16px; padding: 30px; }
.pipe-title { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ice); font-weight: 700; margin-bottom: 16px; }
.pipeline ol { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pipeline li { background: var(--card); border-radius: 8px; padding: 14px 10px; text-align: center; font-weight: 700; color: var(--text); position: relative; }
.pipeline li:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); color: var(--steel); font-size: 1rem; z-index: 1; }
.pipeline p { margin-top: 16px; font-size: .94rem; }

/* 08 Workflows */
.wf-list { display: grid; gap: 12px; }
.wf { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.wf[open] { border-color: var(--steel); }
.wf summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr auto; column-gap: 18px; row-gap: 4px; align-items: center; padding: 22px 26px; }
.wf summary::-webkit-details-marker { display: none; }
.wf-no { grid-row: 1 / span 2; font-family: var(--serif); font-size: 1.6rem; color: var(--steel); }
.wf-name { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); font-weight: 700; }
.wf-head { grid-column: 2; font-family: var(--serif); font-size: 1.35rem; color: var(--text); line-height: 1.25; }
.wf-cta { grid-column: 3; grid-row: 1 / span 2; font-size: .9rem; color: var(--ice); font-weight: 700; white-space: nowrap; }
.wf-cta::after { content: " +"; }
.wf[open] .wf-cta::after { content: " –"; }
.wf-body { padding: 0 26px 26px 100px; }
.wf-body > p { color: var(--muted); }
.flow-line { font-size: .95rem; color: var(--ice); background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; }
.caps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; }
.caps li { color: var(--muted); font-size: .94rem; padding-left: 18px; position: relative; }
.caps li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--steel); transform: rotate(45deg); }
.gate { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: stretch; }
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checks li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; color: var(--text); font-weight: 600; font-size: .94rem; }
.checks li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.release { background: linear-gradient(160deg, var(--rel-from), var(--rel-to)); color: #fff; border-radius: 14px; padding: 28px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.release small { letter-spacing: .2em; text-transform: uppercase; font-size: .74rem; opacity: .85; font-weight: 700; }
.release b { font-family: var(--serif); font-size: 1.9rem; margin: 10px 0; line-height: 1.15; }
.release p { color: #e3ecf6; font-size: .95rem; }
.asks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ask { background: var(--bg-2); border: 1px solid var(--line); color: var(--text); padding: 9px 14px; border-radius: 8px; cursor: pointer; font-size: .92rem; font-weight: 600; }
.ask:hover, .ask[aria-pressed="true"] { border-color: var(--ice); color: var(--ice); }
.answer { margin-top: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 22px; min-height: 120px; }
.answer .meta { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); font-weight: 700; margin-bottom: 8px; }
.answer p { color: var(--text); }
.answer .src { margin-top: 10px; font-size: .84rem; color: var(--muted); }

/* 09 AI */
.ai-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ai-list li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; color: var(--text); font-weight: 600; }
.principle { margin-top: 40px; text-align: center; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

/* 10 ERP */
.erp-points { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.erp-points li { color: var(--muted); padding-left: 22px; position: relative; }
.erp-points li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--steel); transform: rotate(45deg); }
.erp-points b { color: var(--text); }
.erp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.erp-grid > div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; text-align: center; font-weight: 700; color: var(--text); font-size: .95rem; }

/* Implementation */
.impl { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.impl li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 10px; text-align: center; font-family: var(--serif); font-weight: 700; color: var(--text); position: relative; }
.impl li:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); color: var(--steel); z-index: 1; }
.impl li.live { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }

/* 11 Dashboard */
.dash-wrap { align-items: center; }
.control { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.ctl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 16px; }
.ctl-head b { font-family: var(--serif); font-size: 1.15rem; }
.ctl-head small { color: var(--muted); font-size: .78rem; }
.ctl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 10px; }
.tile span { color: var(--text); font-size: .9rem; font-weight: 600; }
.st { font-style: normal; font-size: .72rem; font-weight: 700; padding: 4px 8px; border-radius: 999px; justify-self: start; border: 1px solid; }
.st.ok { color: var(--ok); border-color: rgba(127,208,168,.4); }
.st.watch { color: var(--warn); border-color: rgba(224,179,106,.4); }
.st.alert { color: var(--alert); border-color: rgba(224,138,122,.45); }

/* 12 Outcomes */
.ba { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ba > div { padding: 22px 26px; }
.ba .h { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4px; }
.ba .before .h { color: var(--copper); }
.ba .after .h { color: var(--ice); }
.ba .before { background: var(--before-bg); }
.ba .after { background: var(--card); border-left: 1px solid var(--line); }
.ba .row { padding: 13px 0; border-top: 1px solid var(--line); font-size: 1rem; }
.ba .before .row { color: var(--muted); }
.ba .after .row { color: var(--text); font-weight: 600; }
.ba .after .row::before { content: "→ "; color: var(--ice); }
.exec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.exec > div { border-top: 2px solid var(--steel); padding-top: 14px; }
.exec .k { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); font-weight: 700; margin-bottom: 6px; }
.exec b { color: var(--text); font-family: var(--serif); font-size: 1.1rem; font-weight: 700; }
.closing-line { margin-top: 36px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ice); }

/* 13 Proof */
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ph { border: 1px dashed var(--steel); border-radius: 14px; padding: 28px 22px; min-height: 150px; display: grid; gap: 8px; align-content: center; text-align: center; }
.ph small { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--copper); font-weight: 700; }
.ph b { font-family: var(--serif); font-size: 1.15rem; color: var(--text); }
.ph span { font-size: .88rem; color: var(--muted); }

/* 14 Diagnose */
.diag { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: start; }
.diag-form { display: grid; gap: 12px; }
.dq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.dq fieldset { border: none; padding: 0; min-width: 0; }
.dq legend { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: .98rem; color: var(--text); font-weight: 600; margin-bottom: 12px; display: flex; gap: 12px; align-items: baseline; }
.dq legend span { font-family: var(--serif); color: var(--steel); font-size: 1.1rem; min-width: 22px; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opts label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); cursor: pointer; font-size: .92rem; }
.opts label:has(input:checked) { border-color: var(--ice); color: var(--ice); background: var(--card-2); }
.opts input { accent-color: var(--ice); }
.score { position: sticky; top: 96px; background: var(--card-2); border: 1px solid var(--ice); border-radius: 16px; padding: 28px; display: grid; gap: 14px; }
.score-label { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); font-weight: 700; }
.score-num { font-family: var(--serif); font-size: 3rem; color: var(--text); font-weight: 700; line-height: 1; }
.score-band { color: var(--text); font-size: 1rem; }
.score-progress { font-size: .85rem; color: var(--muted); }
.weak b { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.weak ul { list-style: none; margin-top: 8px; display: grid; gap: 6px; }
.weak li { color: var(--muted); font-size: .92rem; padding-left: 16px; position: relative; }
.weak li::before { content: "–"; position: absolute; left: 0; color: var(--copper); }
.score .btn { justify-content: center; }

/* 15 Final CTA + form */
.cta-band { background: linear-gradient(135deg, var(--cta-from), var(--cta-to)); border: 1px solid var(--line); border-radius: 22px; padding: 72px 36px; text-align: center; margin-bottom: 56px; }
.cta-band h2 { max-width: 760px; margin: 0 auto 16px; }
.cta-band > p { max-width: 620px; margin: 0 auto 30px; }
.brand-line { margin-top: 34px; font-family: var(--serif); font-style: italic; color: var(--ice); font-size: 1.1rem; }
.form-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
label { font-size: .84rem; font-weight: 700; color: var(--muted); display: grid; gap: 6px; }
label.full { grid-column: 1 / -1; }
input, select, textarea { color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%; font-weight: 400; }
textarea { min-height: 90px; resize: vertical; }
#demo-form .btn { grid-column: 1 / -1; }
.success { grid-column: 1 / -1; padding: 14px; border-radius: 8px; background: rgba(127,208,168,.12); color: var(--ok); font-weight: 600; }
.success[hidden], .fallback[hidden], .form-error[hidden] { display: none; }
.form-error { grid-column: 1 / -1; color: var(--alert); font-size: .9rem; font-weight: 600; }
.fallback { grid-column: 1 / -1; padding: 14px; border-radius: 8px; border: 1px solid var(--warn); color: var(--text); font-size: .92rem; }
.fallback a { color: var(--ice); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#lead-form { position: relative; }
#lead-form .btn { grid-column: 1 / -1; }
.note { font-size: .82rem; color: var(--muted); grid-column: 1 / -1; }

/* ---- Privacy links and cookie consent ---- */
.legal-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--ice); }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.link-btn:hover { color: var(--ice); }
html:not(.consent-on) [data-consent-open] { display: none; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; z-index: 200; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.consent p { font-size: .92rem; color: var(--text); margin: 0; flex: 1 1 320px; }
.consent p a { color: var(--ice); }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- V2.1 product views, evidence and company page ---- */
.demo { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.chip { display: inline-block; font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
.chip.warn { color: var(--warn); border-color: var(--warn); }
.product .head { margin-bottom: 40px; }
.pv { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin-bottom: 40px; }
.pv:last-child { margin-bottom: 0; }
.pv-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.pv-kicker { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); font-weight: 700; margin-bottom: 4px; }
.pv-bar h3 { font-size: 1.35rem; margin: 0; }
.pv-bar-r { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pv-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 22px; margin-bottom: 24px; }
.pv-facts div { border-left: 2px solid var(--line); padding-left: 12px; }
.pv-facts dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pv-facts dd { margin: 2px 0 0; color: var(--text); font-weight: 600; font-size: .95rem; }
.pv-split { display: grid; grid-template-columns: 1.35fr .9fr; gap: 22px; align-items: start; }
.pv-tl { list-style: none; display: grid; gap: 0; }
.pv-tl li { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 12px 0 12px 14px; border-left: 2px solid var(--line); border-top: none; }
.pv-tl li.ok { border-left-color: var(--ok); }
.pv-tl li.alert { border-left-color: var(--alert); }
.pv-tl li.todo { border-left-style: dashed; opacity: .75; }
.pv-tl time { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.pv-tl li.alert time { color: var(--alert); }
.pv-tl b { display: block; color: var(--text); font-size: .98rem; }
.pv-tl small { display: block; color: var(--muted); font-size: .86rem; }
.ev { display: inline-block; margin-top: 6px; font-size: .75rem; color: var(--steel); border: 1px solid var(--line); border-radius: 5px; padding: 2px 8px; }
.pv-tl li.alert .ev { color: var(--alert); border-color: var(--alert); }
.pv-side { display: grid; gap: 12px; align-content: start; }
.pv-card { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.pv-card h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; }
.pv-card p { font-size: .92rem; color: var(--text); }
.pv-card p + p { margin-top: 6px; }
.docs { list-style: none; display: grid; gap: 6px; }
.docs li { font-size: .92rem; color: var(--text); }
.docs li::before { content: "▸ "; color: var(--steel); }
.pv-caption { margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ice); }
.trail { list-style: none; }
.trail li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 14px 0 14px 14px; border-top: 1px solid var(--line); border-left: 2px solid var(--line); }
.trail li:first-child { border-top: none; }
.trail li.flag { border-left-color: var(--alert); }
.trail li.ready { border-left-color: var(--ok); }
.st-name { font-family: var(--serif); font-size: 1.02rem; color: var(--text); font-weight: 700; }
.trail li.flag .st-name { color: var(--alert); }
.trail li.ready .st-name { color: var(--ok); }
.tr-body b { display: block; color: var(--text); font-size: .96rem; }
.tr-body small { display: block; color: var(--muted); font-size: .84rem; }
.tr-body p { color: var(--text); font-size: .93rem; margin-top: 4px; }
.tr-body .cm { font-style: italic; color: var(--ice); }
.thread-msgs { display: grid; gap: 10px; }
.msg { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; max-width: 92%; background: var(--card-2); }
.msg small { display: block; font-size: .74rem; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.msg p { color: var(--text); font-size: .95rem; }
.msg .ev { margin-top: 8px; }
.msg.internal { margin-left: auto; background: transparent; border-style: dashed; }
.msg.sys { background: transparent; border-color: var(--steel); max-width: 100%; }
.msg.sys p { color: var(--muted); font-size: .9rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.kpi span { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--text); margin: 6px 0 2px; }
.kpi small { color: var(--muted); font-size: .8rem; }
.kpi.warn b { color: var(--warn); }
.kpi.alert b { color: var(--alert); }
.kpi.ok b { color: var(--ok); }
.ctl-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ctl-panel { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.ctl-panel h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-bottom: 12px; }
.bars { list-style: none; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: 110px 1fr 36px; gap: 10px; align-items: center; font-size: .88rem; color: var(--muted); }
.bars i { display: block; height: 8px; border-radius: 4px; background: var(--steel); width: var(--w); }
.bars li.alert i { background: var(--alert); }
.bars b { text-align: right; color: var(--text); font-weight: 700; }
.alerts { list-style: none; display: grid; gap: 10px; }
.alerts li { border-left: 3px solid var(--line); padding: 6px 12px; }
.alerts li.alert { border-left-color: var(--alert); }
.alerts li.warn { border-left-color: var(--warn); }
.alerts li.ok { border-left-color: var(--ok); }
.alerts b { display: block; color: var(--text); font-size: .95rem; }
.alerts span { color: var(--muted); font-size: .88rem; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts li { border-top: 2px solid var(--steel); padding-top: 16px; }
.facts b { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--text); margin-bottom: 6px; }
.facts span { color: var(--muted); font-size: .95rem; }
.pwo { display: grid; gap: 10px; margin-bottom: 18px; }
.pwo div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; }
.pwo dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); font-weight: 700; padding-top: 3px; }
.pwo dd { margin: 0; color: var(--muted); }
.north { margin-top: 44px; text-align: center; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; color: var(--text); }
.conclusion { display: grid; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.c-main { font-family: var(--serif); font-size: 1.45rem; color: var(--text); line-height: 1.3; }
.conclusion p:not(.c-main) { color: var(--muted); font-size: .98rem; }
.conclusion .fine { margin-top: 4px; }
.gapbox { display: grid; gap: 12px; margin: 16px 0; }
.gapbox div { border-left: 2px solid var(--ice); padding-left: 12px; }
.gapbox dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); font-weight: 700; }
.gapbox dd { margin: 2px 0 0; font-family: var(--serif); font-size: 1.1rem; color: var(--text); }
.areas { list-style: none; display: grid; gap: 9px; margin-bottom: 18px; }
.areas li { display: grid; grid-template-columns: 1fr 120px 42px; gap: 10px; align-items: center; font-size: .88rem; color: var(--muted); }
.areas i { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.areas i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--steel); border-radius: 3px; }
.areas li b { text-align: right; color: var(--text); font-weight: 700; }
.areas li.gap span { color: var(--copper); font-weight: 700; }
.areas li.gap i::after { background: var(--copper); }
.score-pending { color: var(--muted); font-size: .95rem; }
.score-num { font-size: 1.6rem !important; }
.method { margin-top: 14px; font-size: .86rem; }
.method summary { cursor: pointer; color: var(--ice); font-weight: 700; list-style: none; }
.method summary::-webkit-details-marker { display: none; }
.method p { margin-top: 8px; color: var(--muted); }
.co-split { align-items: center; }
.co-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.co-name { font-family: var(--serif); font-size: 1.3rem; color: var(--text); margin: 6px 0 10px; font-weight: 700; }
.co-card .cta-row { margin-top: 18px; }

/* Deep-dive pages */
.page-hero { padding: 160px 0 80px; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); max-width: 900px; margin-bottom: 22px; }
.page-hero .lead { margin-bottom: 30px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.stat-row div { border-top: 2px solid var(--steel); padding-top: 14px; }
.stat-row b { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--text); margin-bottom: 6px; }
.stat-row span { font-size: .92rem; color: var(--muted); }
.story { max-width: 820px; }
.story h2 { margin-top: 10px; }
.story p { font-size: 1.06rem; }
.story blockquote { margin: 28px 0; padding-left: 22px; border-left: 2px solid var(--ice); font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ice); }
.card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--steel); border-radius: 14px; padding: 26px; }
.card p { font-size: .96rem; }
.card .tag { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); font-weight: 700; margin-bottom: 12px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.step h3 { font-size: 1.1rem; }
.step p { font-size: .94rem; }
.qs { display: grid; gap: 10px; }
.qs div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; color: var(--text); font-weight: 600; }
.qs div::before { content: "? "; color: var(--ice); }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-decoration: none; color: var(--text); font-weight: 700; font-family: var(--serif); font-size: 1.12rem; }
.related a:hover { border-color: var(--ice); }
.related a small { display: block; font-family: var(--sans); font-weight: 400; font-size: .9rem; color: var(--muted); margin-top: 6px; }
.page-cta { margin-top: 0; }

footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: .9rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot h4 { color: var(--text); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.foot a { display: block; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.foot a:hover { color: var(--ice); }
.addr { margin-top: 10px; }
.legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }

/* Reveal: content is visible unless JavaScript has armed the animation */
/* Content is never hidden by default. Browsers that support scroll-linked animation get a soft fade-in; everything else shows immediately. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .js .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { animation: none; }
}
@media print {
  .js .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
  header.nav { position: static; }
  .hero { padding-top: 40px; }
  section { padding: 40px 0; break-inside: auto; }
  .wf { break-inside: avoid; }
  .calc-result { position: static; }
  .score { position: static; }
  .wf-cta { display: none; }
  .btn { display: none; }
  details.wf { display: block; }
  details.wf > *:not(summary) { display: block; }
  details.wf > summary { display: grid; }
  details.wf:not([open]) > .wf-body { display: block; }
}

@media (max-width: 1040px) {
  .problem-grid, .channels { grid-template-columns: 1fr 1fr; }
  .ai-list, .proof-grid, .exec { grid-template-columns: repeat(2, 1fr); }
  .ctl-grid { grid-template-columns: repeat(2, 1fr); }
  .impl { grid-template-columns: repeat(3, 1fr); row-gap: 10px; }
  .impl li:nth-child(3)::after { content: none; }
  .pipeline ol { grid-template-columns: repeat(3, 1fr); }
  .pipeline li:nth-child(3)::after { content: none; }
  .caps { grid-template-columns: 1fr 1fr; }
  .week { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  section { padding: 76px 0; }
  .hero { padding: 130px 0 76px; }
  .page-hero { padding: 130px 0 60px; }
  .hero-grid, .grid-2, .grid-3, .calc, .form-wrap, .diag, .gate, .erp-wrap, .dash-wrap { grid-template-columns: 1fr; gap: 36px; }
  .calc-inputs { grid-template-columns: 1fr; }
  .calc-result { grid-column: 1; grid-row: auto; }
  .nav-links a:not(.btn) { display: none; }
  .shift { grid-template-columns: 1fr; }
  .shift-arrow { transform: rotate(0); justify-self: center; }
  .ba { grid-template-columns: 1fr; }
  .ba .after { border-left: none; border-top: 1px solid var(--line); }
  .wf summary { grid-template-columns: 44px 1fr; padding: 18px; }
  .wf-cta { grid-column: 2; grid-row: auto; }
  .wf-body { padding: 0 18px 20px; }
  .wf-no { grid-row: 1 / span 3; }
  .wf-head { grid-column: 2; }
  .caps, .checks { grid-template-columns: 1fr; }
  .related, .stat-row, .steps { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .score { position: static; }
  form { grid-template-columns: 1fr; padding: 22px; }
  #demo-form .btn { grid-column: auto; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  section { padding: 60px 0; }
  .problem-grid, .channels, .week, .ai-list, .proof-grid, .exec, .ctl-grid, .erp-grid, .chain, .impl, .pipeline ol { grid-template-columns: 1fr; }
  .impl li::after, .pipeline li::after { content: none !important; }
  .chain li { text-align: left; }
  .cta-band { padding: 50px 22px; }
  .foot { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .cta-row .btn { width: 100%; }
  .calc { padding: 22px; }
  .pipeline { padding: 22px; }
}
@media (max-width: 1040px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .pv-split { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .pv-facts { grid-template-columns: 1fr 1fr; }
  .ctl-grid2, .facts { grid-template-columns: 1fr; }
  .trail li { grid-template-columns: 1fr; gap: 6px; }
  .pv { padding: 20px; }
}
@media (max-width: 560px) {
  .pv-facts, .kpis { grid-template-columns: 1fr; }
  .pv-tl li, .pwo div { grid-template-columns: 1fr; gap: 4px; }
  .bars li { grid-template-columns: 96px 1fr 30px; }
  .areas li { grid-template-columns: 1fr 90px 36px; }
  .msg { max-width: 100%; }
  .logo { height: 40px; }
}
