/* Self-hosted fonts (latin subsets of the Google Fonts variable files).
   Removes the render-blocking third-party stylesheet that held mobile LCP at
   ~4.7s, and stops handing every visitor's IP to fonts.googleapis.com.
   "Inter Fallback" is Arial with Inter's metrics so the swap does not shift
   the layout (values as published by next/font for Inter). */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Fallback"; src: local("Arial");
  ascent-override: 90.2%; descent-override: 22.48%; line-gap-override: 0%; size-adjust: 107.4%;
}

/* ==========================================================================
   EDI Studio — edistudio.store
   Design system. Brand source: docs/branding-tokens.json
   Pine monogram · teal #00878F / #00C5C6 · ink #071418
   Typeface pairing: Inter (UI) + JetBrains Mono (technical voice)
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  /* brand */
  --ink:          #071418;
  --teal:         #00878F;
  --teal-dark:    #006A73;
  --teal-deeper:  #00525A;
  --teal-bright:  #00C5C6;
  --teal-wash:    #E8F4F5;
  --teal-btn:     #007D85;   /* white-on-teal fill: AA at 4.92:1 */
  --teal-tint:    #F3F9FA;
  --orange:       #FF8C1E;
  --navy-1:       #001F27;
  --navy-2:       #00040A;
  --navy-mid:     #002B36;

  /* neutrals — cooled toward the ink hue so nothing reads as default gray */
  --body:         #3D4A4F;
  --muted:        #5A6A72;
  --faint:        #63737A;
  --paper:        #F4F7F8;
  --paper-warm:   #FAFBFB;
  --white:        #FFFFFF;
  --line:         #DFE5E7;
  --line-soft:    #EAEEEF;
  --line-hair:    #F1F4F5;

  --on-dark:        rgba(255,255,255,0.74);
  --on-dark-muted:  rgba(255,255,255,0.60);
  --on-dark-faint:  rgba(255,255,255,0.56);
  --on-dark-line:   rgba(255,255,255,0.10);

  /* semantic */
  --ok:      #16794A;
  --ok-bg:   #E6F5EC;
  --ok-line: #BCE3CC;
  --err:      #B42318;
  --err-bg:   #FDEDEC;
  --err-line: #F5C9C6;
  --warn:     #A65C00;
  --warn-bg:  #FFF4E5;

  /* geometry */
  --radius-xl: 22px;
  --radius:    14px;
  --radius-sm: 10px;
  --radius-xs: 7px;

  /* elevation */
  --shadow-xs:   0 1px 2px rgba(7,20,24,.05);
  --shadow-card: 0 1px 2px rgba(7,20,24,.04), 0 10px 26px -16px rgba(7,20,24,.16);
  --shadow-lift: 0 2px 6px rgba(7,20,24,.05), 0 22px 46px -20px rgba(0,90,96,.30);
  --shadow-deep: 0 30px 70px -30px rgba(0,31,39,.50), 0 6px 18px -8px rgba(7,20,24,.14);

  /* type */
  --font: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;

  /* motion — one shared rhythm, tuned per distance */
  --ease-out:   cubic-bezier(.22,.68,.28,1);
  --ease-soft:  cubic-bezier(.33,1,.68,1);
  --ease-spring: cubic-bezier(.34,1.42,.56,1);
  --t-fast:  .14s;
  --t-mid:   .24s;
  --t-slow:  .62s;

  /* layout */
  --gutter: 24px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv05' 1, 'cv11' 1, 'ss01' 1;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--teal-dark); text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
a:hover { color: var(--teal); }

/* One focus treatment everywhere. Never removed — only made handsome. */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--teal-wash); color: var(--teal-deeper); }

/* Inline SVGs default to a 300x150 box. Components size their own icons;
   this stops any that were missed from blowing out a layout. */
svg:not([width]) { width: 1.05em; height: 1.05em; }

/* ----------------------------------------------------------- typography -- */
h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.5rem + 3.1vw, 3.85rem); letter-spacing: -0.038em; }
h2 { font-size: clamp(1.85rem, 1.3rem + 1.9vw, 2.6rem);  letter-spacing: -0.032em; }
h3 { font-size: 1.14rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; }
h4 { font-size: .95rem;  font-weight: 650; letter-spacing: -0.01em; }
p  { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 650; color: var(--ink); }

/* The technical voice. Used for labels, counts, code and data — anywhere
   the page is quoting the machine rather than talking to the reader. */
.mono { font-family: var(--mono); font-variant-ligatures: none; }

/* Base inline code, outside prose: mono and tinted, but no chip — a
   background pill inside a list line reads as clutter. */
code {
  font-family: var(--mono); font-size: .88em; color: var(--teal-deeper);
  font-variant-ligatures: none; overflow-wrap: anywhere;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: .74rem; font-weight: 600; letter-spacing: .11em;
  text-transform: uppercase; color: var(--teal-dark);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: ""; width: 20px; height: 1.5px; flex: none;
  background: currentColor; opacity: .5;
}
.eyebrow.no-rule::before { display: none; }
.dark .eyebrow, .cta-band .eyebrow { color: var(--teal-bright); }

.lead { font-size: 1.12rem; line-height: 1.68; color: var(--muted); max-width: 62ch; }

