/* =================================================================
   Automation Readiness Diagnostic — design system
   Visual language matched to sendfull.com:
   deep violet-tinted dark theme, vivid violet accent,
   geometric sans, large display headings, generous whitespace.
   ================================================================= */

/* ---------- tokens ---------- */
:root {
  /* surfaces */
  --bg: oklch(13.5% 0.018 286);
  --bg-2: oklch(16.5% 0.022 286);
  --surface: oklch(20% 0.026 286);
  --surface-2: oklch(24.5% 0.03 287);
  --surface-3: oklch(29% 0.035 288);

  /* lines */
  --border: oklch(100% 0 0 / 0.08);
  --border-2: oklch(100% 0 0 / 0.14);
  --border-strong: oklch(100% 0 0 / 0.22);

  /* brand */
  --accent: oklch(60% 0.224 290);
  --accent-bright: oklch(70% 0.19 292);
  --accent-dim: oklch(60% 0.224 290 / 0.16);
  --accent-glow: oklch(64% 0.224 291 / 0.45);

  /* text */
  --text: oklch(99% 0 0);
  --text-body: oklch(99% 0 0 / 0.72);
  --text-light: oklch(99% 0 0 / 0.52);
  --text-faint: oklch(99% 0 0 / 0.34);

  /* quadrant identity colors */
  --q-hold: oklch(66% 0.04 280);
  --q-question: oklch(78% 0.135 78);
  --q-assist: oklch(74% 0.12 215);
  --q-automate: oklch(67% 0.2 291);

  /* risk band colors */
  --risk-deep: oklch(66% 0.2 22);
  --risk-mid: oklch(80% 0.14 80);
  --risk-good: oklch(74% 0.15 158);

  /* type */
  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 140px;

  /* radii */
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;

  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 70px -30px oklch(0% 0 0 / 0.7);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: white;
}

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

/* ---------- typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--text);
  text-wrap: balance;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.15rem, 7vw, 5.6rem);
  line-height: 1.03;
  letter-spacing: -0.034em;
  color: var(--text);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.4rem);
}
.h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}
.h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
}

.lead {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-body);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.center {
  justify-content: center;
}
.eyebrow.center::after {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

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

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.section {
  padding: var(--sp-9) 0;
}
.section-sm {
  padding: var(--sp-8) 0;
}

@media (max-width: 720px) {
  .section {
    padding: var(--sp-8) 0;
  }
  .hero {
    padding: var(--sp-8) 0 var(--sp-7);
  }
}

.stack {
  display: flex;
  flex-direction: column;
}
.gap-2 {
  gap: var(--sp-2);
}
.gap-3 {
  gap: var(--sp-3);
}
.gap-4 {
  gap: var(--sp-4);
}
.gap-5 {
  gap: var(--sp-5);
}
.gap-6 {
  gap: var(--sp-6);
}
.center {
  text-align: center;
}
.measure {
  max-width: 60ch;
}
.measure-narrow {
  max-width: 46ch;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 3.5rem;
  padding: 0 var(--sp-6);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    transform 0.22s var(--ease),
    background 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow:
    0 0 0 1px oklch(100% 0 0 / 0.06) inset,
    0 12px 40px -14px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px oklch(100% 0 0 / 0.08) inset,
    0 18px 50px -14px var(--accent-glow);
}

.btn-ghost {
  background: oklch(100% 0 0 / 0.04);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  background: oklch(100% 0 0 / 0.08);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn-lg {
  height: 4rem;
  padding: 0 var(--sp-7);
  font-size: 1.1rem;
}
.btn-sm {
  height: 2.85rem;
  padding: 0 var(--sp-5);
  font-size: 0.94rem;
}
.btn-block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  transition: transform 0.22s var(--ease);
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.textlink {
  color: var(--accent-bright);
  font-weight: 500;
  border-bottom: 1px solid oklch(70% 0.19 292 / 0.35);
  transition: border-color 0.2s var(--ease);
}
.textlink:hover {
  border-color: var(--accent-bright);
}

/* ---------- decorative ambient background ---------- */
.ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.orb-1 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -180px;
  right: -120px;
}
.orb-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, oklch(58% 0.2 250) 0%, transparent 70%);
  bottom: -160px;
  left: -140px;
  opacity: 0.35;
}
.grid-veil {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(100% 0 0 / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, oklch(100% 0 0 / 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
}

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: var(--sp-6);
}
.card-glass {
  background: oklch(100% 0 0 / 0.035);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
}

/* ================================================================
   NAVBAR
   ================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  background: oklch(13.5% 0.018 286 / 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-sub {
  color: var(--text-faint);
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.nav-link {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.18s var(--ease);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-s);
  border: 1px solid var(--border-2);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.nav-toggle span::before {
  top: -6px;
}
.nav-toggle span::after {
  top: 6px;
}
.nav-mobile {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  padding: var(--sp-3) var(--sp-5) var(--sp-5);
  gap: var(--sp-1);
}
.nav-mobile-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  padding: var(--sp-3) 0;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 800px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ---------- mark / logo ---------- */
.mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5px;
  width: 26px;
  height: 26px;
  flex: none;
}
.mark i {
  border-radius: 3px;
  background: oklch(100% 0 0 / 0.26);
}
.mark i:last-child {
  background: var(--accent);
}
.logo-mark {
  display: block;
  height: 24px;
  width: auto;
  flex: none;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: var(--sp-8) 0 var(--sp-6);
  position: relative;
  z-index: 1;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-7);
  flex-wrap: wrap;
}
.footer-blurb {
  max-width: 34ch;
  color: var(--text-light);
  font-size: 0.98rem;
}
.footer-cols {
  display: flex;
  gap: var(--sp-8);
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-4);
}
.footer-col a {
  display: block;
  color: var(--text-light);
  font-size: 0.98rem;
  padding: var(--sp-1) 0;
  transition: color 0.18s var(--ease);
}
.footer-col a:hover {
  color: var(--text);
}
.footer-base {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.88rem;
}

