/* The Recovery Yard — warm ground, ice + ember accents. Mobile-first. */

:root {
  --paper: #faf7f2;
  --card: #ffffff;
  --ink: #22302f;
  --ink-soft: #5c6b69;
  --line: #e5ded2;
  --ice: #2e7f96;      /* cold accent */
  --ice-soft: #e3f0f4;
  --ember: #d4622b;    /* heat accent */
  --ember-soft: #f9e9df;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 "Inter", -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif { font-family: "Fraunces", Georgia, serif; }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- header ---------- */
header.site {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo .dot { color: var(--ember); }
.disclosure-link { font-size: .78rem; color: var(--ink-soft); text-decoration: underline; }

/* ---------- hero ---------- */
.hero { padding: 3rem 0 2.5rem; text-align: center; }
.hero h1 {
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1rem;
}
.hero h1 em { font-style: normal; color: var(--ice); }
.hero p.dek { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 1.6rem; }

.cta {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  padding: .95rem 2.1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, background .12s ease;
}
.cta:hover { background: #101b1a; transform: translateY(-1px); }
.cta.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.hero .micro { display: block; margin-top: .8rem; font-size: .8rem; color: var(--ink-soft); }

/* ---------- trust strip ---------- */
.strip {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: center;
  padding: 1rem 0 2.2rem; font-size: .84rem; color: var(--ink-soft);
}
.strip span::before { content: "✓ "; color: var(--ice); font-weight: 700; }

/* ---------- how it works ---------- */
section.how { padding: 2.2rem 0; border-top: 1px solid var(--line); }
section.how h2, section.tiers h2 { font-size: 1.5rem; margin-bottom: 1.2rem; text-align: center; letter-spacing: -0.01em; }
.steps { display: grid; gap: .9rem; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem; display: flex; gap: .95rem; align-items: flex-start;
}
.step b.n {
  flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; font-family: "Fraunces", Georgia, serif;
  background: var(--ice-soft); color: var(--ice);
}
.step p { font-size: .95rem; color: var(--ink-soft); }
.step p b { color: var(--ink); }

/* ---------- tier teaser ---------- */
section.tiers { padding: 2.2rem 0 2.6rem; border-top: 1px solid var(--line); }
.tiergrid { display: grid; gap: .9rem; }
@media (min-width: 640px) { .tiergrid { grid-template-columns: 1fr 1fr 1fr; } }
.tier {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.tier .band { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.tier.cold .band { color: var(--ice); }
.tier.heat .band { color: var(--ember); }
.tier.both .band { background: linear-gradient(90deg, var(--ember), var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier h3 { font-size: 1.1rem; margin: .3rem 0 .35rem; }
.tier p { font-size: .88rem; color: var(--ink-soft); }

/* ---------- quiz ---------- */
#quiz { position: fixed; inset: 0; background: var(--paper); z-index: 50; overflow-y: auto; display: none; }
#quiz.open { display: block; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; }
.quiz-close { background: none; border: none; font-size: 1.5rem; color: var(--ink-soft); cursor: pointer; }
.progress { flex: 1; margin: 0 1rem; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; width: 0%; background: linear-gradient(90deg, var(--ember), var(--ice)); transition: width .25s ease; border-radius: 99px; }

.q-card { max-width: 560px; margin: 0 auto; padding: 1.2rem 1.25rem 3rem; }
.q-card h2 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: .4rem; text-wrap: balance; }
.q-card .q-sub { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1.2rem; }
.opts { display: grid; gap: .7rem; }
.opt {
  text-align: left; background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: .95rem 1.1rem; font-size: 1rem;
  cursor: pointer; transition: border-color .1s ease, background .1s ease;
  font-family: inherit; color: var(--ink);
}
.opt:hover { border-color: var(--ice); background: var(--ice-soft); }
.opt small { display: block; color: var(--ink-soft); font-size: .82rem; margin-top: .15rem; }

/* email gate */
.gate input[type="email"] {
  width: 100%; padding: .95rem 1.1rem; font-size: 1rem; border: 1.5px solid var(--line);
  border-radius: var(--radius); font-family: inherit; margin-bottom: .8rem; background: var(--card);
}
.gate .cta { width: 100%; }
.gate .privacy { font-size: .78rem; color: var(--ink-soft); margin-top: .7rem; text-align: center; }

/* ---------- results ---------- */
.result-eyebrow { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); font-weight: 700; margin-bottom: .4rem; }
.prod {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.4rem; margin-bottom: 1rem;
}
.prod.primary { border-color: var(--ice); border-width: 2px; }
.prod .pick { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ice); }
.prod h3 { font-size: 1.25rem; margin: .25rem 0 .3rem; letter-spacing: -0.01em; }
.prod .fits { color: var(--ink-soft); font-size: .92rem; margin-bottom: .8rem; }
.prod ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.prod li { font-size: .9rem; padding-left: 1.3rem; position: relative; margin-bottom: .35rem; }
.prod li::before { content: "✓"; position: absolute; left: 0; color: var(--ember); font-weight: 700; }
.pricebar { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pricebar .from { font-family: "Fraunces", Georgia, serif; font-size: 1.35rem; font-weight: 600; }
.pricebar .mo { font-size: .9rem; color: var(--ember); font-weight: 600; }
.prod .cta { width: 100%; text-align: center; }
.finance-note, .hsa-note { font-size: .78rem; color: var(--ink-soft); margin-top: .6rem; }

/* ---------- exit intent ---------- */
.exit-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(34, 48, 47, .45);
  display: grid; place-items: center; padding: 1.25rem;
}
.exit-card {
  position: relative; background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); max-width: 420px; padding: 1.6rem 1.5rem;
  box-shadow: 0 18px 50px rgba(34, 48, 47, .25); text-align: center;
}
.exit-card h3 { font-size: 1.3rem; margin-bottom: .5rem; letter-spacing: -0.01em; }
.exit-card p { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.exit-card .cta { width: 100%; }
.exit-close {
  position: absolute; top: .5rem; right: .8rem; background: none; border: none;
  font-size: 1.4rem; color: var(--ink-soft); cursor: pointer;
}

/* ---------- compare + about pages ---------- */
.page-head { padding: 2.4rem 0 1.4rem; }
.page-head h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: .6rem; text-wrap: balance; }
.page-head p { color: var(--ink-soft); max-width: 58ch; }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 1.2rem 0; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .88rem; }
table.cmp th { text-align: left; padding: .7rem .9rem; border-bottom: 2px solid var(--line); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
table.cmp td { padding: .65rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp tr:last-child td { border-bottom: none; }
table.cmp td.rowlabel { font-weight: 600; white-space: nowrap; color: var(--ink-soft); font-size: .8rem; }
table.cmp .cmp-cta { display: inline-block; margin-top: .2rem; font-weight: 600; color: var(--ice); text-decoration: none; }
.prose { padding: .4rem 0 1rem; }
.prose h2 { font-size: 1.25rem; margin: 1.6rem 0 .5rem; letter-spacing: -0.01em; }
.prose p { color: var(--ink-soft); margin-bottom: .8rem; max-width: 62ch; }
.prose p b { color: var(--ink); }

/* ---------- footer / compliance ---------- */
footer.site {
  border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.8rem 0 2.6rem;
  font-size: .8rem; color: var(--ink-soft);
}
footer.site p { max-width: 62ch; margin: 0 auto .6rem; text-align: center; }
