/* Expert Car Deals — site styles
   Brand colors come from the logo: cyan #5ce1e6 and yellow #ffde59 on deep navy. */

:root {
  --navy-950: #061426;
  --navy-900: #0b1e33;
  --navy-800: #122b47;
  --navy-700: #1b3a5c;
  --cyan: #5ce1e6;
  --teal: #0a6f7a;          /* cyan darkened for text/links on white (AA contrast) */
  --yellow: #ffde59;
  --yellow-600: #f5cc2a;
  --ink: #0f1b2a;
  --muted: #4a5a6c;
  --line: #dde5ec;
  --bg: #ffffff;
  --bg-soft: #f2f6f9;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(6, 20, 38, 0.10);
  --container: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::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;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--navy-900); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 750; }
p { margin: 0 0 1em; }

.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;
}
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--navy-900); padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy-900); color: #d7e3ee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .inline-cta .eyebrow { color: var(--cyan); }
.lead { font-size: 1.2rem; color: var(--muted); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 750; font-size: 1rem; line-height: 1;
  padding: 16px 26px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--navy-900); box-shadow: 0 6px 18px rgba(255, 222, 89, 0.35); }
.btn-primary:hover { background: var(--yellow-600); color: var(--navy-900); }
.btn-secondary { background: var(--navy-900); color: #fff; }
.btn-secondary:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 11px 18px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header { background: var(--navy-950); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand img { width: 170px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: #d7e3ee; text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--cyan); }
.site-nav .btn-primary { color: var(--navy-900); }
.site-nav .nav-phone { color: #fff; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .2s;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    background: var(--navy-950); border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .site-nav .btn { margin-top: 14px; border-bottom: 0; }
  .brand img { width: 150px; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(92, 225, 230, 0.18), transparent 60%),
    radial-gradient(600px 400px at -10% 110%, rgba(255, 222, 89, 0.10), transparent 60%),
    var(--navy-900);
  color: #cfdbe7; padding: clamp(56px, 9vw, 110px) 0;
}
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--yellow); }
.hero .lead { color: #b9c9d9; max-width: 36em; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; font-size: 0.95rem; color: #b9c9d9; }
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row li::before { content: ""; width: 18px; height: 18px; flex: none; background: var(--cyan); -webkit-mask: var(--check) center/contain no-repeat; mask: var(--check) center/contain no-repeat; }

.deal-card {
  background: #fff; color: var(--ink); border-radius: 18px; padding: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); position: relative;
}
.deal-card::before { content: ""; position: absolute; inset: auto 24px -10px 24px; height: 10px; background: var(--yellow); border-radius: 0 0 12px 12px; z-index: -1; }
.deal-card h2 { font-size: 1.15rem; margin-bottom: 4px; }
.deal-card .sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.deal-steps { list-style: none; margin: 0; padding: 0; }
.deal-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px dashed var(--line); }
.deal-steps li:first-child { border-top: 0; }
.deal-steps .who { margin-left: auto; font-size: 0.78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.who-us { background: #dff7f8; color: var(--teal); }
.who-you { background: #fff5cc; color: #7a5b00; }
.deal-steps .ico { width: 22px; height: 22px; flex: none; margin-top: 2px; background: var(--teal); -webkit-mask: var(--check) center/contain no-repeat; mask: var(--check) center/contain no-repeat; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* shared check icon */
:root { --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.2-4.3-4.3 1.4-1.4 2.9 2.9 5.7-5.7 1.4 1.4-7.1 7.1z'/%3E%3C/svg%3E"); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p:last-child { margin-bottom: 0; }
.section-dark .card { background: var(--navy-800); border-color: rgba(255,255,255,0.08); color: #c5d3e1; }
.pain-card .num { display: inline-block; font-weight: 800; color: var(--yellow); font-size: 0.9rem; letter-spacing: .08em; margin-bottom: 10px; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
  background: var(--navy-900); color: var(--yellow);
}
.step p { color: var(--muted); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 920px; margin: 0 auto; align-items: stretch; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 34px 30px; box-shadow: var(--shadow);
}
.plan-featured { border: 2px solid var(--navy-900); position: relative; }
.plan-tag { font-size: 0.78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.plan-featured .plan-tag { color: var(--navy-900); background: var(--yellow); align-self: flex-start; padding: 4px 10px; border-radius: 999px; }
.plan h2, .plan h3 { font-size: 1.45rem; margin-bottom: 6px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 8px; color: var(--muted); }
.plan-price strong { font-size: 2.8rem; line-height: 1; color: var(--navy-900); letter-spacing: -0.03em; }
.plan-desc { color: var(--muted); }
.plan .btn { margin-top: auto; }
.checks { list-style: none; padding: 0; margin: 8px 0 28px; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: var(--teal); -webkit-mask: var(--check) center/contain no-repeat; mask: var(--check) center/contain no-repeat; }
.section-dark .checks li::before { background: var(--cyan); }
.plans-note { text-align: center; color: var(--muted); margin-top: 28px; font-size: 0.98rem; }

/* ---------- About teaser / quote ---------- */
.quote-block { display: grid; grid-template-columns: 120px 1fr; gap: 32px; align-items: start; max-width: 900px; margin: 0 auto; }
.quote-mark { width: 120px; height: 120px; border-radius: 50%; background: var(--navy-900); display: grid; place-items: center; }
.quote-mark img { width: 78px; }
blockquote { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.55; color: var(--navy-900); font-weight: 500; }
blockquote footer { margin-top: 14px; font-size: 1rem; color: var(--muted); font-weight: 600; }
@media (max-width: 640px) { .quote-block { grid-template-columns: 1fr; } .quote-mark { width: 84px; height: 84px; } .quote-mark img { width: 54px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.1rem; color: var(--navy-900);
  padding: 18px 40px 18px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.7rem; font-weight: 400; color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-900); color: #cfdbe7; text-align: center; padding: clamp(56px, 8vw, 90px) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--cyan), var(--yellow)); }
.cta-band h2 { color: #fff; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy-900); color: #b9c9d9; padding: clamp(48px, 7vw, 80px) 0; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #b9c9d9; max-width: 40em; margin-bottom: 0; }
.breadcrumbs { font-size: 0.9rem; margin-bottom: 14px; }
.breadcrumbs a { color: var(--cyan); text-decoration: none; }
.breadcrumbs span { color: #8aa0b6; }

/* ---------- Prose (about, guides, privacy) ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose .meta { color: var(--muted); font-size: 0.95rem; }
.callout { background: var(--bg-soft); border-left: 4px solid var(--yellow); border-radius: var(--radius-sm); padding: 20px 24px; margin: 28px 0; }
.callout p:last-child { margin-bottom: 0; }
.inline-cta { background: var(--navy-900); color: #cfdbe7; border-radius: var(--radius); padding: 30px; margin: 40px 0 0; }
.inline-cta h2, .inline-cta h3 { color: #fff; margin-top: 0; }
.inline-cta .hero-actions { margin: 18px 0 0; }

/* ---------- Guide cards ---------- */
.guide-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.guide-card:hover { border-color: var(--teal); transform: translateY(-2px); color: inherit; }
.guide-card h2, .guide-card h3 { font-size: 1.2rem; }
.prose .related-title { font-size: 1.3rem; }
.guide-card p { color: var(--muted); }
.guide-card .more { margin-top: auto; font-weight: 700; color: var(--teal); }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; color: var(--navy-900); }
.field .opt, .form-legend .opt { font-weight: 500; color: var(--muted); }
.form-legend { font-weight: 700; color: var(--navy-900); margin-bottom: 14px; padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid #c9d5e0; border-radius: var(--radius-sm); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10, 111, 122, 0.18); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.hp { position: absolute !important; left: -5000px !important; }

.plan-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .plan-picker { grid-template-columns: 1fr; } }
.plan-option { position: relative; }
.plan-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.plan-option label {
  display: block; height: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 16px 16px 14px;
  cursor: pointer; margin: 0; font-weight: 500; transition: border-color .15s, background .15s;
}
.plan-option .po-name { display: block; font-weight: 800; color: var(--navy-900); }
.plan-option .po-price { display: block; font-size: 1.5rem; font-weight: 800; color: var(--navy-900); margin: 2px 0; }
.plan-option .po-desc { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.plan-option input:checked + label { border-color: var(--teal); background: #eefafb; box-shadow: 0 0 0 3px rgba(10,111,122,.15); }
.plan-option input:focus-visible + label { outline: 3px solid var(--cyan); outline-offset: 2px; }

.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); display: none; }
.form-status.error { display: block; background: #fdecec; color: #8a1c1c; }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 14px 0 0; }

.side-card { background: var(--bg-soft); border-radius: 18px; padding: 28px; }
.side-card h2 { font-size: 1.3rem; }
.side-card .big-phone { display: inline-block; font-size: 1.5rem; font-weight: 800; color: var(--navy-900); text-decoration: none; margin: 4px 0 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb2c6; padding: 64px 0 28px; font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img { width: 190px; margin-bottom: 14px; }
.site-footer h2 { font-size: 0.85rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfdbe7; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.88rem; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(6, 20, 38, 0.96);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .mobile-cta .btn { flex: 1; padding: 14px 10px; }
  body.has-mobile-cta { padding-bottom: 76px; }
}
.form-title { font-size: 1.5rem; }
