/* ============================================================
   CalShield WVPP — operator console for compliance
   Design tokens + base styles
   ============================================================ */

:root {
  /* Surfaces */
  --paper: #ffffff;
  --bg: #f4f6f7;
  --bg-2: #eaeff0;
  --panel: #ffffff;

  /* Ink */
  --ink: #15211f;
  --ink-2: #4a5a5c;
  --ink-3: #7c8b8c;
  --ink-inv: #eef4f3;

  /* Hairlines */
  --line: #e1e8e8;
  --line-2: #d3dcdc;

  /* Brand — graphite + golden poppy (BRAND.md) */
  --teal-900: #202a2f;
  --teal-800: #2c393f;
  --teal-700: #3a4a52;
  --teal-600: #4a5d66;
  --teal-500: #5c727c;
  --teal-100: #dbe1e4;
  --teal-50:  #eef1f2;
  --gold: #e8a13d;
  --accent: var(--teal-700);
  --accent-hover: var(--teal-800);
  --accent-tint: var(--teal-50);
  --accent-ink: #ffffff;

  /* Status — semantic only */
  --good: #16805b;
  --good-bg: #e7f4ee;
  --good-line: #bfe2d2;
  --warn: #a85a06;
  --warn-bg: #fbf0e1;
  --warn-line: #f0d6ad;
  --bad: #bd3a2d;
  --bad-bg: #fbece9;
  --bad-line: #f1cdc7;
  --info: #1f5fa8;
  --info-bg: #e9f1fa;

  /* Type */
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 13px;
  --r-lg: 18px;
  --r-xl: 26px;

  /* Shadow — soft, low */
  --sh-sm: 0 1px 2px rgba(13, 38, 35, .05), 0 1px 1px rgba(13, 38, 35, .04);
  --sh-md: 0 6px 18px -6px rgba(13, 38, 35, .12), 0 2px 6px -2px rgba(13, 38, 35, .06);
  --sh-lg: 0 26px 60px -22px rgba(8, 40, 36, .30), 0 10px 26px -14px rgba(8, 40, 36, .18);
  --sh-xl: 0 50px 110px -34px rgba(6, 34, 30, .40), 0 18px 44px -20px rgba(6, 34, 30, .22);

  /* Layout */
  --maxw: 1200px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 1, "cv01" 1;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--teal-100); color: var(--teal-900); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(52px, 7vw, 92px); }
.bg-gray { background: var(--bg); }
.bg-ink { background: var(--teal-900); color: var(--ink-inv); }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}
.bg-ink .eyebrow { color: var(--teal-100); }
.bg-ink .eyebrow::before { background: var(--teal-500); }

.sec-head { max-width: 720px; }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head h2 {
  font-size: clamp(28px, 3.6vw, 43px);
  letter-spacing: -0.028em;
}
.sec-head p {
  margin-top: 18px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.bg-ink .sec-head p { color: #b9cbc8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em;
  padding: 13px 20px; border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--sh-sm); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 16px 26px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn--on-ink { background: #fff; color: var(--teal-900); }
.btn--on-ink:hover { background: var(--teal-50); transform: translateY(-1px); }
.btn--ghost-ink { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.btn--ghost-ink:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* ---------- Chips / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .04em; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2); background: var(--paper);
}
.status {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; letter-spacing: -0.005em;
  padding: 3px 9px 3px 8px; border-radius: 999px; border: 1px solid;
}
.status .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.status--good { color: var(--good); background: var(--good-bg); border-color: var(--good-line); }
.status--good .dot { background: var(--good); }
.status--warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.status--warn .dot { background: var(--warn); }
.status--bad { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-line); }
.status--bad .dot { background: var(--bad); }
.status--neutral { color: var(--ink-2); background: var(--bg); border-color: var(--line-2); }
.status--neutral .dot { background: var(--ink-3); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  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 .2s, box-shadow .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-sm); }
.nav { display: flex; align-items: center; gap: 28px; height: 66px; }
.nav__links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav__links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .15s; white-space: nowrap; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 12px; }

/* Brand mark */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.brand__name b { color: var(--accent); font-weight: 700; }
.brand__name span { color: var(--ink-3); font-weight: 600; font-size: 12.5px; font-family: var(--mono); letter-spacing: .02em; margin-left: 2px; }

