/* ============================================================
   SCM Solutions LLC — shared design system
   ============================================================ */

:root {
  /* Type */
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Palette — SCM Solutions */
  --paper:   oklch(0.985 0.005 85);   /* warm cream */
  --paper-2: oklch(0.965 0.008 85);   /* slightly deeper card */
  --paper-3: oklch(0.94  0.010 85);   /* deeper still */
  --ink:     oklch(0.18  0.012 250);  /* near-black, cool tint */
  --ink-2:   oklch(0.34  0.010 250);  /* secondary text */
  --ink-3:   oklch(0.52  0.010 250);  /* tertiary text */
  --rule:    oklch(0.85  0.012 85);   /* warm hairline */
  --rule-2:  oklch(0.78  0.012 85);   /* stronger hairline */
  --accent:  oklch(0.36  0.085 245);  /* deep restrained navy/ink-blue */
  --accent-2:oklch(0.46  0.090 245);  /* lighter accent for hover */
  --amber:   oklch(0.66  0.115 65);   /* warm ochre — secondary accent, used sparingly */
  --amber-2: oklch(0.94  0.030 75);   /* amber tint for backgrounds */

  /* SteadiDay palette (used on /steadiday.html) */
  --sd-sage:    oklch(0.66 0.075 150);
  --sd-sage-2:  oklch(0.58 0.080 150);
  --sd-sage-bg: oklch(0.93 0.025 145);
  --sd-night:   oklch(0.30 0.045 240);
  --sd-paper:   oklch(0.975 0.012 85);

  /* Layout */
  --gutter: clamp(20px, 4vw, 64px);
  --maxw:   1240px;
  --maxw-text: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Typography
   ============================================================ */

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--rule-2);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h3 {
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
h4 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  font-family: var(--sans);
}

em, .italic { font-style: italic; }

p { margin: 0 0 1em; max-width: var(--maxw-text); }
p.lede {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
}

.mono { font-family: var(--mono); }

/* ============================================================
   Layout primitives
   ============================================================ */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: clamp(72px, 9vw, 140px) 0; }
section + section { border-top: 1px solid var(--rule); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 0.9fr 1.4fr;
    gap: 80px;
    align-items: end;
  }
}
.section-head .lede { margin: 0; }

/* ============================================================
   Top navigation
   ============================================================ */

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.topnav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.brand .dot {
  color: var(--accent);
  font-weight: 600;
}
.brand .light { color: var(--ink-3); font-weight: 400; margin-left: 2px;}

.topnav-links {
  display: none;
  gap: 28px;
  margin-left: auto;
  margin-right: 24px;
  font-size: 14px;
  color: var(--ink-2);
}
.topnav-links a:hover { color: var(--ink); }
.topnav-links a.is-active { color: var(--ink); }

@media (min-width: 980px) { .topnav-links { display: inline-flex; } }

.topnav .cta {
  margin-left: auto;
}
@media (min-width: 980px) { .topnav .cta { margin-left: 0; } }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent); }

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

.btn-link {
  padding: 0;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding-bottom: 2px;
}
.btn-link:hover { color: var(--accent); border-color: var(--accent); }

.btn .arrow {
  width: 14px; height: 14px; flex-shrink: 0;
  transition: transform 160ms ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding-top: clamp(80px, 12vw, 180px);
  padding-bottom: clamp(80px, 10vw, 140px);
  border-bottom: 1px solid var(--rule);
}
.hero h1 .accent {
  font-style: italic;
  color: var(--accent);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 56px;
}
.hero-meta .btn-primary { padding: 16px 28px; font-size: 15px; }

.hero-foot {
  margin-top: 96px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
@media (min-width: 800px) {
  .hero-foot { grid-template-columns: 220px 1fr; }
}
.hero-foot-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 4px;
}
.hero-foot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 15px;
  color: var(--ink-2);
}
.hero-foot-list span {
  position: relative;
  padding-right: 28px;
}
.hero-foot-list span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  background: var(--ink-3);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* ============================================================
   Focus areas (3 col)
   ============================================================ */

.focus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .focus-grid { grid-template-columns: repeat(3, 1fr); }
}
.focus-card {
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .focus-card {
    padding: 48px 32px 56px 0;
    border-bottom: none;
    border-right: 1px solid var(--rule);
  }
  .focus-card + .focus-card { padding-left: 32px; }
  .focus-card:last-child { border-right: none; padding-right: 0; }
}
.focus-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.16em;
  margin-bottom: 28px;
}
.focus-card h3 { margin-bottom: 18px; }
.focus-card p { font-size: 16px; color: var(--ink-2); margin: 0; }

/* ============================================================
   Results (stat blocks)
   ============================================================ */

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 700px) {
  .stat { padding: 48px 32px 48px 0; border-right: 1px solid var(--rule); border-bottom: none; }
  .stat:nth-child(2n) { padding-right: 0; border-right: none; }
  .stat:nth-child(2n+1) { padding-left: 0; }
  .stat + .stat { padding-left: 32px; }
}
@media (min-width: 1080px) {
  .stat { padding: 48px 28px; border-right: 1px solid var(--rule); border-bottom: none; }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { padding-right: 0; border-right: none; }
  .stat:nth-child(2n) { border-right: 1px solid var(--rule); }
  .stat:nth-child(4n) { border-right: none; }
}

