/* Wade Compliance Solutions — site styles
   Interaction feedback stays under 400ms: hovers/presses 150–250ms, view changes ≤ 350ms. */

:root {
  --bg: #05070B;
  --text: #EEF2F7;
  --text-2: #A3AEBC;
  --text-3: #9AA6B5;
  --dim: #6F7B8B;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.12);
  --accent: #5EF2C9;
  --blue: #3D5AFE;
  --warn: #FFC46B;
  --error: #FF8A8A;
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --fast: 160ms;
  --med: 260ms;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
html, body, main { overflow-x: clip; }
a { color: var(--text); }
a:hover { color: #fff; }
input, textarea, button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.label-muted { font-size: 12px; letter-spacing: .08em; color: #8C97A6; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Ambient cursor glow */
.cursor-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, -20%), color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%);
}
main, footer { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 24px; border-radius: 14px; border: 0;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform var(--fast) var(--ease), box-shadow var(--med) var(--ease), background var(--fast), opacity var(--fast);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-accent { background: var(--accent); color: var(--bg); box-shadow: 0 8px 30px -10px var(--accent); }
.btn-accent:hover { color: var(--bg); box-shadow: 0 14px 44px -8px var(--accent); }
.btn-ghost { color: var(--text); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); font-weight: 500; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-sm { min-height: 40px; padding: 9px 18px; border-radius: 12px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 16px 24px 0; }
.nav-shell {
  max-width: 1200px; margin: 0 auto; padding: 10px 10px 10px 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  background: rgba(14,18,26,.62); border: 1px solid rgba(255,255,255,.09); border-radius: 18px;
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 40px -12px rgba(0,0,0,.6);
  transition: background var(--med), box-shadow var(--med);
}
.site-header.scrolled .nav-shell { background: rgba(10,13,20,.85); box-shadow: 0 16px 50px -12px rgba(0,0,0,.85); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; color: var(--bg); display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #fff 0%, var(--accent) 45%, var(--blue) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 20px -4px var(--accent);
}
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14px; }
.nav-links a:not(.btn) { color: #B4BECB; text-decoration: none; padding: 10px 14px; border-radius: 10px; transition: background var(--fast), color var(--fast); }
.nav-links a:not(.btn):hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.07); }
.scroll-progress { max-width: 1160px; margin: 6px auto 0; height: 2px; border-radius: 2px; overflow: hidden; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--blue)); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* Section rail */
.rail { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 14px; }
.rail a { position: relative; display: block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); transition: background var(--fast), border-color var(--fast), transform var(--fast); }
.rail a::before { content: ''; position: absolute; inset: -10px; }
.rail a span { position: absolute; right: 22px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; font-size: 13px; padding: 5px 10px; border-radius: 8px; background: rgba(14,18,26,.9); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity var(--fast), transform var(--fast); }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.rail a.active { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }
.rail a.done { background: rgba(255,255,255,.35); border-color: transparent; }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: -94px; padding-top: 94px; }
.hero-floor {
  position: absolute; left: -20%; right: -20%; bottom: -40px; height: 420px;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 64px 64px; transform-origin: bottom center; transform: perspective(600px) rotateX(68deg);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floor-drift 6s linear infinite;
}
@keyframes floor-drift { to { background-position: 0 64px, 0 0; } }
.glow { position: absolute; left: 50%; pointer-events: none; }
.glow-top { top: -200px; width: 1100px; height: 700px; margin-left: -550px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); }
.glow-bottom { bottom: -300px; width: 1200px; height: 700px; margin-left: -600px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent); }

