/* ==========================================================
   Rancho Feito — landing de pré-lançamento
   Tokens espelhados de apps/web/src/styles/tokens.css (repo ranchou).
   Mobile-first; escala compacta para notebook.
   ========================================================== */

/* ---------- Fontes (auto-hospedadas, OFL; subconjunto latin) ---------- */

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(../assets/fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/fredoka-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/plus-jakarta-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* marca (fixas, como no Logo) */
  --marca-verde: #5c6e50;
  --marca-laranja: #d97d4a;
  --marca-tigela: #f2ead9;
  --marca-fundo: #0e2a1e;

  /* interface */
  --brand: #2e7a4b;
  --brand-forte: #215a38;
  --brand-suave: #edf4ee;
  --acento: #c05f2c;
  --acento-suave: #fbf0e8;
  --ink: #17211c;
  --ink-2: #57625b;
  --ink-3: #8b938d;
  --surface: #ffffff;
  --surface-muted: #faf8f5;
  --border: #e9e4dc;
  --border-strong: #d8d1c5;
  --focus: #1f5fbf;

  --shadow-1: 0 1px 2px rgb(23 33 28 / 4%), 0 2px 8px rgb(23 33 28 / 4%);
  --shadow-2: 0 2px 6px rgb(23 33 28 / 5%), 0 12px 28px rgb(23 33 28 / 7%);
  --shadow-3: 0 4px 12px rgb(23 33 28 / 6%), 0 28px 64px rgb(23 33 28 / 11%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --fonte-titulo: "Fraunces", Georgia, serif;
  --fonte-corpo: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --fonte-marca: "Fredoka", ui-rounded, system-ui, sans-serif;
  --fonte-nota: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --gutter: 20px;
  --max: 1120px;
  --header-h: 60px;
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--surface-muted);
  color: var(--ink);
  font-family: var(--fonte-corpo);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul[role="list"], ol { list-style: none; padding: 0; }
button, a { touch-action: manipulation; }

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

::selection { background: var(--brand-suave); color: var(--brand-forte); }

.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;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff;
  padding: 8px 14px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip:focus { top: 10px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografia ---------- */

.h2 {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h2 .line { display: block; }

.lead {
  font-size: clamp(1rem, .96rem + .2vw, 1.0938rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 36em;
  text-wrap: pretty;
}

/* ---------- Marca ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.logo-simbolo { width: 28px; height: 28px; flex: none; }
.logo-nome {
  display: flex;
  flex-direction: column;
  font-family: var(--fonte-marca);
  font-weight: 700;
  font-size: .95rem;
  line-height: .94;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-nome b, .waitlist-marca-nome b { color: var(--marca-laranja); font-weight: 700; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 44px;
  padding: .65em 1.2em;
  border: 0;
  border-radius: var(--radius-md);
  font: 600 .95rem/1.15 var(--fonte-corpo);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--brand-forte); box-shadow: var(--shadow-2); }

.btn-light { background: var(--marca-tigela); color: var(--marca-fundo); }
.btn-light:hover { background: #fff; }
.btn[disabled] { opacity: .75; cursor: progress; }

.btn-soon {
  color: var(--ink-2);
  border: 1.5px dashed var(--border-strong);
  background: transparent;
  cursor: default;
}

.btn-sm { min-height: 38px; padding: .5em .95em; font-size: .875rem; border-radius: 10px; }
.btn-lg { min-height: 50px; padding: .8em 1.4em; font-size: 1rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.nav { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  padding: 28px 0 44px;
}
.hero::before {                       /* véu da marca, como no app */
  content: "";
  position: absolute;
  inset: -160px 0 auto;
  height: 46rem;
  background: radial-gradient(60% 55% at 62% 28%, rgb(46 122 75 / 7%), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 36px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: var(--acento-suave);
  color: var(--acento);
  font-size: .8125rem;
  font-weight: 600;
}
.status-dot {
  position: relative;
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status-dot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(.4); opacity: .8; }
  80%, 100% { transform: scale(1.3); opacity: 0; }
}

.hero-title {
  margin-top: 16px;
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: clamp(2.1rem, 1.45rem + 2.7vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 16px;
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}
.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-actions .btn { width: 100%; }

/* composição */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  aspect-ratio: 1 / 1.02;
}
.arch {
  position: absolute;
  top: 0; right: 0;
  width: 74%;
  height: 90%;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background: var(--border);
  box-shadow: var(--shadow-2);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* nota com serrilha de cupom, como a Caixa do app */
.nota {
  --serrilha: 7px;
  position: absolute;
  left: 0; top: 10%;
  width: 70%;
  padding: 14px 14px 16px;
  background: var(--surface-muted);
  font-family: var(--fonte-nota);
  font-size: clamp(.66rem, .6rem + .3vw, .82rem);
  color: var(--ink);
  filter: drop-shadow(0 10px 18px rgb(23 33 28 / 14%));
  rotate: -2.5deg;
  mask:
    radial-gradient(var(--serrilha) at 50% 0, transparent 99%, #000) 0 0 / 20px var(--serrilha) repeat-x,
    radial-gradient(var(--serrilha) at 50% 100%, transparent 99%, #000) 0 100% / 20px var(--serrilha) repeat-x,
    linear-gradient(#000, #000) 0 var(--serrilha) / 100% calc(100% - var(--serrilha) * 2) no-repeat;
}
.nota-topo {
  padding: 4px 0 8px;
  border-bottom: 1px dashed var(--border-strong);
  color: var(--ink-3);
}
.nota-lista { list-style: none; padding: 6px 0 0; margin: 0; }
.nota-lista li { display: flex; gap: 8px; padding: 3px 0; font-weight: 600; white-space: nowrap; }
.nota-lista span { flex: none; width: 2.4em; color: var(--acento); }
.nota-rodape {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-strong);
  color: var(--ink-2);
}

/* o carimbo: o único gesto automático depois da abertura */
.carimbo {
  position: absolute;
  right: 8px;
  bottom: 12px;
  padding: 2px 9px 3px;
  border: 2px solid var(--acento);
  border-radius: 8px;
  color: var(--acento);
  font-family: var(--fonte-marca);
  font-weight: 700;
  font-size: clamp(.95rem, .8rem + .6vw, 1.15rem);
  letter-spacing: .01em;
  rotate: -12deg;
  opacity: .88;
  mix-blend-mode: multiply;
  animation: carimbar .45s cubic-bezier(.3, 1.4, .5, 1) .9s both;
}
html[data-abertura] .carimbo { animation-delay: 2.3s; }
@keyframes carimbar {
  from { opacity: 0; transform: scale(1.8); }
  to { opacity: .88; transform: scale(1); }
}

.caixa-chip {
  position: absolute;
  right: 5%;
  bottom: 2%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 9px;
  background: var(--marca-fundo);
  color: var(--marca-tigela);
  border-radius: 14px;
  box-shadow: var(--shadow-3);
}
.caixa-icon {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--marca-laranja);
  color: var(--marca-fundo);
}
.caixa-icon svg { width: 19px; height: 19px; }
.caixa-text { display: grid; line-height: 1.25; }
.caixa-text strong { font-size: .84rem; font-weight: 700; }
.caixa-text small { font-size: .72rem; opacity: .72; }

/* ---------- Seções ---------- */

.section { padding: 56px 0; border-top: 1px solid var(--border); }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; }

/* ---------- Problema ---------- */

.problem { background: var(--surface-muted); }
.problem-grid { display: grid; gap: 28px; }

.thoughts { display: flex; flex-wrap: wrap; gap: 10px; }
.thought {
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px 18px 18px 4px;
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem);
  line-height: 1.3;
  box-shadow: var(--shadow-1);
}
.thought:nth-child(even) { rotate: .8deg; }
.thought:nth-child(odd) { rotate: -.6deg; }
.thought-last { color: var(--acento); border-color: #f0d7c7; background: var(--acento-suave); }

.turn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--marca-fundo);
  color: var(--marca-tigela);
  border-radius: var(--radius-lg);
}
.turn-simbolo { width: 40px; height: 40px; flex: none; }
.turn p {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: clamp(1.1rem, .95rem + .7vw, 1.45rem);
  line-height: 1.25;
  text-wrap: balance;
}

/* ---------- Como vai funcionar ---------- */

.how { background: var(--surface); }
.steps { display: grid; gap: 22px; }
.step { display: flex; gap: 14px; }
.step-num {
  display: grid; place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-suave);
  color: var(--brand-forte);
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: 1.1rem;
}
.step h3 {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
}
.step p { margin-top: 4px; color: var(--ink-2); max-width: 32ch; line-height: 1.55; }

/* ---------- Visão (cadeia) ---------- */

.vision { background: var(--marca-fundo); color: var(--marca-tigela); border-top: 0; }
.vision .lead { margin-top: 14px; color: rgb(242 234 217 / 78%); }
.vision .aside { margin-top: 14px; font-size: .875rem; color: rgb(242 234 217 / 58%); max-width: 30em; }
.vision-grid { display: grid; gap: 36px; }

.chain { position: relative; display: grid; gap: 20px; }
.chain::before,
.chain::after {
  content: "";
  position: absolute;
  left: 9px; top: 12px; bottom: 26px;
  width: 2px;
  background: rgb(242 234 217 / 16%);
}
.chain::after {
  background: var(--marca-laranja);
  transform-origin: top;
  transform: scaleY(var(--chain-progress, 1));
  transition: transform 1.5s var(--ease);
}
.link { position: relative; display: grid; gap: 4px; padding-left: 36px; }
.link::before {
  content: "";
  position: absolute;
  left: 3px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--marca-fundo);
  border: 2px solid var(--marca-laranja);
  z-index: 1;
}
.link-label {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.2;
}
.link-body { font-size: .9rem; color: rgb(242 234 217 / 72%); }
.link-body.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.link-body.tags i {
  font-style: normal;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgb(242 234 217 / 22%);
  font-size: .82rem;
}
.link-body.products {
  display: grid;
  margin-top: 2px;
  border-radius: var(--radius-md);
  background: rgb(242 234 217 / 6%);
  border: 1px solid rgb(242 234 217 / 12%);
  overflow: hidden;
  font-family: var(--fonte-nota);
  font-size: .8rem;
}
.link-body.products span { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; }
.link-body.products span + span { border-top: 1px dashed rgb(242 234 217 / 14%); }
.link-body.products b { font-weight: 600; color: var(--marca-laranja); }
.link-final::before { width: 20px; height: 20px; left: 0; top: 1px; background: var(--marca-laranja); }
.link-final .link-label { color: var(--marca-laranja); font-size: 1.3rem; }

