/* ============================================================================
   atrium.css — shared design system for every Atrium marketing page.
   Direction measured live from tesla.com / avis.com / hertz.com / enterprise.com
   (2026-08-12): big LIGHT headlines (Tesla w500, Avis w400@64px), body #5c5e62,
   few words, image-led full-viewport panels, one restrained accent.
   Rules: font weights 400/500/600 only. No gradient text. No emoji.
   ========================================================================== */

/* Inter, self-hosted (Phase 4). One variable woff2 covers 400-700 — Google's css2 endpoint was
   serving this exact file for every weight anyway, from behind a render-blocking stylesheet
   request to a third-party origin. Latin subset; anything outside it falls back to the system
   stack, same as before. Pages preload this file. Licence: SIL OFL (rasmus/inter). */
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url('/fonts/inter-var.woff2') format('woff2');
}

:root{
  --ink:#171a20;
  --body:#5c5e62;
  --faint:#8b8f94;
  --line:#e8eaec;
  --bg:#ffffff;
  --bg-soft:#f6f7f8;
  --accent:#1f8f6f;              /* one accent, used sparingly */
  --radius:6px;                  /* cards — quiet corners, not a UI-kit 10px */
  --btn-radius:4px;              /* buttons — near-square, the premium-auto tell */
  --pill:40px;                   /* genuine chips/dots only, never buttons */
  --header-h:56px;
  --ease:cubic-bezier(.22,.61,.25,1);
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:var(--sans);font-weight:400;color:var(--body);background:var(--bg);
     line-height:1.6;font-size:16px;-webkit-font-smoothing:antialiased;
     /* 100vw full-bleed sections include the Windows scrollbar width and overhang the
        viewport by ~8px a side; clip here so the document can never scroll sideways. */
     overflow-x:clip}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
::selection{background:#d9efe7}

/* ---- type ------------------------------------------------------------- */
h1,h2,h3{color:var(--ink);font-weight:500;letter-spacing:-.02em;text-wrap:balance}
/* Restrained scale: the old 64px hero over 16px card titles was too extreme a jump and read as
   "heroes are supposed to be huge". Tighter top end, a slightly larger h3, calmer ratio. */
.display{font-size:clamp(2.1rem,5vw,3.25rem);line-height:1.08;font-weight:500}
h2,.h2{font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.15}
h3,.h3{font-size:1.25rem;font-weight:600;letter-spacing:-.01em}
/* --body, not --faint: #8b8f94 on white is 3.3:1 and fails WCAG AA (Lighthouse 2026-09-02). */
.eyebrow{font-size:.72rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--body)}
.sub{font-size:clamp(1rem,1.6vw,1.2rem);color:var(--body);max-width:30em;margin-inline:auto}
.small{font-size:.85rem;color:var(--faint)}
.ink{color:var(--ink)}

