/* Scoped — Emergency Headcount ROI Calculator (MVC)
   Brand: #0088cc primary, #fcab10 insight/gold, CTA #f8333c (aligns with .btn-cta) */

main.roi-calc {
  display: block;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(180deg, #eef1f4 0%, #f6f7f9 12%, #fafafa 100%);
}

/* Suppress the site navbar's default light-grey box-shadow on this page —
   it reads as a soft light strip against the dark hero directly below. */
body:has(main.roi-calc) .navbar.navbar-fixed-top {
  box-shadow: none;
}

.roi-calc {
  --roi-bg-dark: #0a0d12;
  --roi-hero-glow: rgba(0, 136, 204, 0.22);
  --roi-primary: #0088cc;
  --roi-primary-soft: #e6f4fb;
  --roi-accent: #fcab10;
  --roi-cta: #f8333c;
  --roi-cta-hover: #e63039;
  --roi-surface: #ffffff;
  --roi-surface-muted: #f6f8fa;
  --roi-text: #2a2a2a;
  --roi-text-muted: #5a5a5a;
  --roi-border: #d9dee3;
  --roi-border-soft: #e8ecf0;
  --roi-focus-ring: rgba(0, 136, 204, 0.4);
  --roi-radius: 10px;
  --roi-radius-sm: 6px;
  --roi-radius-lg: 14px;
  --roi-font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --roi-font-heading: "Catamaran", "Helvetica Neue", Arial, sans-serif;
  --roi-font-body: "Rubik", "Helvetica Neue", Arial, sans-serif;
  --roi-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --roi-ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
  --roi-shadow-sm: 0 2px 8px rgba(10, 20, 35, 0.06);
  --roi-shadow-md: 0 16px 40px rgba(10, 20, 35, 0.08), 0 4px 12px rgba(10, 20, 35, 0.04);
  /* em (not rem): site body is 16pt in reset.css; rem tracks html~16px and looked tiny vs nav/body */
  color: var(--roi-text);
  font-family: var(--roi-font-body);
  font-size: 1em;
  line-height: 1.6;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

.roi-calc * {
  box-sizing: border-box;
}

.roi-calc a.roi-calc__btn,
.roi-calc button.roi-calc__btn {
  text-decoration: none;
}

/* Progress */
.roi-calc__progress-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  background: #06090e;
  border-bottom: 1px solid rgba(0, 136, 204, 0.15);
}

.roi-calc__progress {
  height: 4px;
  width: 100%;
  background: #1a1f2a;
  border-radius: 0 0 1px 1px;
  overflow: hidden;
}

.roi-calc__progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 0 1px 1px 0;
  background: linear-gradient(90deg, #006699, var(--roi-primary) 50%, #5ec8f0);
  box-shadow: 0 0 12px rgba(0, 136, 204, 0.45);
  transition: width 0.45s var(--roi-ease);
}

@media (prefers-reduced-motion: reduce) {
  .roi-calc__progress-bar {
    transition: none;
  }
}

/* Hero (landing) — same photo language as #Hero (home).
   Zero out global `section { padding: 60px 0 }` (sections.css) here: the
   landing section has no background of its own, so the inherited top padding
   showed main.roi-calc's light gradient as a grey gap under the fixed navbar.
   Calculator/results screens keep a reduced top padding (see .roi-calc__card-wrap
   rules below) once the landing pull-up is neutralized. */
.roi-calc__screen--landing {
  min-height: min(56vh, 600px);
  padding: 0;
}

.roi-calc__hero {
  position: relative;
  background-color: var(--roi-bg-dark);
  color: #f0f4f8;
  padding: 2.75rem clamp(1rem, 4vw, 2rem) 5.5rem;
  text-align: left;
  width: 100%;
  overflow: hidden;
  background-image: radial-gradient(ellipse 120% 80% at 20% 0%, var(--roi-hero-glow), transparent 55%),
    radial-gradient(ellipse 100% 60% at 100% 100%, rgba(252, 171, 16, 0.08), transparent 50%),
    linear-gradient(165deg, rgba(5, 10, 18, 0.9) 0%, rgba(10, 18, 32, 0.82) 40%, rgba(4, 8, 16, 0.92) 100%),
    url("https://headcountprod-hzdjf3hmd6cyd0f5.z01.azurefd.net/cdn/marketing-website/content/images/headcount-website-background-screens.png");
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center 36%;
  background-repeat: no-repeat;
}

/* Mobile: less bottom padding (card still overlaps) and a shorter landing
   min-height so the trust stack doesn't feel like a long empty scroll. */
@media (max-width: 599px) {
  .roi-calc__screen--landing {
    min-height: 0;
  }

  .roi-calc__hero {
    padding: 2rem clamp(1rem, 4vw, 1.5rem) 4rem;
  }

  .roi-calc__lede {
    margin-bottom: 1.5rem;
  }
}

.roi-calc__hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--roi-primary) 0%, #5ec8f0 35%, var(--roi-accent) 100%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.95;
}

@media (min-width: 768px) {
  .roi-calc__hero {
    padding: 4rem clamp(1.5rem, 5vw, 3rem) 6.5rem;
  }
}

.roi-calc__hero-inner {
  position: relative;
  z-index: 1;
  max-width: min(48rem, 100%);
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 992px) {
  .roi-calc__hero-inner {
    max-width: min(52rem, 100%);
  }
}

.roi-calc__eyebrow {
  font-family: var(--roi-font-heading);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7cc8e8;
  margin: 0 0 1rem;
  padding-left: 0.65em;
  border-left: 3px solid var(--roi-primary);
}

.roi-calc__eyebrow--on-light {
  color: #006699;
}