.nav__menu-btn { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(50px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 520px at 78% -8%, var(--teal-50), transparent 60%),
    linear-gradient(180deg, #fbfdfc 0%, #ffffff 40%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 60px); align-items: center;
}
.hero__copy { max-width: 560px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px; white-space: nowrap;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 500; color: var(--ink-2); box-shadow: var(--sh-sm);
}
.hero__badge b { color: var(--accent); font-weight: 700; }
.hero__badge .tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em;
  background: var(--teal-900); color: #fff; padding: 3px 7px; border-radius: 5px;
}
.hero h1 {
  font-size: clamp(36px, 5.1vw, 60px);
  letter-spacing: -0.035em; line-height: 1.03;
}
.hero h1 .accent { color: var(--accent); }
.hero__lede {
  margin-top: 22px; font-size: clamp(17px, 1.55vw, 19.5px);
  color: var(--ink-2); max-width: 50ch; text-wrap: pretty;
}
.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 13px; }
.hero__assure {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 13.5px; color: var(--ink-3);
}
.hero__assure li { display: inline-flex; align-items: center; gap: 7px; }
.hero__assure svg { width: 15px; height: 15px; color: var(--good); flex: none; }

/* layout variant: centered */
body[data-hero="centered"] .hero__grid { grid-template-columns: 1fr; text-align: center; gap: 48px; }
body[data-hero="centered"] .hero__copy { max-width: 760px; margin-inline: auto; }
body[data-hero="centered"] .hero__lede { margin-inline: auto; }
body[data-hero="centered"] .hero__cta,
body[data-hero="centered"] .hero__assure { justify-content: center; }
body[data-hero="centered"] .hero__badge { margin-inline: auto; }
body[data-hero="centered"] .hero__stage { max-width: 1000px; margin-inline: auto; }

/* ============================================================
   APP MOCKUP (the interactive demo)
   ============================================================ */
.app {
  --rail-w: 198px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  overflow: hidden;
  position: relative;
}
.hero__stage { position: relative; }
.hero__stage .app { transform: perspective(2200px) rotateY(-0.6deg); }
body[data-hero="centered"] .hero__stage .app { transform: none; }

/* float accents behind app */
.hero__stage::after {
  content: ""; position: absolute; inset: -6% -4% -10% -4%; z-index: -1;
  background: radial-gradient(60% 60% at 70% 30%, rgba(15,107,97,.10), transparent 70%);
  filter: blur(8px);
}

/* window chrome */
.app__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fafcfb, #f5f8f7);
}
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dde4e3; display: block; }
.app__sitepick {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2);
  padding: 5px 10px; border-radius: var(--r-xs);
}
.app__sitepick svg { width: 14px; height: 14px; color: var(--accent); }
.app__sitepick .chev { color: var(--ink-3); width: 13px; height: 13px; }
.app__search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-3); background: var(--bg);
  border: 1px solid var(--line); padding: 6px 10px; border-radius: var(--r-xs); min-width: 180px;
}
.app__search svg { width: 14px; height: 14px; }
.app__avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--teal-700); color: #fff; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; font-family: var(--mono);
}

.app__body { display: grid; grid-template-columns: var(--rail-w) minmax(0,1fr); min-height: 470px; }

/* left rail */
.rail { border-right: 1px solid var(--line); padding: 14px 12px; background: #fbfcfc; }
.rail__group { margin-bottom: 16px; }
.rail__label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 0 8px 8px; }
.rail__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 9px; border-radius: var(--r-xs); border: 1px solid transparent;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  background: transparent; text-align: left; transition: all .14s;
}
.rail__item svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); transition: color .14s; }
.rail__item span:not(.count) { white-space: nowrap; }
.rail__item .count {
  margin-left: auto; font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  color: var(--ink-3); background: var(--bg-2); padding: 1px 6px; border-radius: 999px;
}
.rail__item .count.alert { color: var(--bad); background: var(--bad-bg); }
.rail__item:hover { background: var(--bg); color: var(--ink); }
.rail__item.is-active { background: var(--teal-50); color: var(--teal-800); border-color: var(--teal-100); font-weight: 600; }
.rail__item.is-active svg { color: var(--accent); }

