/* ============================================================
   ReliCheck, preview design system (2026 redesign)
   Tokens, primitives, layout, components.
   Three container scales:
     --container-app:     1440px   (full app chrome)
     --container-content: 1280px   (marketing pages, dashboards)
     --container-survey:   820px   (single-survey content, prose, forms)
   Breakpoints:
     mobile     < 640
     tablet     640, 1023
     laptop     1024, 1279
     desktop    1280, 1535
     ultrawide  >= 1536
   ============================================================ */

/* --------------------------- Tokens --------------------------- */
:root {
  /* Containers */
  --container-app:     1440px;
  --container-content: 1280px;
  --container-survey:   820px;
  --container-narrow:   720px;
  --gutter:             clamp(20px, 4vw, 40px);

  /* Spacing scale (8px base, with 4px micro-step) */
  --s-1:   4px;
  --s-2:   8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-8:  32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* Section rhythm */
  --section-y-mobile:  56px;
  --section-y:         clamp(56px, 8vw, 112px);
  --section-y-hero:    clamp(64px, 10vw, 144px);

  /* Type scale (fluid) */
  --text-xs:   0.875rem;    /* 14 (raised from 12, site-wide minimum 2026-05-09) */
  --text-sm:   0.8125rem;   /* 13 (above the 12px floor; left unchanged) */
  --text-base: clamp(0.9375rem, 0.88rem + 0.18vw, 1.0625rem);
  --text-lg:   clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --text-xl:   clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --text-2xl:  clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --text-3xl:  clamp(1.625rem, 1.35rem + 1.2vw, 2.25rem);
  --text-4xl:  clamp(2rem, 1.55rem + 2vw, 2.875rem);
  --text-5xl:  clamp(2.5rem, 1.75rem + 3.4vw, 3.875rem);
  --text-6xl:  clamp(2.875rem, 2rem + 4.2vw, 4.5rem);

  /* Type weights */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* Surfaces */
  --bg:        #F6F7F9;
  --bg-soft:   #F6F7F9;
  --bg-muted:  #eef1f7;
  --bg-elev:   #ffffff;

  /* Ink (text), increasing darkness */
  --ink-3: #b3bbcc;
  --ink-4: #8d97b1;
  --ink-5: #6b7691;
  --ink-6: #4a5578;
  --ink-7: #2d3a5c;
  --ink-8: #1c2745;
  --ink-9: #0b1733;

  /* Lines */
  --line:        #e6eaf2;
  --line-strong: #d3d9e6;

  /* Brand */
  --navy:    #0b1733;
  --navy-2:  #142348;
  --navy-3:  #1c2f5e;
  --navy-glow: rgba(11, 23, 51, 0.06);

  /* Accent, coral (kept) */
  --accent:        #e85d3a;
  --accent-hover:  #cc4a2a;
  --accent-active: #b6321a;
  --accent-soft:   #fdeee9;
  --accent-tint:   #fff7f3;

  /* Secondary accents */
  --teal:    #1f9e9b;
  --teal-soft: #e6f6f6;
  --gold:    #d4a017;
  --gold-soft: #fbf4dd;

  /* States */
  --success:      #1f8a4d;
  --success-soft: #e7f5ec;
  --error:        #c83333;
  --error-soft:   #fbe9e9;

  /* Radius */
  --r-sm:  6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-xs: 0 1px 2px rgba(11, 23, 51, 0.04);
  --shadow-sm: 0 1px 2px rgba(11, 23, 51, 0.04), 0 2px 4px rgba(11, 23, 51, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 23, 51, 0.06), 0 2px 4px rgba(11, 23, 51, 0.04);
  --shadow-lg: 0 16px 40px rgba(11, 23, 51, 0.08), 0 4px 12px rgba(11, 23, 51, 0.04);
  --shadow-xl: 0 32px 64px rgba(11, 23, 51, 0.10), 0 8px 20px rgba(11, 23, 51, 0.05);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --d-fast: 120ms;
  --d-med:  220ms;
  --d-slow: 340ms;

  /* Type families */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "SF Pro Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "SF Pro Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* --------------------------- Reset --------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink-9);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; transition: color var(--d-fast) var(--ease); }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent-soft); color: var(--accent-active); }

