/* ============================================================
   Self-hosted brand fonts (uploaded brand files at /fonts)
   ============================================================ */
@font-face { font-family:'IBM Plex Sans'; src:url("fonts/IBMPlexSans-Regular.ttf") format("truetype"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'IBM Plex Sans'; src:url("fonts/IBMPlexSans-Medium.ttf") format("truetype"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'IBM Plex Sans'; src:url("fonts/IBMPlexSans-SemiBold.ttf") format("truetype"); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'IBM Plex Sans'; src:url("fonts/IBMPlexSans-Bold.ttf") format("truetype"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Bricolage Grotesque'; src:url("fonts/BricolageGrotesque-Variable.ttf") format("truetype-variations"), url("fonts/BricolageGrotesque-Regular.ttf") format("truetype"); font-weight:400 800; font-style:normal; font-display:swap; }
@font-face { font-family:'IBM Plex Mono'; src:url("fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'IBM Plex Mono'; src:url("fonts/IBMPlexMono-Medium.ttf") format("truetype"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'IBM Plex Mono'; src:url("fonts/IBMPlexMono-SemiBold.ttf") format("truetype"); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'IBM Plex Mono'; src:url("fonts/IBMPlexMono-Bold.ttf") format("truetype"); font-weight:700; font-style:normal; font-display:swap; }

/* ============================================================
   TELEVESTIGO (TDSPEE) — Signal-intelligence / instrument-grade
   Dark interface · amber phosphor trace · radar motif
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg:          #ecedf0;
  --bg-2:        #e3e5e9;
  --surface:     #f7f8fa;
  --surface-2:   #fcfcfd;
  --surface-3:   #ffffff;

  --text:        #1b1d20;
  --text-dim:    #565a61;
  --text-faint:  #888d96;

  --line:        rgba(0, 0, 0, 0.10);
  --line-2:      rgba(0, 0, 0, 0.16);

  --accent:      #d99a1f;   /* signal gold (light theme) */
  --accent-2:    #ecb547;
  --accent-dim:  rgba(217, 154, 31, 0.14);
  --accent-line: rgba(217, 154, 31, 0.44);
  --scope:       #46d6b3;   /* radar phosphor teal */

  --radius:      4px;
  --radius-lg:   8px;
  --maxw:        1180px;
  --gutter:      clamp(1.15rem, 4vw, 2.75rem);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Atmospheric base gradients */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(255, 255, 255, 0.04), transparent 60%),
    radial-gradient(900px 600px at 8% 12%, rgba(255, 255, 255, 0.025), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

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

::selection { background: var(--accent); color: #1a1206; }

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

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: -100px; left: 12px;
  z-index: 200;
  background: var(--accent);
  color: #1a1206;
  padding: .6rem 1rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Texture overlays ---------- */
.fx-grain {
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none; opacity: .045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fx-scanline {
  position: fixed; inset: 0; z-index: 99;
  pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.16) 3px,
    transparent 4px
  );
  background-size: 100% 4px;
}

/* ---------- Shared atoms ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .5em;
}
.eyebrow__bracket { color: var(--text-faint); }
.eyebrow--bare { color: var(--text-faint); }
.eyebrow__icon { display: inline-flex; }
.eyebrow__icon svg { width: 15px; height: 15px; }

.btn {
  --bg-btn: transparent;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .04em;
  padding: .85em 1.5em;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--bg-btn);
  transition: border-color .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--solid {
  --bg-btn: var(--accent);
  color: #1a1206;
  border-color: var(--accent);
  font-weight: 600;
}
.btn--solid:hover {
  --bg-btn: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}
.btn--ghost { color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; justify-content: center; }

.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--scope);
  box-shadow: 0 0 8px var(--scope);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.ro__led {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--scope);
  box-shadow: 0 0 8px var(--scope);
  animation: pulse 2.4s ease-in-out infinite;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(236, 237, 240, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(236, 237, 240, 0.92);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__logo { height: 34px; width: auto; display: block; transition: opacity .25s var(--ease); }
.brand:hover .brand__logo { opacity: .82; }
.footer__brand .brand__logo { height: 30px; }
.brand__mark { color: var(--accent); display: grid; place-items: center; }
.brand__sweep { transform-origin: 16px 16px; animation: brand-sweep 4s linear infinite; }
@keyframes brand-sweep { to { transform: rotate(360deg); } }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -.01em;
}
.brand__code {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .42em;
  color: var(--text-faint);
  margin-top: 3px;
}

.nav {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .02em;
}
.nav a { color: var(--text-dim); position: relative; padding: .25rem 0; transition: color .2s var(--ease); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.header__cta { padding: .6em 1.1em; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem var(--gutter) 1.5rem;
  border-top: 1px solid var(--line);
  background: rgba(236, 237, 240, 0.97);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  font-family: var(--font-mono);
  font-size: .95rem;
  color: var(--text-dim);
  padding: .85rem .25rem;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-of-type { border: none; margin-top: .75rem; }
.mobile-nav .btn--solid { color: #1a1206; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.hero__graticule {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 70% 10%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000 25%, transparent 75%);
  opacity: .6;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.25fr .8fr;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 1.4rem 0 1.6rem;
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.trace { position: relative; white-space: nowrap; }
.trace__line {
  position: absolute;
  left: 0; bottom: -.18em;
  width: 100%; height: .35em;
  color: var(--accent);
  overflow: visible;
}
.trace__line path {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: draw 1.1s var(--ease) forwards;
  animation-delay: .9s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__sub {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--text-dim);
  max-width: 38ch;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.8rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  max-width: 30rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--bg); padding: 1rem 1.1rem; }
.stat dt {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .45rem;
}
.stat dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  letter-spacing: -.01em;
  color: var(--text);
}

/* ---------- Radar scope ---------- */
.hero__scope { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.scope {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(70, 214, 179, 0.05), transparent 70%),
    var(--surface);
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--line-2),
    0 0 80px rgba(70, 214, 179, 0.08);
}
.scope__grid { position: absolute; inset: 0; width: 100%; height: 100%; }

.scope__sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(70, 214, 179, 0) 0deg,
    rgba(70, 214, 179, 0) 250deg,
    rgba(70, 214, 179, 0.04) 310deg,
    rgba(70, 214, 179, 0.16) 345deg,
    rgba(70, 214, 179, 0.42) 358deg,
    rgba(70, 214, 179, 0) 360deg
  );
  animation: sweep 5.5s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.scope__blip {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--scope);
  box-shadow: 0 0 10px var(--scope), 0 0 4px #fff;
  transform: translate(-50%, -50%) scale(0);
  animation: blip 5.5s linear infinite;
  animation-delay: var(--delay);
}
.scope__blip::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%; border: 1px solid var(--scope);
  opacity: 0;
  animation: blip-ring 5.5s linear infinite;
  animation-delay: var(--delay);
}
@keyframes blip {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  5%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  45%  { opacity: .55; }
  80%  { opacity: 0; transform: translate(-50%, -50%) scale(.5); }
  100% { opacity: 0; }
}
@keyframes blip-ring {
  0%, 4%  { opacity: 0; transform: scale(.4); }
  6%      { opacity: .7; }
  35%     { opacity: 0; transform: scale(2.6); }
  100%    { opacity: 0; }
}

.scope__center {
  position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transform: translate(-50%, -50%);
}
.scope__reticle {
  position: absolute;
  left: var(--rx, 50%); top: var(--ry, 50%);
  width: 26px; height: 26px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .25s var(--ease);
  pointer-events: none;
}
.scope__reticle::before, .scope__reticle::after {
  content: ""; position: absolute; background: var(--accent-line);
}
.scope__reticle::before { left: 50%; top: -6px; width: 1px; height: 38px; transform: translateX(-50%); }
.scope__reticle::after  { top: 50%; left: -6px; height: 1px; width: 38px; transform: translateY(-50%); }
.scope.is-tracking .scope__reticle { opacity: 1; }

.scope__readout {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.ro { display: inline-flex; align-items: center; gap: .5em; }
.ro--coord { color: var(--scope); }
.ro--clock { color: var(--text-dim); }

/* ============================================================
   Ticker
   ============================================================ */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: .9rem 0;
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ticker__track i { color: var(--accent); font-style: normal; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============================================================
   Sections (shared)
   ============================================================ */
.section {
  padding-block: clamp(4rem, 9vw, 8rem);
  position: relative;
}
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section__head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 1rem 0 1.1rem;
}
.section__lede {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--text-dim);
  max-width: 54ch;
}
.section__lede em, .about__body em, .approach__head em { color: var(--accent); font-style: italic; }
.section__lede--lead {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--text);
  max-width: 56ch;
  line-height: 1.4;
}

/* ---------- Capability cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card {
  position: relative;
  background: var(--bg);
  padding: clamp(1.6rem, 2.5vw, 2.25rem);
  transition: background .3s var(--ease), transform .3s var(--ease);
  isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--accent-dim), transparent 60%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.card:hover { background: var(--surface); }
.card:hover::before { opacity: 1; }
.card--accent { background: var(--surface); }
.card--accent::before { opacity: .55; }

.card__no {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--accent);
  opacity: .65;
}
.card__icon {
  display: inline-flex;
  color: var(--accent);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.card__icon svg { width: 30px; height: 30px; }
.card:hover .card__icon { color: var(--accent-2); transform: translateY(-2px); }
.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -.01em;
  margin: 1.5rem 0 .8rem;
  line-height: 1.15;
}
.card__body { color: var(--text-dim); font-size: .96rem; }
.card__tags {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 1.5rem;
}
.card__tags li {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--text-faint);
  padding: .3em .7em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

/* ============================================================
   Platforms / products
   ============================================================ */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.product::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.product:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.product:hover::after { transform: scaleX(1); }

.product__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.4rem;
}
.product__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: .02em;
  color: var(--accent);
  padding: .2em .55em;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-dim);
}
.product__status {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex; align-items: center; gap: .5em;
}
.product__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}
.product__pitch {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.product__desc { color: var(--text-dim); font-size: .96rem; margin-bottom: 1.5rem; }

.product__modules {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1.75rem;
}
.product__modules span {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .02em;
  color: var(--text);
  padding: .4em .75em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product__facts {
  margin-top: auto;
  display: grid;
  gap: .85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.product__facts > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: baseline; }
.product__facts dt {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.product__facts dd { font-size: .88rem; color: var(--text-dim); }

/* ---------- Custom CTA ---------- */
.product-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 200% at 100% 0%, var(--accent-dim), transparent 55%),
    var(--surface);
}
.product-cta > div { flex: 1 1 28rem; max-width: 34rem; }
.product-cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  letter-spacing: -.01em;
  margin: .6rem 0 .6rem;
  text-wrap: balance;
}
.product-cta p { color: var(--text-dim); }
.product-cta .btn { flex-shrink: 0; }

