:root {
  --navy: #14301f;
  --navy-deep: #0d2216;
  --blue: #1f7a4a;
  --sky: #d8f3e4;
  --cream: #fff6e8;
  --paper: #fffdf8;
  --ink: #142018;
  --muted: #4d5c52;
  --line: #e4d4b8;
  --gold: #f4c14a;
  --gold-ink: #14301f;
  --pop: #ff7a3c;
  --good: #1f7a4a;
  --good-bg: #e4f6ec;
  --warn-bg: #fff1c9;
  --shadow: 0 18px 50px rgba(20, 48, 31, 0.12);
  --radius: 22px;
  --header-h: 76px;
  --sans: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --display: Fraunces, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(42% 38% at 88% -4%, #ffe28a 0%, transparent 58%),
    radial-gradient(36% 32% at 8% 6%, #7af0a6 0%, transparent 52%),
    radial-gradient(28% 24% at 52% 18%, #ffb088 0%, transparent 60%),
    var(--cream);
  line-height: 1.5;
  padding-bottom: 88px;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
}

a {
  color: var(--blue);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.45em;
}

p {
  margin: 0 0 0.85em;
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 246, 232, 0.58);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border-bottom: 1px solid rgba(20, 48, 31, 0.12);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: var(--header-h);
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-mark {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  box-shadow: 3px 3px 0 var(--gold);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand-mark img {
  width: 48px;
  height: 48px;
}

.brand:hover .brand-mark {
  transform: rotate(-10deg) translateY(-2px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
  gap: 2px;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 1.12rem;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.site-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  line-height: 1;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  color: var(--navy);
  background: rgba(20, 48, 31, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--navy);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--navy);
}

.btn-header,
.btn-primary {
  background: var(--gold);
  color: var(--gold-ink);
}

.btn-header {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
}

.btn-ghost {
  background: #fff;
  color: var(--navy);
}

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.didyou-next:focus-visible,
.text-btn:focus-visible,
.quiz-option:focus-visible {
  outline: 3px solid var(--pop);
  outline-offset: 2px;
}

.hero {
  padding: 2.4rem 0 1.6rem;
}

.hero-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.hero-copy,
.section-head {
  max-width: 40rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.eyebrow.light {
  background: var(--gold);
  color: var(--navy);
}

h1 {
  font-size: clamp(2.15rem, 8vw, 4.1rem);
  max-width: 14ch;
  margin-bottom: 0.7rem;
}

.hero-title span {
  display: inline-block;
  animation: word-in 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-title span:nth-child(1) { animation-delay: 0.02s; }
.hero-title span:nth-child(2) { animation-delay: 0.07s; }
.hero-title span:nth-child(3) { animation-delay: 0.12s; }
.hero-title span:nth-child(4) { animation-delay: 0.17s; }
.hero-title span:nth-child(5) { animation-delay: 0.22s; }
.hero-title span:nth-child(6) { animation-delay: 0.27s; }
.hero-title span:nth-child(7) { animation-delay: 0.32s; }
.hero-title span:nth-child(8) { animation-delay: 0.37s; }
.hero-title span:nth-child(9) { animation-delay: 0.42s; }

@keyframes word-in {
  from {
    opacity: 0;
    transform: translateY(0.55em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lede {
  font-size: 1.12rem;
  margin-bottom: 0.85rem;
}

.hero-note {
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
}

.hero-art {
  justify-self: center;
  text-align: center;
}

.hero-blob {
  width: min(320px, 78vw);
  height: auto;
  filter: drop-shadow(8px 10px 0 #14301f);
  animation: float-mark 5.5s ease-in-out infinite;
}

@keyframes float-mark {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-art-label {
  margin: 0.85rem 0 0;
  font-weight: 800;
  color: var(--navy);
}

.didyou-bar {
  background: var(--navy);
  color: #fffdf8;
  border-top: 2px solid #0a1810;
  border-bottom: 2px solid #0a1810;
}

.didyou-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "kicker next"
    "line line";
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.35rem;
  min-height: 72px;
  padding: 0.85rem 0;
}

.didyou-kicker {
  grid-area: kicker;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.didyou-line {
  grid-area: line;
  margin: 0;
  font-weight: 650;
  line-height: 1.35;
}

.didyou-next {
  grid-area: next;
  border: 0;
  background: var(--gold);
  color: var(--navy);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

.live-strip {
  padding: 0 0 0.4rem;
  position: relative;
  z-index: 2;
}

.bento {
  display: grid;
  gap: 12px;
}

.bento-tile {
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 20px;
  padding: 1.05rem 1.1rem;
  min-height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bento-tile:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--navy);
}

.bento-hero {
  background: var(--navy);
  color: #fffdf8;
  box-shadow: 8px 8px 0 var(--gold);
}

.tile-kicker {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--pop);
  line-height: 1;
}

.bento-hero .tile-kicker {
  color: var(--gold);
}

.tile-value {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 720;
  line-height: 1;
  margin: 0 0 0.4rem;
}

.tile-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.bento-hero .tile-note,
.bento-hero .tile-value {
  color: #fffdf8;
}

.bento-hero .tile-note {
  color: #d7eadc;
}

.bento-savings {
  background: var(--gold);
  box-shadow: 6px 6px 0 var(--pop);
}

.bento-savings .tile-kicker,
.bento-savings .tile-value,
.bento-savings .tile-note {
  color: var(--navy);
}

.calculator-section {
  padding: 1.4rem 0 2.2rem;
}

.calc-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.45em;
}

.calc-title-row h2 {
  margin: 0;
}

.calc-title-hint {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--pop);
}

.calc-layout,
.quote-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.card {
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 rgba(20, 48, 31, 0.12);
  padding: 1.25rem;
}

.card-intro,
.source-cite {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.source-cite a {
  font-weight: 800;
  color: var(--navy);
  text-underline-offset: 3px;
}

.help,
.hint,
.optional,
.footer-fine,
.quote-mail-note,
.result-detail,
.math-line,
.muted {
  color: var(--muted);
}

.help,
.hint,
.math-line,
.footer-fine,
.optional {
  font-size: 0.92rem;
}

.optional {
  font-weight: 500;
  text-transform: lowercase;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1rem;
}

label {
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 2px solid var(--navy);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.8rem 0.85rem;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.money-input {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 2px solid var(--navy);
  border-radius: 14px;
  background: #fff;
  padding: 0 0.75rem;
}

.money-input span {
  color: var(--muted);
  font-weight: 800;
}

.money-input input {
  border: 0;
  padding-left: 0;
}

.text-btn {
  align-self: flex-start;
  margin-top: 0.25rem;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.results {
  background: var(--navy-deep);
  color: #f4f7fb;
  border: 2px solid #0a1810;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 8px 8px 0 #f4c14a;
}

.results h2,
.results h3 {
  color: #fff;
}

.results-head p,
.result-detail,
.math-line,
.empty-state {
  color: #d5e8da;
}

.estimate-label {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f4c14a;
  color: #14301f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.estimate-label.light {
  background: var(--navy);
  color: var(--gold);
}

.result-stack {
  display: grid;
  gap: 12px;
}

.result-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.95rem 1rem;
}

.result-value {
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2.15rem);
  margin: 0.15rem 0 0.35rem;
  color: #fff;
}

.result-score-label {
  margin: 0 0 0.4rem;
  font-weight: 800;
  color: #f4c14a;
}

.result-card-score {
  background: #1a5c38;
  border-color: #2fa36a;
}

.shop-card h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  margin: 0.15rem 0 0.35rem;
  letter-spacing: 0;
}

.product-grid {
  display: grid;
  gap: 10px;
  margin: 0.85rem 0 0.5rem;
}

.product-tile {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto auto 1fr auto;
  column-gap: 12px;
  align-items: start;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  border-radius: 14px;
  padding: 0.7rem;
}

.product-tile img {
  grid-row: 1 / span 5;
  width: 72px;
  height: 72px;
  align-self: start;
  border-radius: 8px;
}

.product-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  line-height: 1.2;
}

.product-tile p:not(.product-kicker) {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.product-go {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--navy);
}

.shop-section {
  padding: 2.2rem 0 2.6rem;
}

.shop-grid {
  display: grid;
  gap: 14px;
}

.shop-tile {
  grid-template-columns: 88px 1fr;
  padding: 1rem;
  border: 2px solid var(--navy);
  box-shadow: 6px 6px 0 #2fa36a;
}

.shop-tile img {
  width: 88px;
  height: 88px;
}

.shop-tile h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0.1rem 0 0.4rem;
}

.shop-tile .product-go {
  font-size: 0.95rem;
}

.affiliate-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (min-width: 860px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .shop-tile {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 100%;
  }

  .shop-tile img {
    grid-row: auto;
    width: 140px;
    height: 140px;
    justify-self: start;
  }
}

.result-card-savings {
  background: #1d4d38;
  border-color: #2f7a58;
}

#savings {
  margin: 0;
  padding: 1.25rem 1.2rem 1.35rem;
  background:
    radial-gradient(120% 90% at 100% 0%, #fff4c4 0%, #f4c14a 48%, #e7a61a 100%);
  color: var(--navy);
  border: 3px solid var(--navy);
  border-radius: 22px;
  box-shadow:
    0 0 0 4px rgba(244, 193, 74, 0.45),
    10px 10px 0 var(--pop);
}

#savings .estimate-label {
  background: var(--navy);
  color: var(--gold);
  font-size: 0.8rem;
  padding: 0.28rem 0.7rem;
}

#savings h3,
#savings .result-value,
#savings .result-detail {
  color: var(--navy);
}

#savings .result-value {
  font-size: clamp(2.5rem, 8vw, 3.7rem);
  line-height: 0.92;
  margin: 0.2rem 0 0.4rem;
}

#savings .result-detail {
  color: #2a3d30;
  font-weight: 650;
}

#savings.result-card-more {
  background:
    radial-gradient(120% 90% at 100% 0%, #ffe0d0 0%, #ff7a3c 55%, #e85a20 100%);
  box-shadow:
    0 0 0 4px rgba(255, 122, 60, 0.4),
    10px 10px 0 var(--navy);
}

#savings.result-card-more .estimate-label {
  background: var(--navy);
  color: #ffd4c2;
}

.savings-home {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 2px solid rgba(20, 48, 31, 0.18);
}

.savings-home h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

#savings .savings-home .result-value {
  font-size: clamp(1.7rem, 5vw, 2.3rem);
}

