/* ============================================================
   ANSWERWRIGHT DESIGN SYSTEM  —  "Signal"
   Zero dependencies. Zero webfonts. Pure platform.
   ============================================================ */

@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --glow { syntax: '<number>'; inherits: false; initial-value: 0; }

:root {
  color-scheme: dark;

  /* ---- palette ---- */
  --bg:        #06070a;
  --bg-2:      #0a0c11;
  --panel:     #0e1118;
  --panel-2:   #131722;
  --line:      #1e2431;
  --line-2:    #2a3242;

  --ink:       #eef2f8;
  --ink-2:     #a8b3c5;
  --ink-3:     #6c7889;

  --signal:    #c4f230;   /* primary — answer/affirm */
  --signal-d:  #93b81e;
  --plasma:    #7c5cff;   /* secondary — AI/generative */
  --aqua:      #3ddbd9;   /* tertiary — data */
  --amber:     #ffb347;

  --ok:        #3ddb87;
  --warn:      #ffb347;

  /* ---- type scale (fluid) ---- */
  --f-xs:   clamp(.69rem, .66rem + .12vw, .76rem);
  --f-sm:   clamp(.8rem, .77rem + .15vw, .89rem);
  --f-base: clamp(.95rem, .91rem + .2vw, 1.03rem);
  --f-lg:   clamp(1.1rem, 1.02rem + .38vw, 1.3rem);
  --f-xl:   clamp(1.35rem, 1.18rem + .8vw, 1.85rem);
  --f-2xl:  clamp(1.7rem, 1.35rem + 1.6vw, 2.7rem);
  --f-3xl:  clamp(2.1rem, 1.5rem + 2.9vw, 4rem);
  --f-4xl:  clamp(2.6rem, 1.5rem + 5.2vw, 6.2rem);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* ---- space / shape ---- */
  --gut: clamp(1.1rem, .6rem + 2.2vw, 2.5rem);
  --max: 1280px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 60px -20px rgba(0,0,0,.8);
  --ease: cubic-bezier(.22,.68,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--f-base)/1.65 var(--sans);
  letter-spacing: -.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ambient field */
body::before {
  content: '';
  position: fixed;
  inset: -30vh -10vw;
  z-index: -2;
  background:
    radial-gradient(58vw 52vh at 8% -6%, color-mix(in oklab, var(--plasma) 42%, transparent), transparent 64%),
    radial-gradient(48vw 44vh at 95% 2%, color-mix(in oklab, var(--aqua) 26%, transparent), transparent 62%),
    radial-gradient(64vw 56vh at 52% 106%, color-mix(in oklab, var(--signal) 18%, transparent), transparent 68%);
  filter: blur(24px) saturate(135%);
  opacity: .95;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: color-mix(in oklab, var(--signal) 82%, transparent); color: #071006; }

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

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--signal); color: #071006; padding: .7rem 1.1rem;
  font-weight: 650; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

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

/* ============ HEADER ============ */
.hdr {
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  background: color-mix(in oklab, var(--bg) 76%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.hdr[data-stuck='1'] {
  border-bottom-color: var(--line);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
}
.hdr-in {
  display: flex; align-items: center; gap: 1.4rem;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: .62rem; font-weight: 640; letter-spacing: -.03em; font-size: 1.06rem; flex: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 680; }
.brand span { color: var(--ink-3); font-weight: 480; }

.nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav a, .nav button.navlink {
  font-size: var(--f-sm); color: var(--ink-2); padding: .5rem .72rem;
  border-radius: 999px; background: none; border: 0; cursor: pointer;
  transition: color .22s var(--ease), background .22s var(--ease);
  white-space: nowrap;
}
.nav a:hover, .nav button.navlink:hover { color: var(--ink); background: rgba(255,255,255,.055); }
.nav a[aria-current='page'] { color: var(--signal); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .68rem 1.15rem; border-radius: 999px;
  font-size: var(--f-sm); font-weight: 600; letter-spacing: -.015em;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--ink);
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .22s var(--ease), border-color .22s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.08); border-color: var(--ink-3); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--signal); color: #08120a; border-color: transparent;
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--signal) 55%, transparent);
}
.btn-primary:hover {
  background: color-mix(in oklab, var(--signal) 90%, #fff);
  box-shadow: 0 10px 34px -8px color-mix(in oklab, var(--signal) 62%, transparent);
}
.btn-lg { padding: .92rem 1.6rem; font-size: var(--f-base); }
.btn-ghost { background: none; }

.nav-links { display: contents; }

/* hamburger */
.menu-btn {
  display: none; width: 40px; height: 40px; flex: none; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04); cursor: pointer;
  padding: 0; place-items: center; gap: 5px; flex-direction: column;
}
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.menu-btn[aria-expanded='true'] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* mobile drawer */
.mobnav { display: none; border-top: 1px solid var(--line); background: color-mix(in oklab, var(--bg) 96%, transparent); }
.mobnav .wrap { display: grid; gap: .1rem; padding-block: 1rem 1.4rem; }
.mobnav a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem .2rem; color: var(--ink-2); font-size: var(--f-lg); letter-spacing: -.025em;
  border-bottom: 1px solid var(--line);
}
.mobnav a:not(.btn) svg { color: var(--ink-3); }
.mobnav a[aria-current='page'] { color: var(--signal); }

