/* Buffin landing: visual da marca (Uva e volt, bolinho clássico). Cores fixas, sem tema escuro. */
:root {
  --purple: #7A4BFF; --purple-light: #B9A2FF; --purple-dark: #5A2EE6;
  --volt: #D9FF3D; --iron: #17131F; --chalk: #F6F4FB; --blush: #FF8FB1; --gold: #FFC83D;
  --white: #FFFFFF; --muted: #5E5770; --line: #E2DDEE;
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --text: "Nunito", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--chalk); color: var(--iron); font-family: var(--text); font-size: 17px; line-height: 1.55; }
svg { display: block; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.04; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-weight: 900; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border: 2px solid var(--iron); border-radius: 999px; background: var(--volt); color: var(--iron);
  font: 900 17px/1 var(--text); text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--iron);
  transition: transform .08s ease, box-shadow .08s ease; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--iron); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--iron); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; box-shadow: 0 3px 0 var(--iron); }
.btn.full { width: 100%; }
.linkbtn { background: none; border: 0; padding: 8px; font: 800 15px var(--text); color: var(--muted); text-decoration: underline; cursor: pointer; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }
.hero :focus-visible, .cta :focus-visible { outline-color: var(--iron); }

/* Aviso de prévia (só aparece enquanto o banco não está ligado) */
.preview-bar { background: var(--gold); color: var(--iron); font-weight: 800; font-size: 14px; text-align: center; padding: 8px 16px; border-bottom: 2px solid var(--iron); }

/* Topo */
.top { position: sticky; top: 0; z-index: 20; background: var(--purple); border-bottom: 2px solid var(--iron); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--white); }
.brand svg { width: 38px; height: 38px; }
.brand span { font-family: var(--display); font-size: 30px; line-height: 1; text-shadow: 0 3px 0 var(--iron); }

