:root {
  --ink: #07110f;
  --ink-soft: #12201d;
  --paper: #f4f1e9;
  --paper-bright: #fbfaf6;
  --line: #d7d7cf;
  --muted: #67716d;
  --green: #13d68f;
  --green-dark: #066f4e;
  --white: #ffffff;
  --max: 1180px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button, input, select { font: inherit; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(calc(100% - 48px), var(--max));
  min-height: 88px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--green);
  color: var(--ink);
  font-weight: 900;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: .94rem; letter-spacing: -.01em; }
.brand small { margin-top: 2px; color: rgba(255,255,255,.62); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.header-link { font-size: .88rem; font-weight: 750; text-decoration: none; }

.hero {
  position: relative;
  min-height: 790px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--ink) url("assets/hero-first-car-complete.webp") center / cover no-repeat;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,14,12,.98) 0%, rgba(5,14,12,.9) 35%, rgba(5,14,12,.42) 64%, rgba(5,14,12,.08) 100%),
    linear-gradient(0deg, rgba(5,14,12,.55), transparent 42%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), var(--max));
  margin: 52px auto 0;
}
.hero-content > * { max-width: 650px; }
.eyebrow { margin: 0 0 22px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.76); font-size: .76rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 2px; background: var(--green); }
.eyebrow.dark { color: var(--green-dark); }
.hero h1 { margin: 0; max-width: 740px; font-size: clamp(3.4rem, 6.2vw, 6.6rem); line-height: .93; letter-spacing: -.07em; }
.hero-copy { margin: 28px 0 0; color: rgba(255,255,255,.78); font-size: 1.13rem; line-height: 1.7; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 22px; }
.button { border: 0; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; font-weight: 850; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: var(--ink); }
.button-dark { background: var(--ink); color: var(--white); }
.button-light { background: var(--white); color: var(--ink); }
.price-band { color: rgba(255,255,255,.64); font-size: .88rem; }
.included { margin: 32px 0 0; padding: 0; display: flex; gap: 18px 26px; flex-wrap: wrap; list-style: none; color: rgba(255,255,255,.78); font-size: .82rem; }
.included span { margin-right: 5px; color: var(--green); font-weight: 900; }
.hero-proof { position: absolute; z-index: 2; right: max(24px, calc((100vw - var(--max)) / 2)); bottom: 34px; display: flex; align-items: center; gap: 12px; max-width: 250px; padding: 14px 17px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; background: rgba(6,18,15,.72); backdrop-filter: blur(12px); font-size: .76rem; line-height: 1.45; }
.proof-icon { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--ink); font-weight: 900; }

