/* JSCAIP (Supply Chain Analysis and Intelligence Platform) by ZeroDriveX - site styles.
   Dark "intelligence" theme: deep navy, faint world-map texture, blue-to-cyan / blue-to-violet accents.
   No third-party fonts or frameworks; the headline face (Barlow Condensed, SIL OFL) is self-hosted. */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/barlow-condensed-700.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #050a17; --bg-2: #081026; --bg-soft: #0a1430; --bg-tint: rgba(59,130,246,.12);
  --panel: rgba(12,22,48,.78); --panel-solid: #0c1630; --panel-2: #101c3a;
  --ink: #eef3ff; --ink-2: #c9d3ea; --muted: #a3b0cc; --muted-2: #8190b0;
  --line: rgba(125,160,235,.18); --line-2: rgba(125,160,235,.32);
  --brand: #60a5fa; --brand-600: #93c5fd; --brand-300: #7dd3fc;
  --blue: #3b82f6; --blue-700: #1d4ed8; --cyan: #22d3ee; --indigo: #6366f1; --violet: #8b5cf6;
  --grad: linear-gradient(90deg, #3b82f6 0%, #38bdf8 55%, #22d3ee 100%);
  --grad-bv: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 55%, #7c3aed 100%);
  --glow: 0 0 0 1px rgba(96,165,250,.25), 0 0 24px rgba(59,130,246,.28);
  --low: #34d399; --medium: #fbbf24; --high: #fb923c; --critical: #f87171;
  --radius: 14px; --radius-sm: 9px; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", var(--font);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.6; font-size: 16px;
  background: radial-gradient(1200px 600px at 80% -120px, rgba(59,130,246,.16), transparent 70%),
              radial-gradient(900px 500px at -10% 30%, rgba(99,102,241,.08), transparent 70%), var(--bg); }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--brand-600); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: #fff; }