/* ---------- Frameworks band (grouped by region) ---------- */
.frameworks { margin-top: clamp(2.5rem, 5vw, 4rem); }
.frameworks__label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2.25rem;
  text-align: center;
}
.frameworks__groups {
  display: grid;
  gap: 1.5rem;
  max-width: 1000px;
  margin-inline: auto;
}
.frameworks__group {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.frameworks__group:last-child { padding-bottom: 0; border-bottom: none; }
.frameworks__region {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: .55rem;
}
.frameworks__list {
  display: flex; flex-wrap: wrap;
  gap: .5rem;
}
.frameworks__list li {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--text-dim);
  padding: .45em .9em;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.frameworks__list li:hover { color: var(--accent); border-color: var(--accent-line); }
.frameworks__more {
  text-align: center;
  margin-top: 2rem;
  font-size: .92rem;
  color: var(--text-faint);
}

/* ============================================================
   Approach
   ============================================================ */
.approach__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.approach__head { margin-bottom: 0; position: sticky; top: 100px; }

.steps { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.25rem) .25rem;
  transition: background .3s var(--ease);
}
.section--alt .step { background: var(--bg-2); }
.step:hover { background: var(--surface); }
.step__no {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--accent);
  padding-top: .35rem;
}
.step__icon {
  display: inline-flex;
  color: var(--accent);
  padding-top: .15rem;
}
.step__icon svg { width: 28px; height: 28px; }
.step:hover .step__icon { color: var(--accent-2); }
.step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}
.step p { color: var(--text-dim); font-size: .98rem; max-width: 50ch; }