.stat-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 5.6vw, 76px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-feature-settings: "tnum" on, "lnum" on;
}
.stat-num .unit {
  font-size: 0.55em;
  color: var(--ink-3);
  letter-spacing: 0;
  font-style: italic;
}
.stat-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stat p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* ============================================================
   Case studies
   ============================================================ */

.cases { display: grid; gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); }
.case {
  background: var(--paper);
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 900px) {
  .case { grid-template-columns: 280px 1fr 1fr 1fr; gap: 48px; padding: 64px 0; }
}
.case-meta { display: flex; flex-direction: column; gap: 12px; }
.case-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.case h3 { margin: 0 0 6px; font-size: 26px; line-height: 1.15; }
.case-org { font-size: 14px; color: var(--ink-3); font-style: italic; }

.case-block { }
.case-block h5 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
  font-weight: 500;
}
.case-block p { font-size: 15.5px; color: var(--ink-2); margin: 0; max-width: none; }

/* ============================================================
   Process / approach
   ============================================================ */

.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 800px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .process { grid-template-columns: repeat(4, 1fr); } }

.step {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 800px) {
  .step { padding: 48px 28px 48px 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .step:nth-child(2n) { border-right: none; padding-right: 0; }
  .step:nth-child(2n+1) { padding-left: 0; }
  .step + .step { padding-left: 28px; }
}
@media (min-width: 1080px) {
  .step { padding: 48px 28px; border-right: 1px solid var(--rule); border-bottom: none; }
  .step:first-child { padding-left: 0; }
  .step:last-child { padding-right: 0; border-right: none; }
  .step:nth-child(2n) { border-right: 1px solid var(--rule); }
}
.step-num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.16em;
  margin-bottom: 28px;
}
.step h4 { margin: 0 0 12px; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.step p { font-size: 15.5px; color: var(--ink-2); margin: 0; }

/* ============================================================
   FAQ
   ============================================================ */

.faq { border-top: 1px solid var(--rule); }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 28px;
  line-height: 1;
  color: var(--ink-3);
  transition: transform 160ms ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent); }
.faq details > div {
  padding: 18px 0 8px;
  max-width: 70ch;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}

/* ============================================================
   Connect / contact
   ============================================================ */

.connect {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .connect { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.connect-card {
  padding: 40px 0 0;
}
.connect-email {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  display: inline-block;
  margin-top: 8px;
}
.connect-email:hover { color: var(--accent); border-color: var(--accent); }
.connect-meta {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 20px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ============================================================
   Footer
   ============================================================ */

footer {
  padding: 80px 0 48px;
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
}
.foot-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 800px) {
  .foot-top { grid-template-columns: 1.4fr 1fr; gap: 64px; }
}
.foot-product {
  display: flex;
  gap: 18px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, transform 160ms ease;
}
.foot-product:hover { border-color: var(--ink); }
.foot-product img { width: 56px; height: 56px; border-radius: 12px; }
.foot-product-text { flex: 1; }
.foot-product-text .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.foot-product-text .title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 2px;
}
.foot-product-text .desc { font-size: 13.5px; color: var(--ink-2); }
.foot-product .arrow { color: var(--ink-3); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 48px;
  font-size: 13px;
  color: var(--ink-3);
}
.foot-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-links a:hover { color: var(--ink); }

/* ============================================================
   Utility
   ============================================================ */

.muted { color: var(--ink-3); }
.indent { padding-left: 32px; }

.divider-num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

/* ============================================================
   Section indices — editorial Roman numerals
   ============================================================ */

.section-index {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.section-index .roman {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--amber);
  letter-spacing: -0.01em;
  line-height: 1;
}
.section-index .label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-index .of {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ============================================================
   Hero accent ornament
   ============================================================ */

.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.hero-mark .ink-square {
  width: 32px; height: 32px;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  border-radius: 6px;
}
.hero-mark .ink-square .dot { color: oklch(0.62 0.10 245); }

/* Hero meta-rail */
.hero-rail {
  margin-top: 88px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 800px) {
  .hero-rail { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}
.hero-rail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-rail-item .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-rail-item .v {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
}
.hero-rail-item .v .accent-amber { color: var(--amber); font-style: italic; }

/* ============================================================
   Stat bar visualizations
   ============================================================ */

.stat-bar {
  margin-top: 8px;
  height: 4px;
  width: 100%;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.stat-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  border-radius: 999px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.stat.in-view .stat-bar i { transform: scaleX(var(--fill, 0.5)); }
.stat-bar-meta {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
}

/* ============================================================
   Dark "moment" section — pull-quote / philosophy
   ============================================================ */

.dark-section {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  border-top: none !important;
  border-bottom: none !important;
}
.dark-section + section { border-top: none; }
.dark-section .eyebrow { color: oklch(0.68 0.04 240); }
.dark-section .eyebrow::before { background: oklch(0.45 0.04 240); }
.dark-section h2 { color: var(--paper); }
.dark-section h2 em { color: var(--amber); }
.dark-section p { color: oklch(0.78 0.012 80); }
.dark-section .pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: 22ch;
  margin: 0;
}
.dark-section .pull-quote::before {
  content: "“";
  font-family: var(--serif);
  font-style: normal;
  color: var(--amber);
  font-size: 1.4em;
  line-height: 0;
  position: relative;
  top: 0.2em;
  margin-right: 0.1em;
}
.dark-section .pull-attr {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid oklch(0.35 0.02 240);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.62 0.04 240);
}
.dark-section .pull-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
@media (min-width: 980px) {
  .dark-section .pull-grid { grid-template-columns: 1.4fr 1fr; gap: 96px; }
}
.dark-section .pull-side h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0 0 14px;
}
.dark-section .pull-side p {
  font-size: 16px;
  line-height: 1.65;
  color: oklch(0.78 0.012 80);
  margin: 0 0 20px;
}

/* ============================================================
   Engagement Fit Tool — interactive assessment
   ============================================================ */

.fit-tool {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 1px 0 oklch(0.96 0 0), 0 30px 60px -40px oklch(0.18 0.04 250 / 0.18);
}
.fit-tool-head {
  padding: 36px 40px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.fit-tool-head .label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.fit-tool-head .label::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
}
.fit-tool-head h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  max-width: 24ch;
  line-height: 1.1;
}
.fit-tool-head p {
  font-size: 15.5px;
  color: var(--ink-2);
  margin: 0;
  max-width: 50ch;
}
.fit-tool-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.fit-tool-progress .bar {
  width: 80px;
  height: 3px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.fit-tool-progress .bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--ink);
  border-radius: 999px;
  transition: width 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.fit-tool-body {
  padding: 44px 40px 40px;
  min-height: 440px;
}
.fit-step {
  display: none;
  animation: fitFade 260ms ease;
}
.fit-step.is-active { display: block; }
@keyframes fitFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.fit-step .q-num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.fit-step h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  line-height: 1.2;
  max-width: 30ch;
}

