/* ==========================================================
   InfoSênior — design editorial
   Movimento segue as skills do Emil Kowalski:
   · emil-design-eng / animate: só transform, opacity e clip-path;
     curvas fortes; UI < 300ms; hover só com mouse
   · choreograph: um "lead" por entrada, atrasos não uniformes,
     nada bloqueia o clique, reduced-motion colapsa a coreografia
   ========================================================== */

@font-face {
  font-family: "Open Sans";
  src: url("../fontes/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fontes/fraunces-latin-ext-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fontes/fraunces-latin-normal.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fontes/fraunces-latin-ext-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fontes/fraunces-latin-italic.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --bg: #f3efe6;
  --bg-2: #ebe5d8;
  --surface: #fffdf8;
  --ink: #15171c;
  --ink-soft: #4d5260;
  --line: rgba(21, 23, 28, 0.12);
  --brand: #2347b8;
  --brand-strong: #1a3590;
  --brand-tint: #e3e8f8;
  --sun: #ffcd4d;
  --danger: #c0262d;
  --danger-tint: #fbe7e5;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Open Sans", system-ui, sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(21, 23, 28, 0.05), 0 12px 32px rgba(21, 23, 28, 0.07);
  --shadow-pop: 0 6px 16px rgba(21, 23, 28, 0.1), 0 24px 48px rgba(21, 23, 28, 0.14);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  font-size: 112.5%; /* 18px: público sênior */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#conteudo { flex: 1; overflow-x: clip; }

img { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

::selection { background: var(--sun); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip:focus { top: 16px; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.65); }

.h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.h2 em { color: var(--brand); }

/* ---------------- Cabeçalho ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  view-transition-name: topbar;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.topbar[data-scrolled] {
  background: rgba(243, 239, 230, 0.82);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand img { width: 42px; height: 42px; padding: 7px; border-radius: 50%; background: var(--ink); object-fit: contain; }

.nav { display: flex; align-items: center; gap: 2px; }

.nav__link {
  position: relative;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

/* Sublinhado que nasce da esquerda */
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease-out);
}
.nav__link.is-current::after { transform: scaleX(1); }

@media (hover: hover) and (pointer: fine) {
  .nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* ---------------- Botões ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }

.btn--sm { min-height: 44px; padding: 0 20px; margin-left: 8px; }
.btn--lg { min-height: 60px; padding: 0 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--brand); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--danger { background: var(--danger); color: #fff; }

.btn__arrow { display: inline-block; transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--brand-strong); }
  .btn--ink:hover { background: var(--brand); }
  .btn--ghost:hover { background: var(--ink); color: #fff; }
  .btn--sun:hover { background: #fff; }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}

/* ---------------- Menu da conta ---------------- */

.account { position: relative; margin-left: 8px; }

.account__trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.account__trigger:active { transform: scale(0.97); }

.account__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.9rem;
}

.account__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  transform-origin: top right; /* nasce do botão */
  transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out), visibility 0s;
}

.account__menu[hidden] {
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: scale(0.96) translateY(-4px);
  pointer-events: none;
  transition-duration: 130ms, 130ms, 0s;   /* saída mais rápida */
  transition-delay: 0s, 0s, 130ms;
}

.account__menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.account__menu a.is-danger { color: var(--danger); }
.account__menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

@media (hover: hover) and (pointer: fine) {
  .account__menu a:hover { background: var(--bg); }
  .account__menu a.is-danger:hover { background: var(--danger-tint); }
}

/* ==========================================================
   Coreografia de entrada (uma vez por página)
   ========================================================== */

