/* Ondeia — site. Noite da marca, Inter Tight nos títulos. O gradiente aurora fica só no símbolo; o botão principal é roxo sólido. */
:root {
  --noite: #0B0B12;
  --noite-2: #14141F;
  --nevoa: #F5F3EF;
  --texto: #ECEAF2;
  --suave: #A8A6B8;
  --linha: rgba(255, 255, 255, 0.09);
  --vidro: rgba(255, 255, 255, 0.055);
  --brasa: #FF7A59;
  --orquidea: #C46BFF;
  --ceu: #4CC9FF;
  --verde: #33CC73;
  --roxo: #9B4DE0;       /* orquídea mais fechada: texto branco com contraste 4,6:1 */
  --aurora: linear-gradient(90deg, var(--brasa), var(--orquidea) 50%, var(--ceu));
  --raio: 22px;
  --marca: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
  --texto-fonte: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--noite);
  color: var(--texto);
  font-family: var(--texto-fonte);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, video { max-width: 100%; display: block; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }

/* Navegação */
nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); background: rgba(11, 11, 18, .65); border-bottom: 1px solid var(--linha); }
nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--marca); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.logo img { width: 34px; height: 28px; }
nav .links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--suave); }
nav .links a { text-decoration: none; }
nav .links a:hover { color: var(--texto); }
@media (max-width: 720px) { nav .links { display: none; } nav .wrap { justify-content: space-between; } }