/* ================================================================
   HERO (shared landing hero)
   ================================================================ */
.hero {
  position: relative;
  padding: var(--sp-10) 0 var(--sp-9);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-cta-row {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  align-items: center;
}
.hero-meta {
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
  color: var(--text-light);
  font-size: 0.95rem;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  flex: none;
}

/* ---------- pill / badge ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid oklch(70% 0.19 292 / 0.3);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-bright);
}

/* ---------- section heading block ---------- */
.section-head {
  max-width: 56ch;
}
.section-head.center {
  margin: 0 auto;
}

/* ================================================================
   FEATURE / VALUE CARDS
   ================================================================ */
.grid {
  display: grid;
  gap: var(--sp-4);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.vcard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: var(--sp-6);
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.vcard:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
}
.vcard-num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.04em;
}
.vcard h3 {
  margin: var(--sp-3) 0 var(--sp-2);
}
.vcard p {
  color: var(--text-light);
  font-size: 0.99rem;
}
.vcard-glyph {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid oklch(70% 0.19 292 / 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  margin-bottom: var(--sp-4);
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  gap: var(--sp-3);
}
.step {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  padding: var(--sp-5);
  border-radius: var(--r-m);
  border: 1px solid var(--border);
  background: oklch(100% 0 0 / 0.02);
}
.step-num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--accent-dim);
  color: var(--accent-bright);
  border: 1px solid oklch(70% 0.19 292 / 0.3);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  padding: var(--sp-9) var(--sp-7);
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 80% 0%, oklch(60% 0.224 290 / 0.4) 0%, transparent 55%),
    radial-gradient(110% 120% at 10% 100%, oklch(58% 0.2 250 / 0.32) 0%, transparent 55%),
    var(--surface);
  border: 1px solid var(--border-2);
  text-align: center;
}
.cta-band-inner {
  position: relative;
  z-index: 1;
  max-width: 50ch;
  margin: 0 auto;
}

/* ================================================================
   STRATEGY GAP / split feature
   ================================================================ */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-8);
  align-items: center;
}
@media (max-width: 920px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}

/* ================================================================
   DIAGNOSTIC APP
   ================================================================ */
.diag {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
.diag-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: oklch(13.5% 0.018 286 / 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.diag-bar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.diag-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-7) var(--sp-5) var(--sp-9);
  position: relative;
  z-index: 1;
}
.diag-panel {
  width: 100%;
  max-width: 720px;
}
.diag-panel-wide {
  max-width: 980px;
}

/* progress */
.progress {
  flex: 1;
  max-width: 380px;
  height: 5px;
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.08);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}
.progress-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}

