/* Guerra AI Automations — shared component styles for the design options.
   Theme files (a.css / b.css / c.css) set the tokens and the page layout. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
}

/* Arial resized to Inter's metrics: the pre-swap text takes the same space, so nothing shifts when Inter arrives. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;
  --font: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --hdr: 56px;
  --r: 10px;
  --r-sm: 6px;
  --gap: 12px;
  /* fallbacks — every theme overrides these */
  --bg: #060b14;
  --bg-blur: rgba(6, 11, 20, 0.8);
  --surface: #0a1220;
  --surface-2: #0e182a;
  --surface-3: #13203a;
  --line: rgba(148, 170, 205, 0.14);
  --line-strong: rgba(148, 170, 205, 0.28);
  --text: #e9eef6;
  --muted: #93a2b8;
  --faint: #7a8aa2;
  --accent: #02d198;
  --focus: #5ca8ff;
  --ring: rgba(92, 168, 255, 0.28);
  --danger: #ff8f85;
  --field-border: #6b7b93;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 20px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.seg button:focus-visible, .stage:focus-visible { outline-offset: -2px; border-radius: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 10px 14px; background: var(--text); color: var(--bg); border-radius: var(--r-sm); font-weight: 500; font-size: 14px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ── Header ─────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 50; height: var(--hdr);
  background: var(--bg-blur);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; margin-right: auto; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 6px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--muted); transition: color 0.15s, background 0.15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.nav a:hover { background: var(--surface-2); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 14px; color: var(--muted); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { color: var(--text); }
.menu__panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); }
.menu__panel a { display: block; padding: 10px 12px; border-radius: var(--r-sm); font-size: 15px; color: var(--muted); }
.menu__panel a:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 820px) { .nav { display: none; } .menu { display: block; } }
.brand span { white-space: nowrap; }
@media (max-width: 460px) { .hdr .btn { display: none; } .hdr__in { gap: 12px; } }

/* ── Buttons & links ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: transparent; cursor: pointer;
  font: 500 14px/1 var(--font); letter-spacing: -0.005em; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--primary:hover { background: #fff; border-color: #fff; }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--muted); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn--lg { height: 46px; padding: 0 20px; font-size: 15px; }
.btn .arr { display: inline-block; transition: transform 0.15s; }
.btn:hover .arr, .link:hover .arr { transform: translateX(3px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: progress; }
.link { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }
.textlink { font-size: 14px; color: var(--muted); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.15s; }
.textlink:hover { color: var(--text); }

/* ── Type helpers ───────────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; }
.lede { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.6; max-width: 58ch; }
.fine { font-size: 13px; color: var(--muted); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; margin-bottom: 32px; }
.sec-head .eyebrow { margin-bottom: 14px; }
.sec-head .lede { max-width: 46ch; }

/* ── Stats ribbon ───────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.stats > div { padding: 16px 20px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats dt { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.stats dd { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(odd) { border-left: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ── Panels (figure-style data surfaces) ────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 12.5px/1 var(--mono); }
.state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.state[data-state="running"] .dot { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* ── Trace (run log) ────────────────────────────────────── */
.trace__rows { padding: 8px 0; }
.trace__row { display: grid; grid-template-columns: 62px 66px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 7px 16px; font: 12.5px/1.5 var(--mono); transition: opacity 0.2s, background 0.2s; }
.trace__row:hover { background: var(--surface-2); }
.trace__row .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.trace__row .stage { color: var(--muted); }
.trace__row .ev { color: var(--text); overflow-wrap: anywhere; }
.trace__row .res { color: var(--muted); text-align: right; }
.trace__row.is-pending { opacity: 0.22; }
.trace__row.is-running { background: var(--surface-2); }
.trace__row.is-running .res { color: var(--accent); }
.trace__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font: 12px/1 var(--mono); color: var(--muted); }
.trace__foot b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .trace__row { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .trace__row .stage { display: none; }
}

