/*
  VOICE   calma, como o app: um caderno japonês, muito ar, poucos tons.
  IDEA    o canto da ōruri vira a linha de voz do app, e a linha vira texto.
  PICTURE a ōruri do ícone canta no galho dourado e voa com a rolagem até o menu e até o fim.
  COLOUR  azul ruri dominante (#1E50A2 / #0F2350), branco, dourado só em detalhes (Theme.swift).
  TYPE    serifa do banner (Source Serif 4) nos títulos, fonte do sistema no corpo, Shippori Mincho em オオルリ.
*/
:root {
  color-scheme: light dark;
  --bg: light-dark(#FFFFFF, #0D1220);
  --soft: light-dark(#F4F6FA, #111829);
  --card: light-dark(#FFFFFF, #161D2E);
  --ink: light-dark(#1A1F2B, #E8ECF4);
  --muted: light-dark(#5D6573, #A2ABBC);
  --brand: light-dark(#1E50A2, #6E95E0);
  --deep: light-dark(#0F2350, #BCD0F5);
  --brand-soft: light-dark(#E6EDF8, #17233D);
  --gold: light-dark(#C99A1E, #E3B94A);
  --line: light-dark(rgb(0 0 0 / .09), rgb(255 255 255 / .1));
  --rec: light-dark(#D94A3D, #E5675B);
  --navy: linear-gradient(165deg, #2A62C2 0%, #1E50A2 30%, #0F2350 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
/* Safari < 17.5 não tem light-dark(): numa variável o valor é aceito ao ler o CSS e só falha no uso,
   então uma declaração antes não serve; aqui as variáveis recebem as cores do tema claro. */
@supports not (color: light-dark(#fff, #000)) {
  :root { --bg: #FFFFFF; --soft: #F4F6FA; --card: #FFFFFF; --ink: #1A1F2B; --muted: #5D6573; --brand: #1E50A2; --deep: #0F2350; --brand-soft: #E6EDF8; --gold: #C99A1E; --line: rgb(0 0 0 / .09); --rec: #D94A3D; }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16.5px/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.defs { position: absolute; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
/* dourado só sobre o azul-marinho, onde tem contraste; sobre branco o foco é azul */
.hero :focus-visible, .finale :focus-visible, .foot :focus-visible, .nav:not(.stuck) :focus-visible, .code :focus-visible { outline-color: #E3B94A; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 100; background: #fff; color: #0F2350; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 16px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
kbd { display: inline-block; min-width: 1.9em; padding: 1px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); box-shadow: 0 2px 0 var(--line); font: 600 .88em/1.5 var(--mono); text-align: center; color: var(--ink); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; transition: transform .25s var(--ease), background-color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn-light { background: #fff; color: #0F2350; box-shadow: 0 10px 30px -12px rgb(0 0 0 / .5); }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .45); }
.btn-ghost:hover { background: rgb(255 255 255 / .1); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- navegação ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 64px; color: #fff; transition: background-color .35s, color .35s, box-shadow .35s; }
.nav.stuck { color: var(--ink); background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-in { width: min(1180px, 100% - 32px); margin-inline: auto; height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.tile { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(#2A62C2, #14397E); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18), 0 6px 16px -8px rgb(15 35 80 / .8); }
.slot { width: 31px; aspect-ratio: 780 / 455; }
.tile-bird { width: 100%; height: 100%; }
html.anim .tile-bird { opacity: .28; transition: opacity .3s; } /* com animação, quem pousa aqui é o pássaro de verdade */
.nav.has-bird .tile-bird { opacity: 0; }
.wordmark { font: 700 22px/1 var(--serif); letter-spacing: -.01em; }
.nav nav { margin-left: auto; }
.links { display: flex; gap: 26px; }
.links a { color: inherit; text-decoration: none; font-size: 15px; opacity: .82; transition: opacity .2s; }
.links a:hover { opacity: 1; }
@media (max-width: 860px) { .nav nav { display: none; } .btn-sm { margin-left: auto; } }

/* ---------- herói ---------- */
.hero { position: relative; background: var(--navy); color: #fff; padding: 112px 0 0; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 50% 78%, rgb(110 149 224 / .35), transparent 70%), radial-gradient(40% 30% at 85% 10%, rgb(255 255 255 / .08), transparent 70%); }
.hero-text { width: min(900px, 100% - 32px); margin-inline: auto; text-align: center; }
.hero-kicker { color: #E3B94A; font-weight: 600; font-size: 15px; margin-bottom: 18px; }
h1 { font: 700 clamp(46px, 8vw, 104px)/1 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
h1 .w { display: inline-block; }
.lead { margin: 24px auto 0; max-width: 40em; font-size: clamp(17px, 1.6vw, 19px); color: #D5E0F5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; justify-content: center; }

.stage { position: relative; height: clamp(270px, 28vw, 380px); margin-top: clamp(16px, 3vw, 36px); }
.voice { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.voice path { fill: none; stroke: #BCD0F5; stroke-opacity: .55; stroke-width: 3; stroke-linecap: round; }
.voice circle { fill: #E3B94A; }
.perch { position: absolute; left: 50%; bottom: 3%; width: clamp(210px, 25vw, 340px); aspect-ratio: 780 / 455; translate: -50% 0; }
.branch { position: absolute; inset: 0; width: 100%; height: 100%; }

.floaters { position: absolute; inset: 0; width: min(1180px, 100% - 32px); margin-inline: auto; pointer-events: none; }
.par { position: absolute; will-change: transform; }
.par:nth-child(1) { left: 2%; top: 14%; }
.par:nth-child(2) { left: 6%; bottom: 14%; }
.par:nth-child(3) { right: 3%; top: 8%; }
.par:nth-child(4) { right: 6%; bottom: 20%; }
.card { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgb(255 255 255 / .97); color: #1A1F2B; font-size: 14.5px; line-height: 1.3; box-shadow: 0 24px 48px -20px rgb(4 12 36 / .7), 0 0 0 1px rgb(255 255 255 / .5); }
.card strong { display: block; font-weight: 650; }
.card .muted { color: #5D6573; display: block; }
.card kbd { background: #E6EDF8; color: #1E50A2; border-color: #BCD0F5; font-size: 16px; padding: 6px 10px; }
.card svg { width: 26px; color: #1E50A2; }
.c-fix { flex-direction: column; align-items: flex-start; gap: 2px; }
.c-fix s { text-decoration-color: #D94A3D; text-decoration-thickness: 2px; }
.c-fix strong { font: 700 19px/1.2 var(--serif); color: #1E50A2; }
.c-lang { flex-direction: column; align-items: flex-start; gap: 6px; }
.langs { display: flex; gap: 6px; }
.langs b { font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: 8px; background: #E6EDF8; color: #1E50A2; }
.bars { display: flex; align-items: center; gap: 3px; height: 26px; }
.bars i, .b-bars i { width: 3px; border-radius: 2px; background: currentColor; height: calc(var(--h) * 1px); }
.c-key .bars { color: #1E50A2; }
@media (max-width: 720px) {
  .par:nth-child(3), .par:nth-child(4) { display: none; }
  .par:nth-child(1) { left: 0; top: 2%; }
  .par:nth-child(2) { left: auto; right: 0; bottom: auto; top: 4%; }
  .card { font-size: 13px; padding: 9px 12px; gap: 9px; }
  .c-fix strong { font-size: 16px; }
  .card kbd { font-size: 14px; padding: 4px 8px; }
  .c-key .bars { display: none; }
}

/* ---------- o pássaro ---------- */
.perch > .actor { position: absolute; inset: 0; }
.actor svg { width: 100%; height: auto; overflow: visible; }
.actor.free { position: fixed; left: 0; top: 0; z-index: 60; transform-origin: 0 0; will-change: transform; pointer-events: none; }
.pose { transform-origin: 50% 60%; transition: transform .35s var(--ease); }
.actor .song path:nth-child(2) { opacity: .7; }
.actor .song path:nth-child(3) { opacity: .45; }
.actor .wing, .actor .wing-back, .actor .beak-low { transform-box: fill-box; }
.actor .wing, .actor .wing-back { transform-origin: 88% 8%; }
.actor .beak-low { transform-origin: 0% 20%; }
.actor .wing-back { opacity: 0; }
.actor .legs, .actor .song { transition: opacity .25s; }
html.anim .actor[data-pose="sing"] .song path { animation: song 1.1s var(--ease) infinite; }
html.anim .actor[data-pose="sing"] .song path:nth-child(2) { animation-delay: .14s; }
html.anim .actor[data-pose="sing"] .song path:nth-child(3) { animation-delay: .28s; }
html.anim .actor[data-pose="sing"] .beak-low { animation: beak .55s ease-in-out infinite; }
html.anim .actor[data-pose="rest"] .song,
html.anim .actor[data-pose="fly"] .song,
html.anim .actor[data-pose="fly"] .legs { opacity: 0; }
html.anim .actor[data-pose="fly"] .wing { animation: flap .26s ease-in-out infinite alternate; }
html.anim .actor[data-pose="fly"] .wing-back { opacity: 1; animation: flap-back .26s ease-in-out infinite alternate; }
html.anim .actor[data-pose="rest"] .eye { animation: blink 4.5s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes song { 0%, 100% { opacity: .1; } 35% { opacity: 1; } }
@keyframes beak { 0%, 100% { rotate: 0deg; } 45% { rotate: 16deg; } }
@keyframes flap { from { rotate: 8deg; } to { rotate: -62deg; scale: 1 1.12; } }
@keyframes flap-back { from { rotate: -10deg; } to { rotate: -95deg; } }
@keyframes blink { 0%, 94%, 100% { scale: 1 1; } 97% { scale: 1 .1; } }

/* entrada do herói, só CSS */
html.anim .hero-kicker, html.anim h1 .w, html.anim .lead, html.anim .hero .cta-row { animation: rise 1s var(--ease) both; }
html.anim h1 .w:nth-child(1) { animation-delay: .08s; }
html.anim h1 .w:nth-child(2) { animation-delay: .18s; }
html.anim h1 .w:nth-child(3) { animation-delay: .28s; }
html.anim .lead { animation-delay: .4s; }
html.anim .hero .cta-row { animation-delay: .5s; }
html.anim .card { animation: pop .9s var(--ease) both, bob 6s ease-in-out 1s infinite; }
html.anim .par:nth-child(1) .card { animation-delay: .6s, 1.5s; }
html.anim .par:nth-child(2) .card { animation-delay: .75s, 2.3s; }
html.anim .par:nth-child(3) .card { animation-delay: .9s, 1.9s; }
html.anim .par:nth-child(4) .card { animation-delay: 1.05s, 2.7s; }
html.anim .bars i, html.anim .b-bars i { animation: bar .9s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes rise { from { opacity: 0; translate: 0 36px; filter: blur(6px); } }
@keyframes pop { from { opacity: 0; scale: .85; translate: 0 24px; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes bar { from { scale: 1 .25; } }

/* ---------- seções ---------- */
.band { padding: clamp(80px, 11vw, 148px) 0; }
.band-soft { background: var(--soft); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
h2 { font: 700 clamp(32px, 4.6vw, 54px)/1.06 var(--serif); letter-spacing: -.02em; color: var(--deep); text-wrap: balance; }
.sub { margin-top: 16px; font-size: 17.5px; color: var(--muted); max-width: 40em; }
h3 { font-size: 18.5px; line-height: 1.3; font-weight: 650; }

html.anim [data-reveal] { opacity: 0; translate: 0 32px; transition: opacity .9s var(--ease), translate .9s var(--ease), transform .3s var(--ease), border-color .3s; transition-delay: calc(var(--d, 0) * 90ms); }
html.anim [data-reveal].in { opacity: 1; translate: 0 0; }

/* ---------- demonstração ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.steps { display: grid; gap: 10px; }
.steps li { display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); color: var(--muted); transition: background-color .4s, border-color .4s, color .4s; }
.steps strong { display: block; color: var(--ink); font-weight: 650; margin-bottom: 2px; }
.steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--soft); color: var(--muted); transition: background-color .4s, color .4s; }
.steps li.on { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, transparent); color: var(--ink); }
.steps li.on .n { background: var(--brand); color: var(--bg); }

.window { position: relative; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgb(15 35 80 / .45); margin-bottom: 34px; }
.titlebar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.titlebar i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.titlebar span { margin: 0 auto; font-size: 13.5px; color: var(--muted); font-weight: 600; translate: -24px 0; }
.mail { padding: 8px 24px 24px; }
.to { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.body { padding-top: 18px; min-height: 96px; font-size: clamp(17px, 2vw, 20px); }
.pasted { border-radius: 6px; transition: opacity .25s; }
.caret { display: inline-block; width: 2px; height: 1.15em; vertical-align: -3px; background: var(--brand); margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
html:not(.anim) .caret, html:not(.anim) .b-dots i { animation: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.said { margin: 0 24px; padding: 12px 0 30px; border-top: 1px dashed var(--line); font-size: 15px; font-style: italic; color: var(--ink); min-height: 4.6em; }
.bubble { position: absolute; left: 50%; bottom: -24px; translate: -50% 0; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 8px; border-radius: 24px; background: rgb(23 23 23 / .94); color: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 16px 32px -12px rgb(0 0 0 / .5); transition: opacity .35s, scale .35s var(--ease); }
.b-icon { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(#2A62C2, #14397E); display: grid; place-items: center; }
.b-icon svg { width: 27px; height: 16px; }
.b-bars { display: flex; align-items: center; gap: 3px; height: 26px; color: #8DADEA; }
.b-dots { display: none; gap: 5px; }
.b-dots i { width: 6px; height: 6px; border-radius: 50%; background: #8DADEA; animation: dot 1s ease-in-out infinite; }
.b-dots i:nth-child(2) { animation-delay: .15s; }
.b-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .25; translate: 0 -3px; } }
.b-ok { display: none; font-weight: 650; font-size: 14.5px; color: #E3B94A; }
.fnkey { position: absolute; right: 16px; top: 54px; padding: 8px 12px; border-radius: 9px; font: 700 15px/1 var(--mono); background: var(--soft); color: var(--muted); border: 1px solid var(--line); box-shadow: 0 3px 0 var(--line); transition: all .2s; }
.demo[data-phase="idle"] .pasted, .demo[data-phase="hold"] .pasted, .demo[data-phase="speak"] .pasted, .demo[data-phase="work"] .pasted { opacity: 0; }
html.anim .demo[data-phase="idle"] .bubble { opacity: 0; scale: .85; }
html.anim .demo[data-phase="idle"] .said, html.anim .demo[data-phase="hold"] .said { color: transparent; }
.demo[data-phase="hold"] .fnkey, .demo[data-phase="speak"] .fnkey { background: var(--brand); color: var(--bg); translate: 0 3px; box-shadow: none; }
.demo[data-phase="work"] .b-bars, .demo[data-phase="pasted"] .b-bars { display: none; }
.demo[data-phase="work"] .b-dots { display: flex; }
.demo[data-phase="pasted"] .b-ok { display: block; }
html.anim .demo[data-phase="pasted"] .pasted { animation: flash 2.4s var(--ease); }
@keyframes flash { 0% { background: color-mix(in srgb, var(--gold) 40%, transparent); } 100% { background: transparent; } }
@media (max-width: 860px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  .window { order: -1; }
}

/* ---------- seção presa: o texto do jeito que você quis dizer ---------- */
.track { padding: clamp(80px, 11vw, 140px) 0; background: var(--brand-soft); }
.fix-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.tabs { display: none; }
.fix-cards { display: grid; gap: 16px; }
.fix { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 60px -40px rgb(15 35 80 / .5); }
.label { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.spoken { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; margin-bottom: 22px; }
/* risco por fundo: funciona quando a frase quebra em duas linhas */
.spoken s { text-decoration: none; color: color-mix(in srgb, var(--ink) 40%, transparent); background: linear-gradient(var(--rec), var(--rec)) no-repeat 0 58% / 100% 2.5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.written { font: 700 clamp(26px, 3.4vw, 38px)/1.15 var(--serif); color: var(--brand); }
.note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

html.anim .track { height: 420vh; padding: 0; }
html.anim .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: 64px; }
html.anim .tabs { display: grid; gap: 4px; margin-top: 28px; }
.tabs button { position: relative; display: block; width: 100%; min-height: 48px; text-align: left; padding: 10px 0 12px; border: 0; background: none; font: 600 17px/1.3 var(--sans); color: var(--muted); cursor: pointer; transition: color .3s; }
.tabs button i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); overflow: hidden; }
.tabs button i::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform-origin: left; scale: var(--part, 0) 1; }
.tabs button[aria-selected="true"] { color: var(--deep); }
html.anim .fix-cards { position: relative; display: block; min-height: 340px; }
html.anim .fix { position: absolute; inset: 0 0 auto; opacity: 0; translate: 0 24px; scale: .97; transition: opacity .5s var(--ease), translate .6s var(--ease), scale .6s var(--ease); pointer-events: none; }
html.anim .fix.on { opacity: 1; translate: 0 0; scale: 1; pointer-events: auto; }
html.anim .fix s { transition: color .4s .5s, background-size .5s var(--ease) .45s; color: var(--ink); background-size: 0% 2.5px; }
html.anim .fix.on s { color: color-mix(in srgb, var(--ink) 40%, transparent); background-size: 100% 2.5px; }
html.anim .fix .written { opacity: 0; translate: 0 12px; filter: blur(6px); transition: opacity .6s .95s, translate .6s var(--ease) .95s, filter .6s .95s; }
html.anim .fix.on .written { opacity: 1; translate: 0 0; filter: none; }
@media (max-width: 860px) {
  .fix-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  html.anim .track .sub { display: none; }
  html.anim .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin-top: 14px; }
  .tabs button { font-size: 14.5px; min-height: 44px; padding: 8px 0 10px; }
  html.anim .fix-cards { min-height: 330px; }
  .track h2 { font-size: clamp(28px, 7vw, 40px); }
}

/* ---------- cartões ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card-l { position: relative; overflow: hidden; padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s var(--ease), border-color .3s, opacity .9s var(--ease), translate .9s var(--ease); }
.card-l::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%); }
.card-l:hover { border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.card-l:hover::before { opacity: 1; }
.card-l > * { position: relative; }
.card-l p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.ic { width: 30px; height: 30px; color: var(--brand); margin-bottom: 18px; }
.band-soft .card-l { background: #FFFFFF; background: light-dark(#FFFFFF, #172034); }

.engine h3 { font: 700 26px/1.2 var(--serif); color: var(--deep); display: flex; align-items: baseline; gap: 10px; }
.engine h3 .muted { font: 500 14px var(--sans); }
.does { display: inline-block; margin: 12px 0 18px !important; padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand) !important; font-weight: 600; font-size: 14px !important; }
.engine dl { margin: 0; }
.engine dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.engine dt { color: var(--muted); flex: none; }
.engine dd { margin: 0; text-align: right; font-weight: 600; }
.engine dd.good { color: var(--brand); }
.pick { margin-top: 28px; color: var(--muted); }
.pick strong { color: var(--ink); }
.help .card-l { display: flex; flex-direction: column; }
.help-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: auto; padding-top: 14px; font-weight: 650; text-decoration: none; }
.help-link span { transition: translate .25s var(--ease); }
.help-link:hover span { translate: 3px 0; }

/* ---------- captura do app ---------- */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); margin-bottom: 28px; }
.seg button { min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: none; font: 600 15px var(--sans); color: var(--muted); cursor: pointer; transition: background-color .3s, color .3s; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px -2px rgb(0 0 0 / .2); }
.shot-wrap { perspective: 1600px; }
.shot { position: relative; margin: 0; aspect-ratio: 1800 / 790; border-radius: clamp(10px, 1.6vw, 18px); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 60px 100px -50px rgb(15 35 80 / .55); transform-origin: 50% 0; transform: rotateX(var(--tilt, 0deg)) scale(var(--sc, 1)); background: var(--soft); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.shot img.on { opacity: 1; }

/* ---------- números ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stats li { border-top: 2px solid var(--brand); padding-top: 18px; }
.stats strong { display: block; font: 700 clamp(52px, 7vw, 88px)/1 var(--serif); color: var(--brand); font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 10px; color: var(--muted); font-size: 15.5px; }
code { font-family: var(--mono); font-size: .92em; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- começar ---------- */
.start-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.code { border-radius: 18px; overflow: hidden; background: #0D1220; color: #E8ECF4; box-shadow: 0 40px 80px -40px rgb(15 35 80 / .6); }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 18px; border-bottom: 1px solid rgb(255 255 255 / .08); color: #A2ABBC; font-size: 13.5px; }
.copy { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: rgb(255 255 255 / .1); color: #fff; font: 600 14px var(--sans); cursor: pointer; transition: background-color .2s; }
.copy:hover { background: rgb(255 255 255 / .18); }
pre { margin: 0; padding: 22px; overflow-x: auto; }
pre code { font-size: 14.5px; line-height: 1.75; }
.howto { counter-reset: s; display: grid; gap: 18px; }
.howto li { counter-increment: s; position: relative; padding-left: 46px; min-height: 32px; padding-top: 3px; }
.howto li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14.5px; }
@media (max-width: 860px) { .start-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- final ---------- */
.finale { background: var(--navy); color: #fff; padding: clamp(80px, 10vw, 128px) 0 clamp(96px, 12vw, 150px); text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.finale::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 45% at 50% 20%, rgb(110 149 224 / .35), transparent 70%); }
.perch-end { position: relative; left: auto; bottom: auto; translate: none; width: clamp(180px, 24vw, 280px); margin: 0 auto 12px; }
.finale h2 { color: #fff; font-size: clamp(42px, 6.4vw, 78px); }
.jp { font: 600 clamp(20px, 2.4vw, 28px)/1 "Shippori Mincho", "Hiragino Mincho ProN", serif; color: #E3B94A; letter-spacing: .35em; margin-top: 16px; padding-left: .35em; }
.finale .sub { color: #C9D8F2; margin: 22px auto 0; }
.cta-row.center { margin-top: 36px; }

.foot { background: #0B1A3D; color: #A9BCE0; padding: 28px 0 36px; font-size: 14.5px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.foot strong { color: #fff; }
.foot ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: #fff; text-decoration: none; opacity: .85; }
.foot a:hover { opacity: 1; text-decoration: underline; }
.nw { white-space: nowrap; }
