/* ==========================================================================
   Kharazm — marketing site stylesheet
   Copyright (c) 2026 Bakaro Art LLC. Proprietary.

   Self-contained. No external requests of any kind (strict CSP).
   Only same-origin asset referenced: /fonts/plus-jakarta-sans.woff2
   --------------------------------------------------------------------------
   Contents
     01  Font
     02  Design tokens (light)
     03  Design tokens (dark)
     04  Reset / base
     05  Typography scale
     06  Layout: container, section, section-head, eyebrow
     07  Buttons
     08  Cards, badges, pills, stats
     09  Grids, feature items, lists
     10  Hero
     11  Site header + no-JS mobile nav
     12  Site footer
     13  CTA band
     14  FAQ (<details>), breadcrumb, callouts, tables
     15  Forms (hero sign-in, contact)
     16  Prose (long-form / legal)
     17  Utilities
     18  Motion, print
   ========================================================================== */

/* 01 — Font ============================================================== */

@font-face {
  font-family: "Plus Jakarta Sans Variable";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans.woff2") format("woff2");
}

/* 02 — Design tokens (light) ============================================= */

:root {
  color-scheme: light;

  /* Brand */
  --primary: #1d4ed8;
  --primary-strong: #1e40af;
  --primary-deep: #1e3a8a;
  --primary-soft: #dbeafe;
  --primary-pale: #eff6ff;
  --secondary: #0f766e;
  --secondary-soft: #ccfbf1;
  --accent: #f59e0b;
  --accent-soft: #fef3c7;

  /* Ink scale — remapped in dark mode, so it is safe to use anywhere */
  --ink-950: #020617;
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50: #f8fafc;

  /* Surfaces */
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-raised: #ffffff;
  --canvas: #f8fafc;
  --line: #e2e8f0;
  --line-strong: #8795aa;

  /* Semantic text */
  --text: var(--ink-950);
  --text-secondary: var(--ink-700);
  --text-muted: var(--ink-600);

  /* Link colour on light surfaces */
  --link: #1d4ed8;
  --link-hover: #1e3a8a;

  /* Status */
  --healthy: #166534;
  --healthy-soft: #dcfce7;
  --risk: #92400e;
  --risk-soft: #fef3c7;
  --critical: #991b1b;
  --critical-soft: #fee2e2;
  --info: #075985;
  --info-soft: #e0f2fe;

  /* Fixed dark-section palette (identical in both colour schemes) */
  --dark-1: #1e293b;
  --dark-2: #0f172a;
  --dark-text: #e2e8f0;
  --dark-muted: #a3b2c7;
  --dark-line: rgba(255, 255, 255, 0.1);
  --dark-line-soft: rgba(255, 255, 255, 0.06);
  --dark-mark: #93c5fd;
  --dark-glow: rgba(37, 99, 235, 0.28);

  /* Radii */
  --radius-xs: 7px;
  --radius-sm: 10px;
  --radius-md: 13px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.05), 0 6px 16px -6px rgba(15, 23, 42, 0.1);
  --shadow-md: 0 10px 30px -8px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 30px 70px -18px rgba(2, 6, 23, 0.32);

  /* Interaction */
  --focus: 0 0 0 3px #8b5cf6;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 180ms;

  /* Metrics */
  --container: 1140px;
  --gutter: clamp(20px, 5vw, 32px);
  --measure: 68ch;
  --header-h: 68px;
  --section-y: clamp(56px, 8vw, 104px);
}

/* 03 — Design tokens (dark) ============================================== */

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    /* Ink scale inverted: --ink-950 stays "strongest text", --ink-50 stays
       "faintest surface tint", so component CSS needs no dark-mode forks. */
    --ink-950: #f8fafc;
    --ink-900: #f1f5f9;
    --ink-800: #e2e8f0;
    --ink-700: #cbd5e1;
    --ink-600: #b6c2d4;
    --ink-500: #94a3b8;
    --ink-400: #64748b;
    --ink-300: #475569;
    --ink-200: #2b3a52;
    --ink-100: #1c2942;
    --ink-50: #16213a;

    --surface: #131c31;
    --surface-2: #1a2540;
    --surface-raised: #182238;
    --canvas: #0b1120;
    --line: #263352;
    --line-strong: #5b6b90;

    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #b6c2d4;

    /* Brand tints re-tuned for dark backgrounds (contrast >= 4.5:1 on text) */
    --primary: #7ea6ff;
    --primary-strong: #6f9bff;
    --primary-deep: #b9d0ff;
    --primary-soft: #1c2f56;
    --primary-pale: #16233f;
    --secondary: #5eead4;
    --secondary-soft: #10322f;
    --accent: #fbbf24;
    --accent-soft: #3a2d0d;

    --link: #a8c4ff;
    --link-hover: #d3e2ff;

    --healthy: #86efac;
    --healthy-soft: #12331f;
    --risk: #fcd34d;
    --risk-soft: #3a2c0c;
    --critical: #fca5a5;
    --critical-soft: #3d1717;
    --info: #7dd3fc;
    --info-soft: #0d2c40;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.45), 0 6px 16px -6px rgba(0, 0, 0, 0.55);
    --shadow-md: 0 12px 32px -10px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 70px -18px rgba(0, 0, 0, 0.8);
  }
}

