/* ----- Design tokens (Sacramento Kings palette) ----- */
:root {
  --purple-900: #2c1450;   /* deepest — top bar, footer band */
  --purple-700: #5a2d81;   /* Kings primary purple — logo, brand */
  --purple-600: #6a3a95;
  --purple-500: #7b4ba8;   /* focus ring */
  --silver-500: #c4ced4;   /* light silver — CTAs, accents */
  --silver-600: #a6b0b6;   /* hover */
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;
  --white:   #ffffff;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 6px 16px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.06);
  --shadow-lg: 0 20px 40px rgba(15,23,42,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--purple-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--ink-700); }

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

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; padding: 12px 22px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn--sm { padding: 8px 14px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--silver-500); color: var(--ink-900); }
.btn--primary:hover { background: var(--silver-600); text-decoration: none; box-shadow: var(--shadow-md); }
.btn--secondary { background: var(--white); color: var(--purple-700); border-color: var(--purple-700); }
.btn--secondary:hover { background: var(--purple-700); color: var(--white); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--purple-700); border-color: var(--purple-700); }
.btn--ghost:hover { background: var(--purple-700); color: var(--white); text-decoration: none; }
.btn:active { transform: translateY(1px); }

/* ----- Top bar ----- */
.top-bar { background: var(--purple-900); color: var(--white); font-size: .9rem; }
.top-bar__inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; }
.top-bar__phone { color: var(--silver-500); font-weight: 700; }
.top-bar__phone:hover { color: var(--white); text-decoration: none; }
@media (max-width: 640px) {
  .top-bar__item { display: none; }
  .top-bar__inner { justify-content: center; }
}

/* ----- Header ----- */
.header { background: var(--white); border-bottom: 1px solid var(--ink-100); position: sticky; top: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-900); }
.logo:hover { text-decoration: none; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--purple-700); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; letter-spacing: .02em;
}
.logo__text strong { display: block; font-size: 1.1rem; line-height: 1; }
.logo__text small { color: var(--ink-500); font-size: .8rem; }
.logo--light { color: var(--white); }
.logo--light .logo__text small { color: var(--ink-300); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-700); font-weight: 600; }
.nav a:hover { color: var(--purple-700); text-decoration: none; }
@media (max-width: 768px) {
  .nav a:not(.btn) { display: none; }
}

/* ----- Hero ----- */
.hero {
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(196,206,212,.20), transparent 60%),
    linear-gradient(180deg, #2c1450 0%, #5a2d81 100%);
  color: var(--white);
  padding: 64px 0 80px;
}
.hero__inner {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start;
}
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--silver-500); }
.hero__lead { color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 56ch; }
.hero__lead strong { color: var(--white); }
.hero__bullets {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: grid; gap: 10px;
}
.hero__bullets li {
  position: relative; padding-left: 30px; color: rgba(255,255,255,.95);
}
.hero__bullets li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--silver-500); color: var(--ink-900);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .8rem;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.badge {
  display: inline-block; background: rgba(255,255,255,.12);
  color: var(--white); padding: 6px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase; margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.18);
}

.trust-row {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15);
}
.trust-row__item { display: flex; flex-direction: column; }
.trust-row__item strong { font-size: 1.4rem; color: var(--silver-500); font-weight: 800; }
.trust-row__item span { font-size: .85rem; color: rgba(255,255,255,.85); }

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

/* ----- Offer card / form ----- */
.offer-card {
  background: var(--white); color: var(--ink-900);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--silver-500);
}
.offer-card h2 { font-size: 1.5rem; margin-bottom: 4px; }
.offer-card__sub { color: var(--ink-500); margin-bottom: 18px; font-size: .95rem; }

.lead-form { display: grid; gap: 14px; }
.lead-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink-700); }
.lead-form input,
.lead-form select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--ink-300);
  border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit;
  background: var(--white); color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lead-form input:focus,
.lead-form select:focus {
  outline: none; border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(123,75,168,.22);
}
.lead-form input.invalid,
.lead-form select.invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.15); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form__legal { font-size: .78rem; color: var(--ink-500); text-align: center; margin: 4px 0 0; font-weight: 400; }
.form-success {
  text-align: center; padding: 24px 12px; background: #ecfdf5;
  border: 1px solid #a7f3d0; border-radius: var(--radius-sm); color: #065f46;
}
.form-success h3 { color: #065f46; }

/* Netlify honeypot — hidden from real users, visible to bots */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ----- Sections ----- */
.section { padding: 72px 0; }
.section--alt { background: var(--ink-50); }
.section__title { text-align: center; }
.section__sub { text-align: center; color: var(--ink-500); max-width: 60ch; margin: 0 auto 40px; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid--3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--ink-100);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--purple-700); color: var(--silver-500);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; margin-bottom: 12px;
}

/* ----- Steps ----- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--white); padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--ink-100);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step__num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--silver-500); color: var(--ink-900);
  font-weight: 800; font-size: 1.2rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

/* ----- Compare table ----- */
.compare { overflow-x: auto; }
.compare__table {
  width: 100%; border-collapse: collapse;
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  min-width: 560px;
}
.compare__table th, .compare__table td {
  padding: 16px 20px; text-align: left;
  border-bottom: 1px solid var(--ink-100);
}
.compare__table thead th { background: var(--purple-900); color: var(--white); font-weight: 700; }
.compare__table tbody tr:last-child td { border-bottom: none; }
.compare__us { background: rgba(90,45,129,.06); }
.compare__table th.compare__us { background: var(--purple-700); color: var(--white); }

/* ----- Quotes ----- */
.quote {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; margin: 0; box-shadow: var(--shadow-sm);
  border: 1px solid var(--ink-100);
  position: relative;
}
.quote p { font-style: italic; color: var(--ink-900); }
.quote cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; color: var(--ink-700); }
.quote .stars { color: var(--silver-500); font-size: 1.05rem; margin-top: 4px; letter-spacing: 2px; }

/* ----- Areas list ----- */
.areas {
  list-style: none; padding: 0; margin: 24px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 800px;
}
.areas li {
  background: var(--white); padding: 12px; text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-100);
  font-weight: 600; color: var(--ink-700);
}
@media (max-width: 700px) { .areas { grid-template-columns: 1fr 1fr; } }

/* ----- FAQ ----- */
.faq {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--ink-900);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--purple-700); font-size: 1.4rem; font-weight: 800; }
.faq[open] summary::after { content: "−"; }
.faq p { margin-top: 10px; color: var(--ink-700); }

/* ----- CTA band ----- */
.cta-band {
  background: linear-gradient(90deg, var(--purple-900), var(--purple-700));
  color: var(--white); padding: 56px 0;
}
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ----- Footer ----- */
.footer { background: var(--ink-900); color: var(--ink-300); padding-top: 48px; }
.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 32px;
}
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.footer a { color: var(--ink-300); }
.footer a:hover { color: var(--silver-500); text-decoration: none; }
.footer__about { color: var(--ink-300); margin-top: 12px; max-width: 40ch; font-size: .95rem; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__bottom { border-top: 1px solid #1e293b; padding: 18px 0; color: var(--ink-500); }
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
}
