/* ==========================================================================
   MissionWoven marketing site
   Design system: tokens, primitives, components
   Brand: Teal #1D9E75 / Navy #0C447C / Playfair Display + DM Sans
   ========================================================================== */

/* 1. Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }

/* 2. Tokens, light (default) ---------------------------------------------- */
:root {
  --teal:        #1D9E75;
  --teal-deep:   #157A5A;
  --teal-bright: #34C79A;
  --navy:        #0C447C;
  --navy-deep:   #082E55;
  --mist:        #9FE1CB;
  --loom:        #E1F5EE;
  --navy-mist:   #B5D4F4;
  --ink:         #1A1A1A;
  --slate:       #5F5E5A;
  --parchment:   #F1EFE8;
  --amber:       #BA7517;
  --alert:       #A32D2D;
  --success:     #3B6D11;

  --bg:            #FFFFFF;
  --bg-subtle:     #F7FAF9;
  --bg-inset:      #F1F5F4;
  --surface:       #FFFFFF;
  --surface-raise: #FFFFFF;
  --border:        #E4EAE8;
  --border-strong: #D2DBD8;
  --text:          #14171A;
  --text-2:        #4E5A5F;
  --text-3:        #7C878C;
  --accent:        #147F5D;
  --accent-hover:  #106A4D;
  --accent-soft:   #E9F6F1;
  --accent-line:   rgba(29, 158, 117, 0.24);
  --on-accent:     #FFFFFF;
  --map-fill:      #E3EBE8;
  --map-stroke:    #FFFFFF;

  --deep:          #082E55;
  --deep-2:        #0C447C;
  --on-deep:       #EAF2F8;
  --on-deep-2:     #A9C2DA;

  --shadow-1: 0 1px 2px rgba(9, 30, 51, .05), 0 1px 3px rgba(9, 30, 51, .04);
  --shadow-2: 0 4px 10px rgba(9, 30, 51, .05), 0 12px 28px rgba(9, 30, 51, .07);
  --shadow-3: 0 8px 20px rgba(9, 30, 51, .07), 0 32px 64px rgba(9, 30, 51, .12);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono:  'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --r1: 6px; --r2: 10px; --r3: 14px; --r4: 20px; --r5: 28px;
  --container: 1180px;
  --nav-h: 68px;
}

/* 3. Tokens, dark --------------------------------------------------------- */
:root:not([data-theme="light"]) { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:            #08131F;
    --bg-subtle:     #0B1926;
    --bg-inset:      #0F2130;
    --surface:       #0E1E2C;
    --surface-raise: #132738;
    --border:        #1E3345;
    --border-strong: #2B4459;
    --text:          #E8F0F4;
    --text-2:        #A2B5C1;
    --text-3:        #718796;
    --accent:        #34C79A;
    --accent-hover:  #52DBB1;
    --accent-soft:   rgba(52, 199, 154, .10);
    --accent-line:   rgba(52, 199, 154, .26);
    --on-accent:     #052A1E;
    --map-fill:      #17303F;
    --map-stroke:    #0E1E2C;
    --deep:          #061726;
    --deep-2:        #0A2743;
    --on-deep:       #E8F0F4;
    --on-deep-2:     #93AEC4;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 4px 12px rgba(0, 0, 0, .38), 0 16px 32px rgba(0, 0, 0, .3);
    --shadow-3: 0 12px 28px rgba(0, 0, 0, .45), 0 40px 72px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:            #08131F;
  --bg-subtle:     #0B1926;
  --bg-inset:      #0F2130;
  --surface:       #0E1E2C;
  --surface-raise: #132738;
  --border:        #1E3345;
  --border-strong: #2B4459;
  --text:          #E8F0F4;
  --text-2:        #A2B5C1;
  --text-3:        #718796;
  --accent:        #34C79A;
  --accent-hover:  #52DBB1;
  --accent-soft:   rgba(52, 199, 154, .10);
  --accent-line:   rgba(52, 199, 154, .26);
  --on-accent:     #052A1E;
  --map-fill:      #17303F;
  --map-stroke:    #0E1E2C;
  --deep:          #061726;
  --deep-2:        #0A2743;
  --on-deep:       #E8F0F4;
  --on-deep-2:     #93AEC4;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, .38), 0 16px 32px rgba(0, 0, 0, .3);
  --shadow-3: 0 12px 28px rgba(0, 0, 0, .45), 0 40px 72px rgba(0, 0, 0, .4);
}