/* ============================================================
   About
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about__body p { color: var(--text-dim); margin-bottom: 1.25rem; font-size: 1.04rem; }
.about__body strong { color: var(--text); font-weight: 600; }
.about__points {
  display: grid; gap: .9rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.about__points li {
  display: flex; align-items: center; gap: .85rem;
  font-family: var(--font-mono);
  font-size: .88rem;
  color: var(--text);
}
.about__points span { color: var(--accent); font-size: .8rem; }

/* ============================================================
   Contact
   ============================================================ */
.section--contact {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(217, 154, 31, 0.07), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.contact__details { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.contact__details li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; align-items: baseline; }
.contact__label {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact__details a, .contact__details li > span:last-child { color: var(--text); }
.contact__details a:hover { color: var(--accent); }

.contact__form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .5rem; }
.field label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input, .field textarea {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  color: var(--text);
  transition: border-color .25s var(--ease), background .25s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
}
.form__status {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--scope);
  min-height: 1.2em;
}
.form__status.error { color: #ff7a6b; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 5vw, 4.5rem);
}
.footer__brand .brand { margin-bottom: 1.25rem; }
.footer__legal-name {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--text-dim);
  max-width: 32ch;
  margin-bottom: .75rem;
}
.footer__tag { color: var(--text-faint); font-size: .9rem; }

