/* FPOMS marketing site: static, no external assets, system fonts only. */

:root {
  --canvas: #ffffff;
  --paper: #ffffff;
  --surface-hover: #f1f5f9;
  --line: #dbe2ea;
  --line-soft: #e9eef3;
  --ink: #0f1b2a;
  --slate: #34404f;
  --muted: #566170;
  --navy: #0b1726;
  --navy-2: #12233a;
  --navy-line: #24384f;
  --on-navy: #eef3f7;
  --on-navy-muted: #b3c0cf;
  --teal: #0e8073;
  --teal-ink: #0a6359;
  --teal-bright: #5eead4;
  --teal-wash: #e3f2ee;
  --alert: #b4321f;
  --alert-wash: #fbe9e4;
  --amber: #8a5a00;
  --amber-wash: #fbf0d9;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 0 rgba(15, 27, 42, 0.04), 0 18px 40px -22px rgba(15, 27, 42, 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink); color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

#main:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.95rem/1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn-lg { min-height: 3.1rem; padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-ink); color: #fff; }
.btn-quiet { color: var(--ink); }
.btn-quiet:hover { background: var(--surface-hover); color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-bright { background: var(--teal-bright); color: var(--navy); }
.btn-bright:hover { background: #fff; color: var(--navy); }
.btn:active { transform: translateY(1px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
  }
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 2rem; height: 2rem; flex: none; }
.brand-word {
  font: 700 1.2rem/1 var(--sans);
  letter-spacing: 0.14em;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 0.9rem/1 var(--sans);
  cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -5px; }
.menu-toggle-bars::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Mobile navigation: a panel under the header, opened by the toggle. */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.75rem var(--gutter) 1.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -28px rgba(15, 27, 42, 0.45);
  max-height: calc(100vh - 4.25rem);
  max-height: calc(100dvh - 4.25rem);
  overflow-y: auto;
}
.site-nav.is-open { display: block; }

.nav-list a {
  display: block;
  padding: 0.8rem 0.25rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.nav-list a:hover, .nav-list a.is-current { color: var(--teal-ink); }

.nav-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.nav-actions .btn-quiet { border-color: var(--line); }

@media (min-width: 64em) {
  .menu-toggle { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
  .nav-list { display: flex; gap: 1.25rem; }
  .nav-list a {
    padding: 0.4rem 0;
    border: 0;
    font-size: 0.92rem;
    color: var(--slate);
    background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
    transition: background-size 200ms var(--ease), color 160ms var(--ease);
  }
  .nav-list a:hover, .nav-list a.is-current { color: var(--ink); background-size: 100% 1px; }
  .nav-actions { display: flex; gap: 0.4rem; margin: 0; }
  .nav-actions .btn-quiet { border-color: transparent; }
}

/* ---------- Type ---------- */

.eyebrow {
  margin-bottom: 1.25rem;
  font: 600 0.78rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-ink);
}
.eyebrow-inv { color: var(--teal-bright); }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--teal-ink); }
.display.narrow { max-width: 22ch; }

.body-lg { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--slate); max-width: 38rem; }
.body { color: var(--slate); }
.fine { font-size: 0.9rem; color: var(--muted); }

.col-title {
  margin-bottom: 0.75rem;
  font: 650 1.15rem/1.3 var(--sans);
  letter-spacing: -0.005em;
}

.split {
  display: grid;
  gap: 1.25rem 4rem;
  align-items: end;
}
@media (min-width: 56em) {
  .split { grid-template-columns: 1.1fr 1fr; }
}

.section { padding: var(--section) 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero::before {
  /* Fine survey grid, fading out. Pure CSS, no image. */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 27, 42, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 27, 42, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
@media (min-width: 60em) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font: 600 0.8rem/1.2 var(--sans);
  color: var(--slate);
}
.pill-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-wash);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.35rem, 1.3rem + 4.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 14ch;
}
.lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem);
  color: var(--slate);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-note { margin-top: 1.5rem; font-size: 0.88rem; color: var(--muted); }
.hero-note abbr { text-decoration: none; font-weight: 600; color: var(--slate); }

