/* Aluneo. Nenhuma fonte, folha, script ou analytics de terceiros: tudo o que
   a página carrega sai deste domínio. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ base */

:root {
  /* Marca, fixada em docs/ALUNEO_V1_PRODUCT_AND_DESIGN_SPEC.md. */
  --ink: #061f46;
  --cyan: #00e4f5;
  --cyan-deep: #00baf5;
  --blue: #1261f4;

  /* Tons de profundidade derivados da própria marca. #001836 é o matte do
     aluneo_wordmark_dark.png, amostrado do asset aprovado. */
  --ink-deep: #001836;
  --ink-lift: #0d2b56;
  --bubble: #123863;
  /* Matte sampled from the approved dark brand icon. */
  --brand-icon-matte: #011540;

  --white: #ffffff;
  --soft: #aac2df;
  --softer: #8ba6c8;
  --line: rgba(255, 255, 255, .13);

  --gradient: linear-gradient(120deg, var(--cyan) 0%, var(--cyan-deep) 48%, var(--blue) 100%);

  /* Escala com razão ~1.28. Uma escala plana lê como indecisa. */
  --t--1: clamp(.8rem, .78rem + .07vw, .84rem);
  --t-0: clamp(.94rem, .92rem + .1vw, 1rem);
  --t-1: clamp(1.1rem, 1.05rem + .2vw, 1.22rem);
  --t-2: clamp(1.3rem, 1.22rem + .35vw, 1.5rem);
  --t-3: clamp(1.56rem, 1.4rem + .68vw, 1.94rem);
  --t-4: clamp(1.9rem, 1.6rem + 1.3vw, 2.62rem);
  --t-5: clamp(2.3rem, 1.85rem + 1.95vw, 3.4rem);

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;

  --r: 12px;
  --r-pill: 999px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: 180ms;

  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-synthesis-weight: none;
}

*, *::before, *::after { box-sizing: border-box; }

html { min-width: 320px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-size: var(--t-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .98;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
li { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: .2em; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: var(--s1); }

.skip {
  position: absolute;
  z-index: 50;
  top: var(--s3);
  left: var(--s3);
  padding: var(--s3) var(--s4);
  border-radius: var(--r);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-220%);
}
.skip:focus { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

/* Largura viva: respira em tela grande em vez de travar em 1120px. */
.top-in, .stage, .creed, .base, .content-section {
  width: min(1320px, calc(100% - 2 * var(--s6)));
  margin-inline: auto;
}

/* ------------------------------------------------------------------- topo */

/* Faixa de largura total no tom do matte do wordmark (#001836, amostrado do
   asset aprovado): o retângulo opaco do PNG deixa de ser um bloco solto e
   passa a ser a própria barra. Nada é recolorido nem recortado. */
.top { background: var(--ink-deep); }
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  padding-block: var(--s2);
}

/* Símbolo An e nome em texto: dispensa a frase pequena incorporada no wordmark. */
.mark {
  position: relative;
  display: block;
  flex: none;
  width: 172px;
  height: 40px;
  overflow: hidden;
  text-decoration: none;
}
.brand-wordmark {
  position: absolute;
  top: calc(50% + 4.25px);
  left: 50%;
  width: 275px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

/* A abertura usa os wordmarks oficiais claros. O blend lighten elimina o
   matte escuro do PNG sobre o fundo azul da página; a janela recorta o slogan
   incorporado para que o texto digitado apareça uma única vez. */
html.intro-active .brand-intro { animation: intro-exit 260ms ease-in 1740ms both; }
html.intro-active .brand-intro-wordmark {
  clip-path: inset(0 100% 0 0);
  animation: wordmark-reveal 720ms var(--ease) 340ms both;
}
html.intro-active .brand-intro-symbol {
  animation: symbol-arrive-expand 1.18s var(--ease) both;
}
html.intro-active .brand-intro-tagline {
  max-width: 0;
  animation: tagline-type 780ms steps(28, end) 820ms both,
    caret-retire 120ms linear 1640ms forwards;
}
html.intro-finished .brand-intro { pointer-events: none; }

@keyframes symbol-arrive-expand {
  0% { left: 50%; opacity: 0; transform: translateX(-50%) scale(.88); }
  24% { left: 50%; opacity: 1; transform: translateX(-50%) scale(1); }
  100% { left: 0; opacity: 0; transform: translateX(0) scale(.96); }
}
@keyframes wordmark-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes tagline-type {
  from { max-width: 0; }
  to { max-width: 28ch; }
}
@keyframes caret-retire {
  to { border-color: transparent; }
}
@keyframes intro-exit {
  to { opacity: 0; visibility: hidden; }
}

.top-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;  /* alvo interativo mínimo da spec */
  padding-inline: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--white);
  font-size: var(--t--1);
  font-weight: 700;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.top-cta:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------------------------------------------------------- bloco de abertura */

.act-lead {
  min-height: min(640px, calc(100svh - 64px));
  padding-block: 0;
}
.act-lead h1 {
  max-width: 16ch;
  font-size: var(--t-5);
  letter-spacing: -.05em;
}

.say {
  max-width: 44ch;
  margin-top: var(--s6);
  color: var(--soft);
  font-size: var(--t-1);
  line-height: 1.45;
}

.tg { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }
.go .tg { color: var(--ink); }

.go {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  justify-self: start;  /* item de grid estica por padrão */
  width: fit-content;
  min-height: 50px;
  margin-top: var(--s6);
  padding-inline: var(--s5);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink);
  font-size: var(--t-0);
  font-weight: 800;
  text-decoration: none;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.go:hover {
  box-shadow: 0 0 0 2px rgba(0, 228, 245, .6), 0 18px 40px rgba(0, 0, 0, .45);
  color: var(--ink);
  transform: translateY(-2px);
}
.go:active { transform: none; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s5);
  margin-top: var(--s6);
}
.hero-actions .go { margin-top: 0; }
.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--cyan);
  font-size: var(--t--1);
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.tiny {
  max-width: 44ch;
  margin-top: var(--s6);
  color: var(--softer);
  font-size: var(--t--1);
}

