/* AppPerimeter — corporate site styles. Tokens first; components below. */
:root {
  --navy-950: #08111e;
  --navy-900: #0e1a2b;
  --navy-800: #15253b;
  --navy-700: #20334d;
  --graphite: #2b3543;
  --ink: #111a26;
  --text: #283342;
  --muted: #5a6677;
  --line: #d8dee6;
  --line-strong: #b9c3cf;
  --paper: #ffffff;
  --tint: #f2f4f7;
  --accent: #f2a93b;
  --accent-hover: #ffbb52;
  --accent-ink: #8a5100;
  --on-dark: #e7ecf3;
  --on-dark-muted: #a6b2c3;
  --ok: #1d7a4f;
  --open: #b4372b;
  --inc: #7a6418;

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px #1f5fd1;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--font-body);
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: #1a4fae; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
main:focus { outline: none; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fine { font-size: .9rem; color: var(--muted); }
.center { text-align: center; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--navy-950); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Eyebrow / section labels --------------------------------------------- */
.eyebrow {
  font: 500 .78rem/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow-n { color: var(--accent-ink); }
.eyebrow-n::after { content: ''; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-left: .75rem; }
.eyebrow-invert { color: var(--on-dark-muted); }
.eyebrow-invert .eyebrow-n { color: var(--accent); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem;
  font: 600 1rem/1.2 var(--font-body);
  border: 1.5px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-accent { background: var(--accent); color: var(--navy-950); }
.btn-accent:hover { background: var(--accent-hover); color: var(--navy-950); }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: rgba(14, 26, 43, .06); color: var(--ink); }
.hero .btn-ghost, .section-dark .btn-ghost, .cta-band .btn-ghost { color: var(--on-dark); }
.hero .btn-ghost:hover, .section-dark .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.link-arrow { font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
.link-arrow::after { content: ' →'; }
.link-arrow:hover { color: var(--accent-ink); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 17, 30, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font: 700 1.2rem/1 var(--font-display); letter-spacing: -0.01em; }
.logo:hover { color: #fff; }
.logo-mark { width: 30px; height: 30px; color: var(--on-dark); }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-item > a, .nav-sub-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem .85rem; color: var(--on-dark); font: 500 .98rem/1 var(--font-body);
  text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: var(--radius);
}
.nav-sub-toggle svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-item > a:hover, .nav-sub-toggle:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-item > a[aria-current='page'], .has-sub.is-active > .nav-sub-toggle { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.has-sub { position: relative; }
.nav-sub {
  list-style: none; margin: 0; padding: .5rem; min-width: 300px;
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px -12px rgba(8, 17, 30, .35);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:focus-within .nav-sub, .has-sub.open .nav-sub, html:not(.js) .has-sub:hover .nav-sub { opacity: 1; visibility: visible; transform: none; }
.has-sub.open .nav-sub-toggle svg { transform: rotate(180deg); }
.nav-sub a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; color: var(--ink); text-decoration: none; border-radius: 3px; font-weight: 500; }
.nav-sub a:hover, .nav-sub a[aria-current='page'] { background: var(--tint); }
.nav-price { font: 500 .85rem/1.6 var(--font-mono); color: var(--muted); }
.nav-cta { min-height: 42px; padding: .55rem 1.1rem; font-size: .95rem; }
.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem .8rem;
    background: none; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius); color: #fff; font: 500 .95rem var(--font-body); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .js .site-nav { display: none; }
  .site-nav, .js .site-nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 1rem;
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 1rem var(--gutter) 1.5rem; background: var(--navy-950); border-bottom: 1px solid rgba(255, 255, 255, .1);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  html:not(.js) .site-nav { position: static; padding: 0 0 1rem; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-item > a, .nav-sub-toggle { width: 100%; justify-content: space-between; padding: .85rem .25rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
  .nav-sub-toggle { display: none; }
  .nav-sub { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .nav-sub a { color: var(--on-dark); padding: .85rem .25rem; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
  .nav-sub a:hover, .nav-sub a[aria-current='page'] { background: rgba(255, 255, 255, .05); }
  .nav-price { color: var(--on-dark-muted); }
  .nav-item > a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--accent); padding-left: .75rem; }
  .nav-cta { min-height: 52px; font-size: 1.05rem; }
}

/* Breadcrumbs ------------------------------------------------------------ */
.breadcrumbs { position: relative; z-index: 2; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 1rem 0 0; font: 400 .82rem/1.4 var(--font-mono); color: var(--on-dark-muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: .4rem; opacity: .6; }
.breadcrumbs a { color: var(--on-dark-muted); }
.breadcrumbs a:hover { color: #fff; }
.page-legal .breadcrumbs ol, .page-legal .breadcrumbs a { color: var(--muted); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(242, 169, 59, .09), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--on-dark);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 95%);
}
.hero h1 { color: #fff; }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--on-dark); max-width: 38em; }
.hero-home { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 { max-width: 11em; }
.hero-meta { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font: 400 .85rem/1.4 var(--font-mono); color: var(--on-dark-muted); }
.hero-meta li::before { content: '■'; color: var(--accent); font-size: .55rem; margin-right: .6rem; vertical-align: 2px; }

.hero-inner { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); margin-top: -52px; padding-top: calc(52px + clamp(40px, 6vw, 72px)); }
.hero-inner-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.hero-compact .wrap { position: relative; }
.hero-compact h1 { max-width: 16em; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem; font: 500 .95rem/1.4 var(--font-mono); color: var(--on-dark-muted); margin: -.25rem 0 1.4rem; }
.price-line .price { font: 700 1.9rem/1 var(--font-display); color: var(--accent); letter-spacing: -0.01em; }
.price-sep { color: var(--navy-700); }

/* Hero diagram */
.boundary { margin: 0; }
.boundary svg { width: 100%; height: auto; color: var(--on-dark); font-family: var(--font-mono); }
.boundary figcaption { margin-top: .9rem; font: 400 .82rem/1.5 var(--font-mono); color: var(--on-dark-muted); }
.d-zone rect { fill: rgba(255, 255, 255, .025); stroke: rgba(255, 255, 255, .22); stroke-dasharray: 4 4; }
.d-zone text { fill: var(--on-dark-muted); font-size: 10px; letter-spacing: .1em; }
.d-zone-app rect { stroke: var(--accent); stroke-opacity: .8; fill: rgba(242, 169, 59, .05); }
.d-zone-app text { fill: var(--accent); }
.d-node rect { fill: var(--navy-800); stroke: rgba(255, 255, 255, .28); }
.d-node text { fill: #fff; font-size: 12px; font-family: var(--font-body); font-weight: 600; }
.d-node .d-sub { fill: var(--on-dark-muted); font-size: 10px; font-family: var(--font-mono); font-weight: 400; }
.d-node-app rect { stroke: rgba(242, 169, 59, .55); }
.d-link path { stroke: rgba(255, 255, 255, .4); stroke-width: 1.4; fill: none; }
.d-attack path { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 6 5; animation: dash 1.6s linear infinite; }
.d-attack circle { fill: var(--accent); }
.d-flag rect { fill: var(--accent); }
.d-flag text { fill: var(--navy-950); font-size: 10px; font-weight: 500; }
@keyframes dash { to { stroke-dashoffset: -22; } }

/* Scope card (service hero) */
.scope-card { background: var(--paper); color: var(--text); border-radius: var(--radius); border-top: 4px solid var(--accent); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); padding: 1.5rem 1.6rem 1.25rem; }
.scope-card-head { display: flex; justify-content: space-between; align-items: baseline; font: 500 .78rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 1rem; }
.scope-card-head .price { font: 700 1.6rem/1 var(--font-display); color: var(--ink); letter-spacing: -0.01em; text-transform: none; }
.scope-card dl { margin: 0; }
.scope-card dl div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.scope-card dt { font: 400 .8rem/1.6 var(--font-mono); color: var(--muted); }
.scope-card dd { margin: 0; color: var(--ink); font-weight: 500; }
.scope-card-foot { margin: .75rem 0 0; font-size: .82rem; color: var(--muted); }

/* Retest status card */
.status-card { margin: 0; background: var(--paper); color: var(--text); border-radius: var(--radius); border-top: 4px solid var(--accent); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); padding: 1.4rem 1.5rem; }
.status-label { font: 500 .75rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.status-card ul { list-style: none; margin: 0; padding: 0; }
.status-card li { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink); }
.status-card figcaption { margin-top: .8rem; font-size: .85rem; color: var(--muted); }
.st { font: 500 .72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: .4rem .5rem; border-radius: 2px; text-align: center; border: 1px solid; }
.st-ok { color: var(--ok); background: #e8f4ee; }
.st-open { color: var(--open); background: #fbebe9; }
.st-inc { color: var(--inc); background: #f7f1df; }

/* Sections --------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tint + .section-tint { border-top: 0; }
.section-dark { background: var(--navy-900); color: var(--on-dark); }
.section-dark h2 { color: #fff; }
.section-dark a:not(.btn) { color: #fff; }
.lede-sm { font-size: 1.15rem; line-height: 1.65; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-intro { font-size: 1.12rem; color: var(--text); }
.aside-link { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); }
.split > div:first-child h2 { max-width: 13em; }
@media (min-width: 921px) { .split > div:first-child { position: sticky; top: 104px; align-self: start; } }
.split > div:last-child > p:first-child { font-size: 1.12rem; color: var(--ink); }
.section-dark .split > div:last-child > p:first-child { color: var(--on-dark); }

/* Cards */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 1.75rem 1.5rem 1.5rem; border-right: 1px solid var(--line); background: var(--paper); }
.card:last-child { border-right: 0; }
.card-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.card-head h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card-icon { flex: none; width: 28px; height: 28px; color: var(--accent-ink); }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.svc-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.6rem; transition: border-color .15s, box-shadow .15s; }
.svc-card:hover { border-color: var(--line-strong); box-shadow: 0 14px 34px -20px rgba(8, 17, 30, .35); }
.svc-kicker { font: 500 .75rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); margin-bottom: .6rem; }
.svc-title { font-size: 1.3rem; }
.svc-title a { color: var(--ink); text-decoration: none; }
.svc-title a:hover { text-decoration: underline; }
.svc-price { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .9rem; }
.svc-price .price { font: 700 2.1rem/1 var(--font-display); color: var(--ink); letter-spacing: -0.02em; }
.svc-fixed { font: 400 .78rem var(--font-mono); color: var(--muted); }
.svc-facts { list-style: none; margin: .25rem 0 1.5rem; padding: 0; font-size: .93rem; color: var(--text); }
.svc-facts li { padding: .5rem 0 .5rem 1.25rem; border-top: 1px solid var(--line); position: relative; }
.svc-facts li::before { content: ''; position: absolute; left: 0; top: 1.05em; width: 7px; height: 7px; background: var(--accent); }
.svc-card .link-arrow { margin-top: auto; align-self: flex-start; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.steps li { padding: 0 1.5rem 0 0; position: relative; }
.steps li::before { content: ''; display: block; height: 2px; background: var(--line); margin-bottom: 1.25rem; }
.steps li:first-child::before { background: linear-gradient(90deg, var(--accent) 40%, var(--line) 40%); }
.step-n { font: 500 .85rem var(--font-mono); color: var(--accent-ink); display: block; margin-bottom: .6rem; }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }

.check-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.check-list li { padding: .7rem 0 .7rem 2rem; border-top: 1px solid var(--line); position: relative; color: var(--ink); }
.check-list li::before { content: ''; position: absolute; left: 2px; top: 1.05rem; width: 12px; height: 7px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }

.tag-list { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li { font: 400 .85rem/1 var(--font-mono); padding: .55rem .7rem; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); color: var(--ink); }

.callout { border-left: 3px solid var(--accent); padding: .9rem 1.2rem; background: #fff8ec; color: var(--ink); }

.deliverables { list-style: none; margin: 1.5rem 0 0; padding: 0; counter-reset: d; }
.deliverables li { counter-increment: d; display: grid; grid-template-columns: 2.5rem 1fr; padding: 1rem 0; border-top: 1px solid var(--line); }
.deliverables li::before { content: counter(d, decimal-leading-zero); font: 500 .85rem/1.7 var(--font-mono); color: var(--accent-ink); grid-row: span 2; }
.deliverables strong { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.deliverables span { color: var(--muted); font-size: .97rem; }

/* Report sample */
.report-sample { margin: 1.75rem 0 0; }
.report-sheet { background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: 8px 8px 0 -1px var(--paper), 8px 8px 0 0 var(--line-strong); }
.rs-head { display: flex; justify-content: space-between; align-items: center; font: 500 .78rem var(--font-mono); letter-spacing: .1em; color: var(--muted); padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.sev { padding: .3rem .55rem; border-radius: 2px; letter-spacing: .04em; }
.sev-high { background: #fbebe9; color: var(--open); }
.rs-title { font: 600 1.1rem/1.35 var(--font-display); color: var(--ink); margin: .9rem 0; }
.rs-meta { margin: 0 0 1rem; display: grid; gap: .3rem; }
.rs-meta div { display: grid; grid-template-columns: 6rem 1fr; font-size: .9rem; }
.rs-meta dt { font: 400 .8rem/1.7 var(--font-mono); color: var(--muted); }
.rs-meta dd { margin: 0; color: var(--ink); }
.rs-line { height: 8px; background: var(--tint); border-radius: 2px; margin: .45rem 0; }
.rs-line.short { width: 60%; }
.report-sample figcaption { margin-top: 1rem; font: 400 .8rem var(--font-mono); color: var(--muted); }

/* Tools & AI */
.ai-note { margin: 2rem 0; padding: 1.5rem 1.6rem; border: 1px solid var(--line); border-left: 4px solid var(--navy-900); background: var(--tint); border-radius: var(--radius); }
.ai-note h3 { font-size: 1.15rem; }
.ai-note p:last-child { margin-bottom: 0; }
.tools-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tools-details summary { cursor: pointer; padding: 1rem 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; }
.tools-details summary::-webkit-details-marker { display: none; }
.tools-details summary::after { content: '+'; font: 500 1.3rem/1 var(--font-mono); color: var(--accent-ink); }
.tools-details[open] summary::after { content: '−'; }
.tools-list { margin: 0 0 1rem; }
.tools-list div { display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.tools-list dt { color: var(--muted); }
.tools-list dd { margin: 0; color: var(--ink); font-family: var(--font-mono); font-size: .88rem; }

/* CTA band */
.cta-band { background: var(--navy-950); color: var(--on-dark); padding: clamp(48px, 6vw, 80px) 0; border-top: 4px solid var(--accent); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { margin: 0; color: var(--on-dark-muted); max-width: 36em; }

/* Pricing ---------------------------------------------------------------- */
.section-pricing { padding-top: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: -48px; position: relative; }
.plan { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.6rem; box-shadow: 0 18px 40px -26px rgba(8, 17, 30, .45); }
.plan-featured { border: 2px solid var(--navy-900); }
.plan-badge { align-self: flex-start; font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; background: var(--accent); color: var(--navy-950); padding: .35rem .6rem; border-radius: 2px; margin: -.4rem 0 1rem; }
.plan h3 a { color: var(--ink); text-decoration: none; }
.plan h3 a:hover { text-decoration: underline; }
.plan-price { margin: .4rem 0 .2rem; }
.plan-price .price { font: 800 2.8rem/1 var(--font-display); color: var(--ink); letter-spacing: -0.03em; }
.plan-tax { font: 400 .8rem var(--font-mono); color: var(--muted); margin-bottom: 1.1rem; }
.plan-actions { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.plan-actions .btn { width: 100%; }

.table-wrap { margin: clamp(48px, 6vw, 80px) 0 1.25rem; overflow-x: auto; }
.table-heading { margin-bottom: 1.25rem; }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); border-bottom: 2px solid var(--navy-900); }
.compare thead a { color: var(--ink); }
.th-price { display: block; font: 500 .9rem var(--font-mono); color: var(--accent-ink); margin-top: .25rem; }
.compare tbody th { font-weight: 500; color: var(--muted); width: 18%; font-size: .9rem; }
.compare td { color: var(--ink); }
.compare tbody tr:nth-child(even) { background: #fafbfc; }

.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.12rem; }
.faq summary::after { content: '+'; font: 500 1.4rem/1 var(--font-mono); color: var(--accent-ink); flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 1.25rem; max-width: 46em; }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); }
.contact-form { display: grid; gap: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .4rem; align-content: start; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.req, .opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: #1f5fd1; }
.field [aria-invalid='true'] { border-color: var(--open); }
.field-error { color: var(--open); font-size: .88rem; margin: 0; }
.field-hint { margin: 0; padding: .75rem .9rem; border-left: 3px solid var(--accent); background: #fff8ec; font-size: .9rem; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 500; }
.form-status.is-success { background: #e8f4ee; color: #12573a; border: 1px solid #b7dcc8; }
.form-status.is-error { background: #fbebe9; color: #8a241b; border: 1px solid #efc0ba; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
.contact-aside { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; align-self: start; }
.contact-aside h2 { font-size: 1.35rem; }
.contact-aside h3 { font-size: 1rem; margin-top: 1.75rem; }
.mini-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .75rem; font-size: .96rem; }
.mini-steps li::marker { font-family: var(--font-mono); color: var(--accent-ink); }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.aside-links span { font-family: var(--font-mono); color: var(--muted); font-size: .88rem; }

/* Utility pages, legal */
.section-msg { min-height: 50vh; }
.lede-dark { font-size: 1.2rem; color: var(--ink); }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.draft-banner { padding: .9rem 1.1rem; background: #fff8ec; border: 1px solid #f0d3a0; border-radius: var(--radius); color: var(--ink); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 64px 0 28px; font-size: .95rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr .8fr 1.2fr; gap: 2.5rem; }
.footer-brand p { margin-top: 1rem; max-width: 26em; }
.footer-h { font: 500 .75rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark); margin-bottom: 1rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-address { font-style: normal; line-height: 1.75; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 2rem; font-size: .84rem; }
.footer-legal p { margin: 0; max-width: 60em; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(2) { border-right: 0; }
  .card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .hero-grid, .hero-inner-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .svc-grid, .plan-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2rem 0; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .card-grid-4, .steps, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .card { border-right: 0; border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: 0; }
  .btn-row .btn { width: 100%; }
  .scope-card dl div, .tools-list div { grid-template-columns: 1fr; gap: .15rem; }
  .status-card li { grid-template-columns: 1fr; gap: .4rem; }
  .st { justify-self: start; }
  .footer-legal { flex-direction: column; gap: .75rem; }
  .cta-band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .btn { display: none !important; }
  .hero { background: none; color: #000; }
  .hero h1, .hero .lede { color: #000; }
}

/* Legal pages (rendered from src/content/*.md) */
.prose { max-width: 860px; }
.prose h3 { font-size: 1.12rem; margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--accent-ink); }
.prose .table-wrap { margin: 1.25rem 0 1.5rem; }
.legal-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.legal-table thead th { font-family: var(--font-display); color: var(--ink); border-bottom: 2px solid var(--navy-900); background: var(--tint); }
.legal-table .num { text-align: right; white-space: nowrap; }

/* Insights ---------------------------------------------------------------- */
.article-hero h1 { max-width: 22em; font-size: clamp(2rem, 4.2vw, 3.2rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 1.5rem 0 0; font: 400 .85rem/1.5 var(--font-mono); color: var(--on-dark-muted); }
.article-grid { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.toc { position: sticky; top: 104px; align-self: start; font-size: .9rem; }
.toc-title { font: 500 .75rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 1rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: .4rem 0 .4rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; line-height: 1.4; }
.toc li a:hover { color: var(--ink); border-left-color: var(--accent); }
.article-body { max-width: 760px; }
.article-body > p:first-child { font-size: 1.15rem; color: var(--ink); }
.article-body h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-top: 2.75rem; scroll-margin-top: 96px; }
.article-body h3 { font-size: 1.2rem; margin-top: 2rem; scroll-margin-top: 96px; }
.prose code { font: 400 .88em/1.4 var(--font-mono); background: var(--tint); border: 1px solid var(--line); border-radius: 3px; padding: .08em .35em; color: var(--ink); overflow-wrap: anywhere; }
.prose pre.code { margin: 1.25rem 0 1.5rem; padding: 1.1rem 1.25rem; background: var(--navy-900); color: var(--on-dark); border-radius: var(--radius); border-left: 3px solid var(--accent); overflow-x: auto; font: 400 .85rem/1.65 var(--font-mono); }
.prose pre.code code { background: none; border: 0; padding: 0; color: inherit; font: inherit; overflow-wrap: normal; }
.prose pre.code .c { color: var(--on-dark-muted); font-style: italic; }
.author-box { margin-top: 3rem; padding: 1.4rem 1.5rem; background: var(--tint); border: 1px solid var(--line); border-left: 4px solid var(--navy-900); border-radius: var(--radius); }
.author-box p { margin: 0 0 .4rem; font-size: .95rem; }
.author-name { font: 600 1.05rem/1.3 var(--font-display); color: var(--ink); }
.author-role { font: 400 .8rem var(--font-mono); color: var(--muted); }
.article-list { list-style: none; margin: 0; padding: 0; }
.article-card { padding: 2rem 0; border-top: 1px solid var(--line); }
.article-card:last-child { border-bottom: 1px solid var(--line); }
.article-card h3 { font-size: 1.45rem; }
.article-card h3 a { color: var(--ink); text-decoration: none; }
.article-card h3 a:hover { text-decoration: underline; }
@media (max-width: 920px) {
  .article-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
}