/* ── Bento ──────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.card { position: relative; display: flex; flex-direction: column; gap: 20px; min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color 0.2s; }
.card:hover { border-color: var(--line-strong); }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.kicker { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 11px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.tag--sample { border-style: dashed; }
.card__title { font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; }
.card__desc { margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 54ch; }
.card__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.card__foot .dot { background: var(--muted); }
.widget { display: flex; flex-direction: column; gap: 14px; min-width: 0; flex: 1; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding-top: 16px; border-top: 1px solid var(--line); font: 12px/1.6 var(--mono); }
.spec + .card__foot { border-top: 0; padding-top: 0; }
.spec dt { color: var(--muted); }
.spec dd { color: var(--text); }

/* segmented toggles (aria-pressed buttons) */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; align-self: flex-start; }
.seg button { height: 28px; padding: 0 12px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 12px/1 var(--font); cursor: pointer; transition: background 0.15s, color 0.15s; }
.seg button:first-child { border-left: 0; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

/* data table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.data { width: 100%; border-collapse: collapse; font-size: 13px; }
.data th { padding: 9px 12px; text-align: left; font: 500 11px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.data td { padding: 10px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.data tbody tr:hover { background: var(--surface-2); }
.data .num { text-align: right; font-variant-numeric: tabular-nums; }
.score { display: inline-flex; align-items: center; gap: 10px; font: 12.5px/1 var(--mono); }
.score__bar { position: relative; width: 44px; height: 4px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.score__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--text); }
.score[data-hot] .score__bar::after { background: var(--accent); }
.readout { font: 12px/1.4 var(--mono); color: var(--muted); }
@media (max-width: 560px) { .data th:nth-child(2), .data td:nth-child(2) { display: none; } }

/* KPI toggles + chart */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; text-align: left; background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.kpi:hover { border-color: var(--line-strong); }
.kpi[aria-pressed="true"] { border-color: var(--text); background: var(--surface-2); }
.kpi__l { font: 500 11px/1.2 var(--mono); letter-spacing: 0.03em; color: var(--muted); }
.kpi__v { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi__d { font: 11px/1 var(--mono); color: var(--muted); }
.chart__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chart { width: 100%; height: auto; touch-action: pan-y; cursor: crosshair; }
.chart .g { stroke: var(--line); stroke-width: 1; }
.chart .ln { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .ar { fill: var(--text); opacity: 0.05; }
.chart .cx { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .pt { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.chart text { font: 10px var(--mono); fill: var(--muted); }
@media (max-width: 420px) { .kpi__v { font-size: 17px; } }

/* assistant */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 30px; padding: 0 12px; background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font: 500 12.5px/1 var(--font); cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--surface-3); color: var(--text); border-color: var(--text); }
.chat { display: flex; flex-direction: column; gap: 8px; min-height: 188px; }
.msg { max-width: 90%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; line-height: 1.5; animation: rise 0.25s ease both; }
.msg--user { align-self: flex-end; border-color: var(--line-strong); }
.msg--bot { align-self: flex-start; background: var(--surface-2); }
.msg__meta { display: block; margin-top: 4px; font: 11px/1.3 var(--mono); color: var(--muted); }
.packet { align-self: stretch; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 8px; font: 12px/1.7 var(--mono); color: var(--muted); animation: rise 0.25s ease both; }
.packet b { color: var(--text); font-weight: 500; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }

/* integration hub */
.hub { width: 100%; height: auto; }
.hub .edge { stroke: var(--line-strong); stroke-width: 1; fill: none; transition: stroke 0.2s; }
.hub .edge.is-active { stroke: var(--accent); }
.hub .node rect { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; transition: stroke 0.2s, fill 0.2s; }
.hub .node text { font: 500 12px var(--font); fill: var(--muted); text-anchor: middle; dominant-baseline: central; transition: fill 0.2s; }
.hub .node { cursor: pointer; }
.hub .node.is-active rect { stroke: var(--text); fill: var(--surface-3); }
.hub .node.is-active text { fill: var(--text); }
.hub .core rect { fill: var(--bg); stroke: var(--text); stroke-width: 1; }
.hub .core text { font: 600 12px var(--font); fill: var(--text); text-anchor: middle; dominant-baseline: central; }
.caption { font-size: 13.5px; color: var(--muted); line-height: 1.5; min-height: 2.9em; }

/* follow-up sequence */
.seq { position: relative; margin: 2px 0 0 4px; border-left: 1px solid var(--line-strong); }
.seq li { position: relative; padding: 0 0 14px 20px; font-size: 13.5px; line-height: 1.45; }
.seq li:last-child { padding-bottom: 0; }
.seq li::before { content: ""; position: absolute; left: -4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); border: 1px solid var(--muted); }
.seq li:first-child::before { background: var(--accent); border-color: var(--accent); }
.seq .t { display: block; font: 11px/1.4 var(--mono); color: var(--muted); }

/* code */
.code { margin: 0; padding: 16px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); overflow-x: auto; font: 12.5px/1.75 var(--mono); color: var(--text); white-space: pre; tab-size: 2; }
.code .k { color: var(--muted); }
.code .c { color: var(--faint); }
.code .a { color: var(--accent); }

/* definition list used for security + facts */
.defs { display: grid; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.defs > div { display: grid; grid-template-columns: minmax(72px, 28%) minmax(0, 1fr); gap: 16px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.defs > div:first-child { border-top: 0; }
.defs dt { color: var(--muted); }
.defs dd { color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 520px) { .defs > div { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 11px 12px; } .defs dd { font-size: 13px; } }

.builtfor { margin-top: 20px; font-size: 14px; color: var(--muted); }
.builtfor strong { margin-right: 8px; font: 500 12px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text); }

/* ── Process steps ──────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.steps li { padding: 24px; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; }
.step__n { display: block; margin-bottom: 28px; font: 500 12px/1 var(--mono); color: var(--muted); }
.steps h3 { font-size: 18px; letter-spacing: -0.015em; font-weight: 600; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
}

/* ── Contact + form ─────────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact__copy .h2 { margin: 14px 0 14px; }
.contact__copy .defs { margin-top: 28px; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; }
.field .req { color: var(--muted); font-weight: 400; }
.input { width: 100%; min-height: 44px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--field-border); border-radius: var(--r-sm); font-size: 15px; line-height: 1.4; transition: border-color 0.15s, box-shadow 0.15s; }
textarea.input { min-height: 132px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--faint); }
.input:focus-visible { outline: 2px solid transparent; outline-offset: 0; border-color: var(--focus); box-shadow: 0 0 0 3px var(--ring); }
.field[data-invalid] .input { border-color: var(--danger); }
.field__err { display: flex; gap: 6px; font-size: 13px; line-height: 1.4; color: var(--danger); }
.field__err::before { content: "!"; content: "!" / ""; flex: none; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-top: 1px; border: 1px solid currentColor; border-radius: 50%; font: 700 10px/1 var(--mono); }
.ts { min-height: 65px; }
.form__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.kbd { font: 11px/1 var(--mono); padding: 3px 6px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); }
.form-message { padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 14px; line-height: 1.45; }
.form-message.is-error { border-color: var(--danger); color: var(--danger); }
.form-message:empty { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); }
@media (hover: none) { .kbd-hint { display: none; } }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ── Footer ─────────────────────────────────────────────── */
.ftr { margin-top: clamp(64px, 9vw, 112px); padding: 48px 0 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.ftr__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 32px; }
.ftr__h { margin-bottom: 14px; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.ftr li + li { margin-top: 8px; }
.ftr a:hover { color: var(--text); }
.ftr__addr { margin-top: 16px; line-height: 1.6; }
.ftr__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 820px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .ftr { padding-bottom: 96px; } }

/* ── Sticky mobile CTA (leaves room for the chat bubble) ── */
.sticky { position: fixed; left: 12px; right: 84px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: none; transform: translateY(160%); transition: transform 0.25s ease; }
.sticky.is-on { transform: none; }
.sticky .btn { width: 100%; height: 48px; font-size: 15px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5); }
@media (max-width: 760px) { .sticky { display: block; } html { scroll-padding-bottom: 84px; } }

/* ── Thank-you / 404 ────────────────────────────────────── */
.notice { padding-block: clamp(56px, 10vw, 120px); }
.opt { grid-column: span 4; }
.opt--wide { grid-column: span 12; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
@media (max-width: 860px) { .opt { grid-column: span 12; } }
.notice__code { font: 500 13px/1 var(--mono); letter-spacing: 0.05em; color: var(--muted); }
.notice h1 { margin: 16px 0 14px; font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; }
.notice .lede { max-width: 52ch; }
.notice__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.timeline { margin-top: 40px; max-width: 520px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.timeline li { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14.5px; }
.timeline li:first-child { border-top: 0; }
.timeline .t { font: 500 12px/1.6 var(--mono); color: var(--muted); }
.quick { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.quick a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); font-size: 15px; transition: background 0.15s; }
.quick a:hover { background: var(--surface-2); }
.quick a:nth-child(-n + 2) { border-top: 0; }
.quick a:nth-child(odd) { border-left: 0; }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } .quick { grid-template-columns: 1fr; } .quick a { border-left: 0; } .quick a:nth-child(2) { border-top: 1px solid var(--line); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ═════════ Flow: tonal bands + the wire ═════════ */

/* Alternating bands give the page a pulse: ground → raised → ground. */
.band { padding-block: clamp(56px, 8vw, 104px); background: var(--band, var(--surface)); border-block: 1px solid var(--line); }
.band .card, .band .steps { background: var(--surface-2); }
.band + .band { border-top: 0; }

/* The wire is a circuit trace that starts under the logo, drops down the left
   gutter, and taps into every section. A dot rides it as you scroll; everything
   behind the dot is lit. Pure SVG, drawn by site.js from the page's own anchors. */
:root { --wire-pad: 44px; }
[data-wire] { position: relative; --wire-x: 10px; }
.wire { position: absolute; top: 0; left: calc(max(0px, (100% - var(--maxw) - var(--gutter) * 2) / 2) + var(--gutter)); z-index: 2; pointer-events: none; }
.wire svg { display: block; overflow: visible; }
.wire__base { stroke: var(--line-strong); stroke-width: 1; }
.wire__lit { stroke: var(--accent); stroke-width: 1.5; }
.wire__node .stub { fill: none; stroke: var(--line-strong); stroke-width: 1; transition: stroke 0.3s; }
.wire__node .ring { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1.5; transition: stroke 0.3s; }
.wire__node .core { fill: var(--line-strong); transition: fill 0.3s; }
.wire__node.is-on .stub, .wire__node.is-on .ring { stroke: var(--accent); }
.wire__node.is-on .core { fill: var(--accent); }
.wire__halo { fill: var(--accent); opacity: 0.16; }
.wire__head { fill: var(--accent); }
.wire-pad .wrap, .ftr--wire .wrap { padding-left: calc(var(--gutter) + var(--wire-pad)); }
@media (max-width: 820px) { :root { --wire-pad: 28px; } [data-wire] { --wire-x: 6px; } }

/* ═════════ Sub-pages ═════════ */
.subhero { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 44px); }
.subhero h1 { margin: 16px 0 14px; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance; }
.rows { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 14px 48px; padding: 32px 0; border-top: 1px solid var(--line); }
.row .kicker { display: block; margin-bottom: 10px; }
.row h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
.row p { max-width: 56ch; color: var(--muted); font-size: 16px; }
.row p a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pills li { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 12.5px/1 var(--font); }
@media (max-width: 820px) { .row { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; } }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: clamp(40px, 6vw, 64px); padding: 24px 28px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); }
.cta-band h2 { font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; }

