/* =========================================================
   PLENOX FIXTURE — token system
   Light theme, rooted in the real plenox.ai palette (navy /
   teal / orange on white) but retuned for a data-dense console:
   neutrals cooled toward navy, three reserved status hues
   (ok / warn / critical) that are never used decoratively.
   Type: Inter, single family, weight-driven hierarchy.
   Shared by the landing page and the operations simulation.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Surfaces */
  --bg:            #FFFFFF;
  --surface-1:     #F5F7FA;
  --surface-2:     #E9EDF2;
  --border:        #D5DBE3;
  --border-strong: #B8C2CE;
  --border-soft:   rgba(34, 48, 63, 0.08);
  --grid-line:     rgba(14, 70, 141, 0.06);

  /* Primary — single accent, disciplined use */
  --primary:        #0E468D;
  --primary-hover:  #1659AD;
  --primary-tint:   rgba(14, 70, 141, 0.08);
  --primary-border: rgba(14, 70, 141, 0.35);

  /* Reserved status hues — never decoration, only state */
  --ok:            #007A74;
  --ok-tint:       rgba(0, 122, 116, 0.10);
  --warn:          #BD4F1B;   /* text-safe warn (chip fill, warn copy) */
  --warn-bright:   #F26522;   /* fills with no text on them: markers, bars */
  --warn-tint:     rgba(242, 101, 34, 0.12);
  --critical:      #B42318;
  --critical-tint: rgba(180, 35, 24, 0.10);

  /* Text */
  --text-1:          #22303F;
  --text-2:          #5B6878;
  --text-on-primary: #FFFFFF;

  /* Type scale — consolidated, not per-element tuning */
  --t-2xs: 0.6875rem; /* 11px — viewport overlay chips, timeline ticks */
  --t-xs:  0.75rem;    /* 12px — chrome labels, units, footer */
  --t-sm:  0.8125rem;  /* 13px — tags, nav, small UI text */
  --t-base:1rem;       /* 16px — list items, body copy inside components */
  --t-md:  1.125rem;   /* 18px — ledes: hero-sub, section intros, h3 */
  --t-lg:  1.5rem;      /* 24px — stat values, modal title */
  --t-xl:  clamp(1.7rem, 1.35rem + 1.6vw, 2.5rem);   /* h2 */
  --t-2xl: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);    /* h1 */

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --shell: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3 { font-family: var(--font); color: var(--text-1); }
h1 { font-size: var(--t-2xl); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; }
h2 { font-size: var(--t-xl); font-weight: 650; letter-spacing: -0.025em; line-height: 1.1; }
h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { color: var(--text-2); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--primary); color: var(--text-on-primary); padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.94rem; padding: 12px 20px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--text-on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-1); }
.btn-ghost:hover { border-color: var(--primary-border); color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 0.86rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--primary); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.brand-product { font-size: var(--t-xs); color: var(--primary); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-size: var(--t-sm); color: var(--text-2); transition: color 0.15s ease; position: relative; padding-bottom: 2px; }
.main-nav a:hover { color: var(--text-1); }
.main-nav a[aria-current="true"] { color: var(--text-1); box-shadow: inset 0 -2px 0 var(--primary); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 36px; height: 36px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.nav-toggle-bar { width: 16px; height: 1.5px; background: var(--text-1); margin-inline: auto; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding-block: 84px 100px; }
.hero-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--text-2); font-size: var(--t-sm); font-weight: 500; letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--primary); flex-shrink: 0; }
.eyebrow strong { color: var(--text-1); font-weight: 600; }

.hero-copy h1 { margin-bottom: 20px; max-width: 18ch; }
.hero-sub { font-size: var(--t-md); max-width: 44ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hero-stats > div { padding: 16px 18px 16px 0; border-right: 1px solid var(--border); }
.hero-stats > div:last-child { border-right: none; padding-right: 0; }
.hero-stats dt { font-size: var(--t-xs); color: var(--text-2); margin-bottom: 5px; }
.hero-stats dd { font-size: 1.05rem; font-weight: 650; color: var(--text-1); font-variant-numeric: tabular-nums; }

/* ---------- detection console (hero visual) ---------- */
.console {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; display: grid; grid-template-rows: 34px 240px auto;
}
.console-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--bg); }
.console-cam { display: flex; align-items: center; gap: 8px; font-size: var(--t-xs); color: var(--text-2); }
.console-cam strong { color: var(--text-1); font-weight: 600; }
.console-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.4s ease-in-out infinite; flex-shrink: 0; }
.console-meta { font-size: var(--t-xs); color: var(--text-2); font-variant-numeric: tabular-nums; }
.console-scene {
  position: relative; width: 100%; height: 100%; background: var(--surface-2);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}