.footer__col-title {
  display: block;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}
.footer__nav { display: flex; flex-direction: column; gap: .7rem; }
.footer__nav a { color: var(--text-dim); font-size: .92rem; width: fit-content; transition: color .2s var(--ease); }
.footer__nav a:hover { color: var(--accent); }

.footer__products { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; }
.footer__products a { color: var(--text-dim); font-size: .88rem; transition: color .2s var(--ease); }
.footer__products a:hover { color: var(--accent); }
.footer__readout {
  font-family: var(--font-mono);
  font-size: .68rem;
  line-height: 1.9;
  letter-spacing: .08em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.footer__bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--text-faint);
}

/* ============================================================
   Reveal animations
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

.reveal-load {
  opacity: 0;
  transform: translateY(24px);
  animation: rise .95s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__scope { order: -1; max-width: 380px; margin-inline: auto; }
  .approach__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .approach__head { position: static; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  .products { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .product-cta { flex-direction: column; align-items: flex-start; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; }
  .product__facts > div { grid-template-columns: 1fr; gap: .25rem; }
  .frameworks__group { grid-template-columns: 1fr; gap: .55rem; }
  .frameworks__region { padding-top: 0; }
}

@media (max-width: 420px) {
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .contact__details li { grid-template-columns: 1fr; gap: .25rem; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], .reveal-load { opacity: 1 !important; transform: none !important; }
  .scope__sweep, .brand__sweep, .ticker__track { animation: none !important; }
  .trace__line path { stroke-dashoffset: 0 !important; }
}

/* ============================================================
   Multi-page additions
   ============================================================ */
/* Active nav link for the current page */
.nav a.active { color: var(--text); }
.nav a.active::after { transform: scaleX(1); }
.mobile-nav a.active { color: var(--accent); }