/* --------------------------- Layout --------------------------- */
.container,
.container-content {
  width: 100%;
  max-width: var(--container-content);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container-app {
  width: 100%;
  max-width: var(--container-app);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container-survey {
  width: 100%;
  max-width: var(--container-survey);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-soft { background: var(--bg-soft); }
.section-ink  { background: var(--navy); color: #cbd2e6; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #fff; }

/* --------------------------- Typography --------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  color: var(--ink-9);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: var(--text-5xl); letter-spacing: -0.025em; }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); letter-spacing: -0.015em; }
h4 { font-size: var(--text-xl); font-family: var(--font-sans); font-weight: var(--fw-semibold); }
p  { margin: 0 0 1em; color: var(--ink-7); }

.eyebrow,
.kicker {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.lede {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--ink-6);
  max-width: 60ch;
}
.section-head {
  max-width: 720px;
  margin: 0 auto var(--s-12);
  text-align: center;
}
.section-head .kicker { margin-bottom: var(--s-4); }
.section-head h2 { margin-bottom: var(--s-4); }
.section-head p { color: var(--ink-6); font-size: var(--text-lg); }

.text-mute { color: var(--ink-5); }
.text-soft { color: var(--ink-6); }
.text-ink  { color: var(--ink-9); }

/* --------------------------- Buttons --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 44px;
  padding: 0 var(--s-6);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.005em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--d-fast) var(--ease),
              background var(--d-fast) var(--ease),
              border-color var(--d-fast) var(--ease),
              color var(--d-fast) var(--ease),
              box-shadow var(--d-fast) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-lg { height: 52px; padding: 0 var(--s-8); font-size: var(--text-lg); border-radius: var(--r-lg); }
.btn-sm { height: 36px; padding: 0 var(--s-4); font-size: var(--text-sm); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: var(--bg);
  color: var(--ink-9);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--ink-7); color: var(--ink-9); }
.btn-ghost {
  background: transparent;
  color: var(--ink-7);
}
.btn-ghost:hover { color: var(--ink-9); background: var(--bg-soft); }
.btn-ink {
  background: var(--navy);
  color: #fff;
}
.btn-ink:hover { background: var(--navy-2); color: #fff; transform: translateY(-1px); }

/* --------------------------- Nav --------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--d-med) var(--ease),
              border-color var(--d-med) var(--ease),
              box-shadow var(--d-med) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.92);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-6);
  height: 80px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 1.25rem;
  color: var(--ink-9);
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: 13px;
  letter-spacing: 0;
}
.brand-mark::after { content: "R"; }
.brand img { height: 56px; width: auto; display: block; }
.brand.brand-image { gap: 0; }
.brand.brand-image .brand-mark { display: none; }
.nav-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
}
.nav-primary a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  font-size: 14.5px;
  font-weight: var(--fw-medium);
  color: #16213E;
  letter-spacing: -0.005em;
  border-radius: 6px;
  transition: color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.nav-primary a:hover { color: var(--ink-9); background: #F4F6FA; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; stroke: var(--ink-9); }

@media (max-width: 1023px) {
  .nav-primary { display: none; }
  .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: var(--s-6) var(--gutter) var(--s-12);
  z-index: 55;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d-med) var(--ease), transform var(--d-med) var(--ease);
  overflow-y: auto;
}
.nav-drawer.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-drawer a {
  display: block;
  padding: var(--s-3) 0;
  font-size: var(--text-lg);
  font-weight: var(--fw-medium);
  color: var(--ink-9);
  border-bottom: 1px solid var(--line);
}
.nav-drawer .drawer-cta { margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.nav-drawer .drawer-cta .btn { width: 100%; height: 48px; }

/* --------------------------- Hero --------------------------- */
.hero {
  padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 8vw, 96px);
  background:
    radial-gradient(800px 360px at 12% 0%, rgba(232, 93, 58, 0.05), transparent 70%),
    radial-gradient(800px 360px at 90% 20%, rgba(31, 158, 155, 0.04), transparent 70%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-eyebrow { margin-bottom: var(--s-5); }
.hero h1 {
  font-size: var(--text-6xl);
  margin-bottom: var(--s-6);
  max-width: 14ch;
}
.hero .lede { margin-bottom: var(--s-8); max-width: 56ch; }
.hero-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: var(--s-8);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-4);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--text-sm);
  color: var(--ink-6);
}
.hero-meta::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(31, 138, 77, 0.15);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-2xl);
  background:
    linear-gradient(180deg, #ffffff 0%, #F6F7F9 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(360px 200px at 70% 30%, rgba(232, 93, 58, 0.10), transparent 70%),
    radial-gradient(280px 200px at 20% 80%, rgba(11, 23, 51, 0.06), transparent 70%);
}
.hero-visual-inner {
  position: absolute;
  inset: 18px;
  border-radius: var(--r-xl);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: var(--s-6);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--s-4);
}
.hero-visual-bar {
  display: flex; gap: 6px;
}
.hero-visual-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #e6eaf2;
}
.hero-visual-bar span:nth-child(1) { background: #ffd1c5; }
.hero-visual-bar span:nth-child(2) { background: #f5e3b1; }
.hero-visual-bar span:nth-child(3) { background: #c4ecea; }

.hero-visual-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-2) 0;
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, #f7f9fd 0%, #eef2f8 100%);
  min-height: 180px;
}
.hero-visual-chart i {
  display: block;
  background: linear-gradient(180deg, var(--navy-3) 0%, var(--navy) 100%);
  border-radius: 4px 4px 0 0;
}
.hero-visual-chart i:nth-child(1) { height: 40%; }
.hero-visual-chart i:nth-child(2) { height: 62%; }
.hero-visual-chart i:nth-child(3) { height: 48%; }
.hero-visual-chart i:nth-child(4) { height: 78%; background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%); }
.hero-visual-chart i:nth-child(5) { height: 56%; }
.hero-visual-chart i:nth-child(6) { height: 84%; }
.hero-visual-chart i:nth-child(7) { height: 70%; }

.hero-visual-meta {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s-3);
}
.hero-visual-meta div {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--s-3);
}
.hero-visual-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink-9);
}
.hero-visual-meta small { font-size: 11px; color: var(--ink-5); text-transform: uppercase; letter-spacing: 0.08em; }

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 600px; margin: 0 auto; }
}

/* --------------------------- Strip --------------------------- */
/* AI + Reliability card under the hero image. Stacked layout with a coral
   pill tag on top, then the thesis sentence in Fraunces serif. Soft shadow
   and a subtle coral wash on the background tie it to the brand without
   feeling busy. (2026-05-09 visibility redesign.) */
.hero-aireliability {
  margin-top: 28px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #fff7f3 0%, #ffffff 70%);
  border: 1px solid #f4d8cc;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(232, 93, 58, 0.08), 0 1px 2px rgba(11, 23, 51, 0.03);
}
.hero-aireliability-tag {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(232, 93, 58, 0.25);
}
.hero-aireliability-text {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-9);
  letter-spacing: -0.005em;
}
.hero-aireliability-text strong {
  color: var(--accent);
  font-weight: var(--fw-semibold);
  font-style: italic;
}
@media (max-width: 640px) {
  .hero-aireliability { padding: 20px 22px; margin-top: 20px; }
  .hero-aireliability-text { font-size: 17px; }
}

/* Old dark strip retained for any other page that might still use it,
   but the homepage no longer references this class. */
.strip {
  background: var(--navy);
  color: #ffffff;
  padding: var(--s-6) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.strip-row {
  display: flex; align-items: center; justify-content: center; gap: var(--s-4);
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #ffffff;
}
.strip-row strong { color: #fff; font-weight: var(--fw-bold); }
.strip-tag {
  background: rgba(232, 93, 58, 0.30);
  color: #ffd6c4;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------- Steps --------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.step {
  padding: var(--s-6) var(--s-5);
  border-right: 1px solid var(--line);
  display: grid; gap: var(--s-2);
}
.step:last-child { border-right: 0; }
.step-num {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: var(--fw-bold);
}
.step-label {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--ink-9);
}
.step-sub { font-size: var(--text-sm); color: var(--ink-5); }
@media (max-width: 1023px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
}

/* --------------------------- Cards --------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-8); }
@media (max-width: 1023px) {
  .cards   { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards, .cards-3, .cards-2 { grid-template-columns: 1fr; gap: var(--s-4); }
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: grid;
  gap: var(--s-3);
  transition: transform var(--d-med) var(--ease),
              box-shadow var(--d-med) var(--ease),
              border-color var(--d-med) var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  color: var(--ink-5);
}
.card h3 {
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
}
.card p { font-size: var(--text-base); color: var(--ink-6); margin: 0; }
.card-meta {
  margin-top: var(--s-2);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  color: var(--ink-5);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
}

/* "Three things" accent card */
.feature-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  position: relative;
}
.feature-card .icon-tile {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
  font-weight: var(--fw-bold);
}
.feature-card h3 {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--s-3);
}
.ai-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: linear-gradient(120deg, #1c2f5e 0%, var(--navy) 100%);
  color: #fff;
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  border-radius: 999px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Intent pill cards (smaller cards) */
.intent {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
  display: flex; flex-direction: column;
  gap: var(--s-2);
  transition: border-color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.intent:hover { border-color: var(--accent); background: var(--accent-tint); }
.intent h3 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  margin: 0;
}
.intent p { color: var(--ink-6); font-size: var(--text-sm); margin: 0; }
.intent .arrow { margin-top: var(--s-2); color: var(--accent); font-weight: var(--fw-semibold); font-size: var(--text-sm); }

/* ============================================================
   Phase 51c rebuild: ReliCheck Survey Strength Index showcase
   ----
   The previous CSS Grid implementation kept producing horizontal
   overflow at narrow widths. This rebuild uses flex + a native
   <table> for the breakdown so the browser handles wrapping.
   No grid-template-columns anywhere. No minmax tricks. Nothing
   that requires an exact pixel budget.
   ============================================================ */
.ssi2-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(16px, 3vw, 32px);
  max-width: 100%;
  box-sizing: border-box;
}

