/* =========================================================================
   Enewest — Landing Page Stylesheet (V3 — single-page lead form)
   Mobile-first. No framework. Custom properties drive the whole palette.
   ========================================================================= */

/* ---------- Design tokens ------------------------------------------------ */
:root {
  --navy-950: #081226;
  --navy-900: #0b1f3a; /* Enewest primary navy */
  --navy-800: #12294f;
  --navy-700: #1b3a6b;
  --blue-600: #2354a6;
  --blue-100: #e8f0fc;

  --cta: #ff6b00; /* Enewest accent orange */
  --cta-dark: #e05c00;
  --cta-contrast: #ffffff;
  --gold: #ffc93c;

  --whatsapp: #25d366;
  --whatsapp-dark: #1fb959;

  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;

  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-alt: #f1f5fb;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --text-900: #0f172a;
  --text-700: #334155;
  --text-600: #475569;
  --text-400: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(8, 18, 38, 0.22);

  --header-h: 58px;
  --container-w: 1180px;
  --container-w-narrow: 720px;

  /* Inter for Latin text/numerals (loaded on index.html only — see its
     <head>); Chinese glyphs always render via the native system CJK fonts
     below, since Inter has no CJK coverage. Pages that don't load Inter
     (the quote page, privacy/terms) fall straight through to the same
     system stack as before — unaffected. */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset --------------------------------------------------------- */
/* Any element toggled with the plain `hidden` attribute (error banner,
   success panel, spinner icon, FAQ accordion panels) must actually stay
   hidden even when a class on that same element also sets `display`
   (flex/block/etc.) — an author rule beats the browser's default
   `[hidden] { display: none }` UA rule regardless of specificity, so
   without this override those elements render permanently visible. This
   was shipping a permanent "发生错误，请重试" banner and a spinning icon
   on the quote form's submit button on every fresh page load. */
[hidden] { display: none !important; }

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-900);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }
svg { display: block; flex-shrink: 0; }
img { max-width: 100%; display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

section[id] { scroll-margin-top: 70px; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-inline: 20px;
}
.container-narrow { max-width: var(--container-w-narrow); }

.section { padding-block: 44px; }
.section-tight { padding-block: 36px; }

.section-heading { max-width: 620px; margin-bottom: 24px; }
.section-heading h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy-900); }
.section-heading p { margin-top: 8px; font-size: 15px; color: var(--text-600); }
.section-heading a { color: var(--blue-600); font-weight: 700; text-decoration: underline; }
.section-heading.centered { margin-inline: auto; text-align: center; }

.text-accent { color: var(--cta); }

/* Headline emphasis, restrained on purpose — color and a touch of extra
   weight only. No highlight background, no size jump, no baseline shift:
   the emphasized phrase ("6 家" in the Hero, see below) has to read as
   part of the same sentence, at a glance, not as a pasted-on graphic. */
.mark {
  color: var(--cta);
  font-weight: 900;
}

/* ---------- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  padding: 13px 22px;
  min-height: 48px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--cta);
  color: var(--cta-contrast);
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.32);
}
.btn-primary:hover { background: var(--cta-dark); }

.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--navy-700); }

.btn-outline-whatsapp {
  background: #ffffff;
  color: var(--whatsapp-dark);
  border-color: var(--whatsapp);
}
.btn-outline-whatsapp:hover { background: #effcf4; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 13.5px; }
.btn-lg { min-height: 54px; padding: 15px 28px; font-size: 16.5px; }
.btn-xl { min-height: 58px; padding: 16px 26px; font-size: 17px; }
.btn-icon-only { min-width: 48px; padding: 12px; flex: 0 0 auto; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ---------- Header --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--navy-900); color: #fff;
}
.logo-text { font-weight: 800; font-size: 17px; color: var(--navy-900); letter-spacing: -0.01em; }
.logo-accent { color: var(--cta); }

/* =========================================================================
   HERO = FORM. One screen, one job.
   ========================================================================= */
.hero {
  position: relative;
  padding-block: 22px 40px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(255, 106, 0, 0.10), transparent 60%),
    linear-gradient(180deg, #eef3fb 0%, var(--bg) 70%);
  overflow: hidden;
}
.hero-inner { display: grid; gap: 26px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy-900); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 7px 13px; border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

