/* Lumo English v2 · scenes.css — layout das 5 cenas, formulário, Lumo 2D, celular. */
.scene { position: relative; }
.step { padding: 96px var(--gutter); display: flex; align-items: center; min-height: 100vh; min-height: 100svh; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Cena 1 · Escuro → On! ---------- */
.scene-hero { min-height: 100vh; }
html.mode-3d .scene-hero { height: 190vh; }
.hero-sticky { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: grid; align-content: center; padding: 104px var(--gutter) 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1280px; width: 100%; margin: 0 auto; }
.hero-copy { position: relative; z-index: 2; }
.hero-dark-lines { font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); color: var(--t2); margin-bottom: 1em; }
.hero-dark-lines span { display: inline-block; }
html.is-lit .hero-dark-lines { display: none; }
.h-hero { color: var(--t-dim); text-shadow: 0 2px 24px rgba(27, 35, 64, .6); transition: color .6s; }
.h-hero .ch { display: inline-block; transition: color .42s, text-shadow .6s; }
html.is-lit .h-hero { color: var(--t1); }
html.is-lit .h-hero .hl, html.is-lit .h-hero .hl .ch { color: var(--sun); }
.h-hero .ch.flash { text-shadow: 0 0 28px rgba(255, 200, 61, .45); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 18px; }
.hero-note { color: var(--t2); }
.hero-proof { color: var(--t3); }
.hero-stage { position: relative; display: grid; justify-items: center; align-content: end; gap: 14px; min-height: 420px; }
html.mode-3d .hero-stage { min-height: 480px; }
html.mode-3d .hero-stage .lumo2d-slot { visibility: hidden; }
.hero-stage .lumo2d-slot { width: min(240px, 60vw); }
.power-hint { color: var(--t3); text-align: center; margin: 0; }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .5em; color: var(--t2); text-decoration: none; font-size: .9rem; opacity: 0; transition: opacity .5s; }
.scroll-hint svg { width: 20px; height: 20px; animation: bob 1.8s var(--on-soft) infinite; }
html.is-lit .scroll-hint { opacity: 1; }
/* Dia na fazenda (3D): o céu fica claro, então o texto claro ganha um fundo azul-tinta para continuar legível */
html.mode-3d .hero-copy { border-radius: 28px; padding: clamp(20px, 3vw, 36px); background: rgba(27, 35, 64, 0); transition: background-color .8s, box-shadow .8s; }
html.mode-3d.is-lit .hero-copy { background: rgba(27, 35, 64, .9); box-shadow: 0 20px 50px rgba(27, 35, 64, .25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.mode-3d.is-lit .power-hint, html.mode-3d.is-lit .scroll-hint { background: rgba(27, 35, 64, .82); color: var(--t1); padding: .35em .9em; border-radius: 999px; }
@keyframes bob { 50% { transform: translateY(6px); } }
.skip-intro { position: absolute; right: var(--gutter); bottom: 84px; color: var(--t2); }
@media (max-width: 520px) { .skip-intro { bottom: 128px; } .scroll-hint { bottom: 76px; } }

/* Botão On! (switch grande, segurar para ligar) */
.power { position: relative; display: inline-flex; align-items: center; gap: 14px; min-height: 84px; padding: 10px 30px 10px 10px; border-radius: 999px; border: 2px solid rgba(255, 252, 243, .35); background: rgba(27, 35, 64, .8); color: var(--t1); font-family: var(--font-display); font-weight: 700; font-size: 2rem; transition: background-color .3s, border-color .3s, box-shadow .3s, transform .14s; }
.power:hover { border-color: var(--sun); }
.power:active { transform: scale(.97); }
.power-knob { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 252, 243, .14); color: var(--t2); transition: transform .25s var(--on-spring), background-color .3s, color .3s, box-shadow .3s; }
.power-knob svg { width: 34px; height: 34px; }
.power[aria-checked="true"] { background: var(--sun); color: var(--ink); border-color: var(--sun); box-shadow: 0 0 0 8px rgba(255, 200, 61, .14), 0 0 60px rgba(255, 200, 61, .35); }
.power[aria-checked="true"] .power-knob { background: var(--ink); color: var(--glow); box-shadow: 0 0 18px rgba(61, 224, 196, .55); transform: rotate(360deg); }
.power-ring { position: absolute; left: 2px; top: 50%; width: 80px; height: 80px; margin-top: -40px; pointer-events: none; }
.power-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.power-ring circle { fill: none; stroke: var(--glow); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: calc(340 - 340 * var(--hold, 0)); opacity: calc(var(--hold, 0) * 1.5); }
.spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); pointer-events: none; left: 42px; top: 50%; }