/* 4. Base ----------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "kern", "liga";
  transition: background-color .25s ease, color .25s ease;
}

::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 18px; border-radius: var(--r1); font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* 5. Typography ----------------------------------------------------------- */
.display, h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.018em; }
h1 { font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.1rem); line-height: 1.06; }
h2 { font-size: clamp(1.95rem, 1.25rem + 2.2vw, 2.9rem); line-height: 1.12; }
h3 { font-size: clamp(1.15rem, 1.02rem + .5vw, 1.4rem); line-height: 1.28; letter-spacing: -0.012em; }
h4, h5 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.005em; }
h4 { font-size: 1.02rem; line-height: 1.4; }

.lede {
  font-size: clamp(1.06rem, .99rem + .34vw, 1.24rem);
  line-height: 1.62; color: var(--text-2); font-weight: 400; max-width: 62ch;
}
.body-2 { color: var(--text-2); font-size: .96rem; line-height: 1.68; }
.small  { font-size: .87rem; color: var(--text-3); line-height: 1.6; }

.eyebrow {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: var(--s4);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); opacity: .55; }
.eyebrow.is-centered { justify-content: center; }
.text-accent { color: var(--accent); }
.serif-em { font-style: italic; font-weight: 500; }

/* 6. Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s5); }
.container-narrow { max-width: 760px; }

.section { padding-block: clamp(64px, 8vw, 116px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.section--subtle { background: var(--bg-subtle); }
.section--inset  { background: var(--bg-inset); }
.section--bordered { border-top: 1px solid var(--border); }

.section-head { max-width: 700px; margin-bottom: var(--s8); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head h2 + .lede { margin-top: var(--s4); }

.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: var(--s4); }
.rule { height: 1px; background: var(--border); border: 0; }

/* 7. The weave, the one signature graphic device -------------------------- */
.weave-line {
  height: 2px; width: 100%;
  background-image: repeating-linear-gradient(90deg, var(--accent-line) 0 22px, transparent 22px 44px);
  opacity: .8;
}
.weave-field {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(159,225,203,.13) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg,  rgba(159,225,203,.08) 0 1px, transparent 1px 46px);
  mask-image: radial-gradient(ellipse 90% 70% at 60% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 60% 30%, #000 0%, transparent 78%);
}

/* 8. Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: .935rem; font-weight: 600; letter-spacing: -0.006em;
  padding: 12px 22px; border-radius: var(--r2);
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { color: var(--text-2); padding-inline: 12px; }
.btn-ghost:hover { color: var(--accent); }
.btn-on-deep { background: rgba(255,255,255,.09); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-on-deep:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.btn-lg { padding: 15px 30px; font-size: 1rem; border-radius: var(--r2); }
.btn-sm { padding: 8px 15px; font-size: .86rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.btn-row.is-centered { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; font-size: .93rem; text-decoration: none;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* 9. Nav ------------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.nav.is-stuck { border-bottom-color: var(--border); }
.nav .container { display: flex; align-items: center; gap: var(--s6); }

.nav-brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.nav-brand img { height: 30px; width: auto; }
/* If a logo file is ever missing, the alt text renders as a styled wordmark
   instead of a broken-image icon. */
.nav-brand img, .footer-brand img {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
  letter-spacing: -.02em; color: var(--text); white-space: nowrap;
}

.nav-brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .nav-brand .logo-dark  { display: block; }
}
:root[data-theme="dark"] .nav-brand .logo-light { display: none; }
:root[data-theme="dark"] .nav-brand .logo-dark  { display: block; }
:root[data-theme="light"] .nav-brand .logo-light { display: block; }
:root[data-theme="light"] .nav-brand .logo-dark  { display: none; }

.nav-links { display: flex; align-items: center; gap: var(--s5); list-style: none; padding: 0; }
.nav-links a {
  font-size: .91rem; font-weight: 500; color: var(--text-2); text-decoration: none;
  padding: 6px 2px; position: relative; transition: color .18s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }

.theme-toggle {
  width: 34px; height: 34px; border-radius: var(--r1);
  display: grid; place-items: center; color: var(--text-2);
  border: 1px solid transparent; transition: background-color .18s, color .18s, border-color .18s;
}
.theme-toggle:hover { background: var(--bg-inset); color: var(--text); border-color: var(--border); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-burger { display: none; width: 34px; height: 34px; place-items: center; color: var(--text); }
.nav-burger svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .nav .container { gap: var(--s4); }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: var(--s3) var(--s5) var(--s5);
    box-shadow: var(--shadow-2); display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-burger { display: grid; }
  .nav-actions .btn { display: none; }
}