@media (max-width: 26em) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Illustrative workspace panel */
.ws {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.ws-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px dashed var(--line);
}
.ws-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px dashed var(--amber);
  border-radius: 4px;
  background: var(--amber-wash);
  color: var(--amber);
  font: 700 0.7rem/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ws-sub { font-size: 0.78rem; color: var(--muted); }

.ws-body { padding: 1.1rem 1rem 1.25rem; display: grid; gap: 1.25rem; }
@media (min-width: 30em) {
  .ws-body { padding: 1.4rem 1.5rem 1.5rem; }
}
.ws-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
}
.ws-kicker { font-size: 0.78rem; color: var(--muted); }
.ws-name { font: 600 1.15rem/1.3 var(--sans); }
.ws-mods { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ws-mods li {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--teal-wash);
  color: var(--teal-ink);
  font-size: 0.72rem;
  font-weight: 600;
}
.ws-h {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-soft);
  font: 650 0.85rem/1.3 var(--sans);
}
.ws-count {
  margin-left: auto;
  font: 600 0.78rem/1 var(--mono);
  color: var(--muted);
}
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; flex: none; }
.dot-alert { background: var(--alert); }
.dot-soon { background: #c58a12; }

.ws-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "rec when" "what what";
  gap: 0.1rem 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.86rem;
}
.ws-list li:last-child { border-bottom: 0; }
.ws-list .rec { grid-area: rec; }
.ws-list .what { grid-area: what; color: var(--slate); }
.ws-list .when { grid-area: when; justify-self: end; }
@media (min-width: 30em) {
  .ws-list li { grid-template-columns: 4.6rem 1fr auto; grid-template-areas: "rec what when"; align-items: baseline; }
}