/* ------------------------------------------------------ palco com o telefone */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 32vw, 400px);
  column-gap: clamp(var(--s7), 4vw, var(--s8));
  row-gap: 0;
  align-items: start;
}
.feature-story, .story-frame { display: contents; }
.stage > .act-lead { grid-column: 1; grid-row: 1; }
.acts { grid-column: 1; grid-row: 2; }
.viewport-measure { position: absolute; width: 0; height: 100svh; visibility: hidden; pointer-events: none; }

.act {
  display: grid;
  min-height: 62vh;
  align-content: center;
  padding-block: var(--s7);
}
.act h2 { max-width: 13ch; font-size: var(--t-4); }
.act .say { font-size: var(--t-1); }
.act-end {
  min-height: 48vh;
  align-content: end;
  /* O CTA e o aparelho terminam na mesma linha quando o sticky é liberado. */
  padding-bottom: var(--phone-inset, var(--s7));
}
.act-end .go { margin-top: var(--s6); }

/* O aparelho fica preso e o texto passa por ele. align-self: start é o que
   permite o sticky: sem isso o item estica até a altura da linha do grid e
   nunca chega a grudar. */
.slot {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 0;
  display: grid;
  height: 100vh;
  align-self: start;
  place-items: center;
}

.phone {
  width: 100%;
  padding: var(--s2);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--ink-deep);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
}
.phone-dot {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-icon-matte);
}
.phone-brand { display: block; width: 34px; height: 34px; border-radius: 50%; object-fit: contain; }
.phone-who { display: flex; align-items: baseline; gap: var(--s2); }
.phone-who b { font-size: var(--t-0); font-weight: 750; }
.phone-who i {
  padding: 2px var(--s2);
  border-radius: var(--s1);
  background: rgba(255, 255, 255, .12);
  color: var(--soft);
  font-size: .66rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.phone-screens {
  position: relative;
  overflow: hidden;
  min-height: 440px;  /* cabe a conversa mais alta mais os inset de 12+24 */
  padding: var(--s3) var(--s4) var(--s5);
  border-radius: 26px;
  background: var(--ink-lift);
}

/* Sem JavaScript a página continua completa: a primeira tela fica visível e
   as outras saem do fluxo, em vez de empilharem seis conversas. */
html:not(.js) .screen:not(:first-child) { display: none; }

.js .screen {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  inset: var(--s3) var(--s4) var(--s5);
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.js .screen.is-on { opacity: 1; }
html:not(.js) .screen { display: flex; flex-direction: column; gap: var(--s3); }

/* ------------------------------------------------------------- mensagens */

.m {
  position: relative;
  max-width: 92%;
  flex: none;  /* sem isto o flex encolhe os balões e corta o conteúdo */
  padding: var(--s3) var(--s4) var(--s5);
  border-radius: var(--r);
  font-size: var(--t--1);
  line-height: 1.45;
}
.m-bot {
  align-self: flex-start;
  border-bottom-left-radius: var(--s1);
  background: var(--bubble);
  color: #edf5ff;
}
.m-you {
  align-self: flex-end;
  border-bottom-right-radius: var(--s1);
  background: var(--blue);
  color: var(--white);
  font-weight: 650;
}

.m-h { display: flex; align-items: center; gap: var(--s2); }
.m-h b { color: var(--white); font-weight: 750; }
.m-s { margin-top: var(--s3); }
.m-s b { color: var(--white); }
.m-l { margin-top: var(--s2); }
.m-q { color: #a4c2e8; }
.m-hi { color: var(--cyan); font-weight: 650; }

.m-list { margin-top: var(--s3); padding-left: var(--s4); }
.m-list li { position: relative; color: #bcd4f0; }
.m-first { margin-top: var(--s2); color: var(--white) !important; }
.m-first:first-child { margin-top: 0; }
.m-first::before { position: absolute; left: calc(var(--s4) * -1); color: var(--cyan); content: "\2022"; }

.m-t {
  position: absolute;
  right: var(--s3);
  bottom: var(--s2);
  color: #8aa9d1;  /* 4,90:1 sobre a bolha; #7f9fc9 dava 4,35:1 e este texto tem 0.66rem */
  font-size: .66rem;
  font-variant-numeric: tabular-nums;
}
/* 94%, não 72%: sobre o azul de marca este texto de 0.66rem precisa de
   4,5:1. A hierarquia vem do peso e do tamanho, não de rebaixar contraste. */
.m-you .m-t { color: rgba(255, 255, 255, .94); font-weight: 400; }

/* As mensagens chegam quando o aparelho entra em cena, uma vez só: mensagem
   chegando é literalmente o que o produto faz. A classe .is-live vem do
   IntersectionObserver, então quem está sem JavaScript nunca entra aqui e vê
   a conversa parada e completa. Como as seis telas animam no mesmo instante
   e só uma está visível, a troca de tela seguinte continua sendo apenas o
   crossfade: nada re-anima a cada bloco. */
@media (prefers-reduced-motion: no-preference) {
  .js .phone.is-live .m { animation: arrive 520ms var(--ease) backwards; }
  .js .phone.is-live .m:nth-child(1) { animation-delay: 60ms; }
  .js .phone.is-live .m:nth-child(2) { animation-delay: 210ms; }
  .js .phone.is-live .m:nth-child(3) { animation-delay: 360ms; }
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
}

/* -------------------------------------------------------- conteúdo adicional */

.content-section {
  padding-block: clamp(var(--s7), 8vw, var(--s8));
  border-top: 1px solid var(--line);
}
.section-intro { max-width: 62ch; }
.eyebrow {
  color: var(--cyan);
  font-size: var(--t--1);
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.section-intro h2 { margin-top: var(--s3); font-size: var(--t-4); }
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin-top: clamp(var(--s6), 6vw, var(--s8));
  border-top: 1px solid var(--line);
}
.step-card {
  position: relative;
  min-width: 0;
  padding: var(--s5) clamp(var(--s4), 2.6vw, var(--s6)) 0;
}
.step-card:first-child { padding-left: 0; }
.step-card + .step-card { border-left: 1px solid var(--line); }
.step-number {
  display: block;
  color: rgba(170, 194, 223, .74);
  font-size: clamp(2.2rem, 3.8vw, 3.25rem);
  font-variant-numeric: tabular-nums;
  font-weight: 560;
  letter-spacing: -.08em;
  line-height: 1;
}
.step-card h3 { margin-top: var(--s5); font-size: var(--t-2); line-height: 1.2; }
.step-card p { max-width: 32ch; margin-top: var(--s2); color: var(--soft); line-height: 1.6; }
.faq {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(var(--s6), 8vw, var(--s8));
}
.faq .section-intro { max-width: 38ch; }
.faq .section-intro h2 { max-width: 10ch; line-height: 1.04; }
.faq-list { max-width: none; margin: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  padding: var(--s4) 52px var(--s4) 0;
  color: var(--white);
  font-size: var(--t-0);
  font-weight: 650;
  letter-spacing: -.015em;
  list-style: none;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  position: absolute;
  right: 0;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: var(--soft);
  background:
    linear-gradient(currentColor 0 0) center / 2px 12px no-repeat,
    linear-gradient(currentColor 0 0) center / 12px 2px no-repeat;
  content: "";
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.faq-item summary:hover { color: var(--cyan); }
.faq-item summary:hover::after,
.faq-item[open] summary::after {
  border-color: rgba(0, 228, 245, .55);
  color: var(--cyan);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > p { max-width: 64ch; padding: 0 52px var(--s5) 0; color: var(--soft); line-height: 1.7; }
.faq-item code { color: var(--cyan); font-family: inherit; font-weight: 700; }

/* ----------------------------------------------------- indicação de instituição */
.institution-interest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(var(--s6), 8vw, var(--s9));
}
.institution-interest .section-intro { max-width: 55ch; }
.institution-interest .section-intro h2 { max-width: 15ch; }
.interest-copy { margin-top: var(--s5); color: var(--soft); font-size: var(--t-1); line-height: 1.6; }
.interest-confirmation {
  display: none;
  min-width: 0;
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--s5);
}
.interest-confirmation:target { display: block; }
.interest-confirmation:target ~ .interest-form { display: none; }
.interest-confirmation h3 {
  margin: 0 0 var(--s3);
  font-size: var(--t-2);
  line-height: 1.2;
}
.interest-confirmation p { color: var(--soft); }
.interest-confirmation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: var(--s3);
  font-weight: 650;
}
.interest-form {
  position: relative;
  min-width: 0;
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}
.interest-form > label { display: block; margin-bottom: var(--s3); font-weight: 650; }
.interest-controls { display: flex; gap: var(--s3); }
.interest-controls input {
  min-width: 0;
  min-height: 56px;
  flex: 1;
  padding: 0 var(--s4);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r);
  background: var(--ink-lift);
  color: var(--white);
  font: inherit;
  transition: border-color var(--dur) var(--ease);
}
.interest-controls input::placeholder { color: var(--softer); }
.interest-controls input:hover,
.interest-controls input:focus { border-color: var(--cyan); }
.interest-controls button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 56px;
  flex: none;
  padding: 0 var(--s5);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), color 220ms var(--ease), box-shadow 280ms var(--ease);
}
.interest-controls button::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #34c759;
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 560ms cubic-bezier(.2, .8, .2, 1);
}
.interest-controls button:hover { background: #dffbff; transform: translateY(-2px); }
.interest-controls button:active { transform: none; }
.interest-controls button:disabled { cursor: wait; }
.interest-controls button.is-success,
.interest-controls button.is-success:hover {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(52, 199, 89, .14);
  transform: none;
}
.interest-controls button.is-success::before {
  transform: scaleX(1);
  transform-origin: left center;
}
@media (prefers-reduced-motion: reduce) {
  .interest-controls button::before { transition: none; }
}
.interest-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}
.interest-status { margin-top: var(--s3); color: #ffb7b7; font-size: var(--t--1); }
.interest-status[hidden] { display: none; }

/* --------------------------------------------------------------- rodapé */

.creed {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s4) clamp(var(--s5), 4vw, var(--s8));
  margin-block: var(--s6) 0;
  padding-block: var(--s6);
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: var(--t-0);
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
}