/* intro */
.intro-card {
  text-align: center;
}
.intro-list {
  display: grid;
  gap: var(--sp-3);
  text-align: left;
}
.intro-list-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-m);
  background: oklch(100% 0 0 / 0.03);
  border: 1px solid var(--border);
}
.intro-list-item .ico {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

/* lead form */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.field label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-body);
}
.field label .opt {
  color: var(--text-faint);
  font-weight: 500;
}
.input,
.textarea {
  width: 100%;
  background: oklch(100% 0 0 / 0.04);
  border: 1px solid var(--border-2);
  border-radius: var(--r-s);
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text);
  transition:
    border-color 0.18s var(--ease),
    background 0.18s var(--ease);
}
.textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.5;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--text-faint);
}
.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: oklch(100% 0 0 / 0.06);
}
.input.error,
.textarea.error {
  border-color: var(--risk-deep);
}
.field-error {
  font-size: 0.84rem;
  color: var(--risk-deep);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* question */
.q-section-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.q-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--text);
}
.q-options {
  display: grid;
  gap: var(--sp-3);
}
.q-option {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  text-align: left;
  width: 100%;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-m);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 1.02rem;
  line-height: 1.4;
  transition:
    border-color 0.16s var(--ease),
    background 0.16s var(--ease),
    transform 0.16s var(--ease);
}
.q-option:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateX(3px);
}
.q-option[data-selected='true'] {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text);
}
.q-radio {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.16s var(--ease);
}
.q-option[data-selected='true'] .q-radio {
  border-color: var(--accent-bright);
}
.q-radio i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-bright);
  transform: scale(0);
  transition: transform 0.18s var(--ease);
}
.q-option[data-selected='true'] .q-radio i {
  transform: scale(1);
}
.q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
}
.q-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.16s var(--ease);
}
.q-back:hover {
  color: var(--text);
}
.q-back:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* computing */
.computing {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
}
.computing-ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 3px solid oklch(100% 0 0 / 0.1);
  border-top-color: var(--accent-bright);
}

/* ================================================================
   DECISION MATRIX
   ================================================================ */
.matrix-wrap {
  position: relative;
  width: 100%;
}
.matrix {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-l);
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  overflow: hidden;
}
.matrix-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.matrix-quad {
  position: absolute;
  width: 50%;
  height: 50%;
  padding: clamp(10px, 2.4vw, 22px);
  display: flex;
  flex-direction: column;
}
.matrix-quad.tl {
  top: 0;
  left: 0;
}
.matrix-quad.tr {
  top: 0;
  right: 0;
  align-items: flex-end;
  text-align: right;
}
.matrix-quad.bl {
  bottom: 0;
  left: 0;
  justify-content: flex-end;
}
.matrix-quad.br {
  bottom: 0;
  right: 0;
  align-items: flex-end;
  text-align: right;
  justify-content: flex-end;
}
.matrix-quad-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.4vw, 1.3rem);
  letter-spacing: -0.01em;
  color: var(--quad-color, var(--text-light));
}
.matrix-quad-desc {
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  line-height: 1.34;
  color: var(--text-faint);
  margin-top: 2px;
  max-width: 22ch;
}
.matrix-quad[data-active='true'] .matrix-quad-desc {
  color: var(--text-light);
}

/* marker */
.matrix-marker {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 5;
}
.matrix-marker-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px oklch(60% 0.224 290 / 0.25);
}
.matrix-marker-ring {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--accent-bright);
  transform: translate(-50%, -50%);
}
.matrix-marker-label {
  position: absolute;
  transform: translate(-50%, calc(-100% - 16px));
  background: white;
  color: oklch(13.5% 0.018 286);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 7px;
  white-space: nowrap;
}
.matrix-marker-label::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid white;
}
.matrix-target {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 4;
}
.matrix-target-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px dashed var(--accent-bright);
  transform: translate(-50%, -50%);
}
.matrix-target-label {
  position: absolute;
  transform: translate(-50%, 14px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-bright);
  white-space: nowrap;
}

/* axis labels */
.matrix-axis {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.axis-x {
  bottom: -30px;
  left: 0;
  width: 100%;
  text-align: center;
}
.axis-y {
  top: 50%;
  left: -16px;
  transform: rotate(-90deg) translateX(0);
  transform-origin: left center;
  white-space: nowrap;
}
.axis-end {
  position: absolute;
  font-size: 0.68rem;
  color: var(--text-faint);
}

/* matrix legend in report */
.matrix-readout {
  display: grid;
  gap: var(--sp-3);
}
.readout-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.readout-row:last-child {
  border-bottom: none;
}
.readout-k {
  font-size: 0.95rem;
  color: var(--text-light);
}
.readout-v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

/* ================================================================
   RESULTS REPORT
   ================================================================ */
.results {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
.verdict {
  position: relative;
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-7);
  overflow: hidden;
  border: 1px solid var(--border-2);
  background:
    radial-gradient(130% 130% at 85% 0%, var(--verdict-glow, oklch(60% 0.224 290 / 0.34)) 0%, transparent 58%),
    var(--surface);
}
.verdict-inner {
  position: relative;
  z-index: 1;
}
.verdict-eyebrow {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--accent-bright);
}
.verdict-quad {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 8vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  max-width: 100%;
  overflow-wrap: break-word;
}
@media (max-width: 600px) {
  .verdict {
    padding: var(--sp-6) var(--sp-5);
  }
}
.verdict-quad em {
  font-style: normal;
  color: var(--verdict-color, var(--accent-bright));
}