@media (max-width: 1180px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .mobnav[data-open='1'] { display: block; animation: drawer .28s var(--ease-out); }
  @keyframes drawer { from { opacity: 0; transform: translateY(-8px); } }
}
@media (max-width: 560px) {
  .nav .navlink-text, .askbtn kbd { display: none; }
  .askbtn { padding: .5rem; }
  .cta-hdr { display: none; }
  .hdr-in { gap: .6rem; }
}

/* ============ ASK BAR (answer engine trigger) ============ */
.askbtn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .5rem .45rem .85rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04);
  color: var(--ink-3); font-size: var(--f-sm); cursor: pointer;
  transition: border-color .22s var(--ease), color .22s var(--ease), background .22s var(--ease);
}
.askbtn:hover { border-color: color-mix(in oklab, var(--signal) 55%, var(--line-2)); color: var(--ink); background: rgba(255,255,255,.07); }
.askbtn kbd {
  font: 600 .68rem/1 var(--mono); padding: .3rem .42rem; border-radius: 6px;
  background: rgba(255,255,255,.07); border: 1px solid var(--line-2); color: var(--ink-2);
}

/* ============ HERO ============ */
.hero { position: relative; padding: clamp(3rem, 7vw, 7rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 550 var(--f-xs)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--signal); padding: .5rem .8rem; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--signal) 30%, transparent);
  background: color-mix(in oklab, var(--signal) 8%, transparent);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

h1, h2, h3, h4 { letter-spacing: -.035em; line-height: 1.07; font-weight: 640; margin: 0; text-wrap: balance; }
h1 { font-size: var(--f-4xl); }
h2 { font-size: var(--f-2xl); letter-spacing: -.032em; }
h3 { font-size: var(--f-lg); letter-spacing: -.025em; }
p { margin: 0; text-wrap: pretty; }

.display {
  font-size: var(--f-4xl); font-weight: 660; line-height: .98; letter-spacing: -.045em;
  margin: 1.4rem 0 0;
}
.display .grad {
  background: linear-gradient(96deg, var(--signal), var(--aqua) 45%, var(--plasma));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: var(--f-lg); color: var(--ink-2); max-width: 60ch; margin-top: 1.5rem; line-height: 1.55; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; align-items: center; }

/* ============ SECTIONS ============ */
section { position: relative; }
.sec { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.sec-head { margin-bottom: clamp(1.8rem, 3vw, 3rem); }
.sec-kicker {
  font: 600 var(--f-xs)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem;
}
.sec-kicker::before { content: ''; width: 26px; height: 1px; background: var(--line-2); }
.sec-sub { color: var(--ink-2); margin-top: .9rem; max-width: 62ch; font-size: var(--f-base); }

.hr { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 0; }

/* ============ CARDS / GRID ============ */
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.card {
  position: relative; padding: 1.5rem; border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
  overflow: hidden;
}
.card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(340px 220px at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--signal) 13%, transparent), transparent 70%);
  transition: opacity .35s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card:hover::after { opacity: 1; }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--ink-2); font-size: var(--f-sm); }

/* Flex so the "Read ->" cue can be pinned to the card foot no matter how
   long the excerpt runs. */
.card-link { display: flex; flex-direction: column; }
.card-link:hover h3 { color: var(--signal); }
.card-link .tile-go { margin-top: 1rem; }
.card-link:hover .tile-go svg { transform: translateX(4px); }
.card h3 { transition: color .25s var(--ease); }

.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font: 600 var(--f-xs)/1 var(--mono); letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); padding: .34rem .6rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.pill-signal { color: var(--signal); border-color: color-mix(in oklab, var(--signal) 28%, transparent); background: color-mix(in oklab, var(--signal) 7%, transparent); }
.pill-plasma { color: var(--plasma); border-color: color-mix(in oklab, var(--plasma) 32%, transparent); background: color-mix(in oklab, var(--plasma) 9%, transparent); }
.pill-aqua   { color: var(--aqua);   border-color: color-mix(in oklab, var(--aqua) 30%, transparent);   background: color-mix(in oklab, var(--aqua) 8%, transparent); }

/* stat */
.stat { display: flex; flex-direction: column; gap: .3rem; }
.stat b {
  font: 640 var(--f-3xl)/1 var(--sans); letter-spacing: -.05em;
  background: linear-gradient(180deg, var(--ink), var(--ink-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: var(--f-sm); color: var(--ink-3); }

/* ============ SCROLL REVEAL (scroll-driven where supported) ============ */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 1; transform: none;
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
    @keyframes reveal-in {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ============ PROSE ============ */
.prose { max-width: 74ch; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: var(--f-xl); margin-top: 2.8rem; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--f-lg); margin-top: 2rem; color: var(--ink); scroll-margin-top: 96px; }
.prose p { color: var(--ink-2); font-size: var(--f-base); line-height: 1.75; }
.prose strong { color: var(--ink); font-weight: 620; }
.prose ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.prose ul li {
  position: relative; padding-left: 1.6rem; color: var(--ink-2); font-size: var(--f-base); line-height: 1.6;
}
.prose ul li::before {
  content: ''; position: absolute; left: .25rem; top: .62em;
  width: 6px; height: 6px; border-radius: 2px; background: var(--signal); opacity: .85;
  rotate: 45deg;
}
.prose a.ilink { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--signal) 40%, transparent); }
.prose a.ilink:hover { text-decoration-color: var(--signal); }

