/* ===== Design tokens (matches the app's Tailwind theme) ===== */
:root {
  --navy: #0F172A;
  --navy-light: #1E293B;
  --blue: #3B82F6;
  --amber: #F59E0B;
  --amber-hover: #D97706;
  --gray-900: #111827;
  --gray-600: #4B5563;
  --gray-400: #9CA3AF;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;
  --white: #FFFFFF;
  --green: #22C55E;
  --max-width: 1280px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
  box-shadow: 0 8px 24px -8px rgba(245, 158, 11, 0.55);
}
.btn-primary:hover { background: var(--amber-hover); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid #D1D5DB;
}
.btn-outline:hover { background: var(--gray-50); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* ===== Header / nav (CSS-only mobile toggle) ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo {
  display: inline-flex; align-items: center;
  text-decoration: none;
}
.logo img { height: 40px; width: auto; display: block; }
.nav-links {
  display: flex; gap: 32px;
}
.nav-links a {
  color: #CBD5E1; text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.nav-links a:hover { color: var(--white); }
.nav-auth { display: flex; align-items: center; gap: 16px; }
.nav-auth a.login-link { color: #CBD5E1; text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-auth a.login-link:hover { color: var(--white); }

#nav-toggle { display: none; }
.nav-toggle-label {
  display: none; cursor: pointer; padding: 8px;
}
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
  display: block; width: 24px; height: 2px; background: var(--white); position: relative; transition: 0.2s;
}
.nav-toggle-label span::before, .nav-toggle-label span::after { content: ''; position: absolute; }
.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-auth .login-link { display: none; }
  .nav-toggle-label { display: block; }
  #nav-toggle:checked ~ .mobile-menu { max-height: 400px; padding: 16px 0 24px; }
  .mobile-menu {
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
    display: flex; flex-direction: column; gap: 4px;
  }
  .mobile-menu a {
    color: #CBD5E1; text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
    font-weight: 500;
  }
}
@media (min-width: 861px) { .mobile-menu { display: none; } }

/* ===== Hero ===== */
.hero {
  background: radial-gradient(ellipse at top right, rgba(59,130,246,0.25), transparent 60%), var(--navy);
  color: var(--white);
  padding: 96px 0 80px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.4);
  color: #93C5FD; font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800; margin-bottom: 24px;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, var(--amber), #FDE68A);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: 1.25rem; color: #CBD5E1; max-width: 640px; margin: 0 auto 40px;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { color: #94A3B8; font-size: 0.9rem; }

/* ===== Trust strip ===== */
.trust-strip {
  background: var(--navy-light);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 32px 0;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.trust-grid div { color: #E2E8F0; font-size: 0.95rem; font-weight: 600; }
.trust-grid div svg { width: 22px; height: 22px; color: var(--amber); margin-bottom: 8px; }
@media (max-width: 700px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Sections ===== */
section { padding: 96px 0; }
.section-alt { background: var(--gray-50); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-head .eyebrow {
  color: var(--amber-hover); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em;
  display: block; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 16px; }
.section-head p { color: var(--gray-600); font-size: 1.1rem; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step-card {
  position: relative; background: var(--white); border: 1px solid #E5E7EB; border-radius: var(--radius);
  padding: 32px 24px 28px; padding-top: 44px;
}
.step-num {
  position: absolute; top: -20px; left: 24px; width: 44px; height: 44px; border-radius: 12px;
  background: var(--navy); color: var(--white); font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -8px rgba(15,23,42,0.5);
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--navy); }
.step-card p { color: var(--gray-600); font-size: 0.95rem; }
@media (max-width: 960px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps-grid { grid-template-columns: 1fr; } }

/* Value props */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid #E5E7EB; }
.value-card .icon {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(245,158,11,0.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.value-card .icon svg { width: 22px; height: 22px; color: var(--amber-hover); }
.value-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--navy); }
.value-card p { color: var(--gray-600); font-size: 0.95rem; }
@media (max-width: 900px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .value-grid { grid-template-columns: 1fr; } }

/* Fee explainer */
.fee-panel {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.fee-panel .copy h2 { margin-bottom: 20px; }
.fee-panel .copy p { color: var(--gray-600); margin-bottom: 16px; font-size: 1.05rem; }
.fee-card {
  background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 36px;
}
.fee-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.fee-row:last-child { border-bottom: none; }
.fee-row .label { color: #CBD5E1; font-size: 0.95rem; }
.fee-row .value { font-weight: 700; }
.fee-row .value.free { color: #4ADE80; }
@media (max-width: 900px) { .fee-panel { grid-template-columns: 1fr; } }

/* For dealers band */
.dealers-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-light));
  color: var(--white); border-radius: 24px; padding: 56px; margin: 0 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.dealers-band h2 { font-size: 1.75rem; margin-bottom: 12px; }
.dealers-band p { color: #CBD5E1; max-width: 480px; }

/* Testimonials */
.testimonial-notice {
  text-align: center; font-size: 0.85rem; color: var(--gray-400); margin-bottom: 40px;
  border: 1px dashed #D1D5DB; border-radius: 10px; padding: 10px 16px; max-width: 560px; margin-left: auto; margin-right: auto;
}
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--white); border: 1px solid #E5E7EB; border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.testimonial-card .stars { color: var(--amber); letter-spacing: 2px; font-size: 0.9rem; }
.testimonial-card blockquote {
  margin: 0; font-size: 0.98rem; color: var(--gray-900); font-style: italic;
}
.testimonial-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-card .avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy-light);
  color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem;
}
.testimonial-card .who .name { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.testimonial-card .who .tag { font-size: 0.8rem; color: var(--gray-400); }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* Security */
.security-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.security-card { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius); background: var(--gray-50); }
.security-card .icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: rgba(59,130,246,0.12);
  display: flex; align-items: center; justify-content: center;
}
.security-card .icon svg { width: 20px; height: 20px; color: var(--blue); }
.security-card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--navy); }
.security-card p { font-size: 0.92rem; color: var(--gray-600); }
@media (max-width: 800px) { .security-grid { grid-template-columns: 1fr; } }

/* FAQ (native <details>) */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid #E5E7EB; border-radius: 12px; padding: 4px 20px; background: var(--white);
}
.faq-item summary {
  cursor: pointer; font-weight: 600; padding: 18px 0; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.4rem; color: var(--amber-hover); font-weight: 400; margin-left: 16px;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--gray-600); padding-bottom: 20px; margin-top: -6px; font-size: 0.98rem; }

/* Final CTA */
.final-cta {
  background: var(--navy); color: var(--white); text-align: center; padding: 96px 0;
}
.final-cta h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 16px; }
.final-cta p { color: #CBD5E1; font-size: 1.1rem; margin-bottom: 36px; }

/* Footer */
.site-footer { background: var(--navy-light); color: #94A3B8; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; margin-bottom: 48px; }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.footer-grid ul a { text-decoration: none; color: #94A3B8; }
.footer-grid ul a:hover { color: var(--white); }
.footer-brand p { margin-top: 16px; font-size: 0.92rem; line-height: 1.7; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem;
}
.footer-bottom a { text-decoration: none; color: #94A3B8; margin-left: 20px; }
.footer-bottom a:hover { color: var(--white); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