/* --------------------------------------------------------------- layout -- */
.wrap   { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-n { max-width: 900px;  margin: 0 auto; padding: 0 var(--gutter); }

section, .section { padding: 104px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-alt   { background: var(--paper); }
.section-tint  { background: var(--teal-tint); }

/* Hairline between light sections — cheaper than another shadow. */
.section-rule { border-top: 1px solid var(--line-soft); }

.section-head { max-width: 62ch; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; line-height: 1.68; margin-bottom: 0; }
.section-head h2 { margin-bottom: 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------------ nav -- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out),
              background var(--t-mid) var(--ease-out);
}
.nav.is-stuck {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 6px 24px -18px rgba(7,20,24,.4);
  background: rgba(255,255,255,.93);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter);
  height: 70px; display: flex; align-items: center; gap: 30px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand svg { width: 29px; height: 29px; transition: transform var(--t-mid) var(--ease-spring); }
.brand:hover svg { transform: translateY(-2px) rotate(-4deg); }
.brand-name { font-size: 1.05rem; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; color: var(--ink); }
.brand-name span { font-weight: 400; opacity: .62; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links > a:not(.btn) {
  position: relative; font-size: .93rem; font-weight: 500;
  color: var(--body); padding: 9px 13px; border-radius: 8px;
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.nav-links > a:not(.btn)::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 1.5px; background: var(--teal); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-mid) var(--ease-out);
}
.nav-links > a:not(.btn):hover { color: var(--ink); background: rgba(0,135,143,.055); }
.nav-links > a:not(.btn):hover::after,
.nav-links > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links > a[aria-current="page"] { color: var(--teal-dark); font-weight: 600; }
.nav-links .btn { margin-left: 10px; }


.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0;
  padding: 10px; cursor: pointer; color: var(--ink); border-radius: 8px;
  min-width: 44px; min-height: 44px;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle:hover { background: var(--paper); }

/* -------------------------------------------------------------- buttons -- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 25px; border-radius: 999px;
  font-family: var(--font); font-size: .95rem; font-weight: 600; line-height: 1;
  letter-spacing: -.005em;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  text-align: center;
  transition: transform var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out),
              background-color var(--t-mid) var(--ease-out),
              border-color var(--t-mid) var(--ease-out),
              color var(--t-mid) var(--ease-out);
}
.btn svg { width: 17px; height: 17px; flex: none; }

/* A light sweeps across the face on hover. Transform-only, so it is free. */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.30) 48%, transparent 64%);
  transform: translateX(-115%);
  transition: transform .62s var(--ease-soft);
}
.btn:hover::before { transform: translateX(115%); }
.btn:active { transform: translateY(0) scale(.975); transition-duration: var(--t-fast); }

.btn-primary {
  background: var(--teal-btn); color: #fff;
  box-shadow: 0 1px 2px rgba(0,82,90,.24), 0 8px 20px -12px rgba(0,135,143,.7);
}
.btn-primary:hover {
  background: var(--teal-dark); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,82,90,.20), 0 18px 34px -14px rgba(0,135,143,.62);
}
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover {
  border-color: var(--teal); color: var(--teal-dark);
  background: var(--teal-tint); transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.btn-on-dark { background: var(--teal-bright); color: #00272B; }
.btn-on-dark:hover {
  background: #4FE0E1; color: #00272B; transform: translateY(-2px);
  box-shadow: 0 16px 32px -14px rgba(0,197,198,.65);
}
.btn-outline-dark { border-color: rgba(255,255,255,.30); color: #fff; background: rgba(255,255,255,.04); }
.btn-outline-dark:hover {
  border-color: var(--teal-bright); color: var(--teal-bright);
  background: rgba(0,197,198,.10); transform: translateY(-2px);
}
.btn-lg { padding: 16px 30px; font-size: 1.01rem; }
.btn-lg svg { width: 19px; height: 19px; }
.btn-sm { padding: 10px 17px; font-size: .87rem; }

.btn-quiet {
  padding: 0; border: 0; background: none; border-radius: 0;
  color: var(--teal-dark); font-weight: 600; font-size: .93rem;
  display: inline-flex; align-items: center; gap: 7px; overflow: visible;
}
.btn-quiet::before { display: none; }
.btn-quiet svg { width: 15px; height: 15px; flex: none; transition: transform var(--t-mid) var(--ease-out); }
.btn-quiet:hover { color: var(--teal); }
.btn-quiet:hover svg { transform: translateX(4px); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-row.center { justify-content: center; }

/* ---------------------------------------------------------------- cards -- */
.card {
  position: relative;
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out),
              border-color var(--t-mid) var(--ease-out);
}
/* Cursor-tracked glow. Coordinates come from site.js; absent, it stays dark. */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%),
              rgba(0,135,143,.075), transparent 62%);
  transition: opacity var(--t-mid) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #C9E3E6; }
.card:hover::before { opacity: 1; }
.card h3, .card h2.h-sub { margin-bottom: 9px; }
.card h2.h-sub { font-size: 1.14rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; }
.card p  { color: var(--muted); font-size: .96rem; line-height: 1.65; margin-bottom: 0; }
.card p + p { margin-top: .8em; }

.card-link { color: inherit; }
.card-link:hover { color: var(--teal-dark); }

.icon-tile {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-wash); color: var(--teal-dark); margin-bottom: 18px;
  transition: background var(--t-mid) var(--ease-out), color var(--t-mid) var(--ease-out),
              transform var(--t-mid) var(--ease-spring);
}
.icon-tile svg { width: 21px; height: 21px; }
.card:hover .icon-tile { background: var(--teal); color: #fff; transform: scale(1.06) rotate(-3deg); }

/* --------------------------------------------------------------- chips --- */
.chip, .badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: .745rem; font-weight: 500;
  letter-spacing: .02em;
  background: var(--teal-wash); color: var(--teal-deeper);
  border: 1px solid #CFE6E8;
}
.badge-pill svg, .chip svg { width: 13px; height: 13px; flex: none; }
.badge-pill b { font-weight: 600; }