/* 04 — Reset / base ====================================================== */

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

* {
  margin: 0;
}

html {
  min-width: 320px;
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  min-height: 100vh;
  color: var(--text);
  background: var(--canvas);
  font-family: "Plus Jakarta Sans Variable", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: clamp(15.5px, 0.35vw + 15px, 17px);
  line-height: 1.62;
  letter-spacing: -0.006em;
  font-feature-settings: "ss01" 1, "cv05" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img,
svg,
video,
canvas,
picture {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  border: 0;
  background: none;
}

button,
label[for],
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

main p a:not(.btn),
main li a:not(.btn),
.textlink {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  height: 1px;
  border: 0;
  background: var(--line);
}

:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus);
  border-radius: var(--radius-xs);
}

::selection {
  color: #ffffff;
  background: #1d4ed8;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  color: #ffffff;
  background: #1d4ed8;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 650;
  transform: translateY(-160%);
  transition: transform 160ms var(--ease);
}

.skip-link:focus {
  color: #ffffff;
  transform: translateY(0);
}

/* 05 — Typography scale ================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink-950);
  font-weight: 740;
  line-height: 1.16;
  letter-spacing: -0.024em;
  text-wrap: balance;
}

h1,
.h1 {
  font-size: clamp(2.15rem, 4.4vw + 1rem, 3.5rem);
  letter-spacing: -0.032em;
}

h2,
.h2 {
  font-size: clamp(1.65rem, 2.4vw + 0.85rem, 2.4rem);
  letter-spacing: -0.028em;
}

h3,
.h3 {
  font-size: clamp(1.2rem, 0.9vw + 0.95rem, 1.5rem);
  line-height: 1.26;
}

h4,
.h4 {
  font-size: 1.06rem;
  line-height: 1.34;
  letter-spacing: -0.018em;
}

h5,
.h5 {
  font-size: 0.95rem;
  line-height: 1.4;
}

h6,
.h6 {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

p {
  max-width: var(--measure);
}

.lead {
  max-width: 62ch;
  color: var(--text-secondary);
  font-size: clamp(1.06rem, 0.7vw + 0.95rem, 1.28rem);
  line-height: 1.58;
  letter-spacing: -0.012em;
}

.text-muted {
  color: var(--text-muted);
}

small,
.small {
  font-size: 0.86rem;
  line-height: 1.55;
}

.tiny {
  font-size: 0.78rem;
  line-height: 1.5;
}

strong,
b {
  font-weight: 700;
}

code,
kbd,
samp {
  padding: 0.12em 0.4em;
  color: var(--ink-800);
  background: var(--ink-100);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
}

/* 06 — Layout ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  max-width: 780px;
}

.container-wide {
  max-width: 1280px;
}

.section {
  padding-block: var(--section-y);
}

.section-tight {
  padding-block: clamp(38px, 5vw, 64px);
}

.section-alt {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

.section-surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-dark {
  color: var(--dark-text);
  background: radial-gradient(ellipse 70% 90% at 12% 0%, var(--dark-glow), transparent 62%),
    linear-gradient(160deg, var(--dark-1) 0%, var(--dark-2) 100%);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: #ffffff;
}

.section-dark p,
.section-dark li,
.section-dark .lead {
  color: var(--dark-muted);
}

.section-dark a {
  color: #bfdbfe;
}

.section-dark a:hover {
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.7;
}

.section-dark .eyebrow {
  color: #93c5fd;
}

.section-head {
  max-width: 66ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head p {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: clamp(1rem, 0.5vw + 0.92rem, 1.14rem);
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head-center p {
  margin-inline: auto;
}

.stack > * + * {
  margin-top: 1rem;
}

.stack-sm > * + * {
  margin-top: 0.5rem;
}

.stack-lg > * + * {
  margin-top: 1.75rem;
}

/* 07 — Buttons =========================================================== */

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  color: var(--ink-800);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.012em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.btn:hover {
  color: var(--ink-950);
  border-color: var(--ink-400);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary,
.btn-primary:hover {
  color: #ffffff;
}

.btn-primary {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  border-color: #1e40af;
  box-shadow: 0 1px 2px rgba(30, 58, 138, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #1d4ed8, #1e40af);
  border-color: #1e3a8a;
  box-shadow: 0 8px 20px -8px rgba(29, 78, 216, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-secondary {
  color: #ffffff;
  background: linear-gradient(180deg, #14837a, #0f766e);
  border-color: #0d5f59;
  box-shadow: 0 1px 2px rgba(6, 78, 73, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-secondary:hover {
  color: #ffffff;
  background: linear-gradient(180deg, #0f766e, #0d5f59);
  border-color: #0b4f4a;
  box-shadow: 0 8px 20px -8px rgba(15, 118, 110, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-ghost {
  color: var(--ink-800);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--ink-950);
  background: var(--ink-100);
  border-color: transparent;
  box-shadow: none;
}

.btn-outline {
  color: var(--primary);
  background: transparent;
  border-color: var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  color: var(--primary);
  background: var(--primary-pale);
  border-color: var(--primary-strong);
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 0.88rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  border-radius: 13px;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

/* Buttons sitting on dark backgrounds */
.on-dark .btn,
.section-dark .btn,
.hero .btn,
.cta-band .btn,
.site-footer .btn {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.on-dark .btn:hover,
.section-dark .btn:hover,
.hero .btn:hover,
.cta-band .btn:hover,
.site-footer .btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.on-dark .btn-primary,
.section-dark .btn-primary,
.hero .btn-primary,
.cta-band .btn-primary,
.site-footer .btn-primary {
  color: #ffffff;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  border-color: #1e40af;
  box-shadow: 0 10px 26px -12px rgba(59, 130, 246, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.on-dark .btn-primary:hover,
.section-dark .btn-primary:hover,
.hero .btn-primary:hover,
.cta-band .btn-primary:hover,
.site-footer .btn-primary:hover {
  background: linear-gradient(180deg, #1d4ed8, #1e40af);
  border-color: #1e3a8a;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.btn-row-center {
  justify-content: center;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--link);
  font-weight: 640;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.textlink:hover {
  color: var(--link-hover);
  border-bottom-color: currentColor;
}

.textlink::after {
  content: "\2192";
  transition: transform var(--dur) var(--ease);
}

.textlink:hover::after {
  transform: translateX(3px);
}

/* 08 — Cards, badges, pills, stats ======================================= */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 28px);
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.card > p {
  max-width: none;
  color: var(--text-secondary);
}

.card h3,
.card h4 {
  color: var(--ink-950);
}

.card-quiet {
  background: transparent;
  box-shadow: none;
}

.card-flat {
  background: var(--surface-2);
  border-color: transparent;
  box-shadow: none;
}

.card-accent {
  border-top: 3px solid var(--primary);
}

a.card,
.card-link {
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

a.card:hover,
.card-link:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 4px;
  color: var(--primary);
  background: var(--primary-pale);
  border: 1px solid var(--primary-soft);
  border-radius: var(--radius-md);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-icon-teal {
  color: var(--secondary);
  background: var(--secondary-soft);
  border-color: transparent;
}

.card-icon-amber {
  color: var(--risk);
  background: var(--accent-soft);
  border-color: transparent;
}

.section-dark .card,
.on-dark .card {
  color: var(--dark-text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--dark-line);
  box-shadow: none;
}

.section-dark .card h3,
.section-dark .card h4,
.on-dark .card h3,
.on-dark .card h4 {
  color: #ffffff;
}

.section-dark .card p,
.on-dark .card p {
  color: var(--dark-muted);
}

.section-dark .card-icon,
.on-dark .card-icon {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(147, 197, 253, 0.28);
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  color: var(--ink-700);
  background: var(--ink-100);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 680;
  line-height: 1.45;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge svg,
.pill svg {
  width: 14px;
  height: 14px;
}

.badge-primary {
  color: var(--primary);
  background: var(--primary-pale);
  border-color: var(--primary-soft);
}

.badge-healthy {
  color: var(--healthy);
  background: var(--healthy-soft);
}

.badge-risk {
  color: var(--risk);
  background: var(--risk-soft);
}

.badge-critical {
  color: var(--critical);
  background: var(--critical-soft);
}

.badge-info {
  color: var(--info);
  background: var(--info-soft);
}

.badge-outline {
  color: var(--text-muted);
  background: transparent;
  border-color: var(--line-strong);
}

.section-dark .badge,
.on-dark .badge,
.hero .badge {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

.pill-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.stat-value {
  color: var(--ink-950);
  font-size: clamp(1.5rem, 1.6vw + 1.1rem, 2rem);
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.section-dark .stat,
.on-dark .stat,
.hero .stat {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--dark-line);
  box-shadow: none;
}

.section-dark .stat-value,
.on-dark .stat-value,
.hero .stat-value {
  color: #ffffff;
}

.section-dark .stat-label,
.on-dark .stat-label,
.hero .stat-label {
  color: var(--dark-muted);
}

/* 09 — Grids, feature items, lists ======================================= */

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.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));
}

.grid-sidebar {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
}

@media (max-width: 1000px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.feature-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.feature-item > svg,
.feature-item .feature-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  margin-top: 2px;
  color: var(--primary);
  background: var(--primary-pale);
  border-radius: var(--radius-sm);
}

.feature-item .feature-mark svg {
  width: 18px;
  height: 18px;
}

.feature-item h3,
.feature-item h4 {
  margin-bottom: 4px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

.feature-item p {
  max-width: 56ch;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.section-dark .feature-item .feature-mark,
.on-dark .feature-item .feature-mark {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.16);
}

.section-dark .feature-item p,
.on-dark .feature-item p {
  color: var(--dark-muted);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  max-width: var(--measure);
  padding-left: 30px;
  color: var(--text-secondary);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 18px;
  height: 18px;
  background: var(--primary-pale);
  border: 1px solid var(--primary-soft);
  border-radius: 50%;
}

.check-list li::after {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 5.5px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.section-dark .check-list li,
.on-dark .check-list li,
.hero .check-list li {
  color: var(--dark-muted);
}

.section-dark .check-list li::before,
.on-dark .check-list li::before,
.hero .check-list li::before {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(147, 197, 253, 0.3);
}

.section-dark .check-list li::after,
.on-dark .check-list li::after,
.hero .check-list li::after {
  border-color: #93c5fd;
}

.step-list {
  display: grid;
  gap: 22px;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list > li {
  position: relative;
  padding-left: 54px;
  counter-increment: step;
}

.step-list > li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-pale);
  border: 1px solid var(--primary-soft);
  border-radius: 50%;
  font-size: 0.92rem;
  font-weight: 740;
}

.step-list h3,
.step-list h4 {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.step-list p {
  color: var(--text-secondary);
}

.divider {
  height: 1px;
  margin-block: clamp(32px, 5vw, 56px);
  background: var(--line);
  border: 0;
}

/* 10 — Hero ============================================================== */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--dark-text);
  background: radial-gradient(ellipse 62% 82% at 8% -6%, var(--dark-glow), transparent 60%),
    radial-gradient(ellipse 52% 70% at 96% 4%, rgba(15, 118, 110, 0.22), transparent 62%),
    linear-gradient(160deg, var(--dark-1) 0%, var(--dark-2) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--dark-line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(56px, 8vw, 104px);
}

.hero-single .hero-inner {
  grid-template-columns: minmax(0, 1fr);
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.hero-single .hero-copy p,
.hero-single .btn-row {
  margin-inline: auto;
}

.hero h1 {
  color: #ffffff;
}

.hero p {
  color: var(--dark-muted);
}

.hero .lead {
  margin-top: 18px;
  color: #cbd5e1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 13px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  color: var(--dark-muted);
  font-size: 0.88rem;
}

.hero-meta > * {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Compact hero for interior pages */
.hero-compact .hero-inner {
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(44px, 6vw, 72px);
}

.hero-compact h1 {
  font-size: clamp(1.9rem, 3.4vw + 1rem, 2.85rem);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 11 — Site header + no-JS mobile nav ==================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .site-header {
    background: var(--surface);
  }
}

.site-header-inner {
  position: relative;
  display: flex;
  min-height: var(--header-h);
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  padding: 4px 2px;
  color: var(--ink-950);
  font-size: 1.32rem;
  font-weight: 780;
  letter-spacing: -0.6px;
  line-height: 1;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink-950);
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  color: var(--primary);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 9px 12px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.site-nav a:hover {
  color: var(--ink-950);
  background: var(--ink-100);
}

.site-nav a[aria-current="page"] {
  color: var(--primary);
  background: var(--primary-pale);
}

.site-nav .btn {
  margin-left: 8px;
}

.site-nav a.btn:hover {
  color: #ffffff;
  background: linear-gradient(180deg, #1d4ed8, #1e40af);
}

.site-nav a.btn[aria-current="page"] {
  color: #ffffff;
  background: linear-gradient(180deg, #1d4ed8, #1e40af);
}

/* No-JS toggle: the checkbox is the real, focusable control and sits on top of
   the decorative label. Both are hidden entirely on wide screens. */
.nav-toggle,
.nav-toggle-label {
  display: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    position: absolute;
    top: 50%;
    right: var(--gutter);
    z-index: 2;
    display: block;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    opacity: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    cursor: pointer;
    transform: translateY(-50%);
  }

  .nav-toggle-label {
    position: relative;
    z-index: 1;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--ink-800);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }

  .nav-toggle-label .nav-bars {
    display: block;
    width: 20px;
    height: 14px;
    position: relative;
  }

  .nav-toggle-label .nav-bars::before,
  .nav-toggle-label .nav-bars::after,
  .nav-toggle-label .nav-bars > span {
    content: "";
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--dur) var(--ease), opacity 120ms linear;
  }

  .nav-toggle-label .nav-bars::before {
    top: 0;
  }

  .nav-toggle-label .nav-bars > span {
    top: 6px;
  }

  .nav-toggle-label .nav-bars::after {
    bottom: 0;
  }

  .nav-toggle:checked + .nav-toggle-label .nav-bars::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-label .nav-bars > span {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-toggle-label .nav-bars::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-toggle:focus-visible + .nav-toggle-label {
    box-shadow: var(--focus);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 9px);
    right: var(--gutter);
    left: var(--gutter);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .site-nav .btn {
    margin: 8px 0 2px;
  }
}

/* 12 — Site footer ======================================================= */

.site-footer {
  color: var(--dark-text);
  background: radial-gradient(ellipse 60% 90% at 6% 0%, var(--dark-glow), transparent 58%),
    linear-gradient(170deg, var(--dark-1) 0%, var(--dark-2) 100%);
}

.site-footer a {
  color: #b6c6dd;
  transition: color var(--dur) var(--ease);
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-block: clamp(44px, 6vw, 68px) clamp(28px, 3vw, 36px);
}

.site-footer .brand {
  margin-right: 0;
  color: #ffffff;
}

.site-footer .brand:hover {
  color: #ffffff;
}

.site-footer .brand-mark {
  color: var(--dark-mark);
}

.footer-blurb {
  max-width: 34ch;
  margin-top: 12px;
  color: var(--dark-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-contact {
  margin-top: 14px;
  font-size: 0.9rem;
}

.footer-col h2,
.footer-col h3 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  font-size: 0.93rem;
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 20px 30px;
  border-top: 1px solid var(--dark-line-soft);
  color: var(--dark-muted);
  font-size: 0.84rem;
}

.site-footer-bottom p {
  max-width: none;
}

@media (max-width: 860px) {
  .site-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .site-footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 13 — CTA band ========================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  color: var(--dark-text);
  background: radial-gradient(ellipse 60% 100% at 88% 0%, var(--dark-glow), transparent 60%),
    linear-gradient(150deg, var(--dark-1) 0%, var(--dark-2) 100%);
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(40px, 5.5vw, 68px);
}

.cta-band h2 {
  color: #ffffff;
  font-size: clamp(1.45rem, 1.9vw + 0.9rem, 2rem);
}

.cta-band p {
  max-width: 54ch;
  margin-top: 10px;
  color: var(--dark-muted);
}

.cta-band .btn-row {
  margin-top: 0;
  flex: none;
}

/* 14 — FAQ, breadcrumb, callouts, tables ================================= */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.faq-item > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  color: var(--ink-950);
  font-size: 1rem;
  font-weight: 680;
  line-height: 1.45;
  letter-spacing: -0.014em;
  cursor: pointer;
  list-style: none;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-right: 2px solid var(--ink-500);
  border-bottom: 2px solid var(--ink-500);
  border-radius: 1px;
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}

.faq-item[open] > summary::after {
  transform: rotate(-135deg);
}

.faq-item > summary:hover {
  background: var(--ink-50);
}

.faq-item > summary:focus-visible {
  box-shadow: var(--focus);
  border-radius: var(--radius-md);
}

.faq-answer {
  padding: 0 20px 19px;
  color: var(--text-secondary);
}

.faq-answer > * + * {
  margin-top: 0.75rem;
}

.breadcrumb {
  padding-block: 16px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--ink-400);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--link);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink-800);
  font-weight: 620;
}

.callout {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  color: var(--text-secondary);
  background: var(--primary-pale);
  border: 1px solid var(--primary-soft);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
}

.callout > strong,
.callout h3,
.callout h4 {
  color: var(--ink-950);
  font-size: 1rem;
}

.callout p {
  max-width: none;
}

.callout-warn {
  background: var(--risk-soft);
  border-color: transparent;
  border-left-color: var(--accent);
}

.callout-note {
  background: var(--surface-2);
  border-color: var(--line);
  border-left-color: var(--ink-400);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.table-wrap:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 3px;
  box-shadow: none;
}

table.data {
  width: 100%;
  min-width: 520px;
  font-size: 0.93rem;
}

table.data th,
table.data td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

table.data thead th {
  color: var(--ink-700);
  background: var(--surface-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

table.data tbody tr:last-child th,
table.data tbody tr:last-child td {
  border-bottom: 0;
}

table.data tbody th {
  color: var(--ink-950);
  font-weight: 680;
  white-space: nowrap;
}

table.data td {
  color: var(--text-secondary);
}

/* 15 — Forms ============================================================= */

.field-group {
  display: grid;
  gap: 6px;
}

.field-group + .field-group {
  margin-top: 14px;
}

.label {
  color: var(--ink-800);
  font-size: 0.85rem;
  font-weight: 660;
  letter-spacing: -0.005em;
}

.field,
.textarea,
.select {
  width: 100%;
  color: var(--ink-950);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.97rem;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}

.field,
.select {
  min-height: 46px;
  padding: 0 13px;
}

.textarea {
  min-height: 128px;
  padding: 11px 13px;
  line-height: 1.55;
  resize: vertical;
}

.field::placeholder,
.textarea::placeholder {
  color: var(--ink-400);
}

.field:focus,
.textarea:focus,
.select:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: var(--focus);
}

.field-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.form-error {
  margin-top: 12px;
  padding: 10px 13px;
  color: var(--critical);
  background: var(--critical-soft);
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 620;
}

.form-error[hidden] {
  display: none;
}

.ui-mock-responsive {
  display: block;
  width: 100%;
  height: auto;
}

.brand-mark-showcase {
  display: inline-flex;
  color: var(--primary);
}

.form-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Pricing ================================================================ */

.pricing-hero .hero-copy {
  max-width: 860px;
}

.pricing-heading {
  max-width: 790px;
}

.pricing-calculator {
  display: grid;
  gap: 28px;
}

.pricing-controls {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.2fr);
  align-items: start;
  gap: clamp(18px, 3vw, 36px);
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(18px, 2.5vw, 26px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

fieldset.pricing-control {
  min-width: 0;
  padding: 0;
  border: 0;
}

.pricing-control {
  display: grid;
  gap: 8px;
}

.pricing-control .label {
  padding: 0;
}

.pricing-number {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.pricing-number .field {
  font-size: 1rem;
  font-weight: 680;
}

.pricing-number > span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 640;
}

.billing-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.billing-toggle label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.billing-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.billing-toggle span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-radius: calc(var(--radius-sm) - 3px);
  font-size: 0.88rem;
  font-weight: 680;
  line-height: 1.3;
  text-align: center;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur)
    var(--ease);
}

.billing-toggle small {
  color: var(--healthy);
  font-size: 0.7rem;
  font-weight: 730;
  white-space: nowrap;
}

.billing-toggle input:checked + span {
  color: var(--ink-950);
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.billing-toggle input:focus-visible + span {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(16px, 2vw, 22px);
}

.price-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.price-card-featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.price-recommended {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 5px 14px;
  color: #ffffff;
  background: var(--primary);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 740;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.price-card-featured .price-card-head {
  padding-top: 13px;
}

.price-card-head {
  display: grid;
  gap: 8px;
}

.price-card-head .badge {
  width: max-content;
  max-width: 100%;
}

.price-card-head h3 {
  margin-top: 4px;
  font-size: clamp(1.45rem, 1.5vw + 1rem, 1.85rem);
}

.price-card-head p,
.price-estimate {
  color: var(--text-secondary);
  font-size: 0.91rem;
}

.price-display {
  display: grid;
  min-height: 88px;
  align-content: start;
  gap: 3px;
}

.price-amount {
  color: var(--ink-950);
  font-size: clamp(2.15rem, 3vw + 1rem, 3rem);
  font-weight: 770;
  line-height: 1;
  letter-spacing: -0.045em;
}

.price-unit {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 610;
}

.price-estimate {
  min-height: 3em;
  margin-top: -12px;
}

.price-card > .btn {
  margin-top: auto;
}

.price-includes {
  display: grid;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.price-includes h4 {
  color: var(--ink-900);
  font-size: 0.92rem;
}

.price-includes .check-list {
  gap: 10px;
}

.price-includes .check-list li {
  padding-left: 26px;
  font-size: 0.87rem;
  line-height: 1.48;
}

.pricing-caveat h3 {
  font-size: 1rem;
}

.pricing-table-wrap {
  box-shadow: var(--shadow-sm);
}

table.pricing-table {
  min-width: 900px;
}

table.pricing-table th:not(:first-child),
table.pricing-table td:not(:first-child) {
  width: 18.5%;
  text-align: center;
}

table.pricing-table tbody th {
  white-space: normal;
}

table.pricing-table .pricing-table-group th {
  padding-block: 10px;
  color: var(--primary);
  background: var(--primary-pale);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.plan-yes {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--healthy);
  background: var(--healthy-soft);
  border-radius: 50%;
  font-weight: 800;
}

@media (max-width: 940px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 680px;
    margin-inline: auto;
  }

  .price-display,
  .price-estimate {
    min-height: 0;
  }

  .price-card-featured {
    order: -1;
  }
}

@media (max-width: 720px) {
  .pricing-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 440px) {
  .billing-toggle span {
    flex-direction: column;
    gap: 2px;
  }
}

/* 16 — Prose (long-form / legal) ========================================= */

.prose {
  max-width: var(--measure);
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.72;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2.2em;
  padding-top: 0.2em;
  color: var(--ink-950);
  font-size: clamp(1.35rem, 1.2vw + 1rem, 1.65rem);
  line-height: 1.25;
}

.prose h3 {
  margin-top: 1.9em;
  color: var(--ink-950);
  font-size: 1.16rem;
  line-height: 1.35;
}

.prose h4 {
  margin-top: 1.6em;
  color: var(--ink-950);
  font-size: 1.02rem;
}

.prose > h2:first-child,
.prose > h3:first-child {
  margin-top: 0;
}

.prose p {
  max-width: none;
}

.prose a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

.prose strong {
  color: var(--ink-950);
  font-weight: 700;
}

.prose ul,
.prose ol {
  margin-left: 1.2em;
  padding-left: 0.4em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.5em;
}

.prose li::marker {
  color: var(--ink-400);
}

.prose blockquote {
  margin-left: 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--primary-soft);
  color: var(--text-muted);
}

.prose hr {
  margin-block: 2.2em;
  height: 1px;
  background: var(--line);
  border: 0;
}

.prose table {
  width: 100%;
  display: block;
  overflow-x: auto;
  font-size: 0.95rem;
}

.prose table th,
.prose table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
}

.prose table th {
  color: var(--ink-950);
  background: var(--surface-2);
  font-weight: 680;
}

.prose dl {
  display: grid;
  gap: 6px;
}

.prose dt {
  color: var(--ink-950);
  font-weight: 680;
}

.prose dd {
  margin-left: 0;
  padding-bottom: 8px;
}

.doc-meta {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Sticky in-page table of contents for legal pages */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  font-size: 0.9rem;
}

.toc h2 {
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.toc ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  color: var(--text-secondary);
}

.toc a:hover {
  color: var(--link);
}

@media (max-width: 860px) {
  .toc {
    position: static;
  }
}

/* 17 — Utilities ========================================================= */

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

.text-center {
  text-align: center;
}

.center-measure {
  margin-inline: auto;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 8px;
}
.mt-2 {
  margin-top: 16px;
}
.mt-3 {
  margin-top: 24px;
}
.mt-4 {
  margin-top: 32px;
}
.mt-5 {
  margin-top: 48px;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 8px;
}
.mb-2 {
  margin-bottom: 16px;
}
.mb-3 {
  margin-bottom: 24px;
}
.mb-4 {
  margin-bottom: 32px;
}

.flow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hidden,
[hidden] {
  display: none !important;
}

.no-wrap {
  white-space: nowrap;
}

.full-measure {
  max-width: none;
}

/* 18 — Motion, print ===================================================== */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  a.card:hover,
  .card-link:hover {
    transform: none;
  }
}

@media print {
  :root {
    --canvas: #ffffff;
    --surface: #ffffff;
    --surface-2: #ffffff;
    --text: #000000;
    --text-secondary: #1a1a1a;
    --text-muted: #333333;
    --line: #bbbbbb;
  }

  html,
  body {
    color: #000000;
    background: #ffffff;
    font-size: 11.5pt;
  }

  .site-header,
  .site-footer,
  .cta-band,
  .btn-row,
  .skip-link,
  .nav-toggle,
  .nav-toggle-label,
  .toc,
  .breadcrumb {
    display: none !important;
  }

  .section,
  .section-tight {
    padding-block: 0;
  }

  .prose,
  .container,
  .container-narrow {
    max-width: none;
    padding-inline: 0;
  }

  .prose h2,
  .prose h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

  .prose p,
  .prose li,
  .card,
  .faq-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .card,
  .faq-item {
    border: 1px solid #bbbbbb;
    box-shadow: none;
  }

  .faq-item > summary::after {
    display: none;
  }

  .prose a::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }

  .prose a[href^="#"]::after {
    content: "";
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}

/* ---------------------------------------------------------------------------
   Primary-button text is always white on blue.

   Container link rules such as `.site-nav a` or `.prose a` carry higher
   specificity (0,1,1) than `.btn-primary` (0,1,0), so they silently won and
   left dark text on a blue fill. These selectors keep the label readable in
   every context and in both colour schemes; do not lower their specificity.
   --------------------------------------------------------------------------- */
a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active,
button.btn-primary,
.btn.btn-primary,
.site-nav a.btn-primary,
.prose a.btn-primary,
.site-footer a.btn-primary {
  color: #ffffff;
}

/* Keep the icon glyphs inside a primary button matched to the label. */
a.btn-primary svg,
button.btn-primary svg,
.btn.btn-primary svg {
  color: currentColor;
}

/* ===========================================================================
   Hero film — the product doing real work.

   This is a screen recording of the shipped application: an admin signs in,
   creates a program, adds teammates with roles, then adds and assigns tasks.
   It leads the hero because a real workflow is more persuasive than any
   abstraction of one, and it is given the full container width because the
   interface text has to stay readable.

   The video carries no `autoplay` attribute. The script starts it only when the
   visitor has not asked for reduced motion, so the no-JS and reduced-motion
   baseline is a still poster rather than unstoppable movement.
   =========================================================================== */

/* Copy at 1x, film at 2x: the recording needs the width to stay readable, and
   splitting the row keeps the whole demo above the fold without scrolling. */
.hero-film-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(28px, 3.2vw, 52px);
  padding-block: clamp(32px, 3.6vw, 56px);
}

/* The film has to be reachable without scrolling, so the copy above it is
   deliberately compact: the headline steps down a size and the measure is
   tighter than the body default. */
.hero-film h1 {
  font-size: clamp(1.95rem, 2.9vw, 2.65rem);
  line-height: 1.07;
}

.hero-film .lead {
  max-width: 60ch;
  font-size: clamp(0.98rem, 1.15vw, 1.1rem);
}

.hero-film .hero-eyebrow {
  margin-bottom: 14px;
}

.hero-copy-lead {
  max-width: none;
}

.film {
  width: 100%;
  margin: 0;
}

.film-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: clamp(10px, 1.2vw, 16px);
  box-shadow: 0 40px 90px -40px rgba(2, 6, 23, 0.96), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.film-video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--dark-2);
}

/* Sits over the film, quiet until focused or hovered. */
.film-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 14px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.68);
  border: 1px solid rgba(226, 232, 240, 0.24);
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 650;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
  backdrop-filter: blur(6px);
}

.film-frame:hover .film-toggle,
.film-toggle:focus-visible {
  opacity: 1;
}

.film-toggle:hover {
  background: rgba(2, 6, 23, 0.86);
}

/* Never hide the control from keyboard users behind a hover state. */
@media (hover: none) {
  .film-toggle {
    opacity: 1;
  }
}

.film-caption {
  max-width: 68ch;
  margin: 12px 0 0;
  color: rgba(226, 232, 240, 0.66);
  font-size: 0.76rem;
  line-height: 1.5;
}

.hero-film .hero-meta {
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  margin-top: clamp(18px, 2.2vw, 26px);
}

/* One column once the film would be too narrow to read side by side. */
@media (max-width: 980px) {
  .hero-film-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .film-caption {
    font-size: 0.72rem;
  }
  .film-toggle {
    opacity: 1;
  }
}
