/* Seller pages — We Buy Cars (/cash-for-your-car/) and Cash for Junk Cars (/cash-for-junk-cars/).
   Reuses the brand tokens defined in /blog/assets/blog.css, which each page loads first. */
/* Deliberately varied layouts (split, timeline, checklist, trust strip) so the pages never
   repeat a card grid. */
.cfc-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.cfc-section { padding: 64px 0; }
.cfc-band { background: var(--brand-wash); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* Dark feature band — a refined deep-navy anchor (used midway, on "How it works")
   that breaks up the white/wash rhythm and echoes the site footer. A subtle brand
   glow, white type, and a soft ring on the step nodes make it read as premium. */
.cfc-band--dark { position: relative; overflow: hidden; background: #0F172A; border: none; }
.cfc-band--dark::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 0%, rgba(28,74,161,0.50), transparent 46%),
    radial-gradient(circle at 100% 100%, rgba(101,132,191,0.16), transparent 42%);
}
.cfc-band--dark > .cfc-wrap { position: relative; z-index: 1; }
.cfc-band--dark .cfc-eyebrow { color: var(--brand-accent); }
.cfc-band--dark .cfc-h2 { color: #fff; }
.cfc-band--dark .cfc-lead { color: rgba(255,255,255,0.72); }
.cfc-band--dark .cfc-steps::before { background: rgba(255,255,255,0.14); }
.cfc-band--dark .cfc-step h3 { color: #fff; }
.cfc-band--dark .cfc-step p { color: rgba(255,255,255,0.68); }
.cfc-band--dark .cfc-step a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cfc-band--dark .cfc-step__num { box-shadow: 0 0 0 6px rgba(28,74,161,0.18), 0 12px 26px -8px rgba(10,18,40,0.95); }

.cfc-head { max-width: 760px; margin: 0 0 36px; }
.cfc-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.cfc-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-primary); margin: 0 0 12px; }
.cfc-h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 14px; color: var(--ink); }
.cfc-lead { font-size: 18px; line-height: 1.6; color: var(--ink-muted); margin: 0; }