/* ---- buttons: Tesla two-button pattern -------------------------------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
     min-width:150px;min-height:44px;padding:0 26px;border-radius:var(--btn-radius);
     font-size:.9rem;font-weight:500;font-family:inherit;cursor:pointer;
     border:1px solid transparent;transition:transform .25s var(--ease),background .25s,box-shadow .25s;
     background:var(--ink);color:#fff}
.btn:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(23,26,32,.18)}
.btn--ghost{background:rgba(255,255,255,.75);color:var(--ink);border-color:rgba(23,26,32,.12);
     backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.btn--ghost:hover{background:#fff;box-shadow:0 6px 18px rgba(23,26,32,.10)}
.btn--ondark{background:#fff;color:var(--ink)}
.btn--ondark-ghost{background:rgba(23,26,32,.35);color:#fff;border-color:rgba(255,255,255,.35);
     backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
/* Primary action standing on a photograph: near-white, so the hierarchy survives any image. */
.btn--onphoto{background:rgba(255,255,255,.94);color:#171a20;border:none}
.btn--onphoto:hover{background:#fff}
.textlink{font-weight:500;color:var(--ink);border-bottom:1px solid currentColor;padding-bottom:1px}
.textlink:hover{color:var(--accent)}

/* ---- header ----------------------------------------------------------- */
/* Always solid. The old transparent-until-scroll state drew var(--ink) nav links over the dark
   hero photograph on 12 pages — near-black on near-black, effectively invisible — and the inverse
   (white links on light pageheads) was one refactor away. A permanent white bar with a hairline
   is what Avis/Enterprise run, it reads premium, and it gives the logo a stable canvas.
   .solid/.open keep working (JS still toggles them) but no longer change the background. */
.hd{position:fixed;inset:0 0 auto 0;z-index:90;height:var(--header-h);
    display:flex;align-items:center;justify-content:space-between;
    padding:0 clamp(16px,4vw,40px);
    background:rgba(255,255,255,.92);backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);box-shadow:0 1px 0 rgba(23,26,32,.06)}
.hd.solid,.hd.open{background:rgba(255,255,255,.92)}
/* Real mark + set wordmark. atrium-mark.png is the A+car lockup cropped from Ben's logo at its
   NATURAL 3:1 aspect (2x for retina) — the earlier square favicon squeezed it and the car read
   as elongated. The wordmark stays live text so it never blurs and screen readers read the brand. */
.hd-logo{display:flex;align-items:center;gap:9px;font-size:.95rem;font-weight:600;
         letter-spacing:.18em;color:var(--ink)}
.hd-logo img{display:block;height:30px;width:auto}
.hd-nav{display:flex;align-items:center;gap:clamp(10px,2vw,26px)}
/* Selectors here are deliberately doubled (.hd .hd-nav a rather than .hd-nav a). The legacy learn
   and about pages keep their own stylesheets containing `.hd a{color:var(--ink)}`, which at
   specificity 0,1,1 beat a single class and rendered the Apply button as dark text on dark. */
.hd .hd-nav a{font-size:.86rem;font-weight:500;color:var(--ink);padding:8px 10px;border-radius:8px;
    transition:background .2s}
.hd .hd-nav a:hover{background:rgba(23,26,32,.05)}
.hd-right{display:flex;align-items:center;gap:14px}
.hd .hd-phone{font-size:.86rem;font-weight:500;color:var(--ink)}
.hd .hd-cta{background:var(--ink);color:#fff;font-size:.82rem;font-weight:500;
    display:inline-flex;align-items:center;min-height:40px;
    padding:0 20px;border-radius:var(--btn-radius);letter-spacing:0}
.hd .hd-logo{display:flex;align-items:center;gap:9px;color:var(--ink);font-size:.95rem;
    font-weight:600;letter-spacing:.18em}
/* Six nav links + the longer availability CTA leave no room for the phone number in the middle
   widths; it lives in the footer and mobile menu, the CTA earns the space. */
@media(max-width:1080px){.hd .hd-phone{display:none}}
.hd-burger{display:none;background:none;border:0;cursor:pointer;padding:10px;color:var(--ink)}
.hd-burger svg{display:block}

/* mobile menu */
/* overflow-y:auto is load-bearing: this is a fixed-height panel, so without it the items past
   the fold (Contact, Driver login — and on short screens even Apply) are simply unreachable.
   overscroll-contain stops the scroll from chaining to the page behind the open menu. */
.mnav{position:fixed;inset:var(--header-h) 0 0 0;z-index:89;background:#fff;
    padding:26px clamp(20px,6vw,44px) 40px;display:none;flex-direction:column;gap:6px;
    overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.mnav.open{display:flex}
.mnav a{font-size:1.15rem;font-weight:500;color:var(--ink);padding:14px 4px;
    border-bottom:1px solid var(--line)}
/* same specificity guard for the footer, which legacy pages also style via `.ft a` equivalents */
.ft .ft-grid a{display:block;font-size:.88rem;color:var(--body);padding:5px 0}
.ft .ft-grid a:hover{color:var(--ink)}
@media(max-width:900px){
  .hd-nav,.hd-phone{display:none}
  .hd-burger{display:block}
}
/* At phone widths the logo, the CTA and the burger share ~375px; the CTA was wrapping onto two
   lines and painting over the wordmark. One line, tighter padding, a touch less letter-spacing. */
@media(max-width:480px){
  .hd .hd-cta{white-space:nowrap;padding:0 14px;font-size:.78rem;min-height:38px}
  .hd .hd-logo{letter-spacing:.12em;font-size:.85rem;gap:7px}
  .hd .hd-logo img{height:26px}
}

/* ---- panels ----------------------------------------------------------- */
/* Sections are content-sized with bounded padding, NOT forced full-viewport. Full-height panels
   turned the page into a slideshow of giant near-empty screens — the biggest "template" tell.
   Heroes keep real height via .panel--image below; everything else breathes without shouting. */
.panel{display:flex;flex-direction:column;justify-content:center;
       align-items:center;text-align:center;position:relative;overflow:hidden;
       padding:clamp(56px,9vh,88px) clamp(18px,5vw,48px)}
/* Alias only, kept for the 30+ pages that carry it: since .panel stopped forcing 100svh, --auto
   no longer changes anything. Removing it would be a pointless sitewide sweep. */
.panel--auto{min-height:0}
/* Image heroes stay large and clear the fixed header — the one place height is earned. */
.panel--image{min-height:clamp(500px,76vh,740px);
       padding-top:calc(var(--header-h) + clamp(36px,6vh,60px))}
.panel--soft{background:var(--bg-soft)}
.panel--dark{background:var(--ink)}
.panel--dark h2,.panel--dark h3{color:#fff}
.panel--dark .sub{color:rgba(255,255,255,.75)}
.panel--dark .eyebrow{color:rgba(255,255,255,.55)}
/* isolation:isolate pins the pseudo stacking locally. The old z-index:-2 image rendered only
   because body painted no box of its own — one `html{background}` rule away from twelve blank
   heroes. Now: image 0, scrim 1, content 2, all inside this panel's own context. */
.panel--image{color:#fff;isolation:isolate}
.panel--image > *{position:relative;z-index:2}
.panel--image::before{content:"";position:absolute;inset:0;
  background:var(--panel-img) var(--panel-pos,center)/cover no-repeat;z-index:0}
.panel--image::after{content:"";position:absolute;inset:0;z-index:1;
  /* Mid stop was .08 — hero copy sits at 35-60% height, exactly where the scrim vanished, so white
     text landed on headlight glare. Keep the photo readable, keep the words more readable. */
  background:linear-gradient(180deg,rgba(10,12,16,.55) 0%,rgba(10,12,16,.30) 50%,rgba(10,12,16,.58) 100%)}
.panel--image h1,.panel--image h2{color:#fff}
.panel--image .sub{color:rgba(255,255,255,.92)}
.panel--image .eyebrow{color:rgba(255,255,255,.75)}
/* Hero photo as a real <img> rather than a CSS background: the preload scanner, crawlers and
   AI engines can all see a real element; a background variable is invisible to every one. */
.panel--image > .panel-img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:var(--panel-pos,center);z-index:0}

/* Vertical rhythm inside panels. Without this the headline and sub-copy collide, which was the
   single biggest thing making the old page feel unconsidered. Whitespace does the luxury work. */
.panel .eyebrow{margin-bottom:clamp(14px,2vh,22px)}
.panel h1,.panel h2{margin-bottom:clamp(16px,2.4vh,26px)}
.panel .sub{margin-bottom:clamp(4px,1vh,10px)}
.panel-cta{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin-top:clamp(26px,4vh,42px)}
/* Three buttons on a phone wrapped 2-then-1 and read as a broken row. Stack them full-width so the
   tap targets are even and the group stays centred. */
@media(max-width:560px){
  .panel-cta{flex-direction:column;align-items:stretch;gap:10px;width:min(320px,100%);margin-inline:auto}
  .panel-cta .btn{width:100%}
}
.panel-note{margin-top:16px;font-size:.8rem;color:inherit;opacity:.75}
.hero-art{width:min(860px,92vw);margin-top:4vh;filter:drop-shadow(0 30px 40px rgba(23,26,32,.18))}
/* Product shot inside a text panel. Sized to fill the panel like Tesla's model pages — a small
   inset image beside full-bleed neighbours reads as an afterthought. */
.showcase{width:min(1080px,94vw);margin:clamp(18px,3vh,34px) auto 0;
          filter:drop-shadow(0 34px 46px rgba(23,26,32,.20))}
/* Square studio renders (fleet-*.webp) carry a lot of empty floor and ceiling. Crop them to the
   same banner proportion the wide renders use, rather than dropping a giant square on the page. */
.showcase--crop{aspect-ratio:1200/430;object-fit:cover;object-position:center 58%;
                border-radius:var(--radius)}
/* Real photographs (not studio renders) sit differently in frame: the car occupies the middle
   band with sky above and road below, so the 58% downward bias used for renders clips the roof.
   Hold the centre and crop evenly. */
.showcase--photo{aspect-ratio:1200/430;object-fit:cover;object-position:center 50%;
                 border-radius:var(--radius)}
/* Was width:104vw with a -2vw pull, which is 4vw wider than the viewport — on a phone that clipped
   the car at both edges and could scroll the page sideways. Full-bleed now uses the exact-width
   technique, which can never overflow. */
@media(max-width:700px){
  .showcase{width:100vw;max-width:none;margin-inline:calc(50% - 50vw)}
  .showcase--crop{aspect-ratio:4/3;border-radius:0}
  /* Ultra-wide photos (2.5:1+) lose most of their width to a phone's narrow viewport. Hold a
     taller slice so the subject survives the crop instead of filling the frame with road. */
  .showcase--photo{aspect-ratio:3/2;border-radius:0}
  /* Per-panel focal point for the same reason — a centred crop of a wide shot can land on empty
     tarmac between the subjects. Panels set --panel-pos-mobile where the centre isn't the story. */
  .panel--image::before{background-position:var(--panel-pos-mobile,var(--panel-pos,center))}
  .panel--image > .panel-img{object-position:var(--panel-pos-mobile,var(--panel-pos,center))}
}

/* content grids inside panels */
.grid{display:grid;gap:clamp(18px,3vw,34px);width:min(1060px,100%);margin-top:clamp(30px,5vh,54px)}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--2{grid-template-columns:repeat(2,1fr)}
@media(max-width:820px){.grid--3,.grid--2{grid-template-columns:1fr}}
.cell{text-align:left}
.cell .h3{margin-bottom:6px}
.cell p{font-size:.95rem}
/* Both stat rules must out-rank `.cell p` above (0-1-1), or the headline figures render at .95rem.
   Every .stat/.stat-label on the site sits inside a .cell, so the bare selectors are kept only as
   a fallback for any future use outside one. */
.stat,.cell p.stat{font-size:clamp(2rem,4vw,2.9rem);font-weight:500;color:var(--ink);letter-spacing:-.02em}
/* Must outrank `.cell p.stat` (0-2-1) above — the shorter `.panel--dark .stat` (0-2-0) lost, and
   the homepage's dark-panel numbers rendered #171a20-on-#171a20: invisible in production. */
.panel--dark .stat,.panel--dark .cell p.stat{color:#fff}
.stat-label,.cell p.stat-label{font-size:.82rem;color:var(--faint);letter-spacing:.06em;text-transform:uppercase;margin-top:4px}
.panel--dark .stat-label,.panel--dark .cell p.stat-label{color:#b7bbc0}

/* ---- scroll reveals ---------------------------------------------------- */
.rv{opacity:0;transform:translateY(26px);
    transition:opacity .9s var(--ease),transform .9s var(--ease)}
.rv.in{opacity:1;transform:none}
/* LCP guard: the hero must never wait for end-of-body JS. Fresh Lighthouse (2026-08-29) put
   mobile LCP at 6.1s because the H1 sat at opacity:0 until atrium.js ran. The first section of
   every page renders visible immediately; the observer's later .in is a no-op there, and
   below-the-fold sections keep their reveal. */
main > :first-child .rv{opacity:1;transform:none}
.rv.d1{transition-delay:.12s}.rv.d2{transition-delay:.24s}.rv.d3{transition-delay:.36s}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .rv{opacity:1;transform:none;transition:none}
  .btn:hover{transform:none}
}

/* ---- footer ------------------------------------------------------------ */
.ft{background:var(--bg);border-top:1px solid var(--line);
    padding:clamp(44px,7vh,70px) clamp(20px,5vw,48px) 34px}
.ft-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:30px;max-width:1080px;margin:0 auto}
@media(max-width:820px){.ft-grid{grid-template-columns:repeat(2,1fr)}}
/* .ft-h replaced the footer's <h4>s (axe: heading-order — H1 pages jumped straight to H4).
   The h4 selector stays for learn-hertz-vs-atrium.html, which is frozen per Ben. #6b7075 where
   var(--faint) was: #8b8f94 on white is 3.5:1, below WCAG AA for this size. */
.ft h4,.ft .ft-h{font-size:.74rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
       color:#6b7075;margin-bottom:14px}
.ft a{display:block;font-size:.88rem;color:var(--body);padding:5px 0}
.ft a:hover{color:var(--ink)}
.ft-base{max-width:1080px;margin:40px auto 0;padding-top:24px;border-top:1px solid var(--line)}
.ft-mark{font-size:.8rem;font-weight:600;letter-spacing:.34em;color:var(--ink);margin-bottom:12px}
.ft-hours{font-size:.82rem;color:#6b7075;margin-bottom:14px}
.ft-legal{font-size:.76rem;color:#6b7075;line-height:1.7;max-width:76ch}

/* ---- sub-page components ----------------------------------------------- */
.card{border:1px solid var(--line);border-radius:var(--radius);padding:clamp(22px,3vw,32px);
      background:var(--bg);display:flex;flex-direction:column;align-items:flex-start}
.card .eyebrow{margin-bottom:10px}
.price{font-size:clamp(2.1rem,4vw,2.9rem);font-weight:500;color:var(--ink);letter-spacing:-.02em;
       margin-bottom:10px;line-height:1.1}
.price span{font-size:.9rem;font-weight:400;color:var(--faint);letter-spacing:0}

/* fleet grid — one card per model year, cheapest first */
/* Three cars, three columns. This was repeat(4,1fr) from when the fleet was four Model 3 tiers,
   which left an empty fourth column and pushed the row off-centre. margin-inline:auto centres the
   grid itself inside the panel. */
.fleet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,1.6vw,22px);
            width:min(1160px,100%);margin:clamp(30px,5vh,50px) auto 0}
@media(max-width:1000px){.fleet-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.fleet-grid{grid-template-columns:1fr}}
.vcard{border:1px solid var(--line);border-radius:var(--radius);background:var(--bg);
       padding:clamp(18px,2vw,24px);text-align:left;display:flex;flex-direction:column;
       transition:box-shadow .3s var(--ease),transform .3s var(--ease)}
.vcard:hover{box-shadow:0 10px 30px rgba(23,26,32,.09);transform:translateY(-2px)}
/* Every car gets the same letterbox box (the Teslas' native 1200x391) so they render at one
   size and one baseline. Source images differ wildly — the Camry render is 1536x1024 with heavy
   vertical padding, the Teslas are tight 3.07:1 crops — which with height:auto made the Camry
   look small inside a taller card. object-fit:cover trims the padding instead of shrinking the car. */
.vcard img{width:100%;aspect-ratio:1200/391;object-fit:cover;object-position:center;
           display:block;margin:0 auto 14px}
.vcard h3{font-size:1.15rem;font-weight:600;margin-bottom:3px}
.vmeta{font-size:.8rem;color:var(--faint);margin-bottom:8px}
.vtiers{font-size:.78rem;color:var(--body);line-height:1.5;margin-bottom:16px;flex:1}
.vprice{font-size:1.5rem;font-weight:500;color:var(--ink);letter-spacing:-.02em;margin-bottom:16px}
.vprice span{font-size:.76rem;font-weight:400;color:var(--faint);letter-spacing:0}
.vcard .btn{min-width:0;width:100%;padding:11px 18px;font-size:.84rem}
@media(prefers-reduced-motion:reduce){.vcard:hover{transform:none}}

.tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius)}
table{border-collapse:collapse;width:100%;font-size:.94rem;min-width:420px}
td{padding:15px 18px;border-bottom:1px solid var(--line);vertical-align:top}
tr:last-child td{border-bottom:0}
td:first-child{color:var(--ink);font-weight:500;width:34%;white-space:nowrap}
/* Real column headers. Extraction engines (and screen readers) key on thead > th[scope=col];
   a table whose header row is styled <td>s is just a grid of strings to them. */
thead th{padding:12px 18px;border-bottom:1px solid var(--line);background:var(--bg-soft);
         color:var(--ink);font-size:.82rem;font-weight:600;text-align:left;
         letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}

/* Vehicle pages: on a phone, availability stays one thumb away. Desktop keeps the header CTA. */
.vsticky{display:none}
@media(max-width:700px){
  .vsticky{position:fixed;left:0;right:0;bottom:0;z-index:80;display:flex;align-items:center;
    justify-content:space-between;gap:14px;padding:10px clamp(16px,4vw,24px);
    padding-bottom:calc(10px + env(safe-area-inset-bottom));
    background:rgba(255,255,255,.94);backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);box-shadow:0 -1px 0 rgba(23,26,32,.08)}
  .vsticky .vs-price{font-weight:600;color:var(--ink);font-size:1rem;white-space:nowrap;margin:0}
  .vsticky .vs-price span{font-weight:400;color:var(--body);font-size:.82rem}
  .vsticky .btn{min-width:0;flex:1;max-width:260px}
  body:has(.vsticky){padding-bottom:72px}
}

.steps{list-style:none;display:flex;flex-direction:column;gap:clamp(20px,3vh,30px)}
.steps li{display:grid;grid-template-columns:44px 1fr;gap:18px;align-items:start}
.step-n{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);
        display:flex;align-items:center;justify-content:center;
        font-size:.86rem;font-weight:500;color:var(--ink)}
.steps .h3{margin-bottom:4px}

.quote{border-left:2px solid var(--line);padding:4px 0 4px 20px}
.quote p{font-size:1.05rem;color:var(--ink);line-height:1.5}
.quote cite{display:block;margin-top:10px;font-style:normal;font-size:.82rem;color:var(--faint)}

.qa{border-bottom:1px solid var(--line);padding:6px 0}
.qa summary{cursor:pointer;list-style:none;padding:18px 34px 18px 0;position:relative;
            font-size:1.02rem;font-weight:500;color:var(--ink)}
.qa summary::-webkit-details-marker{display:none}
.qa summary::after{content:"";position:absolute;right:6px;top:calc(50% - 4px);
  width:8px;height:8px;border-right:1.5px solid var(--faint);border-bottom:1.5px solid var(--faint);
  transform:rotate(45deg);transition:transform .25s var(--ease)}
.qa[open] summary::after{transform:rotate(-135deg)}
.qa p{padding:0 0 18px;max-width:62ch}
.qa summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}