.hero-grid { position: relative; padding-top: 96px; padding-bottom: 120px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #C9D2DD; }
.pill-tag { padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--bg); font-weight: 600; font-size: 12px; }
.hero-title { font-weight: 600; font-size: clamp(3rem, 6.6vw, 5.6rem); line-height: .96; letter-spacing: -.045em; background: linear-gradient(180deg, #fff 30%, #8C97A6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { max-width: 520px; font-size: 19px; color: var(--text-2); }

/* Path chooser */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.paths legend { margin-bottom: 10px; }
.path { position: relative; cursor: pointer; }
.path input, .option input, .segmented input, .day input { position: absolute; opacity: 0; pointer-events: none; }
.path-body { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); transition: border-color var(--fast), background var(--fast), transform var(--fast); }
.path:hover .path-body { background: rgba(255,255,255,.07); transform: translateY(-1px); }
.path input:checked + .path-body { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: 0 0 0 1px var(--accent) inset; }
.path input:focus-visible + .path-body { outline: 2px solid var(--accent); outline-offset: 3px; }
.path-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); color: var(--accent); }
.path-text { display: flex; flex-direction: column; line-height: 1.3; }
.path-text strong { font-weight: 600; font-size: 15px; }
.path-text span { font-size: 13px; color: var(--text-3); }

