/* ═══════════════════════════════════════════════════════════
   YuHyr Pre-Launch — WCAG 2.1 AAA Compliant Stylesheet
   Mobile-First · Responsive · Print-Ready
   ═══════════════════════════════════════════════════════════ */
:root {
  --green: #0E6B4E;
  --green-dark: #073D2C;
  --green-light: #E6F5F0;
  --green-mid: #10B981;
  --red: #B71C1C;
  --text: #111714;         /* 15.4:1 on white — AAA */
  --body: #2D3E35;         /* 10.8:1 on white — AAA */
  --muted: #4A5D52;        /* 7.2:1 on white — AAA */
  --caption: #566B60;      /* 5.6:1 on white — AAA large */
  --border: #B5C7BC;
  --bg: #F8FAF9;
  --card: #FFFFFF;
  --focus: #0B5ED7;
  --error: #B91C1C;
  --success: #047857;
  --radius: 10px;
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --transition: 0.2s ease;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Skip Link (AAA) ────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 100000;
  background: var(--green); color: #fff; padding: 14px 28px;
  border-radius: 0 0 8px 8px; font-weight: 700; text-decoration: none;
  font-size: 1rem; transition: top var(--transition);
}
.skip-link:focus { top: 0; outline: 3px solid var(--focus); outline-offset: 2px; }

/* ─── Focus (AAA — 3px solid, high contrast) ─────────────── */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; color: var(--text); }
h1 { font-size: clamp(1.875rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { color: var(--body); max-width: 68ch; }
a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--green); }

