/* Dovedu website. Colours are the app's (tokens.json of the design handoff): navy welcome, blue icon, yellow destination. */
:root {
  --navy: #0F2140;
  --navy-2: #172B52;
  --navy-line: rgba(255, 255, 255, .12);
  --blue: #1E5FD9;
  --blue-hover: #174FBA;
  --blue-soft: #E8F0FE;
  --yellow: #FFCF33;
  --ink: #10233F;
  --muted: #5A6A82;
  --on-navy: #C4CFDF;
  --line: #E2E7EF;
  --bg: #FFFFFF;
  --bg-soft: #F4F7FB;
  --ok: #1E8E3E;
  --warn: #E37400;
  --lost: #D93025;
  --radius: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 Onest, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; max-width: 22ch; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font: 600 17px/1 Onest, system-ui, sans-serif; text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(30, 95, 217, .35); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .28); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .6); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* Top: header + hero on navy, like the app's welcome */
.top {
  background:
    radial-gradient(900px 520px at 78% 30%, rgba(30, 95, 217, .38), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(30, 95, 217, .16), transparent 70%),
    var(--navy);
  color: #fff;
  overflow: hidden;
}
.bar { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon { border-radius: 9px; }
.brand-word { width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a, .lang { color: var(--on-navy); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover, .lang:hover { color: #fff; }
.lang { padding: 7px 14px; border: 1px solid var(--navy-line); border-radius: 999px; font-size: 15px; }

.hero {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px;
  padding-top: 56px; padding-bottom: 88px;
}
.hero-road { position: absolute; right: -120px; top: -40px; width: 760px; height: 760px; color: rgba(255, 255, 255, .06); pointer-events: none; }
.hero-text { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08);
  color: var(--on-navy); font-weight: 600; font-size: 15px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 207, 51, .18); }
h1 { margin-top: 22px; font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; }
h1 { text-wrap: balance; }
h1 em { font-style: normal; color: var(--yellow); white-space: nowrap; }
.lead { margin-top: 22px; font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, .82); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.note { margin-top: 20px; font-size: 15px; color: var(--on-navy); opacity: .85; }

/* Phone mock: the app's map with its search field, status chip and Here I am */
.hero-phone { position: relative; display: flex; justify-content: center; }
.hero-phone::before {
  content: ""; position: absolute; inset: 10% 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30, 95, 217, .55), transparent); filter: blur(30px);
}
.phone {
  position: relative; width: 300px; aspect-ratio: 9 / 19.2;
  padding: 10px; border-radius: 46px; background: #0A1628;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14), 0 40px 80px rgba(0, 0, 0, .45);
}
.screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #1A2333; }
.screen > img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.ph-search {
  position: absolute; left: 12px; right: 12px; top: 40px;
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px;
  border-radius: 14px; background: #fff; color: #5F6B7A; font-size: 15px; font-weight: 500;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.ph-search .ic { width: 19px; height: 19px; color: var(--ink); }
.ph-bottom { position: absolute; left: 12px; right: 12px; bottom: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ph-bottom .chip { box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.ph-here {
  align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 600; font-size: 16px;
}
.ph-here .ic { width: 19px; height: 19px; }

/* Status chips, as on the map screen */
.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px;
  border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.2;
  border: 1px solid var(--line); white-space: nowrap;
}
.led { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.chip-ok .led { background: var(--ok); }
.chip-warn .led { background: var(--warn); }
.chip-lost .led { background: var(--lost); }

/* Sections */
.section { padding-top: 104px; padding-bottom: 8px; }
.kicker { color: var(--blue); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.section-lead { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 48px; }
.card { grid-column: span 2; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card:nth-child(4), .card:nth-child(5) { grid-column: span 3; }
.card h3 { margin-top: 20px; }
.card p { margin-top: 10px; color: var(--muted); }
.badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.badge .ic { width: 24px; height: 24px; }
.tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 3px 9px; border-radius: 999px; background: #FEF7E0; color: #8A5300; font-size: 13px; font-weight: 600; letter-spacing: 0; }

.band { margin-top: 104px; padding: 96px 0; background: var(--bg-soft); }
.band + .section { padding-top: 96px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.states { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.states li { padding: 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.states li p { margin-top: 12px; color: var(--muted); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { padding: 36px; border-radius: var(--radius); border: 1px solid var(--line); }
.panel h3 { font-size: 24px; margin-bottom: 12px; }
.panel .badge { margin-bottom: 20px; }
.panel > p { color: var(--muted); }
.steps { list-style: none; counter-reset: s; margin: 8px 0 18px; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 18px; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--yellow); font-weight: 800; font-size: 16px;
}

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; margin-top: 48px; }
.limits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; margin-top: 36px; }
.fact { display: flex; gap: 16px; align-items: flex-start; }
.fact > .ic { width: 26px; height: 26px; color: var(--blue); margin-top: 1px; }
.fact p { margin-top: 6px; color: var(--muted); }

.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-weight: 600; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 400; color: var(--blue); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }

.cta {
  margin-top: 104px; padding: 96px 0; color: #fff; text-align: center;
  background: radial-gradient(700px 360px at 50% 0%, rgba(30, 95, 217, .4), transparent 70%), var(--navy);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta h2 { max-width: none; }
.cta p { margin: 16px 0 32px; max-width: 34em; font-size: 19px; color: rgba(255, 255, 255, .8); }
.cta .mail { margin: 18px 0 0; font-size: 16px; }
.cta .mail a { color: var(--on-navy); }

.foot { background: #0A1730; color: var(--on-navy); padding: 40px 0; font-size: 15px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot a { color: var(--on-navy); }
.foot .brand { margin-right: auto; }
.foot .credit { flex-basis: 100%; font-size: 13px; opacity: .7; }

/* Legal pages (Markdown from src/content) */
.doc { max-width: 820px; padding-top: 56px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(32px, 4.6vw, 46px); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; margin-bottom: 20px; }
.doc h2 { font-size: 24px; font-weight: 700; max-width: none; margin: 56px 0 14px; scroll-margin-top: 20px; }
.doc p, .doc li { color: #2B3A52; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc li > ul, .doc li > ol { margin: 6px 0 0; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { overflow-wrap: anywhere; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.toc { margin: 32px 0 8px; padding: 22px 26px; border-radius: var(--radius); background: var(--bg-soft); }
.toc p { margin: 0 0 10px; font-weight: 700; color: var(--ink); }
.toc ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.toc li { margin: 0; padding: 4px 0; break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
.table { margin: 8px 0 20px; overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.doc th, .doc td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: #2B3A52; }
.doc th { background: var(--bg-soft); color: var(--ink); font-weight: 600; }
.top-bar { overflow: visible; }
.foot-links a { white-space: nowrap; }

/* 404 */
.nf { background: var(--navy); color: #fff; min-height: 100svh; display: grid; place-items: center; }
.nf-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 48px 24px; }
.nf-inner img { border-radius: 18px; }
.nf-inner h1 { margin: 6px 0 0; font-size: clamp(30px, 5vw, 44px); }
.nf-inner p { color: var(--on-navy); }
.nf-inner .btn { margin: 8px 4px 0; }

/* Narrower screens */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 28px; padding-bottom: 72px; }
  .hero-road { width: 520px; height: 520px; right: -160px; top: auto; bottom: -60px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: auto; }
  .card:nth-child(5) { grid-column: span 2; }
  .split, .pair { grid-template-columns: 1fr; gap: 40px; }
  .pair { gap: 18px; }
  .facts, .limits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .bar { height: 64px; }
  .brand-word { height: 19px; }
  .lead, .section-lead, .cta p { font-size: 17px; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .phone { width: 260px; border-radius: 40px; }
  .screen { border-radius: 31px; }
  .section { padding-top: 72px; }
  .band, .cta { margin-top: 72px; padding: 64px 0; }
  .band + .section { padding-top: 72px; }
  .cards { grid-template-columns: 1fr; margin-top: 32px; }
  .card:nth-child(5) { grid-column: auto; }
  .card { padding: 22px; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: start; }
  .card .badge { grid-row: span 2; }
  .card h3 { margin-top: 2px; }
  .card p { margin-top: 6px; }
  .panel { padding: 26px; }
  .facts, .limits { grid-template-columns: 1fr; gap: 26px; margin-top: 32px; }
  .chip { white-space: normal; }
  .doc { padding-top: 32px; padding-bottom: 64px; }
  .doc h2 { font-size: 21px; margin-top: 44px; }
  .toc { padding: 18px 20px; }
  .toc ul { columns: 1; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { position: absolute; left: -9999px; }
  .doc tr { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .doc td { border-bottom: 1px solid var(--line); padding: 8px 14px; }
  .doc td:last-child { border-bottom: 0; }
  .doc td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
  .ph-bottom .chip { white-space: nowrap; font-size: 14px; }
  .foot .brand { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}
