/* ==========================================================================
   Reewave - site styles
   Design language: the ledger as a live signal. Deep teal-black base,
   cyan = live / primary action, amber = needs attention.
   ========================================================================== */

:root {
  --abyss: #06161d;      /* page background */
  --deep: #0a2029;       /* raised surfaces */
  --deeper: #0d2731;     /* inputs, hover rows */
  --rule: #18343f;       /* hairlines */
  --rule-strong: #24505e;
  --mist: #dcebee;       /* primary text */
  --haze: #8faab2;       /* secondary text */
  --dim: #5f7d86;        /* tertiary text */
  --signal: #62e6f0;     /* live, primary actions */
  --signal-ink: #04252b; /* text on signal */
  --flare: #f7b267;      /* attention */
  --error: #ff8a80;
  --series-a: #1fa3b2;   /* chart series (validated on --deep) */
  --series-b: #cc7a2e;

  --font-display: "Unbounded", "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: rgba(98, 230, 240, .28); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--signal); color: var(--signal-ink);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }

/* ---------- type ---------- */
.display, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; color: #f2fbfc; }
.display { font-size: clamp(40px, 6vw, 80px); line-height: .98; letter-spacing: -.035em; }
.h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.04; letter-spacing: -.03em; }
.h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; }
.h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; letter-spacing: -.01em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--haze); max-width: 58ch; }
.muted { color: var(--haze); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 62ch; color: var(--haze); }
.link { color: var(--signal); font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.link:hover { background-size: 100% 1px; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--mist); --btn-line: var(--rule-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: inset 0 0 0 1px var(--btn-line);
  font-weight: 600; font-size: 15px; letter-spacing: .005em; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s;
}
.btn:hover { --btn-line: var(--haze); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { --btn-bg: var(--signal); --btn-fg: var(--signal-ink); --btn-line: var(--signal); }
.btn--primary:hover { --btn-line: var(--signal); box-shadow: inset 0 0 0 1px var(--signal), 0 8px 32px -6px rgba(98, 230, 240, .55); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn svg { width: 18px; height: 18px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
}
.site-header.is-solid {
  background: rgba(6, 22, 29, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--rule);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -.02em; color: #f2fbfc; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark path { stroke-dasharray: 60; stroke-dashoffset: 0; }
.brand:hover .brand-mark path { animation: mark-sweep 1.1s var(--ease-out); }
@keyframes mark-sweep { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--haze);
  transition: color .25s, background-color .25s;
}
.nav-link:hover, .nav-item.open > .nav-link { color: var(--mist); background: rgba(220, 235, 238, .06); }
.nav-link[aria-current="page"] { color: var(--mist); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--signal); }
.nav-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.nav-item { position: relative; }
.nav-item.open > .nav-link svg { transform: rotate(180deg); }
.menu-panel {
  position: absolute; top: calc(100% + 10px); left: 50%;
  translate: -50% 0; min-width: 260px;
  background: #0b232d;
  border: 1px solid var(--rule-strong); border-radius: var(--r-lg);
  padding: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translateY(6px) scale(.98); transform-origin: top center;
  transition: opacity .22s var(--ease), transform .3s var(--ease-out), visibility 0s .3s;
}
.menu-panel::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; } /* hover bridge */
.nav-item.open > .menu-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-grid { display: grid; gap: 4px 20px; }
.menu-grid--3 { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
.menu-grid--2 { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
.menu-heading { font-size: 13px; color: var(--dim); padding: 4px 10px 8px; }
.menu-link { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; transition: background-color .2s; }
.menu-link:hover, .menu-link:focus-visible { background: rgba(98, 230, 240, .07); }
.menu-link svg { width: 18px; height: 18px; color: var(--signal); flex: none; margin-top: 2px; }
.menu-link strong { display: block; font-size: 14px; font-weight: 600; color: var(--mist); }
.menu-link span { display: block; font-size: 13px; color: var(--haze); line-height: 1.4; }
.menu-link .new { font-style: normal; display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: rgba(98, 230, 240, .14); color: var(--signal); font-size: 11px; font-weight: 600; vertical-align: 1px; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.menu-toggle svg { width: 24px; height: 24px; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: rgba(6, 22, 29, .97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column; padding: 14px var(--gutter) 28px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: 40px; margin-bottom: 24px; }
.mobile-menu nav a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em;
  opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .5s var(--ease-out), color .2s;
}
.mobile-menu nav a[aria-current="page"] { color: var(--signal); }
.mobile-menu.open nav a { opacity: 1; transform: none; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: .04s; }
.mobile-menu.open nav a:nth-child(3) { transition-delay: .08s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: .12s; }
.mobile-menu.open nav a:nth-child(5) { transition-delay: .16s; }
.mobile-menu.open nav a:nth-child(6) { transition-delay: .2s; }
.mobile-menu.open nav a:nth-child(7) { transition-delay: .24s; }
.mobile-menu .btn { margin-top: 28px; }

@media (max-width: 1023px) {
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- page transitions ---------- */
#main-content { min-height: 70vh; outline: none; }
#main-content.page-enter { animation: page-in .6s var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec--tight { padding: clamp(48px, 6vw, 80px) 0; }
.sec--line { border-top: 1px solid var(--rule); }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.sec-head--split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
@media (max-width: 860px) { .sec-head--split { grid-template-columns: 1fr; } }

.page-hero { padding: calc(var(--header-h) + clamp(48px, 8vw, 104px)) 0 clamp(24px, 3vw, 40px); position: relative; }
.page-hero .lede { margin-top: 22px; }
.page-hero .actions { margin-top: 32px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--signal); margin-bottom: 20px; }
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* graticule texture - used behind heroes only */
.graticule {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(98, 230, 240, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(98, 230, 240, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 20%, transparent 75%);
}

/* ---------- home hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: calc(var(--header-h) + clamp(36px, 5vw, 64px)); }
.hero-copy { max-width: 1000px; }
.hero .display .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero .display .line > span { display: inline-block; }
.hero.is-loading .display .line > span { transform: translateY(105%); }
.hero .display .line > span { transition: transform 1.1s var(--ease-out); }
.hero .display .line:nth-child(2) > span { transition-delay: .09s; }
.hero .display .line:nth-child(3) > span { transition-delay: .18s; }
.hero .lede, .hero .actions, .hero .hero-note { transition: opacity .9s var(--ease) .45s, transform 1s var(--ease-out) .45s; }
.hero.is-loading .lede, .hero.is-loading .actions, .hero.is-loading .hero-note { opacity: 0; transform: translateY(10px); }
.hero .lede { margin-top: 22px; }
.hero .actions { margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--dim); }

.signal { position: relative; margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.signal-stage { position: relative; height: clamp(220px, 26vw, 320px); }
.signal-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.signal.is-loading .signal-stage { opacity: 0; }
.signal-stage { transition: opacity 1.4s var(--ease) .3s; }
.signal-events { position: absolute; inset: 0; pointer-events: none; }
.signal-event {
  position: absolute; transform: translate(-50%, calc(-100% - 14px));
  padding: 6px 10px; border-radius: 999px; white-space: nowrap;
  background: rgba(10, 32, 41, .92); border: 1px solid var(--rule-strong);
  font-size: 12.5px; color: var(--mist); display: inline-flex; gap: 6px; align-items: center;
  opacity: 0; transition: opacity .5s var(--ease), transform .7s var(--ease-out);
}
.signal-event.show { opacity: 1; transform: translate(-50%, calc(-100% - 20px)); }
.signal-event i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.signal-event.warn i { background: var(--flare); box-shadow: 0 0 10px var(--flare); }
.signal-legend { position: absolute; left: var(--gutter); top: 14px; z-index: 1; font-size: 13px; color: var(--dim); display: flex; gap: 8px; align-items: center; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(98, 230, 240, .6); animation: live 2.4s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(98, 230, 240, .55); } 70% { box-shadow: 0 0 0 8px rgba(98, 230, 240, 0); } 100% { box-shadow: 0 0 0 0 rgba(98, 230, 240, 0); } }

.readouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.readout { padding: 20px 20px 22px 0; }
.readout + .readout { padding-left: 20px; border-left: 1px solid var(--rule); }
.readout dt { font-size: 13px; color: var(--haze); }
.readout dd { font-family: var(--font-mono); font-size: clamp(20px, 2.2vw, 28px); color: #f2fbfc; margin-top: 4px; letter-spacing: -.02em; }
.readout .delta { display: block; font-family: var(--font-body); font-size: 13px; color: var(--signal); margin-top: 2px; letter-spacing: 0; }
.readout .delta.warn { color: var(--flare); }
@media (max-width: 760px) {
  .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout:nth-child(3) { padding-left: 0; border-left: 0; }
  .readout:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* ---------- logos strip ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; color: var(--dim); }
.logos p { color: var(--haze); font-size: 14px; margin-right: 8px; }
.logos span { font-family: var(--font-display); font-size: 17px; letter-spacing: -.02em; color: #6f8e97; }

/* ---------- close-cycle comparison ---------- */
.cycle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px 80px; align-items: center; }
@media (max-width: 860px) { .cycle { grid-template-columns: 1fr; } }
.cycle-bars { display: grid; gap: 22px; }
.cycle-row { display: grid; gap: 8px; }
.cycle-row .label { display: flex; justify-content: space-between; font-size: 14px; color: var(--haze); }
.cycle-row .label strong { color: var(--mist); font-weight: 600; font-family: var(--font-mono); }
.cycle-track { height: 14px; border-radius: 4px; background: rgba(220, 235, 238, .04); overflow: hidden; }
.cycle-fill { height: 100%; border-radius: 4px; width: 0; transition: width 1.6s var(--ease-out); }
.cycle-fill--before { background: repeating-linear-gradient(135deg, #3b5560 0 6px, #2e4650 6px 12px); }
.cycle-fill--after { background: var(--signal); box-shadow: 0 0 18px rgba(98, 230, 240, .5); transition-delay: .35s; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--rule); }
.fact { padding: 22px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--rule); }
.fact strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; color: #f2fbfc; }
.fact span { display: block; margin-top: 6px; font-size: 14px; color: var(--haze); max-width: 30ch; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 22px; } }

/* ---------- scroll story (home) ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; }
.story-steps { display: grid; }
.story-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: .35; transition: opacity .6s var(--ease); }
.story-step.is-active { opacity: 1; }
.story-step .h2 { margin-top: 6px; }
.story-step .lede { margin-top: 18px; font-size: 18px; }
.story-step ul { margin-top: 24px; display: grid; gap: 10px; }
.story-step li { display: flex; gap: 10px; color: var(--mist); font-size: 15px; }
.story-step li svg { width: 18px; height: 18px; flex: none; color: var(--signal); margin-top: 3px; }
.story-step .link { margin-top: 26px; align-self: flex-start; }
.story-index { font-size: 14px; color: var(--signal); font-family: var(--font-mono); }
.story-visual { position: sticky; top: calc(50vh - 230px); height: 460px; }
.story-visual .viz { position: absolute; inset: 0; opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .55s var(--ease), transform .8s var(--ease-out); pointer-events: none; }
.story-visual .viz.is-active { opacity: 1; transform: none; pointer-events: auto; }
.story-step .viz-inline { display: none; }
@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-visual { display: none; }
  .story-step { min-height: 0; opacity: 1; padding: 48px 0; border-top: 1px solid var(--rule); }
  .story-step .viz-inline { display: block; margin-top: 32px; height: 400px; position: relative; }
  .story-step .viz-inline .viz { position: absolute; inset: 0; }
}

/* viz panels (illustrative product views) */
.viz { background: linear-gradient(180deg, #0c2530, #0a2029); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 22px; overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8); display: flex; flex-direction: column; }
.viz-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--haze); }
.viz-bar strong { color: var(--mist); font-weight: 600; font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgba(220, 235, 238, .06); color: var(--haze); white-space: nowrap; }
.pill--live { background: rgba(98, 230, 240, .12); color: var(--signal); }
.pill--warn { background: rgba(247, 178, 103, .14); color: var(--flare); }
.pill--done { background: rgba(98, 230, 240, .08); color: #9fd8de; }

.chat { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.chat-q { justify-self: end; max-width: 80%; background: rgba(98, 230, 240, .12); color: var(--mist); padding: 10px 14px; border-radius: 16px 16px 4px 16px; font-size: 14px; }
.chat-a { background: rgba(220, 235, 238, .04); border: 1px solid var(--rule); border-radius: 16px 16px 16px 4px; padding: 14px; font-size: 14px; }
.chat-a p { color: var(--haze); margin-bottom: 10px; }
.chat-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); }
.chat-item span { color: var(--mist); }
.chat-flag { margin-top: auto; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: rgba(247, 178, 103, .07); border: 1px solid rgba(247, 178, 103, .25); font-size: 13.5px; color: var(--mist); }
.chat-flag svg { width: 18px; height: 18px; color: var(--flare); flex: none; margin-top: 1px; }
.chat-flag .actions { margin-top: 8px; gap: 8px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--haze); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.close-viz { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; flex: 1; }
.ring { position: relative; width: 150px; height: 150px; }
.ring svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: rgba(220, 235, 238, .07); }
.ring .value { stroke: var(--signal); stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease-out); filter: drop-shadow(0 0 6px rgba(98, 230, 240, .5)); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label strong { font-family: var(--font-mono); font-size: 30px; font-weight: 500; color: #f2fbfc; letter-spacing: -.03em; }
.ring-label span { font-size: 12px; color: var(--haze); }
.tasks { display: grid; }
.task { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.task:last-child { border-bottom: 0; }
.task svg { width: 18px; height: 18px; color: var(--signal); }
.task.blocked svg { color: var(--flare); }
.task.open svg { color: var(--dim); }
.task small { display: block; color: var(--haze); font-size: 12.5px; }
@media (max-width: 520px) { .close-viz { grid-template-columns: 1fr; justify-items: center; } .tasks { width: 100%; } }

.chart-head { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 13px; color: var(--haze); margin-bottom: 10px; }
.legend-key { display: inline-flex; align-items: center; gap: 7px; }
.legend-key i { width: 12px; height: 12px; border-radius: 3px; background: var(--series-a); }
.legend-key i.budget { background: none; border-top: 2px dashed var(--series-b); height: 0; width: 14px; border-radius: 0; }
.chart { position: relative; flex: 1; min-height: 180px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid line { stroke: var(--rule); stroke-width: 1; }
.chart .axis text { fill: var(--dim); font-size: 11px; font-family: var(--font-body); }
.chart .bar { fill: var(--series-a); transition: opacity .2s; transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.chart.is-drawn .bar { transform: scaleY(1); transition: transform 1s var(--ease-out), opacity .2s; }
.chart .budget { fill: none; stroke: var(--series-b); stroke-width: 2; stroke-dasharray: 5 4; }
.chart .budget-dot { fill: var(--series-b); stroke: var(--deep); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hit:hover + .bar, .chart .bar.is-hover { opacity: .8; }
.chart-tip { position: absolute; pointer-events: none; padding: 8px 10px; border-radius: 10px; background: #102c37; border: 1px solid var(--rule-strong); font-size: 12.5px; line-height: 1.45; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .15s; z-index: 2; }
.chart-tip.show { opacity: 1; }
.chart-tip b { color: #f2fbfc; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); margin-top: 14px; padding-top: 12px; }
.kpis div + div { border-left: 1px solid var(--rule); padding-left: 14px; }
.kpis dt { font-size: 12px; color: var(--haze); }
.kpis dd { font-family: var(--font-mono); font-size: 17px; color: #f2fbfc; }
.kpis dd small { font-family: var(--font-body); color: var(--signal); font-size: 12px; margin-left: 4px; }

.flow { flex: 1; display: grid; align-content: center; gap: 26px; }
.flow-line { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.flow-line::before { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 1px; background: linear-gradient(90deg, var(--rule-strong), var(--signal), var(--rule-strong)); }
.flow-node { position: relative; z-index: 1; justify-self: center; display: grid; justify-items: center; gap: 8px; font-size: 12.5px; color: var(--haze); }
.flow-node b { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #0f2c37; border: 1px solid var(--rule-strong); color: var(--signal); }
.flow-node b svg { width: 22px; height: 22px; }
.flow-pulse { position: absolute; top: calc(50% - 4px); left: 10%; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px var(--signal); animation: flow 3.2s linear infinite; }
.flow-pulse:nth-of-type(2) { animation-delay: 1.07s; } .flow-pulse:nth-of-type(3) { animation-delay: 2.13s; }
@keyframes flow { from { left: 10%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } to { left: 88%; opacity: 0; } }
.flow-caption { text-align: center; font-size: 14px; color: var(--haze); }
.flow-caption strong { color: var(--mist); }

/* ---------- quotes ---------- */
.quotes { position: relative; display: grid; }
.quote { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .8s var(--ease-out); pointer-events: none; }
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quote blockquote { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 3vw, 36px); line-height: 1.25; letter-spacing: -.02em; color: #f2fbfc; max-width: 30ch; }
.quote figcaption { margin-top: 28px; display: flex; align-items: center; gap: 14px; font-size: 15px; }
.quote figcaption b { display: block; font-weight: 600; }
.quote figcaption span { color: var(--haze); font-size: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #11303b; border: 1px solid var(--rule-strong); color: var(--signal); font-weight: 600; font-size: 14px; flex: none; }
.quote-controls { display: flex; align-items: center; gap: 10px; margin-top: 44px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; box-shadow: inset 0 0 0 1px var(--rule-strong); transition: box-shadow .25s, color .25s; color: var(--haze); }
.icon-btn:hover { box-shadow: inset 0 0 0 1px var(--signal); color: var(--signal); }
.icon-btn svg { width: 20px; height: 20px; }
.dots { display: flex; gap: 8px; margin-left: 10px; }
.dot { width: 28px; height: 4px; border-radius: 2px; background: var(--rule-strong); position: relative; overflow: hidden; }
.dot.is-active::after { content: ""; position: absolute; inset: 0; background: var(--signal); transform-origin: left; animation: dot-fill var(--quote-ms, 7000ms) linear forwards; }
.quotes.is-paused .dot.is-active::after { animation-play-state: paused; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; border-top: 1px solid var(--rule); }
.cta-inner { padding-top: clamp(80px, 11vw, 140px); padding-bottom: clamp(80px, 11vw, 140px); display: grid; gap: 22px; justify-items: start; }
.cta .h1 { max-width: 16ch; }
.cta .lede { max-width: 48ch; }
.cta-wave { position: absolute; right: -40px; bottom: -10px; width: min(60vw, 760px); opacity: .55; pointer-events: none; }
.cta-wave path { fill: none; stroke: url(#cta-grad); stroke-width: 1.5; }
@media (max-width: 760px) { .cta-wave { width: 120vw; opacity: .3; } }

/* ---------- rows (feature lists) ---------- */
.rows { border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.4fr) 96px; gap: 8px 24px; align-items: baseline;
  padding: 26px 8px; border-bottom: 1px solid var(--rule); border-radius: 2px;
  transition: background-color .3s var(--ease), box-shadow .6s var(--ease);
}
.row:hover { background: rgba(220, 235, 238, .025); }
.row svg { width: 22px; height: 22px; color: var(--signal); transform: translateY(4px); }
.row h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.row p { color: var(--haze); }
.row .tag { justify-self: end; }
.row.is-highlight { background: rgba(98, 230, 240, .07); box-shadow: inset 3px 0 0 var(--signal); }
@media (max-width: 760px) {
  .row { grid-template-columns: 36px 1fr; }
  .row p { grid-column: 2; }
  .row .tag { grid-column: 2; justify-self: start; }
}
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--signal); background: rgba(98, 230, 240, .1); }
.tag--muted { color: var(--haze); background: rgba(220, 235, 238, .06); }
.tag--warn { color: var(--flare); background: rgba(247, 178, 103, .12); }

.cols { display: grid; gap: 40px; }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .cols--3, .cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cols--2, .cols--3, .cols--4 { grid-template-columns: 1fr; } }
.point { border-top: 1px solid var(--rule); padding-top: 20px; }
.point svg { width: 22px; height: 22px; color: var(--signal); margin-bottom: 14px; }
.point h3 { font-size: 17px; font-weight: 600; }
.point p { color: var(--haze); margin-top: 6px; font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--haze); box-shadow: inset 0 0 0 1px var(--rule-strong);
  transition: color .25s, box-shadow .25s, background-color .25s;
}
.chip:hover { color: var(--mist); box-shadow: inset 0 0 0 1px var(--haze); }
.chip.active, .chip[aria-current="true"] { background: var(--mist); color: var(--abyss); box-shadow: none; }
.chip-static { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--haze); box-shadow: inset 0 0 0 1px var(--rule); }

.panel { background: var(--deep); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }

/* filterable items */
.filterable-card { transition: opacity .35s var(--ease), transform .45s var(--ease-out); }
.filterable-card.is-out { opacity: 0; transform: scale(.98); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; padding: clamp(28px, 3.5vw, 44px); border-radius: var(--r-lg); border: 1px solid var(--rule); background: var(--deep); display: flex; flex-direction: column; }
.plan--featured { border-color: transparent; background: linear-gradient(var(--deep), var(--deep)) padding-box, linear-gradient(160deg, var(--signal), rgba(98, 230, 240, .1) 45%, var(--rule-strong)) border-box; border: 1px solid transparent; box-shadow: 0 30px 90px -40px rgba(98, 230, 240, .35); }
.plan h2 { font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: -.02em; }
.plan .for { color: var(--haze); margin-top: 6px; }
.plan .price { margin: 26px 0; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--haze); }
.plan .price strong { display: block; font-size: 20px; color: var(--mist); font-weight: 600; }
.plan ul { display: grid; gap: 11px; flex: 1; margin-bottom: 30px; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li svg { width: 18px; height: 18px; flex: none; color: var(--signal); margin-top: 3px; }
.plan .includes { font-size: 14px; color: var(--haze); margin-bottom: 12px; }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.table th, .table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--rule); }
.table thead th { font-weight: 600; color: var(--mist); background: rgba(220, 235, 238, .03); }
.table thead th.us { color: var(--signal); }
.table td.us { background: rgba(98, 230, 240, .035); }
.table tr.group td { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--haze); background: transparent; padding-top: 26px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:not(:first-child), .table th:not(:first-child) { text-align: center; }
.mark { display: inline-flex; align-items: center; gap: 6px; }
.mark svg { width: 18px; height: 18px; }
.mark--yes { color: var(--signal); }
.mark--part { color: var(--flare); }
.mark--no { color: var(--dim); }

/* accordion */
.acc { border-top: 1px solid var(--rule); }
.accordion-item { border-bottom: 1px solid var(--rule); }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; text-align: left; font-size: 17px; font-weight: 600; transition: color .2s; }
.accordion-trigger:hover { color: var(--signal); }
.accordion-trigger .plus { position: relative; width: 18px; height: 18px; flex: none; }
.accordion-trigger .plus::before, .accordion-trigger .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease-out); }
.accordion-trigger .plus::after { transform: rotate(90deg); }
.accordion-open .accordion-trigger .plus::after { transform: rotate(0); }
.accordion-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.accordion-content > div { overflow: hidden; }
.accordion-content p { color: var(--haze); padding-bottom: 22px; max-width: 70ch; }
.accordion-open .accordion-content { grid-template-rows: 1fr; }

/* ---------- stories / resources ---------- */
.feature-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px 64px; align-items: center; }
@media (max-width: 860px) { .feature-story { grid-template-columns: 1fr; } }
.big-metric { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 7vw, 84px); letter-spacing: -.04em; line-height: 1; color: #f2fbfc; }
.big-metric small { display: block; font-family: var(--font-body); font-size: 15px; color: var(--haze); letter-spacing: 0; margin-top: 12px; }
.story-quote { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; color: var(--mist); }
.story-quote + p { margin-top: 18px; color: var(--haze); font-size: 15px; }

.list-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
@media (max-width: 960px) { .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .list-grid { grid-template-columns: 1fr; } }
.cell { padding: 28px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; min-height: 220px; transition: background-color .3s; }
.cell:hover { background: rgba(220, 235, 238, .02); }
.cell .metric { font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: -.03em; color: #f2fbfc; line-height: 1.15; }
.cell h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.cell p { color: var(--haze); font-size: 15px; }
.cell .meta { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13.5px; color: var(--dim); }
.cell .meta .cell-action { margin-left: auto; }

.empty { padding: 40px 0; color: var(--haze); }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--mist); margin-bottom: 7px; }
.field label .opt { color: var(--dim); font-weight: 400; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  background: var(--deeper); border: 1px solid var(--rule-strong); color: var(--mist);
  transition: border-color .2s, box-shadow .25s, background-color .2s;
}
.input::placeholder { color: var(--dim); }
.input:hover { border-color: #2f6474; }
.input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgba(98, 230, 240, .14); }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238faab2' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
select.input option { background: var(--deep); color: var(--mist); }
textarea.input { min-height: 130px; resize: vertical; }
.input.is-invalid { border-color: var(--error); }
.input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(255, 138, 128, .15); }
.field-error { font-size: 13px; color: var(--error); margin-top: 6px; min-height: 0; }
.field-error:empty { display: none; }
.form-note { font-size: 13.5px; color: var(--dim); }
.shake { animation: shake .4s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success { text-align: left; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); border: 1px solid var(--rule); background: var(--deep); animation: page-in .6s var(--ease-out) both; }
.success-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(98, 230, 240, .12); color: var(--signal); margin-bottom: 20px; }
.success-mark svg { width: 28px; height: 28px; }
.success h2 { font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: -.02em; }
.success p { color: var(--haze); margin-top: 10px; }
.success .actions { margin-top: 24px; }