.base { padding-block: var(--s5) var(--s7); }
.base-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3) var(--s5);
}
.base-brand {
  position: relative;
  display: inline-flex;
  width: 128px;
  height: 30px;
  flex: none;
  overflow: hidden;
}
.base-brand .brand-wordmark {
  top: calc(50% + 3.25px);
  width: 200px;
}
.base-say { color: var(--soft); font-size: var(--t-0); }

.base-meta {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  color: var(--softer);
  font-size: var(--t--1);
}
.base-meta strong { color: var(--soft); font-weight: 650; }
.base-nav { display: flex; flex-wrap: wrap; gap: var(--s2); margin-inline: calc(var(--s3) * -1); }
.base-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--s3);
  border-radius: var(--r);
  color: var(--soft);
  text-decoration: none;
}
.base-nav a:hover { color: var(--cyan); text-decoration: underline; }

/* -------------------------------------------------------- páginas legais */

.legal {
  width: min(70ch, calc(100% - 2 * var(--s6)));
  margin-inline: auto;
  padding-block: var(--s7) var(--s9);
}
.legal h1 { font-size: var(--t-3); }
.legal-meta { margin-top: var(--s4); color: var(--softer); font-size: var(--t--1); }
.legal-note {
  margin-top: var(--s6);
  padding: var(--s5);
  border-radius: var(--r);
  background: var(--ink-lift);
  color: var(--white);
  line-height: 1.65;
}
.legal h2 {
  margin-top: var(--s8);
  margin-bottom: var(--s4);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  font-size: var(--t-1);
  letter-spacing: -.02em;
}
.legal p, .legal li { color: var(--soft); line-height: 1.8; }
.legal p + p, .legal ul { margin-top: var(--s4); }
.legal ul { display: flex; flex-direction: column; gap: var(--s3); padding-left: var(--s5); }
.legal li { list-style: disc; }
.legal li::marker { color: var(--cyan); }
.legal strong { color: var(--white); }

