/* ==========================================================================
   VIRAL FOODS — o lado quente da casa.

   Mesma família da Viral Drinks: mesmo papel (ivory), mesma tinta (near-black
   com marrom), mesma champanhe de detalhe, mesmas fontes. O que muda é a
   TEMPERATURA. Onde a Drinks usa forest (#1f3a2e) — vidro, frio, condensação —
   a Foods usa ember (#a8321a) — forno, brasa, vapor.

   Os tokens abaixo são os mesmos de src/styles/viral-light.css do app Drinks,
   copiados de propósito: este site é deploy independente e não deve depender
   do build do outro para renderizar.
   ========================================================================== */

:root {
  --paper: #f6f2ea;
  --paper-deep: #efe9dd;
  --surface: #fbf8f2;
  --surface-raised: #fdfbf7;

  --ink: #1c1916;
  --ink-soft: #3a342d;
  --muted: #6e655a;
  --muted-quiet: #8b8175;

  --rule: #e3dcd0;
  --rule-strong: #d6ccbc;

  --champagne: #b99049;
  --champagne-deep: #8f6d31;

  /* o calor: a assinatura da Foods */
  --ember: #a8321a;
  --ember-soft: #c25236;
  --ember-deep: #7d2412;

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 50;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── topo ───────────────────────────────────────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ember);
  background: color-mix(in srgb, var(--ember) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--ember) 22%, transparent);
}

.brand__type { display: flex; align-items: baseline; gap: 7px; }

.brand__viral {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.22em;
}

.brand__world {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  color: var(--ember);
  font-style: italic;
}

.top__nav { display: flex; align-items: center; gap: 6px; }

.top__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.top__link:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }

.top__link--cross {
  border: 1px solid var(--rule-strong);
  color: var(--ink);
}
.top__link--cross:hover {
  border-color: color-mix(in srgb, var(--ember) 40%, var(--rule-strong));
  background: color-mix(in srgb, var(--ember) 6%, transparent);
}

@media (max-width: 560px) {
  .top__link:not(.top__link--cross) { display: none; }
}

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(56px, 12vw, 120px) 0 clamp(48px, 9vw, 88px);
  overflow: hidden;
}

/* o calor: uma brasa difusa atrás do título, nunca um degradê de banco */
.hero__glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(52% 44% at 22% 30%, color-mix(in srgb, var(--ember) 15%, transparent), transparent 70%),
    radial-gradient(40% 36% at 78% 12%, color-mix(in srgb, var(--champagne) 18%, transparent), transparent 72%);
  pointer-events: none;
}

.hero__in { position: relative; }

.eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember-deep);
}
.eyebrow--center { text-align: center; }

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 9vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero__title em {
  font-style: italic;
  color: var(--ember);
}

.hero__lead {
  margin: 24px 0 0;
  max-width: 54ch;
  font-size: clamp(16px, 2.2vw, 18.5px);
  color: var(--ink-soft);
}

.chip {
  display: inline-block;
  margin: 28px 0 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ember) 26%, transparent);
  background: color-mix(in srgb, var(--ember) 7%, transparent);
  color: var(--ember-deep);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── seções ─────────────────────────────────────────────────────────────── */

.section__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 4.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section__title--center { text-align: center; }

.section__lead {
  margin: 0 0 36px;
  max-width: 60ch;
  color: var(--muted);
}

.manifesto {
  padding: clamp(48px, 8vw, 84px) 0;
  border-top: 1px solid var(--rule);
  background: var(--surface);
}

.manifesto__cols {
  display: grid;
  gap: 22px;
  max-width: 82ch;
}
.manifesto__cols p { margin: 0; font-size: 17px; color: var(--ink-soft); }
.manifesto__cols strong { color: var(--ink); font-weight: 600; }

@media (min-width: 820px) {
  .manifesto__cols { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ── territórios ────────────────────────────────────────────────────────── */

.territorios {
  padding: clamp(48px, 8vw, 84px) 0;
  border-top: 1px solid var(--rule);
}

.cards {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  padding: 26px 22px 22px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface-raised);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card__n {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--champagne-deep);
}

.card__t {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.2;
}

.card__d {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  flex: 1;
}

.card__s {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-deep);
}

.nota {
  margin: 32px 0 0;
  max-width: 62ch;
  font-size: 14.5px;
  color: var(--muted-quiet);
  border-left: 2px solid var(--rule-strong);
  padding-left: 16px;
}