/* 10. Hero ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(168deg, var(--deep) 0%, #0A3763 52%, #0C447C 100%);
  color: var(--on-deep);
  padding-block: clamp(72px, 9vw, 124px) clamp(72px, 9vw, 116px);
  isolation: isolate;
}
.hero::after {
  content: ''; position: absolute; z-index: -1;
  width: 780px; height: 780px; right: -160px; top: -280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,158,117,.30) 0%, rgba(29,158,117,0) 68%);
}
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--mist); }
.hero .eyebrow::before { background: var(--mist); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 .serif-em { color: var(--teal-bright); font-style: italic; font-weight: 500; }
.hero-lede {
  color: var(--on-deep-2); max-width: 54ch; margin-top: var(--s5);
  font-size: clamp(1.06rem,.99rem + .4vw,1.22rem); line-height: 1.62;
}
.hero .btn-row { margin-top: var(--s7); }
.hero-note { margin-top: var(--s4); font-size: .85rem; color: rgba(169,194,218,.85); }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  margin-top: var(--s8); padding-top: var(--s5);
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-badges span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--on-deep-2); letter-spacing: .005em;
}
.hero-badges svg { width: 15px; height: 15px; color: var(--teal-bright); flex: none; }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  border: 1px solid var(--border); border-radius: var(--r3);
  background: var(--surface); overflow: hidden;
}
.stat-strip > div { padding: var(--s5); border-right: 1px solid var(--border); }
.stat-strip > div:last-child { border-right: 0; }
.stat-n { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--text); letter-spacing: -.02em; }
.stat-l { font-size: .84rem; color: var(--text-3); margin-top: 4px; }
@media (max-width: 780px) {
  .stat-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-strip > div:nth-child(2n) { border-right: 0; }
  .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* 11. Cards --------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r3); padding: var(--s6) var(--s5);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card--hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card h3, .card h4 { margin-bottom: var(--s3); }
.card p { color: var(--text-2); font-size: .945rem; line-height: 1.66; }

.icon-tile {
  width: 40px; height: 40px; border-radius: var(--r2);
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: var(--s4); border: 1px solid var(--accent-line);
}
.icon-tile svg { width: 20px; height: 20px; }

.tag {
  display: inline-block; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px;
  border: 1px solid var(--border-strong); color: var(--text-3);
}
.tag--accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

.problem-item { display: flex; gap: var(--s4); align-items: flex-start; }
.problem-item .num {
  font-family: var(--mono); font-size: .78rem; color: var(--accent);
  padding-top: 3px; flex: none; letter-spacing: .06em;
}

/* 12. Product shot frame -------------------------------------------------- */
.shot {
  border-radius: var(--r3); border: 1px solid var(--border);
  background: var(--surface-raise); box-shadow: var(--shadow-3); overflow: hidden;
}
.shot-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  background: var(--bg-inset); border-bottom: 1px solid var(--border);
}
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); display: block; }
.shot-bar .url {
  margin-left: 10px; font-family: var(--mono); font-size: .71rem; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shot-view { background: #fff; }
.shot img { width: 100%; height: auto; display: block; }
/* On a dark page the product UI stays light, so soften it rather than invert it. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-view { filter: brightness(.93) saturate(.96); }
}
:root[data-theme="dark"] .shot-view { filter: brightness(.93) saturate(.96); }
:root[data-theme="light"] .shot-view { filter: none; }
.shot-caption { margin-top: var(--s3); font-size: .84rem; color: var(--text-3); }

.showcase { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: var(--s7); align-items: start; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; gap: var(--s5); } }

.showcase-tabs { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--border); }
.showcase-tabs button {
  text-align: left; padding: 11px var(--s4); font-size: .93rem; font-weight: 500;
  color: var(--text-3); margin-left: -1px; border-left: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.showcase-tabs button:hover { color: var(--text); }
.showcase-tabs button[aria-selected="true"] { color: var(--text); font-weight: 600; border-left-color: var(--accent); }
@media (max-width: 900px) {
  .showcase-tabs { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--border); gap: 0; }
  .showcase-tabs button { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; }
  .showcase-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); }
}
.showcase-panel[hidden] { display: none; }
.showcase-panel h3 { margin-bottom: var(--s2); }
.showcase-panel > p { color: var(--text-2); font-size: .95rem; margin-bottom: var(--s5); max-width: 62ch; }

/* 13. Module grid --------------------------------------------------------- */
.module-group + .module-group { margin-top: var(--s8); }
.module-group-head {
  display: flex; align-items: baseline; gap: var(--s4);
  padding-bottom: var(--s4); margin-bottom: var(--s5);
  border-bottom: 1px solid var(--border);
}
.module-group-head h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; }
.module-group-head .count { font-family: var(--mono); font-size: .74rem; color: var(--text-3); letter-spacing: .08em; }

.module {
  padding: var(--s5); border: 1px solid var(--border); border-radius: var(--r3);
  background: var(--surface); display: flex; flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.module:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.module .icon-tile { width: 34px; height: 34px; margin-bottom: var(--s4); }
.module .icon-tile svg { width: 17px; height: 17px; }
.module h4 { font-size: .99rem; margin-bottom: 7px; }
.module p { font-size: .88rem; color: var(--text-2); line-height: 1.6; flex: 1; }
.module .tag { margin-top: var(--s4); align-self: flex-start; }

/* 14. Pricing ------------------------------------------------------------- */
.billing-toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  background: var(--bg-inset); border: 1px solid var(--border); border-radius: 100px;
}
.billing-toggle button {
  padding: 8px 20px; border-radius: 100px; font-size: .88rem; font-weight: 600;
  color: var(--text-3); transition: background-color .18s, color .18s, box-shadow .18s;
}
.billing-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.save-pill {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line); padding: 3px 8px; border-radius: 100px; margin-left: 8px;
}