.pull {
  border-left: 2px solid var(--signal); padding: .3rem 0 .3rem 1.3rem;
  font-size: var(--f-lg); color: var(--ink); line-height: 1.5; letter-spacing: -.02em;
}

/* FAQ (native disclosure) */
.faq { display: grid; gap: .6rem; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.faq details[open] { border-color: color-mix(in oklab, var(--signal) 32%, var(--line)); background: var(--panel-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 1.15rem;
  font-weight: 570; font-size: var(--f-base); color: var(--ink);
  display: flex; align-items: flex-start; gap: .9rem; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; margin-left: auto; flex: none; width: 11px; height: 11px; margin-top: .42em;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  rotate: 45deg; transition: rotate .3s var(--ease), border-color .25s var(--ease);
}
.faq details[open] summary::after { rotate: -135deg; border-color: var(--signal); }
.faq .ans { padding: 0 1.15rem 1.15rem; color: var(--ink-2); font-size: var(--f-sm); line-height: 1.7; }
.faq .qn { color: var(--signal); font: 600 var(--f-xs)/1.5 var(--mono); flex: none; }

/* ============ TABLE OF CONTENTS ============ */
.doc { display: grid; grid-template-columns: minmax(0,1fr); gap: 3rem; }
@media (min-width: 1060px) {
  .doc { grid-template-columns: minmax(0,1fr) 250px; }
  .toc-col { order: 2; }
}
.toc { position: sticky; top: 96px; font-size: var(--f-sm); }
.toc-title { font: 600 var(--f-xs)/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; border-left: 1px solid var(--line); }
.toc a {
  display: block; padding: .38rem .85rem; color: var(--ink-3); border-left: 2px solid transparent; margin-left: -1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.toc a:hover { color: var(--ink-2); }
.toc a.active { color: var(--signal); border-left-color: var(--signal); }

/* reading progress */
.progress {
  position: fixed; left: 0; top: 0; height: 2px; z-index: 95;
  background: linear-gradient(90deg, var(--signal), var(--aqua));
  width: 0%; transition: width .1s linear;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress {
      width: auto; right: 0; transform-origin: 0 50%; transition: none;
      animation: grow linear both; animation-timeline: scroll(root block);
    }
    @keyframes grow { from { scale: 0 1; } to { scale: 1 1; } }
  }
}

/* ============ INDEX / LISTS ============ */
.rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.2rem; align-items: center;
  padding: 1.05rem .2rem; border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease), padding .25s var(--ease);
}
.row:hover { background: rgba(255,255,255,.028); padding-inline: .8rem; }
.row-t { font-weight: 545; letter-spacing: -.022em; font-size: var(--f-base); transition: color .2s var(--ease); }
.row:hover .row-t { color: var(--signal); }
.row-d { color: var(--ink-3); font-size: var(--f-sm); margin-top: .28rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.row-m { display: flex; align-items: center; gap: .7rem; color: var(--ink-3); font: 500 var(--f-xs)/1 var(--mono); letter-spacing: .06em; }

/* chips filter */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.6rem; }
.chip {
  padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.025); color: var(--ink-2); font-size: var(--f-sm); cursor: pointer;
  transition: all .22s var(--ease);
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--signal); color: #08120a; border-color: transparent; font-weight: 600; }
.chip b { font-variant-numeric: tabular-nums; opacity: .55; font-weight: 500; margin-left: .3rem; }

.filterbar {
  display: flex; gap: .7rem; align-items: center; flex-wrap: wrap;
  padding: .8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
  margin-bottom: 1.4rem;
}
.filterbar input[type='search'] {
  flex: 1 1 220px; min-width: 0; background: rgba(0,0,0,.35); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: .62rem .9rem; color: var(--ink); font-size: var(--f-sm);
  transition: border-color .22s var(--ease);
}
.filterbar input[type='search']:focus { outline: none; border-color: var(--signal); }
.filterbar input::placeholder { color: var(--ink-3); }
.count { font: 500 var(--f-xs)/1 var(--mono); color: var(--ink-3); letter-spacing: .06em; }

