/* Ruby: landing page. Mobile-first. Tokens iguais aos do app (palettes.ts / tokens.ts). */
@font-face { font-family: "Nunito"; font-weight: 300; font-style: normal; font-display: swap; src: url("assets/fonts/nunito-300.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/nunito-400.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/nunito-600.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/nunito-700.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  /* neutros */
  --bg: #faf8f6; --surface: #ffffff; --surface-alt: #f2eeeb; --border: #ece6e2;
  --text: #2d2629; --muted: #6f6468; --on-primary: #ffffff;
  /* primária (Rubi), secundária (azul-petróleo) e terciária (areia) */
  --primary: #be3e54; --primary-soft: #f7e8ea; --primary-ink: #be3e54;
  --secondary: #7db7c6; --secondary-soft: #e5f1f4; --secondary-ink: #2c7c91;
  --tertiary: #e3c29f; --tertiary-soft: #faf0e4; --tertiary-ink: #98692f;
  --success: #3e8e63;
  --shadow: 0 2px 14px rgba(60, 40, 45, 0.07);
  /* espaços e cantos (4/8/16/24/32 e 10/16/22/28) */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 56px; --s7: 88px;
  --r1: 10px; --r2: 16px; --r3: 22px; --r4: 28px; --pill: 999px;
  --maxw: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141214; --surface: #1d1a1c; --surface-alt: #262224; --border: #2e292c;
    --text: #eee9e7; --muted: #a0959a; --on-primary: #1b1417;
    --primary: #d37c8b; --primary-soft: #2e1f23; --primary-ink: #e39aa6;
    --secondary: #6fa9b8; --secondary-soft: #1d2a2e; --secondary-ink: #8ec3d1;
    --tertiary: #c99f78; --tertiary-soft: #2d2619; --tertiary-ink: #e0b48f;
    --success: #79cfa0;
    --shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400; font-size: 1.0625rem; line-height: 1.65; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--secondary-ink); outline-offset: 3px; border-radius: var(--r1); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text); padding: 12px 16px; border-radius: var(--r2); z-index: 20; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s3); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-weight: 300; font-size: clamp(2.5rem, 11vw, 4.5rem); }
h2 { font-weight: 600; font-size: clamp(1.65rem, 6vw, 2.35rem); }
h3 { font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
p { margin: 0; }
.accent { color: var(--primary-ink); }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-weight: 600; font-size: 0.95rem; color: var(--primary-ink); margin-bottom: var(--s2); }
section { padding: var(--s6) 0; }
.lead { font-size: clamp(1.1rem, 3.6vw, 1.3rem); color: var(--muted); max-width: 34rem; }
.section-head { max-width: 40rem; margin-bottom: var(--s5); }
.section-head p { color: var(--muted); margin-top: var(--s3); }

/* cabeçalho */
.site-header { padding: var(--s3) 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 48px; padding: 2px 0; }
.brand img.lockup { height: 44px; width: auto; } /* logotipo horizontal oficial; mínimo de 96 px de largura (manual da marca) */

/* botões e formulário */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 var(--s4); border: 0; border-radius: var(--pill);
  background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 600; font-size: 1.05rem; text-decoration: none; cursor: pointer; transition: transform .12s ease, filter .12s ease; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn.soft { background: var(--primary-soft); color: var(--primary-ink); }
.btn.small { min-height: 48px; padding: 0 var(--s3); font-size: 1rem; }

.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: var(--pill); background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; font-size: 0.95rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); position: relative; }
.dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

.waitlist { margin-top: var(--s4); display: grid; gap: var(--s3); max-width: 30rem; }
.waitlist label.field { display: block; font-weight: 600; margin-bottom: var(--s2); }
.waitlist input[type="email"] { width: 100%; min-height: 54px; padding: 0 var(--s3); border: 1.5px solid var(--border); border-radius: var(--pill); background: var(--surface); color: var(--text); font: inherit; font-size: 1.05rem; }
.waitlist input[type="email"]::placeholder { color: var(--muted); opacity: .8; }
.waitlist input[type="email"]:focus-visible { border-color: var(--primary); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.consent input { width: 24px; height: 24px; margin: 0; accent-color: var(--primary); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--primary-ink); }
.fine { font-size: 0.9rem; color: var(--muted); }

