/* =========================================================
   Welk Advisory — Editorial Design System
   Palette: deep navy ink, warm cream, blue accent
   Type: Fraunces (serif display) + Inter (body)
   Fonts loaded via Google Fonts <link> in each page head.
   ========================================================= */

:root {
  /* Colors */
  --paper: #f8f5ee;
  --paper-2: #eee8dc;
  --ink: #0f1720;
  --ink-soft: #1f2a36;
  --body: #293641;
  --muted: #5d6b77;
  --accent: #1e4d8c;
  --accent-deep: #143a6b;
  --cream-line: #e2d9c5;
  --ink-line: rgba(15, 23, 32, 0.12);
  --dark-line: rgba(248, 245, 238, 0.14);

  /* Type */
  --display: "Fraunces", "Canela", "Georgia", serif;
  --sans: "Inter", "Söhne", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1140px;
  --gutter: 28px;
  --pad-y: 110px;
  --pad-y-m: 72px;

  /* Radius */
  --r: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02";
}

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

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

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

/* ---------- Typography ---------- */

.display {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.022em;
  line-height: 1.02;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
  text-wrap: balance;
}

h1.display { font-size: clamp(44px, 6.4vw, 92px); }
h2.display { font-size: clamp(34px, 4.6vw, 64px); }
h3.display { font-size: clamp(24px, 2.4vw, 34px); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--muted { color: var(--muted); }
.eyebrow--cream { color: #9ab8d9; }

.number-eyebrow {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--body);
  text-wrap: pretty;
}

.body-l {
  font-size: 18px;
  line-height: 1.65;
  color: var(--body);
  text-wrap: pretty;
}

/* ---------- Layout helpers ---------- */

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

.container--narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.section--tight { padding: 80px 0; }

.band {
  padding: var(--pad-y) 0;
}

.band--paper-2 { background: var(--paper-2); }
.band--dark {
  background: var(--ink);
  color: #e8ddc9;
}
.band--dark .display { color: #f3ecd9; }

.hairline {
  height: 1px;
  background: var(--cream-line);
  border: 0;
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  letter-spacing: 0.005em;
  white-space: nowrap;
  text-decoration: none;
}

.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 18px 28px; font-size: 16px; }

.btn--primary {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--ghost-cream {
  background: transparent;
  color: #f3ecd9;
  border-color: rgba(243, 236, 217, 0.6);
}
.btn--ghost-cream:hover {
  background: #f3ecd9;
  color: var(--ink);
  border-color: #f3ecd9;
}

.btn--link {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  color: var(--ink);
  border-color: transparent;
}
.btn--link:hover { color: var(--accent); }

.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 238, 0.92);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--cream-line); }

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand__mark {
  height: 32px;
  padding: 0 7px 1px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand__mark .wa-a { color: var(--accent); margin-left: -0.07em; }
.brand__word {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--accent);
  transition: right .25s ease;
}
.nav__link:hover::after { right: 0; }