/* long-form legal text (content is untouched; only the styling is new) */
.prose { max-width: 760px; }
.prose h1 { margin: 0 0 16px; font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.06; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance; }
.prose .effective { margin-bottom: 28px; font: 12.5px/1.8 var(--mono); color: var(--muted); }
.prose .effective strong { color: var(--text); font-weight: 500; }
.prose h2 { margin: 52px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; scroll-margin-top: calc(var(--hdr) + 24px); }
.prose h3 { margin: 28px 0 8px; font-size: 16px; font-weight: 600; }
.prose p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.7; }
.prose ul { margin: 0 0 16px; padding-left: 20px; list-style: disc; }
.prose li { margin: 6px 0; font-size: 15.5px; line-height: 1.65; }
.prose li::marker { color: var(--muted); }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose .notice { margin: 0 0 28px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); }
.prose .notice p:last-child { margin-bottom: 0; }
.toc { max-width: 760px; margin: 0 0 8px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.toc .kicker { display: block; margin-bottom: 10px; }
.toc ol { columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; margin: 5px 0; font-size: 14px; }
.toc a { color: var(--muted); transition: color 0.15s; }
.toc a:hover { color: var(--text); }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ═════════ Rail wire (option C) ═════════ */
.rail__list { --lit: 0px; position: relative; display: grid; gap: 2px; padding-left: 24px; }
.rail__list::before, .rail__list::after { content: ""; position: absolute; left: 5px; top: 14px; width: 1px; }
.rail__list::before { bottom: 14px; background: var(--line-strong); }
.rail__list::after { height: max(0px, calc(var(--lit) - 14px)); background: var(--accent); width: 1.5px; margin-left: -0.25px; }
.rail__list li { position: relative; }
.rail__list li::before { content: ""; position: absolute; left: -24px; top: 50%; z-index: 1; width: 11px; height: 11px; margin-top: -5.5px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: #05131f; transition: border-color 0.3s; }
.rail__list li::after { content: ""; position: absolute; left: -20px; top: 50%; z-index: 2; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: var(--line-strong); transition: background 0.3s; }
.rail__list li.is-on::before { border-color: var(--accent); }
.rail__list li.is-on::after { background: var(--accent); }
.rail__list a { display: block; padding: 7px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--muted); transition: color 0.15s, background 0.15s; }
.rail__list a:hover { color: var(--text); }
.rail__list a[aria-current] { color: var(--text); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.hdr--progress::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--prog, 0) * 100%); background: var(--accent); }