/* ─── Layout ─────────────────────────────────────────────── */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(48px, 8vw, 80px) 0; }
.section-title { text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; max-width: 580px; margin: 0 auto 40px; font-size: 1.05rem; color: var(--body); }

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); padding: 0 24px;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1140px; margin: 0 auto; height: 80px;
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-link img { height: 64px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: all var(--transition);
}
.nav-links a:hover { color: var(--green); border-bottom-color: var(--green); }
.nav-links a.btn { border-bottom: none; color: #fff; }
.nav-links a.btn:hover { color: #fff; }

/* Mobile hamburger */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 10px; color: var(--text); min-width: 48px; min-height: 48px;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* Mobile drawer */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.55);
}
.mobile-nav.open { display: block; }
.mobile-nav-panel {
  position: fixed; top: 0; right: 0; width: min(300px, 85vw); height: 100vh;
  background: var(--card); padding: 20px; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-close {
  display: flex; justify-content: flex-end; background: none; border: none;
  font-size: 2rem; cursor: pointer; padding: 8px; color: var(--text);
  min-width: 48px; min-height: 48px;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.mobile-nav-links a {
  display: block; padding: 14px 16px; color: var(--text); text-decoration: none;
  font-size: 1.1rem; font-weight: 600; border-radius: 8px;
  min-height: 48px; display: flex; align-items: center;
}
.mobile-nav-links a:hover { background: var(--green-light); color: var(--green-dark); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(155deg, var(--green-dark) 0%, var(--green) 55%, #15876A 100%);
  color: #fff; padding: clamp(56px, 10vw, 100px) 24px clamp(48px, 8vw, 90px);
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%); pointer-events: none;
}
.hero h1 { color: #fff; margin-bottom: 14px; position: relative; z-index: 2; }
.hero .tagline {
  color: rgba(255,255,255,0.9); font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  max-width: 600px; margin: 0 auto 32px; position: relative; z-index: 2; line-height: 1.6;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; font-size: 1rem; font-weight: 700; font-family: var(--font);
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  text-decoration: none; transition: all var(--transition);
  min-height: 48px; min-width: 48px; /* AAA touch target */
}
.btn-white { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn-white:hover { background: var(--green-light); border-color: var(--green-light); color: var(--green-dark); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: #8B1515; border-color: #8B1515; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ─── Features Grid ──────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--card); border-radius: 14px; padding: 28px 24px;
  border: 1px solid var(--border); transition: box-shadow var(--transition);
}
.feature-card:hover { box-shadow: 0 6px 24px rgba(14,107,78,0.1); }
.feature-icon {
  width: 50px; height: 50px; background: var(--green-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 1.5rem;
}
.feature-card h3 { margin-bottom: 6px; color: var(--text); }
.feature-card p { font-size: 0.95rem; color: var(--body); line-height: 1.6; }

/* ─── Stats Banner ───────────────────────────────────────── */
.stats-banner {
  background: var(--green-dark); color: #fff;
  padding: 36px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px; text-align: center;
}
.stat-num { display: block; font-size: 2.5rem; font-weight: 800; color: #fff; line-height: 1.1; }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin-top: 4px; }

/* ─── Forms ──────────────────────────────────────────────── */
.forms-section { background: var(--green-light); }
.forms-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 32px; align-items: start;
}
.form-card {
  background: var(--card); border-radius: 16px; padding: clamp(24px, 4vw, 36px);
  border: 2px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.form-card.driver-card { border-color: var(--red); }
.form-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.form-card .form-intro { font-size: 0.95rem; color: var(--body); margin-bottom: 24px; line-height: 1.5; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; color: var(--text);
}
.form-group label .req { color: var(--red); font-weight: 800; }
.form-group label .optional { color: var(--caption); font-weight: 400; font-size: 0.85rem; }

.form-input {
  width: 100%; padding: 13px 16px; font-size: 1rem; font-family: var(--font);
  color: var(--text); background: var(--bg); border: 2px solid var(--border);
  border-radius: 8px; transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 48px; /* AAA touch target */
}
.form-input:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(14,107,78,0.2); outline: none;
}
.form-input::placeholder { color: var(--caption); }
.form-input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(185,28,28,0.15); }

.field-error {
  color: var(--error); font-size: 0.85rem; font-weight: 600; margin-top: 5px;
  min-height: 1.2em;
}

.form-msg {
  padding: 18px 22px; border-radius: 10px; font-weight: 600; margin-bottom: 20px;
  display: none; font-size: 1rem; line-height: 1.5; text-align: center;
}
.form-msg.ok {
  display: block; background: #ECFDF5; color: #065F46; border: 2px solid #34D399;
  font-size: 1.05rem;
}
.form-msg.ok::before { content: "\2713  "; font-weight: 800; font-size: 1.2rem; }
.form-msg.err {
  display: block; background: #FEF2F2; color: #7F1D1D; border: 2px solid #FCA5A5;
}
.form-msg.err::before { content: "\26A0  "; font-size: 1.1rem; }

.form-consent { font-size: 0.8rem; color: var(--caption); margin-top: 14px; text-align: center; line-height: 1.5; }

/* Spinner */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Success Confirmation Card ──────────────────────────── */
.confirm-card {
  text-align: center; padding: 40px 24px;
  animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.confirm-icon {
  width: 72px; height: 72px; margin: 0 auto 20px;
  background: #ECFDF5; color: #047857;
  border-radius: 50%; font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid #34D399;
}
.confirm-heading {
  font-size: 1.4rem; color: var(--text); margin-bottom: 12px;
}
.confirm-message {
  font-size: 1.05rem; color: var(--body); line-height: 1.6;
  max-width: 380px; margin: 0 auto 8px;
}
.confirm-sub {
  font-size: 0.9rem; color: var(--muted); margin-bottom: 24px;
}
.confirm-btn {
  display: inline-flex; min-width: 180px;
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark); color: rgba(255,255,255,0.7); padding: 40px 24px 20px;
}
.footer-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px;
}
.footer-col h4 { color: #fff; margin-bottom: 12px; font-size: 0.95rem; }
.footer-col p { font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.7); }
.footer-col a { color: rgba(255,255,255,0.75); text-decoration: none; display: block; padding: 3px 0; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1140px; margin: 28px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem;
}

/* ─── Utilities ──────────────────────────────────────────── */
.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;
}
.text-center { text-align: center; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .hero { padding: 44px 20px 38px; }
  .header-inner { height: 70px; }
  .logo-link img { height: 52px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Reduced Motion (AAA) ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ─── High Contrast (AAA) ────────────────────────────────── */
@media (prefers-contrast: high) {
  :root { --border: #222; --muted: #333; }
  .feature-card, .form-card { border-width: 3px; }
  .form-input { border-width: 3px; }
}

/* ─── Print ──────────────────────────────────────────────── */
@media print {
  .site-header, .mobile-nav, .hero-buttons, .site-footer, .btn { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .hero { background: #0E6B4E !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