.js .chain { --chain-progress: 0; }
.js .chain.is-in { --chain-progress: 1; }
.js .chain .link { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .chain.is-in .link { opacity: 1; transform: none; }
.js .chain.is-in .link:nth-child(2) { transition-delay: .22s; }
.js .chain.is-in .link:nth-child(3) { transition-delay: .44s; }
.js .chain.is-in .link:nth-child(4) { transition-delay: .66s; }
.js .chain.is-in .link:nth-child(5) { transition-delay: .95s; }

/* ---------- Do seu jeito ---------- */

.yours { background: var(--surface); border-top: 0; }
.yours-grid { display: grid; gap: 28px; }
.yours-copy .lead { margin-top: 14px; }

.prefs-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.prefs-card {
  position: relative;
  margin: -48px 10px 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
}
.prefs-hint { font-size: .8125rem; color: var(--ink-3); }
.chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font: 600 .875rem/1 var(--fonte-corpo);
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.chip::before { content: "+"; color: var(--brand); font-size: 1.05em; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip[aria-pressed="true"]::before { content: "✓"; color: #fff; }
.prefs-summary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-strong);
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-size: 1rem;
  color: var(--brand-forte);
  min-height: 2.4em;
}

/* ---------- Futuro ---------- */

.future { background: var(--surface-muted); }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  min-height: 150px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tile h3 { font-family: var(--fonte-titulo); font-weight: 600; font-size: 1.02rem; line-height: 1.2; }
.tile p { font-size: .84rem; line-height: 1.45; color: var(--ink-2); }
.tile-icon { width: 28px; height: 28px; margin-bottom: auto; color: var(--brand); }
.tile-soft { background: var(--brand-suave); border-color: transparent; }
.tile-soft .tile-icon { color: var(--brand-forte); }
.tile-accent { background: var(--acento); border-color: transparent; color: #fff; }
.tile-accent p { color: rgb(255 255 255 / 88%); }
.tile-accent .tile-icon { color: #fff; }

.tile-photo { grid-column: span 2; min-height: 200px; color: #fff; border: 0; }
.tile-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.tile-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(14 42 30 / 0) 40%, rgb(14 42 30 / 85%) 100%);
}
.tile-text { position: relative; z-index: 1; display: grid; gap: 3px; }
.tile-photo h3 { font-size: 1.2rem; }
.tile-photo p { color: rgb(242 234 217 / 90%); }

@media (hover: hover) {
  .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
  .tile-photo:hover img { transform: scale(1.04); }
}

/* ---------- Lista de espera ---------- */

.waitlist { padding: 0 0 56px; background: var(--surface-muted); }
.waitlist-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  background: var(--brand-forte);
  color: #fff;
  border-radius: var(--radius-xl);
}
.waitlist-content { position: relative; z-index: 1; padding: 30px 20px 32px; }
.waitlist .h2 { margin-top: 14px; font-size: clamp(1.75rem, 1.25rem + 2vw, 2.6rem); max-width: 16ch; }
.waitlist .lead { margin-top: 12px; color: rgb(255 255 255 / 82%); }

.soon-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  background: rgb(242 234 217 / 14%);
  color: var(--marca-tigela);
  font-size: .8125rem;
  font-weight: 600;
}