/* One unified typography system for both lines — same font-size, weight,
   and line-height throughout. Line 2 ("一次比较 6 家保险公司的方案")
   carries ALL the emphasis through .mark's color/weight alone (see
   above), never through size, so it reads as one consistent sentence
   with the same baseline, not two mismatched pieces stuck together. */
.hero-title {
  /* Phones: line 2 must stay on ONE line, so the size scales with the
     available width (viewport minus 40px container padding, ÷ ~13.2 =
     the phrase's width in em) and caps at 32px once there's room. */
  font-size: min(32px, calc((100vw - 40px) / 13.2));
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.16;
  color: var(--navy-900);
}
.hero-title span.line { display: block; }
.hero-title .line + .line { margin-top: 8px; }

/* Line 2 is two fixed, hand-broken variants (see index.html) — a
   deterministic CSS display swap, not the browser's own line-breaking.
   Mobile shows two pre-split lines ("一次比较 6 家" / "保险公司的方案");
   desktop shows the whole phrase as one nowrap line.

   Which one shows is NOT a single "mobile vs desktop" cutoff — the
   available width for `.hero-content` isn't monotonic with viewport
   width, because `.hero-inner` switches from 1 column to 2 at 700px:
     <480px            1 column,  too narrow           -> mobile (2 lines)
     480px – 699px     1 column,  plenty of room        -> desktop (1 line)
     700px – 1023px    2 columns, column is narrow again -> mobile (2 lines)
     ≥1024px           2 columns, column is wide enough  -> desktop (1 line)
   Measured directly (forcing the desktop variant on and checking for
   real overflow via screenshots, not computed-width comparisons — a
   grid item's width isn't reliable to measure this way): one line
   starts fitting somewhere around 435–440px; 480px is used for a safety
   margin against font-rendering differences across browsers/OS.

   Specificity note: these must out-rank `.hero-title span.line { display:
   block; }` above (0,2,1) — a plain `.hero-line2-desktop { display: none }`
   (0,1,0) loses to it and silently never hides. Qualifying with both
   `.hero-title` and `.line` (0,3,0) wins instead. */
.hero-title .line.hero-line2-desktop { display: block; white-space: nowrap; }
.hero-title .line.hero-line2-mobile { display: none; }

@media (min-width: 700px) and (max-width: 1023px) {
  .hero-title .line.hero-line2-desktop { display: none; }
  .hero-title .line.hero-line2-mobile { display: block; }
}

@media (min-width: 1024px) {
  .hero-title .line.hero-line2-desktop { display: block; }
  .hero-title .line.hero-line2-mobile { display: none; }
}

.hero-subtext {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-600);
  max-width: 46ch;
}

.hero-benefit-row {
  display: flex; flex-wrap: wrap; gap: 9px 18px;
  margin-top: 20px;
}
.hero-benefit-row li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--navy-900);
}
.hero-benefit-row svg { color: var(--success); }

.hero-content .btn-primary { margin-top: 24px; }

.hero-microtrust {
  margin-top: 14px;
  font-size: 12.5px; color: var(--text-400); font-weight: 600;
}

/* -------- Hero visual: an original insurance-comparison dashboard —
   "one enquiry -> multiple options -> Enewest assistance", never a
   real/fake vehicle quote. No insurer names or logos; generic option
   labels only. Three layered cards for depth: the main dashboard, a
   floating "6 options" badge, and a small WhatsApp support card. -------- */
.hero-visual {
  position: relative;
  max-width: 360px;
  margin: 32px auto 0;
}
.hero-visual-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 31, 58, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  z-index: 0;
}
.hero-visual-blob {
  position: absolute;
  inset: -10% -10% 10% -10%;
  background:
    radial-gradient(220px 180px at 30% 30%, rgba(35, 84, 166, 0.14), transparent 70%),
    radial-gradient(200px 160px at 75% 60%, rgba(255, 107, 0, 0.12), transparent 70%);
  z-index: 0;
}

/* The comparison card — a single, self-contained visual, no floating
   badges layered around it any more. It deliberately does NOT repeat
   the left column's "6 家保险公司" message; its job is the complementary
   question "what should you actually look at when comparing car
   insurance?" — a real, compact checklist, not a fake quote/SaaS
   dashboard. Kept small on purpose: a quick glance, not a second thing
   to read after the headline. */
