/* Páginas de tema (/afirmacoes-para-dormir/ …) e 404, geradas por tools/gerar-temas.mjs. Mesmos tokens da landing e do app. */
:root { --bg: #04030a; --ink: #f4eeff; --ink-2: #c9bcff; --ink-3: #b9b2ff; --brand: #8f7bff; --sun: #ffb37a;
        --line: rgba(200, 180, 255, .14); --line-2: rgba(200, 180, 255, .22); --glow: #b8bfcc; --serif: Cinzel, Georgia, serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, sans-serif; overflow-x: hidden; }
a { color: var(--ink-2); } a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: .03em; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 24px; }
.meta { font-size: 13px; color: var(--ink-3); }

.top { position: relative; overflow-x: clip; }
.stars { position: absolute; inset: 0; pointer-events: none;
         background-image: radial-gradient(1.5px 1.5px at 12% 18%, #b9b2ff, transparent), radial-gradient(1px 1px at 78% 9%, #b9b2ff, transparent), radial-gradient(1px 1px at 64% 32%, #c9bcff, transparent), radial-gradient(1.5px 1.5px at 30% 52%, #b9b2ff, transparent), radial-gradient(1px 1px at 88% 61%, #b9b2ff, transparent), radial-gradient(1px 1px at 8% 78%, #c9bcff, transparent), radial-gradient(1.5px 1.5px at 52% 88%, #b9b2ff, transparent), radial-gradient(1px 1px at 40% 6%, #c9bcff, transparent), radial-gradient(1px 1px at 94% 84%, #b9b2ff, transparent);
         background-size: 520px 520px; animation: drift 140s linear infinite, twinkle 7s ease-in-out infinite; }
header { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.crumbs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-3); }

.head-right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.langs { display: flex; border: 1px solid var(--line-2); border-radius: 999px; }
.langs a { display: grid; place-items: center; min-width: 44px; height: 42px; border-radius: 999px; color: var(--ink-3); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.langs a[aria-current] { background: rgba(143, 123, 255, .28); color: var(--ink); }
.langs a:focus-visible { outline-offset: -3px; }
@media (max-width: 520px) { .head-right { width: 100%; justify-content: space-between; } }

.hero { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; padding-block: 32px 56px; }
.hero-text { flex: 1 1 420px; max-width: 540px; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--ink-3); }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.15; text-shadow: 0 0 24px rgba(160, 130, 255, .45); }
.lead { font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.tone { height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid #c9bcff; background: var(--brand); color: var(--bg); cursor: pointer;
        font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .12em; box-shadow: 0 0 24px rgba(143, 123, 255, .5); }
.tone[aria-pressed="true"] { background: rgba(143, 123, 255, .14); color: var(--ink); }

.globe-col { flex: none; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.globe { position: relative; width: clamp(260px, 36vw, 440px); aspect-ratio: 1;
         background: radial-gradient(circle, rgba(217, 221, 228, .55) 0 4%, rgba(149, 156, 170, .3) 12%, rgba(95, 101, 112, .22) 30%, rgba(95, 101, 112, .08) 46%, transparent 60%); }
.globe canvas { pointer-events: none; position: absolute; inset: -20%; width: 140%; height: 140%; -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 70%); mask-image: radial-gradient(circle, #000 52%, transparent 70%); }
.globe.live { background: none; }
#digit { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: clamp(52px, 7vw, 96px); line-height: 1; color: #fff;
         text-shadow: 0 0 18px var(--glow), 0 0 50px var(--glow), 0 0 90px var(--glow); opacity: 0; transform: scale(.55);
         transition: opacity .15s ease, transform .15s cubic-bezier(.2, .8, .2, 1); pointer-events: none; } /* mesmos tempos da sessão */
#digit.on { opacity: 1; transform: none; }
#caption { position: relative; min-height: 20px; font-size: 14px; letter-spacing: .08em; color: var(--ink-2); }

.block { padding-block: 48px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.block h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.block > p { max-width: 720px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.phrase { margin: 0; max-width: 820px; font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.8rem); line-height: 1.6; letter-spacing: .06em; text-shadow: 0 0 18px rgba(160, 130, 255, .5); }
.code { display: flex; flex-wrap: wrap; gap: 12px; }
.code span { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--c); box-shadow: 0 0 18px var(--g); font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; max-width: 720px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.steps li::marker { color: var(--brand); font-weight: 600; }
.note { padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(255, 179, 122, .4); color: var(--sun) !important; font-size: 15px !important; }
.get { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--brand); color: var(--bg);
       text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 13px; letter-spacing: .1em; transition: background .2s; }
.get:hover { background: var(--ink-2); color: var(--bg); }
.badge, .badge img { display: block; } /* selo oficial da Apple: sem sombra nem efeito */

.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; min-height: 64px; align-items: center; cursor: pointer; list-style: none; font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: .02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: Inter, system-ui, sans-serif; font-size: 24px; color: var(--brand); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.faq details p { max-width: 760px; padding-bottom: 22px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }

.others { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); column-gap: 32px; }
.others a { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 16px; }
.others a:hover { color: var(--ink-2); }
.others .dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--g); }
.others .hz { margin-left: auto; padding-left: 8px; white-space: nowrap; font-family: Inter, system-ui, sans-serif; font-size: 13px; color: var(--ink-3); }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 24px; padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
footer nav { display: flex; gap: 24px; }

@media (max-width: 900px) { .hero { gap: 20px; padding-top: 16px; } .globe-col { order: -1; } } /* no celular a esfera vem antes do título */
@media (max-width: 340px) { .hero h1 { font-size: 1.75rem; } } /* “relacionamento” numa linha no iPhone com zoom */
@keyframes twinkle { 0%, 100% { opacity: .45 } 50% { opacity: 1 } }
@keyframes drift { to { background-position: 520px 260px } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