.result-card-more {
  background: #5a2e24;
  border-color: #8a4a3a;
}

.result-card-visit {
  background: #3d3420;
  border-color: #6d5a2b;
}

.cta-band {
  padding: 0.5rem 0 2.8rem;
}

.quote-copy h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  max-width: 16ch;
}

.form-error {
  color: #9a2d22;
  font-weight: 750;
  margin: 0.8rem 0 0;
}

.thanks h3 {
  font-size: 1.7rem;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
}

.section-lede {
  margin: 0;
  max-width: 40rem;
}

.section-lede.light {
  color: #d7eadc;
}

.brand-section {
  padding: 2.8rem 0;
}

.brand-section-navy {
  background:
    radial-gradient(700px 280px at 90% 0%, #2fa36a 0%, transparent 60%),
    radial-gradient(420px 220px at 8% 100%, #ff7a3c 0%, transparent 55%),
    var(--navy-deep);
  color: #f4f7fb;
}

.brand-section-navy .bento-tile:not(.bento-hero) {
  background: rgba(255, 253, 248, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 253, 248, 0.2);
  color: #fffdf8;
}

.brand-section-navy .bento-hero {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 8px 8px 0 var(--pop);
}

.brand-section-navy .bento-hero .tile-kicker,
.brand-section-navy .bento-hero .tile-value,
.brand-section-navy .bento-hero .tile-note,
.brand-section-navy .bento-hero .stat-value,
.brand-section-navy .bento-hero .stat-label,
.brand-section-navy .bento-hero p {
  color: var(--navy);
}

.brand-section-navy h2,
.brand-section-score h2 {
  color: inherit;
}

.brand-section-score {
  background: #d8f3e4;
}

.brand-section-report {
  background:
    radial-gradient(800px 300px at 0% 100%, #ffe28a 0%, transparent 55%),
    var(--cream);
}

.index-panel,
.score-board {
  display: grid;
  gap: 1rem;
}

.index-value,
.score-big p:first-child,
#quiz-score {
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 4.3rem);
  line-height: 0.92;
  margin: 0.15rem 0 0.3rem;
}

.index-unit {
  font-weight: 800;
  margin: 0 0 0.55rem;
}

.stat-grid,
.fact-grid,
.stat-bento {
  display: grid;
  gap: 12px;
}

.brand-section,
.cta-band,
.aside-section {
  animation: rise-in linear both;
  animation-timeline: view();
  animation-range: entry 0% cover 16%;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.fact-card,
.path-steps li,
.quiz-option,
.product-tile {
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.fact-card:hover,
.path-steps li:hover,
.quiz-option:hover,
.product-tile:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--navy);
}

.fact-card-hero {
  background: var(--navy);
  color: #fffdf8;
  border-color: var(--navy);
}

.fact-card-hero .didyou-kicker {
  color: var(--gold);
}

.stat-card,
.fact-card {
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  min-height: 100%;
}

.brand-section-navy .stat-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f4f7fb;
}

