/* Layout: one 1080px column, quiz and rebate "receipt" as the two signature objects. */
:root {
  --paper: #f2f6f5;
  --surface: #ffffff;
  --ink: #10262d;
  --muted: #4a6067;
  --line: #c9d7d4;
  --teal: #0d6a5d;
  --teal-ink: #ffffff;
  --teal-soft: #dcefeb;
  --sun: #e8a137;
  --sun-soft: #fbecd2;
  --sun-ink: #6a4200;
  --danger: #b3261e;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 10px;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c191d; --surface: #12242a; --ink: #e5efed; --muted: #9bb1b4; --line: #26404a;
    --teal: #3fb7a2; --teal-ink: #062521; --teal-soft: #14352f; --sun: #f0b45a; --sun-soft: #33270f; --sun-ink: #f6cf8f; --danger: #ff8a80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c191d; --surface: #12242a; --ink: #e5efed; --muted: #9bb1b4; --line: #26404a;
  --teal: #3fb7a2; --teal-ink: #062521; --teal-soft: #14352f; --sun: #f0b45a; --sun-soft: #33270f; --sun-ink: #f6cf8f; --danger: #ff8a80;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-3); font-weight: 700; }
h2 { font-size: var(--step-2); font-weight: 650; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }
.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 2rem; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* Header and footer */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo svg { flex: none; }
.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--teal); }
.site-foot { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--surface); }
.site-foot .wrap { padding-block: 2.5rem; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); font-size: var(--step--1); }
.site-foot h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-foot a { color: var(--ink); }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.2rem; color: var(--muted); display: grid; gap: 0.4rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.3rem; border-radius: 999px; border: 2px solid var(--teal);
  background: var(--teal); color: var(--teal-ink); font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-small { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.92rem; }

/* Hero */
.hero { padding-block: 3rem 2.5rem; }
.hero .wrap { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
.hero-copy { display: grid; gap: 1.2rem; min-width: 0; padding-top: 1rem; }
.hero-copy p.lead { font-size: var(--step-1); color: var(--muted); max-width: 34ch; line-height: 1.45; }
.countdown { display: inline-flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; background: var(--sun-soft); color: var(--sun-ink); border-radius: 999px; padding: 0.4rem 0.9rem; font-weight: 700; font-size: 0.92rem; width: fit-content; }
.countdown .num { font-size: 1.05rem; }
.trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; list-style: none; padding: 0; margin: 0; font-size: var(--step--1); color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-block: 1.6rem 1.5rem; } .hero-copy { padding-top: 0; } }

/* Quiz card */
.quiz {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgb(16 38 45 / 0.45);
  padding: 1.4rem; display: grid; gap: 1.1rem; min-width: 0;
}
.quiz-top { display: grid; gap: 0.6rem; }
.quiz-progress { height: 6px; background: var(--teal-soft); border-radius: 999px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; background: var(--teal); width: 0; transition: width 0.3s ease; }
.quiz-steplabel { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); }
.quiz h2 { font-size: 1.4rem; }
.quiz .hint { color: var(--muted); font-size: var(--step--1); }
.choices { display: grid; gap: 0.6rem; }
.choices.cols-2 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice {
  display: flex; align-items: center; gap: 0.8rem; text-align: left; width: 100%;
  min-height: 54px; padding: 0.75rem 1rem; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 1rem/1.3 var(--body); cursor: pointer;
}
.choice:hover { border-color: var(--teal); }
.choice[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); }
.choice small { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.choice .dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); }
.choice[aria-pressed="true"] .dot { border-color: var(--teal); background: radial-gradient(circle, var(--teal) 45%, transparent 50%); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; }
.linkish { background: none; border: 0; color: var(--muted); font: 600 0.92rem var(--body); cursor: pointer; padding: 0.4rem 0; text-decoration: underline; text-underline-offset: 3px; }

/* Fields */
.field { display: grid; gap: 0.3rem; min-width: 0; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.6rem 0.8rem; border-radius: 8px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink); font: 400 1rem var(--body);
}
.field input:focus, .field select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
.field .err { color: var(--danger); font-size: 0.85rem; min-height: 0; }
.field.bad input { border-color: var(--danger); }
.grid-2 { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.86rem; color: var(--muted); }
.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zonechip { display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.85rem; background: var(--teal-soft); color: var(--ink); padding: 0.25rem 0.7rem; border-radius: 999px; width: fit-content; }
.zonechip b { font-family: var(--mono); }
.formerror { background: var(--sun-soft); color: var(--sun-ink); padding: 0.7rem 0.9rem; border-radius: 8px; font-size: 0.92rem; }

