/* AC Auto Mart — tokens and shared components. Light, structured, one gradient. */
/* self-hosted variable fonts (latin), from Google Fonts' static files; swap so text never waits for them */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-tight.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/geist-mono.woff2') format('woff2'); }
:root {
  --bg: #FFFFFF;
  --bg-2: #F6F8FB;
  --surface: #FFFFFF;
  --surface-2: #F1F4F8;
  --ink: #0A1F3D;
  --ink-70: rgba(10, 31, 61, .72);
  --ink-50: rgba(10, 31, 61, .64);
  --ink-30: rgba(10, 31, 61, .42);
  --ink-12: rgba(10, 31, 61, .12);
  --hair: rgba(10, 31, 61, .1);
  --cobalt: #3B5BFF;
  --cobalt-ink: #2E4BE6;
  --cobalt-soft: rgba(59, 91, 255, .1);
  --cobalt-glow: rgba(59, 91, 255, .3);
  --violet: #8B5CF6;
  --teal: #19C3B5;
  --gold: #D9951C;
  --gold-soft: rgba(217, 149, 28, .12);
  --slate: #5B6B82;
  --slate-soft: rgba(91, 107, 130, .12);
  --danger: #E5484D;
  --grad: linear-gradient(100deg, var(--cobalt), var(--violet) 55%, var(--teal));
  /* aliases used by the shop */
  --paper: var(--bg); --paper-2: var(--surface-2); --white: var(--surface); --green: var(--cobalt); --green-ink: var(--cobalt-ink); --green-soft: var(--cobalt-soft); --amber: var(--gold); --amber-soft: var(--gold-soft);
  --glass: rgba(255, 255, 255, .8); --glass-strong: rgba(255, 255, 255, .92);
  --shadow: 0 1px 2px rgba(10, 31, 61, .04), 0 12px 32px rgba(10, 31, 61, .08);
  --shadow-lg: 0 2px 4px rgba(10, 31, 61, .04), 0 30px 70px rgba(10, 31, 61, .14);

  --head: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;

  --h-hero: clamp(40px, 5.4vw, 72px);
  --h-section: clamp(28px, 3.2vw, 44px);
  --body: 16.5px;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px;
  --gutter: clamp(16px, 6vw, 96px);
  --max: 1240px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-ui: 180ms;
  --nav-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--body); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto; }