.stat-value {
  font-family: var(--display);
  font-size: 1.85rem;
  margin: 0 0 0.15rem;
}

.stat-label {
  font-weight: 800;
  margin: 0 0 0.45rem;
}

.path-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.path-steps li {
  display: grid;
  gap: 0.35rem;
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 16px;
  padding: 1rem 1.05rem 1rem 3.4rem;
  position: relative;
  counter-increment: step;
}

.path-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--pop);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.path-steps strong,
.path-steps span {
  display: block;
}

.score-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.score-breakdown li {
  display: grid;
  gap: 0.15rem;
}

.score-breakdown span {
  color: var(--muted);
  font-size: 0.92rem;
}

.score-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.form-ok {
  color: var(--good);
  font-weight: 750;
  margin: 0;
}

.quiz-progress {
  margin: 0 0 0.6rem;
  font-weight: 800;
  color: var(--pop);
}

.quiz-q {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 720;
  margin: 0;
}

.quiz-options {
  display: grid;
  gap: 8px;
  margin: 1rem 0 0;
}

.quiz-option {
  text-align: left;
  border: 2px solid var(--navy);
  background: #fff;
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.quiz-option.is-right {
  border-color: var(--good);
  background: var(--good-bg);
}

.quiz-option.is-wrong {
  border-color: #9a2d22;
  background: #f8e6e3;
}

.quiz-feedback {
  margin: 0.85rem 0 0;
  font-weight: 650;
}

.quiz-result {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2rem;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 16px;
  overflow: hidden;
}

.rank-table caption {
  text-align: left;
  font-weight: 800;
  padding: 0 0 0.65rem;
}

.rank-table th,
.rank-table td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
}

