/* AZ Launcher, v2 (lançamento). Mesma identidade do teaser: azul-marinho do ícone, Figtree no texto,
   Instrument Serif nos títulos. Fundo liso #1F3148 atrás de todo "AZ" (a margem do Z tem essa cor). */
@font-face { font-family: "Figtree"; font-weight: 300 600; font-display: swap; src: url(fonts/figtree.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-display: swap; src: url(fonts/instrument-serif.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-display: swap; src: url(fonts/instrument-serif-italic.woff2) format("woff2"); }

:root {
  --navy: #1F3148;
  --ink: #FFFFFF;
  --soft: rgba(255, 255, 255, .64);
  --faint: rgba(255, 255, 255, .36);
  --line: rgba(255, 255, 255, .14);
  --display: "Instrument Serif", Georgia, serif;
  --body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  --header: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--navy); color: var(--ink); scroll-padding-top: var(--header); overflow-y: scroll; }
body { font: 300 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--soft); outline-offset: 3px; border-radius: 4px; }

/* O "AZ" (preenchido pelo intro.js) */
.mark { display: block; height: auto; overflow: visible; cursor: pointer; }
.mark path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.mark .a, .mark .z { stroke: var(--ink); stroke-width: 31; }
.mark .halo { stroke: var(--navy); stroke-width: 61; }

/* Cabeçalho: fundo liso (o logo tem a margem do Z) */
.top { position: fixed; inset: 0 0 auto 0; z-index: 5; height: var(--header); background: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo .mark { width: 54px; }
.logo span { font-weight: 500; font-size: 15px; letter-spacing: .02em; }
.lang-select { font: inherit; font-size: 13px; color: var(--ink); background: var(--navy);
  border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; }

/* Abertura: o "AZ" grande no centro, que depois vai para o logo */
/* Sem JS (sem a classe "js" no <html>): nada fica escondido e não há abertura. */
.intro { display: none; }
.js .intro { position: fixed; inset: 0; z-index: 10; background: var(--navy); display: grid; place-items: center; }
.js .landed .intro { display: none; }
.intro .mark { width: min(78vw, 420px); transform-origin: center; }
.intro .mark path { stroke-dashoffset: 1; }
.intro.leaving { background: transparent; pointer-events: none; transition: background .5s; }
.js body:not(.landed) .top .logo .mark { visibility: hidden; }
.js main, .js footer { opacity: 0; transition: opacity .8s ease .15s; }
.js body.ready main, .js body.ready footer { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .intro { display: none; }
  .top .logo .mark { visibility: visible !important; }
  .js main, .js footer { opacity: 1; transition: none; }
}

/* Seções */
main { padding-top: var(--header); }
.section { padding: clamp(56px, 10vw, 112px) var(--gutter); max-width: 1120px; margin: 0 auto; }
.section-title { font: 400 clamp(36px, 6vw, 60px)/1.04 var(--display); text-wrap: balance; }
.section-title em { color: var(--soft); }

/* Nota das marcas, no fim do conteúdo (acima do rodapé) */
.marks { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter) 28px; font-size: 12.5px; color: var(--faint); text-wrap: balance; }

/* Rodapé (igual na política e nas ideias) */
footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 28px var(--gutter) 36px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }
footer p { flex: 1 1 280px; max-width: 34em; text-wrap: balance; }
footer .meta { display: flex; gap: 18px; flex-wrap: wrap; flex: none; }
footer a { color: var(--soft); text-decoration: none; border-bottom: 1px solid var(--line); }
footer a:hover { color: var(--ink); }
@media (max-width: 620px) { footer { justify-content: center; text-align: center; } footer .meta { justify-content: center; flex: 1 1 100%; } }