.calc{border:1px solid var(--line);border-radius:var(--radius);padding:clamp(22px,3.5vw,34px)}
.calc-row{margin-bottom:22px}
.calc-label{display:block;font-size:.86rem;color:var(--ink);font-weight:500;margin-bottom:9px}
.calc-input{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:var(--radius);
            font:inherit;font-size:.95rem;background:var(--bg);color:var(--ink)}
.calc-range{width:100%;accent-color:var(--ink)}
.calc-out{border-top:1px solid var(--line);padding-top:18px;margin-top:6px}
.calc-line{display:flex;justify-content:space-between;gap:16px;padding:9px 0;font-size:.95rem;
           font-variant-numeric:tabular-nums}
.calc-line--total{border-top:1px solid var(--line);margin-top:8px;padding-top:16px;
                  font-size:1.1rem;color:var(--ink);font-weight:500}
.badge{display:none;font-size:.64rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
       color:var(--accent);border:1px solid currentColor;border-radius:4px;padding:2px 7px;
       margin-left:8px;vertical-align:middle}

/* ── Vehicle detail facts + pickup map (Zevo-pattern rows; added 2026-08-24) ──
   One bordered card of icon rows — the deal stated plainly on each car page — plus an
   embedded pickup map. Mobile: rows already wrap; the chip drops under the text. */
