/* roadgrad.com. Colours are the app's design tokens (design/tokens/roadgrad.tokens.json); headings use Baloo 2 like
   the app, body text uses the system font. */
@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/baloo2-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ground: #F6F8FB; --surface: #FFFFFF; --ink: #1F2A44; --ink-muted: #5B6780; --line: #E1E6EF; --outline: #7D879C;
  --soft: #EDF1F7; --brand: #1E6BFF; --brand-edge: #0F4FD1; --brand-ink: #1553CC; --on-brand: #FFFFFF;
  --selected: #E8F0FF; --success-tint: #E3F6EA; --success-ink: #11622F; --sun: #FFBE1A; --sun-edge: #DB9A00;
  --sun-tint: #FFF4D6; --sun-ink: #7A5600; --error-ink: #9A2A23;
  --radius: 20px;
  --heading: "Baloo 2", ui-rounded, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #111827; --surface: #1A2436; --ink: #F2F5FB; --ink-muted: #A3AEC4; --line: #2A3652; --outline: #7A88A6;
    --soft: #1F2A40; --brand: #4D8DFF; --brand-edge: #2F6BDB; --brand-ink: #8CB6FF; --selected: #1D2B4A;
    --success-tint: #123222; --success-ink: #A6EFC0; --sun-tint: #3A2F12; --sun-ink: #FFD46B; --error-ink: #FFC2BD;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Telugu", sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand-edge); outline-offset: 3px; border-radius: 6px;
}
h1, h2, h3, .brand span { font-family: var(--heading); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; margin: 0 0 16px; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--ink-muted); }
.small { font-size: .9rem; }
.skip-link { position: absolute; left: -10000px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 10; padding: 10px; background: var(--surface); }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.brand .lumo { width: 34px; height: 40px; }
.brand span { font-size: 1.6rem; font-weight: 800; padding-top: 4px; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.main-nav a:hover { color: var(--brand-ink); }
@media (max-width: 860px) { .main-nav { display: none; } .header-row .btn-small { margin-left: auto; } }
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 40px 0 28px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid a:not(.brand) { display: block; color: var(--ink); text-decoration: none; padding: 3px 0; }
.footer-grid a:not(.brand):hover { color: var(--brand-ink); text-decoration: underline; }
.footer-h { font-size: 1rem; margin: 6px 0 8px; }
.footer-base { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.crumbs { font-size: .9rem; color: var(--ink-muted); padding-top: 16px; }
.crumbs a { color: var(--ink-muted); }

/* Buttons: the app's chunky button with a darker bottom edge */
.btn { display: inline-block; border: 0; border-bottom: 4px solid var(--brand-edge); border-radius: 14px;
  background: var(--brand); color: var(--on-brand); font: 700 1.05rem/1.2 var(--heading); padding: 13px 22px 10px;
  text-decoration: none; cursor: pointer; transition: transform .08s ease; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.btn-big { font-size: 1.2rem; padding: 16px 28px 12px; }
.btn-small { font-size: .95rem; padding: 9px 16px 7px; border-bottom-width: 3px; border-radius: 12px; white-space: nowrap; }
.btn-ghost { background: var(--surface); color: var(--brand-ink); border: 2px solid var(--line); border-bottom: 4px solid var(--line); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.hero { padding: 48px 0 32px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--brand-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; margin: 0 0 10px; }
.accent { color: var(--brand); }
.lead { font-size: 1.2rem; color: var(--ink-muted); margin: 0 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.hero-actions .btn { display: inline-flex; align-items: center; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.badges li { background: var(--success-tint); color: var(--success-ink); font-weight: 650; border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
.hero-art { position: relative; display: flex; justify-content: center; }
.sun { position: absolute; width: 118%; aspect-ratio: 1; border-radius: 50%; background: var(--sun-tint); top: 4%; left: 50%; transform: translateX(-50%); }
.phone { position: relative; width: min(330px, 80%); border-radius: 34px; border: 8px solid var(--ink);
  box-shadow: 0 30px 60px rgba(31, 42, 68, .25); background: var(--ground); }
.hero-lumo { position: absolute; left: 0; bottom: 8%; width: 120px; animation: bob 3.2s ease-in-out infinite; }
.hero-lumo .lumo { width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(31,42,68,.18)); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-lumo { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { margin-top: 12px; }
  .hero-lumo { width: 84px; left: 4%; }
}

/* Stats strip */
.stats { padding: 8px 0 24px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats-row div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stats-row strong { display: block; font: 800 2.2rem/1 var(--heading); color: var(--brand); }
.stats-row span { color: var(--ink-muted); font-size: .95rem; }
@media (max-width: 860px) { .stats-row { grid-template-columns: 1fr 1fr; } }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-h { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; margin: 0 0 10px; }
.small-h { font-size: 1.4rem; }
.section-lead { color: var(--ink-muted); font-size: 1.1rem; max-width: 680px; margin: 0 0 28px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Route (how it works) mirrors the Home tab's Start → LLR line */
.route { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.route::before { content: ""; position: absolute; top: 13px; left: 10%; right: 10%; border-top: 3px dashed var(--line); }
.route li { position: relative; text-align: center; }
.route .dot { display: block; width: 28px; height: 28px; margin: 0 auto 10px; border-radius: 50%; background: var(--brand); border: 5px solid var(--selected); }
.route li:last-child .dot { background: var(--sun); border-color: var(--sun-tint); }
.route strong { display: block; font: 700 1.2rem var(--heading); }
.route span:not(.dot) { color: var(--ink-muted); font-size: .95rem; }
@media (max-width: 720px) {
  .route { grid-template-columns: 1fr; text-align: left; }
  .route::before { top: 10px; bottom: 10px; left: 13px; right: auto; border-top: 0; border-left: 3px dashed var(--line); }
  .route li { text-align: left; padding-left: 44px; }
  .route .dot { position: absolute; left: 0; top: 0; }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.feature img { display: block; width: 100%; aspect-ratio: 540 / 600; object-fit: cover; object-position: 50% 46%; border-bottom: 1px solid var(--line); }
.feature div { padding: 18px 20px 22px; }
.feature p { margin: 0; color: var(--ink-muted); }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Chips, state cards, sign tiles */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 8px 0 28px; }
.state-card { background: var(--surface); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 16px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.state-card:hover { border-color: var(--brand); }
.state-card strong { display: block; font: 700 1.1rem var(--heading); }
.state-card span { color: var(--ink-muted); font-size: .88rem; }
.sign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 8px 0 24px; }
.sign-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px 12px; text-align: center; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.sign-tile:hover { border-color: var(--brand); }
.sign-tile img { display: block; width: 96px; height: 96px; object-fit: contain; margin: 0 auto 8px; background: #fff; border-radius: 10px; }
.sign-group { padding-top: 24px; }
.sign-group h2 { margin-bottom: 4px; }

/* Driving-school illustration */
.school-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 16px 40px rgba(31,42,68,.08); }
.school-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); font-weight: 600; }
.school-row:last-child { border-bottom: 0; }
.pill { background: var(--soft); color: var(--ink-muted); border-radius: 999px; padding: 4px 12px; font-size: .88rem; }
.pill.ok { background: var(--success-tint); color: var(--success-ink); }

/* FAQ */
.faq details { background: var(--ground); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font: 700 1.1rem var(--heading); padding: 12px 0; }
.faq p { margin: 0 0 14px; color: var(--ink-muted); }

/* Early-access signup */
.signup { padding: 48px 0 8px; }
.signup-card { background: var(--ink); color: #F2F5FB; border-radius: 28px; padding: clamp(24px, 5vw, 48px); position: relative; overflow: hidden; }
.signup-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--sun); opacity: .18; }
.signup-card h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 8px; color: #fff; }
.signup-card p { color: #C9D2E3; max-width: 640px; }
.signup-card a { color: #8CB6FF; }
.signup-form { position: relative; z-index: 1; }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin: 18px 0 14px; max-width: 720px; }
.field span { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 6px; color: #fff; }
.field em { font-style: normal; color: #A3AEC4; font-weight: 400; }
.field input, .field select { width: 100%; padding: 13px 14px; border-radius: 12px; border: 2px solid #3A4870; background: #fff; color: #1F2A44; font: inherit; }
.signup-card .btn { background: var(--sun); color: #1F2A44; border-bottom-color: var(--sun-edge); }
.form-status { font-weight: 650; min-height: 1.4em; margin: 12px 0 0; }
.form-status.ok { color: #A6EFC0; }
.form-status.err { color: #FFC2BD; }
.prose .form-status.ok { color: var(--success-ink); }
.prose .form-status.err { color: var(--error-ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* Inner pages */
.page-hero { padding: 36px 0 12px; }
.page-hero .lead { margin-bottom: 14px; }
.meta { color: var(--ink-muted); font-size: .95rem; }
.note { background: var(--sun-tint); color: var(--ink); border-radius: 16px; padding: 16px 18px; margin: 24px 0; }
.guide-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px 16px; margin: 18px 0; }
.guide-section h2 { margin: 16px 0 8px; }
.guide-section ol, .guide-section ul { padding-left: 1.3em; margin: 0 0 8px; }
.guide-section li { margin: 8px 0; }
.india-label { font-weight: 700; color: var(--brand-ink); margin: 16px 0 4px; font-size: .95rem; }
.guide-section ul.india li { color: var(--ink-muted); }
.sources ul { padding-left: 1.2em; }
.sources li { margin: 6px 0; font-size: .95rem; }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); margin-top: 24px; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.prose h2 { font-size: 1.3rem; margin-top: 28px; }
.prose label { display: block; font-weight: 650; margin-top: 16px; }
.prose input, .prose textarea, .prose select { width: 100%; margin-top: 6px; padding: 12px; border: 1px solid var(--outline); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.prose .btn { margin-top: 18px; }
address { font-style: normal; }
.received { text-align: center; }
.received-lumo { width: 110px; margin: 0 auto 8px; }
.received-lumo .lumo { width: 100%; height: auto; }
.sign-hero { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; margin: 24px 0 8px; }
.sign-hero img { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; width: 240px; height: 240px; object-fit: contain; }
.sign-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 6px; }
.names { font-size: 1.2rem; margin: 0 0 6px; }
.meaning { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 24px 10px; margin: 18px 0; font-size: 1.1rem; }
.meaning h2 { margin: 16px 0 4px; font-size: 1.2rem; }
@media (max-width: 600px) { .sign-hero { grid-template-columns: 1fr; } .sign-hero img { width: 200px; height: 200px; } }