/* ----------------------------------------------------------- página de ajuda */
.resource {
  width: min(1020px, calc(100% - 2 * var(--s6)));
  margin-inline: auto;
  padding-block: clamp(56px, 8vw, 112px) var(--s9);
}
.resource-hero { max-width: 760px; }
.resource-hero h1 {
  margin-top: var(--s4);
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  line-height: 1.02;
}
.resource-hero > p:last-child {
  max-width: 58ch;
  margin-top: var(--s5);
  color: var(--soft);
  font-size: var(--t-1);
  line-height: 1.6;
}
.resource-list { margin-top: clamp(var(--s8), 10vw, var(--s9)); }
.resource-entry {
  display: grid;
  grid-template-columns: 68px minmax(170px, .72fr) minmax(0, 1fr);
  gap: var(--s5);
  padding-block: var(--s6);
  border-top: 1px solid var(--line);
}
.resource-number {
  color: var(--cyan);
  font-size: var(--t--1);
  font-weight: 750;
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
}
.resource-entry h2 {
  font-size: var(--t-2);
  letter-spacing: -.03em;
  line-height: 1.18;
}
.resource-entry p { color: var(--soft); font-size: 1rem; line-height: 1.7; }
.resource-entry strong { color: var(--white); }
.resource-entry p + p { margin-top: var(--s3); }
.resource-entry code {
  color: var(--white);
  font-family: inherit;
  font-weight: 700;
}
.resource-entry a { font-weight: 650; }
.resource-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4) var(--s5);
  margin-top: var(--s7);
}
.resource-actions .go { margin: 0; }
.resource-actions .text-link { min-height: 44px; display: inline-flex; align-items: center; }
.resource-small { margin-top: var(--s5); color: var(--softer); font-size: var(--t--1); }
.resource-small a { color: var(--soft); }