/* 3D scene */
.scene-wrap { position: relative; height: 540px; perspective: 1600px; display: flex; align-items: center; justify-content: center; }
.orb { position: absolute; top: 70px; right: 20px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0%, var(--accent) 22%, #2E47E8 58%, #0B1030 78%); box-shadow: 0 0 120px 10px color-mix(in srgb, var(--accent) 35%, transparent), inset -30px -40px 80px rgba(0,0,0,.55); animation: pulse 7s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }
.scene { position: relative; width: 440px; max-width: 100%; height: 340px; transform-style: preserve-3d; --rx: 0deg; --ry: 0deg; animation: float 9s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: rotateX(calc(16deg + var(--rx))) rotateY(calc(-22deg + var(--ry))) rotateZ(3deg) translateY(0); }
  50% { transform: rotateX(calc(12deg + var(--rx))) rotateY(calc(-16deg + var(--ry))) rotateZ(2deg) translateY(-14px); }
}
.panel-back { position: absolute; inset: 0; border-radius: 22px; transform: translateZ(-90px) translate(-46px, -40px); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.panel-main { position: absolute; inset: 0; border-radius: 22px; padding: 22px; overflow: hidden; background: linear-gradient(160deg, rgba(30,36,50,.85), rgba(10,13,20,.92)); border: 1px solid var(--line-2); box-shadow: 0 50px 100px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12); backdrop-filter: blur(16px); }
.scene-view { display: flex; flex-direction: column; gap: 14px; animation: view-in var(--med) var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.scan-line { position: absolute; left: 0; right: 0; top: 60px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 18px 2px var(--accent); animation: scan 4.5s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes scan { 0% { transform: translateY(-10px); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateY(240px); opacity: 0; } }
.panel-head { display: flex; align-items: center; justify-content: space-between; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.scan-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.status { font-size: 12px; white-space: nowrap; }
.status.ok { color: var(--accent); }
.status.warn { color: var(--warn); }
.status.idle { color: #8C97A6; }
.panel-chip { position: absolute; right: -54px; bottom: -38px; transform: translateZ(110px); padding: 14px 18px; border-radius: 16px; display: flex; align-items: center; gap: 12px; background: rgba(240,244,250,.94); color: var(--bg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.chip-icon { width: 32px; height: 32px; border-radius: 10px; background: var(--bg); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.chip-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 14px; }
.chip-text span { font-size: 12px; color: #4A5464; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 0; }
.section-rule { border-top: 1px solid rgba(255,255,255,.07); }
.stack-xl { display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--accent); }
h2 { font-weight: 600; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -.04em; }
.lede { font-size: 18px; color: var(--text-2); max-width: 600px; }
.lede.narrow { font-size: 17px; max-width: 400px; }
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hint { font-size: 13px; color: var(--dim); margin-bottom: -28px; }
.step-num { font-size: 13px; color: var(--accent); }

/* Prime: flip badges */
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; perspective: 1400px; }
.badge {
  --ry: 0deg; --flip: 0deg;
  position: relative; display: block; width: 100%; height: 200px; padding: 0; border: 0; background: none; cursor: pointer; text-align: center;
  transform-style: preserve-3d; transform: perspective(900px) rotateX(6deg) rotateY(calc(var(--ry) + var(--flip)));
  transition: transform 350ms var(--ease);
}
.badge:hover { --ry: 0deg; }
.badge[aria-pressed="true"] { --flip: 180deg; --ry: 0deg; }
.badge-face {
  position: absolute; inset: 0; border-radius: 24px; padding: 28px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 40px 80px -30px rgba(0,0,0,.9);
}
.badge-front { background: linear-gradient(150deg, rgba(255,255,255,.12), rgba(255,255,255,.02) 60%); }
.badge-front strong { font-weight: 700; font-size: 40px; letter-spacing: -.03em; }
.badge-front span { color: var(--text-3); font-size: 15px; }
.badge-back { transform: rotateY(180deg); background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 22%, #0B1220), #0B1220 70%); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.badge-back strong { font-size: 20px; font-weight: 600; }
.badge-back span { font-size: 15px; color: #D5DEE8; }

.teaming { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.teaming li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 24px 24px 24px 0; }
.teaming h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.teaming p { color: var(--text-3); font-size: 15px; }
.teaming .step-num { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--accent); }

.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 20px 20px 20px 28px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); }
.inline-cta p { color: var(--text-2); }
.inline-cta strong { color: var(--text); }

/* SOC 2 checker */
.soc2-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px 72px; align-items: start; }
.meter { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px 24px; align-items: center; margin-top: 12px; padding: 24px; border-radius: 22px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); position: relative; }
.ring { width: 120px; height: 120px; transform: rotate(-90deg); grid-row: span 2; }
.ring circle { fill: none; stroke-width: 10; }
.ring-track { stroke: rgba(255,255,255,.08); }
.ring-fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 300ms var(--ease); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 60%, transparent)); }
.meter-text { position: absolute; left: 24px; top: 24px; width: 120px; height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.meter-count { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.meter-result strong { display: block; font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.meter-result p { color: var(--text-3); font-size: 15px; }

.checklist { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); cursor: pointer; transition: border-color var(--fast), background var(--fast); }
.check:hover { background: rgba(255,255,255,.06); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check strong { display: block; font-weight: 600; font-size: 16px; }
.check small { color: var(--text-3); font-size: 13px; }
.switch { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.12); transition: background var(--fast); }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform var(--fast) var(--ease); }
.check input:checked ~ .switch { background: var(--accent); }
.check input:checked ~ .switch::after { transform: translateX(18px); }
.check:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.check input:focus-visible ~ .switch { outline: 2px solid var(--accent); outline-offset: 3px; }
.checklist .btn { margin-top: 8px; }

/* Services tabs */
.tabs { border-radius: 24px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); overflow: hidden; }
.tablist { display: flex; gap: 4px; padding: 8px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tablist button { flex: none; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 0; background: transparent; color: var(--text-2); font-size: 15px; font-weight: 500; cursor: pointer; transition: background var(--fast), color var(--fast); }
.tablist button:hover { color: #fff; background: rgba(255,255,255,.05); }
.tablist button[aria-selected="true"] { color: var(--bg); background: var(--text); }
.tabpanel { padding: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px 40px; align-items: center; animation: view-in var(--med) var(--ease); }
.tabpanel h3 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.tabpanel p { color: var(--text-3); }
.tabpanel .btn { justify-self: start; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); color: #C9D2DD; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.card { padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.card p { color: var(--text-3); font-size: 15px; }
.tilt { transition: transform var(--med) var(--ease), border-color var(--fast); }
.tilt:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* ---------- Book a demo wizard ---------- */
.contact { overflow: hidden; }
.contact-card { position: relative; border-radius: 32px; padding: clamp(24px, 5vw, 56px); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px 56px; align-items: start; }
.email-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; text-decoration: none; font-size: 15px; color: var(--text-2); background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: background var(--fast); overflow-wrap: anywhere; }
.email-link:hover { background: rgba(255,255,255,.08); }

.wizard { display: flex; flex-direction: column; gap: 18px; }
.stepper { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--dim); }
.stepper li { display: flex; align-items: center; gap: 8px; transition: color var(--fast); }
.stepper li span { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; border: 1px solid rgba(255,255,255,.2); transition: background var(--fast), border-color var(--fast), color var(--fast); }
.stepper li.is-current { color: var(--text); }
.stepper li.is-current span { border-color: var(--accent); color: var(--accent); }
.stepper li.is-done { color: var(--text-2); }
.stepper li.is-done span { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.stepper-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.stepper-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--blue)); transform-origin: left; transform: scaleX(.33); transition: transform 300ms var(--ease); }