.js .intro {
  animation: intro-rise 700ms var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
.js .intro--fade { animation-name: intro-fade; animation-duration: 500ms; }
.js .intro--pop { animation-name: intro-pop; animation-duration: 800ms; }
.js .intro--clip { animation-name: intro-clip; animation-duration: 1000ms; animation-timing-function: var(--ease-in-out); }

@keyframes intro-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes intro-fade { from { opacity: 0; } }
@keyframes intro-pop { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
@keyframes intro-clip { from { clip-path: inset(100% 0 0 0 round var(--radius)); } }

/* Título do hero: cada palavra sobe de dentro de uma máscara */
.mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.word { display: inline-block; }
.js .word {
  animation: word-rise 800ms var(--ease-out) both;
  animation-delay: var(--d);
}
@keyframes word-rise { from { transform: translateY(105%); } }

/* Revelação ao rolar: dispara uma vez (IntersectionObserver em app.js) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal][data-visible] { opacity: 1; transform: none; }

.js [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1100ms var(--ease-in-out);
}
.js [data-reveal="clip"][data-visible] { clip-path: inset(0 0 0 0); }

/* ---------------- Hero ---------------- */

.hero { padding: 40px 0 96px; overflow: hidden; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 48px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.9rem;
  font-weight: 600;
}
.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fb562;
  box-shadow: 0 0 0 4px rgba(47, 181, 98, 0.18);
}

.display {
  font-family: var(--serif);
  font-size: clamp(3rem, 7.2vw, 6.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144;
}
.display .accent { font-style: italic; font-weight: 400; color: var(--brand); }
.display em { color: var(--brand); }

.hero__lead {
  max-width: 40ch;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__art { position: relative; height: 560px; }

.tile {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile--1 { top: 0; right: 0; width: 62%; height: 58%; }
.tile--2 { bottom: 0; left: 0; width: 52%; height: 50%; }
.tile--3 { bottom: 6%; right: 6%; width: 40%; height: 36%; border: 6px solid var(--bg); }

.sticker {
  position: absolute;
  top: 34%;
  left: 12%;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--sun);
  text-align: center;
  line-height: 1.1;
  font-size: 0.8rem;
  font-weight: 700;
  rotate: -12deg;
  box-shadow: var(--shadow);
}
.sticker strong { font-family: var(--serif); font-style: italic; font-size: 1.6rem; font-weight: 500; }

/* ---------------- Marquee ---------------- */

.marquee {
  overflow: hidden;
  padding: 22px 0;
  background: var(--ink);
  color: var(--bg);
  rotate: -1.2deg;
  margin: 0 -2vw;
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee ul {
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0 20px;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-style: italic;
  white-space: nowrap;
}
.marquee li:nth-child(even) { color: var(--sun); font-style: normal; }

@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Seções genéricas ---------------- */

.section { padding: 128px 0; }
.section--tight { padding: 48px 0; }
.section__head { margin-bottom: 56px; }

/* ---------------- Bento (as quatro portas) ---------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bento__item--1 { grid-row: span 2; }
.bento__item--4 { grid-column: span 2; }

.door {
  --x: 50%;
  --y: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  transition: transform 200ms var(--ease-out);
}
.door:active { transform: scale(0.985); }

.door__media { position: absolute; inset: 0; z-index: -2; }
.door__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

/* Escurece a foto para o texto ler bem */
.door::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 12, 18, 0.88) 0%, rgba(10, 12, 18, 0.35) 55%, rgba(10, 12, 18, 0.1) 100%);
}

/* Luz que segue o mouse (só no próprio card) */
.door::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(255, 205, 77, 0.22), transparent 60%);
  opacity: 0;
  transition: opacity 300ms ease;
}

.door__body { padding: 28px; }
.door__num { font-family: var(--serif); font-style: italic; color: var(--sun); font-size: 1.1rem; }
.door h3 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.door p { margin-top: 8px; max-width: 36ch; color: rgba(255, 255, 255, 0.82); }

.door__arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.4rem;
  rotate: -45deg;
  transition: rotate 300ms var(--ease-out), background-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .door:hover .door__media img { transform: scale(1.06); }
  .door:hover::after { opacity: 1; }
  .door:hover .door__arrow { rotate: 0deg; background: var(--sun); }
}

/* ---------------- Manifesto: palavras acendem com a rolagem ---------------- */