.mono { font-family: var(--mono); letter-spacing: .01em; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: var(--h-hero); }
h2 { font-size: var(--h-section); }
h3 { font-size: 19px; letter-spacing: -.02em; line-height: 1.2; }
.eyebrow { font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--cobalt); margin: 0 0 var(--s2); display: block; }
.lede { margin: var(--s3) 0 0; font-size: 18px; line-height: 1.55; color: var(--ink-70); max-width: 50ch; text-wrap: pretty; }
.hair { border: 0; height: 1px; background: var(--hair); margin: 0; }
main, footer { position: relative; z-index: 1; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap; transition: background var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease), transform var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(10, 31, 61, .2); }
.btn-primary:hover { background: #142c52; transform: translateY(-1px); }
.btn-accent { background: var(--cobalt); color: #fff; box-shadow: 0 8px 20px var(--cobalt-glow); }
.btn-accent:hover { background: var(--cobalt-ink); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border: 1px solid var(--ink-12); color: var(--ink); box-shadow: 0 1px 2px rgba(10, 31, 61, .05); }
.btn-ghost:hover { border-color: var(--ink-30); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn[hidden] { display: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 0 var(--gutter); background: rgba(255, 255, 255, .8); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid var(--hair); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; font-size: 18px; letter-spacing: -.03em; white-space: nowrap; }
.wordmark .wm-box { display: inline-grid; place-items: center; width: 30px; height: 24px; border-radius: 6px; background: var(--grad); color: #fff; font-family: var(--mono); font-size: 10.5px; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: var(--s4); font-size: 14.5px; font-weight: 500; }
.nav-links a { color: var(--ink-70); transition: color var(--t-ui) var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }

/* surfaces + tags */
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); box-shadow: var(--shadow); }
.tag { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px 0 8px; border: 1px solid var(--hair); border-radius: 6px; background: var(--surface-2); font-family: var(--mono); font-size: 12px; letter-spacing: .02em; position: relative; white-space: nowrap; }
.tag::before { content: ''; width: 8px; height: 8px; border-radius: 1px; background: var(--slate); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.tag.is-nos::before { background: var(--gold); }
.tag.is-used::before { background: var(--slate); }
.lane { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; }
.lane.is-nos { background: var(--gold-soft); color: #9A6A10; }
.lane.is-used { background: var(--slate-soft); color: var(--slate); }

/* fields */
.field { display: flex; gap: 6px; padding: 5px 5px 5px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--ink-12); box-shadow: var(--shadow); transition: border-color var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease); }
.field:focus-within { border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft), var(--shadow); }
.field input { flex: 1 1 0; width: 0; min-width: 0; height: 38px; border: 0; background: transparent; outline: 0; font-size: 15px; color: var(--ink); }
.field input::placeholder { color: var(--ink-30); }
.field .btn { height: 38px; }
.field-msg { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--cobalt); min-height: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-70); background: var(--surface); border: 1px solid var(--ink-12); transition: border-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease), background var(--t-ui) var(--ease); }
.chip:hover { border-color: var(--ink-30); color: var(--ink); }
.chip.is-active { border-color: var(--cobalt); color: var(--cobalt-ink); background: var(--cobalt-soft); }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-70); cursor: pointer; }
.toggle .sw { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--ink-30); transition: background var(--t-ui) var(--ease); }
.toggle .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform var(--t-ui) var(--ease); }
.toggle input:checked ~ .sw { background: var(--cobalt); }
.toggle input:checked ~ .sw::after { transform: translateX(16px); }
.toggle input:focus-visible ~ .sw { outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* saved car pill in the nav */
.garage { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border-radius: 999px; border: 1px solid var(--ink-12); background: var(--surface); font-size: 13px; color: var(--ink); max-width: 240px; }
.garage[hidden] { display: none; }
.garage .g-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-50); }
.garage .g-v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.garage .g-x { width: 22px; height: 22px; border-radius: 50%; color: var(--ink-50); font-size: 16px; line-height: 1; display: grid; place-items: center; }
.garage .g-x:hover { background: var(--surface-2); color: var(--ink); }
@media (max-width: 760px) { .garage { display: none; } }

/* skip link */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; }
.skip-link:focus { top: 12px; }