/* main panel */
.panel { padding: 20px 22px; overflow: hidden; min-width: 0; }
.panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel__title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.panel__sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.panel__view { display: none; }
.panel__view.is-active { display: block; }

/* readiness view */
.readiness { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 22px; }
.ring-card { display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 14px; background: var(--bg); }
.ring { position: relative; width: 138px; height: 138px; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring__track { fill: none; stroke: var(--bg-2); stroke-width: 12; }
.ring__bar { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round;
  transition: stroke-dashoffset 1.1s cubic-bezier(.2,.7,.2,1); }
.ring__num { position: absolute; inset: 0; display: grid; place-items: center; }
.ring__num b { font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.ring__num b sup { font-size: 15px; color: var(--ink-3); top: -1.1em; }
.ring-card__label { margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--good); display: flex; align-items: center; gap: 6px; }
.ring-card__sub { font-size: 11px; color: var(--ink-3); font-family: var(--mono); margin-top: 3px; }

.bars { display: grid; gap: 13px; align-content: start; }
.bar__row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.bar__name { font-size: 13px; font-weight: 500; }
.bar__val { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.bar__track { grid-column: 1 / -1; height: 7px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.bar__fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); width: 0; }
.bar__fill.warn { background: var(--warn); }
.bar__fill.bad { background: var(--bad); }

/* generic data table */
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable th { text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding: 0 10px 9px; border-bottom: 1px solid var(--line); }
.dtable td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dtable tr:last-child td { border-bottom: none; }
.dtable .nm { font-weight: 600; color: var(--ink); }
.dtable .muted { color: var(--ink-3); }
.dtable .mono { font-family: var(--mono); font-size: 12px; }
.dtable .ava { width: 24px; height: 24px; border-radius: 50%; background: var(--teal-600); color: #fff;
  display: inline-grid; place-items: center; font-size: 9.5px; font-weight: 700; font-family: var(--mono); margin-right: 8px; vertical-align: middle; }

/* checklist */
.checklist { display: grid; gap: 9px; }
.check {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
}
.check__box { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.check__box svg { width: 13px; height: 13px; }
.check__box.done { background: var(--good-bg); color: var(--good); }
.check__box.warn { background: var(--warn-bg); color: var(--warn); }
.check__box.bad { background: var(--bad-bg); color: var(--bad); }
.check__txt { font-size: 13.5px; font-weight: 500; }
.check__meta { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; font-family: var(--mono); }
.check__right { margin-left: auto; }

/* mini cards row */
.mini-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-bottom: 16px; }
.mini { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 13px; background: var(--paper); }
.mini__k { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.mini__v { font-family: var(--mono); font-size: 23px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }
.mini__d { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }

/* audit trail */
.trail { position: relative; padding-left: 18px; }
.trail::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 1.5px; background: var(--line-2); }
.trail__item { position: relative; padding: 0 0 15px 16px; }
.trail__item::before { content: ""; position: absolute; left: -18px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--paper); box-shadow: 0 0 0 1.5px var(--teal-100); }
.trail__top { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.trail__act { font-size: 13px; font-weight: 600; }
.trail__id { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.trail__meta { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.trail__meta b { font-weight: 600; color: var(--ink); }
.trail__time { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* lang tags */
.langs { display: inline-flex; gap: 4px; }
.lang { font-family: var(--mono); font-size: 9.5px; font-weight: 600; padding: 1px 5px; border-radius: 4px; background: var(--bg-2); color: var(--ink-2); }
.lang.on { background: var(--teal-50); color: var(--teal-700); }

/* ============================================================
   BURDEN section (the recurring workflow / pain)
   ============================================================ */
.burden__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: 46px; }
.burden__list { display: grid; gap: 2px; }
.burden__item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.burden__item:last-child { border-bottom: none; }
.burden__idx { font-family: var(--mono); font-size: 12px; color: var(--ink-3); font-weight: 500; padding-top: 2px; min-width: 26px; }
.burden__item h4 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.burden__item p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.burden__panel {
  background: var(--teal-900); color: var(--ink-inv); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--sh-lg);
}
.burden__panel h3 { font-size: 20px; color: #fff; line-height: 1.2; }
.burden__panel > p { color: #b9cbc8; font-size: 14.5px; margin-top: 12px; }
.burden__stats { display: grid; gap: 14px; margin-top: 22px; }
.bstat { border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }
.bstat b { font-family: var(--mono); font-size: 27px; font-weight: 600; color: var(--teal-100); letter-spacing: -0.02em; }
.bstat span { display: block; font-size: 13px; color: #a9bdba; margin-top: 2px; }

/* ============================================================
   WORKFLOW — 5 steps
   ============================================================ */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 48px; position: relative; }
.flow__step { position: relative; padding: 0 16px; }
.flow__step:not(:last-child)::after {
  content: ""; position: absolute; top: 19px; right: -10px; width: 20px; height: 1.5px; background: var(--line-2);
}
.flow__step:not(:last-child)::before {
  content: ""; position: absolute; top: 15px; right: -13px; width: 7px; height: 7px;
  border-top: 1.5px solid var(--line-2); border-right: 1.5px solid var(--line-2); transform: rotate(45deg); z-index: 1;
}
.flow__num {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line-2); font-family: var(--mono);
  font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 16px; box-shadow: var(--sh-sm);
}
.flow__step h4 { font-size: 16px; font-weight: 600; }
.flow__step p { font-size: 13.5px; color: var(--ink-2); margin-top: 7px; text-wrap: pretty; }
.flow__tag { display: inline-block; margin-top: 11px; font-family: var(--mono); font-size: 10.5px;
  color: var(--accent); letter-spacing: .03em; }

/* ============================================================
   FEATURES
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.feat {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px;
  background: var(--paper); transition: border-color .18s, box-shadow .18s, transform .18s; position: relative;
}
.feat:hover { border-color: var(--teal-100); box-shadow: var(--sh-md); transform: translateY(-2px); }
.feat__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-50);
  color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.feat__icon svg { width: 20px; height: 20px; }
.feat__idx { position: absolute; top: 20px; right: 20px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.feat h4 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.012em; }
.feat p { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; text-wrap: pretty; }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.ind-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 44px; }
.ind {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 14px; background: var(--paper);
  text-align: center; transition: all .16s;
}
.ind:hover { background: var(--teal-900); border-color: var(--teal-900); transform: translateY(-3px); }
.ind__icon { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--accent); display: grid; place-items: center; }
.ind__icon svg { width: 26px; height: 26px; }
.ind:hover .ind__icon { color: var(--teal-100); }
.ind h4 { font-size: 13.5px; font-weight: 600; }
.ind:hover h4 { color: #fff; }
.ind p { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.ind:hover p { color: #9fb6b3; }

/* ============================================================
   PRICING
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; align-items: stretch; }
.price {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px;
  background: var(--paper); display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, transform .2s;
}
.price:hover { box-shadow: var(--sh-md); }
.price.is-featured { border-color: var(--teal-700); box-shadow: var(--sh-lg); transform: scale(1.015); }
.price__flag { position: absolute; top: -12px; left: 26px; font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; background: var(--teal-700); color: #fff; padding: 4px 11px; border-radius: 999px; }
.price__name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.price__desc { font-size: 13px; color: var(--ink-3); margin-top: 4px; min-height: 34px; }
.price__amt { margin-top: 18px; display: flex; align-items: baseline; gap: 4px; }
.price__amt b { font-family: var(--mono); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; }
.price__amt span { font-size: 13.5px; color: var(--ink-3); }
.price__limits { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.price__limits .pill { font-size: 11px; }
.price ul.feats { display: grid; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); flex: 1; }
.price ul.feats li { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); align-items: flex-start; }
.price ul.feats svg { width: 16px; height: 16px; color: var(--good); flex: none; margin-top: 2px; }
.price .btn { margin-top: 22px; }

/* pricing layout variant: stacked rows */
body[data-pricing="rows"] .price-grid { grid-template-columns: 1fr; gap: 14px; }
body[data-pricing="rows"] .price { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 20px; padding: 22px 26px; }
body[data-pricing="rows"] .price.is-featured { transform: none; }
body[data-pricing="rows"] .price__name-block { min-width: 200px; }
body[data-pricing="rows"] .price__amt { margin-top: 0; min-width: 150px; }
body[data-pricing="rows"] .price ul.feats { grid-template-columns: repeat(2, 1fr); border: none; padding-top: 0; margin-top: 0; min-width: 280px; }
body[data-pricing="rows"] .price .btn { margin-top: 0; margin-left: auto; }
body[data-pricing="rows"] .price__flag { top: 50%; transform: translateY(-50%); left: auto; right: 26px; }

/* assisted setup band */
.assist {
  margin-top: 22px; border: 1px dashed var(--line-2); border-radius: var(--r-lg);
  padding: 24px 28px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--bg);
}
.assist__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--accent); flex: none; }
.assist__icon svg { width: 24px; height: 24px; }
.assist__txt h4 { font-size: 16.5px; font-weight: 700; }
.assist__txt p { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; max-width: 60ch; }
.assist__price { margin-left: auto; text-align: right; }
.assist__price b { font-family: var(--mono); font-size: 22px; font-weight: 600; }
.assist__price span { display: block; font-size: 12px; color: var(--ink-3); }
.founding { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 13.5px; color: var(--ink-2);
  background: var(--teal-50); border: 1px solid var(--teal-100); padding: 9px 14px; border-radius: 999px; }