.manifesto { padding: 140px 0; background: var(--ink); color: #fff; }

.manifesto__text {
  max-width: 24ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

@supports (animation-timeline: view()) {
  .manifesto__text span {
    animation: light-up linear both;
    animation-timeline: view();
    animation-range: cover 20% cover 45%;
  }
  @keyframes light-up { from { opacity: 0.18; } }
}

/* ---------------- Princípios ---------------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.principles li { padding: 36px 32px 40px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.principles__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  border-radius: 18px;
  background: var(--brand-tint);
  color: var(--brand);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
}
.principles h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; letter-spacing: -0.01em; }
.principles p { margin-top: 10px; color: var(--ink-soft); }

/* ---------------- Alerta de golpe ---------------- */

.warning {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 40px 48px;
  border-radius: var(--radius);
  background: var(--sun);
}
.warning__badge {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sun);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.warning__text { font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 600; line-height: 1.35; }

/* ---------------- FAQ (acordeão nativo) ---------------- */

.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-family: var(--sans);
  font-size: 1.4rem;
  transition: rotate 250ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.faq details[open] summary::after { rotate: 45deg; background: var(--ink); color: #fff; }

.faq__body p { padding-bottom: 26px; color: var(--ink-soft); max-width: 52ch; }

/* Abre com altura animada onde o navegador suporta (Chrome 131+) */
@supports selector(::details-content) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content {
    height: 0;
    opacity: 0;
    overflow: clip;
    transition: height 300ms var(--ease-out), opacity 300ms var(--ease-out), content-visibility 300ms allow-discrete;
  }
  .faq details[open]::details-content { height: auto; opacity: 1; }
}

/* ---------------- CTA ---------------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 128px;
  padding: 72px 64px;
  border-radius: 32px;
  background: var(--brand);
  color: #fff;
}
.cta__title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.cta__title em { color: var(--sun); }

/* ---------------- Páginas de seção ---------------- */

.page-hero { padding: 40px 0 48px; }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: end; }
.display--page { font-size: clamp(2.6rem, 6vw, 5.2rem); }
.page-hero__img { margin: 0; aspect-ratio: 4 / 5; max-height: 520px; overflow: hidden; border-radius: var(--radius); }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.back {
  display: block;
  width: fit-content;
  margin-bottom: 32px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.guide { margin: 0; padding: 0; list-style: none; }
.guide__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.guide__num { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--brand); line-height: 1; }
.guide h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -0.02em; }
.guide p { margin-top: 12px; max-width: 60ch; color: var(--ink-soft); font-size: 1.08rem; }