/* ---- Header: ring + title + status + readout ---- */
.ssi2-header {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.ssi2-ring { position: relative; width: 160px; height: 160px; flex: 0 0 160px; }
.ssi2-ring svg { width: 100%; height: 100%; display: block; }
.ssi2-ring-num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1; pointer-events: none;
}
.ssi2-ring-num .n {
  font-family: var(--font-serif); font-size: 48px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink);
}
.ssi2-ring-num .of { font-size: 14px; color: var(--ink-6); margin-top: 4px; }
.ssi2-header-text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ssi2-title {
  font-family: var(--font-serif); font-size: clamp(22px, 3.4vw, 28px);
  font-weight: 700; letter-spacing: -0.015em;
  margin: 0; color: var(--ink); line-height: 1.15;
  overflow-wrap: anywhere;
}
.ssi2-status {
  display: inline-flex; align-self: flex-start;
  padding: 4px 12px; border-radius: 999px;
  background: #ecfdf3; color: #1f9d55; font-weight: 700; font-size: 14px;
}
.ssi2-readout { margin: 0; color: var(--ink-6); font-size: 15px; line-height: 1.55; }

/* ---- Six domain tiles. Flex wrap with auto-fit basis. ---- */
.ssi2-tiles {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.ssi2-tile {
  flex: 1 1 calc((100% - 60px) / 6); /* prefer 6-up */
  min-width: 140px;                  /* but wrap before going below 140 */
  background: var(--bg-soft, #f4f5fb); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
  box-sizing: border-box;
  min-width: 0; /* fallback for older browsers; the basis still wraps */
}
.ssi2-tile { min-width: 140px; } /* explicit override of the safety reset */
.ssi2-tile-name {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  line-height: 1.25; overflow-wrap: anywhere;
}
.ssi2-tile-name .ic {
  width: 22px; height: 22px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px;
  font-size: 12px;
}
.ssi2-tile-num { font-family: var(--font-serif); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.ssi2-tile-num span { font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--ink-6); }
.ssi2-tile-bar { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ssi2-tile-bar > span { display: block; height: 100%; border-radius: 999px; }
.ssi2-tile[data-tone="good"] .ssi2-tile-num { color: #1f9d55; }
.ssi2-tile[data-tone="good"] .ssi2-tile-bar > span { background: #1f9d55; }
.ssi2-tile[data-tone="good"] .ic { background: #ecfdf3; color: #1f9d55; }
.ssi2-tile[data-tone="warn"] .ssi2-tile-num { color: #c75617; }
.ssi2-tile[data-tone="warn"] .ssi2-tile-bar > span { background: #e85d3a; }
.ssi2-tile[data-tone="warn"] .ic { background: #fff3eb; color: #c75617; }
.ssi2-tile[data-tone="bad"] .ssi2-tile-num { color: #c8334b; }
.ssi2-tile[data-tone="bad"] .ssi2-tile-bar > span { background: #c8334b; }
.ssi2-tile[data-tone="bad"] .ic { background: #fdeff2; color: #c8334b; }

/* ---- Bottom: breakdown table + top strengths list. Flex wrap. ---- */
.ssi2-bottom {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 32px);
}
.ssi2-breakdown { flex: 1 1 320px; min-width: 0; }
.ssi2-strengths { flex: 1 1 240px; min-width: 0; }
.ssi2-sec-title {
  font-size: 13px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px;
}

.ssi2-table {
  width: 100%; border-collapse: collapse; table-layout: auto;
  font-size: 14px; color: var(--ink);
}
.ssi2-table th { font-size: 12px; font-weight: 500; color: var(--ink-6); text-align: right; padding: 0 0 8px; }
.ssi2-table th.lbl { text-align: left; }
.ssi2-table td { padding: 8px 0; vertical-align: middle; }
.ssi2-table td.lbl { padding-right: 12px; overflow-wrap: anywhere; }
.ssi2-table td.score { white-space: nowrap; text-align: right; color: var(--ink-6); padding: 8px 12px 8px 0; }
.ssi2-table td.score strong { color: var(--ink); font-weight: 700; }
.ssi2-table td.wt { white-space: nowrap; text-align: right; color: var(--ink-6); }
.ssi2-table .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 8px;
  vertical-align: middle;
}
.ssi2-table .dot.good { background: #1f9d55; }
.ssi2-table .dot.warn { background: #e85d3a; }
.ssi2-table .dot.bad  { background: #c8334b; }
.ssi2-table tfoot td {
  border-top: 1px solid var(--line);
  padding-top: 12px; font-weight: 700; color: var(--ink);
}
.ssi2-table tfoot td.score, .ssi2-table tfoot td.wt { color: var(--ink); }

.ssi2-strengths ul { list-style: none; margin: 0; padding: 0; }
.ssi2-strengths li {
  display: flex; align-items: flex-start; gap: 10px; padding: 8px 0;
  font-size: 14px; color: var(--ink); line-height: 1.45;
}
.ssi2-strengths .check {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 999px;
  background: #ecfdf3; color: #1f9d55;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; margin-top: 1px;
}

/* ============================================================
   Old .rssi-* classes left below for any cached references.
   Safe to delete in a future pass.
   ============================================================ */
.rssi-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--s-7);
  overflow: hidden;
  min-width: 0;
}
@media (max-width: 600px) { .rssi-card { padding: var(--s-5); } }
.rssi-head {
  display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: var(--s-7); align-items: center;
  padding-bottom: var(--s-6); border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-6);
}
@media (max-width: 760px) { .rssi-head { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.rssi-ring { position: relative; width: 160px; height: 160px; }
.rssi-ring svg { width: 100%; height: 100%; display: block; }
.rssi-ring-num {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1;
}
.rssi-ring-num .n {
  font-family: var(--font-serif); font-size: 48px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink);
}
.rssi-ring-num .of { font-size: 14px; color: var(--ink-6); margin-top: 4px; }
.rssi-head-text { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.rssi-title { font-family: var(--font-serif); font-size: 28px; font-weight: 700; letter-spacing: -0.015em; margin: 0; color: var(--ink); line-height: 1.1; }
@media (max-width: 760px) { .rssi-title { font-size: 24px; } }
.rssi-status {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 4px 14px; border-radius: 999px;
  background: #ecfdf3; color: #1f9d55; font-weight: var(--fw-bold); font-size: 14px;
}
.rssi-readout { margin: 0; color: var(--ink-6); font-size: 15px; line-height: 1.55; max-width: 56ch; }

.rssi-domains {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-3); margin-bottom: var(--s-6);
}
@media (max-width: 1100px) { .rssi-domains { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .rssi-domains { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px)  { .rssi-domains { grid-template-columns: 1fr; } }
.rssi-domain {
  background: var(--bg-soft, #f4f5fb); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 6px;
}
.rssi-domain-top { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: var(--fw-semibold); color: var(--ink); min-width: 0; }
.rssi-domain { min-width: 0; }
.rssi-domain-name { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.rssi-domain-icon {
  width: 24px; height: 24px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #ecfdf3; color: #1f9d55; font-size: 14px;
}
.rssi-domain-name { line-height: 1.25; }
.rssi-domain-num { font-family: var(--font-serif); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.rssi-domain-num .of { font-family: var(--font-sans); font-size: 14px; color: var(--ink-6); font-weight: 500; }
.rssi-domain-bar { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 2px; }
.rssi-domain-bar > span { display: block; height: 100%; border-radius: 999px; }
.rssi-domain[data-tone="good"] .rssi-domain-num { color: #1f9d55; }
.rssi-domain[data-tone="good"] .rssi-domain-bar > span { background: #1f9d55; }
.rssi-domain[data-tone="good"] .rssi-domain-icon { background: #ecfdf3; color: #1f9d55; }
.rssi-domain[data-tone="warn"] .rssi-domain-num { color: #c75617; }
.rssi-domain[data-tone="warn"] .rssi-domain-bar > span { background: #e85d3a; }
.rssi-domain[data-tone="warn"] .rssi-domain-icon { background: #fff3eb; color: #c75617; }
.rssi-domain[data-tone="bad"]  .rssi-domain-num { color: #c8334b; }
.rssi-domain[data-tone="bad"]  .rssi-domain-bar > span { background: #c8334b; }
.rssi-domain[data-tone="bad"]  .rssi-domain-icon { background: #fdeff2; color: #c8334b; }

.rssi-foot {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--s-7);
}
@media (max-width: 900px) { .rssi-foot { grid-template-columns: 1fr; } }
.rssi-breakdown { padding-right: var(--s-4); }
@media (max-width: 900px) { .rssi-breakdown { padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: var(--s-5); } }
.rssi-foot-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: 12px; }
.rssi-foot-head-cols { font-size: 13px; color: var(--ink-6); }
.rssi-bd-row {
  display: grid; grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) 80px 48px;
  gap: 14px; align-items: center; padding: 8px 0; font-size: 14px; color: var(--ink);
}
@media (max-width: 700px) {
  .rssi-bd-row { grid-template-columns: minmax(0, 1fr) 70px 44px; }
  .rssi-bd-row .bar { display: none; }
}
.rssi-bd-row .lbl { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.rssi-bd-row .dot { width: 8px; height: 8px; border-radius: 999px; flex: 0 0 auto; }
.rssi-bd-row .dot.good { background: #1f9d55; }
.rssi-bd-row .dot.warn { background: #e85d3a; }
.rssi-bd-row .dot.bad  { background: #c8334b; }
.rssi-bd-row .bar { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.rssi-bd-row .bar > span { display: block; height: 100%; border-radius: 999px; }
.rssi-bd-row .bar > span.good { background: #1f9d55; }
.rssi-bd-row .bar > span.warn { background: #e85d3a; }
.rssi-bd-row .bar > span.bad  { background: #c8334b; }
.rssi-bd-row .score { color: var(--ink-6); font-size: 14px; text-align: right; }
.rssi-bd-row .score strong { color: var(--ink); font-weight: var(--fw-bold); }
.rssi-bd-row .weight { color: var(--ink-6); font-size: 14px; text-align: right; }
.rssi-bd-total {
  display: grid; grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) 80px 48px;
  gap: 14px; align-items: center;
  border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px;
  font-weight: var(--fw-semibold); font-size: 15px;
}
.rssi-bd-total .lbl { white-space: nowrap; }
@media (max-width: 700px) {
  .rssi-bd-total { grid-template-columns: minmax(0, 1fr) 70px 44px; }
  .rssi-bd-total > span:nth-child(2) { display: none; }
  .rssi-bd-total .lbl { white-space: normal; }
}
.rssi-bd-total .score { text-align: right; color: var(--ink); }
.rssi-bd-total .weight { text-align: right; color: var(--ink-6); }

.rssi-strengths-list { list-style: none; padding: 0; margin: 0; }
.rssi-strengths-list li {
  display: flex; align-items: flex-start; gap: 10px; padding: 8px 0;
  font-size: 14px; color: var(--ink); line-height: 1.45;
}
.rssi-strengths-list .check {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 999px;
  background: #ecfdf3; color: #1f9d55; display: inline-flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold); font-size: 13px; margin-top: 1px;
}

/* Sample reports featured card */
.sample-featured {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--s-8); margin-top: var(--s-2);
}
.sample-featured-grid {
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: var(--s-8); align-items: center;
}
@media (max-width: 900px) { .sample-featured-grid { grid-template-columns: 1fr; } }
.sample-featured-ring { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.sample-featured-ring svg { width: 100%; height: 100%; }
.sample-featured-ring-num {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1;
}
.sample-featured-ring-num .n {
  font-family: var(--font-serif); font-size: 62px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink);
}
.sample-featured-ring-num .of { font-size: 16px; color: var(--ink-6); margin-top: 4px; }
.sample-featured-facts { display: flex; flex-direction: column; gap: var(--s-3); }
.sample-featured-facts > div {
  display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: var(--s-4);
  padding: var(--s-3) 0; border-bottom: 1px solid var(--line);
  font-size: 15px; line-height: 1.55;
}
.sample-featured-facts > div:last-child { border-bottom: 0; }
.sample-featured-facts .lab { color: var(--ink-6); text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; font-weight: var(--fw-bold); }
.sample-featured-facts .val { color: var(--ink); font-weight: var(--fw-semibold); }

/* Import Data page upload cards */
.import-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); margin-top: var(--s-6); }
.import-paths-5 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 1280px) { .import-paths-5 { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 900px) { .import-paths, .import-paths-5 { grid-template-columns: 1fr; } }
.import-path-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--s-7); display: flex; flex-direction: column; gap: var(--s-3);
  position: relative;
}
.import-path-card .ic {
  width: 48px; height: 48px; border-radius: 999px;
  background: #fde9e2; color: #c75617;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.import-path-card h3 { margin: 0; font-family: var(--font-sans); font-size: var(--text-2xl); font-weight: var(--fw-semibold); }
.import-path-card p  { margin: 0; color: var(--ink-6); font-size: var(--text-sm); line-height: 1.55; }
.import-path-card .sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-3); }
.import-path-card .source {
  font-size: 13px; padding: 3px 10px; border-radius: 999px;
  background: var(--bg-soft, #f4f5fb); border: 1px solid var(--line); color: var(--ink-6);
}
.import-path-card .source.coming { background: #fff8e6; color: #8a5b00; border-color: #ffe7a8; }
.import-path-card .cta {
  margin-top: var(--s-4); display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: var(--fw-semibold); font-size: var(--text-sm); text-decoration: none;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(420px 240px at 80% 20%, rgba(232, 93, 58, 0.22), transparent 60%),
    radial-gradient(360px 220px at 10% 90%, rgba(31, 158, 155, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  color: #fff;
  font-size: var(--text-4xl);
  max-width: 22ch;
  margin: 0 auto var(--s-6);
  letter-spacing: -0.02em;
}
.cta-band em { color: var(--accent); font-style: normal; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 56ch; margin: 0 auto var(--s-8); font-size: var(--text-lg); }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-outline { background: transparent; border-color: rgba(255,255,255,0.3); color: #fff; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: #fff; }

/* --------------------------- Footer --------------------------- */
.site-footer {
  background: var(--navy);
  color: #cbd2e6;
  padding: var(--s-20) 0 var(--s-10);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--s-10);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--s-4);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.footer-grid a { color: rgba(255,255,255,0.78); font-size: var(--text-base); }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  padding-top: var(--s-6);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
}
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --------------------------- Long-form prose --------------------------- */
.prose {
  max-width: 72ch;
  margin: 0 auto;
}
.prose h2 {
  font-size: var(--text-3xl);
  margin: var(--s-12) 0 var(--s-4);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: var(--text-xl);
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  margin: var(--s-8) 0 var(--s-3);
  letter-spacing: -0.01em;
}
.prose p { font-size: var(--text-lg); line-height: 1.75; color: var(--ink-7); }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--ink-7);
  padding-left: 1.4em;
  margin: 0 0 1em;
}
.prose li { margin-bottom: var(--s-2); }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.prose blockquote {
  margin: var(--s-8) 0;
  padding: var(--s-6) var(--s-8);
  border-left: 3px solid var(--accent);
  background: var(--accent-tint);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--text-lg);
  color: var(--ink-8);
  font-style: italic;
}
.callout {
  margin: var(--s-8) 0;
  padding: var(--s-6);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.callout strong { color: var(--ink-9); }
.callout-title {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
}

/* Article header */
.article-header { padding: clamp(56px, 8vw, 96px) 0 var(--s-12); }
.article-header .crumb {
  font-size: var(--text-sm);
  color: var(--ink-5);
  margin-bottom: var(--s-4);
}
.article-header .crumb a { color: var(--ink-6); }
.article-header h1 {
  font-size: var(--text-5xl);
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin-bottom: var(--s-5);
}
.article-header .lede { max-width: 60ch; }
.article-meta {
  margin-top: var(--s-6);
  display: flex; gap: var(--s-4); flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--ink-5);
}

/* Centered article-header modifier (used by Resources: Reference pages) */
.article-header.is-centered { text-align: center; }
.article-header.is-centered .crumb { justify-content: center; display: flex; gap: 6px; }
.article-header.is-centered h1 { margin-left: auto; margin-right: auto; }
.article-header.is-centered .lede { margin-left: auto; margin-right: auto; }
.article-header.is-centered .article-meta { justify-content: center; }

/* Article layout with TOC */
.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s-16);
  align-items: start;
}
.article-toc {
  position: sticky;
  top: 92px;
  font-size: var(--text-sm);
}
.article-toc h4 {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-5);
  font-weight: var(--fw-bold);
  margin-bottom: var(--s-3);
}
.article-toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.article-toc a {
  color: var(--ink-6);
  display: block;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: var(--s-3);
  transition: color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
.article-toc a:hover, .article-toc a.is-active {
  color: var(--ink-9);
  border-left-color: var(--accent);
}
@media (max-width: 1023px) {
  .article-layout { grid-template-columns: 1fr; gap: var(--s-8); }
  .article-toc { position: static; padding-bottom: var(--s-6); border-bottom: 1px solid var(--line); }
  .article-toc ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
  .article-toc a { padding-left: 0; border-left: 0; }
}

/* --------------------------- App shell --------------------------- */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.app-side {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: var(--bg);
  padding: var(--s-6) var(--s-4);
  display: flex; flex-direction: column;
  gap: var(--s-6);
}
.app-side .brand { padding: 0 var(--s-3); }
.app-side .side-section h5 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-5);
  font-weight: var(--fw-bold);
  padding: 0 var(--s-3) var(--s-2);
}
.app-side nav { display: grid; gap: 2px; }
.app-side nav a {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 8px var(--s-3);
  border-radius: var(--r-sm);
  color: var(--ink-7);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
}
.app-side nav a:hover { background: var(--bg-soft); color: var(--ink-9); }
.app-side nav a.is-active {
  background: var(--accent-tint);
  color: var(--accent-active);
}
.app-side nav a.is-active::before { content: ""; width: 3px; height: 16px; background: var(--accent); border-radius: 2px; margin-right: -2px; }
.app-side-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: var(--s-4) var(--s-3) 0;
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--text-sm);
}
.app-side-foot .avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #c4ecea, #f5e3b1);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold);
  color: var(--navy);
}

.app-main {
  display: flex; flex-direction: column;
  min-width: 0;
  background: var(--bg-soft);
}
.app-topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding: var(--s-4) clamp(20px, 3vw, 40px);
  display: flex; align-items: center; gap: var(--s-4);
}
.app-search {
  flex: 1;
  max-width: 480px;
  height: 40px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 var(--s-4);
  display: flex; align-items: center; gap: var(--s-3);
  color: var(--ink-5);
  font-size: var(--text-sm);
}
.app-content {
  width: 100%;
  max-width: var(--container-content);
  margin: 0 auto;
  padding: var(--s-10) clamp(20px, 3vw, 40px) var(--s-20);
  display: grid;
  gap: var(--s-8);
}
.app-greeting h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--s-2);
}
.app-greeting p { color: var(--ink-6); margin: 0; }

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.metric {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  display: grid; gap: var(--s-2);
}
.metric label {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-5);
  font-weight: var(--fw-bold);
}
.metric strong {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--ink-9);
  letter-spacing: -0.02em;
}
.metric .delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--success);
}
.metric .delta.is-down { color: var(--error); }
@media (max-width: 1023px) {
  .metric-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .metric-row { grid-template-columns: 1fr; }
}

.panel-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--s-4);
  align-items: start;
}
@media (max-width: 1023px) {
  .panel-row { grid-template-columns: 1fr; }
}
.panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.panel-head {
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.panel-head h3 { font-family: var(--font-sans); font-size: var(--text-lg); font-weight: var(--fw-semibold); }
.panel-head .panel-sub { font-size: var(--text-sm); color: var(--ink-5); }
.panel-body { padding: var(--s-6); }
.panel-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.panel-table th {
  text-align: left;
  font-weight: var(--fw-semibold);
  color: var(--ink-5);
  padding: var(--s-3) var(--s-6);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.panel-table td {
  padding: var(--s-4) var(--s-6);
  border-bottom: 1px solid var(--line);
  color: var(--ink-8);
}
.panel-table tr:last-child td { border-bottom: 0; }
.panel-table .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  border-radius: var(--r-pill);
}
.pill-good { background: var(--success-soft); color: var(--success); }
.pill-warn { background: var(--gold-soft); color: #8b6a00; }
.pill-soft { background: var(--bg-soft); color: var(--ink-6); }

/* App side rail at narrow widths */
@media (max-width: 1023px) {
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
}

/* Utility */
.row { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }

/* --------------------------- Nav dropdowns (mega menu) --------------------------- */
.nav-dd { position: static; }
.nav-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: var(--fw-medium);
  color: #16213E;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.nav-dd-trigger:hover { color: var(--ink-9); background: #F4F6FA; }
/* Light gray pill matches SurveyMonkey active-tab look when dropdown is open. */
.nav-dd[data-open="true"] .nav-dd-trigger {
  color: #16213E;
  background: #F4F6FA;
}
.nav-dd-trigger.is-active {
  color: #16213E;
  background: #F4F6FA;
}
.nav-dd-trigger .nav-caret {
  font-size: 9px;
  color: #7A8499;
  margin-left: 1px;
  transition: transform var(--d-fast) var(--ease);
}
.nav-dd[data-open="true"] .nav-dd-trigger .nav-caret { transform: rotate(180deg); }

/* Mega panel: spans the full header width, drops below the header */
.nav-dd-panel {
  position: absolute;
  top: 60px;
  left: 0; right: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
  z-index: 70;
}
.nav-dd[data-open="true"] .nav-dd-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dd-panel-inner {
  width: 100%;
  max-width: var(--container-content);
  margin: 0 auto;
  padding: 32px var(--gutter) 44px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 72px;
  row-gap: 0;
  text-align: left;
  justify-items: stretch;
}
.nav-dd-panel-inner.is-two-col {
  grid-template-columns: 1fr 1fr;
  column-gap: 72px;
}
.nav-dd-panel-inner.is-narrow {
  grid-template-columns: 1fr;
  max-width: 560px;
  padding: 24px var(--gutter) 28px;
}

/* Mega section: flex column with explicit gap so item-to-item spacing
   is bulletproof against margin collapse or inherited line-height.
   align-items + text-align force left alignment regardless of parent. */
.mega-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
  text-align: left;
}
.mega-section h5 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7691;
  font-weight: var(--fw-semibold);
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
  text-align: left;
}
/* Each item is its own flex column. Title-to-description gap is 5px
   (tight pair). Item-to-item gap is the 28px gap on .mega-section above. */
.mega-section > a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 0;
  border-radius: 0;
  color: var(--ink-7);
  text-decoration: none;
  text-align: left;
  transition: color var(--d-fast) var(--ease);
}
.mega-section .mega-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: var(--s-3);
  align-items: start;
  padding: 0;
  border-radius: 0;
  color: var(--ink-7);
  text-decoration: none;
  text-align: left;
  transition: color var(--d-fast) var(--ease);
}
.mega-item .mega-ico {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0;
  flex-shrink: 0;
  margin-top: 1px;
}
.mega-item-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
/* TITLE: bold deep navy, tight pair with description. */
.mega-item strong,
.mega-section > a strong {
  display: block;
  color: #16213E;
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0;
}
/* DESCRIPTION: smaller, muted slate, regular weight. */
.mega-item span,
.mega-section > a span {
  display: block;
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: 13px;
  color: #7A8499;
  line-height: 1.5;
  margin: 0;
}
.mega-section > a:hover strong,
.mega-item:hover strong { color: var(--accent); }
.mega-section > a:hover,
.mega-item:hover { color: var(--ink-9); }

/* Compact mega: list of plain title-only links (Popular resources/templates).
   Matches the item title style so the whole menu reads at one type system. */
.mega-section .mega-link {
  display: block;
  padding: 0;
  color: #16213E;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.005em;
  text-align: left;
  text-decoration: none;
  transition: color var(--d-fast) var(--ease);
}
.mega-section .mega-link:hover { color: var(--accent); }
.mega-see-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--accent);
}
.mega-see-all:hover { color: var(--accent-hover); }

/* Backdrop dim when any mega is open */
.site-header.is-mega-open::before {
  content: "";
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: rgba(11, 23, 51, 0.18);
  pointer-events: none;
  z-index: 40;
}

/* Legacy class fallbacks (older preview pages) */
.nav-dd-panel.is-wide,
.nav-dd-grid,
.nav-dd-list { display: contents; }
.nav-dd-item { display: block; padding: var(--s-3); border-radius: var(--r-sm); }
.nav-dd-item.compact { padding: 8px var(--s-3); }
.nav-dd-item strong { display: block; }
.nav-dd-item span { display: block; }

/* Mobile drawer expansion of dropdowns */
.nav-drawer .drawer-group { border-bottom: 1px solid var(--line); padding: var(--s-3) 0; }
.nav-drawer .drawer-group h5 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-5);
  font-weight: var(--fw-bold);
  margin: 0 0 var(--s-2);
}
.nav-drawer .drawer-group a {
  border: 0;
  padding: 8px 0;
  font-size: var(--text-base);
}

/* --------------------------- Hero (image variant) --------------------------- */
.hero-image-frame {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
  background: var(--bg);
}
.hero-image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------- Pricing --------------------------- */
.price-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--text-sm);
}
.price-toggle button {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  cursor: pointer;
  color: var(--ink-6);
  font-weight: var(--fw-medium);
}
.price-toggle button.is-active {
  background: var(--bg);
  color: var(--ink-9);
  box-shadow: var(--shadow-xs);
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  align-items: stretch;
}
@media (max-width: 1023px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .price-grid { grid-template-columns: 1fr; }
}
.price-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.price-card:hover { border-color: var(--line-strong); }
.price-card.is-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
  position: relative;
}
.price-card.is-featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}
.price-tier {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-6);
}
.price-card.is-featured .price-tier { color: var(--accent); }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-amount .num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.7rem + 2vw, 2.75rem);
  font-weight: var(--fw-semibold);
  color: var(--ink-9);
  letter-spacing: -0.025em;
  line-height: 1;
}
.price-amount .per { font-size: var(--text-sm); color: var(--ink-5); }
.price-blurb { font-size: var(--text-sm); color: var(--ink-6); margin: 0; min-height: 3em; }
.price-list { list-style: none; padding: 0; margin: var(--s-2) 0 var(--s-6); display: grid; gap: 8px; }
.price-list li {
  font-size: var(--text-sm);
  color: var(--ink-7);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  color: var(--success);
  font-weight: var(--fw-bold);
}
.price-list li.dim { color: var(--ink-5); }
.price-list li.dim::before { content: "•"; color: var(--ink-4); }
.price-card .btn { margin-top: auto; width: 100%; }