/* Topo: texto e celular lado a lado (no celular, um embaixo do outro) */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: center;
  padding-top: clamp(40px, 8vw, 96px); }
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.hero-title { font: 400 clamp(44px, 7.2vw, 84px)/1 var(--display); letter-spacing: -.01em; text-wrap: balance; hyphens: auto; }
.hero-title em { color: var(--soft); }
.steps { list-style: none; display: grid; gap: 14px; max-width: 34em; }
.steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: baseline; color: var(--soft); }
.steps span { font: italic 24px/1 var(--display); color: var(--ink); }
.ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.play img { display: block; height: 62px; width: auto; margin: -9px -10px; }
/* Ko-fi: o roxo do botão oficial deles, mesma altura visível do selo do Google Play */
.kofi { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px 0 14px; border-radius: 10px;
  background: #8b73f5; color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; transition: filter .2s; }
.kofi:hover { filter: brightness(1.08); }
.kofi svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Fim da página: chamada final com os mesmos botões */
.closing { text-align: center; display: grid; justify-items: center; gap: 14px; }
.closing p { color: var(--soft); }
.closing .ctas { justify-content: center; margin-top: 14px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .steps li { text-align: left; }
  .ctas { justify-content: center; }
}

/* O celular */
.phone { width: min(280px, 72vw); aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 10px; background: #0D1520; justify-self: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 80px rgba(0, 0, 0, .35); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: linear-gradient(180deg, #2B3F57, #1A2838);
  container-type: inline-size; text-align: left; }
.screen .clock, .screen .typed { position: absolute; left: 7%; right: 7%; top: 9%; transition: opacity .35s; }
.screen .clock b, .screen .typed { display: block; font: 300 16cqw/1 var(--body); }
.screen .clock small { display: block; font-size: 4.4cqw; color: var(--soft); margin-top: 1.5cqw; }
.screen .typed { opacity: 0; }
.screen .rows { position: absolute; left: 7%; right: 6%; top: 25%; bottom: 15%; display: grid; grid-template-rows: repeat(5, 1fr); transition: opacity .3s; }
.screen .row { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; font-size: 6.2cqw; font-weight: 400; text-align: left; }
.screen .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen .n b { font-weight: 600; }
.screen .n small { color: var(--faint); font-size: 4.6cqw; }
.screen .dot { width: 14cqw; height: 14cqw; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 5.6cqw; font-weight: 600; }
.screen .dot.person { background: rgba(255, 255, 255, .1); }
.screen .dot.person svg { width: 60%; fill: none; stroke: var(--soft); stroke-width: 1.6; }
.screen .dock { position: absolute; left: 6%; right: 6%; bottom: 4%; display: flex; justify-content: space-between; }
.screen .dock .dot { width: 12cqw; height: 12cqw; }
.screen .dock .apps { background: transparent; border: 1.5px solid var(--soft); }
.screen .ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Escondido fora da escrita: a ponta redonda de um traço ainda vazio aparece como um pontinho. */
.screen .ink path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.phone[data-state="writing"] .ink path { opacity: 1; }
.phone[data-state="writing"] .ink path { transition: stroke-dashoffset .9s ease-in-out; stroke-dashoffset: 0; }
.phone[data-state="filtered"] .ink path { stroke-dashoffset: 0; opacity: 0; transition: opacity .3s; }
.phone[data-state="filtered"] .clock { opacity: 0; }
.phone[data-state="filtered"] .typed { opacity: 1; }

/* Seção do Z: o "AZ" se desenha quando aparece, com as legendas do nome */
.zsec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.zmark .mark { width: 100%; max-width: 400px; margin: 0 auto; }
.zsec.waiting .zmark .mark path { stroke-dashoffset: 1; }
.caps { display: flex; justify-content: space-between; max-width: 400px; margin: 12px auto 0; font-size: 14px; color: var(--faint); }
.caps span { transition: opacity .6s; }
.zsec.waiting .caps span { opacity: 0; }
.zsec .caps span.on { opacity: 1; }
.zcopy { display: grid; gap: 18px; min-width: 0; }
.zcopy p { color: var(--soft); max-width: 46ch; }
.zcopy ul { list-style: none; display: grid; gap: 10px; }
.zcopy li { position: relative; padding-left: 20px; }
.zcopy li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--soft); }
.zcopy .fine { font-size: 14px; color: var(--faint); }
@media (max-width: 760px) { .zsec { grid-template-columns: 1fr; } }

/* O AZ no dia a dia: carrossel de vídeos curtos dentro da moldura do celular. A faixa rola de lado,
   cada cena para no centro (scroll-snap) e as setas e bolinhas embaixo levam de uma cena a outra. */
#daily .section-title, .daily-note { text-align: center; }
.scenes { --card: min(280px, 64vw); display: flex; gap: clamp(20px, 4vw, 48px); overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: 8px calc(50% - var(--card) / 2) 4px; margin: clamp(28px, 5vw, 48px) calc(-1 * var(--gutter)) 0;
  scrollbar-width: none; }
.scenes::-webkit-scrollbar { display: none; }
.scene { flex: 0 0 var(--card); scroll-snap-align: center; display: grid; gap: 10px; justify-items: center;
  align-content: start; text-align: center; min-width: 0; transition: opacity .4s; }
.scene:not(.current) { opacity: .45; }
.scene .phone { width: 100%; margin-bottom: 14px; }
.scene h3 { font: 400 26px/1.15 var(--display); }
.scene p { color: var(--soft); font-size: 15.5px; }
.video-phone .screen { background: #000; }
.video-phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-btn { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--ink);
  background: rgba(31, 49, 72, .7); cursor: pointer; }
.play-btn::before { content: ""; position: absolute; left: 26px; top: 20px; border: 12px solid transparent; border-left: 18px solid var(--ink); border-right: 0; }
.scenes-nav { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 26px; }
.scenes-nav button { font: inherit; color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 50%;
  width: 40px; height: 40px; cursor: pointer; display: grid; place-items: center; }
.scenes-nav button:disabled { opacity: .3; cursor: default; }
.scenes-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dots { display: flex; gap: 10px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1.5px solid var(--soft); background: none; }
.dots button[aria-current="true"] { background: var(--ink); border-color: var(--ink); }
.daily-note { margin-top: 28px; font-size: 13px; color: var(--faint); }
@media (prefers-reduced-motion: reduce) { .scenes { scroll-behavior: auto; } .scene { transition: none; } }
  .scene .phone { justify-self: center; width: min(260px, 70vw); }
}