/* Hero CTAs (sit on the dark hero gradient — reuse the white/translucent pill buttons) */
.cfc-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cfc-hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; }
.cfc-hero-points li { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,0.92); font-size: 14.5px; font-weight: 500; }
.cfc-hero-points svg { flex: none; width: 18px; height: 18px; color: #fff; opacity: .9; }

/* Hero photographic backdrop — a couple shopping for a car, under a strong,
   left-weighted brand overlay so the white headline/CTAs stay fully legible over
   a bright showroom photo. The subjects sit on the right, so the image is anchored
   right and the gradient is darkest on the left where the text lives. */
.hero.cfc-hero--photo {
  background-color: #0b1c44; /* solid fallback before the image loads */
  background-image:
    linear-gradient(100deg,
      rgba(8,16,38,0.95) 0%,
      rgba(11,28,68,0.90) 36%,
      rgba(15,40,92,0.74) 64%,
      rgba(22,58,128,0.50) 100%),
    url('/cash-for-your-car/media/car-buying.webp');
  background-size: cover, cover;
  background-position: center, center right;
  background-repeat: no-repeat, no-repeat;
}
/* Drop the base hero's radial sheen — the photo provides the texture. */
.cfc-hero--photo::after { display: none; }
@media (max-width: 720px) {
  /* Phones: text wraps more over a busy photo, so use a near-uniform dark overlay. */
  .hero.cfc-hero--photo {
    background-image:
      linear-gradient(180deg,
        rgba(8,16,38,0.92) 0%,
        rgba(11,28,68,0.88) 52%,
        rgba(14,38,88,0.86) 100%),
      url('/cash-for-your-car/media/car-buying.webp');
    background-position: center, center;
  }
}

/* Intro split — asymmetric text + photo */
.cfc-split { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; }
.cfc-split__body p { margin: 0 0 16px; color: var(--ink-muted); font-size: 17px; line-height: 1.7; }
.cfc-split__body p:last-child { margin-bottom: 0; }
.cfc-split__media { position: relative; }
.cfc-split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.cfc-split__badge { position: absolute; left: -14px; bottom: -16px; background: var(--brand-primary); color: #fff; padding: 14px 18px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); font-weight: 700; font-size: 15px; line-height: 1.25; max-width: 210px; }
.cfc-split__badge span { display: block; font-weight: 500; font-size: 12.5px; opacity: .85; margin-top: 3px; }

/* Payoff scenarios — editorial blocks with an accent left border (not cards) */
.cfc-scenarios { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.cfc-scenario { border-left: 3px solid var(--brand-accent); padding: 2px 0 2px 22px; }
.cfc-scenario--accent { border-left-color: var(--brand-primary); }
.cfc-scenario h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 10px; color: var(--ink); }
.cfc-scenario p { margin: 0 0 12px; color: var(--ink-muted); font-size: 16px; line-height: 1.65; }
.cfc-scenario p:last-child { margin-bottom: 0; }
.cfc-scenario a { color: var(--brand-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cfc-scenario a:hover { color: var(--brand-primary-700); }

/* How it works — numbered timeline with a connecting line behind the nodes */
.cfc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.cfc-steps::before { content: ''; position: absolute; top: 27px; left: 16.66%; right: 16.66%; height: 2px; background: var(--brand-tint); z-index: 0; }
.cfc-step { position: relative; z-index: 1; text-align: center; padding: 0 12px; }
.cfc-step__num { width: 54px; height: 54px; border-radius: 999px; background: var(--brand-primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 21px; margin: 0 auto 18px; box-shadow: 0 8px 18px -8px rgba(28,74,161,.7); }
.cfc-step h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.cfc-step p { margin: 0 auto; max-width: 300px; color: var(--ink-muted); font-size: 15.5px; line-height: 1.6; }

/* What to bring — two-column checklist with custom check markers */
.cfc-bring { columns: 2; column-gap: 48px; list-style: none; margin: 0; padding: 0; max-width: 840px; }
.cfc-bring li { break-inside: avoid; position: relative; padding: 0 0 18px 36px; color: var(--ink); font-size: 16.5px; line-height: 1.45; }
.cfc-bring li strong { display: block; font-weight: 600; }
.cfc-bring li span { color: var(--ink-soft); font-size: 14.5px; }
.cfc-bring li::before { content: ''; position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 999px; background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%231C4AA1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-9'/%3E%3C/svg%3E") no-repeat center; }

/* Why FC Motors — horizontal trust strip with dividers */
.cfc-trust { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.cfc-trust__item { padding: 4px 22px; text-align: center; border-right: 1px solid var(--line); }
.cfc-trust__item:last-child { border-right: none; }
.cfc-trust__icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); color: var(--brand-primary); }
.cfc-trust__icon svg { width: 22px; height: 22px; }
.cfc-trust__item h3 { font-size: 15px; font-weight: 700; margin: 0 0 5px; color: var(--ink); }
.cfc-trust__item p { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* A narrower prose wrapper for the FAQ */
.cfc-prose { max-width: var(--maxw-prose); margin: 0 auto; padding: 0 24px; }

/* Quick offer — copy on the left, form card on the right. Sits straight under the
   hero so a seller can ask for an offer without hunting for a phone number. */
.cfc-offer { padding: 8px 0 64px; scroll-margin-top: 72px; } /* clears the fixed 64px header on #offer jumps */
.cfc-offer__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.cfc-offer__copy { padding-top: 10px; }
.cfc-offer__next { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: next; }
.cfc-offer__next li { counter-increment: next; position: relative; padding: 0 0 16px 44px; color: var(--ink-muted); font-size: 16px; line-height: 1.55; }
.cfc-offer__next li::before { content: counter(next); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-primary); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.cfc-offer__next strong { color: var(--ink); font-weight: 600; }
.cfc-offer__call { margin: 8px 0 0; font-size: 15px; color: var(--ink-muted); }
.cfc-offer__call a { color: var(--brand-primary); font-weight: 700; text-decoration: none; }
.cfc-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 30px 28px 26px; }
.cfc-card__title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 4px; }
.cfc-card__sub { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 20px; }
.cfc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.cfc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cfc-field--full { grid-column: 1 / -1; }
.cfc-field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cfc-field label .opt { font-weight: 400; color: var(--ink-soft); }
.cfc-field input, .cfc-field select, .cfc-field textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: #fff;
  border: 1px solid #CBD5E1; border-radius: var(--radius-sm); padding: 11px 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.cfc-field textarea { min-height: 84px; resize: vertical; }
.cfc-field input:focus, .cfc-field select:focus, .cfc-field textarea:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(28,74,161,0.18); }
.cfc-form__submit { grid-column: 1 / -1; display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 100%; border: 0; cursor: pointer; background: var(--brand-primary); color: #fff; font: inherit; font-weight: 700; font-size: 16px; padding: 15px 20px; border-radius: 999px; transition: background 150ms ease; }
.cfc-form__submit:hover { background: var(--brand-primary-600); }
.cfc-form__submit[disabled] { opacity: .7; cursor: wait; }
.cfc-form__note { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--ink-soft); text-align: center; }
.cfc-form__error { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: #FEF2F2; color: #991B1B; font-size: 14px; }
.cfc-form__done { text-align: center; padding: 24px 6px 10px; }
.cfc-form__done h3 { font-size: 21px; margin: 12px 0 8px; color: var(--ink); }
.cfc-form__done p { margin: 0 auto; max-width: 380px; color: var(--ink-muted); font-size: 15.5px; line-height: 1.6; }
.cfc-form__done a { color: var(--brand-primary); font-weight: 700; }

/* Match-or-beat band — a single bold statement, deliberately not a card grid */
.cfc-match { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.cfc-match__badge { width: 132px; height: 132px; border-radius: 999px; background: var(--brand-primary); color: #fff; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 19px; line-height: 1.15; letter-spacing: -0.01em; box-shadow: 0 0 0 10px var(--brand-tint); }
.cfc-match p { margin: 0 0 12px; color: var(--ink-muted); font-size: 17px; line-height: 1.65; }
.cfc-match p:last-child { margin-bottom: 0; }
.cfc-match a { color: var(--brand-primary); font-weight: 600; }

/* What we buy + how you're paid */
.cfc-buy { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: start; }
.cfc-buy__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.cfc-buy__list li { position: relative; padding-left: 36px; }
.cfc-buy__list li::before { content: ''; position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 999px; background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%231C4AA1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-9'/%3E%3C/svg%3E") no-repeat center; }
.cfc-buy__list strong { display: block; color: var(--ink); font-size: 17px; font-weight: 600; margin-bottom: 3px; }
.cfc-buy__list span { color: var(--ink-muted); font-size: 15.5px; line-height: 1.55; }
.cfc-pay { background: var(--brand-wash); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 26px 26px 24px; }
.cfc-pay h3 { font-size: 19px; font-weight: 700; margin: 0 0 10px; color: var(--ink); }
.cfc-pay p { margin: 0 0 14px; color: var(--ink-muted); font-size: 15.5px; line-height: 1.6; }
.cfc-pay ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.cfc-pay li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.cfc-pay li svg { flex: none; width: 20px; height: 20px; color: var(--brand-primary); }
.cfc-pay p:last-child { margin-bottom: 0; }
.cfc-towns { margin: 18px 0 0; font-size: 14.5px; color: var(--ink-soft); }

/* Mobile action bar — call or jump to the form without scrolling back up */
.cfc-mbar { display: none; }
@media (max-width: 720px) {
  .cfc-mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); }
  .cfc-mbar a { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 10px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; }
  .cfc-mbar__call { background: var(--brand-primary); color: #fff; }
  .cfc-mbar__offer { background: var(--brand-tint); color: var(--brand-primary-700); }
  body { padding-bottom: 72px; }
}

@media (max-width: 920px) {
  .cfc-offer__grid { grid-template-columns: 1fr; gap: 0; }
  .cfc-offer__copy { order: 2; padding-top: 36px; }
  .cfc-buy { grid-template-columns: 1fr; gap: 28px; }
  .cfc-section { padding: 52px 0; }
  .cfc-split { grid-template-columns: 1fr; gap: 30px; }
  .cfc-split__media { order: -1; }
  .cfc-split__badge { left: 10px; bottom: -16px; }
  .cfc-scenarios { grid-template-columns: 1fr; gap: 26px; }
  .cfc-steps { grid-template-columns: 1fr; gap: 26px; }
  .cfc-steps::before { display: none; }
  .cfc-step { text-align: left; display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; padding: 0; }
  .cfc-step__num { margin: 0; }
  .cfc-step p { margin: 0; max-width: none; }
  .cfc-trust { grid-template-columns: 1fr 1fr; }
  .cfc-trust__item { border-right: none; border-bottom: 1px solid var(--line); padding: 20px 12px; }
  .cfc-trust__item:nth-child(2) { border-right: none; }
}
@media (max-width: 360px) {
  .cfc-form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cfc-card { padding: 24px 18px 20px; }
  .cfc-match { grid-template-columns: 1fr; justify-items: start; }
  .cfc-match__badge { width: 108px; height: 108px; font-size: 16px; }
  .cfc-bring { columns: 1; }
  .cfc-trust { grid-template-columns: 1fr; }
  .cfc-trust__item:last-child { border-bottom: none; }
}

/* Portrait photos (e.g. the storefront) are cropped to the same landscape frame as the
   handover photo so the split stays balanced. */
.cfc-split__media--photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; }
.cfc-towns a { color: var(--brand-primary); font-weight: 600; }
.cfc-buy__list a { color: var(--brand-primary); font-weight: 600; }
.cfc-split__body a { color: var(--brand-primary); font-weight: 600; }