.plans { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s5); align-items: start; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

.plan {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r4); padding: var(--s6) var(--s5) var(--s5);
  display: flex; flex-direction: column; position: relative;
}
.plan--featured { border-color: var(--accent); box-shadow: var(--shadow-2); }
.plan-flag {
  position: absolute; top: -11px; left: var(--s5);
  font-family: var(--mono); font-size: .67rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: var(--on-accent); padding: 4px 11px; border-radius: 100px;
}
.plan-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.plan-tagline { font-size: .88rem; color: var(--text-3); margin-top: 4px; min-height: 2.6em; }
.plan-price { display: flex; align-items: baseline; gap: 3px; margin-top: var(--s5); }
.plan-price .cur { font-size: 1.15rem; font-weight: 600; color: var(--text-2); align-self: flex-start; margin-top: 8px; }
.plan-price .amt { font-family: var(--serif); font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.plan-price .per { font-size: .9rem; color: var(--text-3); margin-left: 3px; }
.plan-billed { font-size: .8rem; color: var(--text-3); margin-top: 7px; min-height: 1.4em; }
.plan-fit { font-size: .84rem; color: var(--text-2); margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--border); }
.plan .btn { margin-top: var(--s5); }
.plan-features { list-style: none; padding: 0; margin-top: var(--s5); display: grid; gap: 11px; }
.plan-features li { display: flex; gap: 10px; font-size: .89rem; color: var(--text-2); line-height: 1.5; }
.plan-features svg { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 3px; }
.plan-features .heading { font-weight: 600; color: var(--text); font-size: .85rem; }

.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r3); background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .89rem; }
.cmp th, .cmp td { padding: 13px var(--s4); text-align: left; border-bottom: 1px solid var(--border); }
.cmp thead th { background: var(--deep-2); color: #fff; font-weight: 600; font-size: .84rem; letter-spacing: .01em; }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: center; width: 118px; }
.cmp tbody tr:nth-child(odd) td { background: var(--bg-subtle); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .grp td {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); background: var(--bg-inset) !important; padding-block: 9px;
}
.cmp .yes { color: var(--accent); }
.cmp .no  { color: var(--text-3); opacity: .5; }
.cmp svg { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }

/* 15. Compliance map ------------------------------------------------------ */
.map-layout { display: grid; grid-template-columns: minmax(0,1.62fr) minmax(298px,1fr); gap: var(--s6); align-items: start; }
@media (max-width: 980px) { .map-layout { grid-template-columns: 1fr; } }

.map-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r3); padding: var(--s5); }
.us-map { width: 100%; height: auto; }
.us-map .st {
  fill: var(--map-fill); stroke: var(--map-stroke); stroke-width: 1; cursor: pointer;
  transition: fill .14s ease;
}
.us-map .st:hover { fill: var(--mist); }
.us-map .st:focus-visible { outline: none; fill: var(--mist); stroke: var(--accent); stroke-width: 1.6; }
.us-map .st.is-active { fill: var(--accent); }
.us-map .lbl {
  font-family: var(--sans); font-size: 9.4px; font-weight: 600;
  fill: var(--text-3); pointer-events: none; text-anchor: middle; letter-spacing: .02em;
}
.us-map .lbl-out { font-size: 9.8px; fill: var(--text-2); }