/* hero */
.hero { padding: var(--s4) 0 var(--s6); position: relative; overflow: hidden; }
.hero .grid { display: grid; gap: var(--s5); align-items: center; }
.hero h1 { margin: var(--s3) 0; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.ring { position: absolute; width: min(120%, 520px); aspect-ratio: 1; z-index: 0; opacity: .95; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.phone { position: relative; z-index: 1; width: min(62vw, 270px); border-radius: 32px; border: 6px solid var(--text); background: var(--surface); box-shadow: 0 18px 50px rgba(60, 30, 40, .22); overflow: hidden; }
.phone img { width: 100%; height: auto; }
.phone-tag { position: absolute; z-index: 2; bottom: 4%; right: 4%; background: var(--surface); color: var(--muted); font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: var(--pill); box-shadow: var(--shadow); }

/* cartões */
.cards { display: grid; gap: var(--s3); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r3); padding: var(--s4); box-shadow: var(--shadow); }
.card h3 { margin-bottom: var(--s2); }
.card p { color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; margin-bottom: var(--s3); background: var(--primary-soft); color: var(--primary-ink); }
.icon.t2 { background: var(--secondary-soft); color: var(--secondary-ink); }
.icon.t3 { background: var(--tertiary-soft); color: var(--tertiary-ink); }
.icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* privacidade */
.band { background: var(--surface-alt); }
.promises { display: grid; gap: var(--s3); margin-top: var(--s4); }
.promise { display: grid; grid-template-columns: 48px 1fr; gap: var(--s3); align-items: start; background: var(--surface); border-radius: var(--r3); padding: var(--s3) var(--s4) var(--s3) var(--s3); border: 1px solid var(--border); }
.promise .icon { margin: 0; }
.promise h3 { font-size: 1.1rem; }
.promise p { color: var(--muted); font-size: 1rem; margin-top: 2px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.chip { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s3); border-radius: var(--pill); background: var(--surface); border: 1px solid var(--border); font-weight: 600; }
.chip.first { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }

/* parceiro */
.split { display: grid; gap: var(--s5); align-items: center; }
.partner-card { background: var(--secondary-soft); border-radius: var(--r4); padding: var(--s4); }
.partner-card h3 { color: var(--secondary-ink); margin-bottom: var(--s3); }
.partner-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.partner-card li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.partner-card li svg { width: 24px; height: 24px; stroke: var(--secondary-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.tag-free { display: inline-block; margin-top: var(--s3); padding: 6px 14px; background: var(--surface); color: var(--secondary-ink); font-weight: 700; border-radius: var(--pill); font-size: .9rem; }

/* linha do tempo */
.timeline { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 var(--s4) 44px; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline .mark { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-alt); border: 2px solid var(--border); }
.timeline .done .mark { background: var(--success); border-color: var(--success); color: #fff; }
.timeline .now .mark { background: var(--primary); border-color: var(--primary); }
.timeline .now .mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-primary); }
.timeline .mark svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.timeline h3 { font-size: 1.1rem; }
.timeline p { color: var(--muted); font-size: 1rem; }
.timeline .when { font-size: .85rem; font-weight: 700; color: var(--primary-ink); }

/* galeria de telas */
.shots { display: flex; gap: var(--s3); overflow-x: auto; padding: var(--s2) var(--s3) var(--s4); margin: 0 calc(var(--s3) * -1); scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shots figure { margin: 0; flex: 0 0 72%; scroll-snap-align: center; max-width: 280px; }
.shots img { width: 100%; height: auto; border-radius: 26px; border: 5px solid var(--text); background: var(--surface); box-shadow: var(--shadow); }
.shots figcaption { text-align: center; margin-top: var(--s2); font-size: .9rem; color: var(--muted); }

/* faq */
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r3); margin-bottom: var(--s2); }
summary { cursor: pointer; list-style: none; padding: var(--s3) var(--s4); font-weight: 600; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--primary-ink); flex: none; }
details[open] summary::after { content: "–"; }
details > p { padding: 0 var(--s4) var(--s4); color: var(--muted); }

