/* Cash for Subies — public site styles (owned by Opus) */
:root {
  --pine: #0f2a22;
  --pine-2: #17392e;
  --pine-3: #23503f;
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --card: #fffdf8;
  --ink: #15181a;
  --ink-2: #3d4440;
  --muted: #6b7468;
  --line: #d9d0bf;
  --signal: #ff5a1f;
  --signal-2: #e64612;
  --gold: #e8b04a;
  --ok: #2f8f5b;
  --err: #c2341b;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(15, 42, 34, .06), 0 8px 24px rgba(15, 42, 34, .08);
  --shadow-lg: 0 2px 6px rgba(15, 42, 34, .08), 0 24px 60px rgba(15, 42, 34, .18);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display {
  font-stretch: 112%;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: .95;
  text-transform: uppercase;
  margin: 0;
}
h1.display { font-size: clamp(42px, 7.4vw, 92px); }
h2.display { font-size: clamp(32px, 4.6vw, 58px); }
h3 { font-size: 21px; line-height: 1.2; margin: 0 0 6px; font-weight: 800; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--signal);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: currentColor; border-radius: 2px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 36em; }
.hl { color: var(--signal); }
.u { background: linear-gradient(transparent 62%, rgba(232, 176, 74, .55) 62%); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--signal); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 800; font-size: 17px; letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 18px rgba(255, 90, 31, .32);
}
.btn:hover { background: var(--signal-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { --bg: var(--ink); --fg: var(--paper); background: var(--ink); color: var(--paper); }
.btn-light { --bg: var(--paper); --fg: var(--pine); box-shadow: none; }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.topbar {
  background: var(--pine); color: var(--paper);
  font-size: 14px; text-align: center; padding: 8px 16px;
}
.topbar strong { color: var(--gold); }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 239, 230, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(217, 208, 191, .7);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.01em; font-size: 20px; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo small { display: block; font-size: 10px; letter-spacing: .2em; color: var(--muted); font-weight: 700; font-stretch: 100%; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav a:not(.btn):hover { background: var(--paper-2); color: var(--ink); }
.nav .phone-link { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .nav a.hide-sm { display: none; }
  .site-header .wrap { height: 60px; }
  .logo { font-size: 16px; gap: 8px; white-space: nowrap; }
  .logo-mark { width: 32px; height: 32px; }
  .logo small { display: none; }
  .site-header .btn-sm { white-space: nowrap; }
}
.nav .phone-link { white-space: nowrap; }
@media (max-width: 400px) {
  /* icon-only phone link; number stays readable to screen readers */
  .nav .phone-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav .phone-link { padding: 10px; }
}
@media (max-width: 370px) { .logo { font-size: 14px; } .site-header .wrap { gap: 10px; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: url("/img/topo.svg"); background-size: 900px; background-position: 70% 30%;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero .lede { margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 18px; height: 18px; color: var(--ok); }
.hero-art { position: relative; margin-top: 28px; }
.hero-art .wagon { width: 100%; height: auto; filter: drop-shadow(0 18px 18px rgba(15, 42, 34, .18)); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 32px 0 48px; }
}

/* ---------- estimate card ---------- */
.est-card {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 26px; border: 1px solid rgba(217, 208, 191, .8); position: relative;
}
.est-card h2 { font-size: 22px; margin: 0 0 4px; font-weight: 900; font-stretch: 110%; text-transform: uppercase; }
.est-card p.sub { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.est-card .stamp {
  position: absolute; top: -16px; right: 18px; transform: rotate(4deg);
  background: var(--gold); color: var(--pine); font-weight: 900; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 6px; box-shadow: var(--shadow);
}
.est-result {
  margin-top: 16px; border-radius: var(--radius); padding: 16px 18px; background: var(--pine); color: var(--paper);
  display: none;
}
.est-result.show { display: block; animation: pop .3s ease; }
.est-result .range { font-size: clamp(30px, 4vw, 40px); font-weight: 900; font-stretch: 110%; letter-spacing: -.01em; line-height: 1.05; }
.est-result .range .dash { color: var(--gold); padding: 0 4px; }
.est-result small { display: block; color: rgba(244, 239, 230, .75); font-size: 13px; margin: 6px 0 12px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .label { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .err { font-size: 13px; color: var(--err); font-weight: 600; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); box-shadow: 0 0 0 3px rgba(194, 52, 27, .12); }
.input, input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%233d4440' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pine-3); box-shadow: 0 0 0 4px rgba(35, 80, 63, .14); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row-3 { grid-template-columns: 1fr 1fr; } }

/* pill choices (radio as chips) */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 15px;
  transition: all .15s; user-select: none;
}
.choice input:checked + span { background: var(--pine); border-color: var(--pine); color: var(--paper); }
.choice input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.choice:hover span { border-color: var(--pine-3); }
.choices.big .choice span { min-height: 58px; padding: 0 20px; font-size: 16px; border-radius: 14px; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { margin: 14px 0 14px; }
.dark { background: var(--pine); color: var(--paper); }
.dark .lede { color: rgba(244, 239, 230, .8); }
.dark .eyebrow { color: var(--gold); }

/* yes-even-if */
.yes-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.yes-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px;
  background: var(--pine-2); border: 1px solid rgba(244, 239, 230, .14); font-weight: 700; font-size: 17px;
}
.yes-chip b { color: var(--gold); font-weight: 900; }

/* good-condition band */
.good { background: var(--paper-2); }
.good-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.good h2 { margin: 14px 0 16px; }
.good .lede { margin: 0 0 26px; }
.good-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.good-list li { background: var(--card); border-radius: var(--radius); padding: 18px 20px 18px 56px; position: relative; color: var(--ink-2); border: 1px solid rgba(217, 208, 191, .7); }
.good-list li::before { content: "★"; position: absolute; left: 18px; top: 16px; width: 26px; height: 26px; border-radius: 8px; background: var(--pine); color: var(--gold); display: grid; place-items: center; font-size: 14px; }
.good-list b { color: var(--ink); }
@media (max-width: 860px) { .good-grid { grid-template-columns: 1fr; gap: 28px; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--card); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); position: relative; border: 1px solid rgba(217, 208, 191, .7); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  display: block; font-weight: 900; font-stretch: 115%; font-size: 54px; line-height: 1; color: var(--signal); margin-bottom: 14px;
}
.step p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* compare */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); font-size: 16px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--paper-2); vertical-align: top; }
.compare thead th { background: var(--paper-2); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.compare tr:last-child td { border-bottom: 0; }
.compare .us { background: rgba(255, 90, 31, .07); font-weight: 700; }
.compare thead .us { background: var(--signal); color: #fff; }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); }
@media (max-width: 700px) { .compare { min-width: 620px; font-size: 15px; } }

/* promise cards */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mini { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid rgba(217, 208, 191, .7); }
.mini .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; margin-bottom: 14px; color: var(--pine); }
.mini .ico svg { width: 24px; height: 24px; }
.mini p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 960px) { .cards-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards-4 { grid-template-columns: 1fr; } }

/* models strip */
.models { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.model-tile { padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid rgba(217, 208, 191, .7); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.model-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.model-tile b { display: block; font-size: 19px; font-weight: 900; font-stretch: 110%; text-transform: uppercase; }
.model-tile span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .models { grid-template-columns: 1fr 1fr; } }

/* faq */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 800; font-size: 19px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 30px; font-weight: 400; color: var(--signal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }

/* final cta */
.cta-band { background: var(--signal); color: #fff; border-radius: 28px; padding: 56px 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 12px 0 0; font-size: 19px; opacity: .92; }
.cta-band .actions { display: grid; gap: 12px; justify-items: start; }
.cta-band .btn { --bg: var(--pine); box-shadow: none; }
.cta-band .btn:hover { background: #0a1e18; }
.cta-band .callout { font-weight: 700; font-size: 18px; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 40px 24px; } }

/* footer */
.site-footer { padding: 48px 0 110px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--ink-2); }
.site-footer .legal { font-size: 12.5px; max-width: 80ch; }

/* mobile sticky CTA */
.sticky-cta {
  position: fixed; left: 12px; right: 84px; bottom: 12px; z-index: 50; display: none;
}
.sticky-cta .btn { width: 100%; box-shadow: var(--shadow-lg); }
@media (max-width: 760px) { .sticky-cta.show { display: block; } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}

/* ---------- simple pages ---------- */
.page-hero { padding: 56px 0 24px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); }
.prose { max-width: 760px; color: var(--ink-2); }
.prose h2 { color: var(--ink); font-size: 24px; margin: 36px 0 8px; }
