/* ============================================================================
   AutoPal 2026 redesign — PAGES
   ----------------------------------------------------------------------------
   The ChatGPT Sites draft's layout and elements, ported onto our pages. Loaded
   after css/rd-chrome.css (palette and type live there). Class names the
   deploy-time truth guard reads (deal-card, deal-price, brand-card, vehicle-card,
   vehicle-price, spec-tag, trim-card, trim-payment, summary-price, …) are kept
   on purpose: the guard checks the shipped HTML by them.
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body.rd { margin: 0; background: var(--rd-paper); color: var(--rd-ink); font: 16px/1.6 var(--rd-font); -webkit-font-smoothing: antialiased; }
.rd :where(h1, h2, h3, h4, p) { margin: 0; }
.rd :where(h1, h2, h3) { font-family: var(--rd-display); font-weight: 500; letter-spacing: -.05em; line-height: 1.1; color: var(--rd-ink); }
.rd h1 { font-size: clamp(44px, 6.4vw, 96px); }
.rd h2 { font-size: clamp(34px, 4.2vw, 62px); }
.rd h3 { font-size: 26px; }
:where(.rd) :where(p) { color: var(--rd-muted); }
.rd img { display: block; max-width: 100%; }
:where(.rd) :where(a) { color: inherit; text-decoration: none; }
:where(.rd) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.rd :where(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid var(--rd-brass); outline-offset: 4px; }
.shell { width: var(--rd-shell); margin: 0 auto; }
.section { padding: 100px 0; }

.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--rd-brass-text); }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.text-link { display: inline-flex; gap: 28px; align-items: center; border-bottom: 1px solid #8d948b; padding: 9px 0; font-size: 14px; font-weight: 600; transition: gap .3s; }
.text-link:hover { gap: 38px; }
.fine { font-size: 13px; line-height: 1.75; color: var(--rd-muted); margin-top: 22px; max-width: 860px; }
.pill { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--rd-line-strong); border-radius: 2px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.section-head p { max-width: 380px; font-size: 16px; }
.section-head h2 { max-width: 700px; }
.section-center { text-align: center; margin-top: 36px; }
.notice { padding: 15px 18px; background: #edf0e6; border: 1px solid #dce2d2; font-size: 14px; color: #4f5d4b; line-height: 1.7; border-radius: 3px; margin: 20px 0; }

/* reveal on scroll — only once the script has said it is running */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---- hero: a looping film over the coastal still ------------------------ */
.hero { height: min(950px, 100svh); min-height: 720px; background: #1e2929; position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.hero-actions .rd-btn.hero-apply { background: transparent; border-color: #ffffffa0; color: #fff; }
.hero-actions .rd-btn.hero-apply:hover { background: #ffffff18; }
.hero-media img { animation: hero-in 2.5s ease-out both; }
.hero-media video { opacity: 0; transition: opacity 1.2s; }
.hero-media video.playing { opacity: 1; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0d1b1ed4, transparent 75%), linear-gradient(0deg, #101d20c9, transparent 30%); z-index: -1; }
.hero-content { padding-top: clamp(160px, 18vh, 210px); position: relative; }
.hero .eyebrow { color: #e3d3b4; font-size: 12px; margin-bottom: 28px; }
.hero-badge i { font-style: normal; }
.hero h1 { color: #fff; max-width: 900px; line-height: 1.06; font-size: clamp(54px, 6.6vw, 104px); letter-spacing: -.06em; }
.hero h1 em { font-style: normal; color: #e0cfae; display: block; }
.hero-copy { color: #d5dbd7 !important; max-width: 420px; font-size: 17px; line-height: 1.75; margin-top: 26px !important; }
.hero-actions { display: flex; gap: 28px; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.hero-actions .text-link { color: #fff; border-color: #ffffff80; }
.hero-bottom { position: absolute; bottom: 30px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; font-size: 13px; }
.rating { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.stars { color: #d6b886; letter-spacing: 2px; }
.rating .sep { opacity: .5; }
.scroll-cue { display: flex; gap: 14px; align-items: center; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.scroll-cue span { font-size: 20px; animation: nudge 2s infinite; }
/* the small "real AutoPal delivery" film in the corner */
.film-button { display: flex; align-items: center; gap: 14px; padding: 8px 16px 8px 8px; background: #ffffff12; color: #fff; border: 1px solid #ffffff60; border-radius: 6px; backdrop-filter: blur(14px); cursor: pointer; font-size: 13px; text-align: left; }
.hero-films { display: flex; align-items: center; gap: 10px; }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; white-space: nowrap; padding: 0 14px; background: #0b1a1d99; color: #fff; border: 1px solid #ffffff60; border-radius: 6px; font: 600 13px var(--rd-font); cursor: pointer; backdrop-filter: blur(12px); }
.motion-toggle:hover { background: #0b1a1dcc; }
.motion-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.motion-toggle[hidden] { display: none; }
@media (max-width: 860px) { .motion-toggle { width: 44px; padding: 0; justify-content: center; } .motion-toggle .motion-text { display: none; } } /* named by aria-label */
.motion-toggle .motion-icon { font-size: 11px; letter-spacing: -1px; }
.motion-paused .scroll-cue span { animation: none; }
.film-button video { width: 120px; height: 68px; object-fit: cover; border-radius: 3px; display: block; background: #0d1b1e; }
.film-button b { display: block; font-weight: 600; }
.film-button small { display: block; color: #d5dbd7; font-size: 12px; }

/* ---- benefit strip ------------------------------------------------------- */
.benefit-strip { border-bottom: 1px solid var(--rd-line); background: var(--rd-paper-alt); }
.benefit-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding: 30px 0; gap: 30px; }
.benefit { display: flex; gap: 16px; align-items: center; }
.benefit svg { width: 24px; min-width: 24px; color: var(--rd-brass); }
.benefit b { font-size: 15px; font-weight: 600; display: block; }
.benefit span { color: var(--rd-muted); font-size: 13px; }

/* ---- vehicle cards (home + board) ---------------------------------------- */
.deals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.deal-card, .vehicle-card { position: relative; display: block; border: 1px solid var(--rd-line); background: var(--rd-paper-alt); border-radius: 5px; overflow: hidden; transition: transform .4s, box-shadow .4s; }
.deal-card:hover, .vehicle-card:hover { transform: translateY(-5px); box-shadow: 0 18px 35px #17211f14; }
/* The courtyard photographs (2026-10-16) are the whole card picture: shown at their own 4:3, edge
   to edge, nothing drawn under the car (the scene carries its shadow) and no hover zoom (the scene
   stays still). The flat tone shows only until the photograph arrives. */
.car-media { aspect-ratio: 4 / 3; position: relative; display: flex; align-items: center; justify-content: center; background: #e8e1d4; }
.car-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.car-media picture { width: 100%; height: 100%; display: block; } /* the WebP <picture> around a card's car takes the img's box */
.car-media .no-image { color: var(--rd-muted); font-size: 14px; }
.car-top { position: absolute; z-index: 1; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
/* Year (and deal) badges stay HTML over the photograph: opaque ivory, dark green text. */
.car-top > span { background: #fffdf5; color: #253f2e; border: 1px solid #d9ddce; border-radius: 7px; padding: 5px 10px; line-height: 1.3; box-shadow: 0 2px 8px #00000012; }
.car-top .deal-badge { color: var(--rd-brass-text); }
.card-info { padding: 22px; border-top: 1px solid var(--rd-line); background: #f9f9f4; }
.card-brand { font-size: 12px; font-weight: 600; color: var(--rd-muted); text-transform: uppercase; letter-spacing: .12em; }
.card-title { font: 500 25px/1.15 var(--rd-display); letter-spacing: -.05em; margin-top: 7px; color: var(--rd-ink); }
.car-price-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 22px; gap: 12px; }
.deal-price, .vehicle-price { font: 500 28px var(--rd-display); letter-spacing: -1px; color: var(--rd-ink); }
.deal-price span, .vehicle-price span { font: 14px var(--rd-font); letter-spacing: 0; color: var(--rd-muted); }
.car-terms { font-size: 13px; color: var(--rd-muted); margin-top: 6px; }
.spec-tag { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rd-muted); border: 1px solid var(--rd-line-strong); border-radius: 2px; padding: 3px 8px; }
.round-arrow { width: 38px; height: 38px; min-width: 38px; border: 1px solid #b4bab0; border-radius: 50%; display: grid; place-items: center; font-size: 18px; transition: background .2s, color .2s; }
.deal-card:hover .round-arrow, .vehicle-card:hover .round-arrow { background: var(--rd-ink); color: #fff; }
.deals-empty { grid-column: 1 / -1; text-align: center; padding: 48px 0; color: var(--rd-muted); font-size: 16px; }

/* ---- brand strip: the wordmark name with the real logo above it ---------- */
.brand-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; padding: 34px 0 0; margin-top: 50px; border-top: 1px solid var(--rd-line); }
.brand-row-label { grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rd-muted); margin-bottom: 6px; }
.brand-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 14px; border: 1px solid transparent; border-radius: 4px; text-align: center; transition: border-color .2s, background .2s; }
.brand-card:hover { border-color: var(--rd-line); background: var(--rd-card); }
.brand-logo { height: 38px; display: flex; align-items: center; justify-content: center; }
.brand-logo img { height: 38px; width: 76px; object-fit: contain; transition: transform .25s; }
.brand-card:hover .brand-logo img { transform: scale(1.06); }
.brand-name { font: 500 17px var(--rd-display); letter-spacing: -.03em; color: var(--rd-ink); white-space: nowrap; }
.brand-count { font-size: 12px; color: var(--rd-muted); }
.brand-card.stale .brand-name { color: var(--rd-muted); }

/* ---- the scroll-driven drive (How It Works) ------------------------------ */
.motion-story { height: 360vh; position: relative; background: #162221; color: #fff; }
.story-stage { height: 100svh; min-height: 650px; position: sticky; top: 0; overflow: hidden; }
.story-stage canvas, .story-stage .story-fallback { position: absolute; width: 100%; height: 100%; object-fit: cover; inset: 0; }
.story-stage canvas { opacity: 0; transition: opacity .8s ease; } /* over the poster, once it has a frame (js/site.js adds .ready) */
.story-stage canvas.ready { opacity: 1; }
.story-stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #07140ee6, #07140e55 70%), linear-gradient(0deg, #07140ed0, transparent 50%); pointer-events: none; }
.story-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.story-content h2 { color: #fff; font-size: clamp(44px, 5.6vw, 86px); max-width: 720px; letter-spacing: -.055em; }
.story-content p { color: #d1d8d0; max-width: 380px; margin: 24px 0 30px; font-size: 17px; }
.story-content .eyebrow { color: var(--rd-sand); }
.story-numbers { position: absolute; bottom: 56px; left: 0; right: 0; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.story-step { padding-top: 16px; border-top: 1px solid #ffffff45; color: #c3cdc6; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.story-step.active { color: #fff; border-color: var(--rd-sand); }
.story-step span { margin-right: 12px; color: var(--rd-sand); }
.story-progress { position: absolute; bottom: 0; height: 3px; background: var(--rd-sand); left: 0; width: 0; z-index: 4; }
.motion-control { position: absolute; right: 56px; top: 110px; z-index: 5; color: #fff; border: 1px solid #ffffff70; border-radius: 30px; background: #11201c70; padding: 8px 15px; font-size: 13px; cursor: pointer; }
.motion-control:disabled { cursor: default; opacity: .8; }

/* ---- manifesto: the AutoPal advantage ------------------------------------ */
.manifesto { display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; }
.manifesto .intro { font-size: 21px; letter-spacing: -.02em; color: var(--rd-ink); line-height: 1.6; margin-bottom: 30px; }
.advantage { display: grid; grid-template-columns: 44px 1fr; padding: 24px 0; border-top: 1px solid var(--rd-line); gap: 15px; }
.advantage .num { font-size: 13px; font-weight: 600; color: var(--rd-brass-text); }
.advantage h3 { font-size: 21px; margin-bottom: 8px; }
.advantage p { font-size: 15px; max-width: 470px; }

/* ---- portal promo -------------------------------------------------------- */
.portal-promo { background: #e6e9e0; overflow: hidden; }
.portal-promo-inner { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 90px; padding-top: 90px; }
.portal-promo h2 { font-size: clamp(38px, 3.8vw, 55px); }
.portal-promo p { font-size: 16px; max-width: 380px; margin: 24px 0; }
.portal-preview { background: #f9f9f4; border: 1px solid #ccd2c6; border-radius: 12px 12px 0 0; padding: 30px 35px 35px; box-shadow: 0 25px 70px #33413314; transform: rotate(-2deg); transform-origin: bottom left; margin-bottom: -20px; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rd-line); padding-bottom: 16px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--rd-muted); }
.preview-bar img { height: 24px; width: auto; }
.preview-title { font: 500 27px var(--rd-display); letter-spacing: -1px; margin: 26px 0 18px; }
.preview-car { display: grid; grid-template-columns: 1fr 1fr; background: #edefe5; align-items: center; border-radius: 5px; padding: 0 0 0 22px; }
.preview-car img { height: 140px; width: 100%; object-fit: contain; }
.preview-car h3 { font-size: 22px; margin: 8px 0 10px; }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rd-line); padding-top: 18px; margin-top: 15px; font-size: 13px; color: var(--rd-muted); gap: 10px; }
.preview-stats b { display: block; font-size: 17px; font-weight: 500; color: var(--rd-ink); }

/* ---- reviews --------------------------------------------------------------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px; }
.review { border-top: 1px solid var(--rd-line); padding-top: 26px; }
.review blockquote { margin: 22px 0 28px; font-size: 18px; line-height: 1.75; color: var(--rd-ink); letter-spacing: -.015em; }
.review .author { font-size: 15px; font-weight: 600; }
.review .author > div > span { color: var(--rd-muted); font-size: 13px; font-weight: 400; display: block; margin-top: 3px; }
.review .stars { color: #8a6526; }

/* ---- FAQ ---------------------------------------------------------------- */
.faq-band { background: var(--rd-paper-alt); }
.faq { display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; }
.faq details { border-top: 1px solid #ced2c8; }
.faq details:last-child { border-bottom: 1px solid #ced2c8; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 17px; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 5px; font-size: 22px; top: 17px; }
.faq details[open] summary::after { content: '−'; }
.faq details p { font-size: 15px; padding: 0 30px 24px 0; }

/* ---- closing band --------------------------------------------------------- */
.closing { background: var(--rd-ink); color: #fff; }
.closing-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 80px 0; }
.closing h2 { color: #fff; max-width: 800px; }
.closing h2 span { color: var(--rd-sand); }
.closing p { color: #c9d1cb; margin-top: 18px; font-size: 17px; }
.closing-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.closing .rd-btn.outline { color: #fff; border-color: #ffffff80; }
.closing .rd-btn.outline:hover { background: #ffffff14; }

/* ---- page intro (inner pages) -------------------------------------------- */
.page-intro { padding: 70px 0 44px; }
.page-intro h1 { font-size: clamp(46px, 5.4vw, 74px); }
.page-intro p { max-width: 560px; margin-top: 22px; font-size: 17px; }

/* ---- board ------------------------------------------------------------- */
.inventory { padding-bottom: 100px; }
.inventory-layout { display: grid; grid-template-columns: 240px 1fr; gap: 45px; }
.filter-panel { position: sticky; top: 100px; align-self: start; }
.filter-panel h3 { font: 500 20px var(--rd-display); letter-spacing: -.03em; margin-bottom: 22px; }
.field { display: block; margin-bottom: 20px; }
.field > span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; color: var(--rd-ink); }
.field input, .field select { width: 100%; min-height: 48px; background: #f9f9f4; border: 1px solid #c9cec1; border-radius: 3px; padding: 11px 13px; color: var(--rd-ink); font-size: 15px; }
.filter-reset { border: 0; border-bottom: 1px solid var(--rd-line-strong); background: transparent; font-size: 14px; padding: 4px 0; cursor: pointer; }
.inventory-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; font-size: 14px; gap: 15px; color: var(--rd-muted); }
.inventory-toolbar label { display: flex; align-items: center; gap: 8px; }
.inventory-toolbar select { border: 1px solid var(--rd-line); background: transparent; color: var(--rd-ink); font-size: 14px; padding: 6px 8px; border-radius: 3px; }
.inventory .deals-grid { gap: 18px; }
.inventory .card-info { padding: 18px; }
.inventory .card-title { font-size: 22px; }
.no-results { grid-column: 1 / -1; padding: 70px 30px; text-align: center; border: 1px solid var(--rd-line); }
.no-results h3 { margin-bottom: 14px; }
.filter-toggle-btn, .apply-filters-btn { display: none; }

/* ---- model page ---------------------------------------------------------- */
.breadcrumb { font-size: 14px; display: flex; gap: 12px; color: var(--rd-muted); padding: 26px 0; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--rd-ink); text-decoration: underline; }
.main-container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; padding-bottom: 70px; }
.car-section { align-self: start; position: sticky; top: 96px; }
.car-header { margin-bottom: 0; }
.car-visual { background: #e8e1d4; border-radius: 5px; aspect-ratio: 4 / 3; position: relative; overflow: hidden; } /* the courtyard photograph, edge to edge at its own 4:3 */
.car-visual .eyebrow { position: absolute; top: 16px; left: 16px; z-index: 2; margin: 0; background: #fffdf5; color: #253f2e; border: 1px solid #d9ddce; border-radius: 7px; padding: 6px 12px; box-shadow: 0 2px 8px #00000012; }
.car-visual .eyebrow::before { display: none; }
.car-visual .main-image-container, .mobile-hero .main-image-container { height: 100%; align-items: center; }
.car-visual .main-image, .mobile-hero .main-image { width: 100%; height: 100%; max-height: none; object-fit: contain; display: block; }
.main-image-container { width: 100%; display: flex; justify-content: center; }
.main-image { width: 95%; max-height: 440px; object-fit: contain; height: auto; }
.main-image-container picture { display: contents; } /* the build's WebP <picture>: the img stays the flex item, so its box (width + the width/height ratio) is reserved before it loads */
.car-badge { color: var(--rd-brass-text); font-size: 12px; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.car-badge::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.car-badge i { display: none; }
.car-year { font-size: 14px; color: var(--rd-muted); margin-bottom: 4px; }
.car-title { font-size: clamp(40px, 4vw, 56px) !important; line-height: 1.12 !important; }
.selector-section .selector-header { margin: 18px 0 26px; }
.selector-header h2 { font-size: 22px !important; letter-spacing: -.03em !important; }
.selector-header p { font-size: 15px; margin-top: 6px !important; }
.mobile-hero { display: none; }
.options-label { font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; margin: 22px 0 10px; color: var(--rd-ink); }
.options-label .step { color: var(--rd-brass-text); margin-right: 8px; }
.trim-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trim-card { border: 1px solid #c9cec1; background: transparent; padding: 14px 15px; border-radius: 3px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, background .2s; }
.trim-card:hover { border-color: var(--rd-ink); }
.trim-card.selected { border-color: var(--rd-ink); background: #e8ece2; box-shadow: inset 0 0 0 1px var(--rd-ink); }
.trim-card.term-unavailable { border-style: dashed; border-color: var(--rd-muted); } /* offered on another term: said in words ("39 mo only") and by the dashed edge, never by fading — it is still a live control */
.trim-card.term-unavailable .trim-payment { font: 500 14px var(--rd-font); letter-spacing: 0; color: var(--rd-muted); }
.trim-left { display: flex; align-items: center; gap: 9px; }
.trim-radio { width: 14px; height: 14px; min-width: 14px; border: 1px solid #8d948b; border-radius: 50%; }
.trim-card.selected .trim-radio { border: 4px solid var(--rd-ink); }
.trim-name { font-size: 16px; font-weight: 600; }
.trim-right { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.trim-payment { font: 500 18px var(--rd-display); letter-spacing: -.02em; }
.trim-msrp { font-size: 12px; color: var(--rd-muted); }
.options-row { display: flex; flex-wrap: wrap; gap: 8px; }
.option-btn { border: 1px solid #c9cec1; background: transparent; border-radius: 3px; padding: 11px 16px; font-size: 15px; font-weight: 600; cursor: pointer; min-height: 44px; }
.option-btn.selected { border-color: var(--rd-ink); background: var(--rd-ink); color: #fff; }
.summary-box { border-top: 1px solid var(--rd-line); padding-top: 24px; margin-top: 26px; }
.summary-label { font-size: 13px; color: var(--rd-muted); }
.summary-price { font: 500 54px/1.1 var(--rd-display); letter-spacing: -3px; margin: 6px 0 10px; }
.summary-price .currency { font-size: .7em; vertical-align: .25em; margin-right: 2px; }
.summary-price .period { font: 15px var(--rd-font); letter-spacing: 0; color: var(--rd-muted); margin-left: 4px; }
.summary-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 18px; font-size: 14px; }
.summary-details span { border-right: 1px solid var(--rd-line); padding-right: 10px; }
.summary-details span:last-child { border: 0; }
.summary-highlight { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #2f6b4a; font-weight: 600; }
.summary-highlight i, .summary-qualifier i { display: none; }
.summary-highlight::before { content: '✓'; }
.summary-qualifier { display: none; margin-top: 12px; padding: 12px 14px; background: #f3ecdf; border: 1px solid #e3d5bb; border-radius: 3px; font-size: 14px; color: #5e4518; }
.summary-qualifier.visible { display: block; }
.selection-summary { margin: 20px 0 8px; }
.selection-row { display: flex; justify-content: space-between; gap: 20px; font-size: 15px; padding: 12px 0; border-bottom: 1px solid var(--rd-line); }
.selection-label { color: var(--rd-muted); }
.selection-value { font-weight: 600; text-align: right; }
.cta-button { width: 100%; min-height: 54px; margin: 18px 0 8px; padding: 15px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font: 600 15px var(--rd-font); border: 1px solid var(--rd-ink); background: var(--rd-ink); color: #fff; border-radius: var(--rd-radius); cursor: pointer; transition: background .25s, transform .25s; }
.cta-button:hover { background: #2e423a; transform: translateY(-2px); }
.cta-button i { font-style: normal; }
.cta-button i::before { content: '↗'; font-size: 19px; }
.cta-secondary { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 14px 22px; margin: 8px 0; border: 1px solid var(--rd-line-strong); border-radius: var(--rd-radius); font-weight: 600; font-size: 15px; }
.cta-secondary:hover { background: var(--rd-sage); }
.cta-secondary i { display: none; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 16px 0; font-size: 14px; }
.trust-item i { display: none; }
.trust-item::before { content: '✓'; color: var(--rd-green); margin-right: 7px; font-weight: 700; }
.disclaimer { font-size: 13px; line-height: 1.75; color: var(--rd-muted); margin-top: 16px; }
.detail-sub { padding: 50px 0 80px; border-top: 1px solid var(--rd-line); display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.detail-sub h3 { margin-bottom: 18px; }
.detail-sub p { font-size: 16px; }
.detail-sub .text-link { margin-top: 18px; }
.gallery-section { margin-top: 16px; }
.gallery-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rd-muted); margin-bottom: 8px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-thumb { border: 1px solid var(--rd-line); border-radius: 3px; cursor: pointer; background: #eef0e8; padding: 4px; }
.gallery-thumb.active { border-color: var(--rd-ink); }
/* Phase 2A features (data/trim-features.json) */
#features-desktop:empty, #features-mobile:empty { display: none; }
.features-mobile { display: none; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 8px; }
.pf-tile { border: 1px solid var(--rd-line); background: var(--rd-card); border-radius: 4px; padding: 13px 10px; text-align: center; }
.pf-ic { position: relative; display: inline-flex; font-size: 24px; color: var(--rd-brass-text); }
.pf-badge { position: absolute; right: -10px; top: -6px; font-size: 13px; }
.pf-lb { font-size: 13px; font-weight: 600; margin-top: 6px; line-height: 1.3; }
.pf-sub, .pf-pk { font-size: 12px; color: var(--rd-muted); margin-top: 3px; }
.pf-pkgs .pf-tile { border-style: dashed; }
.pf-note { font-size: 13px; color: var(--rd-muted); margin-top: 10px; }
.pf-acc { border-top: 1px solid var(--rd-line); margin-top: 16px; }
.pf-acc summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 15px; }
.pf-acc-body { padding-bottom: 10px; }
/* the mobile price bar */
.sticky-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: #f5f4effa; backdrop-filter: blur(16px); border-top: 1px solid var(--rd-line); }
.sticky-price { font: 500 24px var(--rd-display); letter-spacing: -.03em; display: block; }
.sticky-price-details { font-size: 13px; color: var(--rd-muted); }
.sticky-cta { min-height: 48px; padding: 12px 22px; background: var(--rd-ink); color: #fff; border: 0; border-radius: var(--rd-radius); font: 600 15px var(--rd-font); cursor: pointer; }
/* coming soon + not found */
.coming-soon, .not-found { max-width: 760px; margin: 0 auto; padding: 60px 0 90px; }
.coming-soon .car-badge::before { display: inline-block; }
.coming-soon h2 { font-size: 30px !important; margin: 26px 0 12px; }
.coming-soon p, .not-found p { font-size: 17px; }
.coming-soon .main-image-container { background: #e8eae1; border-radius: 5px; padding: 30px; margin: 24px 0; }
.coming-soon-actions { margin-top: 24px; }
.coming-soon-call { margin-top: 18px; font-size: 15px; color: var(--rd-muted); }
.coming-soon-call a { text-decoration: underline; color: var(--rd-ink); }
.not-found a { display: inline-block; margin-top: 22px; text-decoration: underline; }
.loading { padding: 140px 0; }

/* ---- about ----------------------------------------------------------------- */
.about-hero { height: min(62vw, 780px); position: relative; overflow: hidden; }
.about-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.about-quote { font: 500 36px/1.35 var(--rd-display); letter-spacing: -.035em; margin-bottom: 26px; color: var(--rd-ink); }
.about-body p { font-size: 17px; margin-bottom: 22px; }
.about-body strong, .about-body em { color: var(--rd-ink); }
.about-sign { display: flex; align-items: center; gap: 16px; margin-top: 30px; font-size: 15px; color: var(--rd-ink); }
.about-sign img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.about-sign span { color: var(--rd-muted); font-size: 13px; display: block; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; border-top: 1px solid var(--rd-line); padding-top: 34px; margin-top: 10px; }
.stat-row b { display: block; font: 500 44px var(--rd-display); letter-spacing: -.04em; color: var(--rd-ink); }
.stat-row span { font-size: 14px; color: var(--rd-muted); }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.contact-card { padding: 34px; border: 1px solid var(--rd-line); background: var(--rd-card); border-radius: 4px; }
.contact-card svg { width: 26px; color: var(--rd-brass); }
.contact-card h3 { font-size: 22px; margin: 18px 0 10px; }
.contact-card p { font-size: 15px; }
.contact-card .text-link { margin-top: 18px; }

/* ---- legal (privacy): our policy, our side navigation --------------------- */
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 70px; padding: 10px 0 100px; }
.legal-toc { position: sticky; top: 100px; align-self: start; border-left: 1px solid var(--rd-line); }
.legal-toc h4 { font-size: 12px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--rd-muted); margin: 0 0 12px 18px; }
.legal-toc a { display: block; padding: 8px 0 8px 18px; margin-left: -1px; font-size: 15px; color: var(--rd-muted); border-left: 2px solid transparent; }
.legal-toc a:hover { color: var(--rd-ink); }
.legal-toc a.active { color: var(--rd-ink); border-left-color: var(--rd-brass); font-weight: 600; }
.legal-body { max-width: 780px; }
.legal-section { padding: 0 0 46px; margin-bottom: 46px; border-bottom: 1px solid var(--rd-line); scroll-margin-top: 100px; }
.legal-section:last-child { border-bottom: 0; }
.legal-section .section-num { font-size: 12px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--rd-brass-text); margin-bottom: 10px; }
.legal-section h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 20px; }
.legal-section p, .legal-section li { font-size: 16px; line-height: 1.75; color: var(--rd-muted); margin-bottom: 16px; }
.legal-section strong { color: var(--rd-ink); }
.legal-section a { text-decoration: underline; color: var(--rd-ink); }
.legal-section ul { padding-left: 20px; }
.legal-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.legal-card { border: 1px solid var(--rd-line); background: var(--rd-card); border-radius: 4px; padding: 20px; }
.legal-card h3 { font-size: 18px; letter-spacing: -.02em; margin-bottom: 8px; }
.legal-card p { font-size: 15px; margin: 0; }
.legal-updated { font-size: 14px; color: var(--rd-muted); margin-top: 16px; }

/* ---- modal + toast ------------------------------------------------------- */
dialog.rd-modal { border: 0; border-radius: 8px; background: var(--rd-paper); width: min(720px, calc(100% - 30px)); padding: 44px; color: var(--rd-ink); max-height: 90svh; overflow: auto; }
dialog.rd-modal::backdrop { background: #05130ecc; backdrop-filter: blur(6px); }
dialog.rd-modal .close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; padding: 6px; }
dialog.rd-modal h2 { font-size: 34px; margin-bottom: 18px; }
dialog.rd-modal video { width: 100%; border-radius: 3px; display: block; }
dialog.rd-modal p { font-size: 15px; margin-top: 14px; }

@keyframes hero-in { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes nudge { 50% { transform: translateY(5px); } }

@media (max-width: 1100px) {
  .manifesto, .faq { gap: 60px; }
  .portal-promo-inner { gap: 50px; }
  .inventory-layout { grid-template-columns: 200px 1fr; gap: 28px; }
  .inventory .deals-grid { grid-template-columns: repeat(2, 1fr); }
  .main-container { gap: 36px; }
  .benefit-inner { gap: 16px; }
  .legal-layout { grid-template-columns: 210px 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .hero { height: 860px; min-height: 700px; }
  .hero-media img, .hero-media video { object-position: 74% 50%; }
  .hero::after { background: linear-gradient(180deg, #07181c90, transparent 50%, #0a191dd6), linear-gradient(90deg, #091c1f90, transparent); }
  .hero-content { padding-top: 130px; }
  .hero h1 { font-size: 52px; }
  .hero-copy { font-size: 16px; max-width: 320px; }
  .hero-bottom { bottom: 22px; align-items: flex-end; flex-direction: column-reverse; gap: 16px; }
  .scroll-cue { display: none; }
  .film-button video { width: 96px; height: 54px; }
  .benefit-inner { grid-template-columns: 1fr 1fr; gap: 22px 15px; padding: 24px 0; }
  .benefit b { font-size: 14px; }
  .section-head { display: block; margin-bottom: 28px; }
  .section-head p, .section-head > .text-link { margin-top: 20px; }
  .deals-grid { grid-template-columns: 1fr; gap: 18px; }
  .home-deals .deals-grid { display: flex; overflow: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 10px; }
  .home-deals .deal-card { min-width: 85%; scroll-snap-align: center; }
  .brand-row { grid-template-columns: repeat(3, 1fr); }
  .motion-story { height: 300vh; }
  .story-stage canvas, .story-stage .story-fallback { object-position: 59%; }
  .story-content h2 { font-size: 46px; max-width: 360px; }
  .story-content p { max-width: 300px; font-size: 16px; }
  .story-numbers { bottom: 40px; gap: 10px; grid-template-columns: repeat(4, 1fr); }
  .story-step { font-size: 11px; letter-spacing: 0; }
  .story-step span { display: block; margin-bottom: 4px; }
  .motion-control { right: 20px; top: 96px; font-size: 12px; }
  .manifesto, .faq { grid-template-columns: 1fr; gap: 34px; }
  .portal-promo-inner { grid-template-columns: 1fr; gap: 44px; padding-top: 64px; }
  .portal-preview { padding: 24px; margin-left: 8px; }
  .reviews-grid { grid-template-columns: 1fr; gap: 30px; }
  .closing-inner { display: block; padding: 60px 0; }
  .closing-actions { margin-top: 28px; }
  .page-intro { padding: 44px 0 28px; }
  .inventory-layout { grid-template-columns: 1fr; gap: 20px; }
  .filter-panel { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .filter-panel h3, .filter-panel .search-field { grid-column: 1 / -1; }
  .filter-panel h3 { margin: 0 0 14px; }
  .filter-panel .field { margin-bottom: 12px; }
  .inventory .deals-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .inventory .car-top { left: 8px; right: 8px; top: 8px; font-size: 11px; }
  .inventory .car-top > span { padding: 3px 7px; border-radius: 6px; }
  /* "$X due at signing" (shown only with the board's show_due_at_signing flag): on a phone card it
     drops to its own line under the year rather than wrapping into it */
  .inventory .car-top:has(.deal-badge) { flex-wrap: wrap; row-gap: 3px; }
  .inventory .car-top .deal-badge { white-space: nowrap; letter-spacing: .02em; }
  .inventory .card-info { padding: 13px 12px; }
  .inventory .card-title { font-size: 19px; }
  .inventory .vehicle-price { font-size: 22px; }
  .inventory .round-arrow { display: none; }
  .main-container { grid-template-columns: 1fr; gap: 8px; }
  .car-section { display: none; }
  .mobile-hero { display: block; }
  .mobile-hero .main-image-container { background: #e8e1d4; border-radius: 5px; overflow: hidden; aspect-ratio: 4 / 3; height: auto; margin-top: 16px; }
  .features-mobile { display: block; margin-top: 30px; }
  .trim-list { grid-template-columns: 1fr; }
  .summary-price { font-size: 46px; }
  .detail-sub { grid-template-columns: 1fr; gap: 34px; padding: 40px 0 120px; }
  .sticky-footer.on { display: flex; }
  .about-hero { height: 300px; }
  .about-quote { font-size: 28px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; gap: 14px; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-toc { position: sticky; top: 72px; z-index: 5; display: flex; overflow-x: auto; gap: 4px; border-left: 0; border-bottom: 1px solid var(--rd-line); background: var(--rd-paper); padding: 8px 0; margin: 0 -20px; padding-left: 20px; }
  .legal-toc h4 { display: none; }
  .legal-toc a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; padding: 8px 10px; font-size: 14px; }
  .legal-toc a.active { border-bottom-color: var(--rd-brass); }
  .legal-cards { grid-template-columns: 1fr; }
  dialog.rd-modal { padding: 34px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .motion-story { height: auto; }
  .story-stage { position: relative; }
}
.review-who { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 42px; height: 42px; min-width: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--rd-sage-deep); color: var(--rd-ink); font: 600 14px var(--rd-font); overflow: hidden; }
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* model page additions: the desktop heading in the side panel, two dropdowns */
.desktop-head { margin-bottom: 4px; }
.car-subtitle { font-size: 15px; margin-top: 12px !important; }
.lease-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lease-select { margin: 0; }
.lease-select select:disabled { opacity: 1; color: var(--rd-ink); background: var(--rd-paper-alt); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.no-image { color: var(--rd-muted); font-size: 15px; padding: 60px 0; }
@media (max-width: 860px) { .desktop-head { display: none; } }
.legal-card h4 { font: 600 17px var(--rd-display); letter-spacing: -.02em; margin: 0 0 8px; color: var(--rd-ink); }
@media (max-width: 860px) { .hero-badge > span:not(#hero-badge-text) { display: none; } }

/* About: story image beside the headline (Adam 10/16) */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-intro .about-hero { height: auto; aspect-ratio: 4 / 3; border-radius: 6px; }
@media (max-width: 860px) {
  .about-intro { grid-template-columns: 1fr; gap: 28px; }
  .about-intro .about-hero { height: auto; aspect-ratio: 4 / 3; }
}
@media (min-width: 861px) { .about-intro .about-hero { order: -1; } }