@media (min-width: 901px) { .contact__copy { position: sticky; top: calc(var(--hdr) + 28px); } }

/* comfortable touch targets on phones */
@media (pointer: coarse), (max-width: 720px) {
  .seg button { height: 36px; padding: 0 14px; }
  .chip { height: 36px; padding: 0 14px; }
  .kpi { min-height: 64px; }
  .menu summary { height: 40px; }
}

/* card title + its sample/example tag share a line (the tag wraps below when the card is narrow) */
.card__titlerow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.card__desc { margin-top: 8px; }

@media (forced-colors: active) {
  .seg button[aria-pressed="true"], .chip[aria-pressed="true"], .kpi[aria-pressed="true"], .stage[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
  .input:focus-visible { outline: 2px solid Highlight; }
  .wire, .page::before { display: none; }
}

/* packages: the list of what is sold, on the home page and (as rows) on /services */
.pkgs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.band .pkgs { background: var(--surface-2); }
.pkgs li + li { border-top: 1px solid var(--line); }
.pkgs a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; align-items: baseline; gap: 6px 24px; padding: 16px 22px; transition: background 0.15s; }
.pkgs a:hover { background: var(--surface-3); }
.pkgs__n { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.pkgs__d { color: var(--muted); font-size: 14.5px; }
.pkgs .arr { color: var(--muted); transition: transform 0.15s, color 0.15s; }
.pkgs a:hover .arr { transform: translateX(3px); color: var(--text); }
@media (max-width: 720px) { .pkgs a { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; } .pkgs__d { grid-column: 1; } .pkgs .arr { grid-row: 1; grid-column: 2; } }
.pillgroup { margin-top: 18px; }
.pillgroup + .pillgroup { margin-top: 14px; }
.pillgroup__l { display: block; margin-bottom: 8px; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pillgroup .pills { margin-top: 0; }
.row[id] { scroll-margin-top: calc(var(--hdr) + 24px); }