.nav__menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  padding: 8px 12px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 120px;
  position: relative;
}
.hero__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero__eyebrow { margin-bottom: 28px; display: inline-block; }
.hero__headline {
  margin: 0 0 32px;
  max-width: 16ch;
  text-wrap: balance;
}
.hero__sub {
  max-width: 62ch;
  margin: 0 0 40px;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__meta {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--cream-line);
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.hero__meta strong { color: var(--ink); font-weight: 500; }

/* ---------- Two-col bands (Reality, Philosophy) ---------- */

.twocol {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.twocol__left .eyebrow { margin-bottom: 20px; display: inline-block; }
.twocol__left h2 { margin: 0; max-width: 12ch; }
.twocol__right .body-l { margin: 0; max-width: 56ch; }
.twocol__right .body-l + .body-l { margin-top: 18px; }

/* ---------- Approach cards ---------- */

.approach__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
}
.approach__header .eyebrow { margin-bottom: 20px; display: inline-block; }
.approach__header h2 { margin: 0 0 22px; }
.approach__header .lede { margin: 0 auto; max-width: 52ch; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--cream-line);
  border-bottom: 1px solid var(--cream-line);
}
.card {
  padding: 48px 36px 48px 0;
  border-right: 1px solid var(--cream-line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card:last-child { border-right: 0; padding-right: 0; }
.card:not(:first-child) { padding-left: 36px; }
.card__num { font-variant-numeric: tabular-nums; }
.card__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.1;
}
.card__body {
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Pullquote band ---------- */

.pullquote {
  padding: var(--pad-y) 0;
}
.pullquote__eyebrow { margin-bottom: 36px; display: inline-block; }
.pullquote__headline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #f3ecd9;
  margin: 0 0 48px;
  max-width: 22ch;
  text-wrap: balance;
}
.pullquote__body {
  font-size: 18px;
  line-height: 1.65;
  color: #d9cfb8;
  max-width: 58ch;
  margin: 0;
}
.pullquote__body + .pullquote__body { margin-top: 18px; }
.pullquote__mark {
  font-family: var(--display);
  font-weight: 400;
  font-size: 140px;
  line-height: 0.8;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
  user-select: none;
}

/* ---------- Who/Don't/Cost ---------- */

.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.three__item .eyebrow { margin-bottom: 14px; display: inline-block; }
.three__item h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.three__item p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }

/* ---------- Final CTA ---------- */

.final {
  padding: 128px 0;
  text-align: center;
}
.final__eyebrow { margin-bottom: 28px; display: inline-block; }
.final h2 { margin: 0 auto 24px; max-width: 18ch; }
.final .lede { max-width: 52ch; margin: 0 auto 40px; color: #d9cfb8; }
.final__email {
  margin-top: 28px;
  color: #a0b1c4;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.final__email a { color: #9ab8d9; border-bottom: 1px solid rgba(154, 184, 217, 0.3); }
.final__email a:hover { color: #f3ecd9; border-bottom-color: #f3ecd9; }

/* ---------- Footer ---------- */

.footer {
  background: var(--paper-2);
  padding: 80px 0 36px;
  border-top: 1px solid var(--cream-line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 64px;
}
.footer__brand .brand { margin-bottom: 16px; }
.footer__tag {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 32ch;
}
.footer__tag + .footer__tag { margin-top: 14px; }
.footer__tag a { color: var(--ink-soft); }
.footer__tag a:hover { color: var(--accent); }
.footer__col h5 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 18px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li + li { margin-top: 10px; }
.footer__col a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color .18s ease;
}
.footer__col a:hover { color: var(--accent); }

.footer__legal {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--cream-line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 820px;
}

/* ---------- Modal ---------- */

.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(15, 23, 32, 0.58);
  animation: fadeIn .2s ease;
}
.modal__panel {
  position: relative;
  background: var(--paper);
  border-radius: 10px;
  width: 100%;
  max-width: 520px;
  padding: 40px 40px 36px;
  box-shadow: 0 30px 80px rgba(15, 23, 32, 0.28);
  animation: panelIn .24s cubic-bezier(.2,.7,.2,1);
}
.modal__close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted); font-size: 20px; line-height: 1;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background .15s ease, color .15s ease;
}
.modal__close:hover { background: var(--paper-2); color: var(--ink); }
.modal h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}
.modal p { color: var(--muted); margin: 0 0 24px; font-size: 15px; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--cream-line);
  padding: 10px 0;
  outline: none;
  transition: border-color .18s ease;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field textarea { resize: vertical; min-height: 72px; }