.facts{width:min(680px,100%);margin:clamp(26px,4vh,40px) auto 0;text-align:left;
       border:1px solid var(--line);border-radius:var(--radius);background:var(--bg);overflow:hidden}
.fact{display:flex;gap:14px;align-items:flex-start;padding:15px 18px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.fact:last-child{border-bottom:0}
.fact .f-ic{flex:none;width:36px;height:36px;border-radius:var(--radius);background:var(--bg-soft);
       display:flex;align-items:center;justify-content:center;color:var(--ink)}
.fact .f-ic svg{width:20px;height:20px}
.fact .f-bd{flex:1;min-width:200px}
.fact b{display:block;font-size:.95rem;color:var(--ink);font-weight:600}
.fact span{display:block;font-size:.84rem;color:var(--body);margin-top:1px}
.fact .f-chip{flex:none;align-self:center;background:#e7f6ef;color:#12823b;
       font-weight:600;font-size:.8rem;padding:5px 13px;border-radius:var(--pill);white-space:nowrap}
.gmap{width:min(680px,100%);margin:14px auto 0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.gmap iframe{display:block;width:100%;height:280px;border:0}
@media(max-width:600px){.gmap iframe{height:220px}}

/* ---- generic content page (sub-pages) ---------------------------------- */
.pagehead{padding:calc(var(--header-h) + clamp(46px,9vh,90px)) clamp(20px,5vw,48px) clamp(30px,5vh,50px);
          text-align:center}
.wrapc{width:min(1060px,100%);margin:0 auto;padding:0 clamp(18px,5vw,48px) clamp(60px,9vh,100px)}
.wrapc--narrow{width:min(760px,100%)}
[hidden]{display:none!important}

/* ── Reviews ──────────────────────────────────────────────────────────────
   Real Google reviews, one static list. Three lead the section; the other eleven live in a
   native <details>, so all fourteen quotes stay in the DOM for readers, crawlers and AI
   engines — without an animated wall of duplicated nodes. Open typography (no borders). */
.rev-static{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(16px,2.5vw,28px);
            width:min(1060px,100%);margin-top:clamp(24px,4vh,38px);text-align:left}
@media(max-width:820px){.rev-static{grid-template-columns:1fr}}
.rev-card{background:var(--bg);border-radius:var(--radius);padding:22px 24px;text-align:left;
          display:flex;flex-direction:column;gap:10px;margin:0}
.rev-stars{display:flex;gap:3px}
.rev-stars svg{width:14px;height:14px;fill:#171a20;flex:none}
.rev-card blockquote{margin:0;font-size:.93rem;line-height:1.6;color:var(--ink)}
.rev-card figcaption{font-size:.82rem;color:var(--faint);margin-top:auto}
.rev-more{width:min(1060px,100%);margin-top:6px}
.rev-more summary{cursor:pointer;list-style:none;display:inline-block;padding:10px 4px;
                  font-size:.9rem;color:var(--body);text-decoration:underline;
                  text-underline-offset:4px}
.rev-more summary::-webkit-details-marker{display:none}
.rev-more summary:hover{color:var(--ink)}
.rev-more .rev-static{margin-top:10px}

/* ============================================================================
   Phase 2 (2026-09-02) — product-page components. The grammar is measured from tesla.com/model3
   and /modely: a feature-card rail, a three-figure stats row, full-bleed benefit panels, 50/50
   splits, a quiet specs table and a sub-header that carries the model and its price once the hero
   scrolls away. Same tokens as everything above; nothing here introduces a new colour or weight.
   ========================================================================== */

/* ---- sub-nav: model + price + one action, pinned under the header after the hero ---------- */
.subnav{position:fixed;left:0;right:0;top:var(--header-h);z-index:85;height:48px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:0 clamp(16px,4vw,40px);background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  box-shadow:0 1px 0 rgba(23,26,32,.08);transform:translateY(-110%);
  transition:transform .35s var(--ease)}
.subnav.show{transform:none}
.subnav-name{font-size:.92rem;font-weight:600;color:var(--ink);white-space:nowrap}
.subnav-name span{font-weight:400;color:var(--body);margin-left:10px}
.subnav .btn{min-width:0;min-height:36px;padding:0 18px;font-size:.84rem}
/* On a phone the same component sits at the bottom, always visible — the thumb-reach CTA the
   vehicle pages already relied on (.vsticky), now one element instead of two. */
@media(max-width:700px){
  .subnav{top:auto;bottom:0;height:auto;transform:none;padding:10px clamp(16px,4vw,24px);
    padding-bottom:calc(10px + env(safe-area-inset-bottom));box-shadow:0 -1px 0 rgba(23,26,32,.08)}
  .subnav-name span{display:block;margin:2px 0 0;font-size:.8rem}
  .subnav .btn{min-height:44px;flex:1;max-width:240px}
  body:has(.subnav){padding-bottom:76px}
}
/* While the sub-nav is pinned (desktop), the header CTA yields to it — one Book Now on screen. */
@media(min-width:701px){
  .hd .hd-cta{transition:opacity .2s var(--ease)}
  body.subnav-on .hd .hd-cta{opacity:0;pointer-events:none}
}
@media(prefers-reduced-motion:reduce){.subnav{transition:none}.hd .hd-cta{transition:none}}

/* ---- feature-card rail ("Meet Model 3") ---------------------------------------------------- */
.frail{position:relative;width:min(1160px,100%);margin:clamp(28px,4vh,44px) auto 0}
.frail-track{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(250px,290px);gap:14px;
  overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 4px 16px;
  scrollbar-width:none;-webkit-overflow-scrolling:touch}
.frail-track::-webkit-scrollbar{display:none}
.frail-card{position:relative;scroll-snap-align:start;border-radius:var(--radius);overflow:hidden;
  background:var(--bg-soft);text-align:left;isolation:isolate}
.frail-card summary{list-style:none;cursor:pointer;display:block}
.frail-card summary::-webkit-details-marker{display:none}
.frail-card img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;display:block;
  transition:transform .8s var(--ease)}
.frail-card:hover img{transform:scale(1.03)}
.frail-card .fc-title{position:absolute;left:18px;right:56px;bottom:18px;z-index:2;color:#fff;
  font-size:1.25rem;font-weight:500;letter-spacing:-.01em;line-height:1.2;
  text-shadow:0 1px 12px rgba(0,0,0,.35)}
.frail-card .fc-plus{position:absolute;top:14px;right:14px;z-index:2;width:36px;height:36px;
  border-radius:50%;background:rgba(255,255,255,.92);color:var(--ink);display:flex;
  align-items:center;justify-content:center;font-size:1.3rem;font-weight:400;line-height:1;
  transition:transform .3s var(--ease)}
.frail-card summary::after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(10,12,16,0) 45%,rgba(10,12,16,.62) 100%)}
.frail-card .fc-body{position:absolute;inset:0;z-index:3;padding:22px 20px;color:#fff;
  background:rgba(23,26,32,.92);display:flex;flex-direction:column;justify-content:flex-end;
  opacity:0;pointer-events:none;transition:opacity .35s var(--ease)}