.roi-calc__display {
  font-family: var(--roi-font-serif);
  font-weight: 700;
  font-size: clamp(1.45em, 2.75vw + 0.75em, 2.1em);
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0 0 1.25rem;
  max-width: 100%;
  color: #e2f0fa;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

@supports (background-clip: text) {
  .roi-calc__display {
    background: linear-gradient(125deg, #d8ecfa 0%, #5eb8e8 38%, #0088cc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
  }
}

@media (min-width: 768px) {
  .roi-calc__display {
    font-size: clamp(1.55em, 2.2vw + 0.85em, 2.2em);
  }
}

.roi-calc__lede {
  font-size: 1.1em;
  line-height: 1.6;
  color: #c4ced8;
  max-width: 45em;
  margin: 0 0 2rem;
  font-weight: 400;
}

/* Floating card — full readable width; inner sections set their own max.
   Negative margin only while the landing hero is active (card floats over it).
   Once the user is on calculator/results, landing is display:none and that
   pull-up would slide the white card under the fixed navbar, clipping the
   nav's bottom edge — especially obvious on mobile. */
.roi-calc__card-wrap {
  position: relative;
  z-index: 3;
  margin-top: clamp(-4.5rem, -10vw, -3rem);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: min(72rem, calc(100% - 1.5rem));
  padding: 0 clamp(0.75rem, 3vw, 2rem) 3.5rem;
  container-type: inline-size;
  container-name: roi-card;
}

/* On calculator/results the full-bleed progress strip + inset white card read
   as a broken nav border (track visible left/right, card covers the middle).
   Match the card's horizontal inset, soften the track, and leave a clear band
   of page background between the fixed nav and the white card. */
.roi-calc:not(:has(.roi-calc__screen--landing.is-active)) .roi-calc__progress-wrap {
  background: transparent;
  border-bottom: 0;
  max-width: min(72rem, calc(100% - 1.5rem));
  margin-left: auto;
  margin-right: auto;
  /* Clear the fixed navbar before the progress track starts.
     Mobile needs more air so the white card never clips the nav edge. */
  padding: 1.35rem clamp(0.75rem, 3vw, 2rem) 0;
}

.roi-calc:not(:has(.roi-calc__screen--landing.is-active)) .roi-calc__progress {
  background: rgba(0, 136, 204, 0.14);
  border-radius: 999px;
  height: 3px;
}

.roi-calc:not(:has(.roi-calc__screen--landing.is-active)) .roi-calc__progress-bar {
  border-radius: 999px;
  box-shadow: none;
}

.roi-calc:not(:has(.roi-calc__screen--landing.is-active)) .roi-calc__card-wrap {
  /* Visible gap of page background between progress track and white card */
  margin-top: 1.75rem;
}

/* sections.css gives every <section> 60px top padding to clear the fixed nav
   / counter the landing pull-up. After neutralizing that pull-up, 60px is too
   much — tighten so the white card sits just below the progress bar. */
.roi-calc:not(:has(.roi-calc__screen--landing.is-active)) .roi-calc__card-wrap > .roi-calc__screen {
  padding-top: 0.35rem;
  padding-bottom: 1.5rem;
}

@media (max-width: 767px) {
  .roi-calc:not(:has(.roi-calc__screen--landing.is-active)) .roi-calc__progress-wrap {
    padding-top: 1.5rem;
  }

  .roi-calc:not(:has(.roi-calc__screen--landing.is-active)) .roi-calc__card-wrap {
    margin-top: 2rem;
  }
}

@media (min-width: 768px) {
  .roi-calc:not(:has(.roi-calc__screen--landing.is-active)) .roi-calc__progress-wrap {
    padding-top: 1.35rem;
  }

  .roi-calc:not(:has(.roi-calc__screen--landing.is-active)) .roi-calc__card-wrap {
    margin-top: 1.75rem;
  }

  .roi-calc:not(:has(.roi-calc__screen--landing.is-active)) .roi-calc__card-wrap > .roi-calc__screen {
    padding-top: 0.5rem;
    padding-bottom: 2rem;
  }
}

.roi-calc__container {
  position: relative;
  background: var(--roi-surface);
  border-radius: var(--roi-radius);
  box-shadow: var(--roi-shadow-md);
  border: 1px solid var(--roi-border-soft);
  padding: 2rem clamp(1rem, 3vw, 1.75rem) 2.75rem;
}

.roi-calc__container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--roi-radius) var(--roi-radius) 0 0;
  background: linear-gradient(90deg, var(--roi-primary), #45a8d9);
  opacity: 0.9;
}

@media (min-width: 768px) {
  .roi-calc__container {
    padding: 2.75rem clamp(1.5rem, 4vw, 2.75rem) 3.25rem;
  }
}

.roi-calc__container--narrow {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.roi-calc__container--quiz {
  background: linear-gradient(180deg, #ffffff 0%, #fafcfd 55%, #f6f9fc 100%);
}

.roi-calc__container--capture {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  /* Wider than default --narrow (32rem) so headline + form align with the quiz card */
  max-width: min(52rem, 100%);
}

.roi-calc__container--capture .roi-calc__section-head--center {
  max-width: none;
  width: 100%;
}

.roi-calc__container--capture .roi-calc__fineprint {
  max-width: 56ch;
}

.roi-calc__container--results {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.roi-calc__section-head {
  margin: 0 0 1.75rem;
  max-width: 62ch;
}

.roi-calc__section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 48ch;
}

.roi-calc__section-head--center .roi-calc__eyebrow {
  display: inline-block;
  text-align: left;
}

.roi-calc__section-head--center .roi-calc__h2,
.roi-calc__section-head--center .roi-calc__sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Screens */
.roi-calc__screen {
  display: none;
  animation: roiScreenIn 0.35s var(--roi-ease) both;
}

.roi-calc__screen.is-active {
  display: block;
}

@keyframes roiScreenIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .roi-calc__screen {
    animation: none;
  }
}

/* Results screen uses full card width */
.roi-calc [data-screen="results"] .roi-calc__container {
  max-width: none;
  margin: 0;
}

/* Typography */
.roi-calc__h2 {
  font-family: var(--roi-font-heading);
  font-weight: 600;
  font-size: clamp(1.1em, 2.5vw + 0.5em, 1.4em);
  color: #222;
  text-align: left;
  margin: 0 0 0.5rem;
  line-height: 1.28;
}

/* Match SEO / editorial hero typography on in-flow screens */
.roi-calc__h2--display {
  font-family: var(--roi-font-serif);
  font-weight: 700;
  font-size: clamp(1.35em, 2.8vw + 0.55em, 1.85em);
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

@supports (background-clip: text) {
  .roi-calc__h2--display {
    background: linear-gradient(125deg, #1a2332 0%, #0a4f7a 50%, var(--roi-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.roi-calc__h3 {
  font-family: var(--roi-font-heading);
  font-weight: 600;
  font-size: clamp(0.98em, 1.5vw + 0.45em, 1.2em);
  color: #222;
  text-align: left;
  margin: 2.5rem 0 0.75rem;
}

.roi-calc__h3--breakdown {
  margin-top: 2.25rem;
  margin-bottom: 0.45rem;
  padding-top: 0.25rem;
  font-size: clamp(1.08em, 1.4vw + 0.55em, 1.32em);
  letter-spacing: -0.02em;
}

.roi-calc__sub {
  text-align: left;
  color: var(--roi-text-muted);
  margin: 0 0 1.5rem;
  max-width: 60ch;
  font-size: 1em;
  line-height: 1.55;
}

/* Form — numbered cards (visual rhythm matches roi-seo FAQ) */
.roi-calc__form {
  text-align: left;
}

.roi-calc__container--quiz .roi-calc__form {
  counter-reset: roi-quiz;
}

.roi-calc__field {
  position: relative;
  margin-bottom: 1rem;
  padding: 1.35rem 1.35rem 1.45rem 4.35rem;
  background: var(--roi-surface);
  border: 1px solid var(--roi-border-soft);
  border-radius: var(--roi-radius-lg);
  box-shadow: var(--roi-shadow-sm);
  transition: box-shadow 0.25s var(--roi-ease), border-color 0.25s var(--roi-ease), transform 0.25s var(--roi-ease);
}

.roi-calc__field::before {
  counter-increment: roi-quiz;
  content: counter(roi-quiz, decimal-leading-zero);
  position: absolute;
  top: 1.35rem;
  left: 1.15rem;
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--roi-font-heading);
  font-size: 0.82em;
  font-weight: 700;
  color: var(--roi-primary);
  background: var(--roi-primary-soft);
  border: 1px solid rgba(0, 136, 204, 0.22);
  border-radius: 999px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) and (pointer: fine) {
  .roi-calc__field:hover {
    box-shadow: 0 10px 28px rgba(10, 20, 35, 0.07), 0 2px 8px rgba(10, 20, 35, 0.04);
    border-color: rgba(0, 136, 204, 0.22);
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .roi-calc__field {
    transition: border-color 0.2s var(--roi-ease), box-shadow 0.2s var(--roi-ease);
  }
  .roi-calc__field:hover {
    transform: none;
  }
}

.roi-calc__field label {
  display: block;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.55rem;
  line-height: 1.35;
  max-width: 65ch;
  font-family: var(--roi-font-heading);
  font-size: 1.02em;
  letter-spacing: -0.01em;
}

.roi-calc__field input,
.roi-calc__field select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  padding: 0.7rem 1rem;
  font-family: var(--roi-font-body);
  font-size: 1.02em;
  line-height: 1.3;
  border: 1px solid var(--roi-border);
  border-radius: var(--roi-radius);
  background: #fff;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s var(--roi-ease), box-shadow 0.2s var(--roi-ease), background 0.2s var(--roi-ease);
}

.roi-calc__field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  cursor: pointer;
}

.roi-calc__field input:focus,
.roi-calc__field select:focus {
  outline: none;
  border-color: var(--roi-primary);
  box-shadow: 0 0 0 3px var(--roi-focus-ring);
  background: #fff;
}

.roi-calc__field input[aria-invalid="true"] {
  border-color: #c45c5c;
}

.roi-calc__input-prefix {
  display: flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid var(--roi-border);
  border-radius: var(--roi-radius);
  background: #fff;
  min-height: 52px;
  transition: border-color 0.2s var(--roi-ease), box-shadow 0.2s var(--roi-ease), background 0.2s var(--roi-ease);
}

.roi-calc__input-prefix:focus-within {
  border-color: var(--roi-primary);
  box-shadow: 0 0 0 3px var(--roi-focus-ring);
  background: #fff;
}

.roi-calc__input-prefix input {
  border: 0;
  min-height: 48px;
  background: transparent;
  flex: 1;
  box-shadow: none;
}

.roi-calc__input-prefix input:focus {
  box-shadow: none;
}

.roi-calc__input-prefix-symbol {
  padding-left: 0.9rem;
  color: #666;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.roi-calc__hint {
  font-size: 0.92em;
  color: #5c656e;
  margin: 0.55rem 0 0;
  line-height: 1.6;
  max-width: 68ch;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--roi-border-soft);
}

/* Lead capture — inset panel */
.roi-calc__form--capture .roi-calc__field {
  padding: 1.75rem 1.5rem 1.5rem;
  margin-bottom: 0;
  background: linear-gradient(180deg, rgba(230, 244, 251, 0.55) 0%, #ffffff 38%);
  border: 1px solid rgba(0, 136, 204, 0.18);
  border-radius: var(--roi-radius-lg);
  box-shadow: 0 8px 32px rgba(10, 20, 35, 0.06), 0 2px 8px rgba(0, 136, 204, 0.04);
}

.roi-calc__form--capture .roi-calc__field::before {
  display: none;
}

.roi-calc__form--capture .roi-calc__field:hover {
  transform: none;
  box-shadow: 0 8px 32px rgba(10, 20, 35, 0.06), 0 2px 8px rgba(0, 136, 204, 0.04);
  border-color: rgba(0, 136, 204, 0.18);
}

.roi-calc__form--capture .roi-calc__field label {
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #006699;
  font-weight: 600;
}

.roi-calc__form--capture .roi-calc__field input {
  min-height: 56px;
  font-size: 1.05em;
  border-width: 2px;
}

@media (min-width: 768px) {
  .roi-calc__form--capture .roi-calc__field {
    padding: 2rem 1.75rem 1.75rem;
  }
}

.roi-calc__error {
  min-height: 1.2em;
  font-size: 0.9em;
  color: #b32d2d;
  margin: 0.4rem 0 0;
  display: none;
}

.roi-calc__error.is-visible {
  display: block;
}

/* Buttons */
.roi-calc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: center;
}

.roi-calc__form--capture .roi-calc__actions {
  margin-top: 1.25rem;
  justify-content: center;
}

.roi-calc__container--quiz .roi-calc__actions {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--roi-border-soft);
}

.roi-calc__prefill-share {
  font-size: 0.82em;
  color: #8a939c;
  /* Extra top space so this reads as a separate, quieter ask than Continue */
  margin: 1.75rem 0 0;
  line-height: 1.5;
  text-align: center;
}

.roi-calc__prefill-copy {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.roi-calc__prefill-copy:hover {
  color: var(--roi-text-muted);
}

.roi-calc__prefill-copy:focus-visible {
  outline: 2px solid var(--roi-focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 479px) {
  .roi-calc__container--quiz .roi-calc__field {
    padding: 1.15rem 1rem 1.25rem 3.65rem;
  }

  .roi-calc__container--quiz .roi-calc__field::before {
    top: 1.15rem;
    left: 0.85rem;
    width: 2.15rem;
    height: 2.15rem;
    font-size: 0.78em;
  }
}

.roi-calc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0 1.25rem;
  font-family: var(--roi-font-heading);
  font-size: 1em;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--roi-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--roi-ease), color 0.2s var(--roi-ease), border-color 0.2s var(--roi-ease), transform 0.15s var(--roi-ease), box-shadow 0.2s var(--roi-ease);
}

@media (min-width: 480px) {
  .roi-calc__btn {
    min-height: 52px;
  }
}

.roi-calc__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.roi-calc__btn--primary {
  background: var(--roi-cta);
  color: #fff;
  border-color: var(--roi-cta);
  box-shadow: 0 4px 16px rgba(248, 51, 60, 0.35);
}

.roi-calc__btn--primary:hover:not(:disabled) {
  background: var(--roi-cta-hover);
  border-color: var(--roi-cta-hover);
  box-shadow: 0 6px 20px rgba(248, 51, 60, 0.42);
  transform: translateY(-1px);
}

.roi-calc__btn--primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--roi-primary);
}

