/* FMCG & Wholesale Scorecard redesign. Loaded after tools.css and the page's inline styles.
   Only transform/opacity/colour transitions. Reduced-motion fallbacks at the bottom. */
:root {
  --sc-green: #386400; --sc-deep: #264500; --sc-lime: #bff09a; --sc-leaf: #e3f6d3;
  --sc-paper: #f2f5ef; --sc-line: #dce2d8; --sc-forest: #0e1f05; --sc-ink: #3b4536;
  --sc-muted: #586152; --sc-risk: #b42318; --sc-risk-bg: #fdecea; --sc-amber: #a15c00;
  --sc-ring: 0 0 0 3px #fff, 0 0 0 6px #386400;
}
html, body { overflow-x: clip; }
body { font-size: 16px; line-height: 1.6; background: #fff; }
p { font-size: 1rem; }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--sc-green); outline-offset: 3px; }

/* Buttons */
.sc-btn, html body #dashboard-section a[href*="calendar.app.google"], .founder-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px; border: 0; border-radius: 999px;
  background: var(--sc-green); color: #fff; font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer; letter-spacing: 0; text-transform: none;
  transition: background-color .15s ease, transform .15s ease;
}
.sc-btn:hover, html body #dashboard-section a[href*="calendar.app.google"]:hover, .founder-cta-btn:hover { background: var(--sc-deep); transform: translateY(-1px); filter: none; }
.sc-btn:active, html body #dashboard-section a[href*="calendar.app.google"]:active { transform: none; }
.sc-btn:disabled { background: var(--sc-paper); color: var(--sc-muted); cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--sc-line); transform: none; }

/* Hero */
.sc-hero { min-height: 100svh; display: flex; flex-direction: column; background: #fff; position: relative; padding-top: 104px; }
.sc-hero.hidden { display: none; }
.sc-hero__grid { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px 24px 72px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; align-items: center; }
.sc-hero__title { font-size: clamp(2.25rem, 4.2vw, 3.75rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; color: var(--sc-forest); margin: 0 0 24px; }
.sc-hero__title span { color: var(--sc-green); }
.sc-hero__lede { font-size: 1.25rem; line-height: 1.55; color: var(--sc-ink); max-width: 34rem; margin: 0 0 32px; }
.sc-prev { background: var(--sc-paper); border: 1px solid var(--sc-line); border-radius: 20px; padding: 28px; }
.sc-prev__title { font-size: 1.125rem; font-weight: 700; color: var(--sc-forest); margin: 0 0 16px; }
.sc-prev__list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--sc-line); border-radius: 12px; }
.sc-prev__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.sc-prev__row + .sc-prev__row { border-top: 1px solid var(--sc-line); }
.sc-prev__name { font-size: 1rem; font-weight: 600; color: var(--sc-forest); }
.sc-prev__track { display: flex; gap: 4px; flex-shrink: 0; }
.sc-prev__track i { width: 28px; height: 8px; border-radius: 4px; background: var(--sc-leaf); }
.sc-prev__foot { font-size: 1rem; color: var(--sc-muted); margin: 16px 0 0; }
.sc-ticker { overflow: hidden; border-top: 1px solid var(--sc-line); background: var(--sc-paper); padding: 14px 0; }
.sc-ticker__track { display: flex; gap: 12px; width: max-content; padding-left: 12px; animation: scroll 50s linear infinite; }
.sc-pill { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: #fff; border: 1px solid var(--sc-line); border-radius: 999px; padding: 8px 16px; font-size: 1rem; color: var(--sc-ink); }
.sc-pill .material-symbols-outlined { font-size: 18px; color: var(--sc-green); }

/* Question flow */
.sc-q { min-height: 100svh; padding: 112px 24px 64px; background: #fff; }
.sc-q.hidden { display: none; }
.sc-q__grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: start; }
.sc-q__rail { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 32px; }
.sc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sc-steps__item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px; border-radius: 12px; font-size: 1rem; color: var(--sc-muted); transition: background-color .2s ease, color .2s ease; }
.sc-steps__n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .875rem; font-weight: 700; border: 1px solid var(--sc-line); background: #fff; color: var(--sc-muted); }
.sc-steps__item.is-done .sc-steps__n { background: var(--sc-leaf); border-color: var(--sc-leaf); color: var(--sc-green); }
.sc-steps__item.is-current { background: var(--sc-leaf); color: var(--sc-forest); font-weight: 700; }
.sc-steps__item.is-current .sc-steps__n { background: var(--sc-green); border-color: var(--sc-green); color: #fff; }
.sc-insight { border-top: 1px solid var(--sc-line); padding-top: 24px; }
.sc-insight__label { font-size: .9375rem; font-weight: 700; color: var(--sc-muted); margin: 0 0 8px; }
.sc-insight__val { font-size: 2.5rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--sc-green); margin: 0 0 8px; }
.sc-insight__text { color: var(--sc-ink); margin: 0 0 16px; }
.sc-insight__quote { color: var(--sc-muted); font-style: normal; margin: 0; }
.sc-progress { height: 6px; background: var(--sc-paper); border-radius: 3px; overflow: hidden; margin-bottom: 40px; }
.sc-progress__bar { height: 100%; background: var(--sc-green); border-radius: 3px; transition: width .25s ease; }
.sc-q-step { display: block; font-size: 1rem; font-weight: 600; color: var(--sc-green); letter-spacing: 0; text-transform: none; font-family: inherit; }
#question-container h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; color: var(--sc-forest); margin-top: 12px; }
#question-container .grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
#question-container .option-btn {
  position: relative; display: flex; align-items: center; width: 100%; min-height: 64px; height: auto;
  padding: 16px 20px 16px 56px; background: #fff; backdrop-filter: none; border: 1px solid var(--sc-line); border-radius: 12px;
  text-align: left; box-shadow: none; cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