.console-scene svg { width: 100%; height: 100%; display: block; }
.scene-guide { stroke: var(--border); stroke-width: 1; }
.scene-panel { fill: var(--bg); stroke: var(--border-strong); stroke-width: 1.2; }
.scene-seam { fill: none; stroke: #8B97A6; stroke-width: 1.4; stroke-dasharray: 5 4; }
.scene-sweep { fill: var(--primary); opacity: 0.35; }
.bracket-ok { stroke: var(--ok); stroke-width: 1.5; opacity: 0.9; fill: none; }
.bracket-ok text { fill: var(--ok); }
.bracket-alert { stroke: var(--warn); stroke-width: 2; fill: none; }
.tag-ok, .tag-alert { font-family: var(--font); font-size: 9.5px; font-weight: 600; letter-spacing: 0.01em; }
.tag-ok { fill: var(--ok); }
.tag-alert-chip { fill: var(--warn); }
.tag-alert-text { fill: #FFFFFF; font-family: var(--font); font-size: 9.5px; font-weight: 700; }
.console-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); background: var(--bg); }
.console-stat { padding: 12px 14px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.console-stat:last-child { border-right: none; }
.console-stat-label { font-size: var(--t-xs); color: var(--text-2); }
.console-stat-value { font-size: 1.05rem; font-weight: 650; color: var(--text-1); font-variant-numeric: tabular-nums; }
.console-spark { display: flex; align-items: flex-end; gap: 2px; height: 14px; margin-top: 2px; }
.console-spark span { flex: 1; background: var(--primary); opacity: 0.45; border-radius: 1px; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

@media (prefers-reduced-motion: reduce) {
  .console-dot { animation: none; opacity: 1; }
}

/* ---------- relocated architecture diagram (Zero-Cloud pillar) ---------- */
.arch-svg { width: 100%; height: auto; overflow: visible; margin-top: 22px; }
.arch-line { fill: none; stroke: var(--border-strong); stroke-width: 1.5; }
.flow-dot { fill: var(--primary); }
.node-camera rect, .node-edge rect, .node-dash rect { fill: var(--bg); stroke: var(--border-strong); stroke-width: 1.4; }
.node-camera circle { fill: var(--surface-2); stroke: var(--primary); stroke-width: 1.4; }
.node-camera rect:nth-child(3) { fill: var(--primary); stroke: none; }
.node-edge line { stroke: var(--text-2); stroke-width: 1.3; }
.node-dash line, .node-dash rect:not(:first-child) { stroke: none; fill: var(--text-2); }
.node-dash rect:first-child { fill: var(--bg); stroke: var(--border-strong); }
.node-dash rect:nth-child(3) { fill: var(--primary); opacity: 0.85; }
.arch-label { fill: var(--text-2); font-family: var(--font); font-size: 11px; font-weight: 500; }
.arch-label-dim { fill: var(--text-2); opacity: 0.7; }
.readout rect { fill: var(--bg); stroke: var(--primary-border); stroke-width: 1.2; }
.readout text { fill: var(--primary); font-family: var(--font); font-size: 12px; font-weight: 650; text-anchor: middle; dominant-baseline: middle; transform: translate(0, 4px); }
.no-cloud path { fill: var(--text-2); }
.no-cloud line { stroke: var(--text-2); }

/* ---------- sections ---------- */
.section { padding-block: 80px; border-top: 1px solid var(--border); }
.section-alt { background: var(--surface-1); }
.section-head { max-width: 56ch; margin-bottom: 52px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { font-size: var(--t-md); }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.pillar { background: var(--bg); padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
.pillar-index {
  font-size: var(--t-xs); font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em; margin-bottom: 14px; display: block;
}
.pillar h3 { margin-bottom: 16px; }
.pillar-cap-label { display: block; font-size: var(--t-xs); color: var(--text-2); font-weight: 500; margin-bottom: 10px; }
.pillar-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; flex-grow: 1; }
.pillar-list li { position: relative; padding-left: 16px; font-size: var(--t-base); color: var(--text-2); }
.pillar-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; background: var(--primary); }
.pillar-value { border-top: 1px solid var(--border); padding-top: 18px; }
.pillar-value-label { display: block; font-size: var(--t-xs); color: var(--text-2); font-weight: 500; margin-bottom: 6px; }
.pillar-value p { font-size: var(--t-base); color: var(--text-1); }
.pillar-arch { margin-top: auto; }

/* ---------- sector matrix ---------- */
.matrix { display: grid; grid-template-columns: 320px 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.matrix-tabs { background: var(--bg); display: flex; flex-direction: column; }
.matrix-tab {
  text-align: left; background: transparent; border: none; border-left: 2px solid transparent;
  padding: 18px 22px; font-size: var(--t-sm); color: var(--text-2); border-bottom: 1px solid var(--border);
  transition: background 0.12s ease, color 0.12s ease; display: flex; align-items: baseline; gap: 12px;
}
.matrix-tab:last-child { border-bottom: none; }
.matrix-tab:hover { color: var(--text-1); background: var(--surface-1); }
.matrix-tab.is-active { color: var(--text-1); border-left-color: var(--primary); background: var(--surface-1); font-weight: 600; }
.tab-idx { font-size: var(--t-xs); color: var(--text-2); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.matrix-tab.is-active .tab-idx { color: var(--primary); }

.matrix-panels { background: var(--bg); position: relative; }
.matrix-panel { padding: 36px 40px; }
.matrix-panel[hidden] { display: none; }
.matrix-panel.is-active { animation: panelIn 200ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.matrix-panel h3 { margin-bottom: 20px; }
.scenario-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin-bottom: 28px; }
.scenario-list li { position: relative; padding-left: 16px; font-size: var(--t-base); color: var(--text-2); }
.scenario-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; background: var(--primary); }
.metric-row { display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--border); padding-top: 22px; }
.metric-tag { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-sm); color: var(--text-1); background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 12px; }
.metric-tag::before { content: ""; width: 5px; height: 5px; background: var(--primary); flex-shrink: 0; }

/* ---------- ROI ---------- */
.roi-panel { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-1); overflow: hidden; }
.roi-panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 22px 28px; border-bottom: 1px solid var(--border); }
.case-tag { font-size: var(--t-sm); color: var(--text-2); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 13px; }
.roi-slider-group { display: flex; align-items: center; gap: 12px; }
.roi-slider-group label { font-size: var(--t-xs); color: var(--text-2); }
.roi-range { display: flex; align-items: center; gap: 8px; }
.roi-range-bound { font-size: var(--t-xs); color: var(--text-2); font-variant-numeric: tabular-nums; }