.hero-compare-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 20px 16px;
  color: var(--navy-900);
}
.hero-compare-head { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.hero-compare-icon {
  flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--cta); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.hero-compare-title { font-size: 13px; font-weight: 800; color: var(--navy-900); }

.hero-compare-list { display: flex; flex-direction: column; gap: 9px; }
.hero-compare-list li {
  display: flex; align-items: flex-start; gap: 8px;
}
.hero-compare-check {
  flex-shrink: 0;
  margin-top: 1px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(22, 163, 74, 0.12); color: var(--success);
  display: flex; align-items: center; justify-content: center;
}
/* Each label is one unbreakable unit on its main line — "挡风玻璃"/
   "Windscreen" must never split awkwardly. The optional <small> sub-line
   (a short bilingual gloss) sits on its own row underneath; only three
   of the four items have one, which is fine — uneven row height reads
   as intentional here, not broken. */
.hero-compare-label {
  display: block;
  white-space: nowrap;
  font-size: 12.5px; font-weight: 700; color: var(--navy-900);
  line-height: 1.4;
}
.hero-compare-label small {
  display: block;
  font-size: 10px; font-weight: 600; color: var(--text-400);
  line-height: 1.3;
}

.hero-compare-footer {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(11, 31, 58, 0.08);
  font-size: 10.5px; font-weight: 600; color: var(--text-400);
  line-height: 1.4;
}

@media (min-width: 480px) {
  .hero-compare-card { padding: 22px 22px 18px; }
}
@media (min-width: 860px) {
  .hero-visual { max-width: 380px; margin: 0 auto; }
}

/* -------- Why Enewest -------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-icon {
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--blue-100); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.why-item h3 { font-size: 15px; font-weight: 800; color: var(--navy-900); }
.why-item p { margin-top: 4px; font-size: 13.5px; color: var(--text-600); }

@media (min-width: 640px) {
  .why-grid { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

/* -------- Quote card: THE primary CTA of the entire page -------- */
.quote-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 18px 22px;
  position: relative;
}
.quote-card-head { margin-bottom: 14px; }
.quote-card-head h2 { font-size: 19px; font-weight: 800; color: var(--navy-900); }
.quote-card-head p { margin-top: 4px; font-size: 12.5px; color: var(--text-600); font-weight: 600; }

.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* The plate-number hook — styled like a real MY vehicle plate */
.plate-hook { margin-top: 4px; }
.plate-hook > label {
  display: block; font-size: 14px; font-weight: 700; color: var(--navy-900); margin-bottom: 8px;
}
.plate-input-wrap {
  border: 3px solid var(--navy-900);
  border-radius: 8px;
  background: #ffffff;
  padding: 4px;
}
.plate-input {
  width: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.09em;
  color: #0a0a0a;
  padding: 12px 8px;
  text-transform: uppercase;
}
.plate-input:focus { outline: none; }
.plate-input::placeholder { color: #c7c7c7; letter-spacing: 0.06em; }
.plate-input-wrap:focus-within { border-color: var(--cta); box-shadow: 0 0 0 4px rgba(255,106,0,0.15); }
.field-group.has-error .plate-input-wrap { border-color: var(--danger); }

.field-row-2 { display: grid; grid-template-columns: 1fr; gap: 0; margin-bottom: 14px; }

.field-group { margin-bottom: 14px; }
.field-group label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.req { color: var(--cta); }
.optional { color: var(--text-400); font-weight: 500; }

.field-group input[type="text"],
.field-group input[type="tel"],
.field-group input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font-size: 16px; /* prevents iOS zoom-on-focus */
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-900);
  appearance: none;
  -webkit-appearance: none;
}
.field-group input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(35, 84, 166, 0.14);
}
.field-group.has-error input { border-color: var(--danger); }

.field-error {
  display: block; min-height: 16px;
  font-size: 12.5px; font-weight: 600; color: var(--danger);
  margin-top: 5px;
}
.field-hint { display: block; font-size: 12px; color: var(--text-400); margin-top: 5px; }

.checkbox-option {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; cursor: pointer;
}
.checkbox-option input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--cta); }
.checkbox-option span { font-size: 13.5px; font-weight: 600; color: var(--text-700); }
.consent-group { margin-top: 18px; }
.consent-option { align-items: flex-start; }
.consent-option a { color: var(--blue-600); font-weight: 700; text-decoration: underline; }