.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none; }
.tag-dot.live { box-shadow: 0 0 0 0 rgba(0,135,143,.55); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,135,143,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(0,135,143,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,135,143,0); }
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative; overflow: hidden;
  padding: 76px 0 96px;
  background:
    radial-gradient(900px 460px at 78% -12%, rgba(0,197,198,.13), transparent 62%),
    radial-gradient(700px 420px at 4% 6%,  rgba(0,135,143,.075), transparent 58%),
    linear-gradient(178deg, #FBFDFD 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line-soft);
}
/* Faint engineering grid. Sets a technical tone without shouting. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,90,96,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,90,96,.055) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(140% 92% at 46% 12%, #000 18%, transparent 72%);
  -webkit-mask-image: radial-gradient(140% 92% at 46% 12%, #000 18%, transparent 72%);
}
.hero > * { position: relative; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 60px; align-items: center;
}
.hero-copy { max-width: 34rem; }
.hero h1 { margin: 18px 0 20px; color: var(--ink); }
.hero h1 em {
  font-style: normal; position: relative; white-space: nowrap;
  color: var(--teal-dark);
}
/* Hand-drawn-ish underline rather than a highlighter block. */
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .30em;
  background: linear-gradient(93deg, rgba(0,197,198,.30), rgba(0,197,198,.14));
  border-radius: 3px; z-index: -1;
  transform: scaleX(0); transform-origin: left;
  animation: swipe .85s .35s var(--ease-soft) forwards;
}
@keyframes swipe { to { transform: scaleX(1); } }

.hero-shot { position: relative; }
.hero-sub { font-size: 1.13rem; line-height: 1.66; color: var(--muted); margin: 0 0 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-alt { margin: 14px 0 0; font-size: .875rem; color: var(--muted); }
.hero-alt a { font-weight: 600; }
.hero-note { margin: 16px 0 0; font-size: .855rem; color: var(--muted); }
.hero-note a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 2px; }

.hero-meta {
  display: flex; gap: 10px 24px; flex-wrap: wrap;
  margin: 30px 0 0; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: .855rem; color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 15px; height: 15px; flex: none; color: var(--teal); }

/* --------------------------------------------------- app mock (product) -- */
/* A faithful reduction of the EDI Studio Structure tab. Tabs, panel titles
   and the tree shape mirror MainWindow.axaml so the picture matches the app. */
.app-shot {
  --shot-bg: #FFFFFF;
  position: relative;
  border-radius: 13px; overflow: hidden;
  background: var(--shot-bg);
  border: 1px solid rgba(7,20,24,.11);
  box-shadow: var(--shadow-deep);
  font-family: var(--mono); font-size: 12px; line-height: 1.5;
  transform: perspective(1800px) rotateY(-3.2deg) rotateX(1.4deg);
  transform-origin: left center;
  transition: transform .7s var(--ease-soft), box-shadow .7s var(--ease-soft);
}
.app-shot:hover { transform: perspective(1800px) rotateY(0deg) rotateX(0deg) translateY(-4px); }
.app-shot.flat { transform: none; }
.app-shot.flat:hover { transform: translateY(-4px); }