/* Detailed comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: var(--s-4) var(--s-5);
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table th { background: var(--bg-soft); font-weight: var(--fw-semibold); color: var(--ink-9); font-size: var(--text-sm); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table .group-row td {
  background: var(--bg-soft);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-5);
  font-weight: var(--fw-bold);
  padding: var(--s-3) var(--s-5);
}
.compare-table .tier-cell { text-align: center; color: var(--ink-7); font-size: var(--text-sm); }
@media (max-width: 720px) {
  .compare-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table table { min-width: 640px; }
}

/* --------------------------- Solutions hero w/ image --------------------------- */
.solution-hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(700px 320px at 90% 10%, rgba(232, 93, 58, 0.06), transparent 70%),
    var(--bg);
}
.solution-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 1023px) { .solution-hero-grid { grid-template-columns: 1fr; } }
.solution-hero h1 { font-size: var(--text-5xl); margin-bottom: var(--s-5); max-width: 18ch; }
.solution-hero em { color: var(--accent); font-style: normal; }
.solution-hero .lede { margin-bottom: var(--s-8); }

/* --------------------------- Comparison "pick when" cards --------------------------- */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 1023px) { .pick-grid { grid-template-columns: 1fr; } }
.pick-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.pick-card.is-us {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-tint) 0%, var(--bg) 60%);
}
.pick-card h3 {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--s-4);
}
.pick-card.is-us h3 { color: var(--accent-active); }
.pick-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.pick-card li {
  font-size: var(--text-sm);
  color: var(--ink-7);
  padding-left: 20px;
  position: relative;
  line-height: 1.55;
}
.pick-card li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: var(--fw-bold); }