.form-error-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 14px;
  font-size: 13.5px; font-weight: 600;
}
.form-error-banner svg { flex-shrink: 0; }
.banner-retry-btn {
  margin-left: auto; background: #991b1b; color: #fff; border: none;
  border-radius: var(--radius-pill); padding: 6px 14px; font-size: 12.5px; font-weight: 700;
}
.banner-whatsapp-link { flex-basis: 100%; font-size: 12.5px; font-weight: 700; text-decoration: underline; }

.form-nav { margin-top: 20px; }

.btn-submit { position: relative; }
.btn-spinner { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding: 16px 4px 4px; }
.success-icon {
  width: 60px; height: 60px; margin: 0 auto 14px;
  background: #ecfdf3; color: var(--success);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.form-success h3 { font-size: 19px; font-weight: 800; color: var(--navy-900); }
.form-success p { margin-top: 8px; font-size: 14px; color: var(--text-600); }
.form-success .btn { margin-top: 16px; }

.form-privacy-note {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  margin-top: 12px; font-size: 12px; color: var(--text-400); text-align: center; flex-wrap: wrap;
}
.form-privacy-note a { color: var(--blue-600); font-weight: 700; text-decoration: underline; }

/* =========================================================================
   STANDALONE QUOTE PAGE (car-insurance-quote.html) — page 2 of the funnel.
   One job only: capture the lead. Centered card, ambient gradient behind
   it so a ~640px-wide card never reads as an empty page on a wide screen.
   ========================================================================= */
.quote-page {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  padding-block: 32px 60px;
  background:
    radial-gradient(700px 420px at 15% 0%, rgba(35, 84, 166, 0.10), transparent 65%),
    radial-gradient(600px 380px at 90% 30%, rgba(255, 106, 0, 0.10), transparent 65%),
    var(--bg);
}
.quote-page-shell { max-width: 640px; }

.quote-page-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--text-600);
  margin-bottom: 20px;
}
.quote-page-back:hover { color: var(--navy-900); }

.quote-page-head { text-align: center; margin-bottom: 22px; }
.quote-page-head .hero-eyebrow { margin-bottom: 12px; }
.quote-page-head h1 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy-900);
}
.quote-page-head p { margin-top: 8px; font-size: 14.5px; color: var(--text-600); }

@media (min-width: 640px) {
  .quote-page-head h1 { font-size: 30px; }
}

/* =========================================================================
   COMPARE + TRUST band (fixed 6-insurer grid + placeholder stats + one
   real-review slot). Static, not a marquee — we compare exactly 6 named
   insurers, not an open-ended "many partners" scroll.
   ========================================================================= */
.compare-section { background: var(--surface-alt); }

