/* ─── websites.car-search.ai — the dealer-website product page ───────────────
   Sits on the shared CarSearch AI system (/css/csai-site.css: tokens incl. dark mode, menu, nav, hero, buttons,
   device frames, call to action, footer). Only this page's own components live here: the hero's two-way split and
   note, the ten reasons, the numbered sections and the collapsible features. Every colour is a token. */
body { counter-reset: sec; }

/* ── Hero extras ── */
.two { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 26px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.two a { display: block; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--hero-line); background: var(--hero-card); color: var(--hero-fg); text-decoration: none; }
.two a:hover { background: var(--hero-card-hover); }
.two .n { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .1em; color: var(--amber-2); margin-bottom: 6px; }
.two b { display: block; font-size: 17px; }
.two span { display: block; color: var(--hero-muted); font-size: 14px; margin-top: 4px; }
.hero-note { margin: 22px 0 0; color: var(--hero-dim); font-size: 13.5px; }
.hero-note i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 12px var(--blue-glow); margin-right: 8px; vertical-align: middle; }
.hero-shots .phone { display: none; }
@media (min-width: 900px) { .hero-shots .phone { display: block; position: absolute; right: -8px; bottom: -36px; width: 150px; box-shadow: var(--shadow-lg); } }

/* ── The reasons ── */
.why { padding: 56px 0 24px; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 26px; counter-reset: why; }
@media (min-width: 700px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why-grid a { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--text); text-decoration: none; box-shadow: var(--shadow); counter-increment: why; }
.why-grid a:hover { border-color: var(--blue-2); }
.why-grid a::before { content: counter(why); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; font-weight: 800; font-size: 17px; color: var(--on-blue); background: linear-gradient(135deg, var(--blue), var(--blue-2)); box-shadow: 0 8px 24px -8px var(--blue-glow); }
.why-grid a:nth-child(-n+6)::before { background: linear-gradient(135deg, var(--amber), var(--amber-2)); color: var(--on-amber); }
.why-grid b, .why-grid span { grid-column: 2; }   /* the number is column 1; the title and the line under it share column 2 */
.why-grid b { display: block; font-size: 16.5px; color: var(--text); letter-spacing: -.01em; }
.why-grid span { display: block; color: var(--muted); font-size: 14.5px; margin-top: -8px; }

/* ── Sections ── */
.section { padding: 56px 0 24px; counter-increment: sec; counter-reset: feat; }
.section.alt { background: var(--mist); }
.section-head { max-width: 780px; margin: 0 0 28px; }
.section-head .num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; font-weight: 800; font-size: 20px; color: var(--on-blue); background: linear-gradient(135deg, var(--blue), var(--blue-2)); box-shadow: 0 8px 24px -8px var(--blue-glow); margin-bottom: 14px; }
.section-head .num.amber { background: linear-gradient(135deg, var(--amber), var(--amber-2)); color: var(--on-amber); }
.section-head p { color: var(--muted); margin: 14px 0 0; font-size: 1.02rem; }
.section-head p b { color: var(--text); }
.tools { display: flex; gap: 8px; margin: 18px 0 0; }
.tools button { font: inherit; font-size: 13px; font-weight: 700; padding: 8px 14px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--text); cursor: pointer; }
.tools button:hover { border-color: var(--blue); color: var(--blue); }

/* ── Collapsible features ── */
.feat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; box-shadow: var(--shadow); overflow: hidden; counter-increment: feat; }
.feat summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr 28px; gap: 14px; align-items: center; padding: 16px 18px; }
.feat summary::-webkit-details-marker { display: none; }
.feat summary:focus-visible { outline: 3px solid var(--blue-2); outline-offset: -3px; }
.feat[open] summary { border-bottom: 1px solid var(--line); background: var(--mist); }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mist); border: 1px solid var(--line); color: var(--blue); }
.feat[open] .ico { background: var(--paper); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sum { min-width: 0; }
.sum .name { display: block; font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: var(--text); }
.sum .name::before { content: counter(sec) "." counter(feat) "  "; color: var(--muted-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.sum .out { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.chev { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); transition: transform .2s ease; }
.chev::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.feat[open] .chev { transform: rotate(180deg); }
.body { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 18px 18px 22px; }
@media (min-width: 760px) { .body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; } }
.copy ul { margin: 0; padding: 0 0 0 20px; }
.copy li { margin: 0 0 10px; }
.copy li:last-child { margin-bottom: 0; }
.copy li b { color: var(--text); }
.art .device { max-width: 560px; }
.pair { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair .device-bar .device-url { font-weight: 700; }
.pair .before .device-url { color: var(--amber); }
.pair .after .device-url { color: var(--ok); }

/* ── Print (the sales-package PDF): every section open, numbered, nothing interactive ── */
body.print .csai-bar, body.print .cs-nav, body.print .tools, body.print .hero-shots, body.print .cs-hero-cta, body.print .cs-cta, body.print .cs-footer { display: none; }
body.print .feat { break-inside: avoid; box-shadow: none; }
body.print .cs-hero { background: var(--navy); }
body.print .cs-hero-inner, body.print .why-grid, body.print .body, body.print .two, body.print .pair { grid-template-columns: 1fr; }
body.print .art { max-width: 540px; }
body.print .cs-hero-inner { padding-top: 32px; padding-bottom: 32px; }
@media print {
  .csai-bar, .cs-nav, .tools, .hero-shots, .cs-hero-cta, .cs-cta, .cs-footer { display: none; }
  .feat { break-inside: avoid; box-shadow: none; }
  .cs-hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
