/* ===== Tokens ===== */
:root {
  --yellow: #FFC107;
  --yellow-dark: #E3A900;
  --yellow-light: #FFE28A;
  --ink: #17140F;
  --ink-soft: #241F19;
  --clay: #3F3533;
  --clay-light: #57493F;
  --cream: #FBF7EE;
  --cream-dim: #F2EBDA;
  --white: #FFFFFF;
  --on-dark: #F3EEE1;
  --on-dark-mute: rgba(243, 238, 225, 0.68);
  --line-light: rgba(23, 20, 15, 0.12);
  --line-dark: rgba(243, 238, 225, 0.14);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --shadow-md: 0 20px 40px -18px rgba(23, 20, 15, 0.45);
  --shadow-sm: 0 8px 18px -10px rgba(23, 20, 15, 0.3);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

.skip-link {
  position: absolute; left: 1rem; top: -60px;
  background: var(--yellow); color: var(--ink); font-weight: 700;
  padding: 0.75rem 1.25rem; border-radius: var(--radius-sm); z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-dark :focus-visible, .hero :focus-visible { outline-color: var(--yellow); }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  opacity: 0.9;
}
.btn-ghost:hover { opacity: 1; background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.section .btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-lg { padding: 1rem 2.1rem; font-size: 1rem; }
.btn-sm { min-height: 40px; padding: 0.55rem 1.25rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
  transition: box-shadow 0.2s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { border-radius: 9px; }
.brand-word {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-word-accent { color: var(--yellow-dark); }
.footer-tagline ~ .brand-word,
.brand-footer .brand-word { color: var(--on-dark); }
.brand-footer .brand-word-accent { color: var(--yellow); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-weight: 600;
  font-size: 0.95rem;
}
.primary-nav a:not(.btn) { padding: 0.5rem 0.1rem; position: relative; }
.primary-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--yellow-dark); transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.primary-nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { margin-left: var(--space-3); }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-light);
  background: var(--white);
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line-light);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-3) var(--space-5) var(--space-5);
    display: none;
    box-shadow: var(--shadow-sm);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a:not(.btn) { padding: 0.85rem 0.1rem; border-bottom: 1px solid var(--line-light); }
  .nav-cta { margin: var(--space-4) 0 0; text-align: center; }
}

/* ===== Section scaffolding ===== */
.section { padding: var(--space-9) 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--ink); color: var(--on-dark); }

.section-head { max-width: 640px; margin-bottom: var(--space-7); }
.section-head.reveal { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2, h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.01em; margin-top: 0.5rem; }
.section-sub { margin-top: 0.75rem; color: var(--clay); font-size: 1.05rem; }
.on-dark { color: var(--on-dark); }
.on-dark-sub { color: var(--on-dark-mute); }

.eyebrow {
  display: inline-flex; align-items: center;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--yellow);
  background: rgba(255, 193, 7, 0.14);
  border: 1px solid rgba(255, 193, 7, 0.3);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
}
.eyebrow-dark { color: var(--clay); background: rgba(63, 53, 51, 0.08); border-color: rgba(63, 53, 51, 0.18); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: var(--on-dark);
  overflow: hidden;
  padding: var(--space-9) 0 var(--space-8);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-lane { position: absolute; bottom: 18%; left: 0; width: 100%; height: 60px; }
.hero-stripe {
  position: absolute; top: -120px; right: -160px; width: 480px; height: 480px;
  background: repeating-linear-gradient(45deg, var(--yellow) 0 26px, transparent 26px 52px);
  opacity: 0.08; border-radius: 50%;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-8);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: var(--space-4) 0 var(--space-4);
}
.hero-sub { font-size: 1.1rem; color: var(--on-dark-mute); max-width: 46ch; margin-bottom: var(--space-6); }

.pay-callout {
  background: rgba(63, 53, 51, 0.55);
  border: 1px solid var(--line-dark);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-6);
  max-width: 480px;
}
.pay-callout-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); }
.pay-callout-figure { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 900; margin-top: 0.35rem; }
.pay-callout-figure span { font-size: 1rem; font-weight: 600; color: var(--on-dark-mute); margin-left: 0.3rem; }
.pay-callout-detail { margin-top: 0.5rem; color: var(--on-dark); }
.pay-callout-fine { margin-top: 0.6rem; font-size: 0.8rem; color: var(--on-dark-mute); }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

.hero-badge-wrap { position: relative; display: flex; justify-content: center; align-items: center; min-height: 280px; }
.hero-truck { width: 100%; max-width: 320px; opacity: 0.9; }
.sign-badge {
  position: absolute; top: -6px; right: 6%;
  background: var(--yellow);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  transform: rotate(6deg);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; align-items: center;
  border: 3px solid var(--ink);
  z-index: 2;
}
.sign-badge-amount { font-size: 1.3rem; font-weight: 900; line-height: 1; }
.sign-badge-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badge-wrap { min-height: 0; margin-top: var(--space-6); }
  .sign-badge { position: static; transform: rotate(-2deg); margin-bottom: var(--space-5); }
  .hero-truck { display: none; }
}

