/* MyCarScan — landing page.
   Navy above the fold, white below. Both colours are lifted straight out of the
   logo: #001040 for the shell and #4828e8 for anything that wants clicking. The
   brighter #9684ff is the same violet pushed up until it is legible on navy. */

:root {
  --ink: #001040;
  --ink-deep: #000a2b;
  --ink-soft: #0a1c55;
  --line-dark: #1c2f6b;

  --paper: #ffffff;
  --paper-alt: #f4f6fb;
  --text: #0d1327;
  --text-muted: #5a648b;
  --line: #e0e4ef;

  --on-dark: #e8ebf7;
  --on-dark-muted: #97a2c6;

  --accent: #9684ff;        /* on navy — the logo violet lifted until it reads */
  --accent-bright: #b3a6ff;
  --accent-ink: #ffffff;
  --violet: #4828e8;        /* on white — the logo violet as drawn */
  --violet-dark: #3a1fc4;

  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --shadow-card: 0 20px 50px -18px rgb(0 0 0 / 55%), 0 2px 6px rgb(0 0 0 / 12%);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip:focus { left: 0; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- header ---------- */

.site-head { background: var(--ink-deep); color: var(--on-dark); }
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}

.wordmark {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none;
}
.wordmark img { display: block; width: auto; height: 38px; }
.foot-mark img { height: 34px; }

.tel {
  display: inline-flex; align-items: baseline; gap: .5rem;
  text-decoration: none; font-weight: 700; padding: .5rem .9rem;
  border: 1px solid var(--line-dark); border-radius: 999px;
}
.tel:hover { border-color: var(--accent); }
.tel-label { color: var(--on-dark-muted); font-weight: 500; font-size: .85rem; }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(1100px 520px at 78% -8%, rgb(150 132 255 / 16%), transparent 62%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: var(--on-dark);
  padding: clamp(2.25rem, 5vw, 4.25rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero-inner { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 950px) {
  .hero-inner { grid-template-columns: 1fr minmax(400px, 460px); align-items: start; }
}

.eyebrow {
  text-transform: uppercase; letter-spacing: .1em; font-size: .74rem;
  font-weight: 700; color: var(--accent); margin: 0 0 .9rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 6.2vw, 3.5rem);
  font-weight: 800; margin-bottom: .55em;
}
.hero h1 .hl {
  color: var(--accent);
  /* Soft glow rather than a hard underline — it should read like an illuminated
     dash light, not a highlighter pen. */
  text-shadow: 0 0 34px rgb(150 132 255 / 38%);
}

.lede { font-size: clamp(1.02rem, 1.6vw, 1.14rem); color: var(--on-dark); max-width: 46ch; }
.lede strong { color: var(--accent-bright); }

.hero-points { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.hero-points li {
  position: relative; padding-left: 1.9rem;
  color: var(--on-dark-muted); font-size: .97rem;
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: .62rem; height: .62rem; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgb(150 132 255 / 18%);
}

/* ---------- quote card ---------- */

.quote {
  background: var(--paper); color: var(--text);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: clamp(1.35rem, 3vw, 1.85rem);
  display: grid; gap: 1rem; align-content: start;
}
.quote-head { display: grid; gap: .1rem; }
.quote-head .eyebrow { color: var(--violet); margin-bottom: .5rem; }
.quote-head h2 { font-size: 1.5rem; margin: 0; }
.quote-sub { color: var(--text-muted); font-size: .92rem; margin: .35rem 0 0; }

.quote-grid { display: grid; gap: 1rem; }
@media (min-width: 460px) { .quote-grid { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .35rem; }
.field > span { font-weight: 600; font-size: .88rem; }
.field > span em { color: var(--text-muted); font-style: normal; font-weight: 500; }

.field select,
.field input,
.field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  width: 100%; padding: .72rem .85rem; min-height: 48px;
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); transition: border-color .12s ease;
}
.field textarea { min-height: 0; resize: vertical; line-height: 1.45; }
.field select:hover, .field input:hover, .field textarea:hover { border-color: #b9c1de; }
.field select:disabled { background: var(--paper-alt); color: #98a1c0; cursor: not-allowed; }
.field input::placeholder, .field textarea::placeholder { color: #98a1c0; }

.field select {
  appearance: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%235a648b' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.5rem;
}

.field.invalid select, .field.invalid input { border-color: #d0342c; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: .85rem 1.5rem; min-height: 52px;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  transition: transform .08s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }

.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-dark); }
.btn-primary[disabled] { opacity: .55; cursor: progress; }

.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgb(255 255 255 / 8%); }

.quote-note { font-size: .82rem; color: var(--text-muted); text-align: center; margin: -.3rem 0 0; }
.quote-note.error { color: #c0281f; font-weight: 600; }

/* ---------- quote result ---------- */

.quote-result {
  display: grid; gap: .5rem; text-align: center;
  padding: 1.15rem; border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #f6f4ff, #ece8ff);
  border: 1.5px solid #cfc6f7;
}
.quote-result .price { color: var(--ink);
  font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
}
.quote-result .price-sub { font-size: .9rem; color: var(--violet-dark); margin: 0; }
.quote-result .price-line { font-size: .92rem; color: var(--text-muted); margin: 0; }

/* ---------- bands ---------- */

.band { padding: clamp(3rem, 6vw, 4.75rem) 0; }
.band.on-dark { background: var(--ink); color: var(--on-dark); }
.section-h { font-size: clamp(1.5rem, 3.2vw, 2rem); margin-bottom: 1.4rem; }

.steps { background: var(--paper-alt); }
.step-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 780px) { .step-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.step-grid h3 { font-size: 1.12rem; margin: .7rem 0 .35rem; }
.step-grid p { color: var(--text-muted); margin: 0; font-size: .96rem; }
.step-n {
  display: grid; place-items: center; width: 2.35rem; height: 2.35rem;
  border-radius: 50%; background: var(--ink); color: var(--accent);
  font-weight: 800; font-size: 1rem;
}

.included-inner { display: grid; gap: 2.25rem; }
@media (min-width: 900px) { .included-inner { grid-template-columns: 1.15fr .85fr; gap: 3rem; } }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--on-dark); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .34em;
  width: 1.1rem; height: .6rem; border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}

.callout {
  background: var(--ink-soft); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 1.5rem;
}
.callout h3 { font-size: 1.15rem; color: var(--accent); }
.callout p { color: var(--on-dark-muted); font-size: .95rem; }

.closer { text-align: center; }
.closer-inner { max-width: 46rem; margin-inline: auto; }
.closer h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); }
.closer p { color: var(--text-muted); }
.closer .btn { margin: .5rem 0 1rem; }

/* ---------- footer ---------- */

.site-foot { background: var(--ink-deep); color: var(--on-dark-muted); padding: 3rem 0 1.75rem; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 780px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.site-foot h2 { font-size: 1rem; color: var(--on-dark); }
.site-foot .muted { color: var(--on-dark-muted); font-size: .93rem; }
.foot-mark { color: var(--on-dark); margin-bottom: .85rem; }
.areas { line-height: 1.8; }
.legal {
  border-top: 1px solid var(--line-dark); margin-top: 2.25rem; padding-top: 1.25rem;
  font-size: .82rem;
}
.legal p { margin: 0; }