.rec {
  font: 600 0.74rem/1.4 var(--mono);
  color: var(--muted);
  letter-spacing: 0.02em;
}
.when { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.when-alert { color: var(--alert); font-weight: 600; }

.ws-caption {
  padding: 0.75rem 1rem 0.9rem;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

/* Restrained entrance; skipped entirely when reduced motion is requested. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 640ms var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .hero-copy > :nth-child(5) { animation-delay: 240ms; }
  .ws { animation: rise 760ms 200ms var(--ease) both; }
  .ws-list li { animation: fade 500ms var(--ease) both; }
  .ws-list li:nth-child(1) { animation-delay: 520ms; }
  .ws-list li:nth-child(2) { animation-delay: 600ms; }
  .ws-list li:nth-child(3) { animation-delay: 680ms; }
  .ws-list li:nth-child(4) { animation-delay: 760ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Overview principles ---------- */

.overview { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principles {
  display: grid;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--ink);
}
.principles li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.25rem 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.principles h3 { font: 650 1.1rem/1.35 var(--sans); }
.principles p { grid-column: 2; color: var(--slate); font-size: 0.98rem; }
.principle-no { grid-row: span 2; font: italic 500 1.4rem/1.2 var(--serif); color: var(--teal-ink); }
@media (min-width: 52em) {
  .principles { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .principles li { grid-template-columns: 1fr; padding: 1.75rem 2rem 2rem 0; border-bottom: 0; }
  .principles li + li { padding-left: 2rem; border-left: 1px solid var(--line); }
  .principles p { grid-column: auto; }
  .principle-no { grid-row: auto; margin-bottom: 0.75rem; }
}

/* ---------- Who it's for ---------- */

.who-rows { margin-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--ink); }
.who-row {
  display: grid;
  gap: 0.5rem 3rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 200ms var(--ease);
}
.who-label {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.2;
}
.who-row p { color: var(--slate); max-width: 40rem; }
@media (min-width: 52em) {
  .who-row { grid-template-columns: minmax(14rem, 0.8fr) 1.4fr; align-items: baseline; padding: 2rem 0; }
}

/* ---------- Work-order flow (dark band) ---------- */

.flow { background: var(--navy); color: var(--on-navy); }
.flow .display { color: #fff; }
.flow .body-lg { color: var(--on-navy-muted); }

.steps {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: clamp(3rem, 7vw, 4.5rem);
  counter-reset: none;
}
.step {
  position: relative;
  padding: 0 0 2rem 3.5rem;
}
.step::before {
  /* vertical rail on small screens */
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--navy-line);
}
.step:last-child::before { display: none; }
.step-code {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.2rem; height: 2.2rem;
  border: 1px solid var(--navy-line);
  border-radius: 50%;
  background: var(--navy-2);
  font: 600 0.75rem/1 var(--mono);
  color: var(--teal-bright);
}
.step h3 { font: 650 1.1rem/1.3 var(--sans); color: #fff; padding-top: 0.3rem; }
.step p { margin-top: 0.4rem; color: var(--on-navy-muted); font-size: 0.96rem; max-width: 30rem; }

@media (min-width: 60em) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .step { padding: 3.5rem 0 0; }
  .step::before { left: 2.6rem; right: -1.5rem; top: 1.1rem; bottom: auto; width: auto; height: 1px; }
  .step:last-child::before { display: block; right: 0; background: linear-gradient(to right, var(--navy-line), transparent); }
  .step:hover .step-code { border-color: var(--teal-bright); }
  .step-code { transition: border-color 200ms var(--ease); }
}

/* ---------- Stock & renewals ---------- */

.stock-grid {
  display: grid;
  gap: 3.5rem 4rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 58em) {
  .stock-grid { grid-template-columns: 1fr 1fr; }
}
.stock-col > p { color: var(--slate); max-width: 34rem; }

.ledger, .horizon {
  margin-top: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ledger-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px dashed var(--line);
}
.ledger-item { font: 600 0.88rem/1.3 var(--sans); }
.ledger table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.ledger th {
  padding: 0.6rem 1rem;
  text-align: left;
  font: 600 0.7rem/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.ledger td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--line-soft); color: var(--slate); }
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger .num { text-align: right; font: 600 0.88rem/1.3 var(--mono); }
.ledger .pos { color: var(--teal-ink); }
.ledger .neg { color: var(--slate); }
@media (max-width: 24em) {
  .ledger th, .ledger td { padding-left: 0.7rem; padding-right: 0.7rem; }
}

.horizon-bands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.band { padding: 1rem; display: grid; gap: 0.2rem; }
.band + .band { border-left: 1px solid var(--line-soft); }
.band-n { font: 500 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1 var(--serif); }
.band-l { font-size: 0.78rem; color: var(--muted); line-height: 1.3; }
.band-over { background: var(--alert-wash); }
.band-over .band-n { color: var(--alert); }
.band-soon { background: var(--amber-wash); }
.band-soon .band-n { color: var(--amber); }
.band-ok .band-n { color: var(--teal-ink); }

.horizon-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.88rem;
  color: var(--slate);
}
.horizon-list li:last-child { border-bottom: 0; }
.horizon-list .when { margin-left: auto; }

/* ---------- Module explorer ---------- */

