/* Trecho — landing page. */
/* A landing de cima a baixo (topo, apresentação, a viagem em "Como funciona", o que tem dentro,
   planos, perguntas, lista de espera). Só na seção da viagem a cena fica presa na tela
   enquanto a pessoa rola; antes e depois, a página rola normal (task-231). As duas telas de
   produto (app do motorista e painel do administrador) ficam sempre no tema claro, seja
   qual for o da página. */
:root {
  /* landing (apps/site/styles.css) */
  --bg: #f7f5f0;
  --bg-alt: #efece5;
  --surface: #ffffff;
  --ink: #17161d;
  --muted: #5c596a;
  --line: #e2ded4;
  --accent: #5646e0;
  --accent-ink: #ffffff;
  --accent-text: #5646e0;
  --accent-soft: rgba(86, 70, 224, 0.1);
  --gps: #1aa3d6;
  --road: #dcd8ce;
  --ok: #1f8a5b;
  --ok-soft: rgba(31, 138, 91, 0.12);
  --warn: #9a6400;
  --warn-soft: rgba(214, 150, 20, 0.16);
  --shot-frame: #0b0c12;
  --shadow: 0 1px 2px rgba(23, 22, 29, 0.06), 0 18px 40px -22px rgba(23, 22, 29, 0.28);
  --note-bg: #ebe7f9;
  --note-line: #cfc8f0;
  --on-photo: #ffffff;
  --photo-scrim: rgba(11, 12, 18, 0.72);

  /* vidro do painel da viagem */
  --glass-tint: rgba(255, 255, 255, 0.58);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --glass-hi: rgba(255, 255, 255, 0.95);
  --glass-lo: rgba(23, 22, 29, 0.06);
  --glass-shadow: 0 1px 1px rgba(23, 22, 29, 0.04), 0 24px 60px -24px rgba(36, 30, 80, 0.35);
  --glass-sheen: rgba(255, 255, 255, 0.55);
  --glass-rule: rgba(23, 22, 29, 0.08);

  /* cena isométrica */
  --ground: #e9e4d6;
  --field: #d7dcb6;
  --field-row: #c0ca97;
  --asphalt: #5d5b6e;
  --lane: #f7f5f0;
  --bldg: #fbfaf7;
  --dock: #d4cebf;
  --silo: #ecebe5;
  --trailer: #fbfbfd;
  --cab: #5646e0;
  --metal: #b9b8c6;
  --skirt: #3a3948;
  --wheel: #22212b;
  --hub: #9c9bab;
  --glass: #2f3554;
  --glass-glint: #8fa2cf;
  --lamp: #fff4c2;
  --tail: #d0405a;
  --beam: rgba(255, 236, 160, 0);
  --tree: #8aa864;
  --trunk: #8a6a48;
  --crate: #c99a5c;
  --canopy: #ffffff;
  --pump: #5646e0;
  --shade: #2c2645;
  --ground-shadow: rgba(40, 32, 70, 0.22);
  --label-halo: #f7f5f0;
  --wire: rgba(86, 70, 224, 0.45);
  --lt-frame: #1a1b23;
  --lt-base: #b9bac4;
  --lt-base-hi: #e6e7ee;

  /* app do motorista (apps/driver): sempre claro */
  --phone-frame: #0b0c12;
  --app-bg: #f1f5f9;
  --app-card: #ffffff;
  --app-surface2: #f8fafc;
  --app-ink: #0f172a;
  --app-muted: #475569;
  --app-line: #e2e8f0;
  --app-input: #cbd5e1;
  --app-accent: #6753e6;
  --app-ok: #047857;
  --app-ok-bg: #ecfdf5;
  --app-warn: #b45309;
  --app-warn-bg: #fffbeb;
  --app-info: #1d4ed8;
  --app-info-bg: #eff6ff;
  --app-on-accent: #ffffff;
  --app-paper: #fbfbf8;
  --app-paper-ink: #8f8ca3;
  --app-paper-rule: #e2e0ea;
  --app-pen: #2b3f9e;

  /* painel do administrador (apps/web, packages/design-tokens): sempre claro */
  --w-bg: #f1f5f9;
  --w-surface: #ffffff;
  --w-surface2: #f8fafc;
  --w-surface-accent: #f5f3ff;
  --w-line: #e2e8f0;
  --w-ink: #0f172a;
  --w-muted: #475569;
  --w-action: #6753e6;
  --w-on-action: #ffffff;
  --w-ok-bg: #ecfdf5; --w-ok: #047857;
  --w-warn-bg: #fffbeb; --w-warn: #b45309;
  --w-info-bg: #eff6ff; --w-info: #1d4ed8;
  --w-shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 1px 3px rgb(15 23 42 / 4%);
  --map-land: #dcebdc;
  --map-road: #ffffff;
  --map-road-edge: #b9c9bb;
  --map-city: #3d4a5c;
  --map-stale: #64748b;

  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --gutter: 20px;
  --maxw: 1160px;
  --top-h: 64px;
  --stick: calc(var(--top-h) + env(safe-area-inset-top, 0px));
  --stage-h: calc(100svh - var(--stick));
  --panel-w: min(380px, 33vw);
  --phone-w: clamp(210px, 17vw, 256px);
  --edge: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c12; --bg-alt: #10111a; --surface: #151622; --ink: #eeedf6; --muted: #a4a2b8; --line: #262838;
    --accent: #7c6fff; --accent-ink: #0b0c12; --accent-text: #9a90ff; --accent-soft: rgba(124, 111, 255, 0.14);
    --gps: #4fd1ff; --road: #2a2c3d; --ok: #5fd39d; --ok-soft: rgba(95, 211, 157, 0.14);
    --warn: #f3c354; --warn-soft: rgba(243, 195, 84, 0.14); --shot-frame: #05060a;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 50px -26px rgba(0, 0, 0, 0.8);
    --note-bg: #17152b; --note-line: #2f2a55;
    --glass-tint: rgba(20, 21, 34, 0.55); --glass-edge: rgba(255, 255, 255, 0.12); --glass-hi: rgba(255, 255, 255, 0.2);
    --glass-lo: rgba(0, 0, 0, 0.3); --glass-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 30px 70px -28px rgba(0, 0, 0, 0.9);
    --glass-sheen: rgba(255, 255, 255, 0.07); --glass-rule: rgba(255, 255, 255, 0.08);
    --ground: #161827; --field: #1b2621; --field-row: #26362b; --asphalt: #2c2e41; --lane: #8d8ba6;
    --bldg: #262840; --dock: #2f3148; --silo: #2b2d44; --trailer: #dedcec; --cab: #7c6fff; --metal: #5d5c70;
    --skirt: #15151f; --wheel: #05060a; --hub: #4b4a5c; --glass: #1a2140; --glass-glint: #4fd1ff;
    --lamp: #ffe27a; --tail: #ff5470; --beam: rgba(255, 226, 122, 0.16);
    --tree: #3f6b4f; --trunk: #4d3b2a; --crate: #9a7442; --canopy: #d9d7e8; --pump: #7c6fff;
    --shade: #000000; --ground-shadow: rgba(0, 0, 0, 0.45); --label-halo: #0b0c12;
    --lt-frame: #050609; --lt-base: #2a2b36; --lt-base-hi: #4a4b5a; --wire: rgba(164, 155, 255, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c12; --bg-alt: #10111a; --surface: #151622; --ink: #eeedf6; --muted: #a4a2b8; --line: #262838;
  --accent: #7c6fff; --accent-ink: #0b0c12; --accent-text: #9a90ff; --accent-soft: rgba(124, 111, 255, 0.14);
  --gps: #4fd1ff; --road: #2a2c3d; --ok: #5fd39d; --ok-soft: rgba(95, 211, 157, 0.14);
  --warn: #f3c354; --warn-soft: rgba(243, 195, 84, 0.14); --shot-frame: #05060a;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 50px -26px rgba(0, 0, 0, 0.8);
  --note-bg: #17152b; --note-line: #2f2a55;
  --glass-tint: rgba(20, 21, 34, 0.55); --glass-edge: rgba(255, 255, 255, 0.12); --glass-hi: rgba(255, 255, 255, 0.2);
  --glass-lo: rgba(0, 0, 0, 0.3); --glass-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 30px 70px -28px rgba(0, 0, 0, 0.9);
  --glass-sheen: rgba(255, 255, 255, 0.07); --glass-rule: rgba(255, 255, 255, 0.08);
  --ground: #161827; --field: #1b2621; --field-row: #26362b; --asphalt: #2c2e41; --lane: #8d8ba6;
  --bldg: #262840; --dock: #2f3148; --silo: #2b2d44; --trailer: #dedcec; --cab: #7c6fff; --metal: #5d5c70;
  --skirt: #15151f; --wheel: #05060a; --hub: #4b4a5c; --glass: #1a2140; --glass-glint: #4fd1ff;
  --lamp: #ffe27a; --tail: #ff5470; --beam: rgba(255, 226, 122, 0.16);
  --tree: #3f6b4f; --trunk: #4d3b2a; --crate: #9a7442; --canopy: #d9d7e8; --pump: #7c6fff;
  --shade: #000000; --ground-shadow: rgba(0, 0, 0, 0.45); --label-halo: #0b0c12;
  --lt-frame: #050609; --lt-base: #2a2b36; --lt-base-hi: #4a4b5a; --wire: rgba(164, 155, 255, 0.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--stick) + 12px); -webkit-text-size-adjust: 100%; scrollbar-width: none; }

/* Barra de rolagem padrão dos produtos (decisão de 2026-10-20, cofre da Presenza Soluções):
   a barra nativa some e fica só um indicador fino que dá para arrastar. */
html::-webkit-scrollbar { display: none; }
.scrollbar { position: fixed; top: 0; right: 0; bottom: 0; width: 12px; z-index: 1000; pointer-events: none; }
.scrollbar[hidden] { display: none; }
.scrollbar__thumb {
  position: absolute; top: 0; right: 3px; width: 4px; border-radius: 2px;
  background: rgba(128, 128, 128, 0.4);
  pointer-events: auto; cursor: grab; touch-action: none;
  transition: background-color 0.3s ease, width 0.3s ease;
}
.scrollbar__thumb:hover, .scrollbar__thumb.is-dragging { width: 6px; background: rgba(128, 128, 128, 0.7); }
.scrollbar__thumb.is-dragging { cursor: grabbing; }
@media (hover: none) { .scrollbar { display: none; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-optical-sizing: auto; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.narrow { max-width: 800px; }
.eyebrow { color: var(--accent-text); font-weight: 600; font-size: 0.95rem; margin-bottom: 14px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 30; padding: 10px 14px; background: var(--surface); color: var(--ink); border-radius: 8px; }
.skip:focus { top: 12px; }

/* botões (da landing) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border-radius: 12px; border: 0; background: var(--accent); color: var(--accent-ink);
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 0.95rem; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { filter: none; box-shadow: inset 0 0 0 1.5px var(--accent); }

/* ── Topo (igual ao atual) ───────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: var(--top-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand-mark { width: 34px; height: 14px; overflow: visible; }
.brand-mark path { stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; }
.brand-start { fill: var(--accent); }
.brand-end { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; border-radius: 8px; }
.nav a:hover { color: var(--ink); }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--ink); background: var(--accent-soft); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle[data-mode='dark'] .icon-moon, .theme-toggle[data-mode='light'] .icon-sun { display: none; }
@media (max-width: 880px) { .nav { display: none; } .topbar-actions { margin-left: auto; } }

/* ── Apresentação (igual à atual, sem o cartão da viagem) ─────────── */
.hero { padding-block: 72px 56px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); font-weight: 800; max-width: 14ch; }
.lede { margin-top: 22px; max-width: 44ch; font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }
.hero-photo { margin-top: 48px; aspect-ratio: 16 / 7; overflow: hidden; border-radius: 20px; background: var(--road); max-width: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── Como funciona: a viagem ─────────────────────────────────────── */
.trip-intro { padding-block: 56px 36px; }
.trip-intro h2, .section h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
.section-lede { margin-top: 14px; max-width: 54ch; color: var(--muted); font-size: 1.1rem; }

.trip-story { position: relative; }
.stage {
  position: sticky; top: var(--stick); height: var(--stage-h); overflow: hidden; z-index: 0;
  background: var(--bg-alt);
  /* entra como um cartão do tamanho da foto do topo e se abre até a borda da tela (ver opening()) */
  clip-path: inset(var(--cy, 0px) var(--cx, 0px) round var(--cr, 0px));
}
.scene-card { position: absolute; inset: 0; overflow: hidden; }
.stage-ui { position: absolute; inset: 0; z-index: 1; }
.stage-ui, .stage > .panel { opacity: var(--ui, 1); translate: 0 calc((1 - var(--ui, 1)) * 14px); }
.stage[data-closed] .stage-ui, .stage[data-closed] > .panel { pointer-events: none; visibility: hidden; }
.track { margin-top: calc(-1 * var(--stage-h)); }
.spacer { height: 70svh; }
.spacer[data-first] { height: 100svh; }
.spacer[data-drive] { height: 110svh; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .6s ease; }

.glass {
  position: relative; isolation: isolate; background: var(--glass-tint);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 var(--glass-lo), var(--glass-shadow);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 60% at 0% 0%, var(--glass-sheen), transparent 55%), linear-gradient(180deg, var(--glass-sheen), transparent 28%);
}

/* painel com as etapas */
.panel {
  position: absolute; z-index: 5;
  left: max(var(--edge), env(safe-area-inset-left, 0px)); top: var(--edge); bottom: var(--edge);
  width: var(--panel-w); border-radius: 28px;
  display: flex; flex-direction: column; padding: 14px 14px 16px; overflow: hidden;
}
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 8px 10px; }
.p-route { font: 600 12.5px/1.3 var(--font-body); color: var(--muted); }
.p-route b { color: var(--ink); font-weight: 650; }
.menu { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; scrollbar-width: none; }
.mi { border-radius: 18px; transition: background .35s ease; }
.mi.is-on { background: var(--glass-sheen); box-shadow: inset 0 0 0 1px var(--glass-rule); }
.mi-row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 18px; }
.mi-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; border: 1.5px solid var(--muted); opacity: .6; transition: all .3s ease; }
.mi.is-done .mi-dot { background: var(--muted); border-color: var(--muted); }
.mi.is-on .mi-dot { background: var(--accent); border-color: var(--accent); opacity: 1; box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent); }
.mi-name { font: 600 14px/1 var(--font-body); color: var(--muted); }
.mi.is-on .mi-name { color: var(--ink); }
.mi-km { margin-left: auto; font: 500 12px/1 var(--font-body); color: var(--muted); font-variant-numeric: tabular-nums; opacity: .85; }
.mi-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .8, .2, 1); }
.mi.is-on .mi-body { grid-template-rows: 1fr; }
.mi-body > div { overflow: hidden; }
.mi-content { display: grid; gap: 10px; padding: 2px 14px 16px 31px; opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .3s ease; }
.mi.is-on .mi-content { opacity: 1; transform: none; transition-delay: .12s; }
.mi-content h3 { font-size: clamp(21px, 1.8vw, 25px); line-height: 1.12; font-weight: 700; }
.mi-content p { color: var(--muted); font-size: 14.5px; line-height: 1.5; max-width: 34ch; }
.kicker { display: none; font: 600 11px/1 var(--font-body); letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.hint { display: flex; gap: 8px; align-items: center; font-size: 13px !important; }
.hint svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; animation: nudge 1.6s ease-in-out infinite; flex: none; }
@keyframes nudge { 50% { transform: translateY(3px); } }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 6px 0; border-top: 1px solid var(--glass-rule); margin-top: 8px; }
.p-foot .btn { white-space: nowrap; flex: none; }
.p-skip { white-space: nowrap; font: 600 13.5px/1.2 var(--font-body); color: var(--muted); text-decoration: none; padding: 10px 4px; }
.p-skip:hover { color: var(--ink); }
.dots { display: none; }

