/* Driverly website. Colours are the app's light-mode tokens
   (packages/driverly_design/lib/src/tokens/colors.dart). */
:root {
  --bg: #F9F7F3;
  --surface: #FFFFFF;
  --text: #26231D;
  --muted: #6B6558;
  --border: #DED6C4;
  --accent: #378ADD;
  --accent-text: #185FA5;
  --accent-tint: #E6F1FB;
  --button: #2977C4;
  --button-hover: #1F68B0;
  --danger: #B3261E;
  --danger-tint: #FCECEA;
  --whatsapp: #1A8F4C;
  --whatsapp-tint: #E5F5EC;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(38, 35, 29, .06), 0 8px 24px rgba(38, 35, 29, .07);
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 24px; line-height: 1; vertical-align: middle;
  /* Reserve the glyph's space before the icon font loads. */
  display: inline-block; width: 1em; overflow: hidden;
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 20;
  background: var(--surface); padding: 8px 14px; border-radius: 10px; box-shadow: var(--shadow);
}
.skip:focus { top: 12px; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(249, 247, 243, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px var(--border); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 15px; }
.nav-links a:hover { background: rgba(38, 35, 29, .05); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; border-radius: 10px; color: var(--text); cursor: pointer; }
.nav-toggle .material-symbols-outlined { font-size: 28px; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px;
    box-shadow: 0 12px 24px rgba(38, 35, 29, .08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 16px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; border: 0;
}
.btn-primary { background: var(--button); color: #fff; box-shadow: 0 6px 16px rgba(41, 119, 196, .28); }
.btn-primary:hover { background: var(--button-hover); }
.btn-secondary { background: var(--surface); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--border); }
.btn-secondary:hover { background: var(--accent-tint); }
.play-icon { width: 20px; height: 20px; }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 88px; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px;
  background: var(--accent-tint); color: var(--accent-text);
  padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.eyebrow .material-symbols-outlined { font-size: 18px; }
.hero h1 { font-size: clamp(34px, 7vw, 54px); font-weight: 800; }
.hero .lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Notification mockups */
.mockups { position: relative; display: grid; gap: 14px; max-width: 440px; width: 100%; justify-self: center; }
.notif {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 16px 12px; border: 1px solid rgba(222, 214, 196, .6);
}
.notif:nth-child(2) { margin-inline-start: 24px; }
@media (max-width: 420px) { .notif:nth-child(2) { margin-inline-start: 0; } }
.notif-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.notif-head img { width: 20px; height: 20px; border-radius: 6px; box-shadow: 0 0 0 1px var(--border); }
.notif-head .time { margin-inline-start: auto; }
.notif-body { display: flex; gap: 12px; }
.notif-icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text);
}
.notif-icon.wa { background: var(--whatsapp-tint); color: var(--whatsapp); }
.notif-icon.err { background: var(--danger-tint); color: var(--danger); }
.notif-title { font-weight: 600; font-size: 15px; margin: 0 0 2px; }
.notif-text { font-size: 14px; color: var(--muted); margin: 0; }
.notif-quote {
  margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; font-size: 14px;
  background: var(--bg); color: var(--text);
}
.notif-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #EFEAE0; }
.notif-actions span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--accent-text);
}
.notif-actions .material-symbols-outlined { font-size: 18px; }

/* Sections */
section.block { padding: 64px 0; }
section.block.alt { background: var(--surface); border-block: 1px solid #EFEAE0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 4.6vw, 38px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.steps { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.alt .card { background: var(--bg); box-shadow: none; border: 1px solid #EFEAE0; }
.step-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent-text); font-weight: 700; margin-bottom: 14px;
}
.card h3 { font-size: 19px; }
.card p { color: var(--muted); margin: 0; }

.features { display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent-text); margin-bottom: 16px;
}
.feature-icon.err { background: var(--danger-tint); color: var(--danger); }
.feature-icon.wa { background: var(--whatsapp-tint); color: var(--whatsapp); }