.frail-card .fc-body b{display:block;font-size:1.1rem;font-weight:500;margin-bottom:8px}
.frail-card .fc-body p{font-size:.9rem;line-height:1.55;color:rgba(255,255,255,.82)}
.frail-card[open] .fc-body{opacity:1;pointer-events:auto}
.frail-card[open] .fc-plus{transform:rotate(45deg);z-index:4}
.frail-card[open] .fc-title{opacity:0}
.frail-nav{display:none;position:absolute;top:calc(50% - 22px);width:44px;height:44px;
  border-radius:50%;border:1px solid var(--line);background:rgba(255,255,255,.94);color:var(--ink);
  cursor:pointer;align-items:center;justify-content:center;z-index:5;
  box-shadow:0 4px 14px rgba(23,26,32,.10)}
.frail-nav svg{width:18px;height:18px}
.frail-prev{left:-18px}.frail-next{right:-18px}
@media(min-width:1000px){.frail-nav{display:flex}}
@media(prefers-reduced-motion:reduce){.frail-card img,.frail-card .fc-plus,.frail-card .fc-body{transition:none}
  .frail-card:hover img{transform:none}}

/* ---- three figures with hairline dividers ------------------------------------------------- */
.stat3{display:grid;grid-template-columns:repeat(3,1fr);width:min(960px,100%);
  margin:clamp(30px,5vh,54px) auto 0}
