/* ============================================
   NATASHA — página do romance (lista de espera)
   ============================================
   Herda tokens, botões, navbar, form e footer de /index.css (Preto & Ouro).
   Aqui só o que é desta página: a serifa (romance = manuscrito, por isso
   Newsreader no título), a capa em planos, o prontuário que se destarja
   e o fecho. Movimento: só transform/opacity; tudo desliga em
   prefers-reduced-motion; sem JS as tarjas nunca cobrem o texto.
   ============================================ */

@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/font-newsreader.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: swap; src: url('/font-newsreader-italic.woff2') format('woff2'); }

.pg-natasha {
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --bg-fundo: #0B0B0B;
  --ease-out: cubic-bezier(.23,1,.32,1);
}

/* ---- navbar desta página: logo + um único CTA ---- */
.pg-natasha .nav-cta { white-space: nowrap; }
@media (max-width: 1040px) {
  .pg-natasha .n-nav-links { display: none; }
  .pg-natasha .nav-cta { margin-left: auto; margin-right: 0; font-size: .66rem; letter-spacing: .06em; padding: 10px 14px; }
}

/* ============================================
   1 · CHEGADA — fundo, luz e livro em planos
   ============================================ */
.n-hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 116px 0 var(--sp-6); overflow: hidden; isolation: isolate; }
.n-ambiente { position: absolute; inset: -8%; z-index: -3; background: url('ambiente.jpg') 68% 50% / cover no-repeat; opacity: .55; }
/* véu só onde o texto mora (esquerda) e na base, pra fundir com a próxima seção */
.n-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, var(--bg) 0%, rgba(10,11,14,.9) 36%, rgba(10,11,14,.42) 100%),
  linear-gradient(180deg, rgba(10,11,14,.5) 0%, transparent 26%, transparent 70%, var(--bg) 100%); }
.n-lampada { position: absolute; z-index: -1; width: 62vmax; height: 62vmax; right: -8vmax; top: 18%; pointer-events: none; background: radial-gradient(circle, rgba(236,204,132,.20) 0%, rgba(42,98,242,.07) 38%, transparent 66%); }

.n-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; width: 100%; }
.n-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(4rem, 9vw, 6rem); line-height: .96; letter-spacing: -.04em; margin-left: -.03em; }
/* assinatura abaixo do título (o rótulo acima dele saiu) */
.n-assina { margin-top: 14px; font-size: .95rem; font-weight: 600; letter-spacing: .04em; color: var(--blue-light); }
.n-sub { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 36ch; margin-top: 20px; }

/* ---- formulário da lista (rótulo acima do campo, erro abaixo) ---- */
.lista-form { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 520px; }
.lista-form .campo { display: grid; gap: 8px; }
.lista-form label { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft); }
.lista-form input { background: rgba(8,10,14,.78); border-color: rgba(245,247,251,.18); }
.lista-form input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-color: var(--blue); }
.lista-form .btn-primary, .lista-form .form-privacy, .lista-form .error-message, .lista-form .btn-secondary { grid-column: 1 / -1; }
.lista-form .btn-primary { justify-content: center; margin-top: 4px; }
.lista-form .form-privacy { margin-top: 2px; }
/* o erro aparece logo abaixo dos campos, antes do botão (o script o insere no topo do form) */
.lista-form .error-message { order: 5; margin: 0; }
.lista-form .btn-primary { order: 6; }
.lista-form .form-privacy { order: 7; }
.lista-form .btn-secondary { order: 8; }
.lista-form .success-message { grid-column: 1 / -1; padding: 6px 0; }
.lista-form .success-message h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; letter-spacing: -.01em; color: var(--ink); }
.lista-form .success-message p { margin-top: 8px; font-weight: 400; color: var(--ink-soft); }

/* ---- o livro: capa fotográfica + título em HTML (texto nunca vem da imagem) ---- */
.n-livro { justify-self: center; width: min(100%, 420px); }
.n-capa { position: relative; container-type: inline-size; aspect-ratio: 880 / 1092; overflow: hidden; border-radius: 3px 10px 10px 3px; transform: perspective(1600px) rotateY(-13deg) rotateX(2deg); transform-origin: left center;
  box-shadow: 0 0 0 1px rgba(42,98,242,.22), 26px 34px 60px -22px rgba(0,0,0,.92), 70px 60px 110px -50px rgba(42,98,242,.16);
  transition: transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out); }