/* phone menu */
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--ink-12); background: var(--surface); position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform var(--t-ui) var(--ease), top var(--t-ui) var(--ease); }
.menu-btn span:first-child { top: 14px; } .menu-btn span:last-child { top: 24px; }
.menu-btn.is-open span:first-child { top: 19px; transform: rotate(45deg); } .menu-btn.is-open span:last-child { top: 19px; transform: rotate(-45deg); }
.menu-sheet { display: none; position: fixed; left: 0; right: 0; top: var(--nav-h); z-index: 19; padding: 10px 16px 18px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--hair); box-shadow: var(--shadow-lg); flex-direction: column; gap: 2px; }
.menu-sheet[hidden] { display: none; }
.menu-sheet a { padding: 12px 10px; border-radius: 10px; font-size: 17px; font-weight: 500; color: var(--ink); }
.menu-sheet a:hover { background: var(--surface-2); }
.menu-sheet a.btn { margin-top: 10px; justify-content: center; color: #fff; }
.menu-sheet a.btn:hover { color: #fff; background: #142c52; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* footer */
footer { padding: var(--s5) 0 var(--s4); border-top: 1px solid var(--hair); background: var(--bg-2); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s4); font-size: 14.5px; color: var(--ink-70); }
.foot h4, .foot h3 { margin: 0 0 10px; font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.foot li { overflow-wrap: anywhere; }
.foot a:hover { color: var(--ink); }
.foot-slim { border-top: 0; margin-top: 0; padding-top: 0; }
.foot-bottom a { padding: 6px 0; display: inline-block; }
.foot-bottom { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--hair); font-size: 12.5px; color: var(--ink-50); }

@media (max-width: 760px) {
  :root { --nav-h: 58px; }
  .nav-links { gap: var(--s2); }
  .nav-links a:not(.btn):not(.keep) { display: none; }
  .menu-btn { display: block; margin-left: 8px; }
  .menu-sheet:not([hidden]) { display: flex; }
  .lede { font-size: 16.5px; }
  .foot { grid-template-columns: 1fr 1fr; }
}

/* reviews: nav link, drawer, part-page block, landing section */
.rv-pct { display: inline-block; margin-left: 5px; padding: 1px 7px; border-radius: 999px; background: rgba(25, 195, 181, .14); color: #0B7F75; font-size: 11.5px; font-weight: 600; }
#navReviews[hidden] { display: none; }
.rv-wrap[hidden] { display: none; }
.rv-scrim { position: fixed; inset: 0; z-index: 24; background: rgba(10, 31, 61, .18); }
.rv-drawer { position: fixed; top: calc(var(--nav-h) + 12px); right: 12px; bottom: 12px; width: min(440px, calc(100% - 24px)); z-index: 25; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: rv-in 220ms var(--ease); }
@keyframes rv-in { from { opacity: 0; transform: translateX(12px); } }
@media (prefers-reduced-motion: reduce) { .rv-drawer { animation: none; } }
.rv-dh { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hair); font-size: 15px; color: var(--ink-70); }
.rv-dh b { color: var(--ink); font-weight: 600; }
.rv-dsub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-50); }
.rv-dh .x { font-size: 22px; line-height: 1; color: var(--ink-50); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.rv-dh .x:hover { background: var(--surface-2); color: var(--ink); }
.rv-dlist { flex: 1; overflow: auto; padding: 6px 20px; display: flex; flex-direction: column; }
.rv-df { padding: 12px 20px 16px; border-top: 1px solid var(--hair); display: flex; justify-content: center; }
.rv { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.rv:last-child { border-bottom: 0; }
.rv blockquote { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.rv figcaption { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 12.5px; color: var(--ink-50); }
.rv-who { font-weight: 600; color: var(--ink-70); }
.rv-item { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-50); }
.rv-item:hover { color: var(--cobalt-ink); }
.rv-mini { padding: 18px 22px; }
.rv-mini-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.rv-mini-h .card-h { margin: 0; }
.rv-mini-pct { font-size: 12.5px; color: #0B7F75; font-weight: 600; }
.rv-mini-q { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-70); }
.rv-mini-q span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-50); }
.rv-mini .linkish { margin-top: 12px; font-size: 13.5px; color: var(--cobalt-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) { .pdp .rv-mini { order: 9; } }
.reviews-s[hidden] { display: none; }
.reviews-s { padding: var(--s6) 0; background: var(--bg-2); border-top: 1px solid var(--hair); }
.rv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s3); flex-wrap: wrap; }
.rv-head h2 b { font-weight: 600; }
.rv-head .lede { margin-top: 10px; }
.rv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s4); }
.rv-grid .rv { padding: 22px 24px; border: 1px solid var(--hair); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.rv-grid .rv blockquote::before { content: '\201C'; display: block; font-family: var(--head); font-size: 40px; line-height: .6; color: var(--cobalt); margin-bottom: 10px; }
.rv-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--s3); }
@media (max-width: 1100px) { .rv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .rv-grid { grid-template-columns: 1fr; gap: 12px; } .rv-drawer { top: auto; right: 0; left: 0; bottom: 0; width: 100%; max-height: 86vh; border-radius: 18px 18px 0 0; } }