.inline-form { display: flex; gap: 10px; max-width: 520px; }
.inline-form .input { border-radius: 999px; padding-left: 20px; }
@media (max-width: 520px) { .inline-form { flex-direction: column; } }

.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }

.steps { display: grid; gap: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); }
.steps li::before { counter-increment: step; content: counter(step); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--signal); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.steps h3 { font-size: 16px; font-weight: 600; }
.steps p { color: var(--haze); font-size: 15px; margin-top: 2px; }

.contact-list { display: grid; }
.contact-item { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--rule); }
.contact-item svg { width: 20px; height: 20px; color: var(--signal); margin-top: 3px; }
.contact-item h3 { font-size: 16px; font-weight: 600; }
.contact-item p { color: var(--haze); font-size: 15px; }
.contact-item a.email { color: var(--mist); font-size: 15px; word-break: break-all; }
.contact-item a.email:hover { color: var(--signal); }

/* compare */
.verdicts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
@media (max-width: 860px) { .verdicts { grid-template-columns: 1fr; } }
.verdict { padding: 26px 28px 8px 0; }
.verdict + .verdict { padding-left: 28px; border-left: 1px solid var(--rule); }
@media (max-width: 860px) { .verdict + .verdict { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }
.verdict h3 { display: flex; gap: 10px; align-items: center; font-size: 17px; font-weight: 600; }
.verdict h3 svg { width: 20px; height: 20px; }
.verdict ul { margin-top: 14px; display: grid; gap: 8px; color: var(--haze); font-size: 15px; }
.verdict li { padding-left: 16px; position: relative; }
.verdict li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--dim); }
.verdict--us h3 svg { color: var(--signal); }
.verdict--them h3 svg { color: var(--flare); }
.verdict--either h3 svg { color: var(--haze); }