/* ===== Stat band ===== */
.stat-band { background: var(--cream-dim); border-bottom: 1px solid var(--line-light); padding: var(--space-6) 0; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.stat-sign {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
  position: relative;
}
.stat-sign::before {
  content: "";
  position: absolute; left: 50%; top: -9px; transform: translateX(-50%);
  width: 18px; height: 18px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%;
}
.stat-figure { display: block; font-size: 1.9rem; font-weight: 900; color: var(--ink); }
.stat-figure small { font-size: 1rem; font-weight: 700; color: var(--clay); }
.stat-label { display: block; margin-top: 0.35rem; font-size: 0.85rem; color: var(--clay); font-weight: 500; }

@media (max-width: 720px) { .stat-grid { grid-template-columns: 1fr; } }

/* ===== Calculator ===== */
.calc-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.calc-controls { padding: var(--space-7); }
.calc-slider-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-4); }
.calc-slider-label { font-weight: 700; color: var(--clay); }
.calc-slider-value { font-size: 1.6rem; font-weight: 900; color: var(--yellow-dark); }
.calc-slider {
  width: 100%; height: 8px; border-radius: 999px;
  background: var(--cream-dim); appearance: none; accent-color: var(--yellow-dark);
  cursor: pointer;
}
.calc-slider:focus-visible { outline-offset: 6px; }
.calc-slider-ticks { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--clay); margin-top: 0.5rem; }
.calc-breakdown { margin-top: var(--space-6); display: flex; flex-direction: column; gap: 0.85rem; }
.calc-breakdown > div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line-light); padding-bottom: 0.85rem; font-size: 0.92rem; }
.calc-breakdown dt { color: var(--clay); }
.calc-breakdown dd { font-weight: 700; }

.calc-result {
  background: var(--ink);
  color: var(--on-dark);
  padding: var(--space-7);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  justify-content: center;
}
.calc-result-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-mute); }
.calc-result-figure { font-size: clamp(2.4rem, 5vw, 3rem); font-weight: 900; margin: 0.4rem 0 0.2rem; }
.calc-result-annual { color: var(--yellow); font-weight: 700; margin-bottom: var(--space-5); }
.calc-note { font-size: 0.78rem; color: var(--on-dark-mute); margin-top: var(--space-4); }

@media (max-width: 860px) { .calc-card { grid-template-columns: 1fr; } }

/* ===== About + Benefits ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
.about-grid p { color: var(--clay-light); margin-top: var(--space-4); max-width: 52ch; }
.about-stats { display: flex; gap: var(--space-6); margin-top: var(--space-6); flex-wrap: wrap; }
.about-stats span { display: block; font-size: 1.5rem; font-weight: 900; color: var(--ink); }
.about-stats small { font-size: 0.8rem; color: var(--clay); }

.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.benefit-card {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.benefit-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(255, 193, 7, 0.16); color: var(--yellow-dark);
  font-weight: 800; margin-bottom: var(--space-3);
}
.benefit-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.benefit-card p { color: var(--clay); font-size: 0.92rem; }

@media (max-width: 940px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .benefit-grid { grid-template-columns: 1fr; }
}

/* ===== Requirements ===== */
.req-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.req-card {
  background: rgba(243, 238, 225, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
}
.req-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: var(--space-3); }
.req-card h3 small { font-weight: 500; color: var(--on-dark-mute); font-size: 0.75rem; }
.check-list { display: flex; flex-direction: column; gap: 0.65rem; }
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9rem;
  color: var(--on-dark-mute);
  line-height: 1.55;
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.28rem;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23FFC107'/%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' stroke='%2317140F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
}
.req-notice {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--on-dark-mute);
}

@media (max-width: 780px) { .req-grid { grid-template-columns: 1fr; } }

/* ===== Testimonial ===== */
.section-cream-dim { background: var(--cream-dim); }
.testimonial-card {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-7);
  box-shadow: var(--shadow-sm);
}
.quote-mark { width: 44px; margin: 0 auto var(--space-4); }
.testimonial-quote { font-size: 1.35rem; font-weight: 600; line-height: 1.5; color: var(--ink); }
.testimonial-attr { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: var(--space-6); }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.testimonial-attr strong { display: block; font-size: 0.95rem; }
.testimonial-attr small { color: var(--clay); font-size: 0.82rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
.contact-info { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.contact-info-label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-mute); }
.contact-info a { font-weight: 700; color: var(--yellow); }
.contact-info a:hover { text-decoration: underline; }

.contact-form {
  background: rgba(243, 238, 225, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-row-split > div { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-form label { font-size: 0.82rem; font-weight: 600; color: var(--on-dark-mute); }
.contact-form input, .contact-form select {
  min-height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark);
  background: rgba(251, 247, 238, 0.06);
  color: var(--on-dark);
  padding: 0 0.9rem;
}
.contact-form select { min-height: 46px; }
.contact-form input:focus-visible, .contact-form select:focus-visible { outline-offset: 2px; }
.form-note { font-size: 0.76rem; color: var(--on-dark-mute); text-align: center; }

@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.site-footer { background: #0E0C09; color: var(--on-dark-mute); padding: var(--space-8) 0 var(--space-6); }
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line-dark);
}
.footer-tagline { font-size: 0.85rem; }
.footer-nav { display: flex; gap: var(--space-5); font-size: 0.88rem; font-weight: 600; }
.footer-nav a:hover { color: var(--on-dark); }
.footer-emails { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; }
.footer-emails a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--space-5); padding-top: var(--space-5); font-size: 0.78rem; flex-wrap: wrap; }
.footer-fine { max-width: 52ch; opacity: 0.8; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
}

/* ===== Reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
