/* Hallmark · shape: Night-start sign up (the brand's track as the first screen, a clean price sheet after it) · genre: atmospheric · theme: custom · job: sign up · idea: "Largada noturna: a primeira tela é a pista da marca; o resto é a tabela de corrida, limpa" · vibe: "dourado, velocidade, noite, cidade pequena"
 * paper: oklch(15% 0.06 266), the logo's night blue · accent: oklch(84% 0.16 86), the logo's gold · display: Exo 2 italic 800 · body: Archivo · hero: the night track, speed lines crossing once, gold price beside the logo · nav: floating bar · footer: letter close · imagery: the partner's own logo only · signature: the logo on a gold bloom beside a metallic R$ 5,00
 * axes: dark/grotesk-heavy/chromatic-yellow · posture: full palette (night field, gold signal, red seal on the speed lines, electric blue lines) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V5 · weakest: R, the brand asks for shine; kept every effect inside the first screen and let the price sheet and the rules read plain */
/* Hallmark · waive 29 · two fixed radial blooms on the hero, gold behind the Motoboy Freelancer logo and electric blue opposite, never animated · the partner's logo is a lit gold ring, and the hero has to sit in its light */
/* Hallmark · waive 2b · the R$ 5,00 runs one gold ramp from --color-focus to --color-accent-2, hues 90 to 72 · the Motoboy Freelancer lettering is metallic gold, and the price is set in that metal */
/* Hallmark · waive 38ii · every head is italic 800 caps, never one word set apart · the Motoboy Freelancer logo is slanted heavy caps, so the heads take the logo's lean */
/* Hallmark · dismissed 23 · the gold R$ 5,00 is the page's signature under the declared full-palette posture; gold elsewhere stays on the primary button and two rules */
/* Hallmark · dismissed F4 · the second fill is the chosen tab of the loja/motoboy switcher; the one primary action stays the gold Pedir entregador */
/* Hallmark · dismissed F6 · .prices tbody th holds the row names (bairros, zona rural), words and not figures; the prices sit in .price with tabular-nums */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --nav-height: 64px;
  --nav-bg: color-mix(in oklab, var(--color-paper) 80%, transparent);
  --fig-size: clamp(4.5rem, 8vw + 1rem, 8.5rem);
  --bloom-gold: color-mix(in oklab, var(--color-accent) 30%, transparent);
  --bloom-volt: color-mix(in oklab, var(--color-volt) 26%, transparent);
  --shine: color-mix(in oklab, var(--color-ink) 70%, transparent);
  --slant: -14deg;
}

/* Type: the logo's slanted heavy caps for heads, Archivo for reading */
h1, h2 { font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: var(--tracking-display); line-height: 1.02; }
h1 { max-width: 14ch; font-size: clamp(2.75rem, 5vw + 1rem, 5rem); }
h2 { max-width: 22ch; font-size: clamp(1.75rem, 2.2vw + 1rem, 3rem); }
h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-title); line-height: 1.25; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 46ch; }

/* Nav: a floating bar on a blur over the hero */
.nav-wrap { position: sticky; top: var(--space-sm); z-index: var(--z-sticky-nav); padding-top: var(--space-sm); }
.nav {
  display: flex; align-items: center; gap: var(--space-lg);
  min-height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: var(--text-md); }
.nav-links { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.nav-links a { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); text-decoration: none; }
.nav-links a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }

/* Controls */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 var(--space-lg);
  border: var(--rule-hair) solid transparent; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: var(--text-md); font-weight: 600;
  color: var(--color-ink); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-focus); }
.btn--secondary { border-color: var(--color-rule-2); background: transparent; }
.btn--secondary:hover { background: var(--color-paper-2); }
.btn--nav { min-height: 44px; font-size: var(--text-sm); }