.stat3>div{padding:6px 18px;border-left:1px solid var(--line);text-align:center}
.stat3>div:first-child{border-left:0}
.stat3 strong{display:block;font-size:clamp(1.9rem,4.2vw,3rem);font-weight:500;color:var(--ink);
  letter-spacing:-.02em;line-height:1;font-variant-numeric:tabular-nums}
.stat3 strong small{font-size:.42em;font-weight:400;color:var(--faint);margin-left:3px;letter-spacing:0}
.stat3 span{display:block;margin-top:10px;font-size:.78rem;color:var(--faint);letter-spacing:.06em;
  text-transform:uppercase;line-height:1.35}
.panel--dark .stat3>div{border-color:rgba(255,255,255,.16)}
.panel--dark .stat3 strong{color:#fff}
.panel--dark .stat3 strong small,.panel--dark .stat3 span{color:#b7bbc0}
@media(max-width:560px){
  .stat3{grid-template-columns:1fr}
  .stat3>div{border-left:0;border-top:1px solid var(--line);padding:18px 0}
  .stat3>div:first-child{border-top:0}
  .panel--dark .stat3>div{border-color:rgba(255,255,255,.16)}
}

/* ---- 50/50 media + copy ------------------------------------------------------------------- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(26px,5vw,72px);align-items:center;
  width:min(1160px,100%);margin:0 auto;text-align:left}
.split--rev .split-media{order:2}
.split-media{min-width:0}
.split-media img,.split-media .vloop{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;
  border-radius:var(--radius);display:block}
.split-media .vloop{margin:0}
.split-copy{min-width:0}
.split-copy .eyebrow{display:block;margin-bottom:14px}
.split-copy h2{margin-bottom:14px}
.split-copy .sub{margin-inline:0;max-width:34em;margin-bottom:0}
.split-list{list-style:none;margin-top:22px;display:grid;gap:16px}
.split-list li{padding-left:18px;border-left:2px solid var(--line)}
.split-list b{display:block;color:var(--ink);font-weight:600;font-size:.98rem}
.split-list span{display:block;font-size:.9rem;color:var(--body);margin-top:2px}
.split-cta{margin-top:26px;display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:820px){
  .split{grid-template-columns:1fr;gap:22px}
  .split--rev .split-media{order:0}
  .split-media img,.split-media .vloop{aspect-ratio:3/2}
}

/* ---- full-bleed benefit panel -------------------------------------------------------------- */
.bleed{position:relative;width:100%;min-height:clamp(440px,64vh,660px);overflow:hidden;
  color:#fff;display:flex;align-items:flex-end;isolation:isolate}
.bleed>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:var(--bleed-pos,center);z-index:0}
.bleed::after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(10,12,16,.05) 30%,rgba(10,12,16,.72) 100%)}
.bleed-copy{position:relative;z-index:2;width:min(1160px,100%);margin:0 auto;
  padding:clamp(28px,5vw,56px) clamp(18px,5vw,48px);text-align:left}