.roi-slider-group input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 160px; height: 20px; background: transparent; margin: 0;
}
.roi-slider-group input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--border-strong); border-radius: 1px; }
.roi-slider-group input[type="range"]::-moz-range-track { height: 2px; background: var(--border-strong); border-radius: 1px; }
.roi-slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--primary); cursor: pointer;
}
.roi-slider-group input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary); cursor: pointer;
}
.roi-slider-group input[type="range"]:focus-visible { outline: none; }
.roi-slider-group input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--primary-tint); }
.roi-slider-group input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--primary-tint); }
.roi-slider-group output { font-weight: 650; color: var(--primary); min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }

.roi-tiles { display: grid; grid-template-columns: repeat(5, 1fr); }
.roi-tile {
  display: flex; flex-direction: column; gap: 8px; padding: 26px 22px;
  border-right: 1px solid var(--border); border-top: 1px solid var(--border);
  background: var(--bg);
}
.roi-tile:nth-child(5n) { border-right: none; }
.roi-tile-benefit { background: var(--ok-tint); }
.roi-label { font-size: var(--t-xs); color: var(--text-2); }
.roi-value { font-size: var(--t-lg); font-weight: 650; color: var(--text-1); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.roi-value-up { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.roi-value-up svg { flex-shrink: 0; }
.roi-value-up #statBenefit { color: var(--text-1); }
.roi-unit { font-size: var(--t-xs); color: var(--text-2); }

/* ---------- process ---------- */
.process-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-step { position: relative; padding-top: 52px; }
.process-step:not(:last-child)::after {
  content: ""; position: absolute; top: 17px; left: 34px; right: -28px; height: 1px; background: var(--border);
}
.process-num {
  position: absolute; top: 0; left: 0;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--primary-border); background: var(--bg); color: var(--primary);
  border-radius: var(--radius-pill); font-weight: 650; font-size: 0.9rem; font-variant-numeric: tabular-nums; z-index: 2;
}
.process-step h3 { margin-bottom: 8px; }
.process-step p { font-size: var(--t-base); }

/* ---------- closing ---------- */
.closing { text-align: left; position: relative; overflow: hidden; }
.closing-inner { max-width: 640px; position: relative; z-index: 1; }
.closing h2 { margin-bottom: 16px; }
.closing p { font-size: var(--t-md); margin-bottom: 32px; }
.closing-note { font-size: var(--t-xs); color: var(--text-2); margin-top: 18px; }
.closing-mark {
  position: absolute; top: 50%; right: -60px; transform: translateY(-50%);
  width: 340px; height: 340px; color: var(--primary); opacity: 0.06; pointer-events: none;
}
@media (max-width: 900px) { .closing-mark { display: none; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 36px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: baseline; gap: 6px; }
.footer-brand .brand-product { color: var(--text-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer-nav a { font-size: var(--t-sm); color: var(--text-2); }
.footer-nav a:hover { color: var(--text-1); }
.footer-copy { font-size: var(--t-xs); color: var(--text-2); }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(34, 48, 63, 0.40); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn 150ms ease-out;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 34px 30px 30px;
  animation: modalIn 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal { animation: none; }
}
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-2);
}
.modal-close:hover { color: var(--text-1); border-color: var(--primary-border); }
.modal h2 { font-size: var(--t-lg); margin-bottom: 8px; padding-right: 36px; }
.modal-sub { font-size: var(--t-sm); margin-bottom: 24px; }

.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: var(--t-xs); color: var(--text-2); margin-bottom: 6px; }
.form-row .optional { color: var(--text-2); }
.form-row input[type="text"], .form-row input[type="email"], .form-row textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-1); padding: 10px 12px; font-size: 0.92rem; resize: vertical;
}
.form-row input:focus-visible, .form-row textarea:focus-visible {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint);
}
.form-radio-row { border: none; display: flex; gap: 10px; }
.form-radio-row legend { display: block; width: 100%; font-size: var(--t-xs); color: var(--text-2); margin-bottom: 8px; }
.radio-pill {
  display: flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 8px 14px; font-size: var(--t-sm); color: var(--text-2); flex: 1; justify-content: center;
}
.radio-pill:has(input:checked) { border-color: var(--primary-border); color: var(--primary); background: var(--primary-tint); }
.radio-pill input { accent-color: var(--primary); }