.n-capa img { width: 100%; height: 100%; object-fit: cover; }
/* lombada */
.n-capa::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5%; z-index: 2; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(255,255,255,.07) 55%, transparent); }
/* véu só no alto e na base, onde ficam título e autor */
.n-capa::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6,7,10,.78) 0%, rgba(6,7,10,.2) 36%, transparent 54%, rgba(6,7,10,.62) 100%); }
.n-capa-texto { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 11% 9% 7%; }
.n-capa-genero { font-size: 2.6cqw; font-weight: 700; letter-spacing: .44em; text-indent: .44em; text-transform: uppercase; color: var(--blue-light); }
.n-capa-titulo { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 3.6rem; font-size: 19cqw; line-height: 1.1; letter-spacing: -.025em; color: #F1E4BE; margin-top: 2.4cqw; }
.n-capa-autor { margin-top: auto; font-size: 3cqw; font-weight: 700; letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .n-livro:hover .n-capa { transform: perspective(1600px) rotateY(-5deg) rotateX(1deg); }
}
/* resposta ao gesto: quando a pessoa começa a escrever, o abajur "sobe" */
.n-hero:has(.lista-form:focus-within) .n-capa { box-shadow: 0 0 0 1px rgba(42,98,242,.4), 26px 34px 60px -22px rgba(0,0,0,.92), 70px 60px 130px -40px rgba(42,98,242,.34); }

/* profundidade: três planos andam em ritmos diferentes enquanto o herói sai de cena */
@keyframes n-fundo { to { transform: translate3d(0, 9%, 0) scale(1.1); } }
@keyframes n-sobe  { to { transform: translate3d(0, -7%, 0); } }
@keyframes n-luz   { to { transform: translate3d(0, 16%, 0) scale(1.16); opacity: .4; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .n-ambiente, .n-livro, .n-hero > .n-lampada { animation-timing-function: linear; animation-fill-mode: both; animation-timeline: scroll(root block); animation-range: 0 90vh; }
    .n-ambiente { animation-name: n-fundo; }
    .n-livro { animation-name: n-sobe; }
    .n-hero > .n-lampada { animation-name: n-luz; }
  }
}

/* ============================================
   2 · A REGRA — três linhas, cada uma num lugar
   ============================================ */
.n-regra { padding: clamp(5rem, 13vw, 10rem) 0; }
.n-linha { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 4.3vw, 3.2rem); line-height: 1.18; letter-spacing: -.02em; color: var(--ink); max-width: 21ch; text-wrap: balance; }
.n-linha + .n-linha { margin-top: clamp(2.2rem, 6.5vw, 4.6rem); }
.n-linha-ouro { font-style: italic; color: var(--blue-light); }
@media (min-width: 720px) {
  .n-linha:nth-child(2) { margin-left: 16vw; }
  .n-linha:nth-child(3) { margin-left: 32vw; }
}

/* ============================================
   3 · O PICO — o prontuário que se destarja
   ============================================ */