/* Hero */
.hero { background: var(--purple); color: var(--white); padding-block: 20px 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 8px; }
.hero-art { position: relative; width: min(100%, 240px); margin: 0 auto; aspect-ratio: 1; }
.hero-buffin { width: 100%; height: 100%; filter: drop-shadow(0 10px 0 rgba(23,19,31,.22)); animation: bob 3.2s ease-in-out infinite; }
.chip { position: absolute; display: flex; align-items: center; gap: 6px; padding: 7px 12px; background: var(--white); color: var(--iron);
  border: 2px solid var(--iron); border-radius: 14px; box-shadow: 0 3px 0 var(--iron); font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip span { font-weight: 900; color: var(--purple-dark); }
.chip-a { left: -6px; top: 14%; transform: rotate(-4deg); animation: pop 6s ease-in-out infinite; }
.chip-b { right: -6px; bottom: 18%; transform: rotate(3deg); animation: pop 6s ease-in-out 3s infinite; }
.badge { display: inline-block; padding: 6px 12px; border: 2px solid var(--iron); border-radius: 999px; background: var(--iron); color: var(--volt); font-weight: 900; font-size: 13px; letter-spacing: .02em; }
.invited { margin-top: 12px; padding: 10px 14px; border: 2px solid var(--iron); border-radius: 16px; background: var(--volt); color: var(--iron); font-weight: 800; }
.hero h1 { margin-top: 14px; font-size: clamp(36px, 9.4vw, 66px); text-shadow: 0 4px 0 var(--iron); letter-spacing: -.3px; }
.lede { margin-top: 14px; font-size: 19px; font-weight: 700; max-width: 34ch; }
.founder { margin-top: 14px; display: inline-block; padding: 6px 12px; border-radius: 12px; background: var(--purple-dark); font-size: 15px; font-weight: 800; }

/* Formulário */
.join { margin-top: 22px; display: grid; gap: 12px; max-width: 520px; }
.join-row { display: grid; gap: 10px; }
.join input[type="email"] { width: 100%; min-height: 54px; padding: 0 18px; border: 2px solid var(--iron); border-radius: 999px; background: var(--white);
  color: var(--iron); font: 700 17px var(--text); }
.join input[type="email"]::placeholder { color: #9A93AB; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 700; line-height: 1.4; cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--volt); cursor: pointer; }
.consent a { color: var(--volt); }
.form-msg { min-height: 1.4em; font-size: 15px; font-weight: 800; }
.form-msg.error { color: var(--volt); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.onlist { margin-top: 22px; display: grid; gap: 12px; max-width: 520px; padding: 18px; border: 2px solid var(--iron); border-radius: 22px; background: var(--purple-dark); box-shadow: 0 5px 0 var(--iron); }
.onlist p { font-weight: 800; }

@media (min-width: 560px) {
  .join-row { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (min-width: 900px) {
  .hero { padding-block: 56px 88px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 40px; }
  .hero-art { order: 2; width: min(100%, 440px); }
  .hero-copy { order: 1; }
}

/* Seções */
section { padding-block: 64px; }
.section-head { display: grid; gap: 10px; max-width: 720px; margin-bottom: 28px; }
.section-head h2, .feed h2, .cta h2 { font-size: clamp(34px, 7vw, 56px); }
.section-head p { font-size: 18px; color: var(--muted); }
.card { background: var(--white); border: 2px solid var(--iron); border-radius: 24px; padding: 22px; box-shadow: 0 5px 0 var(--iron); min-width: 0; }

/* Como funciona */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; align-items: center; }
.step svg { grid-row: span 2; width: 96px; height: 96px; }
.step h3 { font-size: 30px; display: flex; align-items: center; gap: 10px; }
.step .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--iron); border-radius: 50%; background: var(--volt); font: 900 15px/1 var(--text); }
.step p { color: var(--muted); font-weight: 600; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .step svg { grid-row: auto; width: 150px; height: 150px; }
}

/* Wearables (só texto: logos de outras marcas sugeririam parceria) */
.wearables { margin-top: 28px; display: grid; gap: 10px; justify-items: center; text-align: center; padding: 16px 18px; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.wear-title { font-weight: 900; font-size: 15px; }
.wear-title span { font-weight: 700; color: var(--muted); }
.wear-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; }
.wear-logos li { display: flex; align-items: center; font-family: var(--display); font-size: 22px; line-height: 1.2; color: var(--iron); letter-spacing: .02em; }
.wear-logo { display: block; width: auto; }
.wear-logo.whoop { height: 15px; }
.wear-logo.garmin { height: 22px; }
@media (min-width: 900px) { .wear-logos { gap: 10px 40px; } .wear-logos li { font-size: 26px; } .wear-logo.whoop { height: 17px; } .wear-logo.garmin { height: 26px; } }

/* Feed do squad */
.feed { background: var(--iron); color: var(--chalk); }
.feed .eyebrow { color: var(--volt); }
.feed-grid { display: grid; gap: 32px; align-items: center; }
.feed-copy { display: grid; gap: 14px; }
.feed-copy p:not(.eyebrow) { font-size: 18px; opacity: .92; max-width: 46ch; }
.phone { width: min(100%, 360px); margin: 0 auto; padding: 18px 14px 20px; background: var(--chalk); color: var(--iron); border: 3px solid var(--purple-light); border-radius: 36px; box-shadow: 0 8px 0 var(--purple-dark); }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 0 6px 12px; font-weight: 900; }
.phone-head svg { width: 44px; height: 44px; }
.phone-head small { display: block; font-weight: 700; color: var(--muted); font-size: 13px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notes li { padding: 12px 14px; background: var(--white); border: 2px solid var(--iron); border-radius: 18px; font-size: 15px; font-weight: 700; }
.notes li span { color: var(--purple-dark); font-weight: 900; }
.notes .goal { background: var(--volt); }
.meter { margin-top: 8px; height: 12px; border: 2px solid var(--iron); border-radius: 999px; background: var(--white); overflow: hidden; }
.meter i { display: block; height: 100%; width: 80%; background: var(--purple); }
.phone-note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); font-weight: 700; }
@media (min-width: 900px) { .feed-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }

/* Perna fina e sofá */
.duo { display: grid; gap: 18px; }
.duo .card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; }
.duo svg { width: 110px; height: 110px; }
.duo h3 { font-size: 28px; }
.duo p { margin-top: 6px; color: var(--muted); font-weight: 600; }
@media (min-width: 900px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } .duo .card { grid-template-columns: 150px minmax(0, 1fr); } .duo svg { width: 150px; height: 150px; } }