/* legal pages */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-toc ol { margin-top: 14px; display: grid; gap: 2px; border-left: 1px solid var(--rule); }
.legal-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; color: var(--haze); transition: color .2s, border-color .2s; }
.legal-toc a:hover { color: var(--mist); border-color: var(--signal); }
.legal-body { max-width: 72ch; }
.legal-body section { padding: 28px 0; border-top: 1px solid var(--rule); }
.legal-body section:first-child { border-top: 0; padding-top: 0; }
.legal-body h2 { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.015em; margin-bottom: 12px; color: #f2fbfc; }
.legal-body p, .legal-body li { color: var(--haze); line-height: 1.7; }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p, .legal-body .table-wrap + p { margin-top: 12px; }
.legal-body strong { color: var(--mist); font-weight: 600; }
.legal-body ul { display: grid; gap: 8px; margin-top: 10px; }
.legal-body li { position: relative; padding-left: 18px; }
.legal-body li::before { content: ""; position: absolute; left: 0; top: .78em; width: 7px; height: 1px; background: var(--signal); }
.legal-body .table-wrap { margin-top: 14px; }
.legal-body .table { min-width: 520px; font-size: 14px; }
.legal-body .table td, .legal-body .table th { text-align: left !important; vertical-align: top; }
.legal-body code { font-family: var(--font-mono); font-size: 13px; color: var(--mist); }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); gap: 24px; } .legal-toc { position: static; } .legal-toc ol { grid-template-columns: 1fr 1fr; border-left: 0; } .legal-toc a { padding-left: 0; border-left: 0; } }