/* ============ ANSWER ENGINE OVERLAY ============ */
dialog.ask {
  padding: 0; border: 0; background: none; max-width: min(760px, 94vw); width: 100%;
  margin-top: clamp(3rem, 10vh, 8rem); color: var(--ink);
}
dialog.ask::backdrop {
  background: color-mix(in oklab, #04050a 78%, transparent);
  backdrop-filter: blur(9px) saturate(120%);
  -webkit-backdrop-filter: blur(9px);
}
dialog.ask[open] { animation: ask-in .34s var(--ease-out); }
@keyframes ask-in { from { opacity: 0; transform: translateY(-12px) scale(.985); } to { opacity: 1; transform: none; } }

.ask-panel {
  background: linear-gradient(180deg, #12161f, var(--bg-2));
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03) inset;
  overflow: hidden;
}
.ask-in {
  display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.ask-in input {
  flex: 1; background: none; border: 0; outline: none; font-size: var(--f-lg);
  letter-spacing: -.025em; color: var(--ink);
}
.ask-in input::placeholder { color: var(--ink-3); }
.ask-esc { font: 600 .66rem/1 var(--mono); color: var(--ink-3); border: 1px solid var(--line-2); padding: .32rem .45rem; border-radius: 6px; }

.ask-body { max-height: min(60vh, 560px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.ask-body::-webkit-scrollbar { width: 8px; }
.ask-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

.ask-answer { padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line); }
.ask-label { font: 600 var(--f-xs)/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--signal); margin-bottom: .8rem; display: flex; align-items: center; gap: .5rem; }
.ask-answer p { font-size: var(--f-base); line-height: 1.7; color: var(--ink); }
.ask-answer .cite {
  display: inline-block; vertical-align: super; font: 600 .62rem/1 var(--mono);
  color: var(--plasma); background: color-mix(in oklab, var(--plasma) 16%, transparent);
  border-radius: 4px; padding: .16rem .3rem; margin-left: .18rem; text-decoration: none;
}
.ask-answer .cite:hover { background: var(--plasma); color: #fff; }

.ask-res { display: grid; }
.ask-res a {
  display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center;
  padding: .85rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .18s var(--ease);
}
.ask-res a:hover, .ask-res a.sel { background: rgba(255,255,255,.055); }
.ask-res a.sel { box-shadow: inset 2px 0 0 var(--signal); }
.ask-res .n { font: 600 .66rem/1 var(--mono); color: var(--ink-3); width: 1.4rem; flex: none; }
.ask-res a > span:nth-child(2) { min-width: 0; display: block; }
.ask-res .t { display: block; font-size: var(--f-sm); font-weight: 540; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-res .s { display: block; font-size: var(--f-xs); color: var(--ink-3); margin-top: .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-res .k { flex: none; }
.ask-res .k { font: 500 .62rem/1 var(--mono); color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.ask-res mark { background: color-mix(in oklab, var(--signal) 26%, transparent); color: var(--ink); border-radius: 3px; padding: 0 .1em; }

.ask-foot {
  display: flex; align-items: center; gap: 1rem; padding: .7rem 1.2rem;
  font: 500 var(--f-xs)/1 var(--mono); color: var(--ink-3); letter-spacing: .05em;
  border-top: 1px solid var(--line); flex-wrap: wrap;
}
.ask-foot .sp { margin-left: auto; }
.ask-empty { padding: 2.4rem 1.4rem; text-align: center; color: var(--ink-3); font-size: var(--f-sm); }
.ask-seed { display: flex; flex-wrap: wrap; gap: .4rem; padding: 1.1rem 1.4rem; }
.ask-seed button {
  font-size: var(--f-xs); padding: .42rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--ink-2); cursor: pointer;
  transition: all .2s var(--ease);
}
.ask-seed button:hover { border-color: var(--signal); color: var(--signal); }

/* ============ FOOTER ============ */
.ftr { border-top: 1px solid var(--line); margin-top: 4rem; padding: clamp(2.5rem,5vw,4rem) 0 2rem; background: linear-gradient(180deg, transparent, rgba(255,255,255,.012)); }
.ftr-grid { display: grid; gap: 2.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%,170px),1fr)); }
.ftr-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .ftr-grid > div:first-child { grid-column: auto; grid-row: span 1; } }
.ftr h4 { font: 600 var(--f-xs)/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ftr a { color: var(--ink-2); font-size: var(--f-sm); transition: color .2s var(--ease); }
.ftr a:hover { color: var(--signal); }
.ftr-btm {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  color: var(--ink-3); font-size: var(--f-xs);
}
.ftr-btm .sp { margin-left: auto; }

/* ============ MISC ============ */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: var(--f-xs); color: var(--ink-3); font-family: var(--mono); letter-spacing: .04em; }
.crumb a { color: var(--ink-3); transition: color .2s var(--ease); }
.crumb a:hover { color: var(--signal); }
.crumb .sepr { opacity: .4; }

.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  border: 1px solid var(--line-2); padding: clamp(2rem, 5vw, 3.6rem);
  background: linear-gradient(140deg, var(--panel-2), var(--bg-2) 60%);
}
.cta-band::before {
  content: ''; position: absolute; inset: -60% -20%; z-index: 0;
  background: conic-gradient(from var(--ang), transparent 0 68%, color-mix(in oklab, var(--signal) 30%, transparent) 78%, transparent 88%);
  animation: spin 14s linear infinite; opacity: .5;
}
@keyframes spin { to { --ang: 360deg; } }
.cta-band > * { position: relative; z-index: 1; }

.metric-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,150px),1fr));
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel);
}
.metric-strip > div { padding: 1.3rem 1.4rem; border-right: 1px solid var(--line); }
.metric-strip > div:last-child { border-right: 0; }
.metric-strip b { display: block; font: 640 var(--f-xl)/1 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.metric-strip span { font-size: var(--f-xs); color: var(--ink-3); margin-top: .35rem; display: block; letter-spacing: .02em; }

.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; }

.note {
  border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 1rem 1.15rem;
  color: var(--ink-3); font-size: var(--f-sm); background: rgba(255,255,255,.02);
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* view transitions */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .34s var(--ease-out) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
}

/* content-visibility perf for long lists */
.cv { content-visibility: auto; contain-intrinsic-size: auto 320px; }

/* ============================================================
   FORMS, TOOLS & OUTPUT
   ============================================================ */