/* Grátis e Squad Plus */
.plans { background: var(--purple-light); }
.plan-grid { display: grid; gap: 18px; }
.plan h3 { font-size: 32px; }
.plan .sub { margin-top: 4px; font-weight: 800; color: var(--muted); }
.plan ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-weight: 700; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border: 2px solid var(--iron); border-radius: 50%; background: var(--volt); }
.plan.plus { background: var(--iron); color: var(--chalk); }
.plan.plus .sub { color: var(--volt); }
.plan.plus li::before { background: var(--purple); border-color: var(--chalk); }
.plan .tag { display: inline-block; margin-top: 14px; padding: 4px 10px; border-radius: 999px; background: var(--purple); color: var(--white); font-size: 13px; font-weight: 900; }
.promise { margin-top: 22px; font-family: var(--display); font-size: clamp(24px, 4vw, 32px); text-align: center; }
@media (min-width: 900px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-list details { background: var(--white); border: 2px solid var(--iron); border-radius: 20px; box-shadow: 0 4px 0 var(--iron); }
.faq-list summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative; font-weight: 900; font-size: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 400 28px/1 var(--display); color: var(--purple); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 18px 18px; color: var(--muted); font-weight: 600; }
.faq-list a { color: var(--purple-dark); font-weight: 800; }

/* Chamada final */
.cta { background: var(--purple); color: var(--white); text-align: center; }
.cta .wrap { display: grid; justify-items: center; gap: 16px; }
.cta svg { width: 150px; height: 150px; }
.cta h2 { text-shadow: 0 4px 0 var(--iron); }
.cta p { font-size: 18px; font-weight: 700; }

/* Rodapé */
footer { background: var(--iron); color: var(--chalk); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.foot { display: grid; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 800; }
.foot nav a { color: var(--volt); }
.foot .fine { opacity: .7; font-size: 14px; }

/* Passos 2 e 3 (janela depois do e-mail) */
dialog.flow { width: min(100% - 24px, 480px); max-height: calc(100dvh - 24px); padding: 0; border: 2px solid var(--iron); border-radius: 28px;
  background: var(--chalk); color: var(--iron); box-shadow: 0 8px 0 var(--iron); overflow: auto; }
dialog.flow::backdrop { background: rgba(23,19,31,.6); }
.flow-step { display: grid; gap: 16px; padding: 26px 20px 22px; }
.flow-kicker { font-weight: 900; color: var(--purple-dark); }
.flow h2 { font-size: 34px; margin-top: -10px; }
.flow fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.flow legend { padding: 0; margin-bottom: 10px; font-weight: 800; font-size: 17px; line-height: 1.4; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills.stack { flex-direction: column; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: block; padding: 11px 16px; border: 2px solid var(--iron); border-radius: 999px; background: var(--white); font-weight: 800; font-size: 15px; cursor: pointer; }
.pills.stack .pill span { border-radius: 16px; }
.pill input:checked + span { background: var(--purple); color: var(--white); box-shadow: 0 3px 0 var(--iron); }
.pill input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 2px; }
.names { display: grid; gap: 6px; font-weight: 800; font-size: 15px; }
.names small { font-weight: 700; color: var(--muted); }
.names input, .link-box input { width: 100%; min-height: 48px; padding: 0 16px; border: 2px solid var(--iron); border-radius: 14px; background: var(--white); color: var(--iron); font: 700 16px var(--text); }
.price { color: var(--purple-dark); }
.fine { font-size: 14px; color: var(--muted); font-weight: 700; }
.flow-actions { display: grid; gap: 4px; justify-items: center; }
.flow-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 2px solid var(--iron); border-radius: 50%; background: var(--white); font: 900 22px/1 var(--text); cursor: pointer; }
.flow-egg { width: 120px; height: 120px; margin: 0 auto -6px; animation: wobble 2.4s ease-in-out infinite; }
.flow-step[data-step="3"] { text-align: center; }
.link-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.link-box input { font-size: 15px; }
.link-box .btn { min-height: 48px; box-shadow: 0 3px 0 var(--iron); background: var(--white); }
.count { font-weight: 800; }
.count b { color: var(--purple-dark); }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pop { 0%, 8% { opacity: 0; translate: 0 8px; } 14%, 86% { opacity: 1; translate: 0 0; } 94%, 100% { opacity: 0; translate: 0 -6px; } }
@keyframes wobble { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Página de privacidade */
.doc { padding-block: 40px 64px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 8vw, 52px); }
.doc h2 { font-size: 26px; margin-top: 30px; }
.doc p, .doc li { margin-top: 10px; color: #3B3548; }
.doc ul { padding-left: 20px; }
.doc .updated { margin-top: 8px; color: var(--muted); font-weight: 700; }
.doc a { color: var(--purple-dark); font-weight: 800; }