/* Cross-comparison feature mark cells */
.cmp-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
}
.cmp-mark .icon {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 11px; font-weight: var(--fw-bold);
}
.cmp-mark.yes { color: var(--success); }
.cmp-mark.yes .icon { background: var(--success-soft); color: var(--success); }
.cmp-mark.no { color: var(--ink-5); }
.cmp-mark.no .icon { background: var(--bg-soft); color: var(--ink-5); }
.cmp-mark.partial { color: #8b6a00; }
.cmp-mark.partial .icon { background: var(--gold-soft); color: #8b6a00; }
.cmp-note { display: block; font-size: 11px; color: var(--ink-5); font-weight: var(--fw-regular); margin-top: 2px; }

/* Education / solutions feature grid (3-up) */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
@media (max-width: 1023px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .feat-grid { grid-template-columns: 1fr; } }
.feat-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: grid;
  gap: var(--s-2);
}
.feat-card .tag {
  display: inline-block;
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  width: max-content;
  margin-bottom: var(--s-2);
}
.feat-card h3 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}
.feat-card p { font-size: var(--text-sm); color: var(--ink-6); margin: 0; line-height: 1.6; }

/* FAQ accordion */
.faq { display: grid; gap: var(--s-2); max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  transition: border-color var(--d-fast) var(--ease);
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer;
  font-weight: var(--fw-semibold);
  font-size: var(--text-base);
  color: var(--ink-9);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 18px;
  color: var(--ink-5);
  font-weight: var(--fw-regular);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: var(--s-3) 0 0; color: var(--ink-7); font-size: var(--text-sm); line-height: 1.6; }