.report-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-5);
}
@media (max-width: 920px) {
  .report-grid {
    grid-template-columns: 1fr;
  }
}

.subscores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 560px) {
  .subscores {
    grid-template-columns: 1fr;
  }
}
.subscore {
  background: oklch(100% 0 0 / 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  padding: var(--sp-5);
}
.subscore-label {
  font-size: 0.82rem;
  color: var(--text-light);
}
.subscore-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.3rem;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}
.subscore-val small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-faint);
}
.subscore-track {
  height: 6px;
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.08);
  overflow: hidden;
  margin-top: var(--sp-3);
}
.subscore-bar {
  height: 100%;
  border-radius: 999px;
}

/* risk gauge */
.gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.gauge-svg {
  width: 100%;
  max-width: 280px;
}
.gauge-score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.gauge-band {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

/* recommendation */
.rec {
  border-radius: var(--r-l);
  border: 1px solid oklch(70% 0.19 292 / 0.32);
  background:
    radial-gradient(120% 130% at 100% 0%, oklch(60% 0.224 290 / 0.2) 0%, transparent 60%),
    var(--surface);
  padding: var(--sp-6);
}
.rec-chapter {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 6px;
}

/* throughline */
.throughline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-4);
  align-items: stretch;
}
@media (max-width: 680px) {
  .throughline {
    grid-template-columns: 1fr;
  }
  .throughline-arrow {
    transform: rotate(90deg);
  }
}
.tl-node {
  background: oklch(100% 0 0 / 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  padding: var(--sp-5);
}
.tl-node.dest {
  border-color: oklch(70% 0.19 292 / 0.35);
  background: var(--accent-dim);
}
.tl-tag {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tl-node.dest .tl-tag {
  color: var(--accent-bright);
}
.throughline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
}

/* ================================================================
   WORKSHOP PAGE
   ================================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 780px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: var(--sp-6);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}
.stat-num em {
  font-style: normal;
  color: var(--accent-bright);
}
.stat-desc {
  margin-top: var(--sp-3);
  color: var(--text-light);
  font-size: 0.98rem;
}
.stat-src {
  margin-top: var(--sp-3);
  font-size: 0.8rem;
  color: var(--text-faint);
}

.agenda {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 820px) {
  .agenda {
    grid-template-columns: 1fr;
  }
}
.agenda-day {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: var(--sp-6);
}
.agenda-daytag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.agenda-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.agenda-list li {
  display: flex;
  gap: var(--sp-3);
  font-size: 0.99rem;
  color: var(--text-body);
}
.agenda-list li::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 720px) {
  .deliverables {
    grid-template-columns: 1fr;
  }
}
.deliverable {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-m);
  border: 1px solid var(--border);
  background: oklch(100% 0 0 / 0.025);
}
.deliverable-check {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* who-for list */
.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.checklist-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.checklist-item .tick {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid oklch(70% 0.19 292 / 0.4);
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* about */
.about {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-6);
  align-items: start;
}
@media (max-width: 640px) {
  .about {
    grid-template-columns: 1fr;
  }
}
.about-portrait {
  width: 120px;
  height: 120px;
  border-radius: var(--r-l);
  background:
    radial-gradient(circle at 35% 30%, var(--accent-bright), var(--accent) 55%, oklch(40% 0.18 290));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  color: white;
}

/* timeline (how it works) */
.timeline {
  display: flex;
  flex-direction: column;
}
.timeline-item {
  display: flex;
  gap: var(--sp-5);
  padding-bottom: var(--sp-6);
  position: relative;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-rail {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-bead {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
  z-index: 1;
}
.timeline-line {
  flex: 1;
  width: 2px;
  background: var(--border-2);
  margin-top: 4px;
}
.timeline-item:last-child .timeline-line {
  display: none;
}

/* faint divider */
.hr {
  height: 1px;
  background: var(--border);
  border: none;
}

/* misc utility */
.relative {
  position: relative;
}
.z1 {
  position: relative;
  z-index: 1;
}
.full {
  width: 100%;
}
.nowrap {
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* =================================================================
   STATIC-BUILD ANIMATION LAYER
   Reimplements framer-motion behaviours with CSS transitions +
   IntersectionObserver (see assets/reveal.js & assets/diagnostic-quiz.js).
   ================================================================= */

/* ---- Reveal: fade + rise once in view ---- */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-y, 26px));
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hero stagger: lines rise in on load ---- */
.rise-in {
  opacity: 0;
  transform: translateY(24px);
  animation: riseIn 0.7s var(--ease) forwards;
  animation-delay: var(--rise-delay, 0s);
}
@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Diagnostic step enter ---- */
.step-enter {
  opacity: 0;
  transform: translateY(18px);
  animation: stepEnter 0.42s var(--ease) forwards;
}
@keyframes stepEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- computing spinner ---- */
.computing-ring {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- decision matrix draw-in ---- */
.matrix {
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.matrix-wrap.in .matrix {
  opacity: 1;
  transform: scale(1);
}
.matrix-svg rect.matrix-fill {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.matrix-wrap.in .matrix-svg rect.matrix-fill {
  opacity: var(--fill-opacity, 0.04);
  transition-delay: var(--fill-delay, 0s);
}
.matrix-svg line.matrix-axisline {
  stroke-dasharray: 110;
  stroke-dashoffset: 110;
  transition: stroke-dashoffset 0.7s var(--ease);
}
.matrix-wrap.in .matrix-svg line.matrix-axisline {
  stroke-dashoffset: 0;
  transition-delay: var(--line-delay, 0s);
}
.matrix-svg path.matrix-arrow {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  opacity: 0;
}
.matrix-wrap.in .matrix-svg path.matrix-arrow {
  opacity: 1;
  animation: drawArrow 1.1s var(--ease) 1.7s forwards;
}
@keyframes drawArrow {
  from {
    stroke-dashoffset: 200;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.matrix-quad {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.matrix-wrap.in .matrix-quad {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--quad-delay, 0s);
}
.matrix-target {
  opacity: 0;
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.matrix-wrap.in .matrix-target {
  opacity: 1;
  transition-delay: 1.5s;
}
.matrix-marker {
  left: 50%;
  top: 50%;
  opacity: 0;
  transition:
    left 1.1s cubic-bezier(0.34, 1.3, 0.46, 1) 1s,
    top 1.1s cubic-bezier(0.34, 1.3, 0.46, 1) 1s,
    opacity 0.3s var(--ease) 0.95s;
}
.matrix-wrap.in .matrix-marker {
  left: var(--mx, 50%);
  top: var(--my, 50%);
  opacity: 1;
}
.matrix-marker-dot {
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.46, 1) 1.55s;
}
.matrix-wrap.in .matrix-marker-dot {
  transform: translate(-50%, -50%) scale(1);
}
.matrix-marker-label {
  opacity: 0;
  transform: translate(-50%, calc(-100% - 10px));
  transition:
    opacity 0.4s var(--ease) 1.95s,
    transform 0.4s var(--ease) 1.95s;
}
.matrix-wrap.in .matrix-marker-label {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 16px));
}
.matrix-marker-ring {
  opacity: 0;
}
.matrix-wrap.in .matrix-marker-ring {
  animation: markerPulse 2.2s ease-out 1.9s infinite;
}
@keyframes markerPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.55;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* ---- risk gauge draw-in ---- */
.gauge-fill {
  stroke-dasharray: var(--gauge-len, 260);
  stroke-dashoffset: var(--gauge-len, 260);
}
.gauge.in .gauge-fill {
  animation: drawGauge 1.35s var(--ease) 0.35s forwards;
}
@keyframes drawGauge {
  to {
    stroke-dashoffset: 0;
  }
}
.gauge-end {
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.46, 1) 1.5s;
}
.gauge.in .gauge-end {
  transform: scale(1);
}

/* ---- subscore bars ---- */
.subscore-bar {
  width: 0;
  transition: width 1s var(--ease);
  transition-delay: var(--bar-delay, 0s);
}
.subscores.in .subscore-bar {
  width: var(--bar-w, 0%);
}

/* ---- progress fill ---- */
.progress-fill {
  width: 0;
  transition: width 0.5s var(--ease);
}

/* ---- nav mobile collapse ---- */
.nav-mobile {
  display: none;
}
.nav-mobile.open {
  display: block;
  animation: navDrop 0.32s var(--ease);
}
@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- verdict enter ---- */
.verdict.enter {
  opacity: 0;
  transform: translateY(26px);
  animation: riseIn 0.7s var(--ease) forwards;
}