/* Balões do Lumo */
.balloon { background: var(--cream); color: var(--ink); border-radius: 20px; padding: .7em 1em; max-width: 280px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); display: grid; gap: 2px; position: relative; }
.balloon b { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.balloon span { font-size: .92rem; color: #3A4262; }
.hero-stage .balloon { position: absolute; top: 8%; right: 0; z-index: 3; }

/* ---------- Cena 2 · Jornada ---------- */
.islands { list-style: none; margin: 0; padding: 0; }
html.mode-3d .step-island { min-height: 140vh; }
.step-right { justify-content: flex-end; }
.step-left { justify-content: flex-start; }
.step-island { gap: clamp(16px, 4vw, 48px); }
.step-left .island2d { order: 2; }
.island2d { display: none; }
html.mode-2d .island2d { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3em .5em; width: min(420px, 42vw); aspect-ratio: 2.1; border-radius: 50%; padding: 1em; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 1rem + 2.4vw, 3rem); box-shadow: inset 0 -18px 0 rgba(27, 35, 64, .28); }
.island2d--mint { background: var(--mint); }
.island2d--coral { background: var(--coral); }
.island2d--sun { background: var(--sun); }
.w2d { color: rgba(27, 35, 64, .4); transition: color .5s, transform .5s var(--on-pop); display: inline-block; }
.w2d.lit { color: var(--ink); transform: translateY(-.06em); }
.island2d--mint .w2d.lit { color: var(--cream); }
html.mode-3d .step-ages, html.mode-3d .step-meet { min-height: 120vh; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; }
.tab { min-height: 48px; padding: 0 1.1em; border-radius: 999px; border: 1.5px solid rgba(255, 252, 243, .35); background: transparent; color: var(--t1); font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.tab[aria-selected="true"] { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.tab-panel { border-radius: 18px; padding: 4px 2px; }
.tab-kicker { color: var(--glow); font-weight: 500; margin: 0 0 .2em; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: .45em; }
.ticks li { padding-left: 1.6em; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .75em; height: .75em; border-radius: 50%; background: var(--glow); }
.light-zone .ticks li::before { background: var(--mint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
.chips span { border: 1px solid var(--plate-line); background: rgba(255, 252, 243, .06); border-radius: 999px; padding: .25em .8em; font-size: .85rem; }
.meet-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; width: 100%; max-width: 1180px; margin: 0 auto; }
.traits { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: .3em; }
.traits b { color: var(--sun); font-family: var(--font-display); font-weight: 600; }
.say-row { display: flex; flex-wrap: wrap; gap: 8px; }
.meet-stage { display: grid; justify-items: center; gap: 12px; }
.lumo-btn { background: none; border: 0; padding: 0; width: min(260px, 60vw); border-radius: 30px; }
html.mode-3d .meet-stage .lumo-btn { opacity: 0; width: min(300px, 60vw); aspect-ratio: .87; }

/* ---------- Cena 3 · Adaptações ---------- */
.adapt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; width: 100%; max-width: 1240px; margin: 0 auto; }
.switches { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.switches p { margin: 2px 0 0 68px; color: var(--t3); }
.switch { display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 4px 0; min-height: 48px; color: var(--t1); font-weight: 500; text-align: left; }
.switch-track { flex: 0 0 54px; height: 32px; border-radius: 999px; background: rgba(255, 252, 243, .2); position: relative; transition: background-color .25s; }
.switch-track span { position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); transition: transform .25s var(--on-spring); }
.switch[aria-checked="true"] .switch-track { background: var(--glow); }
.switch[aria-checked="true"] .switch-track span { transform: translateX(22px); background: var(--ink); }
.preview-wrap { display: grid; gap: 14px; }
.preview { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.preview-title { font-weight: 600; margin-bottom: .4em; }
.preview-deco { color: #3A4262; }
.preview-en { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); line-height: 1.15; margin-bottom: .2em; }
.preview-pt { color: #3A4262; }
.preview .btn-ghost { color: var(--ink); border-color: rgba(27, 35, 64, .45); }
.adapt-note { color: var(--t2); background: var(--plate); border-radius: 16px; padding: 12px 16px; }

/* ---------- Zona clara (cenas 4 e 5) ---------- */
.light-zone { background: var(--paper); color: var(--text); color-scheme: light; }
:root[data-theme="dark"] .light-zone { color-scheme: dark; }
.light-zone .lead, .light-zone .muted { color: var(--muted); }
.light-zone a:not(.btn) { color: var(--text); }
.eyebrow-ink { color: var(--text); }
.light-zone .fill { background: rgba(255, 200, 61, .35); }
html.mode-3d .scene-parents { background: transparent; }
.scene-parents .step { padding-top: 120px; }
.scene-parents .wrap { width: 100%; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.6vw, 28px); color: var(--text); }
.parents-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 20px; align-items: start; margin-top: 12px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cards p { margin: 0; color: var(--muted); }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid var(--text); border-radius: 999px; padding: .15em .7em; margin: 0 0 .6em; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.kpis div { display: flex; flex-direction: column-reverse; }
.kpis dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1; }
.kpis dt { font-size: .85rem; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding-top: 10px; position: relative; border-bottom: 1px solid var(--line); background: linear-gradient(to top, transparent calc(10 / 18 * 108px + 22px), var(--line) calc(10 / 18 * 108px + 22px), var(--line) calc(10 / 18 * 108px + 24px), transparent calc(10 / 18 * 108px + 24px)); }
.bars span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bars i { display: block; width: 100%; max-width: 30px; height: calc(var(--v) / 18 * 108px); background: var(--line); border-radius: 8px 8px 3px 3px; }
.bars .ok i { background: var(--mint); }
.bars b { font-weight: 400; font-size: .75rem; color: var(--muted); height: 22px; line-height: 22px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0 6px; }
.lg { width: 12px; height: 12px; border-radius: 3px; background: var(--line); display: inline-block; }
.lg-ok { background: var(--mint); }

/* Planos */
.scene-plans { padding: 96px 0 40px; }
.scene-plans .step { display: block; min-height: 0; padding-top: 0; padding-bottom: 40px; }
.billing { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; margin: 8px 0 20px; background: var(--surface); }
.seg { min-height: 44px; padding: 0 1.1em; border-radius: 999px; border: 0; background: transparent; color: var(--text); font-weight: 500; }
.seg[aria-pressed="true"] { background: var(--text); color: var(--paper); }
.seg-tag { font-size: .75rem; background: var(--sun); color: var(--ink); border-radius: 999px; padding: .1em .5em; margin-left: .3em; }
.plans { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; }
.plan .ticks { flex: 1; }
.price { font-family: var(--font-display); margin: .3em 0 0; }
.price-v { font-size: 2.4rem; font-weight: 600; }
.price-note { color: var(--muted); }
.schools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.schools p { margin: 0; }

/* FAQ */
.faq { padding-top: 56px; padding-bottom: 56px; max-width: 900px; }
.field-label { display: block; font-weight: 500; margin: 10px 0 6px; }
.input { width: 100%; min-height: 52px; border-radius: 14px; border: 1.5px solid var(--muted); background: var(--surface); color: var(--text); padding: .6em .9em; }
.faq-list { display: grid; gap: 10px; margin-top: 12px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 18px; }
.faq-list summary { min-height: 56px; display: flex; align-items: center; cursor: pointer; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; list-style-position: inside; }
.faq-list details p { color: var(--muted); padding-bottom: 14px; margin: 0; }
.faq-empty { margin-top: 12px; }

/* Cadastro */
.signup { padding-bottom: 72px; max-width: 900px; }
.preview-banner { background: rgba(255, 200, 61, .3); border-radius: 14px; padding: .7em 1em; max-width: none; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; }
.help { font-size: .88rem; color: var(--muted); margin: 4px 0 0; }
.err { color: var(--coral-text); font-size: .92rem; font-weight: 500; margin: 4px 0 0; }
.err:empty { display: none; }
.input[aria-invalid="true"] { border-color: var(--coral-text); }
.checks { display: grid; gap: 12px; margin: 16px 0; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { flex: 0 0 24px; width: 24px; height: 24px; margin-top: 2px; accent-color: var(--ink); }
:root[data-theme="dark"] .check input { accent-color: var(--glow); }
.check label { font-size: .95rem; }
.req { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ok { background: rgba(18, 168, 146, .16); border-radius: 14px; padding: .7em 1em; margin-top: 12px; }
.form-ok:empty { display: none; }

/* Rodapé */
.site-footer { padding: 48px 0 110px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.logo-foot { font-family: var(--font-display); font-weight: 700; font-size: 2rem; margin: 0; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 28px; color: var(--muted); }

/* ---------- Lumo 2D (SVG da v1) ---------- */
.lumo2d-slot { display: block; }
.lumo { width: 100%; height: auto; display: block; overflow: visible; }
.lumo .float { animation: float 3.6s ease-in-out infinite; transform-box: fill-box; }
.lumo .eyes-open { animation: blink 4.5s infinite; transform-box: fill-box; transform-origin: center; }
.lumo .arm-r { transform-box: fill-box; transform-origin: 20% 80%; }
.lumo.wave .arm-r { animation: wave .9s ease-in-out 2; }
.lumo .bulb { fill: #9AA0B4; transition: fill .3s; }
.lumo .glow { opacity: 0; transition: opacity .3s; }
.lumo.is-on .bulb { fill: #3DE0C4; }
.lumo.is-on .glow { opacity: 1; }
.lumo .m, .lumo .eyes-closed { display: none; }
.lumo[data-mood="happy"] .m-happy, .lumo[data-mood="joy"] .m-joy, .lumo[data-mood="oh"] .m-oh, .lumo[data-mood="sleep"] .m-sleep { display: inline; }
.lumo[data-mood="sleep"] .eyes-open { display: none; }
.lumo[data-mood="sleep"] .eyes-closed { display: inline; }
.lumo[data-mood="sleep"] .float { animation-duration: 6s; }
.lumo.hop .float { animation: hop .5s ease; }
.lumo-halo { position: relative; }
html.is-lit .hero-stage .lumo2d-slot { filter: drop-shadow(0 0 40px rgba(255, 200, 61, .35)); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-26px); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-28deg); } 65% { transform: rotate(14deg); } }

/* ---------- Tablet e celular (até 360 px sem rolagem lateral) ---------- */
@media (max-width: 900px) {
  .hero-grid, .meet-grid, .adapt-grid, .parents-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { min-height: 0; }
  html.mode-3d .hero-stage { min-height: 340px; }
  .hero-stage .balloon { top: 0; right: 0; }
  .step-island { flex-direction: column; justify-content: center; align-items: stretch; }
  .step-left .island2d { order: 0; }
  html.mode-2d .island2d { width: 100%; max-width: 420px; align-self: center; }
  html.mode-3d .step-island { align-items: flex-end; justify-content: flex-end; padding-bottom: 120px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .step { padding: 88px 16px; }
  .hero-sticky { padding: 92px 16px 140px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .kpis dd { font-size: 1.6rem; }
  .power { font-size: 1.6rem; min-height: 72px; padding-right: 22px; }
  .power-knob { width: 54px; height: 54px; }
  .power-ring { width: 70px; height: 70px; margin-top: -35px; }
  .switches p { margin-left: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .btn { white-space: normal; text-align: center; }
}
/* No 3D, a coluna da prévia deixa espaço em cima para a frase 3D e o Lumo. */
@media (min-width: 901px) { html.mode-3d .preview-wrap { padding-top: 34vh; } }
/* Celular no 3D: o Lumo e o botão On! vêm antes do texto (o dock fica livre embaixo). */
@media (max-width: 900px) {
  html.mode-3d .hero-stage { order: -1; min-height: 300px; align-content: end; }
  html.mode-3d .hero-grid { gap: 12px; }
}

/* 3D em toda a página: planos, FAQ e rodapé ficam sobre o mundo 3D, com placa translúcida */
html.mode-3d .scene-plans.light-zone { background: color-mix(in srgb, var(--paper) 86%, transparent); }
html.mode-3d .site-footer { background: color-mix(in srgb, var(--ink) 88%, transparent); }
@media (pointer: fine) and (min-width: 900px) { html.mode-3d .scene-plans.light-zone, html.mode-3d .site-footer { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } }
