
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/nunito-sans-regular.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/nunito-sans-semibold.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/nunito-sans-bold.woff2") format("woff2"); }

/* Tokens: valores reais do app (escuro é o padrão; claro segue o sistema ou
   o seletor do protótipo). Raio: controles 12px, cartões 16px. */
:root {
  color-scheme: dark;
  --canvas: #09090b;
  --surface: #18181b;
  --surface-2: #232327;
  --line: #2c2c31;
  --ink: #f4f4f5;
  --ink-soft: #b4b4bc;
  --ink-faint: #8b8b94;
  --accent: #2dd4bf;
  --accent-strong: #5eead4;
  --accent-ink: #09090b;
  --accent-soft: rgb(45 212 191 / 0.14);
  --warn: #fbbf24;
  --danger: #f87171;
  --radius-control: 12px;
  --radius-card: 16px;
  --shadow-device: 0 40px 80px -32px rgb(0 0 0 / .7);
  --glow: rgb(45 212 191 / 0.16);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --canvas: #f4f4f5; --surface: #ffffff; --surface-2: #ececef; --line: #e0e0e5;
    --ink: #18181b; --ink-soft: #52525b; --ink-faint: #6b6b74;
    --accent: #0f766e; --accent-strong: #115e59; --accent-ink: #ffffff;
    --accent-soft: rgb(15 118 110 / 0.1); --warn: #b45309; --danger: #dc2626;
    --shadow-device: 0 40px 80px -36px rgb(24 24 27 / .28);
    --glow: rgb(15 118 110 / 0.12);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #f4f4f5; --surface: #ffffff; --surface-2: #ececef; --line: #e0e0e5;
  --ink: #18181b; --ink-soft: #52525b; --ink-faint: #6b6b74;
  --accent: #0f766e; --accent-strong: #115e59; --accent-ink: #ffffff;
  --accent-soft: rgb(15 118 110 / 0.1); --warn: #b45309; --danger: #dc2626;
  --shadow-device: 0 40px 80px -36px rgb(24 24 27 / .28);
  --glow: rgb(15 118 110 / 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

/* ---------- Marca ---------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex-shrink: 0; }
.brand-name { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }

.site-header { padding-block: 20px; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }

/* ---------- Idioma: discreto, nomes próprios, sem bandeiras ---------- */
.lang { display: flex; align-items: center; gap: 4px; margin-right: -10px; }
.lang > svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-faint); }
.lang ul { display: flex; gap: 2px; }
.lang a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px;
  border-radius: var(--radius-control); font-size: .8125rem; font-weight: 600;
  color: var(--ink-soft); text-decoration: none; white-space: nowrap;
}
.lang a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lang a[aria-current="true"] { color: var(--ink); text-decoration: none; cursor: default; }
.lang a[aria-current="true"] span { padding: 4px 10px; margin-inline: -10px; border-radius: 999px; background: var(--surface-2); }
/* Até 399px o globo sai para os dois nomes caberem ao lado da marca. */
@media (max-width: 399px) { .lang > svg { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: 24px; padding-bottom: 72px; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding-top: 40px; padding-bottom: 104px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong);
  font-size: .8125rem; font-weight: 600;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hero h1 {
  margin-top: 20px; max-width: 13ch;
  font-size: clamp(2.5rem, 1.55rem + 3.6vw, 3.875rem);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.045em; text-wrap: balance;
}
.lead { margin-top: 20px; max-width: 34rem; font-size: 1.125rem; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- Formulário (espelha o campo de adicionar do app) ---------- */
.waitlist { margin-top: 32px; max-width: 30rem; }
.field-label { display: block; margin-bottom: 8px; padding-inline: 4px; font-size: .875rem; font-weight: 600; color: var(--ink-soft); }
.field {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .05);
  transition: border-color 150ms, box-shadow 150ms;
}
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field[data-invalid] { border-color: var(--danger); }
.field[data-invalid]:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 18%, transparent); }
.field input {
  min-width: 0; flex: 1; padding-block: 8px; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 1.125rem;
}
.field input::placeholder { color: var(--ink-faint); opacity: 1; }
.field input:focus { outline: none; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding-inline: 20px; flex-shrink: 0;
  border: 0; border-radius: var(--radius-control);
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.btn-primary:active { opacity: .8; }
.btn-primary[aria-disabled="true"] { cursor: progress; opacity: .7; }
.spinner[hidden] { display: none; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Em telas estreitas o botão desce, mantendo campo largo e alvo de 48px. */
@media (max-width: 479px) {
  .field { flex-wrap: wrap; padding: 8px; }
  .field input { flex-basis: 100%; padding-inline: 8px; }
  .field .btn-primary { flex: 1; }
}
.field-hint { margin-top: 8px; padding-inline: 4px; font-size: .8125rem; color: var(--ink-faint); }
/* Texto do erro em ink: danger claro (#dc2626) sobre canvas claro dá 4,4:1,
   abaixo de 4,5:1. O vermelho fica no ícone e na borda (não-texto, ≥3:1). */
.field-error { margin-top: 8px; padding-inline: 4px; font-size: .875rem; font-weight: 600; color: var(--ink); display: flex; gap: 6px; align-items: flex-start; }
.field-error svg { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; color: var(--danger); }
.field-error[hidden] { display: none; }

.success {
  margin-top: 32px; max-width: 30rem; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface);
}
.success:focus { outline: none; }
.success-head { display: flex; gap: 14px; align-items: center; }
.success-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-control); background: var(--accent-soft); flex-shrink: 0; }
.success-mark svg { width: 30px; height: 30px; color: var(--ink); }
.success h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
.success h2:focus { outline: none; }
.success-text { margin-top: 10px; color: var(--ink-soft); overflow-wrap: anywhere; }
.success strong { color: var(--ink); font-weight: 600; }
.demo-note {
  margin-top: 16px; padding: 10px 12px; border: 1px dashed var(--ink-faint); border-radius: var(--radius-control);
  font-size: .8125rem; color: var(--ink-soft); line-height: 1.45;
}
.demo-note b { color: var(--ink); font-weight: 700; }
.btn-text {
  margin-top: 12px; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .875rem; font-weight: 600; color: var(--accent-strong);
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Tela do app (ilustração fiel à tela Adicionar) ---------- */
.hero-visual { position: relative; display: grid; justify-items: center; padding-block: 8px 0; }
/* A "alva": luz nascendo atrás do horizonte, como no símbolo. */
.hero-visual::before {
  content: ""; position: absolute; inset: 18% -10% -6%; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 100%, var(--glow), transparent 70%);
}
.hero-visual::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: 9%; height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}
.device {
  position: relative; z-index: 1; width: min(100%, 344px); min-height: 668px;
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 36px; background: var(--canvas);
  box-shadow: var(--shadow-device);
  font-size: 16px; /* medidas do app em rem fixas, independentes da landing */
}
.screen { flex: 1; display: flex; flex-direction: column; padding: 20px 20px 12px; min-height: 0; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-brand { display: flex; align-items: center; gap: 10px; }
.app-brand .mark-box { display: grid; place-items: center; width: 36px; height: 36px; color: var(--accent); }
.app-brand .mark-box svg { width: 28px; height: 28px; }
.app-brand p { font-size: .875rem; font-weight: 600; line-height: 1.25; }
.app-brand p + p { font-size: .75rem; font-weight: 400; color: var(--ink-faint); }
.app-more { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink-soft); }
.app-more svg { width: 20px; height: 20px; }
.add-content { margin-top: auto; padding-top: 24px; }
.recent h3 { font-size: .75rem; font-weight: 400; color: var(--ink-faint); }
.recent ul { margin-top: 6px; }
.recent li { display: flex; align-items: center; gap: 8px; padding-block: 8px; }
.recent li + li { border-top: 1px solid var(--line); }
.recent .name { flex: 1; min-width: 0; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent .pick { display: inline-flex; align-items: center; gap: 4px; padding: 6px 4px; font-size: .75rem; color: var(--ink-soft); border: 1px solid transparent; border-radius: 8px; }
.recent .pick svg { width: 14px; height: 14px; color: var(--ink-faint); }
.recent .pick.unknown { border-color: var(--warn); color: var(--warn); padding-inline: 6px; }
.recent .pick.unknown svg { color: var(--warn); }
.recent .ok { font-size: .75rem; color: var(--accent); }
.app-title { margin-top: 24px; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.045em; line-height: 1.2; }
.app-sub { margin-top: 2px; font-size: .875rem; color: var(--ink-soft); }
.again { margin-top: 16px; }
.again h4 { margin: 0 0 8px; font-size: .75rem; font-weight: 400; letter-spacing: .05em; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .75rem; }
.chip b { font-weight: 400; color: var(--accent); }
.app-field {
  margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .05);
}
.app-field .ph { flex: 1; min-width: 0; padding-block: 8px; font-size: 1.125rem; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-field .typed { color: var(--ink); }
.caret { display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px; vertical-align: -0.2em; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.app-add { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
.app-add svg { width: 24px; height: 24px; }
.app-hint { margin-top: 8px; padding-inline: 4px; font-size: .75rem; color: var(--ink-faint); }
.app-habituals { margin-top: 16px; display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: .75rem; color: var(--ink-soft); }
.app-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px 12px 12px; border-top: 1px solid var(--line); background: var(--canvas); }
.app-nav > span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44.8px; border-radius: 13.6px; font-size: .8rem; color: var(--ink-faint); }
.app-nav > span svg { width: 20px; height: 20px; }
.app-nav .current { color: var(--accent-strong); background: var(--accent-soft); }
.counter { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }

/* Ícone de categoria: igual a .category-icon do app. */
.cat { display: inline-grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 9.6px; color: var(--ink-soft); background: var(--surface-2); }
.cat svg { width: 16.8px; height: 16.8px; }
.cat[data-tone="produce"] { --hue: 148; }
.cat[data-tone="dairy"] { --hue: 240; }
.cat[data-tone="pantry"], .cat[data-tone="bakery"] { --hue: 75; }
.cat[data-tone="meat"] { --hue: 15; }
.cat[data-tone="drinks"] { --hue: 205; }
.cat[data-tone="cleaning"] { --hue: 285; }
.cat[data-tone="hygiene"] { --hue: 340; }
.cat:not([data-tone="other"]) { color: oklch(78% .07 var(--hue)); background: oklch(78% .07 var(--hue) / .12); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .cat:not([data-tone="other"]) { color: oklch(46% .07 var(--hue)); background: oklch(65% .07 var(--hue) / .10); }
}
:root[data-theme="light"] .cat:not([data-tone="other"]) { color: oklch(46% .07 var(--hue)); background: oklch(65% .07 var(--hue) / .10); }

/* ---------- Seções ---------- */
.section { padding-block: 72px; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .section { padding-block: 104px; } }
.section-title {
  max-width: 20ch; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; text-wrap: balance;
}
.section-lead { margin-top: 12px; max-width: 36rem; color: var(--ink-soft); font-size: 1.0625rem; }

.features { margin-top: 48px; display: grid; gap: 16px; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.feature { display: flex; flex-direction: column; padding: 8px 8px 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.feature h3 { margin: 24px 16px 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.3; }
.feature-text { margin: 8px 16px 0; color: var(--ink-soft); text-wrap: pretty; }
.feature-step { margin: 0 16px; font-size: .8125rem; font-weight: 600; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
/* Recorte de tela: fundo canvas, medidas do app. */
.snip { display: flex; flex-direction: column; justify-content: center; min-height: 236px; padding: 18px 16px; border-radius: 10px; background: var(--canvas); font-size: 16px; }
.snip + .feature-step { margin-top: 24px; }
.feature-step + h3 { margin-top: 4px; }
.snip .app-field { margin-top: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.snip .app-field .ph { font-size: 1rem; }
.snip .chips { margin-bottom: 12px; }
.snip .warn-hint { margin-top: 8px; padding-inline: 4px; font-size: .75rem; color: var(--warn); }

.group + .group { margin-top: 14px; }
.group h4 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 4px 8px; font-size: .65rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); }
.group h4 .cat { width: 24px; height: 24px; border-radius: 8px; }
.group h4 .cat svg { width: 14px; height: 14px; }
.group h4 .left { margin-left: auto; font-weight: 400; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.group h4 .done { margin-left: auto; font-weight: 400; color: var(--accent-strong); }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 4px 10px 6px; font-size: .95rem; }
.row + .row { border-top: 1px solid var(--line); }
.row .pencil { margin-left: auto; color: var(--ink-faint); width: 16px; height: 16px; }
.check { display: grid; place-items: center; width: 22.4px; height: 22.4px; flex-shrink: 0; border: 1.5px solid var(--ink-faint); border-radius: 50%; }
.check svg { width: 14px; height: 14px; }
.row.bought .check { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.row.bought .label { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--ink-faint); }
.shop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.shop-head b { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.045em; }
.shop-head span { font-size: .8rem; color: var(--ink-soft); }
.progress { margin: 8px 0 14px; height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; width: 60%; height: 100%; border-radius: inherit; background: var(--accent); }
.shop .row { padding-block: 12px; }
.finish { margin-top: 12px; padding: 10px; border: 1px solid var(--accent); border-radius: 16px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; text-align: center; font-size: .9375rem; }

/* Antes de entrar */
.facts { display: grid; gap: 40px; }
@media (min-width: 900px) { .facts { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } }
.facts dl { border-top: 1px solid var(--line); }
.facts dl > div { display: grid; gap: 4px; padding-block: 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .facts dl > div { grid-template-columns: 14rem 1fr; gap: 24px; } }
.facts dt { font-weight: 600; letter-spacing: -0.01em; }
.facts dd { color: var(--ink-soft); }
.back-to-form {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 32px;
  min-height: 44px; padding-inline: 16px; border-radius: var(--radius-control);
  background: var(--accent-soft); color: var(--accent-strong);
  font-size: .875rem; font-weight: 600; text-decoration: none;
}
.back-to-form svg { width: 18px; height: 18px; }

.site-footer { padding-block: 32px 112px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer .brand svg { width: 24px; height: 24px; }
.site-footer .brand-name { font-size: 1rem; }
.site-footer p { font-size: .8125rem; color: var(--ink-faint); }

/* ---------- Controles do protótipo (fora do design) ---------- */
.proto { position: fixed; right: 12px; bottom: 12px; z-index: 50; max-width: calc(100vw - 24px); font-size: .8125rem; }
.proto summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
  min-height: 40px; padding: 0 14px; border: 1px dashed var(--ink-faint); border-radius: 999px;
  background: var(--surface); color: var(--ink-soft); font-weight: 600;
}
.proto summary::-webkit-details-marker { display: none; }
.proto[open] summary { margin-bottom: 8px; }
.proto-wrap { display: flex; flex-direction: column; align-items: flex-end; }
.proto-panel { width: 280px; max-width: 100%; padding: 14px; border: 1px dashed var(--ink-faint); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 12px 32px rgb(0 0 0 / .25); }
.proto fieldset { margin: 0 0 12px; padding: 0; border: 0; }
.proto legend { padding: 0; margin-bottom: 6px; font-weight: 600; color: var(--ink-soft); }
.seg { display: flex; gap: 4px; padding: 3px; border-radius: var(--radius-control); background: var(--surface-2); }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 6px 4px; border-radius: 9px; text-align: center; color: var(--ink-soft); }
.seg input:checked + span { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / .15); }
.seg input:focus-visible + span { outline: 2px solid var(--accent-strong); outline-offset: 1px; }
.proto-note { color: var(--ink-faint); line-height: 1.4; }
.proto-note + .proto-note { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret, .spinner { animation: none; }
  .field { transition: none; }
}
@media (forced-colors: active) {
  .field:focus-within { outline: 2px solid Highlight; }
  .check, .cat { forced-color-adjust: auto; }
}