.quiet-intro, .match-section, .result-section, .checkout-section { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.quiet-intro { padding: 112px 0 96px; }
.quiet-intro > h2, .match-heading h2, .result-copy h2, .promise h2 { margin: 0; font-size: clamp(2.6rem, 4.8vw, 5rem); line-height: 1; letter-spacing: -.06em; }
.quiet-intro > p:not(.eyebrow), .match-heading > p, .result-copy > p { max-width: 700px; margin: 24px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.72; }
.steps { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.steps article { padding: 28px 34px 12px 0; }
.steps article + article { padding-left: 34px; border-left: 1px solid var(--line); }
.steps article > span { color: var(--green-dark); font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.steps h3 { margin: 28px 0 10px; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }

.match-section { padding: 96px 0; display: grid; grid-template-columns: .78fr 1.22fr; gap: 78px; border-top: 1px solid var(--line); }
.match-section[hidden] { display: none; }
.match-heading { align-self: start; position: sticky; top: 28px; }
.match-heading h2 { font-size: clamp(2.5rem, 4vw, 4.2rem); }
.match-form { padding: 34px; border: 1px solid #cdd4d0; border-radius: 14px; background: var(--paper-bright); box-shadow: 0 20px 60px rgba(14,35,29,.07); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
label { display: grid; gap: 9px; color: #34413d; font-size: .78rem; font-weight: 800; }
label small { color: var(--muted); font-weight: 500; }
input, select { width: 100%; min-height: 48px; border: 1px solid #cfd6d2; border-radius: 7px; background: var(--white); color: var(--ink); padding: 0 13px; outline: none; }
input:focus, select:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(19,214,143,.12); }
.preference-row { margin-top: 26px; padding-top: 26px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 22px; border-top: 1px solid var(--line); }
.money-input { position: relative; }
.money-input span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money-input input { padding-left: 30px; }
.consent-row { margin-top: 24px; padding: 16px; display: flex; grid-template-columns: auto 1fr; align-items: flex-start; gap: 12px; border-radius: 8px; background: #eef3f0; font-weight: 600; line-height: 1.5; }
.consent-row input { width: 18px; min-height: 18px; margin: 2px 0 0; accent-color: var(--green-dark); }
.match-status { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.match-status span { padding: 13px 10px; background: var(--white); color: var(--muted); font-size: .68rem; text-align: center; }
.match-status strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 1rem; }
.form-footer { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.form-footer p { margin: 0; max-width: 310px; display: flex; gap: 9px; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.form-footer p span { display: grid; place-items: center; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: #dfe8e3; color: var(--green-dark); font-weight: 900; }

.result-section { padding: 50px 0 112px; }
.driver-summary { margin-bottom: 42px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #cbd7d1; border-radius: 10px; background: #eaf2ee; }
.driver-summary > div:first-child { display: grid; gap: 5px; }
.driver-summary-label { color: var(--green-dark); font-size: .66rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.driver-summary strong { font-size: .94rem; line-height: 1.45; }
.driver-summary-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.summary-action { min-height: 38px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 5px; background: var(--ink); color: var(--white); font: inherit; font-size: .74rem; font-weight: 850; cursor: pointer; }
.summary-action:hover { background: #15352d; }
.summary-action-muted { border-color: #aebdb6; background: transparent; color: var(--ink); }
.summary-action-muted:hover { background: rgba(255,255,255,.72); }
.result-copy { max-width: 760px; margin-bottom: 48px; }
.result-copy h2 { font-size: clamp(2.4rem, 4.1vw, 4.4rem); }
.car-result { overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #cdd4d0; border-radius: 16px; background: var(--paper-bright); box-shadow: 0 24px 70px rgba(14,35,29,.1); }
.car-image { position: relative; min-height: 590px; overflow: hidden; background: #c8d0cd; }
.car-image > img { width: 100%; height: 100%; min-height: 590px; display: block; object-fit: cover; object-position: center; }
.image-disclosure { position: absolute; left: 20px; bottom: 20px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; background: rgba(5,14,12,.82); color: rgba(255,255,255,.82); font-size: .66rem; font-weight: 750; backdrop-filter: blur(10px); }
.car-details { padding: 42px; }
.result-topline { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.best-match { padding: 8px 10px; border-radius: 4px; background: var(--green); color: var(--ink); font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.human-check { color: var(--green-dark); font-size: .76rem; font-weight: 850; }
.car-details h3 { margin: 28px 0 8px; font-size: 2rem; letter-spacing: -.04em; }
.car-meta { margin: 0; color: var(--muted); font-size: .86rem; }
.source-panel { margin-top: 20px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #d8dedb; border-radius: 8px; background: #f0f4f1; }
.source-panel span, .source-panel small { display: block; }
.source-panel span { color: var(--ink); font-size: .7rem; font-weight: 850; }
.source-panel small { margin-top: 3px; color: var(--muted); font-size: .64rem; }
.source-panel a, .source-link { color: var(--green-dark); font-size: .7rem; font-weight: 850; text-decoration: none; }
.source-panel a:hover, .source-link:hover { text-decoration: underline; }
.match-reasons { margin: 26px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.match-reasons span { padding: 8px 10px; border: 1px solid #d8dedb; border-radius: 999px; color: #3d4c47; font-size: .72rem; }
.complete-price { padding: 24px 0; display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.complete-price small, .complete-price strong { display: block; }
.complete-price small { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.complete-price strong { margin-top: 8px; font-size: 2.7rem; letter-spacing: -.05em; }
.complete-price ul { margin: 0; padding-left: 18px; color: #34413d; font-size: .78rem; line-height: 1.8; }
.budget-note { margin: 20px 0 26px; padding: 14px 16px; border-left: 3px solid var(--green); background: #eaf4ef; color: #365047; font-size: .78rem; line-height: 1.6; }
.other-matches { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.other-matches article { padding: 22px; border: 1px solid #cdd4d0; border-radius: 12px; background: var(--paper-bright); }
.match-thumbnail { width: calc(100% + 44px); height: 180px; margin: -22px -22px 20px; display: block; border-radius: 12px 12px 0 0; object-fit: cover; }
.other-matches article > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.other-matches article span { color: var(--green-dark); font-size: .74rem; font-weight: 900; }
.other-matches article small { color: var(--muted); }
.other-matches h3 { margin: 24px 0 8px; font-size: 1.05rem; }
.other-matches p { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.55; }
.other-matches strong { display: block; margin-top: 18px; font-size: 1.15rem; }
.match-select { margin-top: 18px; padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--green-dark); font-size: .72rem; font-weight: 850; cursor: pointer; }
.match-select:hover { color: var(--ink); }
.source-link { display: inline-block; margin: 18px 0 0 16px; }

.checkout-section { padding: 100px 0 112px; display: grid; grid-template-columns: .78fr 1.22fr; gap: 78px; border-top: 1px solid var(--line); }
.checkout-section[hidden] { display: none; }
.checkout-intro h2 { margin: 0; font-size: clamp(2.5rem, 4vw, 4.2rem); line-height: 1; letter-spacing: -.06em; }
.checkout-intro > p:not(.eyebrow) { max-width: 590px; margin: 24px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.72; }
.checkout-panel { overflow: hidden; border: 1px solid #cdd4d0; border-radius: 14px; background: var(--paper-bright); box-shadow: 0 20px 60px rgba(14,35,29,.07); }
.locked-total { padding: 30px 34px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 20px; background: var(--ink); color: var(--white); }
.locked-total span { color: rgba(255,255,255,.66); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.locked-total strong { grid-row: span 2; font-size: 3.3rem; line-height: 1; letter-spacing: -.06em; }
.locked-total small { color: rgba(255,255,255,.52); }
.checkout-includes { margin: 0; padding: 22px 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; border-bottom: 1px solid var(--line); list-style: none; color: #34413d; font-size: .78rem; }
.checkout-includes span { margin-right: 7px; color: var(--green-dark); font-weight: 900; }
.payment-options { margin: 0; padding: 30px 34px 20px; border: 0; }
.payment-options legend { margin-bottom: 16px; font-size: 1rem; font-weight: 850; }
.payment-option { margin-bottom: 10px; padding: 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; border: 1px solid #cfd6d2; border-radius: 9px; background: var(--white); cursor: pointer; }
.payment-option:has(input:checked) { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(19,214,143,.1); }
.payment-option input { width: 18px; min-height: 18px; margin: 0; accent-color: var(--green-dark); }
.payment-copy strong, .payment-copy small { display: block; }
.payment-copy strong { color: var(--ink); font-size: .84rem; }
.payment-copy small { margin-top: 4px; color: var(--muted); font-weight: 500; }
.payment-name { color: var(--ink); font-size: .78rem; font-weight: 900; }
.payment-name.klarna { padding: 6px 8px; border-radius: 4px; background: #ffb3c7; }
.payer-note { margin: 0 34px 24px; padding: 15px 17px; border-left: 3px solid var(--green); background: #eaf4ef; }
.payer-note strong { font-size: .78rem; }
.payer-note p { margin: 5px 0 0; color: #496158; font-size: .72rem; line-height: 1.55; }
.checkout-button { width: calc(100% - 68px); margin: 0 34px; }
.finance-disclosure { margin: 14px 34px 28px; color: var(--muted); font-size: .66rem; line-height: 1.55; text-align: center; }
.prototype-message { margin: 0 34px 28px; padding: 14px; border-radius: 7px; background: #eaf4ef; color: #365047; font-size: .74rem; line-height: 1.55; }

.promise { padding: 112px 24px; text-align: center; background: var(--ink); color: var(--white); }
.promise .eyebrow { justify-content: center; }
.promise p:not(.eyebrow) { margin: 24px auto 32px; color: rgba(255,255,255,.66); }
footer { padding: 32px max(24px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 30px; background: #040a09; color: var(--white); }
.footer-brand small { color: rgba(255,255,255,.46); }
footer p { margin: 0; color: rgba(255,255,255,.46); font-size: .72rem; text-align: right; }

@media (max-width: 900px) {
  .hero { min-height: 760px; background-position: 61% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,14,12,.96), rgba(5,14,12,.62) 70%, rgba(5,14,12,.25)); }
  .match-section, .checkout-section { grid-template-columns: 1fr; gap: 46px; }
  .match-heading { position: static; }
  .car-result { grid-template-columns: 1fr; }
  .car-image, .car-image > img { min-height: 420px; }
}

@media (max-width: 680px) {
  .site-header { width: min(calc(100% - 32px), var(--max)); min-height: 74px; }
  .header-link { display: none; }
  .hero { min-height: 760px; align-items: flex-end; padding-bottom: 62px; background-position: 65% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(5,14,12,.98) 10%, rgba(5,14,12,.7) 68%, rgba(5,14,12,.22)); }
  .hero-content, .quiet-intro, .match-section, .result-section, .checkout-section { width: min(calc(100% - 32px), var(--max)); }
  .hero-content { margin: 0 auto; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 4.7rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .included { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-proof { display: none; }
  .quiet-intro { padding: 82px 0 72px; }
  .steps { grid-template-columns: 1fr; }
  .steps article, .steps article + article { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps h3 { margin-top: 14px; }
  .match-section { padding: 72px 0; }
  .match-form { padding: 22px; }
  .form-grid, .preference-row { grid-template-columns: 1fr; }
  .match-status, .other-matches { grid-template-columns: 1fr; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer .button { width: 100%; }
  .result-section { padding-bottom: 80px; }
  .driver-summary { align-items: flex-start; flex-direction: column; }
  .driver-summary-actions { width: 100%; }
  .summary-action { flex: 1; }
  .car-image, .car-image > img { min-height: 300px; }
  .car-details { padding: 26px 22px; }
  .source-panel { align-items: flex-start; flex-direction: column; }
  .result-topline, .complete-price { align-items: flex-start; grid-template-columns: 1fr; }
  .result-topline { flex-direction: column; }
  .checkout-includes { grid-template-columns: 1fr; }
  .locked-total { grid-template-columns: 1fr; }
  .locked-total strong { grid-row: auto; }
  .payment-option { grid-template-columns: auto 1fr; }
  .payment-name { grid-column: 2; }
  footer { align-items: flex-start; flex-direction: column; }
  footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