/* placar de custos */
.ledger {
  position: absolute; z-index: 4; top: var(--edge);
  left: calc(max(var(--edge), env(safe-area-inset-left, 0px)) + var(--panel-w) + 16px);
  display: flex; align-items: baseline; gap: 10px; padding: 10px 16px; border-radius: 999px;
  font-variant-numeric: tabular-nums; transition: opacity .4s ease;
}
.ledger span { font: 600 11px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ledger b { font: 700 17px/1 var(--font-display); }
.bump { animation: bump .5s ease; }
@keyframes bump { 40% { color: var(--accent-text); } }

/* iPhone com o app do motorista */
.phone {
  position: absolute; z-index: 3;
  right: max(4%, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%);
  width: var(--phone-w); max-height: calc(var(--stage-h) - 2 * var(--edge)); aspect-ratio: 9 / 19.2;
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
  padding: 9px; border-radius: 44px; background: var(--phone-frame);
  box-shadow: 0 40px 70px -30px rgba(10, 8, 30, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 0 3px #000;
  container-type: inline-size;
}
.screen { position: relative; height: 100%; border-radius: 35px; overflow: hidden; background: var(--app-bg); color: var(--app-ink); --u: calc(100cqw / 360); font-size: calc(var(--u) * 16); line-height: 1.4; }
.island { position: absolute; top: 2.6cqw; left: 50%; transform: translateX(-50%); width: 30cqw; height: 8cqw; border-radius: 99px; background: var(--phone-frame); z-index: 4; }
.sbar { display: flex; justify-content: space-between; padding: 3.4cqw 7cqw 0; font: 600 0.82em/1 var(--font-body); height: 12cqw; align-items: center; }
.sbar i { display: inline-block; width: 6cqw; height: 3cqw; border-radius: 1cqw; border: 0.4cqw solid currentColor; }
.app { position: absolute; inset: calc(var(--u) * 46) 0 0; overflow: hidden; }
.app-scroll { position: relative; padding: calc(var(--u) * 6) calc(var(--u) * 16) calc(var(--u) * 28); display: flex; flex-direction: column; gap: calc(var(--u) * 14); transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.a-head { display: flex; justify-content: space-between; align-items: center; }
.a-greet { font-size: calc(var(--u) * 13); line-height: 1.4; color: var(--app-muted); }
.a-title { font: 700 calc(var(--u) * 30)/1.2 var(--font-body); }
.a-head svg { width: calc(var(--u) * 32); height: calc(var(--u) * 32); fill: none; stroke: var(--app-ink); stroke-width: 1.5; }
.a-card { background: var(--app-card); border: 1px solid var(--app-line); border-radius: calc(var(--u) * 14); padding: calc(var(--u) * 16); display: grid; gap: calc(var(--u) * 8); }
.a-card.sel { border: 2px solid var(--app-accent); }
.a-ct { font: 600 calc(var(--u) * 17)/1.4 var(--font-body); }
.a-body { font-size: calc(var(--u) * 15); line-height: 1.45; }
.a-b { font: 600 calc(var(--u) * 14)/1.4 var(--font-body); }
.a-muted { font-size: calc(var(--u) * 13); line-height: 1.4; color: var(--app-muted); }
.a-label { font: 600 calc(var(--u) * 14)/1.4 var(--font-body); }
.a-row { display: flex; justify-content: space-between; align-items: center; gap: calc(var(--u) * 8); }
.pill { display: inline-block; width: fit-content; font: 600 calc(var(--u) * 12)/1 var(--font-body); padding: calc(var(--u) * 5) calc(var(--u) * 10); border-radius: 99px; background: var(--app-warn-bg); color: var(--app-warn); }
.pill.ok { background: var(--app-ok-bg); color: var(--app-ok); }
.a-tabs { display: flex; gap: calc(var(--u) * 20); border-bottom: 1px solid var(--app-line); }
.a-tabs span { font: 600 calc(var(--u) * 14)/1 var(--font-body); color: var(--app-muted); padding-bottom: calc(var(--u) * 10); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.a-tabs .on { color: var(--app-ink); border-color: var(--app-accent); }
.a-links { display: flex; gap: calc(var(--u) * 14); flex-wrap: wrap; }
.a-link { color: var(--app-accent); font: 600 calc(var(--u) * 13)/1.4 var(--font-body); }
.a-btn { position: relative; overflow: hidden; min-height: calc(var(--u) * 44); border-radius: calc(var(--u) * 10); background: var(--app-accent); color: var(--app-on-accent); display: grid; place-items: center; font: 600 calc(var(--u) * 15)/1 var(--font-body); text-align: center; padding: 0 calc(var(--u) * 10); }
.a-btn.sec { background: var(--app-surface2); color: var(--app-ink); border: 1px solid var(--app-line); }
.tap { position: relative; overflow: hidden; }
.tap::after { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 36); height: calc(var(--u) * 36); margin: calc(var(--u) * -18) 0 0 calc(var(--u) * -18); border-radius: 50%; background: rgba(255, 255, 255, 0.6); animation: tap .7s ease-out forwards; }
.a-btn.sec.tap::after, .a-tile.tap::after, .a-opt.tap::after { background: rgba(103, 83, 230, 0.25); }
@keyframes tap { 0% { transform: scale(0.2); opacity: 1; } 100% { transform: scale(5); opacity: 0; } }
.a-opt { display: flex; align-items: center; gap: calc(var(--u) * 12); padding: calc(var(--u) * 10) calc(var(--u) * 6); border-radius: calc(var(--u) * 10); font: 600 calc(var(--u) * 15)/1.3 var(--font-body); }
.ico { width: calc(var(--u) * 36); height: calc(var(--u) * 36); border-radius: 50%; display: grid; place-items: center; flex: none; }
.ico svg { width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.amber { background: var(--app-warn-bg); color: var(--app-warn); }
.ico.blue { background: var(--app-info-bg); color: var(--app-info); }
.ico.green { background: var(--app-ok-bg); color: var(--app-ok); }
.a-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--u) * 8); }
.a-tiles.two { grid-template-columns: repeat(2, 1fr); }
.a-tile { display: grid; justify-items: center; gap: calc(var(--u) * 6); padding: calc(var(--u) * 12) calc(var(--u) * 4); border: 1px solid var(--app-line); border-radius: calc(var(--u) * 10); background: var(--app-surface2); font: 600 calc(var(--u) * 12)/1.2 var(--font-body); }
.a-tile svg { width: calc(var(--u) * 20); height: calc(var(--u) * 20); fill: none; stroke: var(--app-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-input { min-height: calc(var(--u) * 44); border: 1px solid var(--app-input); border-radius: calc(var(--u) * 10); padding: 0 calc(var(--u) * 12); display: flex; align-items: center; font-size: calc(var(--u) * 15); background: var(--app-card); }
.a-input.ph { color: var(--app-muted); font-size: calc(var(--u) * 13); }
.a-entry { display: flex; gap: calc(var(--u) * 10); align-items: flex-start; padding-block: calc(var(--u) * 4); }
.a-entry > div { display: grid; gap: calc(var(--u) * 2); min-width: 0; }
.spin { width: calc(var(--u) * 26); height: calc(var(--u) * 26); border-radius: 50%; border: calc(var(--u) * 3) solid var(--app-line); border-top-color: var(--app-accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.a-photo { height: calc(var(--u) * 150); border-radius: calc(var(--u) * 10); background: var(--app-paper); border: 1px solid var(--app-line); position: relative; overflow: hidden; }
.a-photo::before { content: "RECEBEMOS DE DEMO TRANSPORTES OS PRODUTOS CONSTANTES DA NOTA FISCAL"; position: absolute; left: 8%; right: 8%; top: 10%; font: 700 calc(var(--u) * 7)/1.3 var(--font-body); color: var(--app-paper-ink); letter-spacing: 0.03em; }
.a-photo::after { content: ""; position: absolute; left: 8%; right: 8%; top: 34%; height: 28%; background: repeating-linear-gradient(var(--app-paper-rule) 0 1px, transparent 1px calc(var(--u) * 12)); }
.a-photo svg { position: absolute; right: 10%; bottom: 10%; width: 46%; height: 22%; stroke: var(--app-pen); fill: none; stroke-width: 1.6; stroke-linecap: round; }
.a-stat { border-left: 4px solid var(--app-ok); padding: calc(var(--u) * 2) 0 calc(var(--u) * 2) calc(var(--u) * 10); display: grid; gap: calc(var(--u) * 4); }
.a-stat span { font: 600 calc(var(--u) * 11)/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--app-muted); }
.a-stat b { font: 700 calc(var(--u) * 20)/1.1 var(--font-body); font-variant-numeric: tabular-nums; }
.a-kv { display: flex; justify-content: space-between; gap: calc(var(--u) * 8); padding-top: calc(var(--u) * 8); border-top: 1px solid var(--app-line); font-size: calc(var(--u) * 14); font-variant-numeric: tabular-nums; }
.a-kv span { color: var(--app-muted); }
.a-kv b { font-weight: 600; }
.a-stat.glow b, .w-stat.glow strong { animation: glow 1.8s ease-in-out infinite; border-radius: 6px; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--app-ok) 30%, transparent); background: color-mix(in oklab, var(--app-ok) 12%, transparent); } }

/* fio entre o celular do motorista e a janela do administrador */
.wire { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; transition: opacity .4s ease; }
.wire path { fill: none; stroke: var(--wire); stroke-width: 1.5; stroke-dasharray: 3 5; }
.wire circle { fill: var(--accent); opacity: 0; }

/* janela do app do administrador durante a viagem */
.peek {
  position: absolute; z-index: 4; top: var(--edge);
  right: calc(max(4%, env(safe-area-inset-right, 0px)) + var(--phone-w) + 28px);
  width: clamp(240px, 22vw, 320px); border-radius: 14px; overflow: hidden;
  background: var(--w-surface); color: var(--w-ink); border: 1px solid var(--w-line);
  box-shadow: 0 30px 60px -30px rgba(20, 16, 60, 0.45), var(--w-shadow);
  container-type: inline-size; --p: calc(100cqw / 300);
  transition: opacity .45s ease, transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}
.peek.ping { animation: ping .9s ease; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 55%, transparent), 0 30px 60px -30px rgba(20, 16, 60, 0.45); } 100% { box-shadow: 0 0 0 14px transparent, 0 30px 60px -30px rgba(20, 16, 60, 0.45); } }
.peek > * { font-size: calc(var(--p) * 13); line-height: 1.4; }
.pk-bar { display: flex; align-items: center; gap: calc(var(--p) * 5); padding: calc(var(--p) * 8) calc(var(--p) * 12); background: var(--w-surface2); border-bottom: 1px solid var(--w-line); }
.pk-bar i { width: calc(var(--p) * 7); height: calc(var(--p) * 7); border-radius: 50%; background: var(--w-line); }
.pk-app { margin-left: calc(var(--p) * 6); font: 600 calc(var(--p) * 11)/1 var(--font-body); color: var(--w-muted); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.pk-page { margin-left: auto; font: 600 calc(var(--p) * 11.5)/1 var(--font-body); color: var(--w-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pk-body { padding: calc(var(--p) * 12) calc(var(--p) * 14) calc(var(--p) * 14); display: grid; gap: calc(var(--p) * 8); }
.pk-foot { display: none; justify-content: space-between; align-items: baseline; padding: calc(var(--p) * 8) calc(var(--p) * 14); border-top: 1px solid var(--w-line); font-variant-numeric: tabular-nums; }
.pk-foot span { font: 600 calc(var(--p) * 10.5)/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--w-muted); }
.pk-foot b { font: 700 calc(var(--p) * 15)/1 var(--font-display); }

/* peças do painel web (apps/web) */
.w-h { font-weight: 700; font-size: 1.15em; line-height: 1.3; }
.w-sub { color: var(--w-muted); font-size: .92em; }
.w-badge { display: inline-flex; align-items: center; width: fit-content; white-space: nowrap; font-weight: 600; font-size: .85em; line-height: 1; padding: .38em .7em; border-radius: 999px; background: var(--w-info-bg); color: var(--w-info); }
.w-badge.warn { background: var(--w-warn-bg); color: var(--w-warn); }
.w-badge.ok { background: var(--w-ok-bg); color: var(--w-ok); }
.w-badge.neutral { background: var(--w-surface2); color: var(--w-muted); border: 1px solid var(--w-line); }
.w-row { display: flex; gap: .8em; align-items: center; justify-content: space-between; padding: .7em .8em; border: 1px solid var(--w-line); border-radius: .75em; background: var(--w-surface); }
.w-row > div { display: grid; gap: .15em; min-width: 0; }
.w-row-t { font-weight: 600; }
.w-row-s { color: var(--w-muted); font-size: .9em; }
.w-row-side { display: grid; justify-items: end; gap: .3em; flex: none; font-variant-numeric: tabular-nums; font-weight: 600; }
.w-kv { display: flex; justify-content: space-between; gap: 1em; padding: .55em 0; border-top: 1px solid var(--w-line); font-variant-numeric: tabular-nums; }
.w-kv span { color: var(--w-muted); }
.w-ledger { display: grid; grid-template-columns: 1fr auto; gap: .2em 1em; align-items: start; padding: .6em 0; border-top: 1px solid var(--w-line); font-variant-numeric: tabular-nums; }
.w-ledger .w-amt { font-weight: 600; white-space: nowrap; }
.w-ledger .w-meta { grid-column: 1 / -1; display: flex; gap: .5em; align-items: center; }
.is-new { animation: rowin .6s ease; }
@keyframes rowin { 0% { opacity: 0; transform: translateY(-6px); background: color-mix(in oklab, var(--w-action) 18%, transparent); } 60% { opacity: 1; transform: none; background: color-mix(in oklab, var(--w-action) 12%, transparent); } 100% { background: transparent; } }
.w-empty { color: var(--w-muted); padding: .8em; border: 1px dashed var(--w-line); border-radius: .75em; text-align: center; }
.w-prog { display: grid; gap: .45em; }
.w-prog-h { display: flex; justify-content: space-between; color: var(--w-muted); }
.w-prog-h b { color: var(--w-ink); }
.w-track { height: .45em; border-radius: 99px; background: var(--w-line); overflow: hidden; }
.w-track span { display: block; height: 100%; border-radius: inherit; background: var(--w-action); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.w-track span.done { background: var(--w-ok); }
.w-note { display: flex; gap: .45em; align-items: center; color: var(--w-ok); font-weight: 600; }
.w-note svg { width: 1.1em; height: 1.1em; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.w-link { color: var(--w-action); font-weight: 600; }
.w-map { display: block; width: 100%; border-radius: .7em; border: 1px solid var(--w-line); background: var(--map-land); }
.w-map .land { fill: var(--map-land); }
.w-map .rd-edge { fill: none; stroke: var(--map-road-edge); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.w-map .rd { fill: none; stroke: var(--map-road); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.w-map .city { fill: var(--map-city); }
.w-map .cityl { fill: var(--map-city); font: 600 6.4px var(--font-body); paint-order: stroke; stroke: var(--map-land); stroke-width: 2.4px; }
.w-map.lg .cityl { font-size: 10.5px; stroke-width: 3.4px; }
.w-map.lg .rd-edge { stroke-width: 4.4; } .w-map.lg .rd { stroke-width: 2.6; }
.w-map .pin circle.b { fill: var(--w-action); stroke: var(--w-surface); stroke-width: 1.6; }
.w-map .pin.stale circle.b { fill: var(--map-stale); stroke-dasharray: 2.4 1.6; }
.w-map .pin path { fill: none; stroke: var(--w-on-action); stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; }
.w-map .pin.me circle.halo { fill: var(--w-action); opacity: .25; animation: halo 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.2); opacity: 0; } }
.w-map .trail { fill: none; stroke: var(--w-action); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }

/* notebook com o painel web, no fim da viagem */
.laptop {
  position: absolute; z-index: 2;
  left: calc(max(var(--edge), env(safe-area-inset-left, 0px)) + var(--panel-w) + 32px);
  right: calc(max(4%, env(safe-area-inset-right, 0px)) + var(--phone-w) + 16px - clamp(0px, (100vw - 1100px) * 0.3, 64px));
  top: 50%; display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: translateY(-44%) scale(.94); pointer-events: none;
  transition: opacity .5s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}
.lt-wrap { width: min(100%, calc((var(--stage-h) - 110px) * 1.6)); display: flex; flex-direction: column; align-items: center; }
.lt-lid { width: 100%; padding: 1.3% 1.3% 1.8%; background: var(--lt-frame); border-radius: 16px 16px 6px 6px; box-shadow: 0 50px 80px -40px rgba(10, 8, 30, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.lt-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 5px; overflow: hidden; background: var(--w-bg); color: var(--w-ink); container-type: inline-size; }
.lt-base { width: 114%; max-width: calc(100vw - 2 * var(--edge)); height: 14px; border-radius: 0 0 16px 16px; background: linear-gradient(var(--lt-base-hi), var(--lt-base)); position: relative; box-shadow: 0 18px 30px -18px rgba(10, 8, 30, 0.6); }
.lt-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 5px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: color-mix(in oklab, var(--lt-base) 70%, #000); }
.web { --w: calc(100cqw / 960); position: absolute; inset: 0; font: 400 calc(var(--w) * 14)/1.45 var(--font-body); display: flex; }
.laptop.narrow .web { --w: calc(100cqw / 480); flex-direction: column; }
.laptop.narrow .lt-screen { aspect-ratio: 3 / 4; border-radius: 14px; }
.laptop.narrow .lt-lid { padding: 2.4%; border-radius: 24px; }
.laptop.narrow .lt-base { display: none; }
.w-rail { width: calc(var(--w) * 58); flex: none; background: var(--w-surface); border-right: 1px solid var(--w-line); display: flex; flex-direction: column; align-items: center; gap: calc(var(--w) * 6); padding-top: calc(var(--w) * 16); }
.w-rail .bm { width: calc(var(--w) * 30); height: calc(var(--w) * 14); margin-bottom: calc(var(--w) * 14); overflow: visible; }
.w-rail .bm path { stroke: var(--w-action); stroke-width: 3.2; stroke-linecap: round; }
.w-rail .bm .s { fill: var(--w-action); } .w-rail .bm .e { fill: none; stroke: var(--w-action); stroke-width: 2.5; }
.w-ic { width: calc(var(--w) * 36); height: calc(var(--w) * 36); border-radius: calc(var(--w) * 9); display: grid; place-items: center; color: var(--w-muted); }
.w-ic.on { background: var(--w-surface-accent); color: var(--w-action); }
.w-ic svg, .w-mbar svg { width: 50%; height: 50%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.w-mbar { display: none; align-items: center; justify-content: space-between; height: calc(var(--w) * 46); padding: 0 calc(var(--w) * 14); background: var(--w-surface); border-bottom: 1px solid var(--w-line); flex: none; color: var(--w-ink); font: 800 calc(var(--w) * 16)/1 var(--font-body); }
.w-mbar svg { width: calc(var(--w) * 20); height: calc(var(--w) * 20); }
.laptop.narrow .w-rail { display: none; }
.laptop.narrow .w-mbar { display: flex; }
.w-main { flex: 1; min-width: 0; padding: calc(var(--w) * 22) calc(var(--w) * 72) calc(var(--w) * 22) calc(var(--w) * 28); display: flex; flex-direction: column; gap: calc(var(--w) * 14); overflow: hidden; }
.laptop.narrow .w-main { padding: calc(var(--w) * 14) calc(var(--w) * 16); gap: calc(var(--w) * 10); }
.w-back { color: var(--w-muted); font-weight: 600; font-size: .92em; }
.w-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; }
.w-h1 { font: 700 calc(var(--w) * 26)/1.15 var(--font-body); letter-spacing: -0.01em; }
.w-meta { display: flex; gap: .6em; align-items: center; color: var(--w-muted); margin-top: .45em; flex-wrap: wrap; }
.w-btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; padding: .62em 1.05em; border-radius: calc(var(--w) * 10); font-weight: 600; background: var(--w-surface); border: 1px solid var(--w-line); color: var(--w-ink); }
.w-btn.pri { background: var(--w-action); border-color: var(--w-action); color: var(--w-on-action); }
.w-tabs { display: flex; gap: calc(var(--w) * 22); border-bottom: 1px solid var(--w-line); }
.w-tabs span { padding-bottom: .65em; font-weight: 600; color: var(--w-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: .4em; align-items: center; }
.w-tabs span.on { color: var(--w-ink); border-color: var(--w-action); }
.w-tabs i { font-style: normal; font-size: .8em; padding: .1em .5em; border-radius: 99px; background: var(--w-surface2); border: 1px solid var(--w-line); }
.w-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: calc(var(--w) * 14); align-items: start; min-height: 0; }
.w-grid.one { grid-template-columns: minmax(0, 620px); }
.laptop.narrow .w-grid { grid-template-columns: 1fr; }
.laptop.narrow .w-only-wide { display: none; }
.w-card { background: var(--w-surface); border: 1px solid var(--w-line); border-radius: calc(var(--w) * 14); padding: calc(var(--w) * 18); box-shadow: var(--w-shadow); display: grid; gap: calc(var(--w) * 8); min-width: 0; }
.w-card h3 { font: 700 calc(var(--w) * 17)/1.3 var(--font-body); margin: 0; letter-spacing: 0; }
.w-pair { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--w) * 14); padding-bottom: calc(var(--w) * 6); }
.w-stat { display: grid; gap: calc(var(--w) * 4); align-content: start; justify-items: start; }
.w-label { font: 600 calc(var(--w) * 11.5)/1.2 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--w-muted); }
.w-val { font: 700 calc(var(--w) * 24)/1.15 var(--font-body); font-variant-numeric: tabular-nums; padding: 0 .1em; margin: 0 -.1em; }
.w-stat .w-sub { font-size: .9em; }
.w-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--w) * 12); }
.laptop.narrow .w-kpis { grid-template-columns: repeat(2, 1fr); }
.w-kpi { padding: calc(var(--w) * 14) calc(var(--w) * 16); gap: calc(var(--w) * 3); }
.w-kpi.warn { border-color: color-mix(in oklab, var(--w-warn) 45%, var(--w-line)); }
.w-kpi.pri { background: var(--w-surface-accent); border-color: color-mix(in oklab, var(--w-action) 40%, var(--w-line)); }
.w-kpi .w-val { font-size: calc(var(--w) * 22); }
.w-kpi .w-sub { font-size: .86em; }
.w-kpi.warn .w-sub { color: var(--w-warn); }
.w-ch { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; }
.w-tower { display: grid; grid-template-columns: 1fr 1.1fr; gap: calc(var(--w) * 12); min-height: 0; }
.laptop.narrow .w-tower { grid-template-columns: 1fr; }
.w-tower .w-map { aspect-ratio: 1.25; }
.laptop.narrow .w-tower .w-map { aspect-ratio: 1.45; }
.w-list { display: grid; gap: calc(var(--w) * 8); }