.fit-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 700px) { .fit-options { grid-template-columns: 1fr 1fr; gap: 12px; } }

.fit-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  width: 100%;
}
.fit-option:hover { border-color: var(--ink-3); background: var(--paper-2); }
.fit-option.is-selected { border-color: var(--ink); background: var(--paper-2); }
.fit-option .radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--rule-2);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: border-color 160ms ease;
}
.fit-option.is-selected .radio { border-color: var(--ink); }
.fit-option.is-selected .radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--ink);
}
.fit-option .text { display: flex; flex-direction: column; gap: 4px; }
.fit-option .t-main {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.fit-option .t-sub {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.4;
}

.fit-tool-foot {
  padding: 22px 40px;
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.fit-back {
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-3);
  cursor: pointer;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fit-back:hover { color: var(--ink); }
.fit-back[disabled] { opacity: 0.35; cursor: not-allowed; }
.fit-next {
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 160ms ease, transform 160ms ease;
}
.fit-next:hover { background: var(--accent); }
.fit-next:active { transform: translateY(1px); }
.fit-next[disabled] {
  background: var(--rule);
  color: var(--ink-3);
  cursor: not-allowed;
}

/* Result view */
.fit-result {
  display: none;
  animation: fitFade 320ms ease;
}
.fit-result.is-active { display: block; }
.fit-result .badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.fit-result .badge.likely { background: oklch(0.92 0.05 145); color: oklch(0.36 0.07 150); }
.fit-result .badge.likely::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: oklch(0.5 0.085 150); }
.fit-result .badge.worth { background: var(--amber-2); color: oklch(0.45 0.10 65); }
.fit-result .badge.worth::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.fit-result .badge.outside { background: oklch(0.92 0.012 250); color: oklch(0.36 0.04 250); }
.fit-result .badge.outside::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: oklch(0.5 0.04 250); }

.fit-result h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 26ch;
}
.fit-result h4 em { color: var(--amber); }
.fit-result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 32px 0;
  padding: 24px;
  background: var(--paper-2);
  border-radius: 14px;
}
@media (min-width: 700px) { .fit-result-grid { grid-template-columns: repeat(3, 1fr); } }
.fit-result-grid .cell .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.fit-result-grid .cell .v {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}
.fit-result p { font-size: 16px; color: var(--ink-2); margin: 0 0 18px; max-width: 60ch; }
.fit-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.fit-result-actions .btn-primary { background: var(--ink); color: var(--paper); }
.fit-result-actions .btn-primary:hover { background: var(--accent); }

/* Hero quick-fit teaser */
.hero-fit-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--amber-2);
  border: 1px solid oklch(0.88 0.05 75);
  transition: background 160ms ease;
}
.hero-fit-link:hover { background: oklch(0.92 0.04 75); }
.hero-fit-link::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
}