/* ── ecossistema ────────────────────────────────────────────────────────── */

.eco {
  padding: clamp(52px, 9vw, 96px) 0;
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
}

.door {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 30px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--rule-strong);
  border-radius: 18px;
  background: var(--surface-raised);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.door:hover {
  border-color: color-mix(in srgb, var(--champagne) 55%, var(--rule-strong));
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -22px rgba(28, 25, 22, .5);
}

.door__side { display: flex; flex-direction: column; gap: 10px; max-width: 58ch; }

.door__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne-deep);
}

.door__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.18;
}

.door__text { font-size: 15px; color: var(--muted); }

.door__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.door:hover .door__cta { color: var(--champagne-deep); }

.door__art { color: var(--rule-strong); flex-shrink: 0; }
.door:hover .door__art { color: var(--champagne); }

@media (max-width: 760px) {
  .door { flex-direction: column-reverse; align-items: flex-start; gap: 18px; }
  .door__art svg { width: 76px; height: 76px; }
}

/* ── rodapé ─────────────────────────────────────────────────────────────── */

.foot {
  padding: 40px 0 48px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.foot__brand { display: flex; align-items: baseline; gap: 10px; }

.foot__tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}

.foot__nav { display: flex; gap: 18px; }
.foot__nav a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.foot__nav a:hover { border-bottom-color: var(--champagne); }

.foot__legal {
  margin: 0;
  width: 100%;
  font-size: 12.5px;
  color: var(--muted-quiet);
}

@media (min-width: 720px) {
  .foot__legal { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .door:hover { transform: none; }
}

/* ── autenticação ───────────────────────────────────────────────────────── */

.auth-body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px var(--gutter);
  background:
    radial-gradient(48% 40% at 20% 18%, color-mix(in srgb, var(--ember) 13%, transparent), transparent 70%),
    radial-gradient(40% 34% at 82% 8%, color-mix(in srgb, var(--champagne) 16%, transparent), transparent 72%),
    var(--paper);
}

.auth { width: 100%; max-width: 440px; }

.auth__card {
  padding: clamp(28px, 6vw, 40px);
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--surface-raised);
  box-shadow: 0 24px 60px -40px rgba(28, 25, 22, .55);
}

.brand--center { justify-content: center; margin-bottom: 26px; }

.auth__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
}

.auth__lead { margin: 0 0 22px; font-size: 15px; color: var(--muted); }
.auth__lead strong { color: var(--ink); font-weight: 600; }

.field { display: block; margin-bottom: 16px; }

.field__label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px; /* 16px evita o zoom automático do iOS */
}
.field__input:focus { border-color: var(--ember); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ember) 14%, transparent); }

.field__input--code {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.34em;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--ember-deep); }
.btn:disabled { opacity: .55; cursor: default; }

.btn--quiet {
  width: auto;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  text-decoration: none;
}
.btn--quiet:hover { background: color-mix(in srgb, var(--ember) 7%, transparent); color: var(--ember-deep); }

.linkbtn {
  display: block;
  margin: 14px auto 0;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linkbtn:hover { color: var(--ink); }

.auth__msg { margin: 16px 0 0; min-height: 20px; font-size: 14px; color: var(--muted); }
.auth__msg[data-tone="erro"] { color: var(--ember-deep); }
.auth__msg[data-tone="ok"] { color: var(--ink-soft); }

.auth__foot { margin: 22px 0 0; text-align: center; font-size: 13.5px; }
.auth__foot a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.auth__foot a:hover { color: var(--ink); border-bottom-color: var(--champagne); }

/* ── área autenticada ───────────────────────────────────────────────────── */

.app { padding: clamp(36px, 7vw, 64px) var(--gutter) clamp(48px, 8vw, 80px); }

.app__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.12;
}

.app__who { margin: 0 0 32px; font-size: 14.5px; color: var(--muted); }

.app__note { color: var(--muted); font-size: 15px; }

.app__empty {
  padding: clamp(26px, 5vw, 38px);
  border: 1px dashed var(--rule-strong);
  border-radius: 16px;
  background: var(--surface);
}

.app__emptyTitle {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(19px, 3vw, 24px);
  line-height: 1.2;
}

.app__emptyText { margin: 0 0 20px; max-width: 58ch; font-size: 15px; color: var(--muted); }

.top__link--quiet {
  border: 0;
  background: none;
  font-family: var(--font-sans);
  cursor: pointer;
}