.awform { margin: 1.8rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fieldgrid {
  display: grid; gap: 1.05rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.field { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label {
  display: flex; align-items: center; gap: .5rem;
  font-size: var(--f-sm); font-weight: 560; color: var(--ink); letter-spacing: -.015em;
}
.field .hint { font-size: var(--f-xs); color: var(--ink-3); line-height: 1.5; font-weight: 400; }

.field input, .field textarea, .field select {
  width: 100%; background: rgba(0,0,0,.34); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: .72rem .9rem; font-size: var(--f-sm); font-family: inherit;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.6; font-family: var(--mono); font-size: .82rem; }
.field select { cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 13px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--signal); background: rgba(0,0,0,.5);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--signal) 16%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: .65; }
.field [aria-invalid='true'] { border-color: #ff6b6b; }
.field-err { margin: 0; font-size: var(--f-xs); color: #ff6b6b; }

.check {
  grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem;
  font-size: var(--f-sm); color: var(--ink-2); cursor: pointer;
}
.check input { width: 17px; height: 17px; accent-color: var(--signal); cursor: pointer; flex: none; }

.formfoot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.formfoot .hint { font-size: var(--f-xs); color: var(--ink-3); }

.formnote { margin-top: 1.1rem; padding: .85rem 1.05rem; border-radius: var(--r-sm); font-size: var(--f-sm); line-height: 1.6; }
.formnote.ok  { background: color-mix(in oklab, var(--ok) 12%, transparent); border: 1px solid color-mix(in oklab, var(--ok) 34%, transparent); color: #b9f5d5; }
.formnote.err { background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.34); color: #ffc2c2; }

.success { text-align: center; padding: 2.6rem 1.4rem; border: 1px solid color-mix(in oklab, var(--signal) 30%, var(--line)); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--panel-2), var(--bg-2)); }
.success:focus { outline: none; }
.success .tick {
  width: 58px; height: 58px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.7rem; color: #08120a;
  background: var(--signal); box-shadow: 0 0 40px -6px color-mix(in oklab, var(--signal) 60%, transparent);
}
.success h2 { font-size: var(--f-xl); }
.success p { color: var(--ink-2); margin-top: .6rem; font-size: var(--f-sm); }

/* ---- tool output ---- */
.output { margin-top: 2rem; }
.out-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.out-actions { display: flex; gap: .5rem; margin-left: auto; flex-wrap: wrap; }
.out-actions .btn { padding: .5rem .9rem; font-size: var(--f-xs); }

.codeblock {
  margin: 0; padding: 1.15rem 1.25rem; border-radius: var(--r);
  background: #05070c; border: 1px solid var(--line-2);
  overflow-x: auto; max-height: 460px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.codeblock code {
  font: 400 .78rem/1.75 var(--mono); color: #d7e3f4;
  white-space: pre; display: block; tab-size: 2;
}
.codeblock::-webkit-scrollbar { width: 9px; height: 9px; }
.codeblock::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; }

.score { display: flex; align-items: baseline; gap: .7rem; margin-bottom: 1rem; }
.score b { font: 660 var(--f-2xl)/1 var(--sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.score span { font-size: var(--f-sm); color: var(--ink-3); }

.issues { margin-top: 1.4rem; }
.issues h3 { font: 600 var(--f-xs)/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .8rem; }
.issues ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.issues li {
  font-size: var(--f-sm); line-height: 1.6; color: var(--ink-2);
  padding: .7rem .9rem; border-radius: var(--r-sm);
  background: rgba(255,255,255,.026); border: 1px solid var(--line);
}
.issues li b { margin-right: .55rem; opacity: .85; }

/* ============================================================
   ACCESS GATE
   ============================================================ */
.codeblock.is-locked { position: relative; max-height: 260px; overflow: hidden; }
.codeblock.is-locked::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 130px; pointer-events: none;
  background: linear-gradient(180deg, transparent, #05070c 88%);
}

.gatebox {
  margin-top: 1.2rem; padding: 1.6rem; border-radius: var(--r-lg);
  border: 1px solid color-mix(in oklab, var(--signal) 30%, var(--line));
  background:
    radial-gradient(120% 100% at 0% 0%, color-mix(in oklab, var(--signal) 7%, transparent), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--bg-2));
}
.gatebox .gate-ico { color: var(--signal); margin-bottom: .8rem; }
.gatebox h3 { font-size: var(--f-lg); margin-bottom: .5rem; }
.gatebox > p { color: var(--ink-2); font-size: var(--f-sm); line-height: 1.65; max-width: 62ch; }
.gatebox b { color: var(--ink); }

/* ============================================================
   FIGURES, CHARTS & MOTION
   ============================================================ */
.figure { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
/* Cap section-header photos so they frame the page instead of filling the
   whole first screen. A 1400x900 source was rendering ~670px tall and pushing
   every card below the fold. */
.figure img { width: 100%; display: block; max-height: 380px; object-fit: cover; object-position: center 42%; }
@media (max-width: 700px) { .figure img { max-height: 240px; } }
.figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.2rem;
  font: 500 var(--f-xs)/1.5 var(--mono); letter-spacing: .05em; color: var(--ink-2);
  background: linear-gradient(180deg, transparent, rgba(4,5,10,.92));
}

.hero-figure {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 18%, #000 68%);
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 68%);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
@media (max-width: 900px) { .hero-figure { opacity: .35; } }

/* animated bar chart */
.chart { display: grid; gap: .9rem; }
.chart-row { display: grid; grid-template-columns: 92px 1fr auto; gap: .9rem; align-items: center; }
.chart-row .lab { font: 500 var(--f-sm)/1 var(--sans); color: var(--ink-2); }
.chart-track { display: block; height: 30px; border-radius: 8px; background: rgba(255,255,255,.045); overflow: hidden; position: relative; }
.chart-fill {
  display: block; height: 100%; border-radius: 8px; transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, var(--c1), var(--c2));
  animation: bar-grow 1.15s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes bar-grow { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .chart-fill { animation: none; transform: scaleX(1); } }
.chart-row .val { font: 600 var(--f-sm)/1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; min-width: 3.2rem; text-align: right; }

/* animated line/area graph */
.sparkwrap { position: relative; }
.spark { width: 100%; height: auto; display: block; }
.spark path.line {
  fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  animation: draw 2.4s var(--ease-out) forwards;
}
.spark path.area { opacity: 0; animation: fade-in 1.4s var(--ease-out) .7s forwards; }
.spark path.area { mix-blend-mode: screen; }
.spark circle { opacity: 0; animation: pop .5s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes pop { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .spark { width: 100%; height: auto; display: block; }
.spark path.line { animation: none; stroke-dashoffset: 0; }
  .spark path.area, .spark circle { animation: none; opacity: 1; }
}

/* orbiting AI-platform diagram */
.orbit {
  position: relative; width: 100%; max-width: 420px; margin-inline: auto;
  aspect-ratio: 1 / 1; min-height: 320px;
}
@media (max-width: 460px) {
  /* Leave room for the orbit nodes, which sit on the ring edge and are
     29px wider than the ring itself in each direction. */
  .orbit { max-width: calc(100vw - 5rem); min-height: 0; }
  .orbit-node { width: 46px; height: 46px; margin: -23px 0 0 -23px; font-size: .5rem; }
}
.orbit-ring {
  position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 50%;
  animation: spin-slow 40s linear infinite;
}
.orbit-ring:nth-child(2) { inset: 14%; animation-duration: 28s; animation-direction: reverse; }
.orbit-ring:nth-child(3) { inset: 28%; animation-duration: 34s; }
@keyframes spin-slow { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .orbit-ring { animation: none; } }
.orbit-core {
  position: absolute; inset: 34%; border-radius: 50%; display: grid; place-items: center;
  padding: .4rem; text-align: center;
  background: radial-gradient(circle, color-mix(in oklab, var(--signal) 26%, transparent), transparent 70%);
  border: 1px solid color-mix(in oklab, var(--signal) 40%, transparent);
  font: 600 var(--f-xs)/1.3 var(--mono); color: var(--signal); text-align: center; letter-spacing: .06em;
}
.orbit-node {
  position: absolute; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line-2);
  font: 600 .54rem/1.2 var(--mono); color: var(--ink-2); letter-spacing: .02em; text-align: center; padding: .2rem;
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.orbit-node:hover { border-color: var(--signal); color: var(--signal); transform: scale(1.12); }

/* marquee of industries */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: .6rem; width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee .pill { white-space: nowrap; }

/* subtle number ticker */
.tick-in { animation: tick .6s var(--ease-out) both; }
@keyframes tick { from { opacity: 0; transform: translateY(6px); } }


/* ============================================================
   TOUCH TARGETS — WCAG 2.5.8 (minimum 24x24 CSS px)
   ============================================================ */
@media (pointer: coarse) {
  .ftr a, .toc a, .crumb a, .marquee .pill {
    display: inline-block;
    min-height: 24px;
    padding-block: 6px;
    line-height: 1.5;
  }
  .ftr ul { gap: .35rem; }
  .prose ul li { padding-block: 2px; }
}

/* The pricing page is a comparison layout, not an article. A 74ch reading
   measure is correct for prose and far too narrow for three plan cards or a
   four-column table, so that page opts into the full column width and only
   re-narrows its own paragraphs. */
.prose-wide { max-width: none; }
/* Give the comparison layout the whole content width: the on-this-page rail
   is less useful than a table that does not need sideways scrolling. */
@media (min-width: 1060px) {
  .doc-wide { grid-template-columns: minmax(0, 1fr); }
  .doc-wide .toc-col { display: none; }
}
.prose-wide > p,
.prose-wide > h2,
.prose-wide > h3,
.prose-wide > details { max-width: 74ch; }

/* Wide components inside .prose.
   .prose caps line length at 74ch for readability, which is right for
   paragraphs and wrong for a 4-column table or a 3-up card grid. These
   break out to the full column width. */
.prose .plans,
.prose .projects,
.prose .notlist,
.prose .cmp-wrap { max-width: 100%; width: 100%; min-width: 0; }
/* .doc / .prose are grid and block containers; without min-width:0 a wide
   child sets the track width and the page scrolls sideways. */
.doc, .prose, .prose-wide { min-width: 0; }

/* The prose bullet marker must not be drawn on lists that supply their
   own icons, or every row gets a diamond AND a checkmark. */
.prose .plan-feats li,
.prose .notlist li { padding-left: 0; }
.prose .plan-feats li::before,
.prose .notlist li::before { content: none; }

/* Visually hidden but still read by screen readers. A bare "✓" in a
   table cell tells a screen-reader user nothing on its own. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ==================================================================
   PRICING — plan cards, comparison table, project cards
   The source content had three plans and a 17-row feature matrix
   flattened into paragraphs and bullets. These components restore
   the structure so the offer can actually be compared at a glance.
   ================================================================== */

.plans {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.9rem 1.6rem 1.6rem;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), border-color .28s, box-shadow .28s;
}
.plan:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 18px 46px -22px rgba(0,0,0,.9);
}

/* The recommended tier is lifted with a border, a glow and a badge —
   never colour alone, so it still reads without colour perception. */
.plan-featured {
  border-color: color-mix(in srgb, var(--signal) 45%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--signal) 18%, transparent),
              0 24px 60px -28px color-mix(in srgb, var(--signal) 30%, transparent);
}
.plan-featured::before {
  content: "";
  position: absolute; inset: -1px -1px auto;
  height: 3px; border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
}

.plan-badge {
  position: absolute; top: -.72rem; left: 1.5rem;
  background: var(--signal); color: #0a0c06;
  font-size: .64rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 6px;
}

.plan-name {
  font-size: var(--f-lg); font-weight: 700;
  letter-spacing: -.01em; margin: 0;
}
.plan-price-row {
  display: flex; align-items: baseline; gap: .35rem;
  margin: .9rem 0 .2rem;
}
.plan-price {
  font-size: clamp(2.1rem, 1.6rem + 1.9vw, 2.9rem);
  font-weight: 800; letter-spacing: -.035em;
  line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.plan-unit { font-size: var(--f-sm); color: var(--ink-3); font-weight: 500; }
.plan-from { font-size: var(--f-xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: .09em; }

.plan-best {
  color: var(--ink-2); font-size: var(--f-sm);
  line-height: 1.6; margin: .9rem 0 1.2rem;
  padding-bottom: 1.2rem; border-bottom: 1px solid var(--line);
}
.plan-inherits {
  font-size: var(--f-xs); color: var(--ink-3);
  font-weight: 600; margin: 0 0 .7rem;
}
.plan-feats { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .58rem; }
.plan-feats li {
  display: grid; grid-template-columns: 1.1rem 1fr; gap: .55rem;
  align-items: start;
  font-size: var(--f-sm); color: var(--ink-2); line-height: 1.5;
}
.plan-feats svg { width: 1.1rem; height: 1.1rem; margin-top: .12rem; flex: none; }

/* Push every CTA to the same baseline no matter the list length. */
.plan-cta { margin-top: auto; }
.plan-cta .btn { width: 100%; justify-content: center; }

/* ---- comparison table ---- */
.cmp-wrap {
  margin-top: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}
/* The scroller must be allowed to shrink below its content width, otherwise
   the 620px table pushes the whole page wide instead of scrolling inside. */
/* `overflow-x: auto` alone did not stop the 620px table from widening the
   document (measured: scrollWidth 573 on a 390px viewport). `contain: paint`
   forces the scroller to clip its own painting, which drops it back to 390.
   Verified by isolation, not assumed. */
.cmp-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  contain: paint;
}
.cmp-wrap { max-width: 100%; }
.cmp {
  width: 100%; border-collapse: collapse;
  font-size: var(--f-sm); min-width: 620px;
}
.cmp caption { text-align: left; padding: 1.1rem 1.3rem .2rem; color: var(--ink-3); font-size: var(--f-xs); }
.cmp th, .cmp td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th {
  background: var(--panel-2); color: var(--ink);
  font-weight: 700; font-size: var(--f-sm);
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.cmp thead th span { display: block; font-weight: 500; font-size: var(--f-xs); color: var(--ink-3); margin-top: .15rem; }
.cmp tbody th { font-weight: 500; color: var(--ink-2); background: var(--panel); }
/* Pin the feature-name column only where there is room to scroll sideways.
   `position: sticky` inside a horizontal scroller escapes the container's
   clip and widens the whole document, so it is scoped to wider screens. */
.cmp tbody th { position: sticky; left: 0; z-index: 1; }
.cmp thead th:first-child { position: sticky; left: 0; z-index: 3; background: var(--panel-2); }
/* Edge shadow so the pinned column reads as pinned while you scroll. */
.cmp tbody th::after, .cmp thead th:first-child::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 12px;
  transform: translateX(100%);
  background: linear-gradient(90deg, rgba(0,0,0,.35), transparent);
  pointer-events: none;
}
.cmp td { text-align: center; color: var(--ink-2); }
.cmp tbody tr:hover th, .cmp tbody tr:hover td { background: color-mix(in srgb, var(--signal) 4%, transparent); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp-yes { color: var(--signal); font-weight: 700; }
.cmp-no  { color: var(--ink-3); }
.cmp-col-hi { background: color-mix(in srgb, var(--signal) 6%, transparent); }

/* ---- one-time project cards ---- */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; margin-top: 1.8rem; }
.project {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.5rem;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), border-color .28s;
}
.project:hover { transform: translateY(-3px); border-color: var(--line-2); }
.project-ico {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--plasma) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--plasma) 30%, transparent);
}
.project-ico svg { width: 20px; height: 20px; }
.project h3 { font-size: var(--f-base); margin: 0 0 .35rem; font-weight: 650; }
.project-price {
  font-size: var(--f-xl); font-weight: 800; letter-spacing: -.03em;
  color: var(--signal); margin: 0 0 .6rem; font-variant-numeric: tabular-nums;
}
.project p { font-size: var(--f-sm); color: var(--ink-2); line-height: 1.6; margin: 0 0 1.2rem; }
.project .btn { margin-top: auto; width: 100%; justify-content: center; }