.roi-calc__btn--primary:focus-visible:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(248, 51, 60, 0.42), 0 0 0 3px #fff, 0 0 0 6px var(--roi-primary);
}

.roi-calc__btn--ghost {
  background: var(--roi-surface);
  color: #444;
  border-color: var(--roi-border);
}

.roi-calc__btn--ghost:hover:not(:disabled) {
  border-color: var(--roi-primary);
  color: var(--roi-primary);
  background: var(--roi-primary-soft);
}

.roi-calc__btn--xl {
  min-height: 56px;
  padding: 0 1.75rem;
  font-size: 1.1em;
}

/* Wrapped 2-line labels need real vertical padding; min-height alone is too tight. */
@media (max-width: 767px) {
  .roi-calc__btn {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .roi-calc__btn--xl {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    line-height: 1.3;
  }
}

@media (min-width: 768px) {
  .roi-calc__btn--xl {
    min-height: 58px;
    padding: 0 2rem;
    font-size: 1.15em;
  }
}

.roi-calc__btn--small {
  min-height: 40px;
  font-size: 0.95em;
}

.roi-calc__btn-arrow {
  font-size: 1.1em;
  line-height: 0;
}

.roi-calc__fineprint {
  font-size: 0.85em;
  color: #7a828a;
  margin: 1.25rem auto 0;
  max-width: 42ch;
  line-height: 1.55;
  text-align: center;
}

/* Trust list */
.roi-calc__trust {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .roi-calc__trust {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

.roi-calc__trust li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95em;
  color: #aeb8c4;
  line-height: 1.4;
  flex: 1 1 9em;
  min-width: 0;
  padding: 1rem 1.1rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--roi-radius);
  border-left: 3px solid var(--roi-primary);
  backdrop-filter: blur(6px);
}

.roi-calc__trust li strong {
  color: #f2f6fa;
  font-size: 1.25em;
  font-weight: 600;
  font-family: var(--roi-font-heading);
  letter-spacing: -0.02em;
}

/* Mobile: hug content. flex-basis: 9em (used in the row layout) left tall
   empty cards when stacked — that was the "too much vertical space" look.
   Must follow the base li rules so these overrides win. */
@media (max-width: 599px) {
  .roi-calc__trust {
    margin-top: 1.35rem;
    gap: 0.5rem;
  }

  .roi-calc__trust li {
    flex: 0 0 auto;
    padding: 0.7rem 0.85rem;
    gap: 0.2rem;
  }

  .roi-calc__trust li strong {
    font-size: 1.1em;
  }
}

/* Results — hero splash (visual continuity with landing hero) */
.roi-calc__results-splash {
  position: relative;
  margin: 0 0 2rem;
  padding: 1.75rem clamp(1rem, 3vw, 2rem) 1.5rem;
  border-radius: var(--roi-radius-lg);
  overflow: hidden;
  background-color: var(--roi-bg-dark);
  background-image: radial-gradient(ellipse 100% 80% at 15% 0%, var(--roi-hero-glow), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(252, 171, 16, 0.12), transparent 45%),
    linear-gradient(165deg, rgba(8, 14, 24, 0.98) 0%, rgba(10, 18, 32, 0.96) 45%, rgba(6, 10, 18, 0.98) 100%);
  border: 1px solid rgba(0, 136, 204, 0.22);
  box-shadow: 0 20px 50px rgba(10, 20, 35, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.roi-calc__results-splash::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--roi-primary) 0%, #5ec8f0 40%, var(--roi-accent) 100%);
  opacity: 0.9;
  pointer-events: none;
}

@media (min-width: 768px) {
  .roi-calc__results-splash {
    padding: 2.25rem 2.25rem 2rem;
  }
}

.roi-calc__result-hero {
  position: relative;
  z-index: 1;
  text-align: left;
  margin: 0 0 1.25rem;
}

.roi-calc__result-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  margin: 0 0 0.35rem;
}

