/* Cervo website. Colours follow the app: dark "chrome", blaze orange, forest green, brand blue. */
:root {
  --bg: #14170f;
  --bg-alt: #1d201b;
  --card: #23271f;
  --line: #3a3f36;
  --text: #f2f1ec;
  --muted: #a3a89c;
  --accent: #e0752a;
  --accent-dark: #b0501a;
  --forest: #2f4a2a;
  --brand: #00357a;
  --radius: 16px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---- Header ---- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(20, 23, 15, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: 0.3px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.top nav { margin-left: auto; display: flex; gap: 18px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--text); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 12px; font-weight: 800; text-decoration: none; font-size: 16px; }
.btn-primary { background: var(--accent-dark); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn small { display: block; font-weight: 600; font-size: 11px; opacity: 0.85; letter-spacing: 0.4px; text-transform: uppercase; }
.btn .label { line-height: 1.15; text-align: left; }

/* ---- Hero ---- */
.hero { padding: 64px 0 56px; background: radial-gradient(1200px 500px at 80% 0%, rgba(224, 117, 42, 0.14), transparent 60%), linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: 1.2px; font-size: 13px; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.05; margin: 10px 0 16px; letter-spacing: -0.5px; }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 34em; margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* Phone mock-up of the map screen */
.phone { position: relative; width: 300px; max-width: 100%; aspect-ratio: 9 / 18.5; margin: 0 auto; border-radius: 38px; padding: 10px; background: #0b0d09; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px #2b2f27 inset; }
.screen { position: relative; height: 100%; border-radius: 30px; overflow: hidden; background: #6f7f55; }
.screen svg.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.chip { position: absolute; background: rgba(29, 32, 27, 0.95); color: var(--text); border-radius: 10px; padding: 6px 10px; font-size: 11px; line-height: 1.25; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); }
.chip b { font-size: 13px; }
.chip .arrow { color: var(--accent); font-weight: 900; font-size: 16px; margin-right: 6px; display: inline-block; transform: rotate(90deg); }
.chip.wind { top: 16px; left: 14px; right: 62px; display: flex; align-items: center; }
.chip.wmu { top: 64px; left: 14px; border-left: 3px solid #e8590c; }
.mbtns { position: absolute; right: 12px; top: 16px; display: grid; gap: 7px; }
.mbtns span { width: 38px; height: 38px; border-radius: 10px; background: rgba(29, 32, 27, 0.95); display: grid; place-items: center; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.3px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); }
.mbtns span.on { background: var(--accent-dark); color: #fff; }
.pin { position: absolute; width: 34px; transform: translate(-50%, -100%); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: #1d201b; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; text-align: center; font-size: 9px; font-weight: 700; color: var(--muted); border-top: 1px solid var(--line); }
.tabbar .on { color: var(--accent); }

/* ---- Sections ---- */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.3px; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(224, 117, 42, 0.14); color: var(--accent); }
.ico svg { width: 22px; height: 22px; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; color: var(--accent); border: 1px solid rgba(224, 117, 42, 0.5); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }

/* ---- Pricing ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; position: relative; }
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan .badge { position: absolute; top: -11px; left: 22px; background: var(--accent-dark); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.6px; padding: 3px 9px; border-radius: 6px; }
.plan h3 { margin: 0; font-size: 20px; }
.price { font-size: 34px; font-weight: 800; margin: 8px 0 0; }
.price span { font-size: 15px; color: var(--muted); font-weight: 600; }
.alt-price { color: var(--muted); font-size: 14px; margin: 2px 0 14px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.compare { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
footer a { color: var(--muted); }

/* ---- Policy pages ---- */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.1; margin: 0 0 6px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc p, .doc li { color: #d7d6cf; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--text); background: var(--bg-alt); }
.doc .table-wrap { overflow-x: auto; }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 18px; margin: 20px 0; }

/* ---- Small screens ---- */
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid, .plans { grid-template-columns: 1fr; }
  .top nav { gap: 14px; }
  .top nav a.hide-sm { display: none; }
}