.insurer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.insurer-pill {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 12px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.insurer-pill:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.insurer-pill-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.insurer-pill-name { font-weight: 800; font-size: 13.5px; color: var(--navy-900); letter-spacing: 0.01em; }
.insurer-disclaimer { margin-top: 18px; font-size: 12px; color: var(--text-400); max-width: 68ch; }

@media (min-width: 640px) {
  .insurer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================================
   HOW IT WORKS
   ========================================================================= */
.steps-row { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.step-item { text-align: left; padding-block: 6px; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-900); color: #fff; font-weight: 800; font-size: 15.5px;
  margin-bottom: 10px;
}
.step-item h3 { font-size: 15px; font-weight: 800; color: var(--navy-900); }
.step-item p { margin-top: 5px; font-size: 13.5px; color: var(--text-600); max-width: 34ch; }
.step-connector { width: 2px; height: 24px; background: var(--border); margin-left: 18px; }

/* =========================================================================
   COVERAGE — now just a slim CTA band (see #coverage in index.html);
   the tabs/description/add-on copy that used to live here were removed.
   ========================================================================= */

/* Reusable inline quote CTA, dropped into a few key sections (Why
   Enewest, Coverage) so anyone who scrolls this far — without ever
   reaching the Hero or Final CTA — still has a nearby way in. Reuses
   the site's standard orange pill button, capped to a compact width on
   desktop instead of stretching. Deliberately NOT a fixed/floating
   element (a pinned bar nags visitors on phones and pushes them away).

   Base/mobile: full width within the section's own container gutter
   (not truly 100vw — `.container`'s 20px padding is the side margin).
   At desktop the button shrinks to its compact width, and by default
   sits at the start of its block-level `.section-cta` wrapper — i.e.
   left-aligned, matching the section's own text column. Two modifiers
   adjust that per section instead of leaving every CTA stuck on the
   left regardless of context:
     .section-cta-center — Coverage: this CTA has no content column to
       align with (it sits between the heading and the tabs), so it's
       centered instead of left-anchored.
     .section-cta-end — Why Enewest: kept left-aligned with the content
       above it, but pushed down with extra margin-top on desktop so it
       reads as the section's closing action, not another feature row. */
.section-cta { margin: 26px 0; }

/* The standalone CTA band between How-It-Works and FAQ (#coverage) holds
   only a button, so the full section padding + the CTA's own margin was
   stacking into a huge empty gap above and below it. Keep it a slim band. */
#coverage.section { padding-block: 0; }
#coverage .section-cta { margin: 14px 0 6px; }
#how-it-works.section-tight { padding-block-end: 24px; }
#coverage + #faq.section { padding-block-start: 32px; }
.section-cta-btn { display: flex; width: 100%; }
@media (min-width: 640px) {
  .section-cta-btn { display: inline-flex; width: auto; min-width: 190px; max-width: 220px; }
  .section-cta-center { display: flex; justify-content: center; }
  .section-cta-end { margin-top: 40px; }
}

/* =========================================================================
   FACEBOOK REVIEWS — real customer recommendations, styled to read as
   actual Facebook recommendation posts (avatar + name + "recommends
   Enewest" + date, reaction row, business reply) rather than generic
   testimonial cards. See README §9 before editing the cards.
   ========================================================================= */
.reviews-layout { display: grid; gap: 30px; }

.reviews-intro { display: flex; flex-direction: column; align-items: flex-start; }
.reviews-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: #eaf2ff; color: #1d5fd6;
  font-size: 12px; font-weight: 800;
  padding: 6px 12px; border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.reviews-intro h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy-900); }
.reviews-intro > p { margin-top: 8px; font-size: 15px; color: var(--text-600); }

.reviews-stars {
  display: flex; align-items: center; gap: 3px;
  margin-top: 18px;
  color: var(--gold);
}
.reviews-stars span {
  margin-left: 7px;
  font-size: 13px; font-weight: 800; color: var(--navy-900);
}

.reviews-cta-link {
  margin-top: 18px;
  font-size: 13.5px; font-weight: 700; color: var(--blue-600); text-decoration: underline;
}

/* -------- The recommendation cards themselves -------- */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.fb-review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
}

.fb-review-head { display: flex; align-items: center; gap: 10px; }
.fb-review-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy-700); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12.5px; flex-shrink: 0;
}
.fb-review-card:nth-of-type(2) .fb-review-avatar { background: var(--blue-600); }
.fb-review-card:nth-of-type(3) .fb-review-avatar { background: var(--cta); }
.fb-review-card:nth-of-type(4) .fb-review-avatar { background: var(--navy-900); }

.fb-review-head-text { min-width: 0; }
.fb-review-name { font-size: 13px; font-weight: 800; color: var(--navy-900); line-height: 1.35; }
.fb-review-recommends { font-weight: 500; color: var(--text-700); }
.fb-review-recommends strong { font-weight: 800; color: var(--navy-900); }
.fb-review-meta { margin-top: 1px; font-size: 11.5px; color: var(--text-400); }

.fb-review-body {
  margin-top: 10px;
  font-size: 13.5px; line-height: 1.55;
  color: var(--text-700);
  white-space: pre-line; /* preserve the customer's own line breaks */
}

.fb-review-reactions {
  display: flex; align-items: center; gap: 14px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 12px; font-weight: 700; color: var(--text-400);
}

.fb-review-reply {
  margin-top: 10px;
  background: var(--surface-alt);
  border-radius: 10px;
  padding: 8px 12px;
}
.fb-review-reply strong { font-size: 12px; font-weight: 800; color: var(--navy-900); }
.fb-review-reply p { margin-top: 1px; font-size: 12.5px; color: var(--text-600); }

@media (min-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  .reviews-layout { grid-template-columns: 30% 1fr; align-items: start; gap: 40px; }
}