/* checkboxes */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--haze); cursor: pointer; line-height: 1.5; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1px solid var(--rule-strong); background: var(--deeper); display: grid; place-content: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--signal-ink); border-bottom: 2px solid var(--signal-ink); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease-out); }
.check input:checked { background: var(--signal); border-color: var(--signal); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.check strong { display: block; color: var(--mist); font-weight: 600; }
.choices { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.choices legend { font-size: 14px; font-weight: 500; color: var(--mist); margin-bottom: 12px; padding: 0; }
#newsletter-msg { color: var(--mist); }
#newsletter-msg.is-error { color: var(--error); }

/* checklists inside panels */
.checklist { display: grid; gap: 10px; margin-top: 18px; flex: 1; }
.checklist li { display: flex; gap: 10px; font-size: 15px; }
.checklist svg { width: 18px; height: 18px; flex: none; color: var(--signal); margin-top: 3px; }
.panel-icon svg { width: 24px; height: 24px; color: var(--signal); }

/* company nav */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; }

/* brand swatches */
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.swatch div { height: 64px; border-radius: 12px; border: 1px solid var(--rule); }
.swatch p { font-size: 14px; margin-top: 8px; }
.swatch code { font-family: var(--font-mono); font-size: 13px; color: var(--haze); }

.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person .avatar { width: 64px; height: 64px; font-size: 18px; margin-bottom: 14px; }
.person b { display: block; font-weight: 600; }
.person span { color: var(--haze); font-size: 14px; }

.jobs { border-top: 1px solid var(--rule); }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.job h3 { font-size: 17px; font-weight: 600; }
.job .job-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
@media (max-width: 600px) { .job { grid-template-columns: 1fr; } .job .btn { justify-self: start; } }

.news { border-top: 1px solid var(--rule); }
.news a { display: grid; grid-template-columns: 90px 1fr 24px; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule); transition: color .2s, padding-left .35s var(--ease-out); }
.news a:hover { color: var(--signal); padding-left: 6px; }
.news time { color: var(--dim); font-size: 14px; font-family: var(--font-mono); }
.news span { font-size: 17px; font-weight: 500; }
.news svg { width: 18px; height: 18px; color: var(--dim); }