.shot-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; background: #F0F4F5;
  border-bottom: 1px solid #E2E8EA;
}
.shot-dots { display: flex; gap: 6px; flex: none; }
.shot-dots i { width: 10px; height: 10px; border-radius: 50%; background: #D6DDDF; display: block; }
.shot-dots i:nth-child(1) { background: #F0665C; }
.shot-dots i:nth-child(2) { background: #F3BE4E; }
.shot-dots i:nth-child(3) { background: #61C554; }
.shot-file {
  font-size: 11px; color: #56666C; letter-spacing: .01em;
  margin-left: 6px; display: inline-flex; align-items: center; gap: 7px;
}
.shot-file b { font-weight: 500; color: var(--ink); }
.shot-badge {
  margin-left: auto; font-size: 10px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--teal-deeper); background: var(--teal-wash);
  border: 1px solid #CFE6E8; border-radius: 999px; padding: 3px 9px;
}

.shot-tabs { display: flex; gap: 2px; padding: 0 10px; background: #F7FAFA; border-bottom: 1px solid #E7EDEE; }
.shot-tabs span {
  padding: 9px 13px 8px; font-size: 11.5px; color: #627278;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.shot-tabs span.on { color: var(--teal-deeper); border-bottom-color: var(--teal); font-weight: 500; background: #fff; }
.shot-tabs span.err-tab { color: var(--err); margin-left: auto; }
.shot-tabs span.err-tab b { font-weight: 600; }

.shot-body { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); min-height: 322px; }
.shot-pane { padding: 12px 0 38px; }
.shot-pane + .shot-pane { border-left: 1px solid #EDF1F2; background: #FCFDFD; }
.shot-title {
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: #66777D; padding: 0 14px 9px; font-weight: 500;
}

.tree { list-style: none; margin: 0; padding: 0; }
.tree li {
  display: flex; align-items: center; gap: 7px;
  padding: 3.5px 14px; white-space: nowrap;
  border-left: 2px solid transparent;
}
.tree li > .desc { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tree .d1 { padding-left: 26px; } .tree .d2 { padding-left: 40px; }
.tree .d3 { padding-left: 54px; } .tree .d4 { padding-left: 68px; }
.tree .seg { color: var(--teal-deeper); font-weight: 600; }
.tree .desc { color: #66777D; font-weight: 400; }
.tree .caret { color: #7B8D93; font-size: 9px; flex: none; width: 8px; }
.tree li.sel { background: var(--teal-wash); border-left-color: var(--teal); }
.tree li.sel .seg { color: var(--teal-deeper); }
.tree li.bad { border-left-color: var(--err); background: rgba(180,35,24,.045); }
.tree li.bad .seg { color: var(--err); }

.det { padding: 0 14px; }
.det-row {
  display: grid; grid-template-columns: 46px 1fr; gap: 10px;
  padding: 5px 0; border-bottom: 1px dashed #EDF1F2; align-items: baseline;
}
.det-row:last-child { border-bottom: 0; }
.det-row dt { color: #66777D; font-size: 10.5px; }
.det-row dd { margin: 0; color: var(--ink); font-size: 11.5px; overflow-wrap: anywhere; }
.det-row dd small { display: block; color: #6B7B81; font-size: 10px; margin-top: 1px; font-family: var(--font); }
.det-row.hit dd { color: var(--err); font-weight: 600; }

.shot-alert {
  margin: 12px 14px 0; padding: 9px 11px; border-radius: 8px;
  background: var(--err-bg); border: 1px solid var(--err-line);
  color: #8E2019; font-size: 10.5px; line-height: 1.5;
}
.shot-alert b { color: var(--err); font-weight: 600; }
.shot-alert .grp {
  display: inline-block; margin-top: 5px; padding: 1px 7px; border-radius: 999px;
  background: #fff; border: 1px solid var(--err-line); font-size: 9.5px;
}

/* Floating stat card clipped to the mock's corner — gives the shot depth. */
.shot-float {
  position: absolute; z-index: 3;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 12px;
  box-shadow: var(--shadow-lift); padding: 12px 15px;
  font-family: var(--font);
}
.shot-float.br { right: -34px; bottom: -34px; }
.shot-float .n {
  font-family: var(--mono); font-size: 1.32rem; font-weight: 700;
  color: var(--ink); letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.shot-float .l { font-size: .70rem; color: var(--muted); margin-top: 5px; letter-spacing: .01em; }
.shot-float .n em { font-style: normal; color: var(--faint); font-weight: 400; }
.shot-float .n i { font-style: normal; color: var(--teal); }

/* ---------------------------------------------------------- stat strip --- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--white); overflow: hidden;
}
.stat { padding: 26px 24px; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block; font-family: var(--mono); font-size: 1.85rem; font-weight: 700;
  color: var(--ink); letter-spacing: -.035em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat b i { font-style: normal; color: var(--teal); }
.stat > span { display: block; margin-top: 7px; font-size: .875rem; color: var(--muted); line-height: 1.5; }
.dark .stats, .cta-band .stats { background: rgba(255,255,255,.04); border-color: var(--on-dark-line); }
.dark .stat, .cta-band .stat { border-right-color: var(--on-dark-line); }
.dark .stat b, .cta-band .stat b { color: #fff; }
.dark .stat b i, .cta-band .stat b i { color: var(--teal-bright); }
.dark .stat > span, .cta-band .stat > span { color: var(--on-dark-muted); }

/* ---------------------------------------------------- numbered problems -- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.step {
  display: grid; grid-template-columns: 74px minmax(0,1fr) minmax(0,1.15fr);
  gap: 28px; align-items: start;
  padding: 32px 0; border-bottom: 1px solid var(--line-soft);
  transition: background var(--t-mid) var(--ease-out);
}
.step:hover { background: var(--paper-warm); }
.step-n {
  font-family: var(--mono); font-size: .82rem; font-weight: 600;
  color: var(--teal); letter-spacing: .08em; padding-top: 5px;
  font-variant-numeric: tabular-nums;
}
.step h3, .step h2 { margin: 0; font-size: 1.22rem; font-weight: 650; letter-spacing: -0.015em; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.68; }
.step p + p { margin-top: .7em; }

/* --------------------------------------------------------- code sample --- */
.code-slab {
  background: linear-gradient(165deg, #04222B 0%, var(--navy-2) 100%);
  color: #C8DADD; border-radius: var(--radius);
  padding: 20px 22px; font-family: var(--mono); font-size: .82rem; line-height: 1.75;
  /* The markup carries real newlines — without `pre` they collapse to spaces. */
  white-space: pre; tab-size: 2;
  overflow-x: auto; border: 1px solid rgba(255,255,255,.07);
  box-shadow: var(--shadow-card);
  -webkit-overflow-scrolling: touch;
}
.code-slab .k  { color: var(--teal-bright); }        /* segment id */
.code-slab .v  { color: #EBF2F3; }                   /* value */
.code-slab .d  { color: #5B7A80; }                   /* delimiter */
.code-slab .c  { color: #7C949A; font-style: italic; } /* comment */
.code-slab .bad { color: #FF8D82; text-decoration: underline wavy rgba(255,141,130,.55); text-underline-offset: 3px; }
.code-slab .ok  { color: #6FE3B0; }

.slab-label {
  display: flex; align-items: center; gap: 8px; margin-bottom: 11px;
  font-family: var(--mono); font-size: .70rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); font-weight: 500;
}
.slab-label svg { width: 13px; height: 13px; }

/* ------------------------------------------------------- media / photo --- */
.figure {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--navy-1); box-shadow: var(--shadow-card);
  border: 1px solid var(--line-soft);
}
.figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.1s var(--ease-soft);
}
.figure:hover img { transform: scale(1.035); }
/* Grade the photography toward the brand so stock never looks bolted on. */
.figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(200deg, rgba(0,31,39,.34) 0%, rgba(0,90,96,.16) 45%, rgba(0,4,10,.50) 100%);
  mix-blend-mode: multiply;
}
.figure.plain::after { background: linear-gradient(200deg, rgba(0,31,39,.14), rgba(0,4,10,.24)); }
.figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 20px 22px; color: #fff;
  font-size: .85rem; line-height: 1.5;
  background: linear-gradient(to top, rgba(0,4,10,.80), transparent);
}
.figure figcaption b { display: block; color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: 3px; }

.page-hero {
  position: relative; overflow: hidden;
  background: var(--navy-1); color: var(--on-dark);
  padding: 96px 0 88px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--bg); background-size: cover; background-position: center;
  opacity: .34; transform: scale(1.04);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(0,31,39,.94) 12%, rgba(0,31,39,.72) 52%, rgba(0,4,10,.60) 100%);
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin: 16px 0 18px; max-width: 17ch; }
.page-hero .lead { color: var(--on-dark); font-size: 1.13rem; max-width: 56ch; }
.page-hero .eyebrow { color: var(--teal-bright); }
.page-hero .btn-row { margin-top: 30px; }

/* Photo cards used in the "who it's for" band. */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.who {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out),
              border-color var(--t-mid) var(--ease-out);
}
.who:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: #C9E3E6; }
.who-img { position: relative; aspect-ratio: 76 / 50; overflow: hidden; background: var(--navy-1); }
.who-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.05s var(--ease-soft); }
.who:hover .who-img img { transform: scale(1.06); }
.who-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(196deg, rgba(0,31,39,.20), rgba(0,90,96,.30));
  mix-blend-mode: multiply;
}
.who-role {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: rgba(0,20,26,.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 4px 11px;
}
.who-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.who-body h3 { margin: 0 0 9px; font-size: 1.13rem; }
.who-body h3 a { color: var(--ink); }
.who:hover .who-body h3 a { color: var(--teal-dark); }
.who-body p { color: var(--muted); font-size: .95rem; line-height: 1.62; margin: 0 0 18px; flex: 1; }

/* ------------------------------------------------------------ split row -- */
/* Alternating copy/visual rows. Replaces the endless equal-card grid. */
.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.flip .split-media { order: -1; }
.split-copy h2 { margin-bottom: 18px; }
.split-copy h3, .split-copy h2.h-sub { font-size: 1.5rem; font-weight: 650; letter-spacing: -.028em; margin-bottom: 14px; }
.split-copy p { color: var(--muted); font-size: 1.04rem; line-height: 1.7; }
.split-media { min-width: 0; }

.tick-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.tick-list li {
  position: relative; padding-left: 29px;
  font-size: .98rem; line-height: 1.55; color: var(--body);
}
.tick-list li svg {
  position: absolute; left: 0; top: .28em;
  width: 17px; height: 17px; color: var(--teal);
}
.dark .tick-list li, .cta-band .tick-list li { color: var(--on-dark); }
.dark .tick-list li svg, .cta-band .tick-list li svg { color: var(--teal-bright); }

/* --------------------------------------------------------------- crumbs -- */
.crumbs {
  font-size: .82rem; color: var(--faint); padding: 18px 0 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 2px; }
.crumbs span[aria-hidden] { color: #9FADB2; padding: 0 5px; }
.crumbs .here { color: var(--body); }
/* Breadcrumbs rendered inside a dark page hero. */
.page-hero .crumbs { padding: 0 0 22px; color: var(--on-dark-faint); }
.page-hero .crumbs a { color: var(--on-dark-muted); }
.page-hero .crumbs a:hover { color: var(--teal-bright); }
.page-hero .crumbs span { color: rgba(255,255,255,.22); }
.page-hero .crumbs .here { color: var(--on-dark); }
.page-hero + .crumbs-wrap .crumbs { padding-top: 18px; }

/* ---------------------------------------------------------------- prose -- */
.wrap-n .prose, .wrap-n .article-head, .wrap-n .article-cta { margin-left: auto; margin-right: auto; }
.prose { max-width: 68ch; font-size: 1.06rem; line-height: 1.78; color: var(--body); }
.prose > * { max-width: 100%; }
.prose h2 {
  margin: 52px 0 16px; font-size: 1.65rem; letter-spacing: -.03em; color: var(--ink);
  scroll-margin-top: 96px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 34px 0 12px; font-size: 1.2rem; color: var(--ink); scroll-margin-top: 96px; }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--teal); }
.prose a:not(.btn) { color: var(--teal-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2.5px; text-decoration-color: rgba(0,135,143,.36); }
.prose a:not(.btn):hover { color: var(--teal); text-decoration-color: currentColor; }
.prose code {
  font-family: var(--mono); font-size: .855em;
  background: var(--teal-wash); color: var(--teal-deeper);
  padding: 2px 6px; border-radius: 5px; border: 1px solid rgba(0,135,143,.12);
  overflow-wrap: anywhere;
}
.prose pre {
  background: linear-gradient(165deg, #04222B, var(--navy-2)); color: #C8DADD;
  padding: 20px 22px; border-radius: var(--radius);
  overflow-x: auto; font-family: var(--mono); font-size: .82rem; line-height: 1.72;
  margin: 0 0 24px; border: 1px solid rgba(255,255,255,.07); box-shadow: var(--shadow-card);
}
.prose pre code { background: none; color: inherit; padding: 0; border: 0; font-size: inherit; }
.prose blockquote {
  border-left: 3px solid var(--teal); padding: 2px 0 2px 22px; margin: 0 0 24px;
  color: var(--muted); font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: .95rem; }
.prose th, .prose td { padding: 12px 15px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.prose th {
  background: var(--paper); font-weight: 600; color: var(--ink);
  font-family: var(--mono); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase;
}
.prose tbody tr { transition: background var(--t-fast) var(--ease-out); }
.prose tbody tr:hover { background: var(--paper-warm); }
.prose figure { margin: 0 0 26px; }
.table-scroll { overflow-x: auto; margin-bottom: 26px; -webkit-overflow-scrolling: touch; }

.pull {
  margin: 34px 0; padding: 24px 26px; border-radius: var(--radius);
  background: var(--teal-tint); border: 1px solid #D7EAEC;
  font-size: 1.04rem; line-height: 1.68; color: var(--ink);
}
.pull b { color: var(--teal-deeper); }

.article-head { max-width: 68ch; margin: 0 0 40px; }
.article-head h1 { font-size: clamp(2rem, 1.4rem + 2.1vw, 2.85rem); margin: 14px 0 18px; }
.article-meta {
  font-size: .85rem; color: var(--faint); display: flex; gap: 8px; flex-wrap: wrap;
  align-items: center; font-family: var(--mono);
}
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta span + span::before { content: "·"; color: var(--line); margin-right: 8px; }

/* Definition box under the title: the one sentence an answer engine lifts. */
.post-summary {
  margin: 18px 0 0; padding: 14px 18px; max-width: 68ch;
  border-left: 3px solid var(--teal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--paper); color: var(--ink); font-size: 1.05rem; line-height: 1.6;
}
.post-faq { max-width: 68ch; margin: 44px auto 0; }
.post-faq h2 { font-size: 1.35rem; margin: 0 0 16px; }
.post-refs { margin: 14px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.7; }
.post-refs a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 2px; }

/* ----------------------------------------------------------- blog cards -- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(322px, 1fr)); gap: 24px; }
.post-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 26px 28px 24px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out),
              border-color var(--t-mid) var(--ease-out);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #C9E3E6; }
.post-card h3, .post-card h2 { font-size: 1.13rem; font-weight: 650; letter-spacing: -0.015em; margin: 12px 0 10px; line-height: 1.34; }
/* The whole card is the click target; the heading link stretches over it. */
.post-card h3 a, .post-card h2 a { color: var(--ink); }
.post-card h3 a::after, .post-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card:hover h3 a, .post-card:hover h2 a { color: var(--teal-dark); }
.post-card p { color: var(--muted); font-size: .93rem; line-height: 1.63; flex: 1; margin: 0 0 18px; }
.post-tag {
  font-family: var(--mono); font-size: .69rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal-dark);
}
.post-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: .8rem; color: var(--faint); font-family: var(--mono);
}
.post-more { font-size: .88rem; font-weight: 600; color: var(--teal-dark); font-family: var(--font); display: inline-flex; align-items: center; gap: 6px; }
.post-more svg { width: 14px; height: 14px; transition: transform var(--t-mid) var(--ease-out); }
.post-card:hover .post-more svg, a:hover > .post-more svg { transform: translateX(4px); }

/* ------------------------------------------------------ compare table ---- */
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white);
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.compare th, .compare td {
  padding: 14px 18px; text-align: center; font-size: .93rem;
  border-bottom: 1px solid var(--line-soft);
}
.compare thead th {
  background: var(--paper); font-weight: 600; color: var(--ink);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  position: sticky; top: 0;
}
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--ink); font-weight: 500; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr { transition: background var(--t-fast) var(--ease-out); }
.compare tbody tr:hover { background: var(--paper-warm); }
.compare .col-hi { background: rgba(0,135,143,.05); }
.compare thead .col-hi { background: var(--teal-wash); color: var(--teal-deeper); }
.compare tbody tr:hover .col-hi { background: rgba(0,135,143,.085); }
/* Tables whose cells are sentences (a definition grid, a decoded segment
   list) read better left-aligned; the centred default suits short cells. */
.compare-text th, .compare-text td { text-align: left; }
.cell-yes, .cell-no { display: inline-flex; align-items: center; gap: 7px; justify-content: center; }
.ic-yes, .ic-no {
  display: inline-flex; width: 21px; height: 21px; border-radius: 50%;
  align-items: center; justify-content: center; flex: none;
}
.ic-yes { background: var(--ok-bg); } .ic-yes svg { width: 12px; height: 12px; stroke: var(--ok); }
.ic-no  { background: var(--err-bg); } .ic-no svg  { width: 11px; height: 11px; stroke: var(--err); }

/* ------------------------------------------------------------------ faq -- */
.faq { max-width: 780px; }
.faq details {
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  margin-bottom: 10px; background: var(--white);
  transition: border-color var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}
.faq details:hover { border-color: #CFE6E8; }
.faq details[open] { border-color: #C9E3E6; box-shadow: var(--shadow-xs); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 22px; font-weight: 600; color: var(--ink); font-size: 1rem;
  line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; margin-left: auto; margin-top: 6px;
  width: 9px; height: 9px; border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal); border-radius: 1px;
  transform: rotate(45deg); transform-origin: center;
  transition: transform var(--t-mid) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--teal-dark); }
.faq .faq-a { padding: 0 22px 20px; }
.faq .faq-a p { margin: 0; color: var(--muted); line-height: 1.7; font-size: .97rem; }
.faq .faq-a p + p { margin-top: .85em; }
/* Grid-rows trick: animates height without touching layout on other elements. */
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size var(--t-mid) var(--ease-out), content-visibility var(--t-mid) allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

/* -------------------------------------------------------------- pricing -- */
.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  align-items: stretch; max-width: 1080px; margin: 0 auto;
}
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out),
              border-color var(--t-mid) var(--ease-out);
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: #C9E3E6; }
.price-card.featured { border-color: var(--teal); box-shadow: 0 20px 48px -20px rgba(0,135,143,.42); }
.price-card.featured:hover { box-shadow: 0 26px 60px -22px rgba(0,135,143,.52); }
.price-head { background: linear-gradient(160deg, var(--navy-1), var(--navy-mid)); padding: 28px 30px 26px; color: #fff; }
.price-card.featured .price-head { background: linear-gradient(160deg, #003B47, var(--teal-deeper)); }
.price-head h3, .price-head h2 { color: #fff; margin: 0; font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; padding-right: 130px; }
.price-amount { display: flex; align-items: baseline; gap: 7px; margin-top: 12px; }
.price-amount b {
  font-family: var(--mono); font-size: 2.5rem; font-weight: 700;
  letter-spacing: -.045em; color: #fff; line-height: 1; font-variant-numeric: tabular-nums;
}
.price-amount span { color: var(--on-dark-muted); font-size: .98rem; }
.price-desc { font-size: .89rem; color: var(--on-dark-muted); margin: 10px 0 0; line-height: 1.55; }
.price-body { padding: 26px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.price-body ul {
  list-style: none; margin: 0 0 26px; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: .94rem; color: var(--body); flex: 1;
}
.price-body li { position: relative; padding-left: 27px; line-height: 1.5; }
.price-body li svg { position: absolute; left: 0; top: .22em; width: 16px; height: 16px; color: var(--teal); }
.price-flag {
  position: absolute; top: 16px; right: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: .67rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  background: rgba(0,197,198,.16); color: var(--teal-bright);
  border: 1px solid rgba(0,197,198,.42);
}
.price-note { margin-top: 14px; font-size: .8rem; color: var(--faint); text-align: center; }

/* ------------------------------------------------------ dark / cta band -- */
.dark, .cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(158deg, var(--navy-1) 0%, var(--navy-mid) 48%, var(--navy-2) 100%);
  color: var(--on-dark);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(720px 380px at 50% -8%, rgba(0,197,198,.20), transparent 66%);
}
.cta-band > * { position: relative; }
.dark h1, .dark h2, .dark h3, .dark h4,
.cta-band h1, .cta-band h2, .cta-band h3 { color: #fff; }
.dark .lead, .cta-band .lead, .cta-band p { color: var(--on-dark); }
/* Exclude buttons: `.cta-band a` outranks `.btn-on-dark`, which would
   paint teal text on a teal button. */
.dark a:not(.btn), .cta-band a:not(.btn) { color: var(--teal-bright); }
.cta-band .section-head p { color: var(--on-dark); }
.cta-band .btn-row { margin-top: 30px; }

/* --------------------------------------------------------------- footer -- */
.footer {
  background: linear-gradient(160deg, var(--navy-1) 0%, var(--navy-2) 100%);
  color: var(--on-dark-muted); padding: 68px 0 32px; font-size: .92rem;
}
.footer a:not(.btn) { color: var(--on-dark-muted); }
.footer a:not(.btn):hover { color: var(--teal-bright); }
/* .footer-grid > div > a forces display:block, which stacks the mark
   above the wordmark — restore the row. */
.footer .brand { display: inline-flex; margin-bottom: 4px; }
.footer .brand svg { width: 26px; height: 26px; }
.footer .brand-name { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 48px; }
.footer-grid > div > a { display: block; margin-bottom: 11px; }
.footer h3 {
  color: #fff; font-family: var(--mono); font-size: .70rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; margin: 0 0 18px;
  color: var(--on-dark-faint);
}
.footer p { color: var(--on-dark-muted); line-height: 1.62; }
.footer-bottom {
  border-top: 1px solid var(--on-dark-line); padding-top: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: .8rem; color: var(--on-dark-faint); flex-wrap: wrap;
}
.footer-bottom p { margin: 0; color: var(--on-dark-faint); }
.footer-os { display: inline-flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: .75rem; }

/* --------------------------------------------------------------- forms --- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: .96rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px; width: 100%;
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,135,143,.14);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ------------------------------------------------------------ skip link -- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--teal-btn); color: #fff; font-weight: 600; font-size: .9rem;
  padding: 11px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top var(--t-mid) var(--ease-out);
}
.skip-link:focus { top: 0; color: #fff; }

/* ------------------------------------------------------- article footer -- */
.article-cta {
  margin-top: 52px; padding: 30px 32px; border-radius: var(--radius);
  background: var(--teal-tint); border: 1px solid #D7EAEC;
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 26px; align-items: center;
}
.article-cta h3 { margin: 0 0 8px; font-size: 1.2rem; }
.article-cta p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.62; }
@media (max-width: 820px) {
  .article-cta { grid-template-columns: 1fr; gap: 20px; padding: 26px 24px; }
}

/* ---------------------------------------------------------- download os -- */
.os-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 820px; }
.os-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 30px 30px 28px; border-radius: var(--radius-xl);
  background: var(--white); border: 1.5px solid var(--line-soft);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out),
              border-color var(--t-mid) var(--ease-out);
}
.os-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: #C9E3E6; }
.os-card svg.os-mark { width: 34px; height: 34px; color: var(--ink); }
.os-card h3, .os-card h2 { margin: 0; font-size: 1.22rem; font-weight: 650; letter-spacing: -0.015em; }
.os-card .os-req { font-family: var(--mono); font-size: .78rem; color: var(--faint); margin: 0; }
.os-card .btn { margin-top: 6px; }
.os-card .os-size { font-size: .8rem; color: var(--faint); margin: 0; font-family: var(--mono); }
@media (max-width: 720px) { .os-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- logos ----- */
/* Text-set "as used for" strip. No fake customer logos — just the formats. */
.format-strip {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.format-strip .fmt {
  font-family: var(--mono); font-size: .82rem; font-weight: 500;
  color: var(--teal-deeper); background: var(--white);
  border: 1px solid var(--line-soft); border-radius: 8px; padding: 7px 12px;
  transition: transform var(--t-mid) var(--ease-spring), border-color var(--t-mid) var(--ease-out),
              color var(--t-mid) var(--ease-out);
}
.format-strip .fmt:hover { transform: translateY(-3px); border-color: var(--teal); color: var(--teal); }
.format-strip .fmt em { font-style: normal; color: var(--faint); font-weight: 400; }

/* ====================================================== overflow guards ==
   Grid and flex tracks size to min-content by default (`min-width: auto`),
   so one `white-space: pre` code block or one nowrap tree row makes its
   whole track wider than the screen. `overflow-x: hidden` on <body> then
   clips the text instead of fixing it, which is how this hid on desktop.
   Every track that can hold wide content is pinned to `min-width: 0` and
   given its own scroll container.
   ========================================================================= */
.hero-grid > *, .split > *, .step > *, .shot-body > *,
.grid-2 > *, .grid-3 > *, .grid-4 > *, .who-grid > *, .price-grid > * { min-width: 0; }

.app-shot { max-width: 100%; }
.shot-pane { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.shot-pane::-webkit-scrollbar { height: 5px; }
.shot-pane::-webkit-scrollbar-thumb { background: #D6DEE0; border-radius: 3px; }
.shot-tabs { min-width: 0; }
.code-slab { max-width: 100%; }

/* ================================================================ motion ==
   One reveal primitive. site.js adds .in when the element crosses the
   viewport; without JS everything is visible, so content never depends
   on script to be readable.
   ========================================================================= */
/* Everything is visible by default. The .js class is set by a tiny inline
   script in <head>, so content is only ever hidden when script is running
   and able to put it back. No JS, or a JS error, means a fully readable page. */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity var(--t-slow) var(--ease-soft),
              transform var(--t-slow) var(--ease-soft);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }
/* Once it has landed, stop advertising it to the compositor. */
.reveal.done { will-change: auto; transition: none; }

.js .reveal-l { transform: translate3d(-22px, 0, 0); }
.js .reveal-r { transform: translate3d(22px, 0, 0); }
.js .reveal-s { transform: scale(.965); }

/* Staggered children — index set by site.js as --d on each child. */
.js .stagger > * { opacity: 0; transform: translate3d(0, 14px, 0);
  transition: opacity .55s var(--ease-soft), transform .55s var(--ease-soft);
  transition-delay: var(--d, 0ms); }
.js .stagger.in > * { opacity: 1; transform: none; }

/* The app mock parses itself in on first paint. Runs once, decorative only. */
.app-shot .tree li,
.app-shot .det-row { animation: rowIn .5s var(--ease-soft) both; animation-delay: var(--d, 0ms); }
@keyframes rowIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

.app-shot .shot-float { animation: floatIn .7s .9s var(--ease-spring) both; }
@keyframes floatIn { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }

/* Marks a number that site.js counts up to. */
.count { font-variant-numeric: tabular-nums; }

/* ============================================================ responsive ==
   Breakpoints: 1080 (tighten), 900 (stack two-ups), 720 (single column).
   ========================================================================= */
@media (max-width: 1080px) {
  .hero-grid { gap: 40px; }
  .split { gap: 44px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / -1; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .hero { padding: 56px 0 68px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: none; }
  .app-shot { transform: none; }
  .app-shot:hover { transform: translateY(-3px); }
  .shot-float.br { right: 8px; bottom: -16px; }
  .split, .split + .split { grid-template-columns: 1fr; }
  .split + .split { margin-top: 64px; }
  .split.flip .split-media { order: 0; }
  .grid-3, .grid-4, .who-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .dark .stat:nth-child(-n+2), .cta-band .stat:nth-child(-n+2) { border-bottom-color: var(--on-dark-line); }
  .price-grid { grid-template-columns: 1fr; max-width: 470px; }
  .step { grid-template-columns: 46px minmax(0,1fr); gap: 8px 20px; }
  .step > p { grid-column: 2; }
  .page-hero { padding: 72px 0 64px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  section, .section { padding: 68px 0; }
  .section-head { margin-bottom: 40px; }
  .grid-2, .grid-3, .grid-4, .who-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn, .btn-row > .btn { flex: 1 1 220px; }
  .shot-body { grid-template-columns: 1fr; min-height: 0; }
  .shot-pane + .shot-pane { border-left: 0; border-top: 1px solid #EDF1F2; }
  .app-shot { font-size: 11px; }
  .tree .d1 { padding-left: 22px; } .tree .d2 { padding-left: 33px; }
  .tree .d3 { padding-left: 44px; } .tree .d4 { padding-left: 55px; }
  .shot-file { font-size: 10px; }
  .code-slab { font-size: .76rem; padding: 16px 16px; }
  .shot-tabs { overflow-x: auto; scrollbar-width: none; }
  .shot-tabs::-webkit-scrollbar { display: none; }
  .shot-tabs span.err-tab { margin-left: 0; }
  .article-head h1 { font-size: 1.75rem; }
  .prose { font-size: 1.02rem; }
  .split + .split { margin-top: 52px; }

  /* Mobile menu: a real panel, driven by aria-expanded rather than a class. */
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 18px;
    box-shadow: 0 18px 34px -22px rgba(7,20,24,.5);
    max-height: calc(100dvh - 70px); overflow-y: auto;
  }
  .nav-links.open { display: flex; animation: menuIn .22s var(--ease-out); }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav-links > a { padding: 13px 12px; font-size: 1rem; border-radius: var(--radius-sm); }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-links .btn { margin: 10px 0 0; width: 100%; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .stat:last-child { border-bottom: 0; }
  .hero-meta { gap: 10px 16px; }
}

/* Coarse pointers get no cursor-tracked glow and bigger hit areas. */
@media (hover: none) {
  .card::before { display: none; }
  .card:hover, .who:hover, .post-card:hover, .price-card:hover { transform: none; }
  .figure:hover img, .who:hover .who-img img { transform: none; }
}

/* ====================================================== reduced motion ==== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .stagger > *, .js .reveal, .js .stagger > * { opacity: 1 !important; transform: none !important; }
  .app-shot { transform: none !important; }
  .hero h1 em::after { transform: scaleX(1); }
  .btn::before { display: none; }
}

/* ================================================================= print == */
@media print {
  .nav, .footer, .cta-band, .btn, .app-shot, .figure, .crumbs { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .prose { max-width: none; }
  section, .section { padding: 12pt 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