/* The metal shine: crosses the gold button once on arrival and again on hover */
.btn--primary::after {
  content: ""; position: absolute; inset: -20% auto -20% 0; width: 40%;
  background: linear-gradient(100deg, transparent, var(--shine), transparent);
  transform: translateX(-160%) skewX(var(--slant)); pointer-events: none;
}
.hero .btn--primary::after { animation: shine 900ms var(--ease-out) 700ms both; }
.btn--primary:hover::after { animation: shine 700ms var(--ease-out) both; }
@keyframes shine { from { transform: translateX(-160%) skewX(var(--slant)); } to { transform: translateX(360%) skewX(var(--slant)); } }

a:not(.btn):hover { text-decoration-color: var(--color-accent); }
a:not(.btn):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* Hero: the brand's night track */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(calc(100svh - var(--nav-height) - var(--space-lg)), 960px);
  display: grid; align-items: center;
  padding-block: var(--space-2xl) var(--space-4xl);
  margin-top: calc(-1 * (var(--nav-height) + var(--space-sm) * 2));
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  background-color: var(--color-paper); color: var(--color-ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 72px));
}
/* Two fixed blooms, one colour each: gold behind the logo, electric blue opposite (waive 29 above) */
.hero::before, .hero::after { content: ""; position: absolute; z-index: -2; pointer-events: none; aspect-ratio: 1; border-radius: 50%; }
.hero::before { width: 30vw; max-width: 460px; left: max(-2vw, calc((100vw - var(--container)) / 2 - 4vw)); top: 4%; background: radial-gradient(closest-side, var(--bloom-gold), transparent); }
.hero::after { width: 60vw; max-width: 880px; right: -18vw; bottom: -12%; background: radial-gradient(closest-side, var(--bloom-volt), transparent); }