.rank-table th {
  background: var(--navy);
  color: #fff;
}

.brand-section-report .btn {
  margin-top: 0.35rem;
}

.aside-section {
  padding: 0 0 2.6rem;
}

.aside-card {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem;
  box-shadow: 8px 8px 0 #2fa36a;
}

.site-footer {
  padding: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  border-top: 2px solid var(--navy);
  padding-top: 1.4rem;
  display: grid;
  gap: 0.6rem;
}

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 246, 232, 0.96);
  border-top: 2px solid var(--navy);
}

main {
  display: flex;
  flex-direction: column;
}

.calculator-section {
  order: 1;
}

.shop-section {
  order: 2;
}

.cta-band {
  order: 3;
}

.live-strip {
  order: 4;
}

.hero {
  order: 5;
}

.didyou-bar {
  order: 6;
}

.brand-section {
  order: 7;
}

.aside-section {
  order: 8;
}

.savings-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.1rem;
}

.savings-modal[hidden] {
  display: none;
}

.savings-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 16, 0.62);
}

.savings-modal-card {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  padding: 1.3rem 1.2rem 1.25rem;
  background:
    radial-gradient(120% 90% at 100% 0%, #fff4c4 0%, #f4c14a 48%, #e7a61a 100%);
  color: var(--navy);
  border: 3px solid var(--navy);
  border-radius: 22px;
  box-shadow:
    0 0 0 4px rgba(244, 193, 74, 0.45),
    10px 10px 0 var(--pop);
  animation: savings-pop 0.38s cubic-bezier(0.2, 0.85, 0.25, 1.15);
}

.savings-modal-card.result-card-more {
  background:
    radial-gradient(120% 90% at 100% 0%, #ffe0d0 0%, #ff7a3c 55%, #e85a20 100%);
  box-shadow:
    0 0 0 4px rgba(255, 122, 60, 0.4),
    10px 10px 0 var(--navy);
}

.savings-modal-card h2,
.savings-modal-card h3,
.savings-modal-card .result-value,
.savings-modal-card .result-detail {
  color: var(--navy);
}

.savings-modal-card .result-value {
  font-size: clamp(2.4rem, 10vw, 3.5rem);
  line-height: 0.92;
}

.savings-modal-card .result-detail {
  color: #2a3d30;
  font-weight: 650;
}

.savings-modal-card .btn {
  margin-top: 1rem;
  width: 100%;
}

.savings-modal-quote {
  margin-top: 0.95rem;
  padding: 0.85rem 0.9rem 0.95rem;
  border-top: 2px solid rgba(20, 48, 31, 0.18);
  background: #14301f;
  border-radius: 16px;
  color: #fffdf8;
}

.savings-modal-quote .estimate-label {
  background: var(--gold);
  color: var(--navy);
}

.savings-modal-quote .result-value,
.savings-modal-quote .result-detail {
  color: #fffdf8;
}

.savings-modal-quote .result-value {
  font-size: clamp(1.9rem, 7vw, 2.6rem);
}

.savings-modal-quote .result-detail {
  color: #d7eadc;
  font-weight: 750;
}

@keyframes savings-pop {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.86);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body.savings-open {
  overflow: hidden;
}

body.savings-open .mobile-bar {
  display: none;
}

@media (max-width: 759px) {
  .calculator-section {
    padding-top: 0.85rem;
  }

  .live-strip {
    padding: 0.4rem 0 1.2rem;
  }
}

@media (min-width: 760px) {
  body {
    padding-bottom: 0;
  }

  .mobile-bar {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
  }

  .didyou-inner {
    grid-template-columns: 8.6rem 1fr auto;
    grid-template-areas: "kicker line next";
    column-gap: 1.25rem;
    min-height: 64px;
  }

  .didyou-kicker,
  .didyou-line,
  .didyou-next {
    align-self: center;
  }

  .calc-layout,
  .quote-layout,
  .index-panel,
  .score-board {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .stat-grid,
  .fact-grid,
  .path-steps,
  .live-bento,
  .stat-bento {
    grid-template-columns: 1.15fr 1fr 1fr;
  }

  .live-bento {
    grid-template-columns: 1fr 1fr;
  }

  .live-bento .bento-hero {
    grid-column: 1 / -1;
  }

  .stat-bento {
    grid-template-columns: 1.25fr 1fr;
    grid-template-rows: auto auto;
  }

  .stat-bento .bento-hero {
    grid-row: 1 / span 2;
  }

  .fact-card-hero {
    grid-column: 1 / -1;
  }

  .path-steps {
    grid-template-columns: 1fr 1fr;
  }

  .card,
  .results {
    padding: 1.5rem;
  }

  .hero {
    padding-top: 3.2rem;
  }
}

@media (min-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav {
    display: flex;
  }

  .live-bento {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }

  .live-bento .bento-hero {
    grid-column: auto;
  }
}

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