/* ---- "what's not included" list ---- */
.notlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .8rem; margin-top: 1.6rem; }
.notlist li {
  list-style: none; display: grid; grid-template-columns: 1.15rem 1fr; gap: .6rem;
  align-items: start; font-size: var(--f-sm); color: var(--ink-2);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 11px; padding: .85rem 1rem; line-height: 1.55;
}
.notlist svg { width: 1.15rem; height: 1.15rem; margin-top: .1rem; }

@media (max-width: 560px) {
  .plan { padding: 1.6rem 1.2rem 1.3rem; }
  .cmp th, .cmp td { padding: .7rem .75rem; }
}

/* ==================================================================
   TILES — card grid for section index pages
   Replaces the flat row list. Each tile is one link; the whole card
   is the hit area and the footer cue makes that obvious.
   ================================================================== */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.1rem;
  margin-top: 1.6rem;
}
/* `display:flex` beats the `hidden` attribute, so filtered-out tiles would
   stay visible. The filter sets `hidden`, so honour it explicitly. */
.tile[hidden] { display: none !important; }
.tile {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 1.25rem 1.3rem 1.1rem;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  transition: transform .26s cubic-bezier(.2,.7,.3,1), border-color .26s, box-shadow .26s, background .26s;
}
/* Accent bar wipes in on hover — a cheap, GPU-friendly signal of interactivity. */
.tile::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--signal), var(--aqua));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .3s var(--ease);
}
.tile:hover, .tile:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-2);
  background: var(--panel-2);
  box-shadow: 0 16px 40px -24px rgba(0,0,0,.95);
}
.tile:hover::after, .tile:focus-visible::after { transform: scaleX(1); }