@media (max-width: 1260px) { .ledger { display: none; } .pk-foot { display: flex; } }

/* fim da viagem: o notebook toma o centro */
.stage[data-mode="admin"] .laptop { opacity: 1; transform: translateY(-50%); }
.stage[data-mode="admin"] .peek { opacity: 0; transform: translateY(-12px) scale(.96); }
.stage[data-mode="admin"] .ledger, .stage[data-mode="admin"] .wire { opacity: 0; }
.stage[data-mode="admin"] #scene { opacity: .6; }
.stage[data-at="7"] .phone { opacity: 0; transform: translateY(-50%) translateX(30%); }

/* cena */
#scene .t { fill: var(--c); }
#scene .road { fill: var(--asphalt); }
#scene .laneline { fill: none; stroke: var(--lane); stroke-width: 1.4; stroke-dasharray: 7 8; opacity: 0.85; }
#scene .field { fill: var(--field); }
#scene .rowline { stroke: var(--field-row); stroke-width: 1; }
#scene .trail { fill: none; stroke: var(--gps); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
#scene .gshadow { fill: var(--ground-shadow); }
#scene .beam { fill: var(--beam); }
#scene .pin-line { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
#scene .pin-dot { fill: var(--ink); }
#scene .pin-text { fill: var(--ink); font: 600 11px var(--font-body); paint-order: stroke; stroke: var(--label-halo); stroke-width: 4px; stroke-linejoin: round; }
#scene .pin-text.small { font-size: 9.5px; fill: var(--muted); font-weight: 500; }
#scene .bubble rect, #scene .bubble path { fill: var(--ink); }
#scene .bubble text { fill: var(--bg); font: 600 10.5px var(--font-body); }
#scene .glassf { fill: var(--glass); }
#scene .glint { fill: var(--glass-glint); opacity: 0.55; }
#scene .lamp { fill: var(--lamp); }
#scene .tail { fill: var(--tail); }
#scene .hub { fill: var(--hub); }
#scene .decal { fill: var(--cab); }
#scene .decal-ring { fill: none; stroke: var(--cab); stroke-width: 1.3; }
#scene .seam { fill: none; stroke: var(--shade); stroke-opacity: 0.18; stroke-width: 0.7; }