/* =========================================================================
   FAQ
   ========================================================================= */
.accordion { display: flex; flex-direction: column; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:first-child { border-top: 1px solid var(--border); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: none; border: none; text-align: left;
  padding: 17px 2px; font-size: 14.5px; font-weight: 700; color: var(--navy-900);
}
.accordion-chevron { color: var(--text-400); transition: transform 0.2s ease; flex-shrink: 0; }
.accordion-trigger[aria-expanded="true"] .accordion-chevron { transform: rotate(180deg); }
.accordion-panel { padding: 0 2px 18px; font-size: 13.5px; color: var(--text-600); }

/* =========================================================================
   Final CTA
   ========================================================================= */
.final-cta {
  position: relative;
  background: radial-gradient(700px 320px at 50% 0%, rgba(255,106,0,0.18), transparent 65%), var(--navy-900);
  color: #fff;
  padding-block: 48px;
  text-align: center;
  overflow: hidden;
}
.final-cta h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.final-cta p { margin-top: 10px; font-size: 15.5px; color: rgba(255,255,255,0.75); }
.final-cta-buttons { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; max-width: 320px; margin-inline: auto; }

/* ---------- Footer --------------------------------------------------------------------- */
.site-footer { background: var(--navy-800); color: rgba(255,255,255,0.85); padding-block: 40px 20px; }
.footer-bottom {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 12px;
  font-size: 8px; color: rgba(255,255,255,0.4);
}
.footer-legal-notices { display: flex; flex-direction: column; gap: 5px; }
.footer-disclaimer { max-width: 70ch; line-height: 1.4; }
.footer-disclaimer strong { color: rgba(255,255,255,0.6); font-weight: 700; }
.footer-copyright { flex-shrink: 0; }

/* Slim footer variant — legal line only, no marketing content above it,
   so the usual top divider/margin would float with nothing to separate
   from. Used by both index.html and car-insurance-quote.html — this is
   a lead-gen landing page, not a corporate site, so no multi-column
   footer with a sitemap/contact block. */
.slim-footer { padding-block: 22px; }
.slim-footer .footer-bottom { margin-top: 0; padding-top: 0; border-top: none; text-align: center; align-items: center; }
.slim-footer .footer-disclaimer a { color: rgba(255,255,255,0.7); text-decoration: underline; }

/* ---------- Breakpoints ------------------------------------------------------------------ */
@media (min-width: 640px) {
  .hero-title { font-size: 36px; }
  .final-cta-buttons { flex-direction: row; max-width: none; justify-content: center; }
  .field-row-2 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .field-row-2 .field-group { margin-bottom: 0; }
}

/* This one kicks in earlier than the 860px block below — at tablet
   widths (iPad portrait ~768px included), the Hero and How-It-Works
   still switched to their 2-column/row layout only past 860px, so a
   single centered ~400px card (Hero) or a single narrow text column
   (How-It-Works) sat in the middle of a much wider screen with large
   dead space on both sides. That's what made the site look "different
   and broken" specifically on tablets, between the phone and desktop
   breakpoints. */
@media (min-width: 700px) {
  .hero { padding-block: 56px 60px; }
  .hero-inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
  .hero-content { max-width: 500px; }
  .hero-visual { max-width: none; }
  .steps-row { flex-direction: row; align-items: flex-start; }
  .step-item { flex: 1; }
  .step-connector { width: auto; height: 2px; flex: 0 0 40px; margin-top: 19px; }
}

@media (min-width: 860px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 40px; }
  .slim-footer .footer-bottom { flex-direction: column; justify-content: center; }
}

@media (min-width: 1024px) {
  .section { padding-block: 64px; }
  .section-heading h2, .reviews-intro h2 { font-size: 30px; }
  .hero-subtext { font-size: 16.5px; }
  .plate-input { font-size: 34px; }
}

/* Hero headline grows once more, but ONLY once the Hero's own grid
   column is actually wide enough for "一次比较 6 家保险公司的方案" to
   render as one line at that size — a jump right at 1024px gives it
   barely ~470px, too narrow for a 44px line and forcing an ugly wrap.
   1200px is where the column comfortably clears ~540px. */
@media (min-width: 1200px) {
  .hero-title { font-size: 40px; }
  .hero-content { max-width: 560px; }
}

/* ---------- Reduced motion --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