.n-prontuario { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4rem, 10vw, 8rem); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-fundo) 100%); }
.n-pront-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.n-pront-cab { position: sticky; top: 132px; }
.n-pront-cab h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.06; letter-spacing: -.028em; max-width: 12ch; }
.n-pront-cab p { margin-top: 20px; max-width: 34ch; color: var(--ink-soft); }
.n-folha { list-style: none; border-left: 1px solid var(--line); padding-left: clamp(1.2rem, 3vw, 2.6rem); }
.n-sessao { padding: clamp(2.8rem, 10vh, 6rem) 0; }
.n-sessao:first-child { padding-top: 6px; }
.n-sessao:last-child { padding-bottom: 6px; }
.n-rotulo { display: block; font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.n-clinico { margin-top: 12px; font-size: 1.08rem; color: var(--ink-soft); max-width: 44ch; }
.n-oculto { margin-top: 20px; }
.n-oculto span { position: relative; display: inline-block; font-family: var(--serif); font-style: italic; font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.25; color: var(--ink); padding: 3px 8px 5px 0; }
/* a tarja: folha de ouro (foil só em forma sólida, regra da marca). Só existe com JS ligado. */
.js .n-oculto span::after { content: ""; position: absolute; inset: 0 -4px 0 -6px; border-radius: 2px; background: var(--grad-blue); transform-origin: right center; transition: transform 1100ms cubic-bezier(.7,0,.2,1); }
.js .n-sessao.aberta .n-oculto span::after { transform: scaleX(0); }

/* ============================================
   4 · A ORIGEM — nota do autor (bloco encostado à direita)
   ============================================ */
.n-origem { padding: clamp(4rem, 10vw, 8rem) 0; border-top: 1px solid var(--line-soft); }
.n-origem-grid { display: grid; grid-template-columns: 190px minmax(0, 58ch); gap: clamp(2rem, 5vw, 4.5rem); justify-content: end; align-items: start; }
.n-autor img { width: 190px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; border-radius: var(--r-md); border: 1px solid var(--line); filter: grayscale(1) contrast(1.06); }
.n-autor figcaption { margin-top: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); }
.n-nota h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.022em; }
.n-nota p { margin-top: 18px; font-size: 1.12rem; line-height: 1.7; color: var(--ink-soft); }
.n-nota h2 + p { color: var(--ink); }
.n-nota .btn-link { margin-top: 28px; }

/* ============================================
   5 · O FECHO — resolve e segura
   ============================================ */
.n-fecho { position: relative; padding: clamp(5rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: hidden; isolation: isolate; background: var(--bg-fundo); border-top: 1px solid var(--line-soft); }
.n-lampada-fecho { right: auto; left: 50%; top: 0; width: 80vmax; height: 80vmax; transform: translate(-50%, -62%); opacity: .5; transition: opacity 900ms ease; }
.n-fecho:has(.lista-form:focus-within) .n-lampada-fecho { opacity: 1; }
.n-fecho-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.n-fecho h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.03em; max-width: 13ch; }
.n-ganhos { margin-top: 32px; display: grid; gap: 14px; max-width: 46ch; }
.n-ganhos li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.n-ganhos li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 2px; background: var(--blue); }
.lista-form-painel { margin-top: 0; max-width: none; grid-template-columns: 1fr; background: rgba(17,20,26,.9); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem); }
.n-aviso { margin-top: clamp(3rem, 7vw, 5rem); font-size: .8rem; line-height: 1.65; color: var(--ink-mute); max-width: 84ch; }

.pg-natasha .footer-row .brand { transition: none; }

/* ============================================
   CELULAR — composição própria (não é o desktop espremido)
   ============================================ */
@media (max-width: 880px) {
  .n-hero { min-height: 0; padding: 104px 0 var(--sp-5); }
  .n-hero-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .n-hero::after { background: linear-gradient(180deg, rgba(10,11,14,.86) 0%, rgba(10,11,14,.74) 46%, var(--bg) 100%); }
  .n-lampada { width: 120vw; height: 120vw; right: -30vw; top: 46%; }
  .n-livro { width: min(74vw, 340px); }
  .n-capa { transform: perspective(1400px) rotateY(-8deg) rotateX(1deg); }
  .n-sub { font-size: 1.08rem; }
  .lista-form { grid-template-columns: 1fr; max-width: none; }

  .n-pront-grid { grid-template-columns: 1fr; }
  .n-pront-cab { position: static; }
  .n-pront-cab h2 { max-width: 16ch; }
  .n-sessao { padding: 2.6rem 0; }

  .n-origem-grid { grid-template-columns: 1fr; justify-content: start; }
  .n-autor { display: flex; align-items: center; gap: 16px; }
  .n-autor img { width: 84px; height: 84px; aspect-ratio: auto; }
  .n-autor figcaption { margin-top: 0; }

  .n-fecho-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .n-capa { transition: box-shadow 300ms ease; }
  .n-livro:hover .n-capa { transform: perspective(1600px) rotateY(-13deg) rotateX(2deg); }
  .js .n-oculto span::after { transition: opacity 500ms ease; }
  .js .n-sessao.aberta .n-oculto span::after { transform: none; opacity: 0; }
}