.founding svg { width: 16px; height: 16px; color: var(--accent); }

/* ============================================================
   TRUST / DISCLAIMER
   ============================================================ */
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.trust__card { border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-md); padding: 24px; background: rgba(255,255,255,.04); }
.trust__card .ic { width: 34px; height: 34px; color: var(--teal-100); margin-bottom: 14px; }
.trust__card .ic svg { width: 100%; height: 100%; }
.trust__card h4 { font-size: 16px; color: #fff; font-weight: 600; }
.trust__card p { font-size: 13.5px; color: #acc0bd; margin-top: 8px; text-wrap: pretty; }
.disclaimer { margin-top: 32px; font-size: 12.5px; color: #8ea5a2; max-width: 70ch; line-height: 1.6; font-family: var(--mono); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.finalcta { text-align: center; }
.finalcta h2 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.03em; max-width: 18ch; margin-inline: auto; }
.finalcta p { margin-top: 18px; font-size: 18px; color: var(--ink-2); }
.finalcta .hero__cta { justify-content: center; margin-top: 32px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: 44px 36px; background: var(--bg); }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { max-width: 280px; }
.footer__brand p { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__col h5 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-weight: 500; }
.footer__col a { display: block; font-size: 13.5px; color: var(--ink-2); padding: 5px 0; transition: color .14s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }

/* ============================================================
   MODAL — sample audit packet
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__scrim { position: absolute; inset: 0; background: rgba(8, 28, 26, .52); backdrop-filter: blur(3px); }
.modal__dialog {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(880px, 94vw); max-height: 92vh; background: var(--bg-2); border-radius: var(--r-lg);
  box-shadow: var(--sh-xl); display: flex; flex-direction: column; overflow: hidden;
}
.modal__bar { display: flex; align-items: center; gap: 12px; padding: 13px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
.modal__bar .ttl { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.modal__bar .ttl svg { width: 17px; height: 17px; color: var(--accent); }
.modal__bar .pill { margin-left: 4px; }
.modal__actions { margin-left: auto; display: flex; gap: 8px; }
.modal__close { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--paper); display: grid; place-items: center; color: var(--ink-2); }
.modal__close:hover { background: var(--bg); color: var(--ink); }
.modal__close svg { width: 16px; height: 16px; }
.modal__scroll { overflow-y: auto; padding: 26px; }

/* the document "paper" */
.doc { background: #fff; max-width: 720px; margin-inline: auto; box-shadow: var(--sh-md); border: 1px solid var(--line); }
.doc__page { padding: 44px 50px; }
.doc__page + .doc__page { border-top: 8px solid var(--bg-2); }
.doc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.doc__head .org h3 { font-size: 19px; letter-spacing: -0.02em; }
.doc__head .org p { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.doc__head .meta { text-align: right; font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); line-height: 1.7; }
.doc__seal { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 12px; border: 1.5px solid var(--good); border-radius: var(--r-sm); color: var(--good); background: var(--good-bg); }
.doc__seal svg { width: 18px; height: 18px; }
.doc__seal b { font-size: 13px; }
.doc__seal span { font-family: var(--mono); font-size: 10px; }
.doc h4.doc__sh { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 26px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.doc__kv { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 24px; }
.doc__kv .row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 5px 0; border-bottom: 1px dotted var(--line-2); }
.doc__kv .row .k { color: var(--ink-2); }
.doc__kv .row .v { font-weight: 600; font-family: var(--mono); font-size: 11.5px; }
.doc table.doc__tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 4px; }
.doc table.doc__tbl th { background: var(--bg); text-align: left; padding: 7px 9px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); }
.doc table.doc__tbl td { padding: 7px 9px; border: 1px solid var(--line); }
.doc table.doc__tbl .mono { font-family: var(--mono); font-size: 10.5px; }
.doc__foot { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); display: flex; justify-content: space-between; }