.companies { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .companies { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.companies ul { padding-inline-start: 20px; color: var(--muted); }
.companies li { margin: 6px 0; }
.sheet { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sheet-title { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 600; border-bottom: 1px solid #EFEAE0; }
.sheet-title .material-symbols-outlined { color: var(--whatsapp); }
.sheet-scroll { overflow-x: auto; }
.sheet table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
.sheet th, .sheet td { text-align: start; padding: 10px 14px; border-bottom: 1px solid #EFEAE0; white-space: nowrap; }
.sheet th { background: #F4F1EA; font-weight: 600; font-size: 13px; color: var(--muted); }
.sheet td.num { font-variant-numeric: tabular-nums; }
.sheet tr:last-child td { border-bottom: 0; }

.contact-card { text-align: center; max-width: 640px; margin: 0 auto; padding: 40px 24px; }
.contact-card .feature-icon { margin: 0 auto 16px; }
.contact-card p { color: var(--muted); }

/* Footer */
.site-footer { padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 16px 48px; }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; margin-bottom: 20px; }
.back .material-symbols-outlined { font-size: 20px; }
.legal-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 22px; }
@media (min-width: 640px) { .legal-card { padding: 40px 44px; } }
.legal h1 { font-size: clamp(28px, 5vw, 38px); font-weight: 800; }
.legal h2 { font-size: 21px; margin-top: 2em; }
.legal h3 { font-size: 17px; margin-top: 1.4em; }
.legal ul { padding-inline-start: 22px; }
.legal li { margin: 6px 0; }
.updated { color: var(--muted); font-size: 15px; margin-bottom: 1.6em; }
.placeholder { background: #FFF3D6; padding: 0 4px; border-radius: 4px; }

.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.center-page .big { font-size: 72px; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 8px; }

[hidden] { display: none !important; }

/* The header's links */
.nav-end { display: flex; align-items: center; gap: 8px; }
.nav-links > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 760px) { .nav-links > ul { flex-direction: column; align-items: stretch; } }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.legal-top .back { margin-bottom: 0; }

/* ---- Route touches (option B, 2026-11-10) -------------------------------- */
/* The hero's notifications hang on a dashed route, a pin per stop. */
.mockups { isolation: isolate; padding-inline-start: 30px; }
.mockups::before {
  content: ""; position: absolute; inset: -60px -40px; z-index: -2;
  background: radial-gradient(closest-side, rgba(55, 138, 221, .18), transparent);
}
.mockups::after {
  content: ""; position: absolute; z-index: -1; inset-inline-start: 7px; top: 26px; bottom: 26px;
  border-inline-start: 2px dashed #C9BFA9;
}
.notif { position: relative; }
.notif::before {
  content: ""; position: absolute; inset-inline-start: -29px; top: 22px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint);
}
.notif:nth-child(2)::before { inset-inline-start: -53px; background: var(--whatsapp); box-shadow: 0 0 0 4px var(--whatsapp-tint); }
.notif:nth-child(3)::before { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-tint); }
@media (max-width: 420px) { .notif:nth-child(2)::before { inset-inline-start: -29px; } }
.hero { overflow: hidden; }

/* Steps: filled numbers, joined by a dashed line on desktop. */
.step-num { background: var(--button); color: #fff; box-shadow: 0 0 0 6px var(--bg); position: relative; }
.alt .step-num { box-shadow: 0 0 0 6px var(--surface); }
@media (min-width: 760px) {
  .steps { position: relative; }
  .steps::before { content: ""; position: absolute; top: 42px; inset-inline: 60px; border-top: 2px dashed #C9BFA9; }
  .steps .card { position: relative; }
}

/* ---- The deletion pages, in the legal card ------------------------------ */
.legal .lead { color: var(--muted); font-size: 18px; }
.note { color: var(--muted); font-size: 15px; }
.warn { color: var(--danger); font-weight: 600; }
.num-list { list-style: none; padding: 0; margin: 0 0 1em; counter-reset: n; }
.legal .num-list li { position: relative; padding-inline-start: 44px; margin: 14px 0; min-height: 30px; counter-increment: n; }
.num-list li::before {
  content: counter(n); position: absolute; inset-inline-start: 0; top: -1px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--button); color: #fff;
  font-weight: 700; font-size: 14px; display: grid; place-items: center;
}
.contacts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1em; }
.contacts .btn { min-height: 46px; padding: 0 20px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.phrase {
  display: inline-block; background: var(--accent-tint); color: var(--accent-text); border-radius: 10px;
  padding: 6px 14px; font-weight: 700; letter-spacing: .02em;
}
