:root {
  color-scheme: light;
  --ink: #142a25;
  --deep: #101f20;
  --muted: #4d625a;
  --green: #175841;
  --mint: #c7f4ac;
  --paper: #f5f7f1;
  --line: #d5dfd5;
  --white: #fff;
  --radius: 22px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.035em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #087a56; outline-offset: 4px; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--mint); }
.container { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: clamp(48px, 7vw, 88px); }
#results { scroll-margin-block: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 5;
  inset: 8px auto auto 8px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header, .hero, .site-footer { background: var(--deep); color: var(--white); }
.site-header { border-bottom: 1px solid #314342; }

.header-inner, .footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.055em;
  text-decoration: none;
  white-space: nowrap;
}
.brand span:last-child { color: var(--mint); }
.brandmark {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid var(--mint);
  border-radius: 50%;
  margin-inline-end: 10px;
}
.brandmark::before, .brandmark::after { content: ""; position: absolute; }
.brandmark::before { inset: 5px; border: 1px solid var(--mint); border-radius: 50%; }
.brandmark::after {
  width: 11px;
  height: 2px;
  background: var(--mint);
  top: 10px;
  left: 10px;
  transform: rotate(-48deg);
  transform-origin: left;
}

nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 650;
  color: #d0ded7;
  text-decoration: none;
}
nav a:hover { color: var(--mint); }
.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e9f0e5;
  color: var(--green);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}
