/* Tema Nanoservice: tinta sobre papel, linhas finas, tudo numa grade só. A cor da marca
   aparece num lugar: o ponto (laranja no claro, menta no escuro). Celular primeiro. */
@font-face { font-family: "Satoshi"; font-weight: 400; font-display: swap;
  src: url("../vendor/satoshi/satoshi-400.71a6023c087c.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 500; font-display: swap;
  src: url("../vendor/satoshi/satoshi-500.cd790237ed63.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 700; font-display: swap;
  src: url("../vendor/satoshi/satoshi-700.d4db658f4dd6.woff2") format("woff2"); }

:root {
  --paper: #FFFFFF;
  --wash: #F4F6FA;
  --ink: #0F1419;
  --text: #141A2E;
  --dim: #5F687A;
  --line: rgba(17, 24, 39, .14);
  --line-strong: rgba(17, 24, 39, .26);
  --dot: #EA580C;
  --on-ink: #FFFFFF;
  --font: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 8px;
  --gutter: 20px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1419; --wash: #16202A; --ink: #F0F6FC; --text: #F0F6FC; --dim: #94A3B8;
    --line: rgba(148, 163, 184, .20); --line-strong: rgba(148, 163, 184, .36);
    --dot: #5EEAD4; --on-ink: #0F1419;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 1.0625rem/1.5 var(--font); -webkit-font-smoothing: antialiased;
  min-height: 100dvh; display: flex; flex-direction: column;
}
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { color: var(--ink); }
ul, ol { padding: 0; list-style: none; }

.top, main, .foot {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.top nav { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); }
.mark { width: 32px; height: 32px; display: block; flex: none; }
.wordmark { height: 21px; width: auto; display: block; }
/* Menu de quem opera: um <details> no topo, com as telas de trabalho agrupadas. */
.op-menu { position: relative; }
.op-menu summary { list-style: none; }
.op-menu summary::-webkit-details-marker { display: none; }
.op-menu summary::after { content: ""; width: 7px; height: 7px; margin: -3px 0 0 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; rotate: 45deg; }
.op-menu[open] summary::after { rotate: -135deg; margin-top: 4px; }
.op-menu-list { position: absolute; z-index: 40; right: 0; top: calc(100% + 4px); width: max-content; min-width: 220px; max-width: calc(100vw - 2 * var(--gutter)); max-height: calc(100dvh - 90px); overflow-y: auto; padding: 8px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .45); }
.op-menu-list p { padding: 10px 10px 4px; font: 500 .75rem/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.op-menu-list a { display: flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 6px; color: var(--ink); font-weight: 500; text-decoration: none; }
.op-menu-list a:hover { background: var(--wash); }
.who { color: var(--dim); font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
main { flex: 1; padding-block: 8px 56px; }
.foot { padding-block: 20px; color: var(--dim); font-size: .875rem; border-top: 1px solid var(--line); }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 18px; background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink);
  border-radius: var(--radius); font: 700 1rem var(--font); text-decoration: none; cursor: pointer;
}
.button.big { min-height: 52px; padding: 0 26px; font-size: 1.0625rem; }
.link {
  background: none; border: 0; padding: 0; min-height: 44px; display: inline-flex; align-items: center;
  font: 500 1rem var(--font); color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--line-strong); text-underline-offset: 4px; cursor: pointer;
}
:is(a, button):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

/* O ponto da marca fecha os títulos principais. */
.dot::after { content: "."; color: var(--dot); }

.hero { padding-block: 40px 48px; max-width: 46rem; }
.hero h1 { font-size: clamp(2.125rem, 7.5vw, 3.75rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.hero p { margin-top: 18px; font-size: 1.125rem; color: var(--dim); max-width: 38rem; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }

.block { padding-block: 28px; border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; }
.block h1 { font-size: 1.75rem; line-height: 1.15; letter-spacing: -.02em; }
.block h2 { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.block h2.company { font-size: 1.375rem; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.block h2 small { font-weight: 400; font-size: .875rem; letter-spacing: 0; color: var(--dim); margin-left: 8px; }
.empty { color: var(--dim); margin-top: 10px; }

.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); }
.card {
  display: block; position: relative; height: 100%; padding: 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--paper); text-decoration: none;
}
.card h3 { font-size: 1.125rem; margin-top: 14px; }
.card p { color: var(--dim); font-size: .9375rem; margin-top: 4px; }
.card.app { min-height: 132px; transition: border-color .12s, background-color .12s; }
.card.app:hover, .card.app:active { border-color: var(--line-strong); background: var(--wash); }
.icon { width: 28px; height: 28px; display: block; color: var(--ink); }
.tag { position: absolute; top: 14px; right: 14px; font-size: .75rem; font-weight: 500; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--dim); }

.steps :is(ol, ul) { display: grid; gap: 14px; max-width: 40rem; }
.steps li { padding-left: 22px; position: relative; color: var(--dim); }
.steps li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.steps strong { color: var(--ink); }