/* The rebate receipt: the signature object */
.receipt {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 4px var(--radius) var(--radius);
  padding: 1.1rem 1.1rem 1rem; font-size: 0.95rem;
}
.receipt::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -7px; height: 8px;
  background: radial-gradient(circle at 6px 0, transparent 5px, var(--surface) 5.5px) 0 0 / 12px 8px repeat-x;
}
.receipt-head { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; border-bottom: 1px dashed var(--line); padding-bottom: 0.5rem; }
.receipt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 0.8rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); }
.receipt-row .lbl { font-weight: 700; }
.receipt-row .amt { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.receipt-row .det { grid-column: 1 / -1; color: var(--muted); font-size: 0.82rem; font-family: var(--mono); line-height: 1.45; }
.receipt-row .cond { color: var(--sun-ink); background: var(--sun-soft); font-family: var(--body); font-size: 0.72rem; font-weight: 700; padding: 0.05rem 0.45rem; border-radius: 4px; margin-left: 0.3rem; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 0.7rem; gap: 1rem; }
.receipt-total .amt { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; color: var(--ink); background: linear-gradient(transparent 62%, var(--sun-soft) 62%); }
.receipt-foot { margin-top: 0.6rem; font-size: 0.78rem; color: var(--muted); }

/* Sections */
.section { padding-block: 3rem; }
.section-head { display: grid; gap: 0.6rem; max-width: 62ch; margin-bottom: 1.8rem; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; gap: 0.5rem; align-content: start; }
.steps li::before { counter-increment: s; content: counter(s); font-family: var(--display); font-weight: 700; font-size: 1.1rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: var(--teal-ink); }
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tile { display: grid; gap: 0.4rem; align-content: start; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); min-width: 0; }
.tile:hover { border-color: var(--teal); }
.tile h3 { font-size: 1.1rem; }
.tile .num { color: var(--teal); font-weight: 600; }
.statebar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.statebar a { padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.9rem; background: var(--surface); font-family: var(--mono); }
.statebar a:hover { border-color: var(--teal); color: var(--teal); }

/* Article pages */
.article { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; padding-block: 2.5rem; }
.article-body { display: grid; gap: 1.1rem; min-width: 0; max-width: 68ch; }
.article-body h2 { margin-top: 1.2rem; font-size: 1.45rem; }
.article-body ul, .article-body ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.4rem; }
.article-aside { position: sticky; top: 1rem; display: grid; gap: 1rem; }
.callout { border-left: 4px solid var(--sun); background: var(--sun-soft); color: var(--ink); padding: 0.9rem 1rem; border-radius: 0 8px 8px 0; }
.crumbs { font-size: 0.85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--surface); }
th, td { text-align: left; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
td.num, th.num { text-align: right; }
tr:last-child td { border-bottom: 0; }
@media (max-width: 860px) { .article { grid-template-columns: 1fr; } .article-aside { position: static; } }

/* Calculators */
.calc { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; padding-block: 2rem; }
.calc-inputs { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; min-width: 0; }
.range-row { display: grid; gap: 0.3rem; }
.range-row output { font-family: var(--mono); font-weight: 600; }
input[type="range"] { width: 100%; accent-color: var(--teal); min-height: 32px; }
.bigfigs { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.fig { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 1rem; background: var(--surface); }
.fig .v { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fig .k { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }

/* Ad landing pages: no menu, quiz first */
.lp-head .wrap { padding-block: 0.7rem; }
.lp .hero { padding-top: 1.5rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: 0.6rem; color: var(--muted); }
.notice { font-size: 0.82rem; color: var(--muted); max-width: 80ch; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* The Solar Standard brand */
.wordmark { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; white-space: nowrap; }
.wm-the { font-weight: 500; color: var(--muted); }
.std-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); counter-reset: std; }
.std-list li { counter-increment: std; display: grid; gap: 0.35rem; align-content: start; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.std-list li h3 { font-size: 1.05rem; display: flex; gap: 0.5rem; align-items: baseline; }
.std-list li h3::before, .std-full li h2::before { content: counter(std, decimal-leading-zero); font-family: var(--mono); font-size: 0.8rem; color: var(--teal); font-weight: 700; }
.std-full { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.3rem; counter-reset: std; }
.std-full li { counter-increment: std; display: grid; gap: 0.35rem; padding-bottom: 1.2rem; border-bottom: 1px dashed var(--line); }
.std-full li h2 { margin-top: 0; display: flex; gap: 0.6rem; align-items: baseline; }
.lead-sm { font-size: var(--step-1); color: var(--muted); line-height: 1.45; }
@media (max-width: 420px) { .logo .wordmark { font-size: 1.02rem; } }