/* --------------------------- Auth pages --------------------------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(800px 360px at 90% -10%, rgba(232, 93, 58, 0.06), transparent 70%),
    radial-gradient(600px 280px at -10% 110%, rgba(31, 158, 155, 0.05), transparent 70%),
    var(--bg);
}
/* Centered layout. Page background stays neutral (platform default);
   only the inner .auth-form-box gets the orange border + heavy shadow
   so the form is the punctuation, not the whole page. Auth-aside is
   hidden so the existing markup stays intact while the new layout
   uses only auth-main + auth-card. */
body.auth-page {
  background: var(--bg);
  min-height: 100vh;
}
.auth-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-5) var(--gutter);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.auth-topbar .brand img { height: 28px; }
.auth-topbar a { color: var(--ink-6); font-size: var(--text-sm); font-weight: var(--fw-medium); }
.auth-topbar a:hover { color: var(--ink-9); text-decoration: none; }
.auth-split {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--s-12) var(--gutter) var(--s-16);
  min-height: 0;
}
.auth-aside { display: none; }
.auth-aside::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(420px 240px at 80% 10%, rgba(232, 93, 58, 0.18), transparent 60%),
    radial-gradient(360px 220px at 10% 90%, rgba(31, 158, 155, 0.14), transparent 60%);
  pointer-events: none;
}
.auth-aside > * { position: relative; }
.auth-aside .kicker { color: #ffb89e; margin-bottom: var(--s-4); }
.auth-aside h2 {
  color: #fff;
  font-size: var(--text-4xl);
  margin-bottom: var(--s-5);
  max-width: 18ch;
}
.auth-aside .lede { color: rgba(255,255,255,0.78); max-width: 42ch; margin-bottom: var(--s-10); }
.auth-aside-figure { display: grid; gap: var(--s-3); max-width: 360px; }
.uv-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 14px;
  row-gap: 2px;
  align-items: start;
}
.uv-card h6 {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: var(--fw-bold);
  font-family: var(--font-sans);
}
.uv-card .v {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  grid-column: 2;
  grid-row: 1;
}
.uv-card .uv-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  font-family: var(--font-sans);
  grid-column: 2;
  grid-row: 2;
  color: rgba(255,255,255,0.6);
}
.uv-card .meta {
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  grid-column: 2;
  grid-row: 3;
  line-height: 1.4;
}
.uv-ico {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}
.uv-ico svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.uv-ico.coral  { background: rgba(232, 93, 58, 0.18); color: #ff9a7b; }
.uv-ico.purple { background: rgba(124, 58, 237, 0.22); color: #b89cff; }
.uv-ico.teal   { background: rgba(13, 148, 136, 0.22); color: #6fd9ca; }
.uv-card.coral  .uv-eyebrow { color: #ff9a7b; }
.uv-card.purple .uv-eyebrow { color: #b89cff; }
.uv-card.teal   .uv-eyebrow { color: #6fd9ca; }
.uv-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  margin-top: var(--s-3);
  overflow: hidden;
  grid-column: 2;
  grid-row: 4;
}
.uv-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f5a07a);
  border-radius: inherit;
}

.auth-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--s-12) var(--gutter) var(--s-16);
  flex: 1;
  width: 100%;
}
/* Outer wrapper carries the wide kicker / headline / lede block. No
   border, no shadow: the wrapping is for layout only. The bordered
   shadowed box is the inner .auth-form-box around just the form. */
.auth-card {
  width: 100%;
  max-width: 560px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  position: relative;
  text-align: center;
}
.auth-card .top-link {
  position: absolute;
  top: calc(var(--s-4) * -1); right: 0;
  font-size: var(--text-sm);
  color: var(--ink-9);
  background: rgba(255,255,255,0.85);
  padding: var(--s-2) var(--s-3);
  border-radius: 999px;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.auth-card .top-link a { font-weight: var(--fw-semibold); margin-left: 4px; }
/* Kicker, headline, and supporting copy sit at the top, outside the
   form box, so the visual hierarchy reads as: identity above, action
   below. */
.auth-card .auth-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-9);
  margin: 0 0 var(--s-3);
}
.auth-card .auth-headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-9);
  margin: 0 0 var(--s-3);
  font-weight: var(--fw-semibold);
}
.auth-card .auth-lede {
  font-size: var(--text-base);
  color: var(--ink-9);
  margin: 0 auto var(--s-8);
  line-height: 1.55;
  max-width: 480px;
}
.sm-tagline {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  color: #c85c3a;
  white-space: nowrap;
}
/* The actual form lives in this narrower bordered box. Coral border
   and heavy three-layer shadow lift it off the amber page. */
