/* Hallmark · shape: custom sequence for two audiences · genre: modern-minimal · theme: brand · job: sign up
 * paper: oklch(98.6% 0.004 250) · accent: oklch(71% 0.195 48) · display: League Spartan · body: Figtree · hero: Stage · nav: edge-aligned, wordmark and four destinations · footer: a mast, the logo over the links · signature: a real run on the map, beside the two doors
 * axes: light/geometric-sans/chromatic-orange · posture: Committed, a navy field carries the bands · imagery: screenshots 4 (puppeteer, sample delivery) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R5 V4 · weakest: S, the head could suit another marketplace; the real map of Glória carries the specificity */
/* Hallmark · waive 44c · Stage hero, the map fills to y 794 of 900 · the linter reads the empresa and entregador buttons as the foot, while the map of Glória runs past them */
/* Hallmark · waive 79 · Stage hero, the map fills to y 794 of 900 · the 208px measured sits beside the map of Glória, so the screen holds no dead band under the buttons */
/* Hallmark · dismissed 58 · the count includes the hidden entregador panel, and each visitor sees one panel of the switcher */
/* Hallmark · answered F4 · the owner chose two buttons of equal weight in the hero, empresa and entregador */
/* Hallmark · dismissed 42 · the nav and the footer shapes are named in the stamp: edge-aligned, and a mast over the contact links */
@import url("./tokens.css");
@import url("./base.css");

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border: 2px solid transparent; border-radius: var(--radius-pill); font-weight: 600; font-size: var(--text-md); line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--accent { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--accent:hover { background: var(--color-accent-2); }
.btn--ink { background: var(--color-ink); color: var(--color-paper); }
.btn--ink:hover { background: var(--color-field-2); }
.btn--line { border-color: var(--color-ink); color: var(--color-ink); background: transparent; }
.btn--line:hover { background: var(--color-paper-3); }
.btn--small { min-height: 44px; padding: 0 var(--space-md); }
.on-field .btn--line { border-color: var(--color-on-field); color: var(--color-on-field); }
.on-field .btn--line:hover { background: var(--color-field-2); }
.on-field :focus-visible { outline-color: var(--color-on-field); }

.hero { min-height: calc(100dvh - var(--nav-height)); display: flex; align-items: center; padding-block: var(--space-lg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 4.6vw + 0.75rem, 5.25rem); line-height: 0.98; max-width: 12ch; }
.hero .lead { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero-map { margin: 0; animation: settle var(--dur-long) var(--ease-out) both; }
.hero-text { animation: settle var(--dur-long) var(--ease-out) both; }
@keyframes settle { from { opacity: 0.4; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-map, .hero-text { animation: none; } }

.shot { display: block; margin: 0; border-radius: var(--radius-card); }
.shot > img { outline: 1px solid color-mix(in oklab, var(--color-ink) 10%, transparent); outline-offset: -1px; border-radius: inherit; }
.shot--map { height: min(640px, calc(100dvh - var(--nav-height) - 96px)); min-height: 440px; }
.shot--map > img { object-position: 100% 100%; }
.hero-map figcaption { margin-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); }

/* Seções */
.section { padding-block: var(--section-gap-s); }
.section--tint { background: var(--color-paper-2); }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.head .lead { color: var(--color-ink-2); }
.head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; }

/* Como funciona */
.seg { display: inline-flex; gap: var(--space-2xs); margin-top: var(--space-lg); padding: var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-paper-3); }
.seg button { min-height: 44px; 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 { color: var(--color-ink); }
.seg button[aria-selected="true"] { background: var(--color-ink); color: var(--color-paper); }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; margin-top: var(--space-xl); }
.steps { display: grid; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: var(--space-2xl) minmax(0, 1fr); column-gap: var(--space-sm); counter-increment: step; }
.steps li::before { content: counter(step); grid-row: span 2; color: var(--color-accent-ink); font-family: var(--font-display); font-size: var(--text-section); font-weight: 700; line-height: 0.9; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--text-title); }
.steps p { margin-top: var(--space-2xs); color: var(--color-ink-2); }
.panel-action { margin-top: var(--space-xl); }
.well { display: flex; align-items: center; justify-content: center; min-height: 600px; padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.well .shot { width: min(100%, 420px); }
.shot--form { aspect-ratio: 533 / 640; }
.shot--form > img { object-position: 50% 0; }
.shot--card { aspect-ratio: 698 / 643; width: min(100%, 480px) !important; }

/* Etapas da corrida */
.shot--progress { aspect-ratio: 1096 / 274; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--space-2xl) 0 0; }
.facts > div { padding-inline: var(--space-lg); border-left: 1px solid var(--color-paper-3); }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts dt { font-family: var(--font-display); font-size: var(--text-title); font-weight: 700; line-height: 1.2; }
.facts dd { margin: var(--space-2xs) 0 0; color: var(--color-ink-2); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.stats > div { display: flex; flex-direction: column-reverse; gap: var(--space-2xs); }
.stats dt { color: var(--color-ink-2); font-size: var(--text-sm); }
.stats dd { margin: 0; font-family: var(--font-display); font-size: var(--text-section); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }

/* Cobrança */
.billing { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.billing .lead { margin-top: var(--space-md); color: var(--color-ink-2); }
.billing-list { display: grid; gap: var(--space-xs); margin: var(--space-xl) 0 0; padding: 0; list-style: none; font-weight: 600; }
.ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger caption { padding-bottom: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); text-align: left; }
.ledger th, .ledger td { padding-block: var(--space-md); border-top: 1px solid var(--color-rule); font-size: var(--text-lead); text-align: left; }
.ledger th { font-weight: 400; }
.ledger td { text-align: right; font-weight: 600; white-space: nowrap; }
.ledger .total th { font-family: var(--font-display); font-size: var(--text-title); font-weight: 700; }
.ledger .total td { font-family: var(--font-display); font-size: var(--text-display-s); font-weight: 700; line-height: 1; }

/* Calculadora */
.band { background: var(--color-field); color: var(--color-on-field); }
.band .lead { color: var(--color-on-field-2); }
.calc { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: start; }
.calc label { display: block; margin-bottom: var(--space-xs); font-weight: 600; }
.money { display: flex; align-items: center; gap: var(--space-xs); min-height: 52px; padding-inline: var(--space-md); border: 1px solid var(--color-on-field-2); border-radius: var(--radius-input); background: var(--color-field-2); }
.money span { color: var(--color-on-field-2); font-weight: 600; }
.money input { flex: 1; min-width: 0; min-height: 50px; border: 0; background: transparent; color: var(--color-on-field); font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; outline: 2px solid transparent; }
.money:focus-within { outline: 2px solid var(--color-on-field); outline-offset: 2px; }
.presets { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.preset { min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-on-field-2); border-radius: var(--radius-pill); background: transparent; color: var(--color-on-field); font-weight: 600; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.preset:hover { background: var(--color-field-2); }
.preset.is-active { background: var(--color-on-field); color: var(--color-ink); }
.range { width: 100%; height: 44px; margin-top: var(--space-sm); accent-color: var(--color-accent); cursor: pointer; }
.perks { display: grid; gap: var(--space-2xs); margin: var(--space-lg) 0 0; padding: 0; list-style: none; color: var(--color-on-field-2); }
.result-label { color: var(--color-on-field-2); font-size: var(--text-lead); }
.result-value { margin-top: var(--space-2xs); font-family: var(--font-display); font-size: var(--text-display); font-weight: 700; line-height: 1; letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; overflow-wrap: break-word; min-width: 0; }
.result-year { margin-top: var(--space-xs); color: var(--color-on-field-2); }
.compare { display: grid; gap: var(--space-xs); margin: var(--space-lg) 0; }
.compare > div { display: flex; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-xs); border-top: 1px solid var(--color-field-2); font-variant-numeric: tabular-nums; }
.compare dt { font-weight: 400; color: var(--color-on-field-2); }
.compare dd { margin: 0; font-weight: 600; text-align: right; }
.calc-note { margin-top: var(--space-md); max-width: 60ch; color: var(--color-on-field-2); font-size: var(--text-sm); }

/* Apps */
.apps { margin: 0; padding: 0; list-style: none; }
.apps li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: var(--gap-columns); align-items: center; padding-block: var(--space-xl); border-top: 1px solid var(--color-rule); }
.apps li:last-child { border-bottom: 1px solid var(--color-rule); }
.apps p { color: var(--color-ink-2); }
.apps-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-xs); }
.apps-soon { align-self: center; color: var(--color-muted); font-size: var(--text-sm); }