nav .count { min-width: 22px; padding: 0 5px; background: #31443e; color: #d9f4d8; }

.hero { background: radial-gradient(ellipse at 85% 85%, #1f3e32, var(--deep) 64%); }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(28px, 7vw, 100px);
  padding-block: clamp(52px, 8vw, 112px);
}
.eyebrow {
  color: var(--mint);
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); line-height: 1.04; letter-spacing: -.047em; }
h1 em { display: block; color: var(--mint); font-style: normal; }
.hero-copy > p:not([class]) { max-width: 47ch; color: #d0ded7; margin: 24px 0; font-size: 1.05rem; }
.hero-note { color: #bdcfc4; font-size: .85rem; margin-top: 14px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
}
.button.primary { margin-top: 4px; background: var(--mint); color: var(--deep); }
.button.primary:hover { background: #dff9d1; }
.button.compare-button, .button.secondary { background: var(--green); color: var(--white); }
.button.compare-button:hover, .button.secondary:hover { background: #104731; }
.button.compare-button { width: 100%; margin-top: 13px; }

.hero-example {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid #4e695c;
  border-radius: 25px;
  background: #182d27;
}
.hero-example figcaption { display: flex; align-items: center; gap: 10px; color: #e1ede5; font-size: .875rem; font-weight: 650; }
.example-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: #30493c;
  color: var(--mint);
  border-radius: 8px;
}
.example-saving { color: var(--mint); font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 780; letter-spacing: -.065em; margin-block: 12px 20px; line-height: 1.08; }
.example-saving small { display: block; color: #d8e7dc; font-size: .875rem; letter-spacing: 0; font-weight: 550; margin-top: 7px; }
.example-row + .example-row { margin-top: 16px; }
.example-row > div:first-child { display: flex; justify-content: space-between; gap: 8px; color: #d8e7dc; font-size: .85rem; }
.example-row strong { color: var(--white); }
.bar { height: 8px; margin-top: 7px; border-radius: 999px; }
.current-bar { background: #879d8d; }
.switch-bar { width: 61.15%; background: var(--mint); }
.example-note { color: #bacfc0; font-size: .8rem; margin-top: 21px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
.section-head p { margin-top: 8px; color: var(--muted); }
.source-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 20px 0; }
.source-choice label { font-size: .9rem; font-weight: 700; }
.source-choice select, .provider-filter select { min-height: 44px; padding: 6px 12px; border: 1px solid #adc0b3; border-radius: 9px; color: var(--ink); background: var(--white); max-width: 100%; }
.source-choice p { flex-basis: 100%; color: var(--muted); font-size: .875rem; }
.catalogue-coverage { flex-basis: 100%; color: var(--muted); font-size: .875rem; }
.catalogue-coverage summary { color: var(--green); padding-block: 6px; }
.catalogue-coverage p { margin: 3px 0; }

.workspace { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.32fr); align-items: start; gap: 20px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); background: var(--white); }
.panel h3 { font-size: 1.45rem; }
.control-panel form { margin-top: 16px; }
.control-panel label:not(.check-row), .type-choice legend, .custom-grid label { font-weight: 650; font-size: .9rem; }
.type-choice { min-inline-size: 0; border: 0; padding: 0; margin: 0 0 15px; }
.type-choice legend { margin-bottom: 6px; padding: 0; }
.type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.type-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 9px;
  cursor: pointer;
}
.type-options label:has(:checked) { border-color: #6e977b; background: #eaf3e7; }
input[type="radio"], input[type="checkbox"] { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.control-panel label[for] { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin: 13px 0 5px; }
.optional { color: var(--muted); font-weight: 450; font-size: .8rem; }

.input-frame, input[type="text"], .custom-grid input[type="number"] {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  border: 1px solid #adc0b3;
  border-radius: 9px;
  color: var(--ink);
  background: var(--white);
}
input[type="text"], .custom-grid input[type="number"] { padding: 8px 11px; }
input::placeholder { color: #556b61; }
.input-frame span { padding-inline: 10px; color: var(--muted); font-size: .875rem; }
.input-frame input { width: 100%; min-width: 0; min-height: 42px; padding: 7px 10px; border: 0; border-radius: inherit; color: var(--ink); background: transparent; }
.input-frame:focus-within { outline: 3px solid #087a56; outline-offset: 2px; }
.input-frame input:focus-visible { outline: none; }
.field-help { margin-top: 6px; font-size: .825rem; color: var(--muted); }
.check-row { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: .875rem; cursor: pointer; }
.control-panel .check-row { margin-top: 8px; }

.results-head { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
#resultsCaption { margin-top: 5px; font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 16px 0 12px; }
.summary-tile { display: grid; align-content: start; gap: 4px; padding: clamp(10px, 2vw, 16px); border-radius: 12px; background: #f0f3ec; }
.summary-tile.highlight { background: #e0f4d9; color: #1d5136; }
.summary-tile span { font-size: .875rem; font-weight: 650; }
.summary-tile strong { font-size: clamp(1.15rem, 3vw, 1.95rem); line-height: 1.1; letter-spacing: -.06em; overflow-wrap: anywhere; }
.summary-tile small { font-size: .8rem; color: #425b4b; }

.add-deal { margin-top: 12px; border: 1px solid var(--line); border-radius: 11px; background: #f9fbf7; }
summary { cursor: pointer; font-weight: 700; }
.add-deal > summary, .breakdown > summary { min-height: 44px; padding: 11px; color: var(--green); font-size: .9rem; }
.custom-form, .custom-items { padding: 12px; border-top: 1px solid var(--line); }
.custom-form > p:first-child { font-size: .875rem; color: var(--muted); margin-bottom: 12px; }
.custom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.custom-grid input { margin-top: 4px; }
.custom-form button { margin-top: 12px; }
.custom-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; overflow-wrap: anywhere; }
.custom-row + .custom-row { border-top: 1px solid var(--line); }

.result-controls { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; margin: 10px 0 4px; }
.offer-stack { display: grid; gap: 10px; }
.offer, .watch-card { border: 1px solid var(--line); border-radius: 13px; padding: 15px; overflow-wrap: anywhere; }
.offer h4, .watch-card h3 { font-size: 1.1rem; }
.offer-status { color: #445f50; font-size: .78rem; font-weight: 750; margin-bottom: 5px; }
.offer-meta { color: var(--muted); font-size: .85rem; margin-top: 5px; }
.offer-pricing { font-size: .9rem; font-weight: 650; margin-top: 9px; }
.offer-links { display: flex; flex-wrap: wrap; gap: 0 14px; }
.offer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-size: .85rem; font-weight: 650; text-underline-offset: 3px; }
.eligibility-check { align-items: flex-start; background: #f0f4ed; border-radius: 8px; padding: 10px; }
.eligibility-check input { margin-top: 3px; }
.offer-special { margin: 8px 0; border: 1px solid #a8c49e; background: #edf5e9; border-radius: 8px; padding: 10px; }
.provider-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .875rem; }
.landing-page .hero-layout { display: block; padding-block: clamp(36px, 6vw, 68px); }
.landing-page .hero h1 { font-size: clamp(2.35rem, 5.8vw, 4rem); }
.landing-page #compare { padding-top: clamp(32px, 5vw, 54px); }
.privacy-section { padding-block: 32px 56px; }
.privacy-section h2 { font-size: 1.5rem; margin-bottom: 12px; }
.privacy-section p { max-width: 72ch; margin-block: 6px; color: var(--muted); }
.privacy-section h3 { margin-top: 20px; }
.service-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; }
.measurement-settings { padding-block: 20px; }
.measurement-settings h2 { font-size: 1.125rem; }
.measurement-settings p { max-width: 70ch; margin-block: 8px 12px; }
.measurement-actions, .footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.measurement-actions { margin-top: 12px; }
.price-snapshot .field-help { max-width: 75ch; }
.price-snapshot dl { margin: 12px 0 0; }
.price-snapshot dt { font-weight: 700; }
.price-snapshot dd { margin: 0 0 12px; }
.measurement-actions button { font: inherit; min-height: 44px; padding: 6px 12px; background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 6px; cursor: pointer; }
.footer-button { padding: 0; background: transparent; color: inherit; border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.referral { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px; }
.contract-note { color: #704612; font-size: .85rem; margin-top: 6px; }
.offer-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 10px; margin-top: 7px; }
.saving { color: var(--green); }
.no-saving { color: #664725; }
.watch-button {
  background: #edf5e9;
  border: 1px solid #bdd2b9;
  border-radius: 8px;
  min-height: 44px;
  padding: 5px 12px;
  color: var(--green);
  font-weight: 750;
}
.watch-button:hover { background: #dcefd5; }
.breakdown { background: #f5f8f3; border-radius: 8px; margin-top: 10px; }
.breakdown dl { padding: 0 11px 11px; margin: 0; font-size: .85rem; }
.breakdown dl div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.breakdown dd { margin: 0; text-align: right; font-weight: 650; }
.breakdown .field-help { padding: 0 11px 11px; }
.notice { padding: 12px; margin-top: 12px; border-radius: 9px; background: #f4f6ee; color: #414f38; font-size: .9rem; }
.results-actions { display: flex; flex-wrap: wrap; gap: 0 15px; margin-top: 6px; }
.text-button {
  min-height: 44px;
  padding: 5px 2px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: .9rem;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-button:hover:not(:disabled) { color: #103e30; }
.fine-print { color: var(--muted); font-size: .825rem; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

.watch-section { background: #e7eee1; }
.watch-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.watch-card { background: var(--white); }
.watch-empty { grid-column: 1 / -1; border: 1px dashed #7f9a84; border-radius: 13px; padding: 22px; color: var(--muted); }
.watch-note { color: var(--muted); font-size: .85rem; margin-top: 10px; }
.feature-grid article { border-top: 1px solid #b5c7b8; padding-top: 14px; }
.feature-grid h3 { font-size: 1.16rem; }
.feature-grid p { color: var(--muted); margin-top: 7px; max-width: 40ch; }
.footer-inner { color: #d0ded7; font-size: .85rem; }
.footer-inner .brand { font-size: 1.25rem; }

.toast {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 16px;
  translate: -50% 0;
  background: var(--deep);
  color: var(--white);
  border-radius: 9px;
  padding: 10px 15px;
  max-width: calc(100% - 24px);
  width: max-content;
  font-size: .9rem;
}
.toast:empty { opacity: 0; pointer-events: none; }

@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .hero-layout, .workspace { grid-template-columns: minmax(0, 1fr); }
  .hero-layout { padding-block: 47px 32px; }
  .hero-example { max-width: 460px; width: 100%; }
  .watch-grid, .feature-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 450px) {
  .header-inner { min-height: auto; gap: 3px; padding-top: 13px; flex-wrap: wrap; }
  .header-inner nav { width: 100%; gap: 15px; justify-content: space-between; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .custom-grid { grid-template-columns: minmax(0, 1fr); }
  .result-controls { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