h1, h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.05; }
h3 { font-size: 1.12rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
strong { color: #fff; }
code, pre { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { background: rgba(125,160,235,.12); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; color: #dbe7ff; }
:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(59,130,246,.45); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--blue-700); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.hidden { display: none !important; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) { .grad { color: CanvasText; background: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #bcd4ff; margin-bottom: 14px; }
.eyebrow svg { width: 20px; height: 20px; flex: none; color: var(--brand); }
.hero .eyebrow::before { content: ""; width: 18px; height: 18px; flex: none; background: #60a5fa; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l8 3v6c0 5-3.4 8.6-8 10-4.6-1.4-8-5-8-10v-6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l8 3v6c0 5-3.4 8.6-8 10-4.6-1.4-8-5-8-10v-6z'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 0 4px rgba(59,130,246,.8)); }
.placeholder { background: rgba(251,191,36,.12); color: #fcd34d; border: 1px dashed rgba(251,191,36,.6); border-radius: 6px; padding: 0 6px; font-size: .9em; }

/* textured surfaces: faint dotted world map + network arcs */
.textured { position: relative; isolation: isolate; }
.textured::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url(/assets/bg-world.svg) center 30% / cover no-repeat; opacity: .9;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }

/* glowing divider with small shield */
.glow-divider { display: flex; align-items: center; gap: 14px; color: var(--brand); margin: 22px 0; max-width: 520px; }
.glow-divider::before, .glow-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(96,165,250,.8), transparent); box-shadow: 0 0 8px rgba(59,130,246,.6); }
.glow-divider svg { width: 22px; height: 22px; filter: drop-shadow(0 0 6px rgba(59,130,246,.8)); }
.glow-divider.center { margin-left: auto; margin-right: auto; }
.rule-head { display: flex; align-items: center; gap: 18px; justify-content: center; text-align: center; }
.rule-head::before, .rule-head::after { content: ""; flex: 1; max-width: 160px; height: 1px; background: linear-gradient(90deg, transparent, rgba(148,180,255,.6)); }
.rule-head::after { transform: scaleX(-1); }
.rule-head h2 { margin: 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5,10,23,.82); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; letter-spacing: .02em; }
.brand:hover { text-decoration: none; color: #fff; }
.brand img { width: 32px; height: 32px; filter: drop-shadow(0 0 6px rgba(59,130,246,.55)); }
.brand > span { font-family: var(--display); font-size: 1.35rem; line-height: 1; letter-spacing: .06em; }
.brand small { display: block; font-family: var(--font); font-weight: 500; color: var(--muted); font-size: .7rem; letter-spacing: .04em; margin-top: 3px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: .93rem; white-space: nowrap; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--blue); }
.nav-links a.btn-primary { color: #fff; box-shadow: var(--glow); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s; text-decoration: none !important; font-family: inherit; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border-color: rgba(147,197,253,.35); box-shadow: 0 0 20px rgba(37,99,235,.35); }
.btn-primary:hover { background: linear-gradient(135deg, #3b6ff0, #2257e6); color: #fff; box-shadow: 0 0 28px rgba(59,130,246,.55); }
.btn-secondary { background: rgba(10,20,48,.6); color: #fff; border-color: var(--line-2); }
.btn-secondary:hover { border-color: rgba(147,197,253,.7); color: #fff; box-shadow: 0 0 18px rgba(59,130,246,.25); }
.btn-dark, .btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(147,197,253,.75); box-shadow: inset 0 0 18px rgba(59,130,246,.15), 0 0 16px rgba(59,130,246,.2); }
.btn-dark:hover, .btn-outline:hover { background: rgba(59,130,246,.14); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: #fff; }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 14px 22px; font-size: 1rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 68px; position: relative; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url(/assets/bg-world.svg) 70% 20% / cover no-repeat; opacity: .85;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); mask-image: linear-gradient(180deg, #000 40%, transparent); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .lede { font-size: 1.16rem; color: var(--ink-2); max-width: 36em; }
.hero .lede .accent { color: #7dd3fc; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero-note { font-size: .9rem; color: var(--muted); }
.hero-tight { padding: 72px 0 60px; }
.hero-tight h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.hero-side { display: grid; justify-items: center; gap: 18px; text-align: center; }
.tagline { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.2rem; line-height: 1.35; color: #fff; margin: 0; }
.tagline span { color: #7dd3fc; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 9px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-2); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%; border: 1px solid rgba(96,165,250,.7); box-shadow: 0 0 8px rgba(59,130,246,.45); }
.check-list li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px; border: solid #93c5fd; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* emblem (inline SVG shield) */
.emblem { width: min(360px, 80vw); position: relative; }
.emblem svg { width: 100%; height: auto; overflow: visible; }
.emblem .shield-glow { filter: drop-shadow(0 0 10px rgba(59,130,246,.9)) drop-shadow(0 0 28px rgba(59,130,246,.55)); }
.emblem-sm { width: 120px; }
@media (prefers-reduced-motion: no-preference) {
  .emblem .pulse { animation: pulse 4s ease-in-out infinite; transform-origin: center; }
  @keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
}

/* product mock */
.mock { background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 40px rgba(59,130,246,.12); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3a60; display: block; }
.mock-bar span { margin-left: 10px; font-size: .78rem; color: var(--muted); font-family: var(--mono); }
.mock-body { padding: 22px; }
.mock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.mock-head h4 { margin: 0; font-size: 1.02rem; }
.mock-head p { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.mock-row { display: grid; grid-template-columns: 110px 1fr 84px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-2); }
.mock-row b { font-weight: 600; color: #fff; }
.mock-foot { margin-top: 14px; padding: 12px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 10px; font-size: .8rem; color: var(--ink-2); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; border: 1px solid currentColor; background: rgba(5,10,23,.6); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lvl-LOW, .sev-low { color: var(--low); }
.lvl-MEDIUM, .sev-medium { color: var(--medium); }
.lvl-HIGH, .sev-high { color: var(--high); }
.lvl-CRITICAL { color: var(--critical); }
.st-queued, .st-running { color: var(--brand); }
.st-failed { color: var(--critical); }
.st-succeeded { color: var(--low); }
.badge-solid { color: #fff; border: 0; padding: 6px 14px; font-size: .85rem; }
.badge-solid::before { background: rgba(255,255,255,.85); }
.bg-LOW { background: #047857; } .bg-MEDIUM { background: #b45309; } .bg-HIGH { background: #c2410c; } .bg-CRITICAL { background: #b91c1c; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-soft { background: linear-gradient(180deg, rgba(10,20,48,.55), rgba(8,16,38,.35)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.section-head .sub { color: var(--ink-2); font-size: 1.1rem; margin-top: 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: var(--line-2); box-shadow: 0 0 26px rgba(59,130,246,.10); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); margin: 0; }
.card p + p { margin-top: 14px; }
.card .icon { width: 46px; height: 46px; border-radius: 50%; color: #93c5fd; display: grid; place-items: center; margin-bottom: 16px; border: 1px solid rgba(96,165,250,.55); box-shadow: 0 0 14px rgba(59,130,246,.35), inset 0 0 12px rgba(59,130,246,.2); }
.card .icon svg { width: 22px; height: 22px; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: transparent; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .92rem; margin-bottom: 16px; border: 1.5px solid rgba(96,165,250,.8); box-shadow: 0 0 12px rgba(59,130,246,.45); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.code-block { background: #040814; color: #dbe4ff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; overflow-x: auto; font-size: .84rem; line-height: 1.7; margin: 0; }
.code-block .c { color: #8a97b5; }
.code-block .s { color: #a8c7ff; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.list-plain li:last-child { border-bottom: 0; }
.notice { border: 1px solid var(--line-2); background: rgba(59,130,246,.07); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .92rem; color: var(--ink-2); }
.notice strong { color: #fff; }

/* agents grid (landing) */
.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); overflow: hidden; }
.agent { padding: 34px 28px 30px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.agent:nth-child(3n) { border-right: 0; }
.agent:nth-last-child(-n+3) { border-bottom: 0; }
.agent h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.4rem; letter-spacing: .03em; line-height: 1.1; margin: 18px 0 10px; }
.agent h3 .n { color: #7dd3fc; margin-right: 4px; }
.agent p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.agent p.agent-note { margin-top: 10px; font-size: .8rem; color: #93c5fd; opacity: .85; font-style: italic; }
.ring { --c1: #3b82f6; --c2: #22d3ee; width: 92px; height: 92px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; position: relative; color: #dbeafe;
  background: radial-gradient(circle at 50% 50%, rgba(59,130,246,.18), rgba(5,10,23,.9) 70%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--c1) 55%, transparent), inset 0 0 18px color-mix(in srgb, var(--c1) 35%, transparent); }
.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 2px; background: linear-gradient(140deg, var(--c2), var(--c1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ring svg { width: 40px; height: 40px; }
.ring-1 { --c1: #2563eb; --c2: #22d3ee; } .ring-2 { --c1: #3b82f6; --c2: #38bdf8; } .ring-3 { --c1: #4f46e5; --c2: #60a5fa; }
.ring-4 { --c1: #6366f1; --c2: #818cf8; } .ring-5 { --c1: #7c3aed; --c2: #6366f1; } .ring-6 { --c1: #8b5cf6; --c2: #c084fc; }
.ring-sm { width: 46px; height: 46px; flex: none; }
.ring-sm svg { width: 22px; height: 22px; }

/* shield panel + benefits */
.shield-panel { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); overflow: hidden; box-shadow: 0 0 40px rgba(59,130,246,.08); }
.shield-panel > div { padding: 36px; }
.shield-panel .sp-main { display: grid; grid-template-columns: 110px 1fr; gap: 26px; align-items: start; border-right: 1px solid var(--line); }
.shield-panel h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.shield-panel p { color: var(--ink-2); }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.benefits li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: center; }
.benefits b { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.08rem; color: #fff; }
.benefits span { color: var(--ink-2); font-size: .93rem; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--grad-bv); color: #fff; border-radius: 20px; padding: 52px 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; border: 1px solid rgba(165,180,252,.35); box-shadow: 0 0 60px rgba(79,70,229,.25); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 0% 0%, rgba(34,211,238,.25), transparent 70%), url(/assets/bg-world.svg) center / cover no-repeat; opacity: .6; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: #e0e7ff; margin: 0; max-width: 34em; }
.cta-band .btn-primary { background: #fff; color: #1e1b4b; border-color: #fff; box-shadow: 0 0 24px rgba(255,255,255,.25); }
.cta-band .btn-primary:hover { background: #eef2ff; color: #1e1b4b; }
.cta-band .btn-secondary { background: rgba(5,10,23,.35); border-color: rgba(224,231,255,.55); }
.cta-band .btn-dark, .cta-band .btn-outline { border-color: rgba(255,255,255,.85); }
.cta-main { display: flex; gap: 24px; align-items: center; }
.cta-main .emblem-sm { flex: none; width: 92px; }
.btn-demo { flex-direction: row; text-align: left; padding: 16px 24px; border-radius: 12px; }
.btn-demo span { display: grid; }
.btn-demo b { font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.3rem; line-height: 1.1; }
.btn-demo small { font-weight: 500; color: #e0e7ff; font-size: .82rem; }
.btn-demo svg { width: 22px; height: 22px; }
.cta-side { display: grid; gap: 14px; justify-items: start; }
.cta-side .link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sign-off { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; color: var(--ink-2); }
.sign-off svg { width: 18px; height: 18px; color: var(--brand); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; color: var(--ink-2); }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; color: var(--ink); background: #071029; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #7f8db0; }
select option { background: #0c1630; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.3); }
textarea { min-height: 120px; resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); }
.form-status { font-size: .92rem; padding: 12px 14px; border-radius: 10px; }
.form-status.ok { background: rgba(52,211,153,.12); color: #a7f3d0; border: 1px solid rgba(52,211,153,.4); }
.form-status.err { background: rgba(248,113,113,.12); color: #fecaca; border: 1px solid rgba(248,113,113,.4); }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; }
.radio-card label { margin: 0; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; cursor: pointer; font-weight: 500; display: block; height: 100%; background: rgba(7,16,41,.6); }
.radio-card label b { display: block; font-size: .98rem; color: #fff; }
.radio-card label span { color: var(--muted); font-size: .84rem; }
.radio-card input:checked + label { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.25); background: rgba(59,130,246,.1); }
.radio-card input:focus-visible + label { outline: 3px solid var(--brand-300); outline-offset: 2px; }
.radio-card input:disabled + label { opacity: .5; cursor: not-allowed; }
.dropzone { border: 2px dashed var(--line-2); border-radius: 14px; padding: 26px; text-align: center; background: rgba(7,16,41,.5); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone.drag { border-color: var(--blue); background: var(--bg-tint); }
.dropzone p { margin: 4px 0; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.file-list li { display: flex; justify-content: space-between; align-items: center; background: #071029; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; font-size: .88rem; }
.file-list button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; }

/* ---------- dashboard / app pages ---------- */
.app-shell { padding: 40px 0 80px; min-height: calc(100vh - 70px); }
.app-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.app-top h1 { font-size: clamp(2rem, 3.6vw, 2.7rem); margin: 0 0 6px; }
.h-login { font-size: 2rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.stat b { display: block; font-size: 1.7rem; font-family: var(--display); letter-spacing: .02em; color: #fff; }
.stat span { color: var(--muted); font-size: .84rem; }
.app-grid { display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2 { font-size: 1.4rem; margin-bottom: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.table-wrap { overflow-x: auto; }
table.runs { width: 100%; border-collapse: collapse; font-size: .9rem; color: var(--ink-2); }
table.runs th { text-align: left; font-weight: 600; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; padding: 10px; border-bottom: 1px solid var(--line-2); }
table.runs td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.runs tbody tr:hover td { background: rgba(59,130,246,.05); }
table.runs tr:last-child td { border-bottom: 0; }
table.runs .actions { display: flex; gap: 6px; justify-content: flex-end; }
table.runs .actions .btn { white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.login-wrap { max-width: 480px; margin: 40px auto; }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress div { height: 100%; width: 40%; background: var(--grad); border-radius: 999px; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .progress div { animation: none; width: 100%; opacity: .5; } html { scroll-behavior: auto; } }

/* ---------- report view ---------- */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.report-full { margin-top: 24px; }
.cap { text-transform: capitalize; }
.report { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 32px; color: var(--ink-2); }
.report-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 20px; }
.report-head h2 { margin: 4px 0; }
.report-meta { color: var(--muted); font-size: .88rem; }
.md h2 { font-size: 1.5rem; margin-top: 1.4em; }
.md h3 { font-size: 1.04rem; margin-top: 1.3em; }
.md table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 12px 0 18px; display: block; overflow-x: auto; }
.md th, .md td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
.md th { background: rgba(59,130,246,.1); font-weight: 600; color: #fff; }
.md code { word-break: break-word; font-size: .82em; }
.md ul, .md ol { padding-left: 22px; }
.md li { margin: 4px 0; }
.md blockquote { margin: 10px 0; padding: 6px 14px; border-left: 3px solid var(--blue); background: rgba(59,130,246,.06); }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.signal { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9rem; }

/* ---------- workflow page ---------- */
.flow-figure { margin: 8px 0 0; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 26px; }
.flow.flow-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flow-step { position: relative; }
.flow-step > a { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; padding: 20px 16px 18px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); color: #fff; transition: transform .15s, box-shadow .15s, border-color .15s; }
.flow-step > a::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 2px; border-radius: 2px; background: var(--grad); box-shadow: 0 0 10px rgba(59,130,246,.8); }
.flow-step > a:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(147,197,253,.6); box-shadow: 0 0 26px rgba(59,130,246,.22); color: #fff; }
.flow-step b { font-size: .96rem; line-height: 1.25; }
.flow-step small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.flow-num { position: absolute; top: 12px; right: 14px; font-size: .74rem; font-weight: 700; color: #93c5fd; font-family: var(--mono); }
.flow-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #bfdbfe; margin-bottom: 8px; border: 1px solid rgba(96,165,250,.6); box-shadow: 0 0 14px rgba(59,130,246,.4), inset 0 0 10px rgba(59,130,246,.2); }
.flow-icon svg { width: 22px; height: 22px; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -22px; width: 18px; height: 2px; background: linear-gradient(90deg, #3b82f6, #22d3ee); }
.flow-step:not(:last-child)::before { content: ""; position: absolute; top: calc(50% - 4px); right: -23px; width: 0; height: 0; border-left: 7px solid #22d3ee; border-top: 5px solid transparent; border-bottom: 5px solid transparent; z-index: 1; }
.kind-ai .flow-icon { border-color: rgba(99,102,241,.75); box-shadow: 0 0 14px rgba(99,102,241,.45); }
.kind-rule .flow-icon { border-color: rgba(139,92,246,.75); box-shadow: 0 0 14px rgba(139,92,246,.45); }
.kind-output .flow-icon { border-color: rgba(34,211,238,.75); box-shadow: 0 0 14px rgba(34,211,238,.4); }
.kind-web .flow-icon { border-color: rgba(251,191,36,.7); color: #fde68a; }
.flow-step.optional > a { border-style: dashed; }
.flow-tag { position: absolute; top: -12px; left: 12px; background: #b45309; color: #fff; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.flow-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: .84rem; color: var(--muted); }
.flow-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--blue); vertical-align: -1px; }
.lg-ai { background: var(--indigo); } .lg-rule { background: var(--violet); } .lg-web { background: var(--medium); } .lg-output { background: var(--cyan); } .lg-muted { background: #3a4a70; }
.stage-list { display: grid; gap: 18px; }
.stage { display: grid; grid-template-columns: 320px 1fr; gap: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; scroll-margin-top: 90px; }
.stage.optional { border-style: dashed; border-color: rgba(251,191,36,.5); }
.stage:target { border-color: rgba(147,197,253,.7); box-shadow: 0 0 0 3px rgba(59,130,246,.25), 0 0 30px rgba(59,130,246,.2); }
.stage-head { display: flex; gap: 16px; align-items: flex-start; }
.stage-head .step-num { flex: none; margin: 2px 0 0; }
.stage-head .eyebrow { margin-bottom: 6px; letter-spacing: .16em; }
.stage-head h2 { font-size: 1.7rem; margin: 0; }
.stage-body p { color: var(--ink-2); }
.stage-body .check-list { margin: 0 0 18px; }
.chip { display: inline-block; vertical-align: middle; font-size: .72rem; font-weight: 700; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; margin-left: 4px; }
.chip-ai { background: var(--bg-tint); color: var(--brand); }
.chip-web { background: rgba(251,191,36,.12); color: var(--medium); }
dl.io { display: grid; gap: 0; margin: 0 0 12px; border-top: 1px solid var(--line); }
dl.io > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
dl.io dt { color: #93c5fd; font-weight: 600; }
dl.io dd { margin: 0; color: var(--ink-2); }
.workflow-teaser { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 22px 0; }
.mini-flow { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.mini-flow li { position: relative; margin-right: 14px; display: inline-flex; flex-direction: column; padding: 6px 10px; border-radius: 8px; background: rgba(59,130,246,.08); border: 1px solid var(--line-2); line-height: 1.2; }
.mini-flow li small { font-weight: 500; color: var(--muted); font-size: .7rem; }
.mini-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%); color: #7dd3fc; font-weight: 400; }

/* ---------- admin console (matching dark theme) ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font: inherit; font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--blue); }
.tab .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--bg-tint); color: var(--brand); font-size: .74rem; }
.tab .count:empty { display: none; }
section.pane { padding: 0; }
.pane .panel { margin-bottom: 24px; }
#notice { margin-bottom: 18px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.admin-grid-wide { grid-template-columns: 1fr; gap: 0; }
.form-inline { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr auto; gap: 14px; align-items: end; }
.form-inline-actions { display: flex; align-items: center; gap: 14px; }
.form-inline-actions .check { margin: 0; white-space: nowrap; font-weight: 500; }
.nowrap { white-space: nowrap; }
.key-list code { white-space: nowrap; }
table.runs.tight td, table.runs.tight th { padding: 9px 10px; }
table.runs tr.total td { border-top: 2px solid var(--line-2); font-weight: 600; color: #fff; }
.bars { display: grid; gap: 12px; margin-bottom: 14px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 40px; gap: 12px; align-items: center; }
.bar-row b { text-align: right; }
.bar-track { height: 10px; background: rgba(255,255,255,.05); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar-fill { height: 100%; width: 0; border-radius: 999px; transition: width .4s ease; }
.spark { display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; height: 120px; align-items: end; }
.spark-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(255,255,255,.04); border-radius: 4px; overflow: hidden; }
.spark-bill { background: var(--blue); }
.spark-other { background: #3a4a70; }
.spark-axis { display: flex; justify-content: space-between; margin-top: 6px; }
.key-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.key-list li { font-size: .85rem; }
.key-list .btn { padding: 2px 6px; margin-left: -6px; }
.btn.danger { color: var(--critical); }
.filters { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) auto; gap: 12px; align-items: end; margin-bottom: 16px; }
.filters label { font-size: .78rem; margin-bottom: 4px; }
.filters input, .filters select { padding: 8px 10px; font-size: .88rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
td.msg { max-width: 420px; white-space: pre-wrap; word-break: break-word; }
.modal { position: fixed; inset: 0; background: rgba(2,6,16,.72); display: grid; place-items: center; z-index: 200; padding: 20px; }
.modal-card { background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 16px; padding: 28px; max-width: 620px; width: 100%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 40px rgba(59,130,246,.15); }
.modal-card h2 { font-size: 1.6rem; }
.key-box { background: #040814; color: #dbe4ff; border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px; margin: 14px 0 4px; word-break: break-all; user-select: all; }
.key-box code { font-size: .92rem; background: none; border: 0; }

/* operator console: agent system */
.qc-chip { font-size: 11px; }
.qc-passed { background: rgba(52,211,153,.14); color: var(--low); }
.qc-released { background: rgba(251,191,36,.14); color: var(--medium); }
.qc-needs_review { background: rgba(248,113,113,.14); color: var(--critical); }
.qc-not_run { background: rgba(255,255,255,.05); color: var(--muted); }
.trail-verify { padding: 8px 12px; border-radius: 8px; font-weight: 600; margin: 8px 0 12px; font-size: 14px; }
.trail-verify.ok { background: rgba(52,211,153,.14); color: var(--low); }
.trail-verify.bad { background: rgba(248,113,113,.14); color: var(--critical); }
ol.trail { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line-2); }
ol.trail .le { position: relative; padding: 6px 0 8px 16px; }
ol.trail .le::before { content: ""; position: absolute; left: -6px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted-2); }
ol.trail .le-dispatch::before { background: var(--blue); }
ol.trail .le-return::before { background: var(--cyan); }
ol.trail .le-qc::before { background: var(--low); }
ol.trail .le-halt::before { background: var(--critical); }
ol.trail .le-decision::before { background: var(--medium); }
.le-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 13px; }
.le-seq { color: var(--muted-2); font-family: var(--mono); }
.le-kind { font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; color: #fff; }
.le-agent { color: var(--brand-600); font-weight: 600; }
.le-hash { margin-left: auto; font-family: var(--mono); }
.le-body { color: var(--ink-2); margin-top: 2px; }
.le-body .findings { margin: 4px 0 0 16px; padding: 0; }
.le-body .le-note { margin-top: 4px; padding: 6px 8px; background: var(--bg-tint); border-radius: 6px; }
.le-body .err, .route .err { color: var(--critical); }
.transcript { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow-y: auto; }
.transcript .chat-msg { max-width: 90%; padding: 8px 10px; border-radius: 10px; font-size: 13px; white-space: pre-wrap; }
.transcript .chat-msg.visitor { align-self: flex-end; background: rgba(59,130,246,.2); color: #fff; }
.transcript .chat-msg.assistant { align-self: flex-start; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--ink-2); }
.route { margin-bottom: 6px; }

/* ---------- legal / content pages ---------- */
.draft-banner { border: 1px solid rgba(251,191,36,.6); background: rgba(251,191,36,.1); color: #fde68a; border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 28px; font-size: .95rem; }
.draft-banner strong { color: #fef3c7; }
.prose { max-width: 840px; }
.prose h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); }
.prose h2 { font-size: 1.6rem; margin: 36px 0 10px; }
.prose h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 12px 0 20px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; color: var(--ink-2); }
.prose th { color: #fff; background: rgba(59,130,246,.08); }

/* ---------- footer ---------- */
.site-footer .brand + p { margin-top: 14px; }
#shield { padding-top: 0; }
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 36px; background: linear-gradient(180deg, rgba(8,16,38,.6), #03060f); font-size: .9rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { color: #fff; font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-2); }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .flow, .flow.flow-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .flow-step:nth-child(3)::after, .flow-step:nth-child(3)::before { display: none; }
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .hero-grid, .split, .app-grid, .shield-panel { grid-template-columns: 1fr; }
  .shield-panel .sp-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .agents { grid-template-columns: repeat(2, 1fr); }
  .agent:nth-child(3n) { border-right: 1px solid var(--line); }
  .agent:nth-child(2n) { border-right: 0; }
  .agent:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .agent:nth-last-child(-n+2) { border-bottom: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stage { grid-template-columns: 1fr; gap: 16px; }
  .admin-grid, .admin-grid-wide { grid-template-columns: 1fr; }
  .form-inline { grid-template-columns: 1fr 1fr; }
  .hero-side .emblem { width: min(220px, 56vw); }
}
@media (max-width: 760px) {
  .grid-2, .grid-4, .form-row, .radio-cards { grid-template-columns: 1fr; }
  .agents { grid-template-columns: 1fr; }
  .agent, .agent:nth-child(3n) { border-right: 0; }
  .agent:nth-last-child(-n+3), .agent:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .agent:last-child { border-bottom: 0; }
  section { padding: 60px 0; }
  .hero { padding: 44px 0 40px; }
  .hero-tight { padding: 48px 0 40px; }
  .cta-band { padding: 32px 26px; }
  .cta-main { flex-direction: column; align-items: flex-start; }
  .shield-panel > div { padding: 26px; }
  .shield-panel .sp-main { grid-template-columns: 1fr; }
  .shield-panel .sp-main .emblem-sm { width: 76px; }
  .kv { grid-template-columns: 1fr; }
  .mock-row { grid-template-columns: 90px 1fr; }
  .mock-row .badge { grid-column: 2; justify-self: start; }
  .flow, .flow.flow-5 { grid-template-columns: 1fr; gap: 22px; }
  .flow-step::after, .flow-step::before { display: block; }
  .flow-step:not(:last-child)::after { top: auto; bottom: -18px; right: auto; left: 34px; width: 2px; height: 14px; }
  .flow-step:not(:last-child)::before { top: auto; bottom: -22px; right: auto; left: 30px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid #22d3ee; border-bottom: 0; }
  .flow-step:nth-child(3)::after, .flow-step:nth-child(3)::before { display: block; }
  dl.io > div { grid-template-columns: 1fr; gap: 2px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .stage { padding: 22px; }
  .rule-head::before, .rule-head::after { max-width: 40px; }
  .eyebrow { letter-spacing: .14em; }
}
@media (max-width: 440px) { .nav .brand small { display: none; } }

/* Collapse the primary nav earlier: it has seven entries. */
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #060c1d; flex-direction: column; align-items: stretch; padding: 12px 24px 20px; border-bottom: 1px solid var(--line-2); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .nav-links a[aria-current="page"] { box-shadow: none; color: #7dd3fc; }
  .nav-links a.btn { padding: 11px 18px; margin-top: 8px; }
}

/* comparison / data tables on content pages */
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.compare th { font-weight: 600; color: #fff; background: rgba(59,130,246,.08); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
details.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: #fff; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 12px 0 0; color: var(--ink-2); }
.hero .split h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.check-list + p { margin-top: 18px; }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .hero::before { opacity: .5; } }