.tile-tag {
  align-self: flex-start;
  font: 600 var(--f-xs)/1 var(--mono);
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px; padding: .28rem .55rem;
  margin-bottom: .85rem;
}
.tile-t {
  font-weight: 600; font-size: var(--f-base);
  letter-spacing: -.02em; line-height: 1.35;
  color: var(--ink); margin-bottom: .4rem;
  transition: color .2s var(--ease);
}
.tile:hover .tile-t { color: var(--signal); }
.tile-d {
  font-size: var(--f-sm); color: var(--ink-3);
  line-height: 1.55; margin-bottom: 1.1rem;
}
/* Sits at the card foot regardless of description length. */
.tile-go {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .4rem;
  font: 600 var(--f-xs)/1 var(--mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--signal);
}
.tile-go svg { transition: transform .25s var(--ease); }
.tile:hover .tile-go svg { transform: translateX(4px); }


/* ------------------------------------------------------------------
   FIX: the table-of-contents rail could push the page 15px wider than
   the viewport. The <a> had ellipsis but its parent <li> and the <ol>
   track were free to grow to the longest link's intrinsic width.
   Constrain the whole rail so nothing can escape it.
   ------------------------------------------------------------------ */
.toc, .toc ol, .toc li { min-width: 0; max-width: 100%; }
.toc li { overflow: hidden; }
.toc a { max-width: 100%; }