.roi-calc__result-label {
  font-family: var(--roi-font-heading);
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7cc8e8;
  margin: 0;
  font-weight: 600;
}

.roi-calc__result-context {
  font-family: var(--roi-font-heading);
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aeb8c4;
  margin: 0;
  font-weight: 500;
}

.roi-calc__result-context strong {
  color: #e2f0fa;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Amount scales to card width (container query) — avoids clipping in narrow columns */
.roi-calc__result-amount {
  font-family: var(--roi-font-heading);
  font-weight: 700;
  font-size: clamp(1.35em, 14cqi, 2.75em);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #ffd078;
  font-variant-numeric: tabular-nums;
  margin: 0 0 0.85rem;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

@supports (background-clip: text) {
  .roi-calc__result-amount {
    background: linear-gradient(125deg, #ffe6b8 0%, var(--roi-accent) 45%, #ff9500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.35));
  }
}

@supports not (font-size: 1cqi) {
  .roi-calc__result-amount {
    font-size: clamp(1.3em, 6vw + 0.45em, 2.65em);
  }
}

.roi-calc__result-interpret {
  position: relative;
  z-index: 1;
  max-width: 62ch;
  color: #c8d2dc;
  font-size: 1em;
  line-height: 1.55;
  margin: 0;
  font-weight: 400;
}

.roi-calc__result-interpret strong {
  color: #f2f6fa;
  font-weight: 600;
}

/* Stat chips — 3 pillars of the total, live inside the dark splash so a
   single screenshot captures the whole story for a CFO email / deck slide. */
.roi-calc__result-stats {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 1.25rem 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@container roi-card (min-width: 560px) {
  .roi-calc__result-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

.roi-calc__result-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem 1rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 3px solid var(--roi-primary);
  border-radius: var(--roi-radius);
  backdrop-filter: blur(6px);
  min-width: 0;
}

.roi-calc__result-stat-label {
  font-family: var(--roi-font-heading);
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7cc8e8;
  font-weight: 600;
}

.roi-calc__result-stat-value {
  font-family: var(--roi-font-heading);
  font-size: 1.45em;
  font-weight: 700;
  color: #f2f6fa;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.08;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.roi-calc__result-stat-note {
  font-size: 0.82em;
  color: #aeb8c4;
  line-height: 1.35;
}

.roi-calc__benchmark {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--roi-accent);
  padding: 1.15rem 1.3rem;
  margin: 0;
  border-radius: 0 var(--roi-radius) var(--roi-radius) 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.roi-calc__benchmark p {
  margin: 0;
  color: #eef2f6;
  max-width: 65ch;
  font-size: 0.98em;
  line-height: 1.65;
}

/* Inline unlock gate — preview total free, breakdown gated */
.roi-calc__unlock-wrap {
  position: relative;
  z-index: 2;
  margin: 1.5rem 0 0;
  padding: 1.75rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(230, 244, 251, 0.55) 0%, #ffffff 38%);
  border: 1px solid rgba(0, 136, 204, 0.18);
  border-radius: var(--roi-radius-lg);
  box-shadow: var(--roi-shadow-sm);
}

.roi-calc__unlock-wrap.is-hidden {
  display: none;
}

.roi-calc__unlock-lede {
  margin: 0 0 1.25rem;
  font-size: 1.05em;
  line-height: 1.55;
  color: #2a3440;
  max-width: 52ch;
}

.roi-calc__unlock-form .roi-calc__field {
  margin-bottom: 1rem;
}

.roi-calc__unlock-form .roi-calc__field label {
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #006699;
  font-weight: 600;
}

.roi-calc__unlock-form .roi-calc__field input {
  min-height: 56px;
  font-size: 1.05em;
  border-width: 2px;
}

.roi-calc__unlock-form .roi-calc__btn {
  width: 100%;
  margin-top: 0.25rem;
}

/* Cloudflare Turnstile (interaction-only: empty until a challenge is shown) */
.roi-calc__turnstile {
  margin-bottom: 0.75rem;
  text-align: center;
}

.roi-calc__turnstile:empty {
  margin-bottom: 0;
}

.roi-calc__unlock-form .roi-calc__fineprint {
  margin-top: 1rem;
  text-align: center;
}

/* "Report on its way" confirmation shown after a successful unlock */
.roi-calc__report-sent {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin: 1.75rem 0 0;
  padding: 1.65rem 1.5rem 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(248, 51, 60, 0.08), transparent 55%),
    linear-gradient(165deg, #f7fbfe 0%, #eef6fb 100%);
  border: 1px solid rgba(0, 136, 204, 0.22);
  border-left: 4px solid var(--roi-cta);
  border-radius: var(--roi-radius-lg);
  box-shadow: 0 10px 28px rgba(10, 20, 35, 0.06);
}

.roi-calc__report-sent.is-hidden {
  display: none;
}

.roi-calc__report-sent-kicker {
  margin: 0;
  font-family: var(--roi-font-heading);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--roi-cta);
}

.roi-calc__report-sent-text {
  margin: 0;
  font-family: var(--roi-font-serif);
  font-size: clamp(1.15em, 1.5vw + 0.75em, 1.45em);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #0a1423;
  text-wrap: balance;
  max-width: 36ch;
}

.roi-calc__report-sent-text strong {
  color: #006699;
  word-break: break-word;
}

.roi-calc__report-sent-btn {
  width: 100%;
  margin-top: 0.35rem;
}

.roi-calc__report-sent-btn.is-hidden {
  display: none;
}

.roi-calc__report-sent-secondary {
  display: inline-block;
  align-self: center;
  margin-top: 0.15rem;
}

@media (min-width: 640px) {
  .roi-calc__report-sent {
    padding: 1.85rem 1.85rem 1.65rem;
  }

  .roi-calc__report-sent-btn {
    width: auto;
    align-self: flex-start;
    min-width: 18rem;
  }

  .roi-calc__report-sent-secondary {
    align-self: flex-start;
  }
}

.roi-calc__gated {
  position: relative;
  margin-top: 1.25rem;
}

.roi-calc__gated.is-locked {
  filter: blur(6px);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.roi-calc__gated .roi-calc__result-stats {
  margin-top: 0;
}

.roi-calc__gated .roi-calc__result-stat {
  background: rgba(0, 136, 204, 0.06);
  border-color: rgba(0, 136, 204, 0.14);
  border-left-color: var(--roi-primary);
  backdrop-filter: none;
}

.roi-calc__gated .roi-calc__result-stat-label {
  color: #006699;
}

.roi-calc__gated .roi-calc__result-stat-value {
  color: #0a1423;
}

.roi-calc__gated .roi-calc__result-stat-note {
  color: #5c656e;
}

@media (min-width: 768px) {
  .roi-calc__unlock-wrap {
    padding: 2rem 1.75rem 1.75rem;
  }
}

/* Amount-first scoreboard — congruent rows, relative bars */
.roi-calc__scoreboard-lede {
  margin: -0.25rem 0 1.15rem;
  font-size: 0.98em;
  color: var(--roi-text-muted);
  max-width: 42ch;
  line-height: 1.5;
}

.roi-calc__scoreboard {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 0 1rem;
}

.roi-calc__score-row {
  position: relative;
  padding: 1.15rem 1.2rem 1.05rem;
  background: #fff;
  border: 1px solid var(--roi-border-soft);
  border-radius: var(--roi-radius-lg);
  box-shadow: var(--roi-shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s var(--roi-ease), border-color 0.2s var(--roi-ease);
}

.roi-calc__score-row--dominant {
  border-color: rgba(0, 136, 204, 0.28);
  background:
    radial-gradient(ellipse 70% 80% at 0% 50%, rgba(0, 136, 204, 0.07), transparent 55%),
    #fff;
  box-shadow: 0 8px 28px rgba(0, 136, 204, 0.1), var(--roi-shadow-sm);
}

@media (hover: hover) and (pointer: fine) {
  .roi-calc__score-row:hover {
    box-shadow: 0 8px 28px rgba(10, 20, 35, 0.1);
    border-color: rgba(0, 136, 204, 0.3);
  }
}

.roi-calc__score-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem 1.5rem;
  align-items: baseline;
}

@media (min-width: 640px) {
  .roi-calc__score-main {
    grid-template-columns: minmax(9.5rem, auto) 1fr;
  }
}

.roi-calc__score-amt {
  margin: 0;
  font-family: var(--roi-font-heading);
  font-size: clamp(1.55em, 2.2vw + 0.85em, 2.15em);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: #0a1423;
  line-height: 1.05;
  white-space: nowrap;
}

.roi-calc__score-row--dominant .roi-calc__score-amt {
  font-size: clamp(1.85em, 2.8vw + 0.95em, 2.55em);
  color: #006699;
}

.roi-calc__score-copy {
  min-width: 0;
}

.roi-calc__score-title {
  margin: 0 0 0.2rem;
  font-family: var(--roi-font-heading);
  font-size: 1.02em;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1a1a1a;
}

.roi-calc__score-sub {
  margin: 0;
  font-size: 0.92em;
  line-height: 1.5;
  color: #5c656e;
  max-width: 48ch;
}

.roi-calc__score-bar {
  margin-top: 0.95rem;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 136, 204, 0.1);
  overflow: hidden;
}

.roi-calc__score-row--dominant .roi-calc__score-bar {
  height: 8px;
  background: rgba(0, 136, 204, 0.14);
}

.roi-calc__score-bar-fill {
  display: block;
  height: 100%;
  width: var(--score-pct, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #006699, var(--roi-primary) 55%, #5ec8f0);
  transform-origin: left center;
  transition: width 0.7s var(--roi-ease-spring);
}

.roi-calc__score-row--dominant .roi-calc__score-bar-fill {
  background: linear-gradient(90deg, #004d73, var(--roi-primary) 40%, var(--roi-accent));
}

@media (prefers-reduced-motion: reduce) {
  .roi-calc__score-bar-fill {
    transition: none;
  }
}

/* CTA */
.roi-calc__cta {
  text-align: left;
  margin: 2rem 0 0;
  padding: 1.75rem 1.35rem 1.65rem;
  border-radius: var(--roi-radius-lg);
  border: 1px solid rgba(248, 51, 60, 0.2);
  background: linear-gradient(135deg, rgba(255, 245, 245, 0.95) 0%, #fff 50%, rgba(230, 244, 251, 0.5) 100%);
  box-shadow: 0 12px 36px rgba(248, 51, 60, 0.08), 0 4px 12px rgba(10, 20, 35, 0.04);
}

.roi-calc__cta .roi-calc__h3.roi-calc__cta__title {
  margin-top: 0;
  font-size: clamp(1.05em, 1.3vw + 0.55em, 1.28em);
  color: #1a1a1a;
}

.roi-calc__cta__lede {
  max-width: 62ch;
  color: #4a5058;
  margin: 0 0 1.15rem;
  font-size: 1.02em;
  line-height: 1.62;
}

.roi-calc__cta__actions {
  margin-top: 0.25rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

/* Quiet secondary text actions (match report-sent "Or book…" treatment) */
.roi-calc__text-link,
a.roi-calc__report-sent-secondary {
  display: inline-block;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font-family: var(--roi-font-heading);
  font-size: 0.95em;
  font-weight: 600;
  line-height: 1.4;
  color: #5a6570;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(90, 101, 112, 0.35);
  cursor: pointer;
  box-shadow: none;
  min-height: 0;
}

.roi-calc__text-link:hover,
.roi-calc__text-link:focus,
a.roi-calc__report-sent-secondary:hover,
a.roi-calc__report-sent-secondary:focus {
  color: var(--roi-primary);
  text-decoration-color: var(--roi-primary);
  background: none;
  border: 0;
  box-shadow: none;
}

.roi-calc__text-link:focus-visible,
a.roi-calc__report-sent-secondary:focus-visible {
  outline: 2px solid var(--roi-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Text link on dark surfaces (bottom CTA band) */
.roi-calc__text-link--on-dark {
  color: #c4ced8;
  text-decoration-color: rgba(196, 206, 216, 0.4);
}

.roi-calc__text-link--on-dark:hover,
.roi-calc__text-link--on-dark:focus {
  color: #5ec8f0;
  text-decoration-color: #5ec8f0;
}

.roi-calc__text-link--on-dark:focus-visible {
  outline-color: #5ec8f0;
}

/* Sticky CTA (mobile) */
@media (max-width: 767px) {
  .roi-calc__cta {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin: 2rem -0.35rem 0;
    padding: 1.1rem 1rem 1rem;
    background: linear-gradient(to top, #fff 55%, rgba(255, 250, 250, 0.97) 100%);
    box-shadow: 0 -8px 32px rgba(10, 20, 35, 0.08);
  }
}

/* ==========================================================================
   SEO content section (FAQ + methodology). Always rendered in the DOM so it's
   crawlable by Google and citable by LLM answer engines (ChatGPT, Perplexity,
   Gemini). Visually below the calculator card-wrap so it doesn't compete with
   the primary conversion. See .cursor/skills/seo/seo-strategy.md.
   ========================================================================== */

.roi-seo {
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 136, 204, 0.06), transparent 70%),
    linear-gradient(180deg, #f4f7fa 0%, #fafbfc 40%, #ffffff 100%);
  border-top: 1px solid var(--roi-border-soft);
  padding: 4rem clamp(1rem, 4vw, 2rem) 4.5rem;
  color: var(--roi-text);
  font-family: var(--roi-font-body);
  font-size: 1em;
  line-height: 1.7;
  overflow: hidden;
}

/* Branded top accent strip (mirrors the hero gradient line) */
.roi-seo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(72rem, calc(100% - 1.5rem));
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--roi-primary) 25%, #5ec8f0 55%, var(--roi-accent) 85%, transparent 100%);
  opacity: 0.55;
  pointer-events: none;
}

.roi-seo__container {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.roi-seo__header {
  margin: 0 0 2.75rem;
  max-width: 60ch;
}

.roi-seo__eyebrow {
  display: inline-block;
  font-family: var(--roi-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--roi-primary);
  margin: 0 0 1rem;
  padding-left: 0.65em;
  border-left: 3px solid var(--roi-primary);
}

.roi-seo__h2 {
  font-family: var(--roi-font-serif);
  font-size: clamp(1.55em, 3vw + 0.4em, 2.15em);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin: 0 0 1.25rem;
  font-weight: 700;
  text-wrap: balance;
}

@supports (background-clip: text) {
  .roi-seo__h2 {
    background: linear-gradient(125deg, #1a2332 0%, #0a4f7a 55%, var(--roi-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.roi-seo__h3 {
  font-family: var(--roi-font-heading);
  font-size: 1.1em;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.6rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.roi-seo__lede {
  font-size: 1.1em;
  color: var(--roi-text-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 60ch;
}

.roi-seo__lede strong {
  color: var(--roi-text);
  font-weight: 600;
}

/* FAQ as numbered cards */
.roi-seo__faq {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 3rem;
  counter-reset: roi-faq;
  list-style: none;
  padding: 0;
}

.roi-seo__qa {
  position: relative;
  background: var(--roi-surface);
  border: 1px solid var(--roi-border-soft);
  border-radius: var(--roi-radius);
  padding: 1.5rem 1.5rem 1.5rem 4.5rem;
  box-shadow: var(--roi-shadow-sm);
  counter-increment: roi-faq;
  transition: box-shadow 0.25s var(--roi-ease), transform 0.25s var(--roi-ease), border-color 0.25s var(--roi-ease);
}

.roi-seo__qa::before {
  content: counter(roi-faq, decimal-leading-zero);
  position: absolute;
  top: 1.5rem;
  left: 1.25rem;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--roi-font-heading);
  font-size: 0.85em;
  font-weight: 700;
  color: var(--roi-primary);
  background: var(--roi-primary-soft);
  border: 1px solid rgba(0, 136, 204, 0.22);
  border-radius: 999px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) and (pointer: fine) {
  .roi-seo__qa:hover {
    box-shadow: 0 10px 30px rgba(10, 20, 35, 0.08), 0 2px 6px rgba(10, 20, 35, 0.04);
    transform: translateY(-2px);
    border-color: rgba(0, 136, 204, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .roi-seo__qa {
    transition: none;
  }
  .roi-seo__qa:hover {
    transform: none;
  }
}

.roi-seo__qa p {
  margin: 0;
  color: var(--roi-text);
  max-width: 68ch;
  font-size: 0.98em;
  line-height: 1.65;
}

.roi-seo__qa p a {
  color: var(--roi-primary);
  text-decoration: underline;
  text-decoration-color: rgba(0, 136, 204, 0.35);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s var(--roi-ease);
}

.roi-seo__qa p a:hover {
  text-decoration-color: var(--roi-primary);
}

/* Methodology — editorial "how we built this" card */
.roi-seo__methodology {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--roi-surface-muted) 100%);
  border: 1px solid var(--roi-border-soft);
  border-radius: var(--roi-radius);
  padding: 2rem 1.75rem 1.75rem;
  margin: 0;
  box-shadow: var(--roi-shadow-sm);
  overflow: hidden;
}

.roi-seo__methodology::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--roi-accent) 0%, #ffc759 50%, var(--roi-accent) 100%);
  opacity: 0.85;
}

.roi-seo__methodology > .roi-seo__h3 {
  margin-top: 0;
  font-size: 1.15em;
}

.roi-seo__methodology > p {
  margin: 0 0 1rem;
  max-width: 68ch;
  color: var(--roi-text);
}

.roi-seo__list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  counter-reset: roi-method;
}

.roi-seo__list li {
  position: relative;
  padding-left: 2.6rem;
  max-width: 68ch;
  counter-increment: roi-method;
  line-height: 1.6;
}

.roi-seo__list li::before {
  content: counter(roi-method);
  position: absolute;
  top: 0.05rem;
  left: 0;
  width: 1.85rem;
  height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--roi-font-heading);
  font-size: 0.85em;
  font-weight: 700;
  color: #6b4a00;
  background: rgba(252, 171, 16, 0.18);
  border: 1px solid rgba(252, 171, 16, 0.4);
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}

.roi-seo__list li strong {
  color: #1a1a1a;
}

.roi-seo__small {
  font-size: 0.88em;
  color: var(--roi-text-muted);
  margin: 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--roi-border-soft);
}

.roi-seo__small a {
  color: var(--roi-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 768px) {
  .roi-seo {
    padding: 5rem clamp(1.5rem, 5vw, 3rem) 5.5rem;
  }

  .roi-seo__qa {
    padding: 1.75rem 1.75rem 1.75rem 5rem;
  }

  .roi-seo__qa::before {
    top: 1.75rem;
    left: 1.5rem;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 0.9em;
  }

  .roi-seo__methodology {
    padding: 2.25rem 2rem 2rem;
  }
}

/* ==========================================================================
   Bottom CTA — dark full-width band after the SEO section, for readers who
   scrolled the whole page. Reuses the hero/results-splash visual language.
   ========================================================================== */

.roi-calc__bottom-cta {
  position: relative;
  background-color: var(--roi-bg-dark);
  color: #f0f4f8;
  padding: 3.5rem clamp(1rem, 4vw, 2rem) 4rem;
  overflow: hidden;
  background-image: radial-gradient(ellipse 100% 80% at 20% 0%, var(--roi-hero-glow), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(252, 171, 16, 0.1), transparent 50%),
    linear-gradient(165deg, rgba(8, 14, 24, 0.98) 0%, rgba(10, 18, 32, 0.96) 45%, rgba(6, 10, 18, 0.98) 100%);
}

.roi-calc__bottom-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--roi-primary) 0%, #5ec8f0 35%, var(--roi-accent) 100%);
  opacity: 0.95;
  pointer-events: none;
}

@media (min-width: 768px) {
  .roi-calc__bottom-cta {
    padding: 4.5rem clamp(1.5rem, 5vw, 3rem) 5rem;
  }
}

.roi-calc__bottom-cta-inner {
  position: relative;
  z-index: 1;
  max-width: min(48rem, 100%);
  margin: 0 auto;
}

.roi-calc__bottom-cta-title {
  font-family: var(--roi-font-serif);
  font-weight: 700;
  font-size: clamp(1.3em, 2.2vw + 0.65em, 1.85em);
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: #e2f0fa;
  margin: 0 0 0.75rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.roi-calc__bottom-cta-sub {
  color: #c4ced8;
  font-size: 1.05em;
  line-height: 1.6;
  max-width: 50ch;
  margin: 0 0 1.75rem;
}

.roi-calc__bottom-cta .roi-calc__actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

/* Direct-answer worked example (40-60 words) under the SEO H2.
   Emphasized, server-rendered block for AEO/GEO citation. */
.roi-seo__answer {
  font-size: 1.1em;
  color: var(--roi-text);
  line-height: 1.65;
  margin: 0 0 1rem;
  max-width: 60ch;
}

.roi-seo__answer strong {
  color: var(--roi-text);
  font-weight: 700;
}
