/* Public site: the "sell your car" pages. The admin portal has its own stylesheet (admin.css).
   Built for WCAG 2.2 AA: text contrast 4.5:1 or more (most text is 7:1), targets 44px or larger,
   a yellow-and-black focus ring that shows on light and dark backgrounds, and no motion when the
   visitor asks for reduced motion. */
:root {
  --ink: #14211b;
  --ink-2: #34423b;
  --muted: #4f5c55;
  --line: #e6dfd2;
  --line-strong: #857d6e;
  --cream: #fbf7ef;
  --sand: #f2eadb;
  --card: #ffffff;
  --forest: #0d3b2c;
  --forest-2: #145340;
  --green: #0a7a47;
  --green-dark: #075c35;
  --green-soft: #e3f3ea;
  --mint: #9fdcb9;
  --tangerine: #ff7a3d;
  --tangerine-dark: #b4410f;
  --tangerine-soft: #ffeadd;
  --sun: #ffc94d;
  --sky: #dcefe7;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --focus: #ffc94d;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(20, 33, 27, 0.06), 0 12px 32px rgba(20, 33, 27, 0.08);
  --shadow-lg: 0 2px 4px rgba(20, 33, 27, 0.06), 0 28px 64px rgba(13, 59, 44, 0.18);
  --ring: 0 0 0 3px var(--focus), 0 0 0 6px var(--ink);
  --font-head: 'Bricolage Grotesque', 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img, svg { max-width: 100%; }
a { color: var(--green-dark); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0 0 0.4em; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.98rem; }
.tiny { font-size: 0.88rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* One focus style everywhere: yellow inside, near-black outside, so it shows on cream, white and green. */
:focus-visible { outline: 3px solid transparent; box-shadow: var(--ring); border-radius: 8px; }
[tabindex='-1']:focus { outline: none; box-shadow: none; }

.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 14px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- icons ---------- */
.ico { display: inline-grid; place-items: center; flex: none; }
.ico svg { display: block; }

/* ---------- header / footer ---------- */
.site-header {
  background: rgba(251, 247, 239, 0.94); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30; backdrop-filter: saturate(1.4) blur(10px);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo-mark { width: 40px; height: 40px; flex: none; display: block; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.site-nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.site-nav > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; padding: 10px 16px; border-radius: 999px; }
.site-nav > a:not(.btn):hover { background: var(--sand); }
.btn-call { background: var(--green-soft); color: var(--green-dark); border-color: var(--green); }
.btn-call:hover { background: #d2ecde; }

.site-footer { background: var(--ink); color: #d8e0db; padding: 48px 0; margin-top: 88px; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-footer .logo { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; position: relative;
  min-height: 52px; border: 2px solid transparent; border-radius: 999px; padding: 12px 26px;
  font: 700 1.05rem/1.2 var(--font-body); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.btn:focus-visible { border-radius: 999px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 18px rgba(10, 122, 71, 0.28); }
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled { background: var(--sand); color: var(--muted); border: 2px dashed var(--line-strong); box-shadow: none; cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--green-dark); border-color: var(--green); }
.btn-outline:hover { background: var(--green-soft); }
.btn-ghost { background: transparent; color: var(--green-dark); padding-inline: 14px; }
.btn-ghost:hover { background: var(--green-soft); }
.btn-accent { background: var(--tangerine); color: var(--ink); box-shadow: 0 10px 24px rgba(255, 122, 61, 0.35); }
.btn-accent:hover { background: #ff9461; }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.btn-lg { min-height: 60px; padding: 16px 32px; font-size: 1.15rem; }
.btn-block { width: 100%; }
.btn [data-icon] svg { transition: transform 0.25s var(--ease); }
/* busy: a spinner replaces the arrow while we wait for the server */
.btn[aria-busy='true'] { pointer-events: none; }
.btn[aria-busy='true'] [data-icon] { display: none; }
.btn[aria-busy='true']::after {
  content: ''; width: 20px; height: 20px; flex: none; border-radius: 50%;
  border: 3px solid currentColor; border-right-color: transparent; animation: spin 1.4s linear infinite;
}

/* ---------- form controls ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span, .field-label { font-size: 1rem; font-weight: 700; color: var(--ink); }
.input, .select {
  width: 100%; min-height: 56px; font: 400 1.1rem/1.3 var(--font-body); color: var(--ink);
  background: #fff; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); padding: 14px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.input { min-height: 0; resize: vertical; }
.input::placeholder { color: #69736d; }
.input:hover, .select:hover { border-color: var(--ink-2); }
.input:focus, .select:focus { outline: 3px solid transparent; border-color: var(--ink); box-shadow: var(--ring); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%2314211b' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.select:disabled { background-color: var(--cream); color: var(--muted); cursor: not-allowed; }
.input[aria-invalid='true'] { border-color: var(--bad); }
.input.upper { text-transform: uppercase; }
.input.upper::placeholder { text-transform: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--bad); font-weight: 700; font-size: 1rem; margin: 12px 0 0; display: flex; gap: 8px; align-items: flex-start; }
.form-error:empty { margin: 0; }
.form-error:not(:empty)::before {
  content: ''; width: 22px; height: 22px; flex: none; margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b42318' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* yes / no answers */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; min-width: 80px;
  padding: 10px 20px; border: 2px solid var(--line-strong); border-radius: 999px; background: #fff;
  font-weight: 700; font-size: 1rem; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.pill:hover span { border-color: var(--ink-2); background: var(--cream); }
.pill input:checked + span { background: var(--forest); border-color: var(--forest); color: #fff; }
.pill input:checked + span::before { content: ''; width: 16px; height: 16px; background: var(--check) center / contain no-repeat; }
.pill input:focus-visible + span { box-shadow: var(--ring); }

/* trim and condition choices */
.option-cards { display: grid; gap: 12px; }
.option-card {
  position: relative; display: block; border: 2px solid var(--line); border-radius: 18px; padding: 16px 60px 16px 18px;
  background: #fff; cursor: pointer; transition: border-color 0.15s, background-color 0.15s;
}
.option-card:hover { border-color: var(--line-strong); }
.option-card input { position: absolute; opacity: 0; }
.option-card strong { display: block; font-size: 1.1rem; }
.option-card small { display: block; color: var(--muted); font-size: 0.98rem; }
.option-card::after { content: ''; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; }
.option-card:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.option-card:has(input:checked)::after { border-color: var(--green); background: var(--green) var(--check) center / 15px no-repeat; }
.option-card:has(input:focus-visible) { box-shadow: var(--ring); }

.check { display: flex; gap: 12px; align-items: center; font-size: 1.05rem; cursor: pointer; min-height: 44px; }
.check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--green); }

/* ---------- landing: hero ---------- */
.hero { background: var(--forest); color: #fff; position: relative; overflow: hidden; padding: 56px 0 150px; }
.hero::before {
  content: ''; position: absolute; width: 900px; height: 900px; right: -320px; top: -360px; pointer-events: none;
  background: radial-gradient(circle, rgba(159, 220, 185, 0.2), transparent 62%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; position: relative; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); font-weight: 700; font-size: 1rem;
}
.chip .ico { color: var(--sun); }
.hero h1 { color: #fff; font-size: clamp(2.7rem, 6.4vw, 4.7rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 20px; }
/* "cash": mint, underlined with dashes like a road lane */
.hl {
  white-space: nowrap; color: var(--mint);
  background: linear-gradient(90deg, var(--mint) 0 64%, transparent 64%) 0 96% / 0.66em 0.075em repeat-x;
}
.lede { font-size: 1.28rem; line-height: 1.55; color: #e3ece7; max-width: 560px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 14px 28px; }
.hero-points li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.hero-points .ico { width: 42px; height: 42px; border-radius: 14px; background: rgba(159, 220, 185, 0.16); color: var(--mint); }

.hero-photo { position: relative; }
.hero-photo img { display: block; width: 100%; height: auto; border-radius: 32px; background: var(--forest-2); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); }
.hero-credit { margin: 12px 4px 0; text-align: right; font-size: 0.82rem; color: #c9d8d0; }
.hero-credit a { color: #c9d8d0; }
.photo-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  border-radius: 18px; background: rgba(255, 255, 255, 0.97); color: var(--ink); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.photo-card .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--green); color: #fff; }
.photo-card strong { display: block; font-size: 1rem; line-height: 1.25; }
.photo-card small { display: block; color: var(--muted); font-size: 0.92rem; line-height: 1.3; }
.photo-card-a { left: -28px; bottom: 22px; }
.photo-card-b { right: -20px; top: -24px; }

/* ---------- landing: find your car ---------- */
.finder-section { margin-top: -104px; position: relative; z-index: 2; }
.finder { background: #fff; border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow-lg); padding: 32px; }
.mini-steps { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 0; margin: 0 0 18px; color: var(--muted); font-weight: 700; font-size: 1rem; }
.mini-steps li { display: inline-flex; align-items: center; gap: 8px; }
.mini-steps li + li::before { content: ''; width: 26px; height: 3px; border-radius: 3px; background: var(--line); }
.mini-steps b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--ink); font-size: 0.92rem; }
.mini-steps .on { color: var(--ink); }
.mini-steps .on b { background: var(--green); color: #fff; }
.finder h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); }

.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin: 6px 0 22px; background: var(--sand); border-radius: 999px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 20px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); font: 700 1.02rem var(--font-body); cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.tab:hover { background: rgba(255, 255, 255, 0.7); }
.tab[aria-selected='true'] { background: var(--forest); color: #fff; }
.tab:focus-visible { border-radius: 999px; }

.offer-row { display: grid; grid-template-columns: 2fr 1fr auto; gap: 14px; align-items: end; }
.offer-row.ymm { grid-template-columns: 0.8fr 1.2fr 1.4fr 0.9fr auto; }
.hint, .fine { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); margin: 16px 0 0; font-size: 1rem; }
.hint .ico, .fine .ico { color: var(--green); margin-top: 2px; }

/* ---------- landing: sections ---------- */
.section { padding: 96px 0 0; }
.kicker { font-weight: 800; color: var(--green-dark); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.92rem; margin: 0 0 8px; }
.section h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.steps-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.step-card:hover { box-shadow: var(--shadow); }
.step-icon { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 18px; background: var(--green-soft); color: var(--green-dark); }
.step-icon svg { width: 34px; height: 34px; }
.step-card:nth-child(2) .step-icon { background: var(--tangerine-soft); color: var(--tangerine-dark); }
.step-card:nth-child(3) .step-icon { background: #fff4d6; color: #8a5a00; }
.step-num { position: absolute; top: 18px; right: 24px; font-family: var(--font-head); font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--sand); }
.step-card h3 { font-size: 1.4rem; }
.step-card p { color: var(--ink-2); margin: 0; }

.bring { margin-top: 20px; background: var(--tangerine-soft); border-radius: var(--radius); padding: 30px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; align-items: center; }
.bring h3 { font-size: 1.5rem; }
.bring p { color: var(--ink-2); margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.check-list li { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.check-list li::before { content: ''; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--green) var(--check) center / 15px no-repeat; }

.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: 18px; margin-bottom: 12px; transition: border-color 0.2s; }
.faq details[open] { border-color: var(--green); }
.faq summary { cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 34px; height: 34px; flex: none; border-radius: 50%; transition: transform 0.3s var(--ease);
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075c35' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 22px 20px; margin: 0; }

.cta-band { margin-top: 96px; }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  background: var(--forest); color: #fff; border-radius: 32px; padding: 48px; position: relative; overflow: hidden;
}
.cta-band .wrap::after { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -260px; border-radius: 50%; background: rgba(255, 122, 61, 0.22); pointer-events: none; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 6px; }
.cta-band p { color: #e3ece7; margin: 0; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- offer flow ---------- */
.flow-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 36px 0 8px; }
.flow-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0; }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.stepper li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); font-size: 1rem; }
.stepper li + li::before { content: ''; width: 34px; height: 3px; margin: 0 10px; border-radius: 3px; background: var(--line); transition: background-color 0.4s; }
.stepper .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; border: 2px solid var(--line-strong); color: var(--ink); font-size: 0.98rem; transition: background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s; }
.stepper li.done { color: var(--ink); }
.stepper li.done .dot { background: var(--green) var(--check) center / 15px no-repeat; border-color: var(--green); color: transparent; }
.stepper li.done + li::before { background: var(--green); }
.stepper li[aria-current='step'] { color: var(--ink); }
.stepper li[aria-current='step'] .dot { background: var(--forest); border-color: var(--forest); color: #fff; box-shadow: 0 0 0 5px rgba(13, 59, 44, 0.14); }

.flow { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; padding: 20px 0 8px; align-items: start; }
.car-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; box-shadow: var(--shadow); }
.car-art {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; margin-bottom: 18px; overflow: hidden;
  border-radius: 18px; background: linear-gradient(180deg, var(--sky) 0 74%, #c9e2d8 74%);
}
.car-art svg { width: 80%; height: auto; }
.car-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-body { fill: #3d4a44; }
.car-win { fill: #e4ece8; }
.photo-credit { font-size: 0.85rem; color: var(--muted); margin: -8px 0 14px; }
.photo-credit a { color: var(--muted); }
.car-card h2 { font-size: 1.6rem; }
.car-specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 1rem; color: var(--ink-2); }
.car-specs dt { font-weight: 700; color: var(--ink); }
.car-specs dd { margin: 0; }

.panel { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; transition: border-color 0.25s, box-shadow 0.25s; }
.panel:has(.panel-head[aria-expanded='true']) { border-color: var(--green); box-shadow: var(--shadow); }
.panel-title { margin: 0; font: inherit; letter-spacing: 0; }
.panel-head { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 80px; padding: 18px 24px; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.panel-head:focus-visible { box-shadow: inset 0 0 0 3px var(--focus), inset 0 0 0 6px var(--ink); border-radius: 20px; }
.panel-num { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; background: var(--sand); color: var(--ink); transition: background-color 0.3s, color 0.3s; }
.panel-head[aria-expanded='true'] .panel-num { background: var(--forest); color: #fff; }
.panel-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.panel-name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.01em; }
.panel-head .sum { font-size: 1rem; color: var(--muted); }
.panel-head .sum:empty { display: none; }
.state { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.state svg { display: none; width: 18px; height: 18px; }
.panel.done .state { background: var(--green); color: #fff; }
.panel.done .state svg { display: block; }
.panel.locked .panel-head { cursor: not-allowed; }
.panel.locked .panel-name { color: var(--muted); }
.panel.locked .state {
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f5c55' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.panel-body { padding: 0 24px 28px; }
.panel-body h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 800; letter-spacing: 0; color: var(--green-dark); margin: 26px 0 12px; }
.panel-body h3:first-child { margin-top: 4px; }
.miles-read { margin: 8px 0 0; color: var(--muted); font-size: 0.98rem; }
.miles-read.is-set { color: var(--green-dark); font-weight: 700; }
.q-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 26px 0 10px; }
.panel-body .q-head h3 { margin: 0; }
.q-count { font-weight: 700; color: var(--muted); font-size: 1rem; }
.q-bar { height: 8px; margin-bottom: 16px; border-radius: 8px; background: var(--sand); overflow: hidden; }
.q-bar span { display: block; width: 0; height: 100%; border-radius: 8px; background: var(--green); transition: width 0.3s var(--ease); }
.all-good { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 6px; padding: 16px; border-radius: 16px; background: var(--green-soft); }
.all-good p { flex: 1 1 220px; margin: 0; color: var(--ink-2); }
.question { padding: 18px 0; border-top: 1px solid var(--line); }
.question p { font-weight: 700; font-size: 1.08rem; margin: 0 0 12px; }
.question.missing { border-top-color: transparent; border-radius: 16px; padding: 16px; margin: 4px 0; background: var(--bad-soft); box-shadow: inset 5px 0 0 var(--bad); }
.question.missing p { color: var(--bad); display: flex; gap: 8px; }
.question.missing p::before { content: 'Please answer:'; font-weight: 800; }
.question.missing .pill span { border-color: var(--bad); }
.subchecks { margin: 14px 0 0 6px; padding-left: 18px; border-left: 3px solid var(--green-soft); display: grid; gap: 4px; }
.subchecks .field-label { font-weight: 700; color: var(--muted); }
.consent { font-size: 0.92rem; color: var(--muted); margin-top: 14px; }
.cta-bar { margin-top: 8px; }

/* ---------- working on your offer ---------- */
.loading { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.loading-box { width: min(520px, 100%); }
.loader-ring {
  --p: 0; width: 236px; height: 236px; margin: 0 auto 28px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--sand) 0); transition: --p 2.2s cubic-bezier(0.3, 0.6, 0.3, 1);
}
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
.car-bubble { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(180deg, var(--sky) 0 70%, #c9e2d8 70%); border: 6px solid #fff; }
.car-bubble svg { width: 150px; }
.car-bubble img { width: 100%; height: 100%; object-fit: cover; }
.loading h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.load-steps { list-style: none; padding: 0; margin: 22px auto 0; display: grid; gap: 12px; text-align: left; width: fit-content; }
.load-steps li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--muted); }
.load-steps li::before { content: ''; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 3px solid var(--line-strong); }
.load-steps li.active, .load-steps li.done { color: var(--ink); }
.load-steps li.active::before { border-color: var(--green); border-right-color: transparent; animation: spin 1.4s linear infinite; }
.load-steps li.done::before { border-color: var(--green); background: var(--green) var(--check) center / 14px no-repeat; }
.tip { display: flex; gap: 12px; align-items: flex-start; margin: 28px auto 0; padding: 16px 20px; border-radius: 18px; background: var(--green-soft); text-align: left; }
.tip .ico { color: var(--green-dark); margin-top: 3px; }

/* ---------- the offer ---------- */
.result { padding: 40px 0 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px; align-items: start; }
.ticket { background: #fff; border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow-lg); overflow: hidden; }
.ticket-top { position: relative; background: var(--forest); color: #fff; padding: 32px 32px 44px; overflow: hidden; }
.ticket-top::before { content: ''; position: absolute; width: 320px; height: 320px; right: -110px; top: -150px; border-radius: 50%; background: rgba(159, 220, 185, 0.16); }
/* torn-ticket edge */
.ticket-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 14px; background: radial-gradient(circle at 12px 14px, #fff 7px, transparent 7.5px) 0 0 / 24px 14px repeat-x; }
.eyebrow { position: relative; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.92rem; font-weight: 800; color: var(--mint); margin: 0 0 8px; }
.big-offer { position: relative; font-family: var(--font-head); font-size: clamp(3.4rem, 10vw, 5.6rem); font-weight: 800; color: #fff; letter-spacing: -0.04em; line-height: 1; margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.ticket-top h1 { position: relative; color: #fff; font-size: clamp(2rem, 4.6vw, 3rem); }
.ticket-top .for { position: relative; color: #e3ece7; font-size: 1.15rem; margin: 0; }
.ticket-body { padding: 26px 32px 32px; }
.ticket-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.ticket-meta div { background: var(--cream); border-radius: 16px; padding: 12px 16px; }
.ticket-meta dt { font-size: 0.92rem; color: var(--muted); font-weight: 700; }
.ticket-meta dd { margin: 0; font-weight: 800; font-size: 1.1rem; }
.ticks { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.ticks svg { width: 32px; height: 32px; padding: 7px; flex: none; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); }
.note { background: var(--cream); border-radius: 16px; padding: 16px 18px; font-size: 1rem; color: var(--ink-2); }
.note.is-warn { background: #fff3df; color: #6b3500; border-left: 5px solid #c26a00; margin: 0 0 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.schedule { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 28px; box-shadow: var(--shadow); }
.schedule h2 { font-size: 1.7rem; }
.schedule form { display: grid; gap: 16px; }
.windows { border: 0; padding: 0; margin: 0; min-width: 0; }
.windows legend { padding: 0; margin-bottom: 8px; }
.win-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.win { position: relative; display: grid; justify-items: center; gap: 2px; padding: 14px 6px; text-align: center; border: 2px solid var(--line); border-radius: 18px; background: #fff; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.win:hover { border-color: var(--line-strong); }
.win input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.win .ico { color: var(--tangerine-dark); margin-bottom: 4px; }
.win .ico svg { width: 28px; height: 28px; }
.win strong { font-size: 1rem; }
.win small { font-size: 0.92rem; color: var(--muted); }
.win:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.win:has(input:checked)::after { content: ''; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--green) var(--check) center / 11px no-repeat; }
.win:has(input:focus-visible) { box-shadow: var(--ring); }
.confirm { text-align: center; padding: 12px 0; }
.ok { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 0 0 12px var(--green-soft); }
.ok svg { width: 46px; height: 46px; }
.confirm h2 { font-size: 1.9rem; }
.confirm-actions { justify-content: center; margin-top: 8px; }

/* seller photos (inside the offer card, right under the offer) */
.photo-up { margin: 2px 0 18px; padding: 18px; border: 2px solid var(--green); border-radius: 20px; background: var(--green-soft); }
.photo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.photo-up h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.25rem; }
.photo-up h2 svg { width: 26px; height: 26px; flex: none; color: var(--green-dark); }
.photo-count { font-weight: 800; font-size: 0.98rem; color: var(--green-dark); }
.photo-bar { height: 6px; margin: 10px 0; overflow: hidden; border-radius: 6px; background: #fff; }
.photo-bar span { display: block; height: 100%; border-radius: 6px; background: var(--green); transition: width 0.3s var(--ease); }
.photo-up #photos-help { margin: 0 0 12px; color: var(--ink-2); }
.slots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.slot { position: relative; }
.slot-box { display: grid; justify-items: center; align-content: start; gap: 2px; height: 100%; padding: 8px 4px 10px; text-align: center; border: 2px dashed var(--line-strong); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.slot-box:hover { border-color: var(--green); }
.slot-box:focus-within { box-shadow: var(--ring); }
.slot-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.slot-pic { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: var(--cream); color: var(--green-dark); }
.slot-pic svg { width: 80%; height: auto; }
.slot-pic img { width: 100%; height: 100%; object-fit: cover; }
.slot-name { font-weight: 800; font-size: 0.88rem; line-height: 1.2; }
.slot-state { font-size: 0.85rem; color: var(--muted); }
.slot.has-photo .slot-box { border-style: solid; border-color: var(--green); }
.slot.has-photo .slot-state { color: var(--green-dark); font-weight: 700; }
.slot.is-busy .slot-box { opacity: 0.7; cursor: progress; }
.slot-remove { position: absolute; top: -8px; right: -8px; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--bad); color: #fff; font: 800 1.1rem/1 var(--font-body); cursor: pointer; }
.slot-remove:focus-visible { border-radius: 50%; }
.photo-status { margin: 10px 0 0; min-height: 1.3em; font-weight: 700; color: var(--green-dark); }
.photo-status.is-error { color: var(--bad); }

/* the offer link box (offer page and "You're booked") */
.offer-link { margin-top: 22px; padding: 18px; border: 2px dashed var(--line-strong); border-radius: 18px; background: var(--cream); text-align: left; }
.offer-link p { margin: 0 0 8px; }
.link-row { display: flex; gap: 10px; }
.link-row .input { flex: 1; min-width: 0; min-height: 52px; font-size: 0.95rem; background: #fff; }
.offer-link .copy-status { margin: 10px 0 0; min-height: 1.4em; color: var(--green-dark); font-weight: 700; }


/* ---------- keyword pages (/sell-my-car/ …, rendered by api/lib/seo.php) ---------- */
.page-hero { padding: 40px 0 64px; }
.page-hero h1 { max-width: 820px; }
.page-hero .lede { max-width: 700px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 20px; font-size: 1rem; color: #e3ece7; }
.crumbs li + li::before { content: '›'; margin-right: 8px; color: var(--mint); }
.crumbs a { color: #fff; }
.btn-light { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-light:hover { background: rgba(255, 255, 255, 0.16); }
.page-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; padding-top: 56px; align-items: start; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.prose section + section { margin-top: 44px; }
.prose p { color: var(--ink-2); }
.prose .check-list { grid-template-columns: 1fr; margin-top: 8px; }
.side-cta { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.side-cta h2 { font-size: 1.6rem; }
.side-cta .ticks { margin: 16px 0 22px; }
.related { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: block; height: 100%; padding: 22px; border: 2px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.related a:hover { border-color: var(--green); box-shadow: var(--shadow); }
.related strong { display: block; font-family: var(--font-head); font-size: 1.25rem; line-height: 1.2; margin-bottom: 6px; }
.related span { color: var(--muted); font-size: 1rem; }
.site-footer h2 { color: #fff; font-family: var(--font-body); font-size: 1.05rem; letter-spacing: 0; margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-links a { display: inline-block; padding: 4px 0; }

/* ---------- motion (only for visitors who have not asked for less) ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop { 0% { transform: scale(0.92); } 60% { transform: scale(1.04); } 100% { transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.94) translateY(12px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes marker { from { background-position: -2em 96%; } }
@keyframes photo-in { from { opacity: 0; transform: scale(1.03); } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy > * { animation: rise 0.7s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-photo img { animation: photo-in 1.1s var(--ease) 0.1s both; }
  .photo-card-a { animation: rise 0.7s var(--ease) 0.6s both; }
  .photo-card-b { animation: rise 0.7s var(--ease) 0.8s both; }
  .hl { animation: marker 0.8s var(--ease) 0.6s both; }
  .finder { animation: rise 0.8s var(--ease) 0.3s both; }

  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .steps-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
  .steps-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
  .step-card:hover { transform: translateY(-4px); }

  .btn:not(:disabled):hover { transform: translateY(-2px); }
  .btn:not(:disabled):active { transform: translateY(0) scale(0.98); }
  .btn:not(:disabled):hover [data-icon='arrow'] svg { transform: translateX(4px); }
  .pill input:checked + span, .option-card:has(input:checked), .win:has(input:checked) { animation: pop 0.3s var(--ease); }

  .view-in { animation: rise 0.5s var(--ease) both; }
  .panel-body:not([hidden]) { animation: rise 0.4s var(--ease) both; }
  .car-art img { animation: pop-in 0.5s var(--ease) both; }
  .question.missing { animation: pop 0.35s var(--ease); }

  .load-steps li.done::before { animation: pop 0.35s var(--ease); }
  .ticket { animation: pop-in 0.6s var(--ease) both; }
  .schedule { animation: rise 0.6s var(--ease) 0.15s both; }
  .confirm:not([hidden]) .ok { animation: pop-in 0.5s var(--ease) both; }
  .confirm:not([hidden]) .ok path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.45s ease 0.3s forwards; }
}
@media (prefers-reduced-motion: reduce) {
  .loader-ring { transition: none; }
}

/* Windows high-contrast mode: colors are replaced, so selected states also get an outline. */
@media (forced-colors: active) {
  :focus-visible, .input:focus, .select:focus { outline: 3px solid Highlight; outline-offset: 2px; }
  .pill input:checked + span, .tab[aria-selected='true'], .option-card:has(input:checked), .win:has(input:checked) { outline: 3px solid Highlight; outline-offset: 2px; }
  .btn { border-color: ButtonText; }
  .hl { background: none; text-decoration: underline; }
}
@media print {
  .js .reveal { opacity: 1; transform: none; }
  .site-header { position: static; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .offer-row.ymm { grid-template-columns: 1fr 1fr; }
  .offer-row.ymm .btn { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { width: min(560px, 100%); margin-inline: auto; }
  .photo-card-a { left: 12px; }
  .photo-card-b { right: 12px; }
  .flow, .result, .faq, .bring, .page-body, .related { grid-template-columns: 1fr; }
  .car-card, .side-cta { position: static; }
  .steps-grid { grid-template-columns: 1fr; }
  .site-nav > a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .site-header .wrap { min-height: 68px; }
  .site-nav [data-phone] { display: none; }
  .site-nav .btn-call { width: 48px; height: 48px; min-height: 48px; padding: 0; }
  .hero { padding: 28px 0 120px; }
  .lede { font-size: 1.15rem; }
  .hero-points { grid-template-columns: 1fr 1fr; gap: 12px 14px; font-size: 1rem; }
  .hero-points li { gap: 10px; }
  .hero-points .ico { width: 36px; height: 36px; border-radius: 12px; }
  .hero-photo img { border-radius: 24px; }
  .photo-card { display: none; }
  .finder { padding: 22px 18px; border-radius: 24px; }
  .tabs { display: flex; }
  .tab { flex: 1 1 auto; justify-content: center; padding-inline: 12px; }
  .offer-row, .offer-row.ymm { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .section { padding-top: 72px; }
  .cta-band .wrap { padding: 32px 22px; border-radius: 26px; }
  .stepper li + li::before { width: 16px; margin: 0 6px; }
  .stepper li:not([aria-current='step']) .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .question .pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .question .pill span { width: 100%; min-height: 52px; }
  .all-good .btn { width: 100%; white-space: normal; }
  .panel-head { padding: 16px; gap: 12px; }
  .panel-body { padding: 0 16px 22px; }
  .ticket-top { padding: 26px 20px 40px; }
  .ticket-body { padding: 22px 20px 24px; }
  .ticket-meta { grid-template-columns: 1fr; }
  .schedule { padding: 22px 18px; border-radius: 24px; }
  .btn-row .btn { flex: 1 1 100%; }
  .link-row { flex-direction: column; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .photo-up { padding: 14px; }
}
