/* The redesign of the public pages, from the Flash Optima Redesign canvas. It loads after figma-site.css and only touches pages that
   carry body.fo, so the app and the Car Market are untouched. The brand colours come from the logo: blue, lime and dark navy.
   Dealership pages (body.aud-dealer) sit on dark navy with lime accents; private-seller pages (body.aud-private) sit on light
   blue with blue accents. Light and dark themes both work (html[data-bs-theme]). Fonts stay the system stack: no outside download. */

body.fo {
  --accent: #0068c4;
  --accent-hover: #00529b;
  --accent-soft: #e6f1fb;
  --ink: #0e1b2c;
  --muted: #51607a;
  --line: #dce3ec;
  --surface: #ffffff;
  --surface-2: #f3f6fa;
  --surface-3: #e3eaf3;
  --dark-band: #0b1626;
  --navy: #0b1626;
  --navy-2: #12233a;
  --navy-line: #24395a;
  --on-dark: #b9c6da;
  --lime: #c8f250;
}
html[data-bs-theme="dark"] body.fo {
  --accent: #5aa9f0;
  --accent-hover: #7fbdf5;
  --accent-soft: #14304d;
  --ink: #f2f5fa;
  --muted: #b0bccd;
  --line: #2a394d;
  --surface: #0e1724;
  --surface-2: #142033;
  --surface-3: #1d2c42;
  --dark-band: #070d16;
  --navy: #070d16;
  --navy-2: #101f33;
  --navy-line: #24395a;
  --on-dark: #b9c6da;
  --lime: #c8f250;
}

/* headings and eyebrows */
.fo h1, .fo h2, .fo h3 { font-weight: 800; letter-spacing: -0.03em; }
.fo .hero-copy h1, .fo .section-heading h2, .fo .chooser-intro h1, .fo .audience-section h2, .fo .choice-card h2, .fo .closing-cta h2 { font-weight: 800; }
.fo .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