.waitlist-form { margin-top: 22px; max-width: 520px; }
.field { display: grid; gap: 8px; }
.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgb(255 255 255 / 24%);
  background: rgb(255 255 255 / 8%);
  color: #fff;
  font: 500 1rem var(--fonte-corpo);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.field input::placeholder { color: rgb(255 255 255 / 60%); }
.field input:focus { outline: none; border-color: var(--marca-tigela); background: rgb(255 255 255 / 12%); }
.field input[aria-invalid="true"] { border-color: #f6b79a; }
.field .btn { width: 100%; min-height: 50px; }

.form-error { margin-top: 8px; color: #fcd1bd; font-size: .875rem; font-weight: 500; }
.form-note { margin-top: 10px; font-size: .8125rem; color: rgb(255 255 255 / 68%); }
.form-note a { color: #fff; text-underline-offset: 3px; }
.form-note a:hover { color: var(--marca-tigela); }

/* campo-isca contra robôs: fora da tela, fora da ordem de foco */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.waitlist-success {
  margin-top: 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 520px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 18%);
  outline: none;
  animation: pop .45s var(--ease);
}
.success-check {
  display: grid; place-items: center;
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--marca-tigela);
  color: var(--brand-forte);
}
.success-check svg { width: 20px; height: 20px; }
.success-check path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s .2s var(--ease) forwards; }
.success-title { font-family: var(--fonte-titulo); font-weight: 600; font-size: 1.15rem; }
.success-text { margin-top: 2px; font-size: .92rem; color: rgb(255 255 255 / 82%); overflow-wrap: anywhere; }
.success-text strong { color: #fff; }

@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.waitlist-marca { display: none; }

/* ---------- Footer ---------- */

.site-footer { background: var(--surface); border-top: 1px solid var(--border); }
.footer-inner { display: grid; gap: 18px; padding-block: 26px 30px; font-size: .875rem; }
.footer-tagline { margin-top: 8px; color: var(--ink-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { text-decoration: none; font-weight: 600; padding: 6px 0; color: var(--ink); }
.footer-nav a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { color: var(--ink-3); }

/* ---------- Páginas de texto (privacidade, 404) ---------- */

.doc { background: var(--surface); padding: 40px 0 64px; }
.doc-inner { max-width: calc(720px + var(--gutter) * 2); }
.doc-meta { font-size: .8125rem; color: var(--ink-3); }
.doc-title {
  margin-top: 8px;
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.doc .lead { margin-top: 14px; }
.doc h2 {
  margin-top: 32px;
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.25;
}
.doc h2 + p, .doc h2 + ul { margin-top: 8px; }
.doc p + p, .doc ul + p { margin-top: 10px; }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; }
.doc p, .doc li { color: var(--ink-2); max-width: 66ch; }
.doc strong { color: var(--ink); }
.doc a:not(.btn) { color: var(--brand); text-underline-offset: 3px; }
.doc-back { margin-top: 36px; }
.doc-404 { padding: 72px 0 96px; }
.doc-404-simbolo { width: 72px; height: 72px; margin-bottom: 20px; }

/* ---------- Revelação ao rolar ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
html[data-abertura] .hero [data-reveal] { transition-delay: calc(var(--d, 0s) + 1.7s); }

/* ==========================================================
   Abertura da marca (portada de apps/web/src/app/styles.css)
   ========================================================== */

.abertura {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--marca-fundo);
  cursor: pointer;
  user-select: none;
}
html[data-abertura="ativa"] .abertura,
html[data-abertura="saindo"] .abertura { display: grid; }
html[data-abertura="ativa"] .abertura { animation: abertura-sai 300ms var(--ease) 1700ms forwards; }
html[data-abertura="saindo"] .abertura { animation: abertura-pula 180ms ease-out forwards; pointer-events: none; }

.abertura-lockup { display: inline-flex; align-items: center; gap: .55em; font-size: clamp(2rem, 8vw, 2.7rem); }
.abertura-simbolo { width: 1.9em; height: 1.9em; flex-shrink: 0; overflow: visible; }
.abertura-traco {
  fill-opacity: 0;
  stroke-opacity: 0;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transform-box: view-box;
}
.abertura-tigela {
  animation:
    abertura-tracar-tigela 460ms cubic-bezier(.45, .05, .55, .95) 100ms forwards,
    abertura-preencher 300ms ease-out 760ms forwards;
}
.abertura-folha-verde {
  transform-origin: 30px 27px;
  animation:
    abertura-tracar-folha 380ms cubic-bezier(.4, .1, .5, 1) 420ms forwards,
    abertura-preencher 280ms ease-out 820ms forwards,
    abertura-assentar-verde 460ms var(--ease) 1300ms both;
}
.abertura-folha-laranja {
  transform-origin: 29px 25px;
  animation:
    abertura-tracar-folha 340ms cubic-bezier(.4, .1, .5, 1) 560ms forwards,
    abertura-preencher 280ms ease-out 880ms forwards,
    abertura-assentar-laranja 460ms var(--ease) 1340ms both;
}
.abertura-nome {
  display: flex;
  flex-direction: column;
  font-family: var(--fonte-marca);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -0.025em;
  color: var(--marca-tigela);
}
.abertura-linha {
  display: block;
  mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  mask-size: 260% 100%;
  mask-repeat: no-repeat;
  mask-position: 100% 0;
}
.abertura-linha-1 { animation: abertura-escrever 320ms cubic-bezier(.35, .1, .45, 1) 880ms forwards; }
.abertura-linha-2 { animation: abertura-escrever 300ms cubic-bezier(.35, .1, .45, 1) 1000ms forwards; }
.abertura-ponto {
  display: inline-block;
  color: var(--marca-laranja);
  opacity: 0;
  transform-origin: 50% 85%;
  animation: abertura-pingar 200ms ease-out 1260ms forwards;
}
.abertura-tagline {
  font-size: .95rem;
  font-weight: 500;
  color: var(--marca-tigela);
  opacity: 0;
  animation: abertura-surgir 320ms ease-out 1320ms forwards;
}

@keyframes abertura-tracar-tigela {
  0% { stroke-dashoffset: 1; stroke-opacity: 1; }
  58% { stroke-dashoffset: .42; }
  100% { stroke-dashoffset: 0; stroke-opacity: 1; }
}
@keyframes abertura-tracar-folha {
  0% { stroke-dashoffset: 1; stroke-opacity: 1; }
  50% { stroke-dashoffset: .5; }
  100% { stroke-dashoffset: 0; stroke-opacity: 1; }
}
@keyframes abertura-preencher { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes abertura-assentar-verde { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(3deg); } }
@keyframes abertura-assentar-laranja { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(-4deg); } }
@keyframes abertura-escrever { to { mask-position: 0 0; } }
@keyframes abertura-pingar {
  0% { opacity: 0; transform: scale(0); }
  60% { opacity: 1; transform: scale(1.35); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes abertura-surgir { from { opacity: 0; transform: translateY(4px); } to { opacity: .75; transform: none; } }
@keyframes abertura-sai { to { opacity: 0; visibility: hidden; } }
@keyframes abertura-pula { to { opacity: 0; visibility: hidden; } }

/* ==========================================================
   Breakpoints
   ========================================================== */

@media (min-width: 560px) {
  :root { --gutter: 28px; }

  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }

  .field {
    grid-template-columns: 1fr auto;
    gap: 6px;
    padding: 5px;
    border-radius: 14px;
    background: rgb(255 255 255 / 8%);
    border: 1.5px solid rgb(255 255 255 / 24%);
    transition: border-color .18s var(--ease);
  }
  .field:focus-within { border-color: var(--marca-tigela); }
  .field input, .field input:focus { border: 0; background: transparent; min-height: 44px; }
  .field .btn { width: auto; min-height: 44px; border-radius: 10px; }
  .field:has(input[aria-invalid="true"]) { border-color: #f6b79a; }

  .bento { grid-template-columns: repeat(3, 1fr); }
  .tile-photo { grid-column: span 3; }

  .waitlist-content { padding: 40px 36px; }
  .prefs-card { margin: -64px 24px 0; padding: 18px; }
}

@media (min-width: 860px) {
  :root { --header-h: 64px; }

  .nav { display: flex; gap: 26px; margin-left: auto; margin-right: 8px; }
  .nav a { text-decoration: none; font-weight: 500; font-size: .9rem; color: var(--ink-2); transition: color .18s var(--ease); }
  .nav a:hover { color: var(--ink); }

  .hero { padding: 36px 0 52px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 48px;
    min-height: min(560px, calc(100svh - var(--header-h) - 88px));
  }
  .hero-visual {
    max-width: none;
    aspect-ratio: auto;
    height: clamp(380px, calc(100svh - var(--header-h) - 110px), 520px);
  }
  .nota { width: 56%; padding: 16px 16px 18px; }
  .nota-lista li { gap: 10px; }

  .section { padding: 76px 0; }
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 40px; }

  .problem-grid { grid-template-columns: 1fr 1.1fr; column-gap: 56px; row-gap: 24px; align-items: start; }
  .problem-grid .h2 { grid-row: 1; }
  .problem-grid .turn { grid-column: 1; grid-row: 2; align-self: end; }
  .thoughts { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: flex-start; gap: 12px; }
  .thought:nth-child(even) { align-self: flex-end; border-radius: 18px 18px 4px 18px; }
  .thought:nth-child(3) { margin-left: 8%; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step { flex-direction: column; gap: 12px; }

  .vision-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .vision-copy { position: sticky; top: calc(var(--header-h) + 40px); }

  .yours-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .prefs-card { margin: -100px 0 0 -36px; max-width: 400px; }

  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 12px; }
  .tile { padding: 18px; }
  .tile-photo { grid-column: span 2; min-height: 0; }
  .tile-a { grid-row: span 2; }
  .tile-a h3 { font-size: 1.5rem; }
  .tile-c { grid-column: span 2; }

  .waitlist { padding-bottom: 76px; }
  .waitlist-panel { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .waitlist-content { padding: 52px 48px; }
  .waitlist-marca {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 40px;
  }
  .waitlist-marca svg { width: 128px; height: 128px; }
  .waitlist-marca-nome {
    display: flex;
    flex-direction: column;
    font-family: var(--fonte-marca);
    font-weight: 700;
    font-size: 2.4rem;
    line-height: .94;
    letter-spacing: -0.025em;
    color: var(--marca-tigela);
  }

  .footer-inner { grid-template-columns: 1fr auto auto; align-items: end; gap: 36px; }
}

@media (min-width: 1200px) {
  .hero-grid { gap: 72px; }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .carimbo { animation: none !important; }
  .abertura { display: none !important; }
  .js [data-reveal], .js .chain .link { opacity: 1; transform: none; }
}