/* dois lados, depois da viagem */
.sides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; }
.sides li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 14px; align-items: start; }
.sides-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.sides-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sides b { font-weight: 650; font-size: 1rem; line-height: 1.3; }
.sides span { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.trip-outro { padding-block: 36px 8px; }

/* computador: as etapas são texto da página, na coluna do site; a cena fica num cartão à direita */
@media (min-width: 821px) {
  :root { --col-l: max(var(--gutter), (100vw - var(--maxw)) / 2 + var(--gutter)); --panel-w: min(360px, 30vw); --phone-w: clamp(196px, 15vw, 232px); }
  .stage { background: transparent; }
  .scene-card {
    inset: var(--edge) var(--col-l) var(--edge) calc(var(--col-l) + var(--panel-w) + 48px);
    border-radius: 24px; background: var(--bg-alt); border: 1px solid var(--line);
  }
  .panel.glass { left: var(--col-l); width: var(--panel-w); padding: 8px 0; border-radius: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .panel.glass::before { display: none; }
  .p-head { padding: 4px 0 14px; }
  .mi.is-on { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
  .p-foot { border-top-color: var(--line); padding-inline: 0; }
  .ledger { display: none; }
  .pk-foot { display: flex; }
  .peek { width: clamp(230px, 19vw, 290px); }
  .laptop { left: 6%; right: 6%; }
  .lt-base { width: 106%; }
  .stage[data-mode="admin"] .phone { top: auto; bottom: var(--edge); right: var(--edge); transform: none; width: min(150px, 12vw); padding: 6px; border-radius: 28px; }
  .stage[data-mode="admin"] .screen { border-radius: 23px; }
  .stage[data-at="7"] .phone { opacity: 0; transform: translateX(30%); }
}


/* celular: cena inteira, iPhone e janela do administrador no alto, etapas numa folha embaixo */
@media (max-width: 820px) {
  :root { --edge: 10px; --phone-w: min(36vw, 150px); }
  .panel { top: auto; width: auto; right: max(var(--edge), env(safe-area-inset-right, 0px)); max-height: calc(var(--stage-h) * 0.46); border-radius: 24px; padding: 12px 12px 12px; }
  .p-head { padding: 0 4px 6px; }
  .p-route { display: none; }
  .dots { display: flex; gap: 5px; align-items: center; }
  .dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--muted); opacity: .35; transition: all .3s ease; }
  .dots i.is-done { opacity: .7; }
  .dots i.is-on { width: 18px; background: var(--accent); opacity: 1; }
  .mi:not(.is-on) { display: none; }
  .mi.is-on { background: none; box-shadow: none; }
  .mi-row { display: none; }
  .mi-body { grid-template-rows: 1fr; transition: none; }
  .mi-content { padding: 0 4px 2px; gap: 7px; }
  .kicker { display: block; }
  .mi-content h3 { font-size: 20px; }
  .mi-content p { font-size: 14px; }
  .hint { display: none !important; }
  .p-foot { padding-top: 8px; margin-top: 6px; }
  .p-foot .btn { min-height: 40px; font-size: 0.9rem; padding: 0 16px; }
  .p-head .p-skip { padding: 4px; font-size: 12.5px; }
  .phone { right: max(var(--edge), env(safe-area-inset-right, 0px)); top: var(--edge); transform: none; width: var(--phone-w); padding: 6px; border-radius: 26px; }
  .screen { border-radius: 21px; }
  .ledger { display: none; }
  .peek { left: max(var(--edge), env(safe-area-inset-left, 0px)); right: auto; width: calc(100% - var(--phone-w) - 3 * var(--edge) - env(safe-area-inset-right, 0px)); max-width: 300px; border-radius: 12px; }
  .pk-page { display: none; }
  .pk-app { font-size: calc(var(--p) * 12); }
  .pk-foot { display: flex; }
  .laptop { left: max(var(--edge), env(safe-area-inset-left, 0px)); right: max(var(--edge), env(safe-area-inset-right, 0px)); top: var(--edge); transform: translateY(-10px) scale(.96); }
  .lt-wrap { width: min(100%, calc((var(--stage-h) - 290px) * 0.75)); }
  .stage[data-mode="admin"] .laptop { transform: none; }
  .stage[data-mode="admin"] .phone { opacity: 0; transform: translateY(-12px) scale(.9); }
  .stage[data-mode="admin"][data-at="6"] .phone {
    opacity: 1; transform: none;
    top: calc(var(--edge) + min(100vw - 2 * var(--edge), (var(--stage-h) - 290px) * 0.75) / 0.75 * 0.74);
    right: calc(var(--edge) + 8px + env(safe-area-inset-right, 0px)); width: min(26vw, 108px);
  }
  .sides { grid-template-columns: minmax(0, 1fr); }
}

/* ── O que tem dentro (enxuto: print + uma frase) ─────────────────── */
.section { padding-block: 88px; }
.section-alt { background: var(--bg-alt); }
.bento { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 44px 22px; }
.tile { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tile h3 { font-size: 1.3rem; font-weight: 750; }
.tile p { color: var(--muted); font-size: 1rem; margin-top: 4px; max-width: 46ch; }
.tile-diesel { grid-column: span 7; }
.tile-venc { grid-column: span 5; grid-row: span 2; }
.tile-com { grid-column: span 7; }
.tile-avisos { grid-column: span 12; }
.shot { display: block; overflow: hidden; border-radius: var(--radius); background: var(--shot-frame); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 100%; }
.shot img { width: 100%; }
.shot-crop { aspect-ratio: 1600 / 462; }
.shot-crop img { height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 880px) {
  .section { padding-block: 64px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tile-diesel, .tile-venc, .tile-com, .tile-avisos { grid-column: auto; grid-row: auto; }
}

/* ── Planos (igual ao atual) ─────────────────────────────────────── */
.calc-label { display: block; margin: 20px 0 8px; padding: 0; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.billing { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.billing .calc-label { margin-top: 0; width: 100%; }
.billing label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.billing input { width: 18px; height: 18px; accent-color: var(--accent); }
.tag { padding: 2px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 0.8rem; font-weight: 650; }
.plans-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 40px; margin-top: 28px; }
.plans-controls .calc-label { margin-top: 0; }
.plans-pick { margin: 28px 0 0; padding: 0; border: 0; min-width: 0; }
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { position: relative; display: block; height: 100%; padding: 24px 22px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.plan:hover { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.plan-radio { position: absolute; opacity: 0; pointer-events: none; }
.plan-hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; cursor: pointer; }
.plan-hit span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.plan:has(.plan-radio:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.plan-check { position: absolute; top: 22px; right: 20px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: all 0.2s ease; }
.plan-check::after { content: ''; width: 9px; height: 5px; margin-top: -2px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); opacity: 0; }
.plan.is-match .plan-check { background: var(--accent); border-color: var(--accent); }
.plan.is-match .plan-check::after { opacity: 1; }
.plan h3 { font-size: 1.15rem; font-weight: 700; }
.plan-price { margin-top: 14px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan-price small { display: block; margin-top: 4px; font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; letter-spacing: 0; color: var(--muted); }
.plan-note { min-height: 1.3em; margin-top: 6px; color: var(--muted); font-size: 0.85rem; }
.plan-included { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; color: var(--muted); font-size: 0.95rem; }
.plan.is-match { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.plan.is-match::before { content: 'Plano escolhido'; position: absolute; top: -12px; left: 18px; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.78rem; font-weight: 650; }
.plans-match { margin-top: 18px; font-weight: 600; }
.price-list { list-style: none; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.price-list li { position: relative; padding-left: 28px; }
.price-list li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.plans-included { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.plans-extra { margin-top: 18px; max-width: 70ch; color: var(--muted); }
.plans-extra a { font-weight: 600; }
.price-fine { margin-top: 16px; color: var(--muted); font-size: 0.8rem; }
@media (max-width: 980px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .plans { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .plan-note:empty { display: none; }
  .plans-included { grid-template-columns: minmax(0, 1fr); }
  .calc-actions .btn, .hero-actions .btn { width: 100%; }
}

/* ── Perguntas ──────────────────────────────────────────────────── */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 1.3rem; font-weight: 500; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 22px 0; color: var(--muted); }

/* ── Lista de espera ────────────────────────────────────────────── */
.final {
  padding-block: 112px; text-align: center;
  background: linear-gradient(color-mix(in srgb, var(--bg) 58%, transparent), color-mix(in srgb, var(--bg) 80%, transparent)), url('img/faixa.webp') center / cover no-repeat;
}
.final h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
.final > .wrap > p { margin: 16px auto 0; max-width: 44ch; color: var(--ink); font-size: 1.1rem; }
.final .final-whatsapp { margin-top: 28px; }
.waitlist { max-width: 720px; margin: 32px auto 0; text-align: left; }
.waitlist-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 120px; gap: 14px; }
.waitlist label { display: grid; gap: 6px; }
.waitlist-wide { grid-column: 1 / -1; }
.waitlist label span { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.waitlist input { min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; min-width: 0; }
.waitlist input::placeholder { color: var(--muted); opacity: 0.7; }
.waitlist input:focus-visible { border-color: var(--accent); }
.waitlist .btn { margin-top: 18px; }
.waitlist-note { margin-top: 14px; min-height: 1.4em; font-size: 0.95rem; }
.waitlist-note.is-bad { color: var(--warn); }
.contact { margin-top: 20px; font-size: 1rem; }
@media (max-width: 720px) { .waitlist-fields { grid-template-columns: minmax(0, 1fr); } .waitlist .btn { width: 100%; } }

/* ── Rodapé ─────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding-block: 28px 36px; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.footer .theme-toggle { margin-left: auto; }
.footer-inner .credits { flex-basis: 100%; font-size: 0.8rem; }
.brand-small .brand-name { font-size: 1.2rem; }

.footer-company {
  flex-basis: 100%;
}

/* Política de privacidade (task-267): texto corrido, largura de leitura. */
.legal {
  padding: 120px 0 72px;
}

.legal-inner {
  max-width: 760px;
  line-height: 1.65;
}

.legal h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 800;
}

.legal-date {
  margin-top: 8px;
  color: var(--muted);
}

.legal h2 {
  margin-top: 40px;
  font-size: 1.35rem;
  font-weight: 700;
  scroll-margin-top: 96px;
}

.legal p,
.legal ul {
  margin-top: 12px;
}

.legal ul {
  padding-left: 1.2em;
}

.legal li + li {
  margin-top: 8px;
}

.legal a {
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .legal {
    padding: 88px 0 48px;
  }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .topbar-inner { gap: 12px; }
  .topbar .btn-small { padding: 0 12px; font-size: 0.875rem; }
  .topbar .brand-name { font-size: 1.3rem; }
  .topbar .theme-toggle { display: none; }
  .hero { padding-block: 44px 40px; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .final .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