.modal__submit { width: 100%; justify-content: center; margin-top: 14px; }
.modal__fine {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px;
  border-radius: var(--r);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 120;
  box-shadow: 0 10px 30px rgba(15,23,32,0.3);
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Entrance animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Sub-page additions (services, about, work, faq, guides, legal)
   ========================================================= */

/* Breadcrumbs */
.crumbs {
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 8px; opacity: 0.6; }

/* Sub-page hero */
.page-hero { padding: 56px 0 24px; }
.page-hero .eyebrow { display: inline-block; margin-bottom: 18px; }
.page-hero h1 { margin: 0 0 20px; max-width: 20ch; }
.page-hero .lede { max-width: 60ch; margin: 0; }

/* Prose: articles, guides, case studies, legal */
.prose { max-width: 720px; margin: 0 auto; }
.prose > .eyebrow { display: inline-block; margin-bottom: 16px; }
.prose h1 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(34px, 4.6vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.prose h2 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 48px 0 16px;
}
.prose h3 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  font-size: 22px;
  margin: 32px 0 12px;
}
.prose p { font-size: 17px; line-height: 1.7; color: var(--body); margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { font-size: 17px; line-height: 1.7; color: var(--body); margin: 6px 0; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(30, 77, 140, 0.25); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
}
.prose .updated, .article-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 36px;
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-top: 1px solid var(--cream-line); padding: 24px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--cream-line); }
.faq__q {
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.faq__a { margin: 0; color: var(--body); font-size: 16px; line-height: 1.65; }
.faq__a + .faq__a { margin-top: 12px; }

/* Service / feature list grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 8px;
}
.feature__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.feature__body { margin: 0; color: var(--body); font-size: 16px; line-height: 1.6; }

/* Work / case-study index list */
.caselist { max-width: 820px; margin: 0 auto; }
.caseitem {
  display: block;
  padding: 32px 0;
  border-top: 1px solid var(--cream-line);
}
.caseitem:last-child { border-bottom: 1px solid var(--cream-line); }
.caseitem h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  color: var(--ink);
  margin: 8px 0 12px;
  letter-spacing: -0.015em;
}
.caseitem p { margin: 0; color: var(--body); font-size: 16px; line-height: 1.6; }
.caseitem .arrow { color: var(--accent); transition: transform .18s ease; display: inline-block; }
.caseitem:hover .arrow { transform: translateX(3px); }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  :root { --pad-y: 72px; --gutter: 22px; }
  body { font-size: 16px; }
  .hero { padding: 48px 0 80px; }
  .hero__sub { font-size: 17px; }
  .hero__meta { gap: 24px; margin-top: 40px; }

  .nav__links {
    display: none;
  }
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--cream-line);
    padding: 20px var(--gutter) 26px;
  }
  .nav__menu-btn { display: inline-flex; }

  .twocol { grid-template-columns: 1fr; gap: 32px; }
  .twocol__left h2 { max-width: none; }

  .cards {
    grid-template-columns: 1fr;
    border-left: 0; border-right: 0;
  }
  .card {
    border-right: 0;
    border-bottom: 1px solid var(--cream-line);
    padding: 36px 0;
  }
  .card:last-child { border-bottom: 0; }
  .card:not(:first-child) { padding-left: 0; }

  .three { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: 1fr; gap: 32px; }

  .final { padding: 80px 0; }

  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer { padding: 60px 0 28px; }

  .pullquote__mark { font-size: 96px; }

  .modal__panel { padding: 32px 24px 28px; }
}

/* =========================================================
   AI Readiness Assessment (/ai-readiness)
   ========================================================= */

.assess { max-width: 760px; margin: 0 auto; }
.assess__fallback { text-align: center; color: var(--body); }

.assess__card {
  border: 1px solid var(--cream-line);
  border-radius: 10px;
  background: var(--paper);
  padding: 32px 36px 28px;
}