/* Speed lines: cross the screen once, then hold still, as in the logo's trail */
.speed { position: absolute; inset: 0; z-index: -1; pointer-events: none; transform: rotate(var(--slant)) scale(1.3); }
.speed span { position: absolute; left: 0; height: 2px; background: var(--color-volt); opacity: 0.55; animation: streak 1100ms var(--ease-out) both; }
.speed span:nth-child(1) { top: 14%; width: 46%; left: 52%; animation-delay: 60ms; }
.speed span:nth-child(2) { top: 26%; width: 30%; left: 64%; height: 1px; background: var(--color-accent); opacity: 0.7; animation-delay: 140ms; }
.speed span:nth-child(3) { top: 41%; width: 38%; left: 4%; animation-delay: 220ms; }
.speed span:nth-child(4) { top: 57%; width: 54%; left: 58%; height: 3px; animation-delay: 100ms; }
.speed span:nth-child(5) { top: 69%; width: 24%; left: 10%; height: 1px; background: var(--color-seal); opacity: 0.8; animation-delay: 300ms; }
.speed span:nth-child(6) { top: 80%; width: 42%; left: 40%; background: var(--color-accent); opacity: 0.45; animation-delay: 180ms; }
.speed span:nth-child(7) { top: 91%; width: 34%; left: 70%; animation-delay: 260ms; }
@keyframes streak { from { transform: translateX(-120vw); opacity: 0; } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.hero-text { display: grid; gap: var(--space-lg); }
.hero-logo { width: clamp(170px, 19vw, 260px); height: auto; animation: arrive 700ms var(--ease-out) both; }
.hero-text .lead { color: var(--color-ink-2); }
@keyframes arrive { from { opacity: 0; transform: translateX(-24px); } }

.counter { display: grid; gap: var(--space-lg); padding: var(--space-2xl); background: color-mix(in oklab, var(--color-paper-2) 88%, transparent); border-top: 3px solid var(--color-accent); box-shadow: var(--shadow-card); border-radius: var(--radius-card); }
.counter-label { font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.counter-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-sm) var(--space-md); }
.fig {
  font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: var(--fig-size);
  line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  color: var(--color-accent);
  background: linear-gradient(180deg, var(--color-focus), var(--color-accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.unit { font-size: var(--text-lead); color: var(--color-ink-2); }
.counter-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.counter-note { font-size: var(--text-sm); color: var(--color-muted); }
.counter-note a { color: var(--color-ink-2); }

/* Below the hero: calm, readable sheets */
.section { padding-block: var(--section-gap); }
.section + .section { border-top: var(--rule-hair) solid var(--color-rule); }
.section--tight { padding-block: var(--section-gap-s); }
.head-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.head-split .lead, .rows-head .lead { color: var(--color-ink-2); }

.prices { width: 100%; border-collapse: collapse; }
.prices th, .prices td { padding: var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: top; }
.prices thead th { padding-top: 0; padding-bottom: var(--space-sm); font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.prices tbody th { font-size: var(--text-title); font-weight: 600; padding-right: var(--space-xl); }
.prices .num { text-align: right; white-space: nowrap; }
.price { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: var(--text-title); font-variant-numeric: tabular-nums; }
.prices tbody tr:first-child .price { color: var(--color-accent); }
.per-km { display: block; margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.areas { margin-top: var(--space-xs); font-size: var(--text-sm); font-weight: 400; }
.areas summary { cursor: pointer; color: var(--color-muted); width: fit-content; }
.areas summary:hover { color: var(--color-ink-2); }
.areas summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.areas p { margin-top: var(--space-xs); max-width: 60ch; color: var(--color-ink-2); line-height: 1.6; }
.caption { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

.switch { margin-top: var(--space-2xl); }
.seg { display: inline-flex; border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); }
.seg button {
  min-height: 48px; padding: 0 var(--space-lg);
  border: 0; border-radius: var(--radius-pill); background: transparent;
  color: var(--color-ink-2); font-weight: 600; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.seg button:hover { background: var(--color-paper-2); color: var(--color-ink); }
.seg button[aria-selected="true"] { background: var(--color-ink); color: var(--color-paper); }
.seg button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.panel { margin-top: var(--space-2xl); }
.panel + .panel { margin-top: var(--space-3xl); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; }
.facts > div { padding-top: var(--space-lg); border-top: 2px solid var(--color-rule-2); }
.facts dt { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: var(--text-lg); line-height: 1.15; }
.facts dd { margin: var(--space-sm) 0 0; color: var(--color-ink-2); }
.panel-action { display: inline-block; margin-top: var(--space-xl); font-size: var(--text-lead); font-weight: 600; color: var(--color-ink); }

.rows-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); }
.rows-head { display: grid; gap: var(--space-md); align-content: start; }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows li:first-child { padding-top: 0; }
.rows p { color: var(--color-ink-2); }

/* Band: the slogan, set like the logo's tagline */
.band { background: var(--color-paper-2); color: var(--color-ink); padding-block: var(--section-gap-s); border-top: 3px solid var(--color-accent); }
.band-inner { display: grid; gap: var(--space-xl); }
.statement { font-size: clamp(2.25rem, 4vw + 1rem, 4.5rem); max-width: 20ch; }
.band-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* Footer: a letter close */
.footer { padding-block: var(--space-3xl) var(--space-2xl); }
.footer-inner { display: grid; gap: var(--space-sm); }
.signoff { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: var(--text-lead); }
.footer p { color: var(--color-ink-2); }
.colophon { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }

@media (max-width: 60rem) {
  .nav-links { display: none; }
  .hero { min-height: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 40px)); padding-bottom: var(--space-3xl); }
  .hero-grid, .head-split, .rows-grid, .rows li { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: var(--space-xl); }
  .rows-grid { row-gap: var(--space-xl); }
  .counter { padding: var(--space-xl); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .rows li { gap: var(--space-xs); }
}
@media (max-width: 40rem) {
  .brand-name { display: none; }
  .counter-actions .btn, .band-actions .btn { flex: 1 1 100%; }
  .prices tbody th { padding-right: var(--space-md); font-size: var(--text-lg); }
}
@media (prefers-reduced-motion: reduce) {
  .speed span, .hero-logo, .btn--primary::after, .hero .btn--primary::after, .btn--primary:hover::after { animation: none; }
}