.next { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.next__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.7rem;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.next__link:active { transform: scale(0.98); }
.next__arrow { transition: transform 250ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .next__link:hover { background: var(--ink); color: #fff; }
  .next__link:hover .next__arrow { transform: translateX(6px); }
}

/* ---------------- Notícia ---------------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 4px;
  background: var(--brand);
  transform-origin: left;
  transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

.article { padding: 32px 0 120px; }
.article__inner { width: min(72ch, 100% - 48px); margin-inline: auto; }
.display--article { font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -0.025em; line-height: 1.05; }
.article__lead { margin: 24px 0 40px; color: var(--ink-soft); font-size: 1.25rem; }
.article__cover { margin: 0 0 48px; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__body p { margin-bottom: 1.3em; font-size: 1.12rem; line-height: 1.75; }
.article__body p:first-child::first-letter {
  float: left;
  margin: 6px 12px 0 0;
  font-family: var(--serif);
  font-size: 4.4rem;
  line-height: 0.8;
  color: var(--brand);
}
.article__source { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------------- Formulários / conta ---------------- */

.auth { display: grid; place-items: center; padding: 48px 0 120px; }

.panel {
  width: min(460px, 100% - 32px);
  padding: 44px 40px;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.js .panel { animation: intro-rise 600ms var(--ease-out) both; }

.panel h1 { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; letter-spacing: -0.02em; }
.panel__lead { margin: 10px 0 30px; color: var(--ink-soft); }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 700; }
.field input {
  min-height: 56px;
  padding: 0 18px;
  border: 1.5px solid rgba(21, 23, 28, 0.16);
  border-radius: 14px;
  background: var(--bg);
  font: inherit;
  color: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.field input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(35, 71, 184, 0.15);
}

.alert {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--danger-tint);
  color: var(--danger);
  font-weight: 600;
}

.panel__links { display: grid; gap: 6px; margin-top: 24px; text-align: center; }
.panel__links a { font-weight: 600; }

.profile { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.profile img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.profile h1 { font-size: 2rem; }
.profile p { margin-top: 2px; color: var(--ink-soft); }

.stack { display: grid; gap: 12px; }

.danger-zone { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.danger-zone a { color: var(--danger); font-weight: 600; }

/* Segurar para excluir */
.hold { position: relative; overflow: hidden; background: var(--danger-tint); color: var(--danger); }
.hold__fill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--danger);
  color: #fff;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 200ms var(--ease-out);   /* soltar: rápido */
}
.hold.is-holding .hold__fill { clip-path: inset(0 0 0 0); transition: clip-path 2s linear; } /* segurar: lento */
.hold.is-holding { transform: scale(0.97); }

/* ---------------- Rodapé ---------------- */

.footer { padding: 96px 0 32px; background: var(--ink); color: rgba(255, 255, 255, 0.75); overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer__cta { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); color: #fff; line-height: 1.05; letter-spacing: -0.02em; }
.footer__cta em { color: var(--sun); }
.footer__links { display: grid; gap: 8px; text-align: right; }
.footer a { color: #fff; font-weight: 600; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 4px; }

.footer__wordmark {
  margin: 72px 0 24px;
  font-family: var(--serif);
  font-size: clamp(4rem, 17vw, 16rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--bg);
  white-space: nowrap;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
}

/* ---------------- Transição entre páginas ---------------- */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms ease both vt-out; }
::view-transition-new(root) { animation: 280ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------------- Responsivo ---------------- */

@media (max-width: 1080px) {
  .nav__link--wide { display: none; }
}

@media (max-width: 900px) {
  .hero__grid, .page-hero__grid, .faq-grid { grid-template-columns: 1fr; }
  .hero__art { height: 420px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; }
  .bento__item--1 { grid-row: span 1; grid-column: span 2; }
  .bento__item--4 { grid-column: span 2; }
  .principles { grid-template-columns: 1fr; }
  .warning { grid-template-columns: 1fr; padding: 32px; }
  .cta { padding: 48px 32px; }
  .section { padding: 88px 0; }
  .page-hero__img { aspect-ratio: 16 / 10; }
}

@media (max-width: 560px) {
  .brand span, .account__name { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento__item--1, .bento__item--4 { grid-column: auto; }
  .guide__item { grid-template-columns: 1fr; gap: 8px; }
  .footer__links { text-align: left; }
  .hero__art { height: 340px; }
  .sticker { width: 104px; height: 104px; }
}

/* ---------------- Movimento reduzido: colapsa a coreografia ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .intro, .js .word, .js .panel { animation-name: intro-fade; animation-delay: 0ms; }
  .js [data-reveal] { transform: none; transition-delay: 0ms; }
  .js [data-reveal="clip"] { clip-path: none; }
  .marquee__track { animation: none; }
  .door__media img, .account__menu, .account__menu[hidden] { transform: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ==========================================================
   Funcional + transições (skill transitions-dev, transitions.dev)
   Trechos .t-* copiados como a skill manda; o resto é do site.
   ========================================================== */

:root {
  /* tokens transitions.dev usados aqui */
  --dropdown-open-dur: 250ms;
  --dropdown-close-dur: 150ms;
  --dropdown-pre-scale: 0.97;
  --dropdown-closing-scale: 0.99;
  --dropdown-ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shake-distance: 6px;
  --shake-overshoot: 4px;
  --shake-dur-a: 80ms;
  --shake-dur-b: 60ms;
  --shake-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --revert-hold: 3000ms;
  --revert-dur: 280ms;

  --toast-open: 350ms;
  --toast-close: 250ms;
  --toast-distance: 16px;
  --toast-blur: 2px;
  --toast-scale: 0.97;
  --toast-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- transitions.dev · Menu dropdown (05) ---- */
.t-dropdown {
  transform-origin: top left;
  transform: scale(var(--dropdown-pre-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--dropdown-open-dur) var(--dropdown-ease),
    opacity   var(--dropdown-open-dur) var(--dropdown-ease);
  will-change: transform, opacity;
}
.t-dropdown[data-origin="top-right"]     { transform-origin: top right; }
.t-dropdown[data-origin="top-center"]    { transform-origin: top center; }
.t-dropdown[data-origin="bottom-left"]   { transform-origin: bottom left; }
.t-dropdown[data-origin="bottom-center"] { transform-origin: bottom center; }
.t-dropdown[data-origin="bottom-right"]  { transform-origin: bottom right; }

.t-dropdown.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.t-dropdown.is-closing {
  transform: scale(var(--dropdown-closing-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--dropdown-close-dur) var(--dropdown-ease),
    opacity   var(--dropdown-close-dur) var(--dropdown-ease);
}

@media (prefers-reduced-motion: reduce) {
  .t-dropdown { transition: none !important; }
}

/* ---- transitions.dev · Error state shake (12) ---- */
.t-input {
  transition: border-color 150ms ease-out;
  will-change: transform;
}
.t-input.is-error {
  transition: border-color var(--revert-dur, 280ms) ease-out;
}

.t-error-msg {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity    var(--revert-dur, 280ms) ease-out,
    visibility 0s linear var(--revert-dur, 280ms);
}
.t-input-wrap.is-error .t-error-msg {
  opacity: 1;
  visibility: visible;
  transition:
    opacity    var(--revert-dur, 280ms) ease-out,
    visibility 0s linear 0s;
}

.t-input.is-shaking {
  animation: t-input-shake calc(
      var(--shake-dur-a) * 2 + var(--shake-dur-b) * 2
    ) linear;
}
@keyframes t-input-shake {
  0%      { transform: translateX(0);                                 animation-timing-function: var(--shake-ease); }
  28.57%  { transform: translateX(var(--shake-distance));             animation-timing-function: var(--shake-ease); }
  57.14%  { transform: translateX(calc(var(--shake-distance) * -1)); animation-timing-function: var(--shake-ease); }
  78.57%  { transform: translateX(var(--shake-overshoot));            animation-timing-function: var(--shake-ease); }
  100%    { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .t-input { animation: none !important; transform: none !important; }
}

/* ---- transitions.dev · Toast open / close (22) ---- */
.t-toast {
  opacity: 0;
  transform: translateY(var(--toast-distance)) scale(var(--toast-scale));
  filter: blur(var(--toast-blur));
  will-change: transform, opacity, filter;
  transition:
    opacity var(--toast-close) var(--toast-ease),
    transform var(--toast-close) var(--toast-ease),
    filter var(--toast-close) var(--toast-ease);
}
.t-toast.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity var(--toast-open) var(--toast-ease),
    transform var(--toast-open) var(--toast-ease),
    filter var(--toast-open) var(--toast-ease);
}

@media (prefers-reduced-motion: reduce) {
  .t-toast { transition: none !important; }
}

/* ---------------- Tamanho da letra (A− / A+) ---------------- */

:root[data-fs="1"] { font-size: 125%; }
:root[data-fs="2"] { font-size: 137.5%; }

.textsize {
  display: flex;
  margin-left: auto;
  padding: 3px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.textsize__btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.textsize__btn--big { font-size: 1.15rem; }
.textsize__btn:active { transform: scale(0.94); }
.textsize__btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .textsize__btn:not(:disabled):hover { background: var(--surface); }
}

/* ---------------- Menu do celular ---------------- */

.topbar__inner { position: relative; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-left: 8px;
  padding: 0 18px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.menu-toggle:active { transform: scale(0.97); }
.menu-toggle__bars { position: relative; width: 18px; height: 12px; }
.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 250ms var(--dropdown-ease), top 250ms var(--dropdown-ease);
}
.menu-toggle__bars span:first-child { top: 2px; }
.menu-toggle__bars span:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: 5px; transform: rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: calc(100% - 6px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  padding: 8px;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow-pop);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { margin: 0; padding: 0; list-style: none; }
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  text-decoration: none;
}
.mobile-menu a span { color: var(--brand); transition: transform 200ms var(--ease-out); }
.mobile-menu a[aria-current="page"] { background: var(--brand-tint); }
.mobile-menu li + li { border-top: 1px solid var(--line); }
@media (hover: hover) and (pointer: fine) {
  .mobile-menu a:hover { background: var(--bg); }
  .mobile-menu a:hover span { transform: translateX(4px); }
}

/* ---------------- Campos: mostrar senha, erro, enviando ---------------- */

.field__box {
  position: relative;
  display: flex;
  border-radius: 14px;
}
.field__box input { flex: 1; min-width: 0; }
.field__box:has(.field__reveal) input { padding-right: 112px; }
.field__box.is-error input { border-color: var(--danger); background: #fff; }
.field__box.is-error input:focus { box-shadow: 0 0 0 4px rgba(192, 38, 45, 0.15); }

.field__reveal {
  position: absolute;
  top: 6px;
  right: 6px;
  bottom: 6px;
  min-width: 96px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand-strong);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.field__reveal:active { transform: scale(0.96); }
.field__reveal[aria-pressed="true"] { background: var(--ink); color: #fff; }

.field__error {
  margin: 0;
  color: var(--danger);
  font-weight: 600;
  font-size: 0.95rem;
}
.field__error:empty { display: none; }
.field__hint { margin: -8px 0 20px; color: var(--ink-soft); font-size: 0.92rem; }

.btn[data-submit] { position: relative; }
.btn.is-sending { pointer-events: none; background: var(--brand-strong); }
.btn.is-sending::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

/* ---------------- Avisos (toasts) ---------------- */

.toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(480px, calc(100vw - 32px));
  translate: -50% 0;
}
.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 10px 14px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
}
.toast p { flex: 1; margin: 0; font-weight: 600; line-height: 1.4; }
.toast__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
}
.toast--info .toast__icon { background: var(--brand-tint); color: var(--brand-strong); }
.toast__close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .toast__close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
}

/* ---------------- Responsivo das peças novas ---------------- */

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav > .nav__link:not(.nav__link--wide) { display: none; }
}
@media (max-width: 560px) {
  .menu-toggle__label { display: none; }
  .menu-toggle { padding: 0 15px; }
  .textsize__btn { min-width: 40px; }
  .topbar__inner { gap: 10px; }
  .btn--sm { margin-left: 4px; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-toggle__bars span { transition: none; }
  .btn.is-sending::before { animation: none; }
}

/* ---------- Ajustes da versão publicada ---------- */
.account__menu button {
  display: block; width: 100%; text-align: left; font: inherit; font-weight: 600; color: inherit;
  background: none; border: 0; padding: 12px 14px; border-radius: 10px; cursor: pointer; min-height: 44px;
}
@media (hover: hover) { .account__menu button:hover { background: var(--bg); } }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 6px 12px; align-items: start; margin: 4px 0 20px; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--brand); }
.check label { font-size: 1rem; }
.check .field__error { grid-column: 2; color: var(--danger); margin: 0; font-weight: 600; }
.footer__credit { display: grid; gap: 6px; max-width: 60ch; }
.footer__bottom { flex-wrap: wrap; gap: 12px 24px; }
.credits { padding-left: 1.2em; display: grid; gap: 10px; }
.article__body h2 { font-family: var(--serif); margin: 1.6em 0 0.4em; }
.article__cover img { width: 100%; height: auto; object-fit: cover; }
@media (max-width: 560px) {
  .panel { padding: 32px 20px; }
  .auth { padding: 28px 0 80px; }
  .field__box { min-width: 0; }
}