/* ---------- team cards ---------- */
.team-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.tm-card { min-width: 0; padding: 1.15rem 1.2rem 1.25rem; }
.tm-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .75rem; }
.tm-av {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 16px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--bg); background: linear-gradient(135deg, var(--signal), var(--aqua));
}
.tm-id { min-width: 0; }
.tm-card h3 { margin: 0; font-size: 1rem; line-height: 1.25; }
.tm-role { color: var(--signal); font-size: .78rem; font-weight: 600; letter-spacing: .015em; margin-top: .1rem; }
.tm-bio { margin: 0; font-size: .89rem; line-height: 1.6; color: var(--ink-3); }
.prose .tm-card h3 { margin-top: 0; }
.tm-li { display:inline-block; margin-top:.7rem; font-size:.82rem; font-weight:600;
         color:var(--signal); text-decoration:none; border-bottom:1px solid transparent; }
.tm-li:hover { border-bottom-color:var(--signal); }

/* ---------- client work showcase ---------- */
.cw-grid{display:grid;gap:1.1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.cw-card{margin:0;background:var(--panel,#12161f);border:1px solid var(--line,#232a38);
  border-radius:14px;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.cw-card picture{display:block;line-height:0;background:#fff}
.cw-card img{width:100%;height:auto;display:block;border-bottom:1px solid var(--line,#232a38)}
.cw-card figcaption{padding:1rem 1.1rem 1.15rem}
.cw-sector{display:inline-block;font:600 .68rem/1 var(--mono,ui-monospace,monospace);
  letter-spacing:.11em;text-transform:uppercase;color:var(--signal);margin-bottom:.5rem}
.cw-card h3{margin:0 0 .4rem;font-size:1.02rem;line-height:1.3}
.cw-card p{margin:0;font-size:.88rem;line-height:1.6;color:var(--ink-3)}
.prose .cw-card h3{margin-top:0}
@media (prefers-reduced-motion:no-preference){
  .cw-card{transition:border-color .25s ease,transform .25s ease}
  .cw-card:hover{border-color:color-mix(in oklab,var(--signal) 40%,var(--line));transform:translateY(-2px)}
}