/* ============================================================
   Reveal — content is always visible (no transition-dependent hiding,
   which can leave content blank in reduced-motion / frozen contexts).
   ============================================================ */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(4, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); gap: 28px 0; }
  .flow__step:nth-child(3)::after, .flow__step:nth-child(3)::before { display: none; }
}
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { max-width: 640px; }
  .burden__grid { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price.is-featured { transform: none; }
  body[data-pricing="rows"] .price { flex-direction: column; align-items: stretch; }
  body[data-pricing="rows"] .price .btn { margin-left: 0; }
  body[data-pricing="rows"] .price__flag { position: static; transform: none; align-self: flex-start; margin-bottom: 6px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__menu-btn { display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto;
    border: 1px solid var(--line-2); border-radius: 9px; background: var(--paper); color: var(--ink); }
  .nav__menu-btn svg { width: 20px; height: 20px; }
  .nav__cta .btn--ghost { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow__step::after, .flow__step::before { display: none !important; }
  .flow__step { border-left: 1.5px solid var(--line); padding-left: 20px; }
  .app__search { display: none; }
  .app { --rail-w: 0px; }
  .rail { display: none; }
  .readiness { grid-template-columns: 1fr; }
  .mini-row { grid-template-columns: 1fr; }
  .hero__stage .app { transform: none !important; }
  .assist { flex-direction: column; align-items: flex-start; }
  .assist__price { margin-left: 0; text-align: left; }
  .doc__page { padding: 26px 22px; }
  .doc__kv { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .ind-grid { grid-template-columns: 1fr; }
  .mini-row { grid-template-columns: 1fr; }
}

/* ============================================================
   SB553Ready landing additions
   ============================================================ */

/* 6 feature cards -> 3-up grid */
.feat-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .feat-grid { grid-template-columns: 1fr; } }

/* annual price line under monthly amount */
.price__annual { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

/* pricing fine print */
.pricing-fine { margin-top: 26px; font-size: 13.5px; color: var(--ink-3); text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-top: 44px; display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); padding: 4px 22px;
  transition: border-color .18s, box-shadow .18s;
}
.faq-item[open] { border-color: var(--teal-100); box-shadow: var(--sh-sm); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 14px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  padding: 15px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--mono); font-size: 19px; font-weight: 400;
  color: var(--accent); flex: none; line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { font-size: 14.5px; color: var(--ink-2); padding-bottom: 18px; max-width: 64ch; }

/* long statute badge must wrap on small screens */
@media (max-width: 560px) {
  .hero__badge { white-space: normal; line-height: 1.4; padding: 7px 12px 7px 9px; }
}
@media (max-width: 460px) {
  .nav { gap: 12px; }
  .nav__cta .btn { padding: 10px 13px; font-size: 14px; }
}

/* ---------- Golden poppy brand accents (graphite + gold scheme) ---------- */
.eyebrow::before { background: var(--gold); }
.bg-ink .eyebrow::before { background: var(--gold); }
.hero__badge .tag { background: var(--gold); color: var(--teal-900); }
.bstat b { color: var(--gold); }
.price__flag { background: var(--gold); color: var(--teal-900); }
.trust__card .ic { color: var(--gold); }