.facts-list { display: grid; }
.facts-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.facts-list dt { color: var(--haze); }
.facts-list dd { color: var(--mist); font-weight: 500; text-align: right; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 72px 0 32px; color: var(--haze); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(5, minmax(0, 1fr)); gap: 40px 28px; }
@media (max-width: 1100px) { .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer-legal p + p { margin-top: 4px; color: var(--dim); }
.footer-brand p { margin-top: 14px; max-width: 30ch; font-size: 15px; }
.footer-col h2 { font-size: 14px; font-weight: 600; color: var(--mist); margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--signal); }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; font-size: 14px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom a:hover { color: var(--signal); }

/* ---------- cookie ---------- */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 55; max-width: 420px;
  background: rgba(10, 32, 41, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--rule-strong); border-radius: var(--r-lg); padding: 20px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  transform: translateY(calc(100% + 40px)); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s var(--ease);
}
.cookie.show { transform: none; opacity: 1; }
.cookie p { font-size: 14px; color: var(--haze); }
.cookie .actions { margin-top: 14px; }
@media (max-width: 520px) { .cookie { left: 10px; right: 10px; max-width: none; } }

/* ---------- reveal (used sparingly) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1.1s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal, .story-step { opacity: 1 !important; transform: none !important; }
  .flow-pulse { display: none; }
}