/* Formulário de pedido e tela de pedidos do operador. */
.narrow { max-width: 36rem; }
.lead { color: var(--dim); margin-top: 12px; font-size: 1.0625rem; text-wrap: pretty; }
.form { margin-top: 28px; display: grid; gap: 28px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.form legend { padding: 0; margin-bottom: 12px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.field { display: grid; gap: 6px; font-weight: 500; color: var(--ink); }
.field small, .choice small { font-weight: 400; color: var(--dim); font-size: .875rem; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--paper); color: var(--text);
  font: 400 1rem var(--font); /* 16px: o iPhone não dá zoom ao focar */
}
.field textarea { min-height: 88px; resize: vertical; }
.field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--text); font: 400 1rem var(--font); }
.fold { border-top: 1px solid var(--line); }
.fold > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 0; cursor: pointer; }
.fold > summary small { color: var(--dim); font-size: .875rem; }
.fold[open] > summary { margin-bottom: 8px; }
.fold .actions { margin: 16px 0 24px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--wash); }
.choice input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.choice span { display: grid; gap: 2px; min-width: 0; }
.choice strong { color: var(--ink); }
.error { color: #B91C1C; font-size: .9375rem; font-weight: 500; margin: 0; }
pre.error { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 .8125rem ui-monospace, monospace; margin-top: 8px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.button.wide { width: 100%; }
.button.google { gap: 12px; background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.button.google:hover { background: var(--wash); }
.aside { margin-top: 18px; }
.more { border-top: 1px solid var(--line); padding-top: 14px; }
.more summary { cursor: pointer; font-weight: 500; color: var(--ink); min-height: 44px; display: flex; align-items: center; gap: 8px; }
.more summary small { color: var(--dim); font-weight: 400; font-size: .875rem; }
.more-body { display: grid; gap: 14px; margin-top: 8px; }
.progress { margin-top: 24px; display: grid; gap: 12px; }
.progress li { position: relative; padding-left: 26px; color: var(--dim); }
.progress li::before { content: ""; position: absolute; left: 0; top: .42em; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.progress li.done { color: var(--ink); }
.progress li.done::before { background: var(--ink); border-color: var(--ink); }
.progress li.doing { color: var(--ink); font-weight: 500; }
.progress li.doing::before { background: var(--dot); border-color: var(--dot); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.count { font-size: .9375rem; font-weight: 500; color: var(--dim); margin-left: 8px; }
.orders { display: grid; gap: 12px; margin-top: 20px; }
.order { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 6px; }
.order.s-new { border-color: var(--ink); }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order-head strong { color: var(--ink); font-size: 1.125rem; overflow-wrap: anywhere; }
.tag.static { position: static; white-space: nowrap; }
.dimmed, .note { color: var(--dim); font-size: .9375rem; }
.note { border-left: 2px solid var(--line-strong); padding-left: 10px; }
.order .actions { margin-top: 8px; }
@media (prefers-color-scheme: dark) { .error { color: #F87171; } }
.form-body { display: grid; gap: 28px; min-width: 0; }

/* Central de pedidos e empresas operadas: funil, fatos do pedido, linhas e linha do tempo. */
a.order-head { text-decoration: none; min-height: 44px; align-items: center; }
a.order-head:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.order-head h1 { overflow-wrap: anywhere; }
.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; margin-top: 20px; }
.funnel a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--dim); font-size: .875rem; line-height: 1.25; }
.funnel a:hover { border-color: var(--line-strong); background: var(--wash); }
.funnel strong { color: var(--ink); font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.funnel a.zero strong { color: var(--dim); font-weight: 500; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px 24px; margin: 20px 0 12px; }
.facts dt { font-size: .8125rem; color: var(--dim); }
.facts dd { margin: 2px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.facts small, .rows small, .timeline small { color: var(--dim); font-size: .875rem; margin-left: 4px; }
.rows { display: grid; margin-top: 8px; }
.rows li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.rows li:first-child { border-top: 0; }
.rows strong { color: var(--ink); min-width: min(100%, 13rem); }
.rows .dimmed:last-child { margin-left: auto; }
.rows input[type=datetime-local] { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--text); font: 400 1rem var(--font); }
.timeline { display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; }
.timeline time { color: var(--dim); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.facts ~ .actions { margin-top: 12px; }
@media (max-width: 560px) { .rows .dimmed:last-child { margin-left: 0; flex-basis: 100%; } }

/* Celular: as telas do fluxo cabem numa tela, como num app. O título fica em cima, a ação
   fica presa embaixo e, se o meio não couber (letra aumentada, teclado aberto, campos
   opcionais abertos), é só o meio que rola. */
@media (max-width: 719px) {
  body.screen { height: 100dvh; min-height: 0; overflow: hidden; }
  body.screen .foot { display: none; }
  body.screen .top { padding-block: 6px; }
  body.screen main { min-height: 0; display: flex; flex-direction: column; padding-block: 0 max(16px, env(safe-area-inset-bottom)); }
  body.screen .block { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-block: 8px 0; }
  body.screen .block h1 { font-size: 1.625rem; }
  body.screen .lead { margin-top: 8px; font-size: 1rem; line-height: 1.4; }
  body.screen .steps { margin-top: 18px; }
  body.screen .screen-foot { margin-top: auto; padding-top: 16px; }
  body.screen .screen-foot .aside { margin-top: 10px; text-align: center; }

  body.screen .form { flex: 1; min-height: 0; margin-top: 14px; display: flex; flex-direction: column; gap: 0; }
  /* A folga lateral deixa o contorno de foco dos campos inteiro dentro da área que rola. */
  body.screen .form-body {
    flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; align-content: start;
    gap: 16px; margin-inline: -4px; padding: 2px 4px 12px;
  }
  body.screen .form > .button { flex: none; margin-top: 12px; }
  body.screen .form fieldset { gap: 10px; }
  body.screen .form legend { margin-bottom: 8px; }
  body.screen .more { padding-top: 4px; }

  /* Os apps viram quatro teclas, duas por linha. A descrição de cada um já foi lida na vitrine. */
  .choices.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .choices.tiles .choice { align-items: center; padding: 12px; min-height: 52px; }
  .choices.tiles .choice input { margin: 0; }
  .choices.tiles small { display: none; }

  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 14px; }
  .card.app { min-height: 104px; }
  .card.app p { display: none; }
  .card h3 { margin-top: 10px; }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .wordmark { height: 24px; }
  .hero { padding-block: 72px 80px; }
  .block { padding-block: 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