.modal-success { text-align: center; padding-block: 12px; color: var(--ok); }
.modal-success h3 { color: var(--text-1); margin: 14px 0 8px; }
.modal-success p { font-size: var(--t-base); }
.modal-success svg { margin-inline: auto; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--bg); border: 1px solid var(--primary-border); color: var(--text-1);
  padding: 13px 20px; border-radius: var(--radius-sm); font-size: var(--t-sm); z-index: 400;
  max-width: 90vw; animation: toastIn 200ms ease-out;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ---------- hero entrance (single orchestrated moment) ---------- */
.hero-copy > * { opacity: 0; animation: rise 0.6s ease forwards; }
.hero-copy .eyebrow { animation-delay: 0.02s; }
.hero-copy h1 { animation-delay: 0.10s; }
.hero-copy .hero-sub { animation-delay: 0.18s; }
.hero-copy .hero-actions { animation-delay: 0.26s; }
.hero-copy .hero-stats { animation-delay: 0.34s; }
.hero-visual { opacity: 0; animation: rise 0.7s ease forwards; animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-visual { opacity: 1; animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin-inline: auto; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-bottom: 1px solid var(--border); }
  .matrix { grid-template-columns: 1fr; }
  .matrix-tabs { flex-direction: row; overflow-x: auto; }
  .matrix-tab { border-bottom: none; border-right: 1px solid var(--border); white-space: nowrap; border-left: none; border-top: 2px solid transparent; }
  .matrix-tab.is-active { border-left: none; border-top-color: var(--primary); }
  .roi-tiles { grid-template-columns: repeat(2, 1fr); }
  .roi-tile:nth-child(2n) { border-right: none; }
  .roi-tile:nth-child(5n) { border-right: 1px solid var(--border); }
  .process-line { grid-template-columns: 1fr; gap: 30px; }
  .process-step:not(:last-child)::after { display: none; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  body.nav-open .main-nav {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 4px;
  }
  body.nav-open .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
  body.nav-open .header-actions .btn-sm { display: inline-flex; }
  .scenario-list { grid-template-columns: 1fr; }
  .matrix-panel { padding: 28px 22px; }
  .console-strip { grid-template-columns: repeat(2, 1fr); }
  .console-stat:nth-child(2) { border-right: none; }
}

@media (max-width: 560px) {
  h1 { max-width: none !important; }
  .hero { padding-block: 52px 64px; }
  .section { padding-block: 56px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats > div { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 0; }
  .hero-stats > div:last-child { border-bottom: none; }
  .roi-tiles { grid-template-columns: 1fr; }
  .roi-tile { border-right: none !important; }
  .roi-panel-head { flex-direction: column; align-items: flex-start; }
  .roi-slider-group { width: 100%; }
  .roi-slider-group input[type="range"] { flex-grow: 1; width: auto; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