/* Dúvidas */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.faq .lead { margin-top: var(--space-md); color: var(--color-ink-2); }
.faq-contact { display: inline-block; margin-top: var(--space-md); font-weight: 600; text-underline-offset: 0.2em; }
.faq-contact:hover { color: var(--color-focus); }
.qa { border-top: 1px solid var(--color-rule); }
.qa:last-child { border-bottom: 1px solid var(--color-rule); }
.qa summary { display: flex; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-lg); font-family: var(--font-display); font-size: var(--text-title); font-weight: 700; line-height: 1.2; cursor: pointer; list-style: none; transition: color var(--dur-short) var(--ease-out); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex-shrink: 0; color: var(--color-muted); }
.qa[open] summary::after { content: "\2212"; }
.qa summary:hover { color: var(--color-focus); }
.qa p { padding-bottom: var(--space-lg); color: var(--color-ink-2); }

/* Fechamento */
.close-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xl); }
.close-grid h2 { max-width: 16ch; }
.close-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

@media (max-width: 60rem) {
  .hero { min-height: 0; padding-block: var(--space-xl) var(--space-2xl); }
  .hero-grid, .panel, .billing, .calc, .faq, .head--split { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: var(--space-xl); }
  .panel { gap: var(--space-xl); }
  .shot--map { height: auto; min-height: 0; aspect-ratio: 1 / 1; }
  .well { min-height: 0; padding: var(--space-lg); }
  .apps li { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .apps-actions { justify-content: flex-start; }
}
@media (max-width: 40rem) {
  .hero-actions .btn, .close-actions .btn, .panel-action { width: 100%; }
  .seg { display: flex; }
  .seg button { flex: 1; padding: 0 var(--space-sm); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .facts > div { padding: var(--space-md) 0 0; border-left: 0; border-top: 1px solid var(--color-paper-3); }
  .facts > div:first-child { padding-top: 0; border-top: 0; }
}