/* Home — "where to start" link cards */
.card--link { display: flex; flex-direction: column; }
.card--link .card__body { flex: 1 1 auto; }
.card__link {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .45em;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.card--link:hover .card__link { gap: .85em; color: var(--accent-2); }

/* End-of-page CTA strip */
.page-cta {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.page-cta p { color: var(--text-dim); font-size: 1.05rem; max-width: 44ch; }
.page-cta--inline { margin-top: 2.5rem; padding-top: 2rem; }

/* Accessible heading hidden visually (kept for screen-readers / SEO) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header CTA marked active on the contact page */
.header__cta.active { border-color: var(--accent); color: var(--accent); }

/* Platforms dropdown (desktop nav) */
.nav__group { position: relative; }
.nav__trigger { display: inline-flex; align-items: center; gap: .35em; }
.nav__caret { font-size: .7em; transition: transform .25s var(--ease); }
.nav__group:hover .nav__caret,
.nav__group:focus-within .nav__caret { transform: rotate(180deg); }
.nav__trigger.active { color: var(--text); }
.nav__trigger.active::after { transform: scaleX(1); }
/* invisible hover bridge so the menu doesn't drop on the gap */
.nav__group::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: .6rem; }
.nav__menu {
  position: absolute;
  top: calc(100% + .55rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 255px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: .4rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 90;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}
.nav__group:hover .nav__menu,
.nav__group:focus-within .nav__menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav__menu a {
  padding: .6rem .8rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .78rem;
  white-space: nowrap;
  color: var(--text-dim);
}
.nav__menu a::after { display: none; }
.nav__menu a:hover { background: var(--surface-2); color: var(--text); }
.nav__menu a.active { color: var(--accent); }

/* Mobile sub-items (IAG / PDPM under Platforms) */
.mobile-nav a.mobile-nav__sub {
  padding-left: 1.75rem;
  opacity: .9;
  font-size: .9rem;
}
.mobile-nav a.mobile-nav__sub::before { content: "→ "; color: var(--accent); opacity: .7; }

/* No-JS fallback navigation */
.noscript-nav {
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--text-dim);
}
.noscript-nav a { color: var(--accent); }

/* ---------- Dedicated product page (IAG / PDPM) ---------- */
.pdetail__head { max-width: 62rem; }
.pdetail__badge { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pdetail__pitch {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.95rem);
  line-height: 1.2;
  color: var(--accent);
  margin: 1.1rem 0 1.4rem;
  max-width: 24ch;
}
.pdetail__desc { color: var(--text-dim); font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 60ch; }
.pdetail__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.pdetail__body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.pdetail__subhead {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.pdetail__body .product__modules { margin-bottom: 0; }
.pdetail__body .product__facts { margin-top: 0; border-top: none; padding-top: 0; }
.pdetail__frameworks { margin-top: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 820px) {
  .pdetail__body { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Platforms overview — two product link-cards */
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card--platform .product__code { display: inline-block; margin-bottom: .25rem; }
.card--platform .card__title { margin-top: 1.25rem; }

/* ============================================================
   Entry animation (moved out of inline <style> so a strict CSP
   can use style-src 'self'). Base state is VISIBLE so content is
   never stuck hidden if the animation is paused; it still fades up.
   ============================================================ */
.reveal-load { opacity: 1; transform: none; animation: kitrise .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes kitrise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal-load { animation: none; } }

/* ============================================================
   PROFESSIONAL REDESIGN — hero visual, coverage strip, bands
   ============================================================ */

/* Hero: clean two-column, product visual on the right */
.hero--pro { padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero--pro .hero__title { font-weight: 700; font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.02; }
.hero--pro .hero__sub { max-width: 42ch; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2.2rem; }
.hero__trust span {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em;
  color: var(--text-faint); display: inline-flex; align-items: center; gap: .55em;
}
.hero__trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.hero__visual { display: flex; justify-content: center; }

/* Dashboard mockup card (replaces the radar) */
.mock {
  width: 100%; max-width: 460px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.55);
}
.mock__bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.mock__dots { display: flex; gap: .35rem; }
.mock__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.mock__title { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-left: .35rem; }
.mock__live { margin-left: auto; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--scope); display: inline-flex; align-items: center; gap: .45em; }
.mock__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--scope); box-shadow: 0 0 8px var(--scope); }
.mock__body { padding: 1.2rem; display: grid; gap: 1.15rem; }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.mock__kpi { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .85rem; }
.mock__kpi dt { font-family: var(--font-mono); font-size: .54rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: .45rem; }
.mock__kpi dd { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; color: var(--text); }
.mock__kpi dd em { font-style: normal; color: var(--accent); font-size: .9rem; }
.mock__sub { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.mock__cov { display: grid; gap: .65rem; }
.cov__row { display: grid; grid-template-columns: 6.5rem 1fr 2.4rem; align-items: center; gap: .8rem; }
.cov__name { font-family: var(--font-mono); font-size: .68rem; color: var(--text-dim); letter-spacing: .02em; }
.cov__meter { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.cov__fill { height: 100%; border-radius: 999px; background: var(--accent); }
.cov__pct { font-family: var(--font-mono); font-size: .64rem; color: var(--text-faint); text-align: right; }

/* Coverage / trust strip (replaces the ticker) */
.coverage-strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.coverage-strip__inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: .9rem 2.4rem; padding: 1.5rem var(--gutter);
}
.coverage-strip__label { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.coverage-strip__list { display: flex; flex-wrap: wrap; gap: .7rem 1.7rem; justify-content: center; }
.coverage-strip__list span { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .03em; color: var(--text-dim); }

/* Section heading that centers (home bands) */
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

/* Approach as a 4-across row on home */
.steps--row { grid-template-columns: repeat(4, 1fr); gap: 1px; }
.steps--row .step { padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.2rem, 2vw, 1.6rem); }
.steps--row .step > div { display: block; }
@media (max-width: 920px) { .steps--row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps--row { grid-template-columns: 1fr; } }

/* CTA band reuse spacing on home */
.band { padding-block: clamp(3.5rem, 7vw, 6rem); }
.band--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

@media (max-width: 980px) {
  .hero__visual { order: 2; margin-top: 1rem; }
  .hero--pro .hero__inner { grid-template-columns: 1fr; }
}

/* ============================================================
   PRIVACY & SECURITY — cookie consent, legal pages, DSAR form
   ============================================================ */

/* Form select + checkbox (extends .field) */
.field select {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: .85rem 1rem; color: var(--text); font: inherit;
}
.field select:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.field--check { flex-direction: row; align-items: flex-start; gap: .65rem; }
.field--check input { width: 1.05rem; height: 1.05rem; margin-top: .15rem; accent-color: var(--accent); flex: none; }
.field--check label { font-family: var(--font-body); font-size: .88rem; letter-spacing: 0; text-transform: none; color: var(--text-dim); }
.field--check label a { color: var(--accent); }
.field__hint { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .02em; color: var(--text-faint); margin-top: .1rem; }
.field__notice { display: flex; align-items: flex-start; gap: .5rem; font-size: .78rem; line-height: 1.45; color: var(--text-dim); margin-top: .35rem; padding: .55rem .7rem; background: var(--accent-dim); border: 1px solid var(--accent-line); border-radius: var(--radius); }
.field__notice-dot { flex: none; width: 7px; height: 7px; margin-top: .42rem; border-radius: 50%; background: var(--scope); box-shadow: 0 0 8px var(--scope); }

/* Cookie consent banner */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; display: flex; justify-content: center; padding: clamp(.75rem, 2vw, 1.25rem); }
.consent__card {
  width: 100%; max-width: var(--maxw);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.65); padding: 1.2rem 1.35rem; display: grid; gap: 1rem;
}
.consent__row { display: flex; align-items: flex-start; gap: 1.5rem 2rem; flex-wrap: wrap; justify-content: space-between; }
.consent__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.consent__head .eyebrow { margin: 0; }
.consent__text { flex: 1 1 30rem; color: var(--text-dim); font-size: .92rem; line-height: 1.55; }
.consent__text strong { color: var(--text); font-weight: 600; }
.consent__text a { color: var(--accent); }
.consent__actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.consent__prefs { display: grid; gap: .9rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.consent__pref { display: flex; align-items: flex-start; gap: 1.25rem; justify-content: space-between; }
.consent__pref h4 { font-family: var(--font-display); font-weight: 600; font-size: .98rem; margin-bottom: .2rem; }
.consent__pref p { color: var(--text-dim); font-size: .84rem; max-width: 64ch; }
.consent__tag { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }

/* Toggle switch */
.toggle { position: relative; width: 42px; height: 24px; flex: none; }
.toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.toggle__track { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); transition: background .2s var(--ease), border-color .2s; }
.toggle__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-dim); transition: transform .2s var(--ease), background .2s; }
.toggle input:checked + .toggle__track { background: var(--accent-dim); border-color: var(--accent-line); }
.toggle input:checked + .toggle__track::after { transform: translateX(18px); background: var(--accent); }
.toggle input:disabled { cursor: not-allowed; }
.toggle input:disabled + .toggle__track::after { background: var(--text-faint); }