.step { display: flex; flex-direction: column; gap: 12px; animation: view-in var(--med) var(--ease); }
.step legend { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 14px; padding: 0; }
.option { position: relative; display: block; cursor: pointer; }
.option span { display: flex; flex-direction: column; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(5,7,11,.45); transition: border-color var(--fast), background var(--fast); }
.option strong { font-weight: 600; }
.option small { color: var(--text-3); font-size: 13px; }
.option:hover span { background: rgba(255,255,255,.05); }
.option input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: 0 0 0 1px var(--accent) inset; }
.option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.day { position: relative; cursor: pointer; }
.day span { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(5,7,11,.45); transition: border-color var(--fast), background var(--fast); line-height: 1.2; }
.day small { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.day strong { font-size: 20px; font-weight: 600; }
.day input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: 0 0 0 1px var(--accent) inset; }
.day input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(5,7,11,.5); border: 1px solid var(--line-2); }
.segmented label { position: relative; cursor: pointer; }
.segmented span { display: flex; flex-direction: column; align-items: center; padding: 10px; border-radius: 12px; transition: background var(--fast), color var(--fast); font-weight: 500; line-height: 1.25; }
.segmented small { font-size: 12px; color: var(--text-3); }
.segmented input:checked + span { background: var(--text); color: var(--bg); }
.segmented input:checked + span small { color: #4A5464; }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-2); }
.field input, .field textarea { padding: 14px 16px; border-radius: 12px; font-size: 16px; border: 1px solid var(--line-2); background: rgba(5,7,11,.6); color: var(--text); transition: border-color var(--fast), box-shadow var(--fast); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field input[aria-invalid="false"] { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.error { display: none; color: var(--error); font-size: 13px; }
.field input[aria-invalid="true"] ~ .error { display: block; }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.step-actions .btn-accent { min-width: 160px; }

.done { align-items: flex-start; gap: 14px; outline: none; }
.done-icon { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--bg); box-shadow: 0 10px 40px -8px var(--accent); }
.done h3 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.done p { color: var(--text-2); }

/* No-JS fallback: show every step */
.no-js .step[hidden] { display: flex !important; }
.no-js .done, .no-js .stepper, .no-js .stepper-bar, .no-js [data-next], .no-js [data-back] { display: none !important; }

/* Mobile sticky CTA */
.mobile-cta { display: none; }
.no-js .mobile-cta.hide { transform: none; opacity: 1; }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,.07); }
.footer-row { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; font-size: 14px; color: #7D8896; }
.footer-row .mono { font-size: 12px; letter-spacing: .1em; }
.footer-brand { font-weight: 600; color: var(--text); }

/* Scroll reveal (≤ 350ms) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 350ms var(--ease), transform 350ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Small screens ---------- */
@media (max-width: 960px) { .rail { display: none; } }
@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 84px; }
  .site-header { padding: 10px 12px 0; }
  .nav-shell { padding: 8px 8px 8px 14px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { margin-top: -82px; padding-top: 82px; }
  .hero-grid { padding-top: 56px; padding-bottom: 72px; }
  .scene-wrap { height: 400px; perspective: 1200px; }
  .scene { width: 290px; height: 300px; }
  .panel-main { padding: 16px; }
  .scan-row { padding: 10px 12px; font-size: 13px; }
  .orb { width: 220px; height: 220px; top: 40px; right: 0; }
  .panel-chip { right: -6px; bottom: -44px; }
  .section { padding: 88px 0; }
  .badge { transform: rotateY(var(--flip)); }
  .meter { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .meter-text { left: 50%; margin-left: -60px; }
  .tabpanel { padding: 24px; }
  .days small { font-size: 11px; }
  .day strong { font-size: 18px; }
  .mobile-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(5,7,11,.96) 60%, rgba(5,7,11,0)); transition: transform var(--med) var(--ease), opacity var(--med); }
  .mobile-cta.hide { transform: translateY(110%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
}