.map-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r3);
  overflow: hidden; position: sticky; top: calc(var(--nav-h) + 24px);
}
.map-panel-head { padding: var(--s5); background: var(--deep-2); color: #fff; }
.map-panel-head h3 { color: #fff; margin: 0; }
.map-panel-head p { color: var(--on-deep-2); font-size: .84rem; margin-top: 4px; }
.map-panel-body { padding: var(--s5); }
.req-list { list-style: none; padding: 0; display: grid; gap: var(--s4); }
.req-list li { display: flex; gap: 11px; font-size: .88rem; line-height: 1.55; color: var(--text-2); }
.req-list svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 3px; }
.req-list strong { color: var(--text); font-weight: 600; display: block; }
.state-select { display: none; }
@media (max-width: 620px) {
  .map-card { display: none; }
  .state-select {
    display: block; width: 100%; padding: 12px var(--s4);
    border: 1px solid var(--border-strong); border-radius: var(--r2);
    background: var(--surface); margin-bottom: var(--s5);
  }
}

/* 16. FAQ ----------------------------------------------------------------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--s5) 44px var(--s5) 0;
  font-weight: 600; font-size: 1rem; position: relative; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 12px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 1.8px solid var(--text-3); border-bottom: 1.8px solid var(--text-3);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--accent); }
.faq .faq-body { padding: 0 var(--s8) var(--s5) 0; color: var(--text-2); font-size: .94rem; line-height: 1.7; }
.faq .faq-body p + p { margin-top: var(--s3); }

/* 17. Deep panels, quotes, CTA -------------------------------------------- */
.deep-panel {
  background: linear-gradient(160deg, var(--deep) 0%, #0A3763 60%, #0C447C 100%);
  color: var(--on-deep); border-radius: var(--r5); padding: clamp(40px, 6vw, 72px);
  position: relative; overflow: hidden; isolation: isolate;
}
.deep-panel h2, .deep-panel h3 { color: #fff; }
.deep-panel p { color: var(--on-deep-2); }
.deep-panel .eyebrow { color: var(--mist); }
.deep-panel .eyebrow::before { background: var(--mist); }

.quote { max-width: 780px; }
.quote blockquote {
  font-family: var(--serif); font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.85rem);
  line-height: 1.45; font-style: italic; font-weight: 400; color: var(--text);
  border-left: 2px solid var(--accent); padding-left: var(--s5);
}
.deep-panel .quote blockquote { color: #fff; border-left-color: var(--teal-bright); }
.quote figcaption { margin-top: var(--s5); padding-left: calc(var(--s5) + 2px); font-size: .89rem; color: var(--text-3); line-height: 1.7; }
.deep-panel .quote figcaption { color: var(--on-deep-2); }
.quote figcaption strong { display: block; color: var(--text); font-weight: 600; font-size: .95rem; }

.cta-final { text-align: center; }
.cta-final h2 { max-width: 18ch; margin-inline: auto; }
.cta-final p { max-width: 56ch; margin: var(--s4) auto 0; }
.cta-final .btn-row { margin-top: var(--s7); }

/* 18. Forms --------------------------------------------------------------- */
.field { display: grid; gap: 7px; }
.field label { font-size: .87rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: .8rem; color: var(--text-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; font-size: .94rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--r2);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; gap: var(--s5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--text-3); }

/* 19. Footer -------------------------------------------------------------- */
.footer { background: var(--bg-subtle); border-top: 1px solid var(--border); padding-block: var(--s8) var(--s6); }
.footer-top { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(3, minmax(0,1fr)); gap: var(--s7); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand img { height: 28px; width: auto; margin-bottom: var(--s4); }
.footer-brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer-brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .footer-brand .logo-dark  { display: block; }
}
:root[data-theme="dark"] .footer-brand .logo-light { display: none; }
:root[data-theme="dark"] .footer-brand .logo-dark  { display: block; }
:root[data-theme="light"] .footer-brand .logo-light { display: block; }
:root[data-theme="light"] .footer-brand .logo-dark  { display: none; }
.footer-brand p { font-size: .88rem; color: var(--text-3); max-width: 34ch; }
.footer h4 {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--text-3); font-weight: 500; margin-bottom: var(--s4);
}
.footer ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer ul a { font-size: .9rem; color: var(--text-2); text-decoration: none; transition: color .18s; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between; align-items: center;
}
.footer-bottom p, .footer-bottom a { font-size: .82rem; color: var(--text-3); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s5); }

/* 20. Interior page header ------------------------------------------------ */
.page-head { padding-block: clamp(56px, 7vw, 92px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--border); }
.page-head h1 { max-width: 18ch; }
.page-head .lede { margin-top: var(--s5); }

/* 21. Utilities ----------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0 !important; }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); }
.mt-6 { margin-top: var(--s6); }
.mt-7 { margin-top: var(--s7); }
.mt-8 { margin-top: var(--s8); }
.center { text-align: center; }
.max-60 { max-width: 60ch; }

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