.explorer { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.tabs { margin-top: clamp(2.5rem, 6vw, 3.5rem); }

.tablist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
}
.tablist[hidden] { display: none; }
@media (min-width: 44em) {
  .tablist { display: inline-grid; grid-template-columns: repeat(6, auto); }
}
[role="tab"] {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--slate);
  font: 600 0.92rem/1.2 var(--sans);
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
[role="tab"]:hover { background: var(--surface-hover); color: var(--ink); }
[role="tab"][aria-selected="true"] { background: var(--navy); color: #fff; }

.panel {
  display: grid;
  gap: 1.5rem 3rem;
  margin-top: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 4px; }
@media (min-width: 52em) {
  .panel { grid-template-columns: 1.5fr 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .panel { animation: fade 260ms var(--ease) both; }
}
.panel-title { font: 500 clamp(1.5rem, 1.2rem + 1.2vw, 2rem)/1.15 var(--serif); margin-bottom: 0.5rem; }
.panel-main > p { color: var(--slate); max-width: 34rem; }

.ticks { margin-top: 1.25rem; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 1.75rem; color: var(--ink); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.1rem; top: 0.42em;
  width: 0.85rem; height: 0.5rem;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.panel-side {
  align-self: start;
  padding: 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  font-size: 0.93rem;
  color: var(--slate);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font: 700 0.75rem/1.3 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; }
.status-live { color: var(--teal-ink); }
.status-live::before { background: var(--teal); }
.status-pilot { color: var(--amber); }
.status-pilot::before { background: #c58a12; }
.side-h { font-weight: 650; color: var(--ink); margin-bottom: 0.25rem; }

/* ---------- Workspaces ---------- */

.spaces-diagram {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  align-items: stretch;
}
@media (min-width: 52em) {
  .spaces-diagram { grid-template-columns: 1fr auto 1fr; gap: 0 1.5rem; }
  .spaces-diagram .ws-caption { grid-column: 1 / -1; }
}
.space {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.space-business { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.space-type {
  font: 700 0.72rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-ink);
}
.space-business .space-type { color: var(--teal-bright); }
.space-name { margin-top: 0.35rem; font: 500 1.6rem/1.2 var(--serif); }
.space-people { margin-top: 1.25rem; font-size: 0.88rem; color: var(--muted); }
.space-business .space-people { color: var(--on-navy-muted); }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; }
.chip {
  padding: 0.3rem 0.7rem;
  border: 1px dashed var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(86, 97, 112, 0.5);
}
.chip.on {
  border-style: solid;
  border-color: var(--teal);
  background: var(--teal-wash);
  color: var(--teal-ink);
  font-weight: 600;
  text-decoration: none;
}
.space-business .chip { border-color: var(--navy-line); color: var(--on-navy-muted); text-decoration-color: rgba(179, 192, 207, 0.5); }
.space-business .chip.on { border-color: var(--teal-bright); background: rgba(94, 234, 212, 0.12); color: var(--teal-bright); }

.space-divider {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 2.5rem;
}
.space-divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 2px dashed var(--line);
}
.space-divider span {
  position: relative;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--canvas);
  font: 600 0.72rem/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 52em) {
  .space-divider::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed var(--line); }
  .space-divider span { writing-mode: vertical-rl; transform: rotate(180deg); padding: 0.75rem 0.3rem; }
}
.spaces-diagram .ws-caption { border-top: 0; padding: 0.75rem 0 0; }

.roles { margin-top: clamp(3rem, 7vw, 4.5rem); }
.role-list { display: grid; border-top: 1px solid var(--ink); }
.role-list > div {
  display: grid;
  gap: 0.15rem 2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.role-list dt { font-weight: 650; }
.role-list dd { color: var(--slate); }
@media (min-width: 44em) {
  .role-list > div { grid-template-columns: 12rem 1fr; }
}
.roles .fine { margin-top: 1rem; }

/* ---------- Limits ---------- */

.limits { background: var(--paper); border-top: 1px solid var(--line); }
.limits-grid {
  display: grid;
  gap: 2rem 3rem;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}
@media (min-width: 52em) {
  .limits-grid { grid-template-columns: repeat(3, 1fr); }
}
.limits-grid > div { padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.crosses { display: grid; gap: 0.6rem; }
.crosses li { position: relative; padding-left: 1.6rem; color: var(--slate); }
.crosses li::before, .crosses li::after {
  content: "";
  position: absolute;
  left: 0.2rem; top: 0.78em;
  width: 0.8rem; height: 2px;
  background: var(--alert);
  transform: rotate(45deg);
}
.crosses li::after { transform: rotate(-45deg); }
.crosses-soft li::before { transform: none; background: var(--amber); }
.crosses-soft li::after { display: none; }

/* ---------- Pilot ---------- */

.pilot { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.pilot::after {
  content: "";
  position: absolute;
  right: -10rem; top: -10rem;
  width: 32rem; height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.16), transparent 65%);
  pointer-events: none;
}
.pilot .display { color: #fff; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem); }
.pilot .body-lg { margin-top: 1rem; color: var(--on-navy-muted); }
.pilot-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem 5rem;
  align-items: end;
}
@media (min-width: 58em) {
  .pilot-inner { grid-template-columns: 1.4fr 1fr; }
}
.pilot-steps {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
  counter-reset: pilot;
}
.pilot-steps li {
  position: relative;
  padding-left: 2.6rem;
  color: var(--on-navy-muted);
  counter-increment: pilot;
}
.pilot-steps li::before {
  content: counter(pilot, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.1rem;
  font: 600 0.8rem/1.6 var(--mono);
  color: var(--teal-bright);
}
.pilot-steps strong { color: #fff; font-weight: 650; }
.fine-inv { margin-top: 1.75rem; color: var(--on-navy-muted); }

.pilot-cta {
  padding: 1.75rem;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  background: var(--navy-2);
}
.pilot-cta .btn { width: 100%; }
.pilot-mail { margin-top: 1rem; font-size: 0.88rem; color: var(--on-navy-muted); }
.pilot-signin { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--navy-line); font-size: 0.92rem; color: var(--on-navy-muted); }
.pilot a:not(.btn) { color: var(--teal-bright); overflow-wrap: anywhere; }
.pilot a:not(.btn):hover { color: #fff; }
.pilot :focus-visible { outline-color: var(--teal-bright); }

/* ---------- FAQ ---------- */

.faq-inner { display: grid; gap: 2.5rem 5rem; }
@media (min-width: 58em) {
  .faq-inner { grid-template-columns: 1fr 1.6fr; }
}
.faq .body { margin-top: 1rem; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  display: block;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font: 600 1.02rem/1.4 var(--sans);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0.4rem; top: 50%;
  width: 0.6rem; height: 0.6rem;
  margin-top: -0.4rem;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
  transition: transform 200ms var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -0.1rem; }
.faq-list summary:hover { color: var(--teal-ink); }
.faq-list details p { padding: 0 2.5rem 1.25rem 0; color: var(--slate); }

/* ---------- Footer ---------- */

.site-footer { padding: 4rem 0 2.5rem; border-top: 1px solid var(--line); background: var(--canvas); }
.footer-inner { display: grid; gap: 2.5rem; }
@media (min-width: 52em) {
  .footer-inner { grid-template-columns: 1fr 1.2fr; }
  .footer-legal { grid-column: 1 / -1; }
}
.footer-brand p:last-child { margin-top: 1rem; color: var(--slate); font-size: 0.93rem; }
.brand-footer { margin-right: 0; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.footer-nav li + li { margin-top: 0.5rem; }
.footer-nav a { color: var(--slate); text-decoration: none; font-size: 0.93rem; overflow-wrap: anywhere; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }

/* ---------- Privacy / simple pages ---------- */

.doc { padding: clamp(3rem, 8vw, 5rem) 0 var(--section); }
.doc-inner { max-width: 44rem; }
.doc h1 { font: 500 clamp(2.2rem, 1.5rem + 3vw, 3.4rem)/1.1 var(--serif); letter-spacing: -0.015em; }
.doc .updated { margin-top: 0.75rem; color: var(--muted); font-size: 0.92rem; }
.doc h2 { margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font: 650 1.2rem/1.35 var(--sans); }
.doc p, .doc ul { margin-top: 0.9rem; color: var(--slate); }
.doc ul { display: grid; gap: 0.45rem; }
.doc ul li { position: relative; padding-left: 1.25rem; }
.doc ul li::before { content: ""; position: absolute; left: 0.1rem; top: 0.7em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--teal); }
.doc .callout {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.doc .back { display: inline-block; margin-top: 3rem; }

.simple-header .header-inner { justify-content: space-between; }
.simple-header .brand { margin-right: 0; }
.simple-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 26em) {
  .simple-actions .btn-quiet { display: none; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .menu-toggle, .skip-link { display: none; }
  .tablist { display: none !important; }
  .panel[hidden] { display: grid !important; }
  .flow, .pilot, .space-business { background: #fff; color: #000; }
  .flow *, .pilot *, .space-business * { color: #000 !important; }
  .hero::before, .pilot::after { display: none; }
}