.btn--sm { padding: .6em 1.1em; font-size: .78rem; }

/* Legal / privacy prose pages */
.legal { max-width: 76ch; }
.legal__meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.5rem; }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -.01em; margin: 2.2rem 0 .7rem; }
.legal h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; margin: 1.5rem 0 .45rem; }
.legal p { color: var(--text-dim); font-size: 1rem; line-height: 1.7; margin-bottom: .85rem; }
.legal ul { padding-left: 1.15rem; list-style: disc; display: grid; gap: .45rem; margin: .5rem 0 1rem; }
.legal li { color: var(--text-dim); font-size: 1rem; line-height: 1.6; }
.legal a { color: var(--accent); }
.legal strong { color: var(--text); }
.legal__note {
  border: 1px solid var(--line-2); border-left: 3px solid var(--accent-line);
  border-radius: var(--radius); background: var(--surface); padding: 1rem 1.15rem;
  color: var(--text-dim); font-size: .9rem; line-height: 1.6; margin: 1.75rem 0;
}

/* Rights grid (DSAR) */
.rights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 1.75rem 0 2.5rem; }
.rights__item { background: var(--bg); padding: 1.3rem; }
.rights__item .step__icon { color: var(--accent); }
.rights__item h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; margin: .7rem 0 .35rem; }
.rights__item p { color: var(--text-dim); font-size: .86rem; line-height: 1.55; }
@media (max-width: 760px) { .rights { grid-template-columns: 1fr; } }

/* Error boundary fallback */
.errbox { max-width: 40rem; margin: 6rem auto; text-align: center; padding: 0 var(--gutter); }
.errbox h1 { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; margin-bottom: .75rem; }
.errbox p { color: var(--text-dim); margin-bottom: 1.5rem; }