.bleed-copy .eyebrow{color:rgba(255,255,255,.75);display:block;margin-bottom:12px}
.bleed-copy h2{color:#fff;margin-bottom:10px}
.bleed-copy .sub{color:rgba(255,255,255,.9);margin-inline:0;max-width:34em}
.bleed-list{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:22px;
  margin-top:26px;max-width:900px}
.bleed-list b{display:block;font-weight:600;font-size:.98rem}
.bleed-list span{display:block;font-size:.88rem;color:rgba(255,255,255,.82);margin-top:3px}
@media(max-width:700px){.bleed-list{grid-template-columns:1fr;gap:14px}.bleed{min-height:clamp(380px,72vh,560px)}}

/* ---- lazy video loop (poster first; the clip only ever arrives on request) ----------------- */
.vloop{position:relative;width:min(1160px,100%);margin:clamp(24px,4vh,40px) auto 0;
  border-radius:var(--radius);overflow:hidden;background:#0e1013;aspect-ratio:16/9;isolation:isolate}
.vloop--wide{aspect-ratio:21/9}
.vloop--full{width:100%;border-radius:0;margin:0}
.vloop>img,.vloop>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.vloop>video{opacity:0;transition:opacity .7s var(--ease)}
.vloop>video.playing{opacity:1}
.vloop-cap{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:clamp(18px,4vw,36px);
  color:#fff;background:linear-gradient(180deg,rgba(10,12,16,0),rgba(10,12,16,.72));text-align:left}
.vloop-cap b{display:block;font-size:clamp(1.1rem,2vw,1.5rem);font-weight:500;letter-spacing:-.01em}
.vloop-cap span{display:block;font-size:.88rem;color:rgba(255,255,255,.82);margin-top:4px;max-width:52ch}
@media(prefers-reduced-motion:reduce){.vloop>video{display:none}}
/* Phones: a 16:9 frame is ~210px tall at 375px wide, and the title overlay was landing on top of
   the caption. Tesla goes portrait on mobile; so do we — the clip is object-fit: cover either way. */
@media(max-width:640px){
  .vloop,.vloop--wide{aspect-ratio:4/5}
  .vloop-cap b{font-size:1.05rem}
  .vloop-cap span{font-size:.82rem}
}

/* ---- specs table ---------------------------------------------------------------------------- */
.spec{width:min(880px,100%);margin:clamp(30px,5vh,54px) auto 0;text-align:left}
.spec h3{font-size:.76rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--faint);margin:30px 0 4px}
.spec h3:first-child{margin-top:0}
.spec dl{margin:0}
.spec .row{display:grid;grid-template-columns:minmax(150px,.42fr) 1fr;gap:16px;padding:14px 0;
  border-bottom:1px solid var(--line)}
.spec dt{color:var(--body);font-size:.92rem}
.spec dd{color:var(--ink);font-weight:500;margin:0;font-size:.95rem}
.spec dd small{display:block;font-weight:400;color:var(--body);font-size:.84rem;margin-top:2px}
@media(max-width:560px){.spec .row{grid-template-columns:1fr;gap:4px;padding:12px 0}}

/* ---- homepage vehicle tiles ----------------------------------------------------------------- */
.tiles{display:grid;gap:14px;width:min(1160px,100%);margin:clamp(30px,5vh,50px) auto 0}
.tile{position:relative;overflow:hidden;border-radius:var(--radius);
  min-height:clamp(340px,46vw,540px);display:flex;flex-direction:column;justify-content:space-between;
  padding:clamp(22px,3.5vw,44px);text-align:left;color:#fff;isolation:isolate}
.tile>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:var(--tile-pos,center);z-index:0;transition:transform 1.2s var(--ease)}
.tile:hover>img{transform:scale(1.025)}
.tile::after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(10,12,16,.42) 0%,rgba(10,12,16,.06) 40%,rgba(10,12,16,.62) 100%)}
.tile>*:not(img){position:relative;z-index:2}
.tile .eyebrow{color:rgba(255,255,255,.78)}
.tile h3{font-size:clamp(1.9rem,3.8vw,2.7rem);font-weight:500;color:#fff;letter-spacing:-.02em;margin-top:8px}
/* Pricing: three tiles side by side on desktop, stacked below 900px. */
@media(min-width:900px){.tiles--3{grid-template-columns:repeat(3,1fr)}.tiles--3 .tile{min-height:clamp(380px,34vw,480px)}}
.tile-per{font-size:.5em;font-weight:400;color:rgba(255,255,255,.8);margin-left:2px}
.tile-tiers{font-size:.82rem;color:rgba(255,255,255,.8);margin-top:8px}
.tile-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap}
.tile-price{font-size:1.05rem;font-weight:500}
.tile-price span{font-weight:400;color:rgba(255,255,255,.78);font-size:.9rem}
.tile-price small{display:block;font-size:.8rem;color:rgba(255,255,255,.75);font-weight:400;margin-top:2px}
.tile-cta{display:flex;gap:10px;flex-wrap:wrap}
.tile-cta .btn{min-width:0}
.tile-chip{display:inline-block;font-size:.7rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  padding:5px 10px;border-radius:4px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.35);margin-top:12px}
@media(max-width:560px){
  .tile{min-height:clamp(380px,88vw,480px)}
  .tile-cta{width:100%}.tile-cta .btn{flex:1}
}
@media(prefers-reduced-motion:reduce){.tile>img{transition:none}.tile:hover>img{transform:none}}

