/* Ânima. Crepúsculo: a noite é o fundo, rosa é a sua voz, violeta é a da Ânima e o dourado nasce onde as duas se encontram (o vínculo). */
:root {
  --night: #150c2b; --night-2: #241548;
  --bg: #f7f4ff; --surface: #ffffff; --ink: #1a1033; --muted: #62577d; --line: #e3dcf2; --wash: #efeafb;
  --you: #d6336c; --you-soft: #ffe6ef; --her: #5b3fd9; --her-soft: #ece7ff; --gold: #b9780c; --gold-soft: #fff1d6;
  --warn: #c2410c; --warn-soft: #ffefe5;
  --rose-lt: #ff6f9c; --violet-lt: #9c86ff; --gold-lt: #ffc46b;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif; --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 20px; --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #110a22; --surface: #1b1235; --ink: #f3eeff; --muted: #b0a6cd; --line: #2f2354; --wash: #241a44;
    --you: #ff6f9c; --you-soft: #3a1633; --her: #a994ff; --her-soft: #2a2060; --gold: #ffc46b; --gold-soft: #3a2b17;
    --warn: #ffa070; --warn-soft: #3a2012;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.62 var(--sans); min-height: 100vh; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--her); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--rose-lt); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.boot { text-align: center; padding: 30vh 20px; color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.012em; line-height: 1.12; }
html.returning .land { visibility: hidden; }

/* logo: duas vozes e o que se forma entre elas */
.logo { width: 34px; height: 29px; flex: none; }
.lo-a { fill: #ff5c8a; fill-opacity: .92; } .lo-b { fill: #7c5cff; fill-opacity: .92; } .lo-m { fill: #ffc46b; }

/* ---------- botões e campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--bg); font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .2s, filter .2s; }
.btn:active { transform: scale(.98); }
.btn.soft { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.her { background: var(--her); border-color: var(--her); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.her { color: #14092e; } }
.btn.go { background: linear-gradient(100deg, #e8337a 0%, #7c4dff 100%); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -8px #b2308a99; }
.btn.go:hover { filter: brightness(1.08); box-shadow: 0 14px 34px -8px #b2308acc; }
.btn.ghost { background: transparent; color: #f3eeff; border-color: #ffffff40; }
.btn.ghost:hover { border-color: #ffffff99; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: .92rem; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--her); cursor: pointer; text-decoration: underline; }
input[type=text], input[type=email], input[type=password], select, textarea { width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 14px; min-height: 48px; }
input:focus, textarea:focus, select:focus { border-color: var(--her); outline: none; box-shadow: 0 0 0 3px var(--her-soft); }
textarea { resize: vertical; }
label.l { display: block; font-weight: 500; margin: 14px 0 4px; }
.err { background: var(--warn-soft); border-left: 3px solid var(--warn); border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.note { color: var(--muted); font-size: .9rem; }
.fine { color: var(--muted); font-size: .86rem; }

/* ---------- peças compartilhadas (landing e app) */
.vv { display: flex; align-items: center; justify-content: center; }
.vv i { width: 64px; height: 64px; border-radius: 50%; border: 2px solid; display: block; }
.vv i:first-child { border-color: var(--you); background: var(--you-soft); margin-right: -20px; }
.vv i:last-child { border-color: var(--her); background: var(--her-soft); }
.chk { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: .9rem; color: var(--muted); }
.chk input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--her); flex: none; }
.auth { max-width: 460px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px 26px 24px; box-shadow: 0 30px 70px -30px #3b1a8c55; }
.auth h2 { font-size: 1.8rem; margin-bottom: 4px; font-weight: 400; }
.pr { background: #ffffff10; border: 1px solid #ffffff22; border-radius: 24px; padding: 24px; }
.amount { margin: 0 0 16px; font: 300 clamp(2rem, 5vw, 2.8rem)/1.1 var(--serif); color: #fff; }
.flow { margin: 18px 0 14px; padding-left: 20px; color: #d8cff2; display: grid; gap: 6px; font-size: .93rem; }
.flow li::marker { color: #ffc46b; font-weight: 700; }
.pr .fine { color: #b4a9d4; margin: 0; }
.pr .fine a { color: #d8cff2; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; width: min(70vw, 620px); aspect-ratio: 1; }
.orb.you { left: -14%; top: -22%; background: radial-gradient(circle at 42% 42%, #ff6f9c 0%, #e8337a 34%, #e8337a00 68%); opacity: .6; }
.orb.her { right: -16%; top: 4%; background: radial-gradient(circle at 58% 42%, #a994ff 0%, #6a45f0 36%, #6a45f000 68%); opacity: .65; }
.orb.mix { left: 50%; top: 14%; width: min(46vw, 420px); margin-left: calc(min(46vw, 420px) / -2); background: radial-gradient(circle, #ffd590 0%, #ffc46b66 34%, #ffc46b00 66%); mix-blend-mode: screen; opacity: .5; }
/* ---------- paywall */
.pay { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 20px; background: radial-gradient(120% 90% at 50% 0%, #2b1757 0%, var(--night) 62%); color: #f3eeff; position: relative; overflow: hidden; }
.pay .sky { opacity: .8; }
.pay-in { position: relative; max-width: 560px; width: 100%; }
.pay .brand { color: #f3eeff; margin-bottom: 28px; }
.pay h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 300; color: #fff; }
.pay .lead { color: #d8cff2; margin: 16px 0 22px; }
.pay .pr { margin-bottom: 14px; }
.pay .row { justify-content: flex-start; margin-top: 12px; }
.pay .btn.soft { color: #f3eeff; border-color: #ffffff33; }
.pay .sos { margin: 22px 0 0; width: auto; }
.wait { color: #ffd9a0; font-size: .92rem; margin: 10px 0 0; min-height: 1.4em; }

/* ---------- app */
.app { display: grid; height: 100vh; height: 100dvh; grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
@media (min-width: 900px) { .app { grid-template-columns: 280px minmax(0, 1fr) 330px; grid-template-rows: 1fr; } }
.pane { min-height: 0; display: none; flex-direction: column; background: var(--bg); }
.app[data-pane="rail"] .rail, .app[data-pane="conv"] .conv, .app[data-pane="vinc"] .vinc { display: flex; }
@media (min-width: 900px) { .pane { display: flex !important; } .tabbar { display: none !important; } }
.rail { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px; overflow-y: auto; }
.rail .brand { padding: 4px 6px 16px; }
.rail h4 { margin: 20px 6px 8px; font: 600 .86rem var(--sans); color: var(--muted); }
.spc { display: block; width: 100%; text-align: left; background: none; border: 1.5px solid transparent; border-radius: 14px; padding: 10px 12px; cursor: pointer; }
.spc:hover { background: var(--wash); }
.spc[aria-current="true"] { background: var(--her-soft); border-color: transparent; box-shadow: inset 3px 0 0 var(--her); }
.spc b { display: block; font: 400 1.08rem var(--serif); }
.spc small { color: var(--muted); }
.rail .bottom { margin-top: auto; padding-top: 16px; display: grid; gap: 6px; font-size: .9rem; }
.conv { position: relative; background: radial-gradient(80% 50% at 85% 0%, var(--her-soft) 0%, transparent 70%), var(--bg); }
.conv-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(10px); }
.conv-head h2 { font-size: 1.4rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { font: 500 .8rem var(--sans); padding: 3px 11px; border-radius: 999px; background: var(--wash); color: var(--muted); }
.log { flex: 1; overflow-y: auto; padding: 22px 20px 12px; scroll-behavior: smooth; }
.log > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.msg { margin: 0 auto 22px; }
.msg.me { display: flex; justify-content: flex-end; }
.msg.me .b { background: linear-gradient(135deg, var(--you-soft), color-mix(in srgb, var(--you-soft) 70%, var(--her-soft))); color: var(--ink); border-radius: 20px 20px 4px 20px; padding: 11px 17px; max-width: 86%; white-space: pre-wrap; font-size: .98rem; }
.msg.anima { border-left: 3px solid var(--her); padding-left: 18px; }
.msg.anima .who { font: 600 .85rem var(--sans); color: var(--her); margin-bottom: 4px; }
.msg.anima p { font: 400 1.18rem/1.65 var(--serif); margin: 0 0 .8em; font-variation-settings: "opsz" 24; }
.msg.anima ul { margin: 0 0 .8em; padding-left: 20px; font: 400 1.02rem/1.6 var(--sans); }
.msg.anima.live p:last-child::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 3px; background: var(--her); vertical-align: -.15em; opacity: .6; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .msg.anima.live p:last-child::after { animation: none; } html { scroll-behavior: auto; } }
.msg.anima .sos-block { background: var(--warn-soft); border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; font: 400 .98rem/1.6 var(--sans); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.start { max-width: 780px; margin: 4vh auto 0; }
.start h3 { font-size: 1.9rem; font-weight: 300; margin-bottom: 4px; }
.paths { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); margin-top: 18px; }
.path { text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px 14px 18px; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.path::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--her); }
.path:nth-child(3n+1)::before { background: var(--you); } .path:nth-child(3n)::before { background: var(--gold); }
.path:hover { border-color: var(--her); transform: translateY(-2px); box-shadow: 0 14px 30px -18px #5b3fd988; }
.path b { display: block; font: 400 1.1rem var(--serif); margin-bottom: 2px; }
.path span { color: var(--muted); font-size: .9rem; }
.composer { padding: 10px 20px 16px; }
.composer .sheet { max-width: 720px; margin: 0 auto; background: var(--surface); border: 1.5px solid var(--line); border-radius: 24px; padding: 8px 8px 8px 18px; display: flex; gap: 8px; align-items: flex-end; box-shadow: 0 18px 40px -22px #5b3fd966; }
.composer textarea { border: 0; background: transparent; padding: 10px 0; min-height: 44px; max-height: 180px; resize: none; box-shadow: none; }
.composer textarea:focus { outline: none; box-shadow: none; }
.composer .sheet:focus-within { border-color: var(--her); box-shadow: 0 0 0 3px var(--her-soft), 0 18px 40px -22px #5b3fd966; }
.tools { max-width: 720px; margin: 0 auto 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tools .cur { color: var(--muted); font-size: .85rem; }
.disc { max-width: 720px; margin: 8px auto 0; text-align: center; color: var(--muted); font-size: .78rem; }
.disc a { color: inherit; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 22px; }
.tcard h4 { margin: 14px 0 6px; font: 600 .86rem var(--sans); color: var(--muted); }
.tcard h4:first-child { margin-top: 0; }
.tcard p { margin: 0 0 6px; }
.opt { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; }
.opt small { display: block; color: var(--you); font-weight: 600; }
.tcard .warn { background: var(--warn-soft); border-left: 3px solid var(--warn); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.vinc { background: var(--surface); border-left: 1px solid var(--line); padding: 18px 18px 24px; overflow-y: auto; }
.vinc h3 { font-size: 1.45rem; margin-bottom: 2px; }
.vinc .vv { margin: 8px 0 14px; display: flex; justify-content: center; }
.vinc .vv i { width: 74px; height: 74px; }
.vsec { margin: 16px 0 0; }
.vsec h4 { margin: 0 0 6px; font: 600 .86rem var(--sans); color: var(--muted); }
.vsec p, .vsec li { margin: 0 0 4px; font-size: .95rem; }
.vsec ul { margin: 0; padding-left: 18px; }
.vsec.warn { background: var(--warn-soft); border-radius: 12px; padding: 10px 12px; }
.empty { color: var(--muted); font-size: .95rem; padding: 12px 0; }
.tabbar { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: var(--surface); padding-bottom: env(safe-area-inset-bottom); }
.tabbar button { background: none; border: 0; padding: 12px 6px 10px; font-weight: 500; color: var(--muted); cursor: pointer; }
.tabbar button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 3px 0 var(--her); }

/* ---------- janelas */
dialog { border: 1px solid var(--line); border-radius: 26px; background: var(--surface); color: var(--ink); padding: 24px; width: min(580px, 94vw); max-height: 92vh; }
dialog::backdrop { background: #150c2b99; backdrop-filter: blur(3px); }
dialog h2 { font-size: 1.65rem; margin-bottom: 6px; }
.row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.q { padding: 12px 0; border-bottom: 1px solid var(--line); }
.q p { margin: 0 0 8px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.scale span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 4px 2px; border: 1.5px solid var(--line); border-radius: 12px; font-size: .72rem; line-height: 1.2; }
.scale input:checked + span { border-color: var(--her); background: var(--her-soft); font-weight: 600; }
.scale input:focus-visible + span { outline: 3px solid var(--rose-lt); }
.bars { margin: 12px 0; }
.bar { height: 10px; border-radius: 999px; background: var(--surface); overflow: hidden; margin: 4px 0 12px; }
.bar i { display: block; height: 100%; border-radius: 999px; }
.bar.a i { background: linear-gradient(90deg, var(--you), #ff9bb9); } .bar.v i { background: linear-gradient(90deg, var(--her), #c3b6ff); }
.mini .bar { background: var(--surface); }

@media (max-width: 560px) {
  .hero-in { padding-top: 40px; }
  .ctas .btn { width: 100%; }
  .top-cta .ghost { display: none; }
  .pcard { padding: 28px 20px; }
}

.brand { display: inline-flex; align-items: center; gap: 10px; font: 400 1.55rem/1 var(--serif); color: var(--ink); text-decoration: none; }
.pay .brand { color: #f3eeff; }