.cta-final { text-align: center; }
.cta-final .waitlist { margin-left: auto; margin-right: auto; text-align: left; }
.cta-final .section-head { margin-left: auto; margin-right: auto; }
.founders { max-width: 40rem; }

/* rodapé */
.site-footer { border-top: 1px solid var(--border); padding: var(--s5) 0 var(--s6); color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: grid; gap: var(--s3); }
.site-footer nav { display: flex; gap: var(--s4); flex-wrap: wrap; }
.site-footer nav a { min-height: 48px; display: inline-flex; align-items: center; }
.disclaimer { max-width: 40rem; }

/* páginas simples (privacidade, obrigado, 404) */
.page { padding: var(--s5) 0 var(--s6); }
.page h1 { font-size: clamp(2rem, 8vw, 3rem); font-weight: 600; margin-bottom: var(--s3); }
.page h2 { font-size: 1.35rem; margin: var(--s5) 0 var(--s2); }
.page p, .page li { color: var(--muted); }
.page ul { padding-left: 1.2rem; }
.page .box { background: var(--tertiary-soft); border-radius: var(--r3); padding: var(--s3) var(--s4); color: var(--text); margin: var(--s4) 0; }
.center { text-align: center; min-height: 60vh; display: grid; place-content: center; gap: var(--s3); justify-items: center; }

/* página 404 */
.nf { padding: var(--s4) 0 var(--s6); min-height: 68vh; display: grid; align-items: center; }
.nf-wrap { text-align: center; display: grid; justify-items: center; gap: var(--s3); }
.nf-art { position: relative; width: min(76vw, 320px); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: var(--s3); }
.nf-art svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 140s linear infinite; }
.nf-code { position: relative; font-weight: 300; font-size: clamp(3.75rem, 20vw, 6.25rem); line-height: 1; letter-spacing: -0.02em; color: var(--primary-ink); }
.nf h1 { font-weight: 600; font-size: clamp(1.9rem, 7vw, 2.75rem); }
.nf-lead { max-width: 28rem; }
.nf-actions { display: grid; gap: var(--s2); width: 100%; max-width: 22rem; margin-top: var(--s3); }
.nf-help { margin-top: var(--s3); }
@media (min-width: 560px) { .nf-actions { display: flex; flex-wrap: wrap; justify-content: center; max-width: none; width: auto; } }
@media (prefers-reduced-motion: reduce) { .nf-art svg { animation: none; } }

/* entrada suave (respeita reduzir movimento) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring, .dot::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* telas maiores */
@media (min-width: 720px) {
  body { font-size: 1.125rem; }
  section { padding: var(--s7) 0; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
  .promises { grid-template-columns: repeat(3, 1fr); }
  .promise { grid-template-columns: 1fr; }
  .promise .icon { margin-bottom: var(--s2); }
  .split { grid-template-columns: 1fr 1fr; }
  .shots { overflow: visible; justify-content: center; margin: 0; padding: 0; }
  .shots figure { flex: 1 1 0; }
  .timeline { grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
  .timeline li { padding: 44px 0 0 0; }
  .timeline li::before { left: 28px; top: 13px; bottom: auto; right: calc(var(--s4) * -1); width: auto; height: 2px; }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
}
@media (min-width: 960px) {
  .hero { padding: var(--s5) 0 var(--s7); }
  .hero .grid { grid-template-columns: 1.1fr .9fr; gap: var(--s6); }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .phone { width: 290px; }
}