/* ---------------------------------------------------------------- telas */

@media (max-width: 1000px) {
  :root { --mobile-gutter: clamp(20px, 6vw, 32px); }
  /* O foco do teclado virtual deve ser imediato, sem parecer um salto. */
  html { scroll-behavior: auto; }
  .top-in, .stage, .creed, .base, .content-section, .legal, .resource {
    width: calc(100% - max(var(--mobile-gutter), env(safe-area-inset-left)) - max(var(--mobile-gutter), env(safe-area-inset-right)));
  }
  .top { padding-top: env(safe-area-inset-top); }
  .top-in { gap: var(--s3); padding-block: 10px; }
  .mark { width: 126px; height: 44px; }
  .mark .brand-wordmark { width: 211px; top: calc(50% + 3.25px); }
  .top-cta { gap: 6px; padding-inline: 12px; font-size: .75rem; }
  .top-cta .cta-extra { display: none; }
  .stage { display: block; }
  .feature-story, .story-frame, .acts { display: block; }
  .act { min-height: 0; padding-block: var(--s7); }
  .act-lead { position: relative; z-index: 2; max-width: 640px; margin-inline: auto; padding-block: clamp(40px, 7svh, 72px) 32px; }
  .act-lead h1 { max-width: 15ch; font-size: clamp(38px, 10.2vw, 56px); line-height: 1.02; }
  .act-lead .say { max-width: 35ch; margin-top: 24px; font-size: 18px; line-height: 1.5; }
  .hero-actions { gap: 8px 20px; margin-top: 24px; }
  .go { max-width: 100%; min-height: 48px; padding-inline: 20px; font-size: 14px; }
  .text-link { font-size: 14px; }
  .act h2 { font-size: clamp(28px, 8vw, 38px); line-height: 1.04; }
  .act .say { font-size: 16px; line-height: 1.45; }
  .act-end { align-content: start; }
  .slot { position: static; height: auto; display: grid; justify-items: center; }
  .phone { width: min(100%, 350px); padding: 6px; margin-inline: auto; border-radius: 30px; box-shadow: 0 24px 60px rgba(0, 0, 0, .32); }
  .phone-top { gap: 10px; padding: 8px 12px; }
  .phone-dot, .phone-brand { width: 28px; height: 28px; }
  .phone-who b { font-size: 15px; }
  .phone-screens { min-height: 0; padding: 8px 10px 12px; border-radius: 23px; }
  .js .phone-screens { height: var(--chat-height, 360px); }
  .js .screen { inset: 8px 10px 12px; gap: 8px; }
  .m { max-width: 96%; padding: 8px 10px 20px; font-size: 12.5px; line-height: 1.35; }
  .m-h { gap: 6px; }
  .m-s, .m-list { margin-top: 6px; }
  .m-l, .m-first { margin-top: 4px; }
  .m-you .m-l { margin-top: 0; }
  .m-t { right: 10px; bottom: 6px; font-size: 10px; }

  /* A mesma história por scroll: o hero entra em fluxo e o aparelho passa
     a acompanhar as cinco funcionalidades dentro de uma composição fixa. */
  .mobile-story .feature-story {
    position: relative;
    height: var(--story-length);
    margin-top: calc(-1 * var(--story-overlap, 0px));
    margin-bottom: clamp(32px, 6svh, 64px);
  }
  .mobile-story .story-frame {
    --frame-pad: max(16px, env(safe-area-inset-top), env(safe-area-inset-bottom));
    position: sticky;
    top: var(--story-top, 0px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--copy-height) var(--feature-phone-height);
    gap: 20px;
    align-content: center;
    height: var(--frame-height, 100svh);
    padding-block: var(--frame-pad);
    pointer-events: none;
  }
  .mobile-story .acts { display: grid; grid-area: 1 / 1; min-width: 0; width: min(100%, 350px); margin-inline: auto; }
  .mobile-story .acts .act {
    grid-area: 1 / 1;
    align-self: start;
    align-content: start;
    min-height: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .mobile-story .acts .act.is-active { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-story .acts .say { max-width: 36ch; margin-top: 14px; }
  .mobile-story .act-end .go { margin-top: 18px; }
  .mobile-story .slot { grid-area: 2 / 1; align-self: start; }
  .content-section { padding-block: clamp(48px, 8svh, 72px); }
  .step-grid { grid-template-columns: 1fr; margin-top: var(--s5); }
  .step-card,
  .step-card:first-child {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: var(--s4);
    padding: var(--s4) 0;
  }
  .step-card + .step-card { border-top: 1px solid var(--line); border-left: 0; }
  .step-number { grid-row: 1 / span 2; padding-top: 2px; font-size: var(--t-2); }
  .step-card h3 { margin: 0; }
  .step-card p { grid-column: 2; max-width: 60ch; }
  .faq { grid-template-columns: 1fr; gap: var(--s5); }
  .faq .section-intro { max-width: 62ch; }
  .faq .section-intro h2 { max-width: none; }
  .institution-interest { grid-template-columns: 1fr; gap: var(--s6); }
  .institution-interest .section-intro h2 { max-width: 18ch; }
}

@media (max-width: 760px) {
  .base-row { flex-direction: column; align-items: flex-start; }
  .base-brand-row { align-items: center; text-align: center; }
  .base-meta { gap: 20px; font-size: 14px; line-height: 1.65; }
  .base-meta p { overflow-wrap: anywhere; }
  .base { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
  .creed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; font-size: 13px; align-items: center; }
  .legal { padding-block: 40px 64px; }
  .legal h1 { font-size: clamp(28px, 8vw, 36px); line-height: 1.1; }
  .legal h2 { margin-top: 40px; }
  .legal-note { padding: 20px; }
  .faq-item > p { padding-right: 12px; }
  .interest-controls { flex-direction: column; }
  .interest-controls button { width: 100%; white-space: nowrap; }
  .resource { padding-block: 48px 72px; }
  .resource-hero h1 { font-size: clamp(2.35rem, 10vw, 3.25rem); }
  .resource-entry { grid-template-columns: 40px minmax(0, 1fr); gap: 6px var(--s4); padding-block: var(--s5); }
  .resource-entry h2 { font-size: var(--t-1); }
  .resource-entry > div { grid-column: 2; }
  .resource-list { margin-top: var(--s8); }
}

@media (max-width: 1000px) {
  /* Classes baseadas em 100svh: recolher a barra do Safari não altera a
     tipografia nem reinicia o ritmo da narrativa no meio de uma cena. */
  .mobile-compact .story-frame { gap: 12px; --frame-pad: max(10px, env(safe-area-inset-top), env(safe-area-inset-bottom)); }
  .mobile-compact .acts h2 { font-size: 28px; }
  .mobile-compact .acts .say { margin-top: 10px; font-size: 15px; line-height: 1.4; }
  .mobile-compact .act-end .go { margin-top: 12px; min-height: 44px; font-size: 13px; }
  .mobile-compact .phone-top { padding-block: 6px; }
  .mobile-compact .m { padding-block: 6px 18px; font-size: 12px; }
  .mobile-compact .m-t { bottom: 4px; }
}

@media (max-width: 1000px) and (orientation: landscape) {
  .act-lead { max-width: 640px; padding-block: 40px; }
  .mobile-story .story-frame {
    grid-template-columns: minmax(0, 1fr) minmax(240px, .9fr);
    grid-template-rows: auto;
    column-gap: 32px;
    align-items: center;
  }
  .mobile-story .acts { align-self: center; }
  .mobile-story .slot { grid-area: 1 / 2; align-self: center; }
  .mobile-story .feature-story { margin-top: 0; }
  .mobile-story .acts h2 { font-size: 28px; }
  .mobile-story .acts .say { font-size: 15px; }
  .phone { max-width: 320px; }
}

@media (max-width: 1000px) {
  .mobile-flat .story-frame { column-gap: 20px; --frame-pad: max(8px, env(safe-area-inset-top), env(safe-area-inset-bottom)); }
  .mobile-flat .acts h2 { font-size: 26px; }
  .mobile-flat .phone-top { padding-block: 4px; }
  .mobile-flat .phone-dot, .mobile-flat .phone-brand { width: 24px; height: 24px; }
  .mobile-flat .m { padding-block: 6px 16px; font-size: 12px; line-height: 1.25; }
  .mobile-flat .m-s, .mobile-flat .m-list, .mobile-flat .m-l { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