.assess__head { margin-bottom: 8px; }
.assess__progress {
  height: 5px;
  background: var(--cream-line);
  border-radius: 99px;
  overflow: hidden;
}
.assess__bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 99px;
  transition: width .35s cubic-bezier(.2,.7,.2,1);
}
.assess__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.assess__section { margin: 20px 0 4px; }
.assess__section .eyebrow { display: inline-block; }
.assess__blurb { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.q { border: 0; margin: 28px 0 0; padding: 0; min-width: 0; }
.q__text {
  display: block;
  padding: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 14px;
}
.q__scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.q__opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 8px;
  background: var(--paper);
  border: 1px solid var(--cream-line);
  border-radius: var(--r);
  cursor: pointer;
  text-align: center;
  font-family: var(--sans);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .1s ease;
}
.q__opt:hover { border-color: var(--accent); }
.q__opt:active { transform: translateY(1px); }
.q__val {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
}
.q__lab { font-size: 11px; line-height: 1.25; color: var(--muted); }
.q__opt.is-on { background: var(--accent); border-color: var(--accent); }
.q__opt.is-on .q__val, .q__opt.is-on .q__lab { color: var(--paper); }

.assess__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--cream-line);
}
.assess__nav .btn:disabled { opacity: 0.4; cursor: not-allowed; }
.assess__nav .btn--primary:disabled:hover { background: var(--accent); border-color: var(--accent); }

/* ----- Result ----- */
.result { max-width: 760px; margin: 0 auto; }
.result > .eyebrow { display: inline-block; margin-bottom: 16px; }
.result__scorewrap {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 4px 0 18px;
}
.result__score {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(56px, 11vw, 88px);
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.result__score span { font-size: 0.4em; color: var(--muted); }
.result__tier {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 34px);
  color: var(--accent);
  line-height: 1.1;
}
.result__tier .eyebrow { display: block; margin-bottom: 6px; }
.result__summary {
  font-size: 19px;
  line-height: 1.55;
  color: var(--body);
  max-width: 60ch;
  margin: 0 0 20px;
  text-wrap: pretty;
}
.result__sent { font-size: 14px; color: var(--accent); margin: 0 0 8px; }
.result__sent--warn { color: var(--muted); }

.result__gate {
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--cream-line);
}
.result__h {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 32px 0 6px;
}
.result__gate .result__h { margin-top: 0; }
.result__gatesub { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.result__form { max-width: 460px; }
.result__err { color: #b3261e; font-size: 14px; margin: 10px 0 0; }
.assess__fine { margin-top: 14px; font-size: 12px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.result__dims { margin: 10px 0 4px; }
.dimrow { margin: 16px 0; }
.dimrow__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  margin-bottom: 7px;
}
.dimrow__label { color: var(--ink); font-weight: 500; }
.dimrow__val { color: var(--muted); font-variant-numeric: tabular-nums; }
.dimrow__track {
  height: 8px;
  background: var(--cream-line);
  border-radius: 99px;
  overflow: hidden;
}
.dimrow__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width .5s cubic-bezier(.2,.7,.2,1);
}
.dimrow.is-weak .dimrow__label { color: var(--accent); }

.result__opp {
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 20px 0 0;
}
.result__steps { margin: 8px 0 0; padding-left: 20px; }
.result__steps li { font-size: 17px; line-height: 1.6; color: var(--body); margin: 10px 0; }

.result__cta { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--cream-line); }
.result__ctasub { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.result__ctasub a { color: var(--accent); border-bottom: 1px solid rgba(30, 77, 140, 0.25); }
.result__ctasub a:hover { border-bottom-color: var(--accent); }

@media (max-width: 600px) {
  .assess__card { padding: 24px 20px 22px; }
  .q__scale { grid-template-columns: 1fr; gap: 8px; }
  .q__opt {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 12px 14px;
    text-align: left;
  }
  .q__val {
    width: 26px; height: 26px; flex: 0 0 26px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--cream-line); border-radius: 50%;
    font-size: 14px;
  }
  .q__opt.is-on .q__val { border-color: var(--paper); }
  .q__lab { font-size: 14px; }
  .result__scorewrap { gap: 18px; }
}