/* buttons: pills, at least 44px tall */
.fo .button, .fo .btn-brand, .fo .btn-outline-brand, .fo .cta-band .btn, .fo .btn-lg { border-radius: 999px; min-height: 48px; font-weight: 700; }
.fo .button-small { min-height: 44px; }
.fo .button { background: var(--accent); color: #fff; }
.fo .button:hover { background: var(--accent-hover); color: #fff; }
html[data-bs-theme="dark"] .fo .button, html[data-bs-theme="dark"] .fo .button:hover { color: #07101c; }
.fo .button-secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.fo .button-secondary:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* cards */
.fo .feature-card, .fo .tile, .fo .numbered-steps article { border-radius: 20px; }
.fo .tile { background: var(--surface); }

/* ---------- the home page chooser: dealership on navy, individuals on light blue ---------- */
.fo .choice-grid > .choice-card { border-radius: 24px; }
.fo .choice-grid > .choice-card:nth-child(1) { background: var(--navy); border-color: var(--navy); color: #fff; }
.fo .choice-grid > .choice-card:nth-child(1) p, .fo .choice-grid > .choice-card:nth-child(1) li { color: var(--on-dark); }
.fo .choice-grid > .choice-card:nth-child(1) h2 { color: #fff; }
.fo .choice-grid > .choice-card:nth-child(1) .choice-tag { color: var(--lime); }
.fo .choice-grid > .choice-card:nth-child(1) li .icon, .fo .choice-grid > .choice-card:nth-child(1) .choice-arrow { color: var(--lime); }
.fo .choice-grid > .choice-card:nth-child(1) .large-icon { background: var(--navy-2); color: var(--lime); }
.fo .choice-grid > .choice-card:nth-child(2) { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.fo .choice-grid > .choice-card:nth-child(2) .choice-tag, .fo .choice-grid > .choice-card:nth-child(2) li .icon { color: var(--accent); }
.fo .choice-grid > .choice-card:nth-child(2) .large-icon { background: var(--surface); color: var(--accent); }
.fo .trust-strip { border-radius: 20px; }

/* ---------- dealership pages: dark navy with lime accents ---------- */
body.aud-dealer .marketing-hero,
body.aud-dealer .feature-section,
body.aud-dealer .steps-section {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 0 0 100vmax var(--navy);
  clip-path: inset(0 -100vmax);
}
body.aud-dealer .feature-section { padding-top: 96px; padding-bottom: 72px; }
body.aud-dealer .steps-section { padding-top: 24px; }
body.aud-dealer .marketing-hero h1, body.aud-dealer .feature-section h2, body.aud-dealer .feature-section h3,
body.aud-dealer .steps-section h2, body.aud-dealer .steps-section h3 { color: #fff; }
body.aud-dealer .hero-copy > p, body.aud-dealer .feature-section p, body.aud-dealer .steps-section p { color: var(--on-dark); }
body.aud-dealer .marketing-hero .eyebrow, body.aud-dealer .feature-section .eyebrow, body.aud-dealer .steps-section .eyebrow { color: var(--lime); }
body.aud-dealer .marketing-hero .button, body.aud-dealer .closing-cta .button { background: var(--lime); color: var(--navy); }
body.aud-dealer .marketing-hero .button:hover, body.aud-dealer .closing-cta .button:hover { background: #b5e03a; color: var(--navy); }
body.aud-dealer .marketing-hero .button-secondary, body.aud-dealer .closing-cta .button-secondary { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.4); }
body.aud-dealer .marketing-hero .button-secondary:hover, body.aud-dealer .closing-cta .button-secondary:hover { border-color: var(--lime); color: #fff; background: transparent; }
body.aud-dealer .mini-proof span { color: var(--on-dark); }
body.aud-dealer .mini-proof .icon { color: var(--lime); }
body.aud-dealer .feature-card, body.aud-dealer .numbered-steps article { background: var(--navy-2); border-color: var(--navy-line); }
body.aud-dealer .feature-card a { color: var(--lime); }
body.aud-dealer .feature-icon { background: var(--navy); color: var(--lime); }
body.aud-dealer .numbered-steps article > span { color: var(--lime); }
body.aud-dealer .steps-section > p a { color: var(--lime); }
/* the older dealer pages (features, how to) */
body.aud-dealer .hero { background: var(--navy); }
body.aud-dealer .hero h1 { color: #fff; }
body.aud-dealer .hero .lead, body.aud-dealer .hero p { color: var(--on-dark); }
body.aud-dealer .hero a:not(.btn):not(.button) { color: var(--lime); }
body.aud-dealer .tile > i { background: var(--navy); color: var(--lime); }
body.aud-dealer .cta-band .btn { background: var(--lime); color: var(--navy); }
body.aud-dealer .steps li::before { background: var(--navy); color: var(--lime); }

/* ---------- private-seller pages: light blue with blue accents ---------- */
body.aud-private .hero { background: var(--accent-soft); }
body.aud-private .tile { border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
body.aud-private .cta-band { background: var(--accent); color: #fff; }
body.aud-private .cta-band h2 { color: #fff; }
body.aud-private .cta-band .btn { background: #fff; color: #00396b; }
html[data-bs-theme="dark"] body.aud-private .cta-band { color: #07101c; }
html[data-bs-theme="dark"] body.aud-private .cta-band h2 { color: #07101c; }
html[data-bs-theme="dark"] body.aud-private .cta-band .btn { background: #07101c; color: #fff; }

/* ---------- the closing band, the older pages' band and the footer ---------- */
.fo .closing-cta, .fo .cta-band { background: var(--navy); }
.fo .closing-cta { border-radius: 28px; }
.fo .cta-band { margin: 0 auto; }
body.fo footer { background: var(--navy); color: #fff; border-top: 0; }
body.fo footer .footer-brand p, body.fo footer .footer-bottom { color: var(--on-dark); }
body.fo footer .footer-links strong { color: var(--lime); text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; }
body.fo footer .footer-links a, body.fo footer .footer-bottom a { color: #fff; min-height: 44px; display: inline-flex; align-items: center; }
body.fo footer .footer-links a:hover, body.fo footer .footer-bottom a:hover { color: var(--lime); }
body.fo footer .logo { display: inline-flex; width: fit-content; }

/* the header: pill buttons, softer link hover */
.fo .nav-links a { border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.fo .nav-links a:hover { background: var(--surface-2); color: var(--accent); }
.fo .nav-signin { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }

/* contact, sign in and the other forms: labelled fields, 48px tall */
.fo .form-control, .fo .form-select { min-height: 48px; border-radius: 12px; border-color: #7f8fa8; background: var(--surface); color: var(--ink); }
.fo textarea.form-control { min-height: 160px; }
html[data-bs-theme="dark"] .fo .form-control, html[data-bs-theme="dark"] .fo .form-select { border-color: #4a5c75; }
.fo .form-label { font-weight: 600; }
.fo .faq-item summary { min-height: 56px; display: flex; align-items: center; cursor: pointer; }

/* the sign-in page sits in the public layout: the card reads the site's colours */
.fo .au-site { --bos-border: var(--line); --bos-surface: var(--surface); --bos-text-2: var(--muted); --bos-accent: var(--accent); --bos-page-bg: var(--surface-2); --bos-danger: #b42318; background: var(--surface-2); padding-bottom: 96px; min-height: 60vh; }
html[data-bs-theme="dark"] .fo .au-site { --bos-danger: #ff8a80; }
.fo .au-site .au-card { border-radius: 24px; max-width: 480px; padding: 40px 36px 28px; box-shadow: none; color: var(--ink); }
.fo .au-site .au-card h1 { font-size: 2.2rem; }
.fo .au-site .au-mark { background: var(--accent-soft); color: var(--accent); }
.fo .au-site .au-submit { background: var(--accent); border: 0; color: #fff; border-radius: 999px; min-height: 48px; }
.fo .au-site .au-submit:hover { background: var(--accent-hover); color: #fff; }
html[data-bs-theme="dark"] .fo .au-site .au-submit, html[data-bs-theme="dark"] .fo .au-site .au-submit:hover { color: #07101c; }
.fo .au-site .au-input .form-control { min-height: 48px; border-radius: 12px; }
.fo .au-site .au-row a, .fo .au-site .au-foot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* the how-to guide is dealership content: its top band is navy */
body.aud-dealer .guide-hero { background: var(--navy); box-shadow: 0 0 0 100vmax var(--navy); clip-path: inset(0 -100vmax); color: #fff; }
body.aud-dealer .guide-hero h1, body.aud-dealer .guide-hero h2 { color: #fff; }
body.aud-dealer .guide-hero p, body.aud-dealer .guide-hero .breadcrumbs, body.aud-dealer .guide-hero .breadcrumbs span { color: var(--on-dark); }
body.aud-dealer .guide-hero a { color: var(--lime); }
body.aud-dealer .guide-hero .eyebrow { color: var(--lime); }

/* ---------- product screens drawn in HTML with demo information (templates/site/_screen.html) ---------- */
.ds-shot { container-type: inline-size; }
.ds-app { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 380px; background: var(--surface); color: var(--ink); font-size: 13px; line-height: 1.35; text-align: left; }
.ds-side { background: var(--surface-2); border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.ds-brand { font-weight: 800; font-size: 13px; color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 6px 8px; width: fit-content; margin-bottom: 8px; }
.ds-nav { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 9px; color: var(--muted); font-weight: 600; }
.ds-nav b { font-weight: 600; }
.ds-nav.on { background: var(--accent-soft); color: var(--accent); }
.ds-main { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ds-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ds-top h4 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.ds-btn { background: var(--accent); color: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 12px; white-space: nowrap; }
html[data-bs-theme="dark"] .ds-btn { color: #07101c; }
.ds-btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.ds-chip { font-style: normal; display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: 11px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.ds-chip.ok { background: #e3f6b8; color: #2f4a00; border-color: transparent; }
.ds-chip.warn { background: #fff1cc; color: #6e4a00; border-color: transparent; }
.ds-chip.bad { background: #fde8e6; color: #9e1c12; border-color: transparent; }
.ds-chip.done { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
html[data-bs-theme="dark"] .ds-chip.ok { background: #2a3f0a; color: #d6f58a; }
html[data-bs-theme="dark"] .ds-chip.warn { background: #3d2f08; color: #f5d680; }
html[data-bs-theme="dark"] .ds-chip.bad { background: #3d1512; color: #ffb4ab; }
.ds-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ds-tiles > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ds-tiles small { color: var(--muted); font-weight: 600; font-size: 11px; }
.ds-tiles strong { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.ds-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ds-row { display: grid; grid-template-columns: 2.2fr 0.8fr 1fr 0.8fr; gap: 8px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); }
.ds-row:first-child { border-top: 0; }
.ds-head { background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.ds-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ds-panel { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ds-panel h5 { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ds-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.ds-panel h5 + .ds-item { border-top: 0; }
.ds-item.add { color: var(--accent); font-weight: 700; }
.ds-item.total { font-weight: 800; }
.ds-deal { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.ds-panel h5 + .ds-deal { border-top: 0; }
.ds-deal small { display: block; color: var(--muted); font-size: 11px; }
.ds-bar { display: block; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.ds-bar b { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.ds-field { display: flex; flex-direction: column; gap: 6px; }
.ds-field > small { font-weight: 700; color: var(--muted); font-size: 11px; }
.ds-field.dim { opacity: 0.55; }
.ds-input { border: 1px solid #7f8fa8; border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); background: var(--surface); }
.ds-input.set { color: var(--ink); font-weight: 600; }
.ds-field.open .ds-input { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ds-menu { list-style: none; margin: 0; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.ds-menu li { padding: 9px 10px; border-radius: 8px; }
.ds-menu li.hit { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.ds-menu li.new { color: var(--accent); font-weight: 700; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
.ds-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-strip span { padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; }
.ds-seg { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); margin-bottom: 4px; }
.ds-seg span { flex: 1; text-align: center; padding: 6px 4px; border-radius: 999px; font-weight: 700; font-size: 12px; color: var(--muted); }
.ds-seg span.on { background: var(--accent); color: #fff; }
html[data-bs-theme="dark"] .ds-seg span.on { color: #07101c; }
.ds-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* it takes the shape of the box it is in, like the app on a phone: the menu shrinks to icons, then goes */
@container (max-width: 640px) {
  .ds-app { grid-template-columns: 52px minmax(0, 1fr); }
  .ds-nav b { display: none; }
  .ds-nav { justify-content: center; padding: 9px 0; }
  .ds-brand { margin-inline: auto; }
}
@container (max-width: 520px) {
  .ds-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-cols { grid-template-columns: minmax(0, 1fr); }
  .ds-hide { display: none; }
  .ds-row { grid-template-columns: 2fr 1fr; }
}
@container (max-width: 380px) {
  .ds-app { grid-template-columns: minmax(0, 1fr); }
  .ds-side { display: none; }
  .ds-main { padding: 12px; }
}

/* the footer: navy across the whole width, its content kept to the page's width with a side gutter (it touched the edges) */
body.fo footer { max-width: none; margin: 0; padding: 72px 0 32px; }
body.fo footer .footer-main, body.fo footer .footer-bottom { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
body.fo footer .footer-bottom { padding-top: 24px; }
body.fo footer .footer-links > div { gap: 0; }
body.fo footer .footer-links strong { margin-bottom: 8px; }
@media (max-width: 991.98px) {
  body.fo footer .footer-main { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 575.98px) {
  body.fo footer .footer-main, body.fo footer .footer-bottom { padding-left: 16px; padding-right: 16px; }
  body.fo footer .footer-links { grid-template-columns: 1fr 1fr; gap: 24px; }
}
