/* Honest Upgrade: one shared stylesheet. No web fonts, no framework. */

:root {
  --green: #1f4d3a;       /* primary */
  --cream: #f6f1e7;       /* background */
  --coral: #ef7b5a;       /* buttons and accents; text on it is --ink (5.65:1) */
  --ink: #1f2430;         /* body text (13.8:1 on cream) */
  --ink-soft: #4a5060;    /* secondary text (7.2:1 on cream) */
  --paper: #fffdf8;       /* card surface */
  --line: #ddd4c2;        /* hairlines (decorative only) */
  --draft: #fde2d8;       /* draft banner fill */

  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 42rem;
  --gutter: 1rem;
  --radius: 10px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--green);
  line-height: 1.2;
  margin: 1.6em 0 0.5em;
}
h1 { font-size: clamp(1.9rem, 6vw, 2.75rem); margin-top: 0.4em; }
h2 { font-size: clamp(1.4rem, 4vw, 1.75rem); }
h3 { font-size: 1.2rem; }

p, ul, ol, dl { margin: 0 0 1em; }
li + li { margin-top: 0.35em; }

a { color: var(--green); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

/* Visible focus for every interactive element. */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--paper);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}
.skip-link:focus { top: 0.5rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.logo { display: inline-block; line-height: 0; }
.logo img { width: 208px; height: 36px; }
.site-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav li + li { margin-top: 0; }
.site-nav a { font-weight: 600; text-decoration: none; padding: 0.5rem 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

main { padding-bottom: 3rem; }

.tagline { font-family: var(--serif); font-size: 1.2rem; color: var(--ink-soft); margin-top: -0.25em; }
.lede { font-size: 1.15rem; }
.muted { color: var(--ink-soft); }

/* Affiliate note near the top of offer pages */
.affiliate-note {
  font-size: 0.95rem;
  background: var(--paper);
  border-left: 4px solid var(--coral);
  padding: 0.6rem 0.9rem;
  margin: 1rem 0 1.25rem;
}

/* Draft banner for legal pages */
.draft-banner {
  background: var(--draft);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0;
}

/* Buttons: coral fill, ink text. White on coral would fail AA. */
.button {
  display: inline-block;
  background: var(--coral);
  color: var(--ink);
  font: 700 1.05rem/1.2 var(--sans);
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  min-height: 48px;
  cursor: pointer;
  text-align: center;
}
.button:hover { background: #f39274; text-decoration: none; }
.button:focus-visible { outline-color: var(--ink); }
.button-quiet { background: transparent; }
.button-quiet:hover { background: var(--paper); }

/* Cards (home page picks) */
.picks { list-style: none; padding: 0; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Hero illustration */
.hero-art { display: block; width: 100%; max-width: 320px; margin: 0.5rem auto 1rem; }

/* How it works */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  min-height: 2.25rem;
}
.steps li + li { margin-top: 1rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font: 700 1rem/2.1rem var(--sans);
  text-align: center;
}
.steps strong { display: block; }

/* State checker */
.checker {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.checker label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.checker select {
  width: 100%;
  max-width: 22rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink-soft);
  border-radius: 6px;
  padding: 0.6rem 0.5rem;
  min-height: 48px;
}
.checker-result { margin: 1rem 0 0; }
.checker-result:empty { display: none; }
.cta-wrap { margin-top: 1rem; }
.cta-wrap[hidden] { display: none; }

/* FAQ */
.faq dt { font-weight: 700; margin-top: 1.25rem; }
.faq dd { margin: 0.3rem 0 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; padding: 0; margin: 0 0 0.75rem; }
.site-footer li + li { margin-top: 0; }
.site-footer a, .link-button { color: var(--green); }
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

/* Consent banner (built by tracking.js) */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: var(--paper);
  border-top: 2px solid var(--green);
  box-shadow: 0 -4px 16px rgba(31, 36, 48, 0.12);
  padding: 1rem 0;
}
.consent p { margin: 0 0 0.75rem; font-size: 0.95rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.consent-actions .button { flex: 1 1 9rem; padding: 0.7rem 1rem; }

@media (prefers-reduced-motion: no-preference) {
  .button, .site-nav a { transition: background-color 0.15s ease; }
}

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