/* ---- how-it-works chapters ------------------------------------------------------------------ */
.chapters{width:min(1060px,100%);margin:0 auto;padding:0 clamp(18px,5vw,48px)}
.chapter{display:grid;grid-template-columns:56px 1fr 1fr;gap:clamp(18px,3vw,44px);align-items:center;
  padding:clamp(30px,5vh,52px) 0;border-top:1px solid var(--line);text-align:left}
.chapter:first-child{border-top:0}
.chapter--rev .chapter-media{order:3}
.chapter-n{font-size:2.2rem;font-weight:500;color:var(--faint);line-height:1;letter-spacing:-.02em;
  font-variant-numeric:tabular-nums}
.chapter-media img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius);display:block}
.chapter-copy h2{font-size:clamp(1.4rem,2.6vw,1.9rem);margin-bottom:10px}
.chapter-copy p{max-width:36em}
.chapter-meta{display:flex;gap:28px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.chapter-meta span{display:block;font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:var(--faint)}
.chapter-meta strong{display:block;font-weight:500;color:var(--ink);font-size:.92rem;margin-top:3px}
@media(max-width:820px){
  .chapter{grid-template-columns:1fr;gap:16px}
  .chapter--rev .chapter-media{order:0}
  .chapter-n{font-size:1.4rem}
}

/* A split with no media column (Ben dropped the standalone photos on the model pages, 2026-09-02). */
.split--solo{display:block;max-width:960px;margin:0 auto;text-align:center}
.split--solo .split-copy{padding:0}
.split--solo .sub{margin-left:auto;margin-right:auto;max-width:640px}
.split--solo .split-list{display:grid;grid-template-columns:repeat(3,1fr);gap:22px clamp(18px,3vw,36px);text-align:left;margin-top:clamp(26px,4vh,40px)}
@media(max-width:700px){.split--solo .split-list{grid-template-columns:1fr}}

/* ---- Phase 3 (2026-09-02): the rest of Tesla's section anatomy ------------------------------ */
/* Feature grid — the "Seat Five / Load Up / Settle In" pattern: bold title, one sentence. */
.feat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(18px,3vw,36px);
  width:min(1160px,100%);margin:clamp(30px,5vh,54px) auto 0;text-align:left}
.feat-grid--3{grid-template-columns:repeat(3,1fr);width:min(1060px,100%)}
.feat-grid b{display:block;font-size:1.15rem;font-weight:600;color:var(--ink);letter-spacing:-.01em;margin-bottom:8px}
.feat-grid p{font-size:.95rem;color:var(--body)}
.panel--dark .feat-grid b{color:#fff}
.panel--dark .feat-grid p{color:#b7bbc0}
@media(max-width:900px){.feat-grid,.feat-grid--3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.feat-grid,.feat-grid--3{grid-template-columns:1fr;gap:22px}}
/* Explore: the studio car, full width, under a centred heading. */
.explore-img{width:min(1160px,100%);height:auto;margin:clamp(18px,3vh,30px) auto 0;
  border-radius:var(--radius);display:block}
/* Centred label over a media frame ("Phone Key", "All the Range You Need"). */
.vloop-title{position:absolute;left:0;right:0;top:clamp(18px,4vw,36px);z-index:2;margin:0;
  text-align:center;color:#fff;font-size:clamp(1.3rem,2.6vw,2rem);font-weight:500;
  letter-spacing:-.01em;text-shadow:0 1px 14px rgba(0,0,0,.45);padding:0 16px}
/* Step cards — the numbered light-grey cards from Tesla's "Future of Travel" row. */
.stepcards{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:14px;
  width:min(1160px,100%);margin:clamp(30px,5vh,50px) auto 0;text-align:left}
.stepcard{background:var(--bg-soft);border-radius:var(--radius);padding:clamp(20px,2.4vw,30px);
  display:flex;flex-direction:column;min-height:280px}
.stepcard .sc-n{font-size:1.5rem;font-weight:500;color:var(--faint);letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;margin:0}
.stepcard h3{font-size:1.2rem;margin:14px 0 8px}
.stepcard p:not(.sc-n){font-size:.92rem;color:var(--body);flex:1}
.stepcard .sc-meta{display:flex;gap:18px;margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.stepcard .sc-meta span{display:block;font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;color:var(--faint)}
.stepcard .sc-meta strong{display:block;font-weight:500;color:var(--ink);font-size:.88rem;margin-top:2px}