#question-container .option-btn::before { content: ""; position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 2px solid #8a9484; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
#question-container .option-btn:hover { border-color: var(--sc-green); background: var(--sc-paper); }
#question-container .option-btn:focus-visible { outline: 3px solid var(--sc-green); outline-offset: 3px; }
#question-container .option-btn.selected-option { border-color: var(--sc-green) !important; background: var(--sc-leaf) !important; box-shadow: none !important; }
#question-container .option-btn.selected-option::before { border-color: var(--sc-green); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--sc-green); }
#question-container .option-btn > div { width: 100%; }
#question-container .option-btn > div > div:first-child, #question-container .option-btn .check-icon { display: none; }
#question-container .option-btn .font-bold { font-size: 1.0625rem; font-weight: 600; color: var(--sc-forest); }
.sc-q__actions { margin-top: 32px; display: flex; justify-content: flex-end; }
.sc-q__actions .sc-btn:not(:disabled) { background: var(--sc-green); color: #fff; box-shadow: none; }

/* Loading */
.sc-loading { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px; text-align: center; background: #fff; }
.sc-loading.hidden { display: none; }
.sc-loading__spin { width: 56px; height: 56px; border-radius: 50%; border: 4px solid var(--sc-leaf); border-top-color: var(--sc-green); }
.sc-loading__text { font-size: 1.25rem; font-weight: 700; color: var(--sc-forest); max-width: 24rem; animation: none; }

/* Results: bands */
html body #dashboard-section { padding: 0; background: #fff; }
html body #dashboard-section .audit-container { max-width: 1160px; padding: 0 24px; margin: 0 auto; }
html body #dashboard-section .sc-band { position: relative; isolation: isolate; padding: 64px 0; margin: 0; }
html body #dashboard-section .sc-band::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: #fff; }
html body #dashboard-section .sc-band--paper::before { background: var(--sc-paper); }
html body #dashboard-section .sc-band--dark::before { background: var(--sc-forest); }
html body #dashboard-section .sc-band--dark { color: #fff; }
html body #dashboard-section .sc-band:first-child { padding-top: 120px; }
html body #dashboard-section .audit-section { margin: 0; padding: 0; }
html body #dashboard-section .sc-band--dark .audit-section { margin-top: 40px; }
html body #dashboard-section .dashboard-header { margin: 0; padding: 0; }
html body #dashboard-section .dashboard-header h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
html body #dashboard-section .dashboard-header p { color: #d4e4c6; font-size: 1.125rem; max-width: 40rem; }
html body #dashboard-section .audit-section-title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -0.02em; color: var(--sc-forest); margin: 0 0 28px; }
html body #dashboard-section .sc-band--dark .audit-section-title { color: #fff; }
html body #dashboard-section .audit-chart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }

/* Chart panels */
html body #dashboard-section .chart-panel { background: var(--sc-paper); backdrop-filter: none; border: 1px solid var(--sc-line); border-radius: 16px; padding: 28px; box-shadow: none; height: 100%; }
html body #dashboard-section .sc-band--paper .chart-panel { background: #fff; }
html body #dashboard-section .chart-panel-score { background: rgba(255,255,255,.06); border-color: rgba(191,240,154,.22); padding: 32px 24px; }
html body #dashboard-section .chart-panel-score circle:first-child { stroke: rgba(255,255,255,.14); }
html body #dashboard-section .chart-panel-score #score-circle { stroke: var(--sc-lime); stroke-linecap: round; }
html body #dashboard-section .chart-panel-score .score-gauge-value { color: #fff; }
html body #dashboard-section .chart-panel-score .text-on-surface-variant, html body #dashboard-section .chart-panel-score #tier-description { color: #d4e4c6; font-size: 1rem; text-transform: none; letter-spacing: 0; }
html body #dashboard-section #tier-badge { font-family: inherit; font-size: .9375rem; font-weight: 700; text-transform: none; letter-spacing: 0; padding: 6px 16px; border-radius: 999px; }
html body #dashboard-section .sc-band--dark .audit-chart-col > p { color: #d4e4c6; font-size: 1rem; margin-top: 16px; }
html body #dashboard-section .sc-band--dark .audit-chart-col > p .font-bold { color: var(--sc-lime); }
html body #dashboard-section .sc-band--dark .audit-insight-title { color: #fff; }
html body #dashboard-section .sc-band--dark a[href*="calendar.app.google"] { background: var(--sc-lime); color: var(--sc-forest); }
html body #dashboard-section .sc-band--dark a[href*="calendar.app.google"]:hover { background: #d3f6b9; }
#leakage-total { color: var(--sc-risk); }

/* Insight panel and callouts */
html body #dashboard-section .audit-case-col { display: flex; flex-direction: column; justify-content: flex-start; }
html body #dashboard-section .audit-insight-panel { background: transparent; backdrop-filter: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; height: auto; gap: 0; }
html body #dashboard-section .audit-insight-title { font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: var(--sc-forest); margin: 0 0 16px; }
html body #dashboard-section .audit-insight-panel > div[class*="border-l-"] { border: 0; border-radius: 14px; padding: 20px 24px; margin: 0 0 16px; }
html body #dashboard-section .audit-insight-panel > div.border-l-error { background: var(--sc-risk-bg); }
html body #dashboard-section .audit-insight-panel > div.border-l-diagnostic-green { background: var(--sc-leaf); }
html body #dashboard-section .audit-insight-panel .sc-label { font-size: 1rem; font-weight: 700; margin: 0 0 6px; letter-spacing: 0; text-transform: none; }
html body #dashboard-section .audit-insight-panel > div.border-l-error .sc-label { color: var(--sc-risk); }
html body #dashboard-section .audit-insight-panel > div.border-l-diagnostic-green .sc-label { color: var(--sc-green); }
html body #dashboard-section .audit-insight-panel p:not(.sc-label) { font-size: 1rem; color: var(--sc-ink); }
html body #dashboard-section .audit-insight-panel > a { align-self: flex-start; margin-top: 8px; }
html body #dashboard-section .market-chart-wrap p { color: var(--sc-ink); }
html body #dashboard-section #user-dot-label { font-size: 12px; }

/* Health scan + gaps */
html body #dashboard-section .health-scan { margin: 0; padding: 56px 28px 24px; background: var(--sc-paper); border: 1px solid var(--sc-line); border-radius: 16px; }
html body #dashboard-section .health-scan__badge { top: 20px; left: 28px; font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 700; }
html body #dashboard-section .health-scan__legend { top: 20px; right: 28px; font-size: .9375rem; flex-direction: row; gap: 16px; }
html body #dashboard-section .health-scan__grid-label { font-size: .875rem; letter-spacing: 0; text-transform: none; }
html body #dashboard-section .health-scan__vector { letter-spacing: 0; text-transform: none; font-size: .875rem; }
html body #dashboard-section .health-scan__score { font-size: .9375rem; }
html body #dashboard-section .gap-alert-framing { font-size: 1rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--sc-muted); margin: 0 0 8px; }
html body #dashboard-section .gap-alert-list { border: 0; display: grid; gap: 12px; }
html body #dashboard-section .gap-alert-row { background: #fff; border: 1px solid var(--sc-line); border-radius: 14px; padding: 20px 24px; grid-template-columns: 110px minmax(0, 1.6fr) minmax(0, 1fr) 150px; align-items: center; }
html body #dashboard-section .gap-severity-badge { writing-mode: horizontal-tb; transform: none; font-size: .9375rem; letter-spacing: 0; text-transform: none; font-weight: 700; border-radius: 999px; padding: 4px 12px; border-width: 1px; }
html body #dashboard-section .gap-severity-badge--critical { background: var(--sc-risk-bg); }
html body #dashboard-section .gap-severity-badge--high { background: #fff3e0; }
html body #dashboard-section .gap-severity-badge--moderate { background: var(--sc-paper); }
html body #dashboard-section .gap-alert-title { font-size: 1.0625rem; letter-spacing: 0; text-transform: none; }
html body #dashboard-section .gap-alert-desc, html body #dashboard-section .gap-alert-metric { font-size: 1rem; color: var(--sc-ink); }
html body #dashboard-section .gap-alert-cost { font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--sc-risk); font-weight: 700; }

/* Founder */
html body #dashboard-section .about-founder-section { margin: 0; padding: 0; background: transparent; border: 0; }
html body #dashboard-section .about-founder-grid { gap: 40px; align-items: center; }
html body #dashboard-section .about-founder-photo img { border-radius: 16px; }
html body #dashboard-section .about-founder-label { font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--sc-green); font-weight: 700; }
html body #dashboard-section .about-founder-role { font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--sc-muted); }
html body #dashboard-section .about-founder-p { color: var(--sc-ink); font-size: 1rem; }
html body #dashboard-section .about-founder-proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
html body #dashboard-section .about-founder-proof span { background: #fff; border: 1px solid var(--sc-line); border-radius: 999px; padding: 6px 14px; font-size: 1rem; color: var(--sc-ink); }
html body #dashboard-section .founder-cta-card { background: transparent; border: 0; box-shadow: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.founder-cta-eyebrow { font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--sc-lime); font-weight: 600; }
.founder-cta-heading { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -0.025em; }
.founder-cta-subtext, .founder-cta-trust { color: #d4e4c6; font-size: 1rem; }
.founder-cta-btn { background: var(--sc-lime); color: var(--sc-forest); }
.founder-cta-btn:hover { background: #d3f6b9; }
.founder-cta-secondary-link { color: var(--sc-lime); font-size: 1rem; min-height: 44px; display: inline-flex; align-items: center; }
html body #dashboard-section .sc-band--dark a:focus-visible, html body #lead-capture-modal :focus-visible { outline-color: var(--sc-lime); }

/* Case studies */
html body #dashboard-section .audit-case-studies-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
html body #dashboard-section .audit-case-card { display: flex; flex-direction: column; background: #fff; backdrop-filter: none; border: 1px solid var(--sc-line); border-radius: 16px; padding: 28px; box-shadow: none; }
html body #dashboard-section .audit-case-card > p.text-on-surface-variant.text-sm:not(.font-medium) { flex: 1 1 auto; font-size: 1rem; color: var(--sc-ink); }
html body #dashboard-section .sc-tag { align-self: flex-start; display: inline-block; background: var(--sc-leaf); color: var(--sc-green); border-radius: 999px; padding: 4px 12px; font-size: .9375rem; font-weight: 700; margin: 0 0 14px; letter-spacing: 0; text-transform: none; }
html body #dashboard-section .audit-case-card .font-medium { font-size: 1rem; color: var(--sc-muted); }
html body #dashboard-section .audit-case-card h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.015em; color: var(--sc-forest); }
html body #dashboard-section .audit-case-card .grid { margin-top: auto; }
html body #dashboard-section .audit-case-card .grid > div { background: var(--sc-leaf); border-radius: 12px; padding: 14px; text-align: left; }
html body #dashboard-section .audit-case-card .grid > div > p:first-child { color: var(--sc-green); }
html body #dashboard-section .sc-metric-l { font-size: .9375rem; line-height: 1.35; color: var(--sc-ink); margin-top: 4px; }
html body #dashboard-section .audit-case-card > p:last-child { font-size: .9375rem; font-style: normal; color: var(--sc-muted); }

/* Lead capture modal */
html body .lead-capture-dialog { border-radius: 20px; box-shadow: none; border: 1px solid var(--sc-line); }
html body .lead-capture-dialog__accent { display: none; }
html body .lead-capture-field label { letter-spacing: 0; text-transform: none; font-size: 1rem; }
html body .lead-capture-field input, html body .lead-capture-field select { min-height: 48px; font-size: 1rem; border-radius: 12px; }
html body .lead-capture-submit { border-radius: 999px; min-height: 48px; font-size: 1rem; letter-spacing: 0; text-transform: none; background: var(--sc-green); color: #fff; }
html body .lead-capture-submit:hover { background: var(--sc-deep); }

/* Responsive */
@media (max-width: 1023px) {
  .sc-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 48px; }
  .sc-q__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sc-q__main { order: 1; }
  .sc-q__rail { order: 2; position: static; }
  .sc-steps { display: none; }
}
@media (max-width: 767px) {
  .sc-hero { padding-top: 88px; }
  .sc-hero__grid { padding: 24px 16px 40px; }
  .sc-hero__lede { font-size: 1.0625rem; }
  .sc-hero .sc-btn { width: 100%; }
  .sc-prev { padding: 20px; }
  .sc-prev__row { padding: 12px 16px; }
  .sc-q { padding: 88px 16px 40px; }
  .sc-q__actions .sc-btn { width: 100%; }
  html body { font-size: 16px; }
  html body p { font-size: 16px; }
  html body #dashboard-section .audit-container { padding: 0 16px; }
  html body #dashboard-section .sc-band { padding: 44px 0; }
  html body #dashboard-section .sc-band:first-child { padding-top: 96px; }
  html body #dashboard-section .audit-chart-grid, html body #dashboard-section .audit-case-studies-grid, html body #dashboard-section .founder-cta-card { grid-template-columns: minmax(0, 1fr); }
  html body #dashboard-section .gap-alert-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px; }
  html body #dashboard-section .health-scan { padding: 80px 16px 16px; }
  html body #dashboard-section .health-scan__legend { top: 52px; left: 16px; right: auto; }
  html body #dashboard-section .health-scan__badge { left: 16px; }
  html body #dashboard-section .chart-panel { padding: 20px; }
  html body #dashboard-section .audit-case-card { padding: 20px; }
  html body #dashboard-section .audit-insight-panel > a, html body #dashboard-section .founder-cta-btn { align-self: stretch; width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .stagger-in, .fade-in, .scroll-reveal { opacity: 1 !important; transform: none !important; }
  .sc-ticker__track { width: auto; flex-wrap: wrap; justify-content: center; padding: 0 12px; }
  .sc-ticker__track .sc-pill:nth-child(n+5) { display: none; }
  .arc-gauge { transition: none; }
}

/* Overrides for !important rules in tools.css */
html body #hero-section .sc-btn, html body #next-btn, html body #dashboard-section a[href*="calendar.app.google"], html body .founder-cta-btn { letter-spacing: 0; }
html body #dashboard-section .sc-band--dark a[href*="calendar.app.google"], html body .founder-cta-btn { background: var(--sc-lime) !important; color: var(--sc-forest) !important; }
html body #dashboard-section .sc-band--dark a[href*="calendar.app.google"]:hover, html body .founder-cta-btn:hover { background: #d3f6b9 !important; }
html body .founder-cta-card { background: transparent !important; border: 0 !important; }
html body #question-container .option-btn { border: 1px solid var(--sc-line) !important; background: #fff !important; border-radius: 12px !important; box-shadow: none !important; }
html body #question-container .option-btn:hover { border-color: var(--sc-green) !important; background: var(--sc-paper) !important; }
html body #question-container .option-btn.selected-option { border-color: var(--sc-green) !important; background: var(--sc-leaf) !important; box-shadow: none !important; }
html body #dashboard-section .audit-insight-panel > div[class*="border-l-"] { padding: 20px 24px !important; margin: 0 0 16px !important; border-radius: 14px; border-left-width: 0; }
html body #dashboard-section .audit-case-card > p.sc-tag { letter-spacing: 0; padding: 4px 12px; border: 0; color: var(--sc-green) !important; }
html body #dashboard-section .audit-case-card .grid > div { border: 0; border-radius: 12px; }
html body #dashboard-section .audit-case-card .grid p.text-primary { color: var(--sc-green) !important; }
html body #dashboard-section .gap-severity-badge { letter-spacing: 0; }
html body #dashboard-section .gap-alert-metric { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 500; }
html body #dashboard-section .founder-cta-secondary-link { text-transform: none; letter-spacing: 0; font-weight: 700; }
html body #dashboard-section .gap-alert-row * { text-transform: none; }
html body #hero-ticker-strip { position: relative !important; top: auto !important; bottom: auto !important; left: auto !important; right: auto !important; width: 100% !important; z-index: 1 !important; border-top: 1px solid var(--sc-line) !important; border-bottom: 0 !important; padding: 14px 0 !important; background: var(--sc-paper) !important; }
html body #question-container .option-btn { padding: 16px 20px 16px 56px !important; min-height: 64px !important; position: relative; }
html body #dashboard-section .sc-label { line-height: 1.4; }
html body #dashboard-section .audit-chart-col { display: flex; flex-direction: column; min-width: 0; }
html body #dashboard-section .audit-chart-col .chart-panel { height: auto; flex: 1 1 auto; }
html body #dashboard-section .audit-chart-col > p { text-align: left; }
@media (max-width: 767px) {
  html body #dashboard-section .health-scan { padding: 80px 8px 16px; }
  html body #dashboard-section .health-scan__vector { font-size: .6875rem; line-height: 1.25; overflow-wrap: anywhere; text-align: center; letter-spacing: 0; }
  html body #dashboard-section .health-scan__score { font-size: .75rem; white-space: nowrap; }
  html body #dashboard-section .health-scan__groups { gap: 2px; }
  html body #dashboard-section .health-scan__grid-label { font-size: .75rem; }
}
html body #dashboard-section .gap-alert-metric, html body #dashboard-section .gap-alert-row * { font-variant: normal; font-variant-caps: normal; }
@media (max-width: 767px) {
  html body #dashboard-section .radar-chart-wrap { height: 340px; position: relative; }
  html body #dashboard-section .radar-chart-wrap canvas { height: 100% !important; width: 100% !important; }
}

/* ===== Second pass: alignment, rhythm and mobile ===== */
:root { --sc-gutter: 24px; --sc-max: 1160px; }
h1, h2, h3, .sc-hero__title, #question-container h2, .audit-section-title, .audit-insight-title, .founder-cta-heading { text-wrap: balance; }
.sc-hero__lede, .sc-prev__foot { text-wrap: pretty; }

/* One container: hero, flow, results, case studies */
html body #hero-section { padding-left: 0 !important; padding-right: 0 !important; }
html body .sc-hero__grid, html body .sc-q__grid, html body #dashboard-section .audit-container { max-width: var(--sc-max); width: 100%; margin-left: auto; margin-right: auto; padding-left: var(--sc-gutter); padding-right: var(--sc-gutter); box-sizing: border-box; }
html body .sc-q { padding-left: 0; padding-right: 0; }
html body .sc-hero__grid { gap: 64px; }
html body #hero-ticker-strip .sc-ticker__track { padding-left: var(--sc-gutter); }
.sc-hero__title { max-width: 16ch; }
html body .sc-hero__copy .sc-btn { min-width: 260px; }

/* Desktop: gap rows, health scan label overlap, equal-height cards */
html body #dashboard-section .health-scan__grid-line--full .health-scan__grid-label { display: none; }
html body #dashboard-section .health-scan__score-row { margin-bottom: 8px; }
html body #dashboard-section .audit-case-card { height: 100%; }
html body #dashboard-section .gap-alert-row { column-gap: 24px; }
html body #dashboard-section .gap-alert-cost { text-align: right; }

/* Tablet */
@media (max-width: 1023px) {
  :root { --sc-gutter: 20px; }
  html body .sc-hero__grid { gap: 32px; padding-top: 24px; padding-bottom: 48px; }
  .sc-hero { min-height: 0; padding-top: 96px; }
  .sc-hero__title { max-width: 22ch; }
  .sc-q__grid { display: flex; flex-direction: column; gap: 24px; }
  .sc-q__rail { order: 3; padding-top: 8px; }
  .sc-q__main { order: 1; }
}

/* Phone */
@media (max-width: 767px) {
  :root { --sc-gutter: 16px; }
  html body .sc-hero { padding-top: 80px; }
  html body .sc-hero__grid { padding-top: 20px; padding-bottom: 32px; gap: 28px; }
  .sc-hero__title { font-size: clamp(1.875rem, 8.2vw, 2.25rem); line-height: 1.08; margin-bottom: 16px; max-width: none; }
  .sc-hero__lede { font-size: 1.0625rem; margin-bottom: 24px; }
  html body .sc-hero__copy .sc-btn { width: 100%; min-width: 0; }
  .sc-prev { padding: 16px; border-radius: 16px; }
  .sc-prev__title { font-size: 1rem; margin-bottom: 12px; }
  .sc-prev__row { padding: 10px 14px; gap: 12px; }
  .sc-prev__name { font-size: .9375rem; line-height: 1.3; }
  .sc-prev__track i { width: 20px; }
  .sc-prev__foot { font-size: .9375rem; margin-top: 12px; }
  html body #hero-ticker-strip .sc-pill { font-size: .9375rem; padding: 8px 14px; }

  /* Question flow: compact header, fixed bottom action bar */
  html body .sc-q { padding: 84px 0 0; min-height: 100svh; }
  .sc-progress { margin-bottom: 20px; height: 8px; }
  .sc-q-step { font-size: .9375rem; }
  #question-container h2 { font-size: 1.5rem; margin-top: 8px; margin-bottom: 20px; }
  #question-container .grid { gap: 10px; }
  html body #question-container .option-btn { min-height: 60px !important; padding: 14px 16px 14px 52px !important; }
  #question-container .option-btn::before { left: 16px; }
  #question-container .option-btn .font-bold { font-size: 1rem; line-height: 1.35; }
  html body #question-container .option-btn.selected-option { border-width: 2px !important; padding: 13px 15px 13px 51px !important; }
  html body #question-container .option-btn.selected-option::before { left: 15px; }
  .sc-q__main { padding-bottom: 24px; }
  .sc-q__actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; padding: 12px var(--sc-gutter) calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--sc-line); }
  .sc-q__actions .sc-btn { width: 100%; }
  .sc-q__rail { padding-bottom: 104px; }
  .sc-insight { padding-top: 20px; }
  .sc-insight__val { font-size: 2rem; }

  /* Results */
  html body #dashboard-section .sc-band { padding: 40px 0; }
  html body #dashboard-section .sc-band:first-child { padding-top: 88px; }
  html body #dashboard-section .dashboard-header h1 { font-size: 1.875rem; margin-bottom: 12px; }
  html body #dashboard-section .dashboard-header p { font-size: 1.0625rem; }
  html body #dashboard-section .audit-section-title { font-size: 1.5rem; margin-bottom: 20px; }
  html body #dashboard-section .audit-chart-grid { gap: 20px; }
  html body #dashboard-section .chart-panel-score { padding: 24px 16px; }
  html body #dashboard-section .audit-insight-title { font-size: 1.1875rem; }
  html body #dashboard-section .audit-insight-panel > div[class*="border-l-"] { padding: 18px !important; }
  html body #dashboard-section .audit-insight-panel > a, html body #dashboard-section a[href*="calendar.app.google"], html body .founder-cta-btn { width: 100%; align-self: stretch; padding: 12px 20px; font-size: 1rem; text-wrap: balance; min-height: 52px; }
  html body #dashboard-section .radar-chart-wrap { height: 320px; }

  /* Health scan: 3 x 2 grid so labels get room */
  html body #dashboard-section .health-scan { padding: 72px 16px 20px; }
  html body #dashboard-section .health-scan__legend { top: 48px; left: 16px; right: 16px; gap: 14px; flex-wrap: wrap; font-size: .875rem; }
  html body #dashboard-section .health-scan__plot { height: auto; }
  html body #dashboard-section .health-scan__grid { display: none; }
  html body #dashboard-section .health-scan__groups { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 24px 8px; padding: 0; height: auto; }
  html body #dashboard-section .health-scan__bar { width: 24px; }
  html body #dashboard-section .health-scan__vector { font-size: .8125rem; line-height: 1.3; margin-top: 8px; overflow-wrap: normal; word-break: normal; hyphens: none; min-height: 2.6em; }
  html body #dashboard-section .health-scan__score { font-size: .8125rem; }

  /* Gap alerts: stacked cards, badge and cost on one line */
  html body #dashboard-section .gap-alert-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 18px 16px; align-items: center; }
  html body #dashboard-section .gap-alert-row > :nth-child(1) { grid-column: 1; grid-row: 1; justify-self: start; }
  html body #dashboard-section .gap-alert-row > :nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }
  html body #dashboard-section .gap-alert-row > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  html body #dashboard-section .gap-alert-row > :nth-child(3) { grid-column: 1 / -1; grid-row: 3; padding-top: 8px; border-top: 1px solid var(--sc-line); }

  html body #dashboard-section .about-founder-grid { gap: 24px; }
  html body #dashboard-section .about-founder-proof span { font-size: .9375rem; border-radius: 14px; }
  html body #dashboard-section .audit-case-studies-grid { gap: 16px; }
  html body #dashboard-section .audit-case-card .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html body #dashboard-section .audit-case-card .grid > div { padding: 12px 10px; }
  html body #dashboard-section .sc-metric-l { font-size: .875rem; overflow-wrap: anywhere; }

  /* Lead modal */
  html body .lead-capture-dialog { max-height: calc(100dvh - 24px); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 24px 20px; }
  html body #lead-capture-modal input, html body #lead-capture-modal select { font-size: 16px; min-height: 48px; }
  html body .lead-capture-submit { width: 100%; min-height: 52px; }
}
@media (max-width: 389px) {
  html body #dashboard-section .audit-case-card .grid { grid-template-columns: minmax(0, 1fr); }
}

html body #question-section { padding-left: 0; padding-right: 0; }
@media (max-width: 767px) { html body #dashboard-section .radar-chart-wrap { height: 360px; } }
@media (max-width: 1023px) { html body .sc-q__rail, html body .sc-q__main { width: 100%; } }

/* Spacing fix: header is sticky (it takes its own space), so screens need no top padding for it. */
html body .sc-hero { min-height: calc(100svh - 72px); padding-top: 0; }
html body .sc-q { min-height: calc(100svh - 72px); padding-top: 40px; }
html body .sc-loading { min-height: calc(100svh - 72px); }
html body .sc-hero__grid { padding-top: 40px; padding-bottom: 56px; }
@media (max-width: 767px) {
  html body .sc-hero { min-height: 0; padding-top: 0; }
  html body .sc-hero__grid { padding: 28px 16px 32px; gap: 28px; }
  html body .sc-q { min-height: 0; padding-top: 16px; }
  html body .sc-loading { min-height: 60svh; }
}

/* One-screen fit: the hero (with its ticker) and the question screen fill exactly the area under the sticky header. */
html body .sc-hero { min-height: calc(100svh - 74px); }
html body .sc-hero__grid { padding-top: 24px; padding-bottom: 24px; }
html body .sc-q { min-height: calc(100svh - 74px); padding-bottom: 16px; }
@media (max-width: 767px) {
  html body .sc-hero { min-height: calc(100svh - 66px); }
  html body .sc-hero__grid { padding: 16px 16px 16px; gap: 16px; }
  html body .sc-hero__title { font-size: clamp(1.625rem, 7vw, 1.875rem); margin-bottom: 10px; }
  html body .sc-hero__lede { font-size: 1rem; line-height: 1.45; margin-bottom: 14px; }
  html body .sc-hero .sc-btn { min-height: 48px; }
  html body .sc-prev { padding: 12px 14px; }
  html body .sc-prev__title { margin: 0 0 8px; font-size: 1rem; }
  html body .sc-prev__row { min-height: 0; padding: 7px 12px; }
  html body .sc-prev__foot { display: none; }
  html body .sc-q { min-height: calc(100svh - 66px); padding-top: 12px; }
}
@media (max-width: 767px) {
  html body .sc-hero__grid { align-content: start; }
}

/* Mobile: the industry insight returns as one compact card that fits above the fixed Next bar. */
@media (max-width: 767px) {
  html body .sc-q__rail .sc-insight {
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center;
    margin: 4px 0 0; padding: 10px 14px; background: var(--sc-tint, #f2f5ef); border: 1px solid var(--sc-line); border-radius: 12px;
  }
  html body .sc-insight__label { grid-column: 1 / -1; margin: 0 0 2px; font-size: .875rem; }
  html body .sc-insight #stat-callout-container { display: contents; }
  html body .sc-insight__val { font-size: 1.625rem; margin: 0; }
  html body .sc-insight__text { font-size: .875rem; line-height: 1.35; margin: 0; }
  html body .sc-insight__quote { display: none; }
  html body #question-container .option-btn { min-height: 56px !important; padding-top: 12px !important; padding-bottom: 12px !important; }
}
@media (max-width: 767px) {
  html body #question-container h2 { font-size: 1.25rem; line-height: 1.25; margin-bottom: 12px; }
  html body #question-container .option-btn { min-height: 50px !important; padding-top: 9px !important; padding-bottom: 9px !important; font-size: .9375rem; }
  html body #question-container .option-btn + .option-btn, html body #question-container .option-btn { margin-bottom: 0; }
  html body #question-container > div, html body #question-container .grid { gap: 8px; }
  html body .sc-progress { margin-bottom: 8px; }
}
@media (max-width: 767px) and (max-height: 760px) {
  html body .sc-insight__label { display: none; }
  html body .sc-q__rail .sc-insight { padding: 8px 12px; margin-top: 0; }
  html body #question-container h2 { font-size: 1.125rem; margin-bottom: 8px; }
  html body #question-container .option-btn { min-height: 46px !important; padding-top: 7px !important; padding-bottom: 7px !important; }
}