/* Botões */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--linha); background: var(--vidro); color: var(--texto); cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; font-family: inherit; }
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .1); }
.btn.principal { background: var(--roxo); border: 0; color: #fff; }
.btn.principal:hover { background: #A85CEB; }
.btn.pequeno { padding: 8px 16px; font-size: 13px; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Herói */
.heroi { text-align: center; padding: 90px 0 40px; }
.heroi .selo { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--suave); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--linha); background: var(--vidro); }
.heroi .selo b { color: var(--texto); font-weight: 600; }
h1, h2, h3 { font-family: var(--marca); letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(42px, 7vw, 76px); font-weight: 600; margin: 22px 0 18px; }
h1 em, h2 em { font-style: normal; }
.heroi p.sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--suave); max-width: 640px; margin: 0 auto 30px; }
.acoes { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.req { font-size: 13px; color: var(--suave); margin-top: 16px; }
.video { margin: 56px auto 0; border-radius: 26px; overflow: hidden; border: 1px solid var(--linha); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9); background: #000; }
.video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Seções */
section { padding: 80px 0; }
.titulo { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.titulo.esquerda { text-align: left; margin-left: 0; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 600; margin: 10px 0 12px; }
.titulo p { color: var(--suave); margin: 0; font-size: 17px; }

.cartao { background: var(--vidro); border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.cartao h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.cartao p { margin: 0; color: var(--suave); font-size: 15px; }

.recurso { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding: 44px 0; border-top: 1px solid var(--linha); }
.recurso.inverte .texto { order: 2; }
.recurso h3 { font-size: clamp(26px, 3vw, 32px); font-weight: 600; margin-bottom: 12px; }
.recurso .texto p { color: var(--suave); font-size: 17px; margin: 0; max-width: 440px; }
.visual { margin: 0; min-height: 250px; display: grid; place-items: center; padding: 28px; border-radius: var(--raio); background: var(--noite-2); border: 1px solid var(--linha); overflow: hidden; }
.visual video { width: 100%; border-radius: 12px; }
.visual.gravado { padding: 0; }
.ilustra { width: 100%; max-width: 440px; display: grid; gap: 14px; }
.ilustra small { display: block; font-size: 12px; color: var(--suave); margin-bottom: 6px; }
.ilustra p { margin: 0; font-size: 16px; line-height: 1.45; }
.ilustra .dito s { text-decoration: line-through 2px var(--brasa); color: #8d8a9c; }
.ilustra .colado { background: #FBFAF7; color: #1d1d1f; border-radius: 12px; padding: 14px 16px; }
.ilustra .colado small { color: #6e6e73; }
.ilustra mark { background: rgba(10, 132, 255, .22); color: inherit; border-radius: 2px; }
.ilustra .pilula { justify-self: center; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--linha); font-size: 14px; }
.ilustra .ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--orquidea); flex: none; }
.cartao-ilha { background: #000; color: #fff; border-radius: 22px; padding: 16px 18px; font: 13px -apple-system, BlinkMacSystemFont, sans-serif; }
.cartao-ilha .linha { display: flex; gap: 12px; align-items: center; }
.cartao-ilha .quad { width: 38px; height: 38px; border-radius: 10px; background: #ff9f0a; display: grid; place-items: center; flex: none; }
.cartao-ilha b { display: block; font-size: 15px; }
.cartao-ilha small { color: rgba(255, 255, 255, .5); font-size: 12.5px; margin: 0; }
.cartao-ilha .botoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.cartao-ilha .botoes span { font-weight: 600; font-size: 12.5px; border-radius: 10px; padding: 6px 14px; background: rgba(255, 255, 255, .1); }
.cartao-ilha .botoes .ok { background: #2fbf71; }
@media (max-width: 760px) {
  .recurso { grid-template-columns: 1fr; gap: 24px; padding: 34px 0; }
  .recurso.inverte .texto { order: 0; }
  .visual { padding: 20px; min-height: 0; }
}
.extras { margin: 0; border-top: 1px solid var(--linha); }
.extras div { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--linha); }
.extras dt { font-family: var(--marca); font-weight: 600; font-size: 18px; }
.extras dd { margin: 0; color: var(--suave); }
@media (max-width: 640px) { .extras div { grid-template-columns: 1fr; gap: 4px; } }

/* Quem fez (aparece quando "autor" está preenchido no config.js) */
.autor { margin: 0 auto; max-width: 680px; text-align: left; }
.autor img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 22px; }
.autor blockquote { margin: 0; font-size: clamp(19px, 2.3vw, 23px); line-height: 1.5; }
.autor blockquote p { margin: 0 0 14px; }
.autor figcaption { color: var(--suave); font-size: 15px; margin-top: 8px; }
.autor-video { margin-top: 30px; border-radius: 16px; overflow: hidden; border: 1px solid var(--linha); background: #000; }
.autor-video video { width: 100%; }

/* Perguntas: título à esquerda, lista à direita */
.dividido { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.dividido .titulo { margin: 0; }
.dividido .perguntas { max-width: none; margin: 0; }
.dividido details:first-child { padding-top: 6px; }
@media (max-width: 760px) { .dividido { grid-template-columns: 1fr; gap: 10px; } }

/* Teclas */
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 28px; padding: 0 8px; border-radius: 8px; font: 600 13px var(--texto-fonte); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-bottom-width: 2px; color: var(--texto); }
.gestos { display: grid; max-width: 760px; margin: 0 auto; border-top: 1px solid var(--linha); }
.gesto { display: flex; align-items: center; gap: 18px; padding: 18px 4px; border-bottom: 1px solid var(--linha); }
.gesto .teclas { display: flex; gap: 5px; min-width: 110px; }
.gesto b { display: block; font-family: var(--marca); font-weight: 600; font-size: 17px; }
.gesto span { color: var(--suave); font-size: 14px; }

/* Abas de instalação */
.abas { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--vidro); border: 1px solid var(--linha); width: fit-content; margin: 0 auto 22px; }
.abas button { border: 0; background: none; color: var(--suave); font: 600 14px var(--texto-fonte); padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.abas button[aria-selected="true"] { background: rgba(255, 255, 255, .12); color: var(--texto); }
.painel { max-width: 760px; margin: 0 auto; }
.painel[hidden] { display: none; }
.comando { display: flex; align-items: center; gap: 12px; background: #000; border: 1px solid var(--linha); border-radius: 16px; padding: 16px 16px 16px 20px; font: 14px ui-monospace, "SF Mono", Menlo, monospace; overflow-x: auto; }
.comando code { flex: 1; white-space: nowrap; color: #e8e6ff; }
.comando code::before { content: "$ "; color: var(--suave); }
.passos { counter-reset: passo; list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.passos li { counter-increment: passo; display: flex; gap: 14px; align-items: flex-start; color: var(--suave); }
.passos li::before { content: counter(passo); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--texto-fonte); color: var(--texto); background: rgba(255, 255, 255, .1); }
.passos li b { color: var(--texto); }
.nota { font-size: 14px; color: var(--suave); margin-top: 16px; }

/* Preço */
.preco { max-width: 520px; margin: 0 auto; text-align: center; padding: 38px 34px; position: relative; overflow: hidden; }
.preco .valor { font-family: var(--marca); font-size: 64px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin: 10px 0 4px; }
.preco .valor small { font-size: 18px; color: var(--suave); font-weight: 500; letter-spacing: 0; }
.preco ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 8px; text-align: left; }
.preco li { display: flex; gap: 10px; color: var(--suave); }
.preco li::before { content: "✓"; color: var(--verde); font-weight: 700; }

/* Perguntas */
details { border-bottom: 1px solid var(--linha); padding: 18px 4px; }
details summary { cursor: pointer; list-style: none; font-family: var(--marca); font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 20px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--suave); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--suave); margin: 10px 0 0; }
.perguntas { max-width: 760px; margin: 0 auto; }

footer { border-top: 1px solid var(--linha); padding: 36px 0 50px; color: var(--suave); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }

/* ---------- Guia (instalar.html) com telas desenhadas do macOS ---------- */
.guia { max-width: 820px; margin: 0 auto; }
.etapa { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--linha); }
.etapa:last-child { border-bottom: 0; }
@media (max-width: 760px) { .etapa { grid-template-columns: 1fr; } }
.etapa .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .1); font: 700 15px var(--texto-fonte); color: #fff; margin-bottom: 12px; }
.etapa h3 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.etapa p { color: var(--suave); margin: 0 0 10px; }
.alerta { border-radius: 14px; padding: 12px 16px; font-size: 14px; background: rgba(255, 122, 89, .1); border: 1px solid rgba(255, 122, 89, .3); color: #ffd3c6; }

/* Mockups: janelas claras do macOS */
.mac { background: #ECECEE; color: #1d1d1f; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .25); font: 13px -apple-system, BlinkMacSystemFont, sans-serif; overflow: hidden; }
.mac .barra { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #E3E3E6; border-bottom: 1px solid #d0d0d4; font-size: 12px; color: #6e6e73; }
.mac .barra i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mac .barra i:nth-child(2) { background: #febc2e; }
.mac .barra i:nth-child(3) { background: #28c840; margin-right: 8px; }
.mac .corpo { padding: 18px; }
.dialogo { width: 270px; margin: 0 auto; background: #F2F2F4; border-radius: 16px; padding: 22px 18px 16px; text-align: center; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .2); color: #1d1d1f; font: 12px -apple-system, BlinkMacSystemFont, sans-serif; }
.dialogo img { width: 56px; height: 56px; margin: 0 auto 10px; }
.dialogo b { display: block; font-size: 13px; margin-bottom: 6px; }
.dialogo p { color: #3a3a3c; font-size: 11.5px; margin: 0 0 14px; line-height: 1.4; }
.dialogo .botoes { display: grid; gap: 7px; }
.dialogo .botoes span { display: block; padding: 6px; border-radius: 8px; background: #E1E1E5; font-weight: 500; }
.dialogo .botoes span.azul { background: #0a84ff; color: #fff; }
.alvo { position: relative; outline: 3px solid #0a84ff; outline-offset: 3px; animation: pulsa 1.6s ease-in-out infinite; }
@keyframes pulsa { 50% { outline-color: rgba(10, 132, 255, .35); } }
.ajustes { display: grid; grid-template-columns: 150px 1fr; min-height: 230px; }
.ajustes .lado { background: #E6E6EA; padding: 12px 8px; border-right: 1px solid #d4d4d8; font-size: 12px; display: grid; gap: 3px; align-content: start; }
.ajustes .lado span { padding: 5px 8px; border-radius: 6px; color: #3a3a3c; }
.ajustes .lado span.sel { background: #0a84ff; color: #fff; }
.ajustes .conteudo { padding: 16px; font-size: 12px; }
.ajustes .conteudo h4 { margin: 0 0 10px; font-size: 15px; }
.ajustes .grupo { background: #fff; border-radius: 10px; padding: 12px; border: 1px solid #e0e0e4; }
.ajustes .grupo small { display: block; color: #6e6e73; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.ajustes .linha { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ajustes .linha button { border: 0; border-radius: 6px; padding: 5px 10px; background: #E1E1E5; font: 500 11.5px -apple-system, sans-serif; color: #1d1d1f; white-space: nowrap; }
/* Igual ao fundo do instalador de verdade (DMGBackground.swift): claro e liso, seta roxa. */
.dmg { background: #F6F4F1; padding: 26px 20px 18px; text-align: center; }
.dmg .titulo-dmg { font: 600 15px var(--marca); margin-bottom: 18px; }
.dmg .icones { display: flex; justify-content: space-around; align-items: center; }
.dmg .icones div { display: grid; justify-items: center; gap: 6px; font-size: 12px; }
.dmg .icones img, .dmg .pasta { width: 64px; height: 64px; }
.dmg .pasta { border-radius: 12px; background: #2f86f0; display: grid; place-items: center; color: #fff; font-size: 30px; }
.dmg .icones .seta { display: flex; align-items: center; gap: 2px; margin-bottom: 22px; }
.dmg .seta::before { content: ""; width: 64px; height: 4px; border-radius: 2px; background: var(--roxo); }
.dmg .seta::after { content: ""; width: 10px; height: 10px; border: solid var(--roxo); border-width: 3px 3px 0 0; transform: rotate(45deg); margin-left: -8px; }
.terminal { background: #1e1e1e; color: #e5e5e5; font: 12px ui-monospace, "SF Mono", Menlo, monospace; }
.terminal .barra { background: #2b2b2b; border-color: #111; color: #999; }
.terminal .corpo { line-height: 1.7; }
.terminal .ok { color: #5ee08a; }
.terminal .dim { color: #888; }
.copiar { flex: none; }

/* ---------- Formulários, área do cliente e painel ---------- */
.pagina-estreita { max-width: 560px; margin: 60px auto 80px; }
.pagina-estreita > .cartao { padding: 34px 32px; }
.pagina-estreita h1 { font-size: clamp(32px, 5vw, 42px); margin: 0 0 10px; }
.campo { display: grid; gap: 6px; margin-bottom: 14px; text-align: left; }
.campo label { font-size: 13px; font-weight: 600; color: var(--suave); }
.campo input, .campo select { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--linha); background: rgba(0, 0, 0, .35); color: var(--texto); font: 15px var(--texto-fonte); outline: none; transition: border-color .2s, box-shadow .2s; }
.campo input:focus { border-color: var(--orquidea); box-shadow: 0 0 0 4px rgba(196, 107, 255, .18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--suave); text-align: left; margin: 6px 0 18px; }
.check input { margin-top: 3px; accent-color: var(--orquidea); }
.largo { width: 100%; justify-content: center; }
.mensagem { border-radius: 14px; padding: 12px 16px; font-size: 14px; margin-top: 14px; text-align: left; }
.mensagem.erro { background: rgba(255, 90, 90, .1); border: 1px solid rgba(255, 90, 90, .35); color: #ffc9c9; }
.mensagem.ok { background: rgba(51, 204, 115, .1); border: 1px solid rgba(51, 204, 115, .35); color: #c4f5d6; }
.mensagem[hidden] { display: none; }
.resumo-compra { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 16px; background: rgba(0, 0, 0, .3); border: 1px solid var(--linha); margin: 18px 0 22px; text-align: left; }
.resumo-compra b { font-family: var(--marca); font-size: 26px; }
.pagamentos { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--suave); }
.pagamentos span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--linha); }
.girando { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--orquidea); animation: gira 0.9s linear infinite; margin: 20px auto; }
@keyframes gira { to { transform: rotate(360deg); } }
.chave-caixa { font: 12px ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; text-align: left; background: #000; border: 1px solid var(--linha); border-radius: 14px; padding: 14px 16px; margin: 12px 0; color: #e8e6ff; }
.licencas { display: grid; gap: 14px; margin-top: 18px; }
.licenca { text-align: left; padding: 20px; }
.licenca .topo { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.licenca .topo b { font-family: var(--marca); font-size: 18px; }
.licenca .topo span { font-size: 13px; color: var(--suave); }
.licenca .acoes { justify-content: flex-start; margin-top: 4px; }
.selo-status { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.selo-status.pago { background: rgba(51, 204, 115, .15); color: #6ee59c; }
.selo-status.pendente { background: rgba(255, 190, 70, .15); color: #ffd27a; }
.selo-status.reembolsado, .selo-status.cancelado { background: rgba(255, 90, 90, .14); color: #ff9c9c; }
.metricas { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.metricas .cartao b { display: block; font-family: var(--marca); font-size: 30px; }
.metricas .cartao span { color: var(--suave); font-size: 13px; }
.tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabela th { text-align: left; color: var(--suave); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--linha); white-space: nowrap; }
.tabela td { padding: 10px 8px; border-bottom: 1px solid var(--linha); vertical-align: top; }
.tabela td small { color: var(--suave); }
.rolavel { overflow-x: auto; }
.legal { max-width: 760px; margin: 50px auto 80px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--suave); }
.legal .atualizado { color: var(--suave); font-size: 14px; }
.legal .dados { padding: 18px 20px; }
footer .legais { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Animações no idioma do app (assets/animacoes.js) ---------- */
/* Molas parecidas com as do SwiftUI: Theme.morph (passa um pouco e volta) e Theme.snappy. */
:root { --mola: cubic-bezier(.34, 1.36, .5, 1); --suave-saida: cubic-bezier(.2, .8, .2, 1); }
canvas.simbolo { display: block; }
.confete { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 100; }

/* Abertura: o símbolo nasce com uma onda de luz e "olá" passa pelos idiomas. */
.heroi { position: relative; }
.heroi .onda-fundo { position: absolute; left: 50%; top: 150px; width: 100vw; height: 220px; transform: translateX(-50%); z-index: -1; pointer-events: none;
  stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: .07; -webkit-mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.abertura { position: relative; width: 168px; height: 150px; margin: 0 auto; display: grid; place-items: center; }
.abertura canvas { width: 168px; height: 150px; animation: nasce 1.1s var(--mola) .15s both; }
.abertura .onda { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5);
  animation: onda 1.6s cubic-bezier(.1, .7, .3, 1) .15s both; }
@keyframes nasce { from { opacity: 0; transform: scale(.4); filter: blur(18px); } }
@keyframes onda { from { transform: scale(.6); opacity: .8; } to { transform: scale(2.6); opacity: 0; } }
.ola { position: relative; height: 46px; margin: 4px 0 0; font: 600 34px/46px var(--marca); letter-spacing: -0.02em; color: #fff; }
.ola span { position: absolute; inset: 0; animation: ola-entra .5s var(--mola) both; }
.ola span.primeiro { animation: ola-aparece .5s ease-out both; }
.ola span.saindo { animation: ola-sai .32s ease-in both; }
@keyframes ola-entra { from { opacity: 0; transform: translateY(14px) scale(.92); } }
@keyframes ola-aparece { from { opacity: 0; } }
@keyframes ola-sai { to { opacity: 0; transform: translateY(-14px); filter: blur(4px); } }
.heroi h1 { margin-top: 14px; }
.entra { animation: entra .6s var(--suave-saida) both; animation-delay: calc(.4s + var(--i, 0) * .06s); }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }

/* Revelar ao rolar: aparece rápido e sobe pouco, sem desfoque (quem rola rápido não vê nada borrado). */
[data-revelar] { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .45s var(--suave-saida); }
[data-revelar].visivel { opacity: 1; transform: none; }

/* Teclas que afundam, como no vídeo. */
.gesto.visivel kbd { animation: aperta 3.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .45s + var(--k, 0) * .08s); }
@keyframes aperta { 0%, 70%, 100% { transform: none; box-shadow: none; } 76%, 90% { transform: translateY(2px); border-bottom-width: 1px; box-shadow: 0 0 0 2px rgba(196, 107, 255, .55), 0 0 18px rgba(196, 107, 255, .45); background: rgba(196, 107, 255, .18); } }

/* ---------- Demonstração: a ilha do notch ---------- */
.demo { max-width: 860px; margin: 0 auto; }
.demo .moldura { height: var(--altura, 500px); border-radius: 22px; overflow: hidden; border: 1px solid var(--linha); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9); }
.tela { position: relative; width: 860px; height: 500px; transform: scale(var(--escala, 1)); transform-origin: 0 0; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(ellipse at 30% 110%, #3b5f8f, transparent 60%), radial-gradient(ellipse at 85% 80%, #2c4a6e, transparent 55%), linear-gradient(#141a26, #1f2b3d); }
.tela .menus { position: absolute; inset: 0 0 auto; height: 30px; display: flex; align-items: center; gap: 18px; padding: 0 16px; font-size: 13px; color: #fff; background: rgba(255, 255, 255, .14); backdrop-filter: blur(20px); }
.tela .menus b { font-weight: 700; }
.tela .menus .dir { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.tela .menus canvas { width: 22px; height: 18px; }
.janela { position: absolute; left: 160px; top: 62px; width: 540px; height: 300px; border-radius: 14px; background: rgba(251, 250, 247, .97); color: #1d1d1f;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 30px 70px rgba(0, 0, 0, .45); overflow: hidden; }
.janela .tb { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid rgba(0, 0, 0, .07); font-size: 12px; font-weight: 700; color: #3a3a3c; }
.janela .tb i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .janela .tb i:nth-child(2) { background: #febc2e; } .janela .tb i:nth-child(3) { background: #28c840; margin-right: 8px; }
.janela .corpo { padding: 18px 30px; font-size: 16px; line-height: 1.5; }
.janela h4 { margin: 0 0 8px; font-size: 21px; }
.janela p { margin: 0 0 10px; }
.nota-nova:empty::after { content: ""; display: inline-block; width: 2px; height: 1.1em; background: #e0a10a; vertical-align: -.2em; animation: pisca 1.1s steps(1) infinite; }
@keyframes pisca { 50% { opacity: 0; } }
.nota-nova.brilha { animation: aparece .45s ease-out both; }
@keyframes aparece { from { opacity: 0; } }

.ilha { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 200px; height: 30px; background: #000; color: #fff; border-radius: 0 0 12px 12px;
  transition: width .55s var(--mola), height .55s var(--mola), border-radius .45s ease, box-shadow .3s; z-index: 2; font-size: 13px; }
.ilha::before, .ilha::after { content: ""; position: absolute; top: 0; width: 8px; height: 8px; }
.ilha::before { left: -8px; background: radial-gradient(circle at 0 100%, transparent 7.5px, #000 8px); }
.ilha::after { right: -8px; background: radial-gradient(circle at 100% 100%, transparent 7.5px, #000 8px); }
.ilha .dentro { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.ilha .simbolo { position: absolute; left: 10px; top: 0; width: 38px; height: 30px; }
.ilha .orelha-dir { position: absolute; right: 14px; top: 0; height: 30px; display: flex; align-items: center; color: #C46BFF; }
.ilha .app-notas { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(#ffd54a 0 32%, #fff 32%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.ilha .pulsa { animation: pulsa-icone 1s ease-in-out infinite; display: flex; }
@keyframes pulsa-icone { 50% { opacity: .45; } }
.ilha[data-fase="ouvindo"] { width: 250px; box-shadow: 0 2px calc(10px + var(--voz, 0) * 22px) rgba(196, 107, 255, calc(.35 + var(--voz, 0) * .5)); }
.ilha[data-fase="agente"] { width: 420px; height: 100px; border-radius: 0 0 22px 22px; box-shadow: 0 2px calc(10px + var(--voz, 0) * 22px) rgba(196, 107, 255, calc(.35 + var(--voz, 0) * .5)); }
.ilha[data-fase="pensando"] { width: 420px; height: 128px; border-radius: 0 0 22px 22px; }
.ilha[data-fase="confirmar"] { width: 460px; height: 186px; border-radius: 0 0 26px 26px; }
.ilha[data-fase="feito"] { width: 300px; }
.ilha .camada { position: absolute; left: 0; right: 0; top: 30px; padding: 6px 20px 0; opacity: 0; transform: scale(.94); transform-origin: 50% 0; filter: blur(4px);
  transition: opacity .2s ease, transform .45s var(--mola), filter .25s ease; pointer-events: none; }
.ilha[data-fase="agente"] .camada.pedido-c, .ilha[data-fase="pensando"] .camada.pedido-c, .ilha[data-fase="confirmar"] .camada.conf-c { opacity: 1; transform: none; filter: none; transition-delay: .08s; pointer-events: auto; }
.pedido { font-size: 15px; line-height: 1.35; font-weight: 500; }
.pp, .pf { opacity: .15; transition: opacity .15s; }
.pp.dita, .pf.dita { opacity: 1; }
.ilha[data-fase="pensando"] .pedido { opacity: .55; transition: opacity .3s; }
.etiqueta { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; height: 26px; padding: 0 12px 0 9px; border-radius: 13px; background: rgba(255, 255, 255, .1);
  font-size: 12px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .4s var(--mola); }
.etiqueta.visivel { opacity: 1; transform: none; }
.etiqueta span { background: linear-gradient(90deg, rgba(255, 255, 255, .55) 40%, #fff 50%, rgba(255, 255, 255, .55) 60%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brilho-texto 1.6s linear infinite; }
@keyframes brilho-texto { from { background-position: 100% 0; } to { background-position: 0 0; } }
.conf-c .linha { display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.conf-c .quad { width: 38px; height: 38px; border-radius: 10px; background: #ff9f0a; display: grid; place-items: center; color: #fff; flex: none; }
.conf-c b { display: block; font-size: 15px; }
.conf-c small { color: rgba(255, 255, 255, .5); font-size: 12.5px; }
.conf-c .botoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.conf-c button { font: 600 12.5px -apple-system, sans-serif; border: 0; border-radius: 10px; height: 30px; padding: 0 14px; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: transform .15s, filter .15s; }
.conf-c button.confirmar { background: #2fbf71; }
.conf-c button.apertado { transform: scale(.94); filter: brightness(1.25); }
.feito-texto { position: absolute; left: 0; right: 0; top: 0; height: 30px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 12.5px;
  opacity: 0; transform: scale(.9); filter: blur(3px); transition: opacity .2s, transform .4s var(--mola), filter .2s; }
.feito-texto .fraco { color: rgba(255, 255, 255, .5); font-weight: 500; }
.feito-texto .ok { width: 17px; height: 17px; border-radius: 50%; background: #2fbf71; display: grid; place-items: center; }
.ilha[data-fase="feito"] .feito-texto { opacity: 1; transform: none; filter: none; transition-delay: .1s; }
.ilha[data-fase="feito"] .simbolo, .ilha[data-fase="feito"] .orelha-dir { opacity: 0; }
.ilha .simbolo, .ilha .orelha-dir { transition: opacity .2s; }
.bolha { position: absolute; left: 50%; bottom: 34px; transform: translate(-50%, 24px) scale(.92); opacity: 0; display: flex; align-items: center; gap: 12px; max-width: 760px;
  padding: 9px 22px 9px 9px; border-radius: 30px; background: rgba(12, 12, 20, .8); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  font-size: 18px; font-weight: 500; white-space: nowrap; transition: opacity .25s, transform .5s var(--mola); }
.bolha.visivel { opacity: 1; transform: translate(-50%, 0); }
.bolha .mic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); flex: none;
  box-shadow: 0 0 0 calc(2px + var(--voz, 0) * 6px) rgba(196, 107, 255, calc(.25 + var(--voz, 0) * .5)); }
.pf { display: inline-block; max-width: 140px; margin-right: .28em; overflow: hidden; vertical-align: bottom; transition: opacity .15s, max-width .35s ease, margin .35s ease; }
.pf:last-child { margin-right: 0; }
.pf.riscado { text-decoration: line-through 2px #FF7A59; color: #ffb4a3; }
.pf.some { max-width: 0; opacity: 0; margin-right: 0; }
.demo .controles { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.demo .modos { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--vidro); border: 1px solid var(--linha); }
.demo .modos button { border: 0; background: none; color: var(--suave); font: 600 13px var(--texto-fonte); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.demo .modos button[aria-selected="true"] { background: rgba(255, 255, 255, .12); color: var(--texto); }
.segurar { display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 10px; border-radius: 999px; border: 1px solid var(--linha); background: var(--vidro); color: var(--texto);
  font: 600 14px var(--texto-fonte); cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; transition: transform .2s var(--mola), box-shadow .2s; }
.segurar .teclas-demo { display: flex; gap: 4px; }
.demo.ativo .segurar { transform: scale(.97); box-shadow: 0 0 0 2px rgba(196, 107, 255, .6), 0 0 30px rgba(196, 107, 255, .45); }
.demo.ativo .segurar kbd { transform: translateY(2px); border-bottom-width: 1px; background: rgba(196, 107, 255, .2); }
.demo .dica { font-size: 13px; color: var(--suave); }
@media (max-width: 640px) { .demo .controles { justify-content: center; } .demo .dica { width: 100%; text-align: center; } }
@media (prefers-reduced-motion: reduce) {
  .abertura canvas, .abertura .onda, .ola span, .entra { animation: none; }
  .abertura .onda { opacity: 0; }
  [data-revelar] { opacity: 1; transform: none; }
  .gesto.visivel kbd { animation: none; }
}