.auth-form-box {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid #e85d3a;
  border-radius: 16px;
  box-shadow:
    0 30px 80px rgba(11,23,51,0.20),
    0 12px 32px rgba(11,23,51,0.10),
    0 4px 8px rgba(11,23,51,0.06);
  padding: clamp(24px, 3.5vw, 36px);
  text-align: left;
}
.auth-card h1 {
  font-size: var(--text-2xl);
  margin: 0 0 var(--s-2);
  letter-spacing: -0.01em;
}
.auth-card .sub { color: var(--ink-6); font-size: var(--text-base); margin: 0 0 var(--s-6); }

.banner {
  display: none;
  margin-bottom: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.banner.show { display: block; }
.banner.show.error   { background: var(--error-soft);   color: var(--error);   border: 1px solid #f5c8c8; }
.banner.show.success { background: var(--success-soft); color: var(--success); border: 1px solid #c8e6d2; }

.field { margin-bottom: var(--s-4); }
.field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--ink-8);
  margin-bottom: 6px;
}
.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 var(--s-4);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  color: var(--ink-9);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field .err {
  display: none;
  font-size: 12.5px;
  color: var(--error);
  margin-top: 4px;
}
.field.invalid input { border-color: var(--error); }
.field.invalid input:focus { box-shadow: 0 0 0 3px var(--error-soft); }
.field.invalid .err { display: block; }

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-4);
  font-size: var(--text-sm);
}
.checkbox {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  color: var(--ink-7);
}
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent); }

.btn-block { width: 100%; }
.divider {
  display: flex; align-items: center; gap: var(--s-3);
  margin: var(--s-5) 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-5);
  font-weight: var(--fw-semibold);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-foot {
  margin: var(--s-6) 0 0;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--ink-6);
}
.auth-foot a { font-weight: var(--fw-semibold); }

/* Preview banner (only shown on /preview/ pages) */
.preview-banner {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  padding: 8px var(--gutter);
  letter-spacing: -0.005em;
}
.preview-banner a { color: #fff; text-decoration: underline; font-weight: var(--fw-semibold); }

/* ============================================================
   Suite components (homepage + five suite pages)
   Shared by index.html and the suite pages (hr-teams, marketing,
   tests-overview, research, program-evaluation). The homepage may
   still carry inline overrides until the pacing pass fully settles.
   ============================================================ */

/* Tagline beneath the hero H1 */
.hero-tagline {
  margin: 8px 0 18px 0;
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, Inter, sans-serif);
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink-8);
}
.hero-tagline strong { color: var(--ink-9); }

/* Three-card row, used in differentiator and trust sections */
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }

.v-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.v-card h3 {
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, Inter, sans-serif);
  font-size: 22px;
  margin: 0; line-height: 1.25;
}
.v-card p { margin: 0; color: var(--ink-7); }
.v-card .v-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  color: var(--ink-9);
  text-decoration: underline;
  align-self: flex-start;
}

/* Four-card row used in the "what do I do next" path section */
.cards4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}
@media (max-width: 1100px) { .cards4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .cards4 { grid-template-columns: 1fr; } }

.path-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: inherit;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.path-card:hover {
  border-color: var(--accent, #4f46e5);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.path-card .path-num {
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, Inter, sans-serif);
  font-size: 13px;
  color: var(--ink-6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.path-card h3 {
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, Inter, sans-serif);
  font-size: 21px;
  margin: 0; line-height: 1.25;
}
.path-card p { margin: 0; color: var(--ink-7); font-size: 15px; }

/* Trust compression tagline (Section 3) */
.trust-tagline {
  text-align: center;
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, Inter, sans-serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink-9);
  margin: 12px auto 40px auto;
  max-width: 720px;
}

/* Final dark CTA strip */
.final-strip {
  background: #0f172a;
  color: #f6f8fc;
  padding: 72px 32px;
  border-radius: 22px;
  text-align: center;
}
.final-strip h2 {
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, Inter, sans-serif);
  font-size: 34px;
  margin: 0 0 14px 0;
  color: #ffffff;
}
.final-strip p {
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}
.final-strip .hero-actions { justify-content: center; }
.final-strip .btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}
.final-strip .btn-outline:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border-color: rgba(255,255,255,0.6);
}
@media (max-width: 720px) {
  .final-strip { padding: 56px 22px; }
  .final-strip h2 { font-size: 28px; }
}

/* ============================================================
   Suite-narrative components (HR, Marketing, Tests, Research,
   Program Evaluation). Implements the six-section narrative
   architecture: problem, risks, lifecycle, workflow checks,
   capabilities, deliverables.
   ============================================================ */

/* Section 2: risk cards (what goes wrong) */
.risk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid #c2410c;
  border-radius: 14px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.risk-card h3 {
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, Inter, sans-serif);
  font-size: 21px;
  margin: 0;
  line-height: 1.25;
  color: var(--ink-9);
}
.risk-card p {
  margin: 0;
  color: var(--ink-7);
  line-height: 1.6;
}

/* Lifecycle strip (visual interruption between Section 2 and 3) */
.lifecycle-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 10px;
}
.lifecycle-node {
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lifecycle-node .lc-step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-6);
}
.lifecycle-node h3 {
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, Inter, sans-serif);
  font-size: 17px;
  color: var(--ink-9);
  margin: 0;
  line-height: 1.25;
}
.lifecycle-arrow {
  color: var(--ink-5);
  font-size: 18px;
  padding: 0 2px;
  user-select: none;
}
@media (max-width: 900px) {
  .lifecycle-strip {
    grid-template-columns: 1fr;
    padding: 8px;
  }
  .lifecycle-arrow { display: none; }
  .lifecycle-node { border-bottom: 1px solid var(--border); }
  .lifecycle-node:last-child { border-bottom: none; }
}

/* Section 3: workflow cards (Before X / ReliCheck does Y) */
.workflow-card {
  background: #f7faf6;
  border: 1px solid #d8e6d5;
  border-radius: 14px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.workflow-card .wf-when {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #166534;
}
.workflow-card h3 {
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, Inter, sans-serif);
  font-size: 20px;
  margin: 0;
  line-height: 1.25;
  color: var(--ink-9);
}
.workflow-card p {
  margin: 0;
  color: var(--ink-7);
  line-height: 1.6;
}

/* Emotional pivot between Section 3 and Section 4 */
.emotional-pivot { padding: 56px 24px; }
.emotional-line {
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, Inter, sans-serif);
  font-weight: 500;
  font-style: italic;
  font-size: 26px;
  line-height: 1.45;
  color: var(--ink-9);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 720px) {
  .emotional-line { font-size: 22px; }
}

/* Section 4: feature cards in three sub-grouped clusters */
.feat-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}
@media (max-width: 1100px) { .feat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .feat-cards { grid-template-columns: 1fr; } }
.feat-cards .subgroup-header {
  grid-column: 1 / -1;
  margin-top: 28px;
  margin-bottom: 4px;
}
.feat-cards .subgroup-header:first-child { margin-top: 0; }
.feat-card-2 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feat-card-2 .feat-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #4f46e5);
}
.feat-card-2 h3 {
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, Inter, sans-serif);
  font-size: 19px;
  margin: 0;
  line-height: 1.25;
  color: var(--ink-9);
}
.feat-card-2 p {
  margin: 0;
  color: var(--ink-7);
  font-size: 15px;
  line-height: 1.55;
}

/* Section 5: output / deliverable cards */
.output-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.output-card .out-kind {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-6);
}
.output-card h3 {
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, Inter, sans-serif);
  font-size: 19px;
  margin: 0;
  line-height: 1.25;
  color: var(--ink-9);
}
.output-card p {
  margin: 0;
  color: var(--ink-7);
  font-size: 15px;
  line-height: 1.55;
}

/* Shared 4-up and 2-up grids for risk, workflow, and output rows */
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}
@media (max-width: 1100px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .grid4 { grid-template-columns: 1fr; } }
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }
