/* ============================================================
   Fundo preto, destaque azul (elementos da referência Iconify).
   Tema travado no escuro.
   ============================================================ */

/* Fontes hospedadas no próprio site (antes vinham do Google Fonts) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fontes/inter.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: "Inter Tight";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fontes/inter-tight.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 {
  --night-950: #030304;
  --night-900: #141416;
  --night-800: #1b1b1e;
  --accent-200: #c7d9ff;
  --accent-300: #7fa8ff;
  --accent-400: #3d7bff;
  --accent-500: #1f5cf0;
  --accent-700: #1440b8;
  --ink-50: #f2f3f5;
  --ink-300: #c2c3c9;
  --ink-400: #a3a4ad;

  --line: rgb(255 255 255 / 0.07);
  --line-accent: rgb(127 168 255 / 0.15);
  --line-accent-strong: rgb(127 168 255 / 0.35);

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  color-scheme: dark;
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #2a2a2d var(--night-950); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--night-950);
  color: var(--ink-50);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Granulação fixa: textura de filme sem repintar durante o scroll */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent-300); color: var(--night-950); }
:focus-visible { outline: 2px solid var(--accent-300); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

em { font-style: italic; font-weight: 700; color: var(--accent-300); }

/* ============================================================
   Botões
   ============================================================ */

/* Botão azul: gradiente + reflexo que atravessa no hover */
.btn-accent {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--accent-400) 0%, var(--accent-500) 55%, var(--accent-700) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8125rem;
  box-shadow:
    inset 0 1px 0 rgb(205 222 255 / 0.55),
    inset 0 -1px 0 rgb(0 20 80 / 0.4);
  transition: transform 200ms var(--ease-out), filter 200ms ease;
}
.btn-accent::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgb(228 238 255 / 0.4) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-accent i { font-size: 1.0625rem; transition: transform 200ms var(--ease-out); }
.btn-accent:active { transform: scale(0.98); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 6px;
  border: 1px solid rgb(127 168 255 / 0.3);
  background: rgb(127 168 255 / 0.04);
  color: var(--ink-50);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  padding: 14px 24px;
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms var(--ease-out);
}
.btn-outline i { font-size: 1rem; color: var(--accent-300); }
.btn-outline:active { transform: scale(0.98); }

.btn-lg { min-height: 60px; padding: 0 32px; }

@media (hover: hover) and (pointer: fine) {
  .btn-accent:hover { filter: brightness(1.05); }
  .btn-accent:hover::after { transform: translateX(120%); transition: transform 0.7s var(--ease-out); }
  .btn-accent:hover .ph-arrow-right { transform: translateX(4px); }
  .btn-accent:hover .ph-arrow-down { transform: translateY(3px); }
  .btn-outline:hover { border-color: rgb(127 168 255 / 0.6); background: rgb(127 168 255 / 0.08); }
}

.link-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink-300);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color 180ms ease;
}
.link-soft i { font-size: 1.1875rem; color: var(--accent-300); }
.link-soft.done { color: var(--accent-300); }
@media (hover: hover) and (pointer: fine) { .link-soft:hover { color: var(--ink-50); } }

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  border: 1px solid rgb(127 168 255 / 0.3);
  background: rgb(127 168 255 / 0.05);
  padding: 3px 10px;
  color: var(--accent-300);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.badge-accent {
  border-color: transparent;
  background: linear-gradient(180deg, var(--accent-400), var(--accent-700));
  color: #fff;
}

/* ============================================================
   Hero
   ============================================================ */

.hero { position: relative; isolation: isolate; overflow: hidden; }

.hero-bg { position: absolute; inset: 0; z-index: -1; max-width: 110rem; margin: 0 auto; }

.hero-inner {
  display: flex;
  align-items: flex-end;
  min-height: min(88dvh, 44rem);
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-copy { width: 100%; max-width: 34rem; }

.tagline {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-50);
}

.hero-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-title em { display: inline-block; padding-right: 0.08em; }

.hero-bio { margin-top: 20px; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-300); max-width: 30rem; text-wrap: pretty; }

.hero-actions { margin-top: 32px; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.hero-actions .link-soft { justify-content: center; }

/*
  Foto recortada (sem fundo): no celular fica em cima do texto,
  no desktop à direita, apoiada na base do hero. O brilho azul fica atrás.
*/
.hero-figure {
  position: absolute;
  top: 16px;
  left: 50%;
  height: min(52svh, 460px);
  aspect-ratio: 1100 / 1424;
  transform: translateX(-50%);
}
.hero-figure .hero-glow {
  top: 38%;
  left: 50%;
  right: auto;
  width: 200%;
  max-width: none;
  transform: translate(-50%, -50%);
}
.hero-person { position: absolute; inset: 0; display: block; }
.hero-person img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 20px 60px rgb(0 0 0 / 0.6));
  --fade-y: linear-gradient(180deg, #000 60%, transparent 97%);
  --fade-x: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: var(--fade-y), var(--fade-x);
  mask-image: var(--fade-y), var(--fade-x);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero.has-photo .hero-inner {
  min-height: 0;
  padding-top: calc(16px + min(52svh, 460px) - 56px);
}

/* Sem foto: brilho azul */
.hero-glow {
  position: absolute;
  top: -12%;
  right: -40%;
  width: 150vw;
  max-width: 64rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgb(61 123 255 / 0.22), rgb(31 92 240 / 0.08) 45%, transparent 72%);
}
.ring { position: absolute; border-radius: 50%; border: 1px solid rgb(127 168 255 / 0.12); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hero-glow .r1 { width: 38%; height: 38%; border-color: rgb(127 168 255 / 0.22); }
.hero-glow .r2 { width: 58%; height: 58%; }
.hero-glow .r3 { width: 80%; height: 80%; border-color: rgb(127 168 255 / 0.08); }
.hero-glow .r4 { width: 104%; height: 104%; border-color: rgb(127 168 255 / 0.05); }

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; align-items: center; gap: 28px; }
}

@media (min-width: 1024px) {
  .hero-inner { align-items: center; min-height: min(92dvh, 46rem); padding-top: 64px; padding-bottom: 64px; }
  .hero-glow { top: 50%; right: -8%; width: 60vw; transform: translateY(-50%); }

  .hero.has-photo .hero-inner { min-height: min(92dvh, 46rem); padding-top: 64px; }
  .hero-figure {
    top: auto;
    bottom: 0;
    left: auto;
    right: max(24px, calc((100% - 76rem) / 2 + 24px));
    height: min(94%, 52vw);
    transform: none;
  }
  .hero-figure .hero-glow { top: 40%; width: 170%; }
  .hero-person img { --fade-y: linear-gradient(180deg, #000 72%, transparent 100%); }
}

/* ============================================================
   Seções
   ============================================================ */

.section { padding: 56px 0; scroll-margin-top: 16px; }
@media (min-width: 640px) { .section { padding: 80px 0; } }

.section-head { text-align: center; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-sub { margin-top: 12px; color: var(--ink-400); font-size: 0.9375rem; }

/* ---------- Busca e filtros ---------- */
.toolbar { margin-top: 36px; display: grid; gap: 14px; }

.search { position: relative; }
.search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 1.25rem; color: var(--accent-300); pointer-events: none; }
.search input {
  width: 100%;
  height: 54px;
  padding: 0 18px 0 50px;
  border-radius: 12px;
  border: 1px solid rgb(127 168 255 / 0.2);
  background: var(--night-900);
  color: var(--ink-50);
  caret-color: var(--accent-300);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: var(--ink-400); }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { border-color: rgb(127 168 255 / 0.55); box-shadow: 0 0 0 4px rgb(127 168 255 / 0.08); }

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -20px;
  padding: 2px 20px;
}
.filters::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--night-900);
  color: var(--ink-300);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(180deg, var(--accent-400) 0%, var(--accent-500) 55%, var(--accent-700) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(205 222 255 / 0.55);
}
@media (hover: hover) and (pointer: fine) {
  .chip:not([aria-pressed="true"]):hover { border-color: var(--line-accent-strong); color: var(--ink-50); }
}

@media (min-width: 640px) {
  .filters { margin: 0; padding: 2px 0; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .toolbar { grid-template-columns: minmax(0, 22rem) 1fr; align-items: center; }
  .filters { justify-content: flex-end; }
}

/* ---------- Cards ---------- */
.grid { margin-top: 28px; display: grid; gap: 20px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line-accent);
  background: var(--night-900);
  transition: border-color 300ms var(--ease-out), transform 200ms var(--ease-out);
}
.card:active { transform: scale(0.99); }

.card-media { aspect-ratio: 16 / 9; }

.card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.date { color: var(--ink-400); font-size: 0.8125rem; font-weight: 500; margin-left: auto; }
.card h3 {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.card p { color: var(--ink-300); font-size: 0.9375rem; line-height: 1.6; flex: 1; }
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--accent-300);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.card-cta i { transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--line-accent-strong); }
  .card:hover .cover img, .card:hover .cover video,
  .card:hover .cover-icon { transform: scale(1.04); }
  .card:hover .card-cta i { transform: translateX(4px); }
}

/* Destaque: ocupa a linha inteira, imagem ao lado do texto */
@media (min-width: 720px) {
  .card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
  .card-featured .card-media { aspect-ratio: auto; min-height: 320px; }
  .card-featured .card-body { justify-content: center; padding: 36px 40px; gap: 14px; }
  .card-featured h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; }
  .card-featured p { flex: 0; font-size: 1rem; max-width: 34rem; }
  .grid.filtrando .card-featured { grid-column: auto; display: flex; }
  .grid.filtrando .card-featured .card-media { aspect-ratio: 16 / 9; min-height: 0; }
  .grid.filtrando .card-featured .card-body { padding: 22px 22px 24px; gap: 10px; }
  .grid.filtrando .card-featured h3 { font-size: 1.25rem; }
}

/* ---------- Capa ---------- */
.cover { position: relative; overflow: hidden; background: var(--night-800); container-type: inline-size; }
.cover img, .cover video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }

.cover-art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 80% at 50% 50%, rgb(61 123 255 / 0.2), transparent 70%),
    linear-gradient(180deg, #18181b 0%, var(--night-900) 100%);
}
.cover-art .r1 { width: 34%; aspect-ratio: 1; border-color: rgb(127 168 255 / 0.22); }
.cover-art .r2 { width: 56%; aspect-ratio: 1; border-color: rgb(127 168 255 / 0.12); }
.cover-art .r3 { width: 80%; aspect-ratio: 1; border-color: rgb(127 168 255 / 0.06); }
.cover-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-400) 0%, var(--accent-500) 55%, var(--accent-700) 100%);
  color: #fff;
  font-size: 1.75rem;
  box-shadow:
    inset 0 1px 0 rgb(205 222 255 / 0.55),
    inset 0 -1px 0 rgb(0 20 80 / 0.4),
    0 12px 40px -8px rgb(61 123 255 / 0.45);
  transition: transform 700ms var(--ease-out);
}
.cover-word {
  position: absolute;
  right: 12px;
  bottom: -0.22em;
  font-family: var(--font-display);
  font-size: min(15cqw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.035);
  user-select: none;
}

/* ---------- Vazio ---------- */
.empty { margin-top: 28px; display: grid; justify-items: center; gap: 16px; text-align: center; padding: 48px 24px; border-radius: 16px; border: 1px dashed var(--line-accent); }
.empty p { color: var(--ink-300); max-width: 32rem; }
.empty-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.15);
  background: linear-gradient(180deg, #2a2a2d, var(--night-900));
  color: var(--ink-300); font-size: 1.25rem;
}

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  color: var(--ink-400);
  font-size: 0.875rem;
}
.footer a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-300); font-weight: 600; min-height: 44px; }
.footer a i { color: var(--accent-300); font-size: 1.125rem; }

/* ============================================================
   Post
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(10 10 11 / 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink-300); font-weight: 600; font-size: 0.875rem; white-space: nowrap; transition: color 180ms ease; }
.back i { color: var(--accent-300); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .back:hover { color: var(--ink-50); } .back:hover i { transform: translateX(-3px); } }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; letter-spacing: -0.01em; white-space: nowrap; }

.post-hero { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 12px; }
.post-media { order: -1; }
.cover-lg { aspect-ratio: 16 / 10; border-radius: 16px; border: 1px solid rgb(127 168 255 / 0.2); box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.04); }
.cover-lg .cover-icon { width: 84px; height: 84px; font-size: 2.25rem; }

.post-title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.post-sub { margin-top: 16px; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-300); max-width: 34rem; }

.actions { margin-top: 28px; display: grid; gap: 12px; }
.share { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 4px 24px; }

@media (min-width: 640px) {
  .actions { display: flex; flex-wrap: wrap; }
}
@media (min-width: 1024px) {
  .post-hero { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px; padding-top: 56px; padding-bottom: 24px; }
  .post-media { order: 0; }
}

/* ---------- Texto do post ---------- */
.prose { max-width: 44rem; margin: 40px auto 0; font-size: 1.0625rem; line-height: 1.75; color: var(--ink-300); }
.prose > * + * { margin-top: 18px; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin-top: 56px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-50);
}
.prose h3 { margin-top: 36px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink-50); }
.prose h2 + *,
.prose h3 + * { margin-top: 16px; }
.prose strong { color: var(--ink-50); font-weight: 700; }
.prose em { font-weight: 500; color: var(--ink-50); }
.prose a { color: var(--accent-300); text-decoration: underline; text-decoration-color: rgb(127 168 255 / 0.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent-300); }

/* Passo a passo: linha do tempo com círculos azuis */
.prose ol { list-style: none; counter-reset: passo; position: relative; display: grid; gap: 18px; }
.prose ol::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-400), rgb(61 123 255 / 0.25));
}
.prose ol li { counter-increment: passo; position: relative; padding-left: 54px; min-height: 36px; padding-top: 5px; color: var(--ink-50); }
.prose ol li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-400) 0%, var(--accent-500) 55%, var(--accent-700) 100%);
  box-shadow: inset 0 1px 0 rgb(205 222 255 / 0.55), inset 0 -1px 0 rgb(0 20 80 / 0.4);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.prose ul { list-style: none; display: grid; gap: 12px; }
.prose ul li { position: relative; padding-left: 32px; }
.prose ul li > i { position: absolute; left: 0; top: 0.28em; font-size: 1.25rem; color: var(--accent-400); }

.prose blockquote {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgb(127 168 255 / 0.2);
  background: rgb(20 20 22 / 0.8);
  color: var(--ink-50);
}
.prose blockquote > i { flex: none; font-size: 1.375rem; color: var(--accent-300); margin-top: 0.15em; }
.prose blockquote p { margin: 0; }

.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--night-900);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--ink-50);
}
.prose pre {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--line-accent);
  background: var(--night-900);
  padding: 20px 20px 72px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: 0.9062rem; }
.copy-code {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid rgb(127 168 255 / 0.3);
  background: rgb(127 168 255 / 0.06);
  color: var(--accent-300);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.copy-code:active { transform: scale(0.97); }
.copy-code.done { background: linear-gradient(180deg, var(--accent-400), var(--accent-700)); color: #fff; border-color: transparent; }
@media (hover: hover) and (pointer: fine) { .copy-code:hover { background: rgb(127 168 255 / 0.12); } }

.prose img { width: 100%; border-radius: 16px; border: 1px solid var(--line-accent); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; }

.more { margin-top: 32px; border-top: 1px solid var(--line); }
.more .section-title { text-align: center; }
.grid-more { margin-top: 32px; }
@media (min-width: 720px) { .grid-more { grid-template-columns: repeat(auto-fit, minmax(0, 22rem)); justify-content: center; } }

/* ---------- Barra fixa de ação (celular) ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgb(10 10 11 / 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-accent);
  transform: translateY(110%);
  transition: transform 300ms var(--ease-out);
}
.dock .btn-accent { width: 100%; }
.dock.on { transform: none; }
@media (min-width: 1024px) { .dock { display: none; } }

.missing { display: grid; justify-items: center; gap: 18px; text-align: center; padding-top: 96px; padding-bottom: 96px; }
.missing p { color: var(--ink-300); max-width: 30rem; }

/* ============================================================
   Movimento
   ============================================================ */

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .anim-rise { animation: rise 0.9s var(--ease-out) both; animation-delay: var(--delay, 0ms); }
  .anim-fade { animation: fade 1.4s var(--ease-out) both; }

  /* Revelação no scroll: só esconde depois que o JS confirma que vai revelar */
  .reveal { transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), border-color 300ms var(--ease-out); }
  .reveal[data-reveal="hidden"] { opacity: 0; transform: translateY(24px); }
}

@media (prefers-reduced-motion: reduce) {
  .dock { transition: none; }
  .cover img, .cover video, .cover-icon { transition: none; }
}

/* ============================================================
   Quiz de entrada (popup)
   ============================================================ */

html.quiz-lock,
html.quiz-lock body { overflow: hidden; }

.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: rgb(0 0 0 / 0.72);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 260ms var(--ease-out);
}
.quiz-overlay.on { opacity: 1; }
.quiz-overlay.out { opacity: 0; transition-duration: 200ms; }

.quiz {
  position: relative;
  width: 100%;
  max-width: 30rem;
  border-radius: 20px;
  border: 1px solid rgb(127 168 255 / 0.2);
  background:
    radial-gradient(90% 60% at 50% 0%, rgb(61 123 255 / 0.16), transparent 70%),
    var(--night-900);
  box-shadow: 0 40px 100px -30px rgb(0 0 0 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.05);
  padding: 24px 22px 22px;
  transform: translateY(12px) scale(0.97);
  transition: transform 320ms var(--ease-out);
}
.quiz-overlay.on .quiz { transform: none; }
.quiz-overlay.out .quiz { transform: translateY(8px) scale(0.98); }

.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quiz-kicker {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-300);
}
.quiz-count { flex: none; color: var(--ink-400); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.quiz-bar { margin-top: 14px; height: 4px; border-radius: 99px; background: rgb(255 255 255 / 0.07); overflow: hidden; }
.quiz-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-500), var(--accent-300));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 420ms var(--ease-out);
}

.quiz-step { margin-top: 24px; }
.quiz-step.in { animation: quiz-in 320ms var(--ease-out) both; }
@keyframes quiz-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.quiz h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
  outline: none;
}
.quiz-text { margin-top: 10px; color: var(--ink-300); font-size: 0.9375rem; line-height: 1.6; }

.quiz-opts { margin-top: 20px; display: grid; gap: 10px; }
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 10px 16px 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--night-800);
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-50);
  transition: border-color 180ms ease, background-color 180ms ease, transform 140ms var(--ease-out);
}
.quiz-opt:active { transform: scale(0.98); }
.quiz-opt:disabled { cursor: default; }
.quiz-letter {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgb(127 168 255 / 0.3);
  background: rgb(127 168 255 / 0.06);
  color: var(--accent-300);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.quiz-opt[aria-pressed="true"] { border-color: var(--accent-400); background: rgb(61 123 255 / 0.14); }
.quiz-opt[aria-pressed="true"] .quiz-letter {
  border-color: transparent;
  background: linear-gradient(180deg, var(--accent-400), var(--accent-700));
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .quiz-opt:not(:disabled):hover { border-color: var(--line-accent-strong); background: #202024; }
}

.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  color: var(--ink-400);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 160ms ease;
}
.quiz-back i { color: var(--accent-300); }
@media (hover: hover) and (pointer: fine) { .quiz-back:hover { color: var(--ink-50); } }

.quiz-form { margin-top: 20px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink-50); }
.field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgb(127 168 255 / 0.2);
  background: var(--night-950);
  color: var(--ink-50);
  caret-color: var(--accent-300);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.field input::placeholder { color: #6e6e76; }
.field input:focus { border-color: rgb(127 168 255 / 0.6); box-shadow: 0 0 0 4px rgb(61 123 255 / 0.14); }
.field input[aria-invalid="true"] { border-color: #f07a7a; }
.field-error { min-height: 0; color: #f59a9a; font-size: 0.8125rem; line-height: 1.4; }
.field-error:empty { display: none; }

.quiz-submit { width: 100%; margin-top: 6px; }
.quiz-submit:disabled { filter: saturate(0.6) brightness(0.9); cursor: progress; }

.quiz-note { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-400); font-size: 0.8125rem; line-height: 1.5; }
.quiz-note i { flex: none; margin-top: 0.2em; color: var(--accent-300); }

.quiz-done { display: grid; justify-items: center; text-align: center; padding: 8px 0 4px; }
.quiz-done .btn-accent { width: 100%; margin-top: 24px; }
.quiz-check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-400), var(--accent-700));
  box-shadow: inset 0 1px 0 rgb(205 222 255 / 0.55), 0 12px 40px -8px rgb(61 123 255 / 0.5);
  color: #fff;
  font-size: 1.75rem;
}

@media (min-width: 640px) {
  .quiz { padding: 32px 32px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-overlay, .quiz, .quiz-bar span, .quiz-opt { transition: none; }
  .quiz-step.in { animation: none; }
}

/* ============================================================
   IDENTIDADE (referência Iconify, em azul) (referência Iconify): sobrescreve o que vem acima.
   Preto profundo, brilho azul, pílulas, estrela de 4 pontas,
   vidro fosco e objetos 3D cromados.
   ============================================================ */

body {
  background:
    radial-gradient(1px 1px at 12% 18%, rgb(255 255 255 / 0.35), transparent 60%),
    radial-gradient(1px 1px at 72% 8%, rgb(255 255 255 / 0.25), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 42%, rgb(127 168 255 / 0.45), transparent 60%),
    radial-gradient(1px 1px at 34% 64%, rgb(255 255 255 / 0.2), transparent 60%),
    radial-gradient(1px 1px at 58% 88%, rgb(255 255 255 / 0.22), transparent 60%),
    radial-gradient(1.5px 1.5px at 6% 78%, rgb(127 168 255 / 0.35), transparent 60%),
    var(--night-950);
  background-size: 620px 620px, 540px 540px, 700px 700px, 460px 460px, 580px 580px, 760px 760px, auto;
}

em { font-style: normal; font-weight: inherit; color: var(--accent-400); }

.hero-title,
.section-title,
.post-title,
.card h3,
.quiz h2 { font-weight: 700; letter-spacing: -0.025em; }
.hero-title {
  font-size: clamp(2.8rem, 10vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 0%, #d9d9de 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title em { -webkit-text-fill-color: var(--accent-400); color: var(--accent-400); padding-right: 0; }

.title-star {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-left: 0.14em;
  vertical-align: 0.12em;
  color: var(--accent-400);
  filter: drop-shadow(0 0 14px rgb(61 123 255 / 0.7));
}
.title-star svg,
[data-star] svg,
.hero-spark svg { display: block; width: 100%; height: 100%; fill: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .title-star { animation: twinkle 3.2s ease-in-out infinite; }
}
@keyframes twinkle { 50% { transform: scale(0.82) rotate(12deg); opacity: 0.8; } }

.tagline { color: var(--ink-300); letter-spacing: 0.2em; }

/* ---------- Botões em pílula ---------- */
.btn-accent {
  border-radius: 999px;
  background: linear-gradient(180deg, #5a95ff 0%, var(--accent-400) 45%, var(--accent-500) 100%);
  text-transform: none;
  letter-spacing: -0.005em;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgb(205 222 255 / 0.55),
    0 14px 40px -12px rgb(61 123 255 / 0.65);
}
.btn-accent i { font-size: 1.125rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-accent:hover .ph-arrow-down-right { transform: translate(2px, 2px); }
}
.btn-outline {
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  border-color: rgb(255 255 255 / 0.18);
  background: rgb(255 255 255 / 0.03);
}
.btn-outline i { color: var(--ink-50); }
.btn-lg { min-height: 58px; padding: 0 30px; }

.badge { border-radius: 999px; padding: 4px 12px; letter-spacing: 0.1em; }

/* ---------- Navegação ---------- */
.site-nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 8px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.logo-star { width: 22px; height: 22px; color: #fff; filter: drop-shadow(0 0 8px rgb(255 255 255 / 0.35)); }
#logo-text { font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.02em; }

.nav-pill {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.12);
  background: rgb(255 255 255 / 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-pill a {
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--ink-300);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 180ms ease, background-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) { .nav-pill a:hover { color: #fff; background: rgb(255 255 255 / 0.06); } }

.nav-right { display: flex; align-items: center; gap: 10px; }
.icon-circle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(255 255 255 / 0.03);
  font-size: 1.1875rem;
  transition: border-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) { .icon-circle:hover { border-color: rgb(255 255 255 / 0.4); } }
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 5px 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0b;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 160ms var(--ease-out);
}
.btn-white:active { transform: scale(0.97); }
.arrow-circle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0a0a0b;
  color: #fff;
  font-size: 0.9375rem;
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .btn-white:hover .arrow-circle { transform: rotate(45deg); } }

@media (min-width: 640px) { .icon-circle { display: grid; } }
@media (min-width: 900px) { .nav-pill { display: flex; } }

/* ---------- Hero ---------- */
.hero-inner { position: relative; }

.hero-glow {
  background: radial-gradient(closest-side, rgb(45 110 255 / 0.55), rgb(20 70 200 / 0.22) 42%, transparent 72%);
}
.hero-figure .hero-glow { top: 36%; width: 190%; }

.hero-person img {
  filter:
    drop-shadow(0 0 28px rgb(61 123 255 / 0.28))
    drop-shadow(0 24px 60px rgb(0 0 0 / 0.6));
}

.hero-orb {
  position: absolute;
  z-index: 2;
  width: 24%;
  left: -6%;
  top: 30%;
  filter: drop-shadow(0 16px 30px rgb(0 0 0 / 0.55));
}
.hero-spark {
  position: absolute;
  z-index: 2;
  width: 9%;
  right: 4%;
  top: 14%;
  color: var(--accent-300);
  filter: drop-shadow(0 0 12px rgb(61 123 255 / 0.8));
}

.glass-card { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-orb { animation: float 7s ease-in-out infinite; }
  .hero-spark { animation: twinkle 4s ease-in-out infinite; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

@media (max-width: 1023px) {
  .hero.has-photo .hero-inner { padding-top: calc(min(52svh, 460px) - 40px); }
  .hero-figure { top: 76px; }
}

@media (min-width: 1024px) {
  .hero.has-photo .hero-inner { min-height: min(86dvh, 44rem); padding-top: 24px; }
  .hero-figure { height: min(calc(100% - 96px), 50vw); }
  .hero-orb { width: 20%; left: -4%; top: 34%; }

  .glass-card {
    position: absolute;
    z-index: 3;
    right: 48px;
    bottom: 56px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 250px;
    padding: 20px 20px 16px;
    border-radius: 18px;
    border: 1px solid rgb(255 255 255 / 0.14);
    background: rgb(18 18 20 / 0.42);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 30px 60px -30px rgb(0 0 0 / 0.8);
    transition: border-color 220ms ease;
  }
  .glass-kicker { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-400); }
  .glass-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.01em;
  }
  .glass-text { font-size: 0.7812rem; line-height: 1.5; color: var(--ink-300); }
  .glass-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-400);
  }
  .glass-foot i { font-size: 1.625rem; color: #fff; transition: transform 200ms var(--ease-out); }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .glass-card:hover { border-color: rgb(127 168 255 / 0.45); }
  .glass-card:hover .glass-foot i { transform: translateX(4px); }
}

/* ---------- Hero sem foto: esfera 3D ---------- */
.hero-art {
  --art: min(68vw, 300px);
  position: absolute;
  top: 84px;
  left: 50%;
  width: var(--art);
  aspect-ratio: 1;
  transform: translateX(-50%);
}
.hero-art .hero-glow {
  top: 50%;
  left: 50%;
  right: auto;
  width: 190%;
  max-width: none;
  transform: translate(-50%, -50%);
}
.hero-sphere-wrap { position: relative; width: 100%; height: 100%; }
.hero-sphere {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 40px 60px rgb(0 0 0 / 0.6));
}
.hero-art .hero-spark { width: 12%; right: -2%; top: 6%; }
.hero-art .hero-spark.sm { width: 6%; right: auto; left: 2%; top: auto; bottom: 14%; animation-delay: -2s; }

.hero:not(.has-photo) .hero-inner {
  min-height: 0;
  padding-top: calc(min(68vw, 300px) + 40px);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-sphere { animation: float-slow 10s ease-in-out 1s infinite; }
}
@keyframes float-slow {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}

@media (min-width: 1024px) {
  .hero-art {
    --art: min(40vw, 540px);
    top: 50%;
    left: auto;
    right: max(24px, calc((100% - 76rem) / 2 + 40px));
    transform: translateY(-46%);
  }
  .hero:not(.has-photo) .hero-inner { min-height: min(86dvh, 44rem); padding-top: 24px; }
}

/* ---------- Como funciona + objetos 3D ---------- */
.how-inner { display: grid; gap: 40px; align-items: center; }
.how .section-title { text-align: left; }
.how-steps { list-style: none; margin-top: 32px; display: grid; gap: 14px; }
.how-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgb(255 255 255 / 0.08);
  background: rgb(255 255 255 / 0.02);
}
.how-n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #5a95ff, var(--accent-500));
  box-shadow: 0 8px 24px -8px rgb(61 123 255 / 0.7);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
}
.how-steps strong { display: block; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.how-steps p { margin-top: 4px; color: var(--ink-300); font-size: 0.9375rem; line-height: 1.55; }

.orbs { position: relative; height: 360px; }
.orb { position: absolute; filter: drop-shadow(0 30px 50px rgb(0 0 0 / 0.6)); }
.orb-main { width: 64%; left: 2%; top: 4%; z-index: 2; }
.orb-small { width: 40%; right: 4%; bottom: 2%; z-index: 3; }
.orb-star { position: absolute; z-index: 1; }
.orb-star.s1 { width: 30%; left: -4%; bottom: 4%; color: #2f6bff; }
.orb-star.s2 { width: 30%; right: 2%; top: 20%; color: #5b3cff; }
.orb-year {
  position: absolute;
  top: 2%;
  right: 4%;
  z-index: 4;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}
@media (prefers-reduced-motion: no-preference) {
  .orb-main { animation: float 9s ease-in-out infinite; }
  .orb-small { animation: float 7s ease-in-out -2s infinite reverse; }
}
@media (min-width: 900px) {
  .how-inner { grid-template-columns: 1fr 1fr; gap: 56px; }
  .orbs { height: 520px; }
}

/* ---------- Busca, filtros e cards ---------- */
.search input { border-radius: 999px; border-color: rgb(255 255 255 / 0.12); }
.search input:focus { border-color: rgb(127 168 255 / 0.6); box-shadow: 0 0 0 4px rgb(61 123 255 / 0.14); }
.search i { color: var(--ink-300); }

.chip { border-radius: 999px; font-family: var(--font-sans); letter-spacing: 0.06em; }
.chip[aria-pressed="true"] {
  background: linear-gradient(180deg, #5a95ff, var(--accent-500));
  box-shadow: 0 8px 24px -10px rgb(61 123 255 / 0.8);
}

.card { border-radius: 22px; border-color: rgb(255 255 255 / 0.08); background: #111113; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: rgb(127 168 255 / 0.4); box-shadow: 0 30px 70px -40px rgb(61 123 255 / 0.55); }
}
.card-cta { color: var(--accent-300); font-family: var(--font-sans); letter-spacing: 0.08em; }

.cover-art {
  background:
    radial-gradient(55% 75% at 50% 55%, rgb(45 110 255 / 0.38), transparent 70%),
    linear-gradient(180deg, #080d1c 0%, #111113 100%);
}
.cover-art .ring { border-color: rgb(255 255 255 / 0.06); }
.cover-icon {
  background: linear-gradient(180deg, #5a95ff, var(--accent-500));
  box-shadow: inset 0 1px 0 rgb(205 222 255 / 0.55), 0 14px 40px -8px rgb(61 123 255 / 0.7);
}
.cover-lg { border-radius: 22px; border-color: rgb(255 255 255 / 0.1); }

.prose pre,
.prose blockquote { border-radius: 18px; }
.copy-code { border-radius: 999px; }

/* ---------- Topo do post ---------- */
.topbar { background: rgb(10 10 11 / 0.7); }

/* ---------- Quiz ---------- */
.quiz { border-radius: 24px; border-color: rgb(255 255 255 / 0.1); background: radial-gradient(90% 60% at 50% 0%, rgb(45 110 255 / 0.18), transparent 70%), #111113; }
.quiz-opt { border-radius: 16px; background: #17171a; }
.quiz-letter { border-radius: 50%; }
.field input { border-radius: 999px; padding: 0 20px; border-color: rgb(255 255 255 / 0.12); }
.field input:focus { border-color: rgb(127 168 255 / 0.6); box-shadow: 0 0 0 4px rgb(61 123 255 / 0.14); }
.quiz-bar span { background: linear-gradient(90deg, var(--accent-500), #7fa8ff); }

@media (prefers-reduced-motion: reduce) {
  .title-star, .hero-orb, .hero-spark, .hero-sphere, .orb-main, .orb-small { animation: none; }
}

/* ---------- Conteúdo bloqueado por palavra-chave ---------- */
.badge-lock { gap: 5px; }
.badge-lock i { font-size: 0.75rem; }

.lock {
  margin-top: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 14px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgb(127 168 255 / 0.22);
  background: rgb(18 18 20 / 0.6);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), 0 30px 60px -30px rgb(31 92 240 / 0.45);
}
.lock-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #5a95ff, var(--accent-500));
  box-shadow: 0 8px 24px -8px rgb(61 123 255 / 0.9);
  font-size: 1.25rem;
  color: #fff;
}
.lock-copy strong { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; }
.lock-copy p { margin-top: 2px; font-size: 0.875rem; line-height: 1.5; color: var(--ink-300); }
.lock-row { grid-column: 1 / -1; display: grid; gap: 10px; }
.lock-row input {
  width: 100%;
  height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.12);
  background: var(--night-900);
  color: var(--ink-50);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.lock-row input::placeholder { color: var(--ink-400); font-weight: 500; letter-spacing: 0.02em; text-transform: none; }
.lock-row input:focus { border-color: rgb(127 168 255 / 0.6); box-shadow: 0 0 0 4px rgb(61 123 255 / 0.14); }
.lock-row .btn-accent { min-height: 54px; padding: 0 26px; }
.lock-erro { grid-column: 1 / -1; font-size: 0.875rem; color: #ff8a8a; }
.lock.erro .lock-row input { border-color: rgb(255 110 110 / 0.7); }

@media (min-width: 640px) {
  .lock-row { grid-template-columns: 1fr auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .lock.erro { animation: tremer 360ms var(--ease-out); }
}
@keyframes tremer {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ============================================================
   Diretrizes Apple (WWDC: Designing Fluid Interfaces, materiais,
   tipografia e acessibilidade), aplicadas ao site todo
   ============================================================ */

/* Texto respeita o tamanho de fonte que a pessoa escolheu no aparelho */
body { font-size: 1rem; }

/* Sem o atraso de ~300ms no toque do celular */
a, button, input, label, summary { touch-action: manipulation; }

/* ---------- Barra do topo flutuante (material translúcido) ---------- */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 72px;
  margin-bottom: -72px;
  transition: background-color 240ms ease, backdrop-filter 240ms ease, -webkit-backdrop-filter 240ms ease;
}
.nav-bar .site-nav { height: 100%; padding-top: 0; padding-bottom: 0; }
.hero { padding-top: 72px; }

/* Só vira material quando o conteúdo passa por baixo; sem linha dura,
   uma borda de luz no lugar */
.nav-bar.scrolled,
.topbar.scrolled {
  background: rgb(3 3 4 / 0.66);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.06), 0 12px 32px -18px rgb(0 0 0 / 0.9);
}
.topbar { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background-color 240ms ease, box-shadow 240ms ease; }
/* Com a barra de vidro por cima, a pílula não precisa de outro vidro */
.nav-bar.scrolled .nav-pill { background: rgb(255 255 255 / 0.04); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Âncoras não ficam escondidas atrás da barra */
#conteudos { scroll-margin-top: 72px; }

/* ---------- Resposta no toque: feedback ao pressionar, não ao soltar ---------- */
.icon-circle,
.nav-pill a,
.link-soft,
.back,
.glass-card,
.lock .btn-accent,
.footer a { transition-property: transform, color, background-color, border-color; }
.btn-accent:active,
.btn-outline:active,
.btn-white:active,
.icon-circle:active,
.nav-pill a:active,
.link-soft:active,
.back:active,
.chip:active,
.quiz-opt:active,
.copy-code:active { transform: scale(0.96); transition-duration: 90ms; }
.card:active,
.glass-card:active { transform: scale(0.985); transition-duration: 90ms; }

/* ---------- Novo topo: serviço ---------- */
.hero-bio { max-width: 32rem; }
.glass-list { list-style: none; display: grid; gap: 8px; margin-top: 2px; }
.glass-list li { display: flex; align-items: center; gap: 10px; font-size: 0.8438rem; font-weight: 500; color: var(--ink-50); }
.glass-list i { flex: none; font-size: 1rem; color: var(--accent-300); }

/* ---------- Tipografia: tracking por tamanho ---------- */
.hero-title { letter-spacing: -0.035em; line-height: 1.02; }
.section-title, .post-title { letter-spacing: -0.03em; line-height: 1.06; }
.card h3 { letter-spacing: -0.02em; line-height: 1.2; }
.hero-bio, .post-sub, .card p, .prose p, .prose li { letter-spacing: 0; }
.glass-text, .glass-list li { letter-spacing: 0.005em; }
h1, h2, h3 { font-optical-sizing: auto; }

/* ---------- Materiais: legibilidade sobre vidro ---------- */
.glass-card { background: rgb(14 14 17 / 0.5); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), 0 30px 60px -30px rgb(0 0 0 / 0.85); }
.glass-title { font-weight: 500; }

/* ---------- Movimento reduzido: troca por fade, sem deslocar ---------- */
@media (prefers-reduced-motion: reduce) {
  .anim-rise, .anim-fade { animation: fade 400ms ease both; animation-delay: 0ms; }
  .nav-bar, .topbar { transition: none; }
}

/* ---------- Transparência reduzida: superfícies sólidas ---------- */
@media (prefers-reduced-transparency: reduce) {
  .nav-bar.scrolled, .topbar.scrolled, .dock { background: var(--night-950); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-pill, .glass-card, .lock, .quiz-overlay { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass-card { background: var(--night-900); }
  .quiz-overlay { background: rgb(0 0 0 / 0.92); }
}

/* ---------- Alto contraste: bordas definidas e texto mais forte ---------- */
@media (prefers-contrast: more) {
  :root { --ink-300: #e3e4e8; --ink-400: #c2c3c9; }
  .card, .chip, .nav-pill, .glass-card, .lock, .search input, .lock-row input, .quiz-opt, .btn-outline { border-color: rgb(255 255 255 / 0.5); }
  .nav-bar.scrolled, .topbar.scrolled { background: var(--night-950); box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.4); }
}

/* ---------- Apple HIG: alvos de toque, áreas seguras, vídeo ---------- */

/* Alvo de toque mínimo de 44x44 pt */
.chip { min-height: 44px; }
.copy-code { height: 44px; }
.nav-pill a { display: inline-flex; align-items: center; min-height: 40px; }

/* Áreas seguras: nada fica atrás do notch no celular deitado */
.container {
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
@media (min-width: 640px) {
  .container { padding-left: max(32px, env(safe-area-inset-left)); padding-right: max(32px, env(safe-area-inset-right)); }
}
@media (min-width: 1024px) {
  .container { padding-left: max(48px, env(safe-area-inset-left)); padding-right: max(48px, env(safe-area-inset-right)); }
}

/* Teclado: atalho para pular direto para o conteúdo */
.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--night-950);
  font-weight: 600;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

/* Vídeo de capa: a pessoa pode pausar */
.video-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(10 10 11 / 0.55);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  color: #fff;
  font-size: 1.125rem;
  transition: transform 90ms ease, background-color 160ms ease;
}
.video-toggle:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .video-toggle:hover { background: rgb(10 10 11 / 0.75); } }
@media (prefers-reduced-transparency: reduce) { .video-toggle { background: var(--night-950); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* ============================================================
   Topo: iPhone recebendo Pix e vendas
   ============================================================ */
.phone-scene {
  --phone: 250px;
  --scene-h: 390px;
  position: absolute;
  top: 84px;
  left: 50%;
  width: 100%;
  max-width: 440px;
  height: var(--scene-h);
  transform: translateX(-50%);
}
.phone-scene .hero-glow {
  top: 40%;
  left: 50%;
  right: auto;
  width: 180%;
  max-width: none;
  transform: translate(-50%, -50%);
}

/* Aparelho: corpo de metal escuro, tela com fundo azul */
.iphone {
  position: relative;
  width: var(--phone);
  margin: 0 auto;
  aspect-ratio: 300 / 620;
  padding: calc(var(--phone) * 0.034);
  border-radius: calc(var(--phone) * 0.17);
  background: linear-gradient(150deg, #4a4e58 0%, #17181c 30%, #0c0d10 60%, #33363e 100%);
  box-shadow:
    inset 0 0 0 1.5px rgb(255 255 255 / 0.16),
    inset 0 0 0 4px #0b0b0d,
    0 60px 120px -40px rgb(0 0 0 / 0.95),
    0 0 90px -20px rgb(61 123 255 / 0.55);
}
.iphone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--phone) * 0.14);
  background:
    radial-gradient(90% 55% at 80% 8%, rgb(90 149 255 / 0.55), transparent 60%),
    radial-gradient(120% 70% at 10% 100%, rgb(31 92 240 / 0.45), transparent 60%),
    linear-gradient(180deg, #0d2a8a 0%, #081652 38%, #04081c 100%);
  container-type: inline-size;
  color: #fff;
  font-family: var(--font-sans);
}
.island { position: absolute; top: 3.2cqi; left: 50%; width: 31cqi; height: 9.2cqi; border-radius: 99px; background: #000; transform: translateX(-50%); }
.ls-status { display: flex; justify-content: space-between; align-items: center; padding: 4.4cqi 7cqi 0 9cqi; font-size: 4.6cqi; font-weight: 600; }
.ls-status span:last-child { display: inline-flex; gap: 1.4cqi; font-size: 4.4cqi; }
.ls-lock { margin-top: 6cqi; text-align: center; font-size: 5.5cqi; color: rgb(255 255 255 / 0.85); }
.ls-date { margin-top: 1.5cqi; text-align: center; font-size: 5.2cqi; font-weight: 600; color: rgb(255 255 255 / 0.85); }
.ls-date::first-letter { text-transform: uppercase; }
.ls-time {
  text-align: center;
  font-family: var(--font-display);
  font-size: 25cqi;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: rgb(255 255 255 / 0.94);
}
.ls-notifs { display: grid; gap: 2.4cqi; margin-top: 7cqi; padding: 0 3.6cqi; }
.ls-bottom { position: absolute; left: 9cqi; right: 9cqi; bottom: 9cqi; display: flex; justify-content: space-between; }
.ls-bottom span { display: grid; place-items: center; width: 13cqi; height: 13cqi; border-radius: 50%; background: rgb(0 0 0 / 0.35); font-size: 5.6cqi; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.home-bar { position: absolute; bottom: 2.4cqi; left: 50%; width: 36cqi; height: 1.5cqi; border-radius: 99px; background: rgb(255 255 255 / 0.9); transform: translateX(-50%); }

/* Notificação no estilo iOS (vidro) */
.notif {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  background: rgb(38 42 58 / 0.62);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14);
  color: #fff;
  text-align: left;
}
.notif-icon { display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #5a95ff, #1f5cf0); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3); }
.notif-main { display: grid; min-width: 0; }
.notif-top { display: flex; justify-content: space-between; gap: 8px; }
.notif-top strong { font-weight: 600; }
.notif-top span { color: rgb(255 255 255 / 0.6); flex: none; }
.notif-body { color: rgb(255 255 255 / 0.86); line-height: 1.3; }
.notif-body strong { color: #fff; font-weight: 700; white-space: nowrap; }

/* Na tela: medidas relativas à largura do celular */
.notif.na-tela { gap: 3cqi; padding: 3.2cqi 3.6cqi; border-radius: 6.4cqi; }
.na-tela .notif-icon { width: 10.5cqi; height: 10.5cqi; border-radius: 2.6cqi; font-size: 6.4cqi; }
.na-tela .notif-top, .na-tela .notif-body { font-size: 3.9cqi; }

/* Ao redor: notificações soltas, maiores e flutuando */
.notif.solta {
  position: absolute;
  z-index: 3;
  width: 200px;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgb(30 33 46 / 0.74);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), 0 24px 50px -18px rgb(0 0 0 / 0.85);
}
.solta .notif-icon { width: 32px; height: 32px; border-radius: 9px; font-size: 1.125rem; }
.solta .notif-top, .solta .notif-body { font-size: 0.75rem; }
.solta.s1 { top: 46%; left: -8px; }
.solta.s2 { top: 74%; right: -8px; }

.resumo-chip {
  position: absolute;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.96);
  color: var(--night-950);
  box-shadow: 0 24px 50px -18px rgb(0 0 0 / 0.85);
  white-space: nowrap;
}
.resumo-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(180deg, #5a95ff, #1f5cf0); color: #fff; font-size: 1.125rem; }
.resumo-label { display: block; font-size: 0.6875rem; font-weight: 600; color: #5b5d66; text-transform: uppercase; letter-spacing: 0.06em; }
.resumo-chip strong { display: block; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.resumo-alta { display: inline-flex; align-items: center; gap: 3px; padding: 4px 8px; border-radius: 999px; background: #e3f8e9; color: #0f7a35; font-size: 0.75rem; font-weight: 700; }

.phone-scene .hero-spark { width: 30px; right: 4%; top: 4%; }

/* Celular: mostra o topo do aparelho e some suave embaixo */
@media (max-width: 1023px) {
  .phone-scene {
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  }
  .hero:not(.has-photo) .hero-inner { padding-top: 430px; }
}

/* Computador: aparelho inteiro à direita, notificações saindo pelos lados */
@media (min-width: 1024px) {
  .phone-scene {
    --phone: min(290px, 24vw);
    top: 50%;
    left: auto;
    right: max(130px, calc((100% - 76rem) / 2 + 150px));
    width: var(--phone);
    max-width: none;
    height: auto;
    transform: translateY(-46%);
  }
  .phone-scene .hero-glow { width: 320%; }
  .notif.solta { width: 250px; gap: 12px; padding: 12px 14px; border-radius: 20px; }
  .solta .notif-icon { width: 38px; height: 38px; border-radius: 10px; font-size: 1.375rem; }
  .solta .notif-top, .solta .notif-body { font-size: 0.8125rem; }
  .solta.s1 { top: 30%; left: -52%; }
  .solta.s2 { top: 60%; right: -44%; }
  .resumo-chip { display: flex; bottom: 8%; left: -58%; }
  .phone-scene .hero-spark { right: -24%; }
}

/* Movimento: notificações chegam uma a uma; as soltas flutuam de leve */
@media (prefers-reduced-motion: no-preference) {
  .notif.na-tela { animation: notif-chega 620ms var(--ease-out) both; animation-delay: calc(700ms + var(--i) * 380ms); }
  .notif.solta { animation: notif-chega 700ms var(--ease-out) both, boiar 8s ease-in-out infinite; animation-delay: calc(2300ms + var(--i) * 450ms), calc(3000ms + var(--i) * 1.5s); }
  .resumo-chip { animation: notif-chega 700ms var(--ease-out) 3200ms both, boiar 9s ease-in-out 4s infinite; }
}
@keyframes notif-chega {
  from { opacity: 0; transform: translateY(-12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes boiar {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
@media (prefers-reduced-transparency: reduce) {
  .notif, .ls-bottom span { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .notif { background: #1d2030; }
}

/* ---------- Céu estrelado (canvas no fundo de todas as páginas) ---------- */
body { background: var(--night-950); }
#ceu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: max(100vh, 100lvh);
  pointer-events: none;
}

/* ---------- iPhone realista (moldura gerada no Higgsfield) ---------- */
/* A moldura é uma imagem com a tela vazada; o conteúdo da tela fica por baixo,
   encaixado nas medidas exatas da tela da foto. Sem brilho azul atrás. */
.iphone {
  aspect-ratio: 482 / 1007;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 40px 60px rgb(0 0 0 / 0.75));
}
.iphone-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}
.iphone-screen {
  position: absolute;
  left: 5.187%;
  top: 2.085%;
  width: 89.627%;
  height: 95.531%;
  border-radius: 15.8% / 7.1%;
}
/* Status bar e cadeado abaixo da Dynamic Island da foto */
.ls-status { padding: 5.6cqi 7.5cqi 0 10cqi; }
.ls-lock { margin-top: 7cqi; }

/* Botão "Ver a palavra no vídeo" no card bloqueado */
.lock-video { grid-column: 1 / -1; justify-self: start; min-height: 44px; font-size: 0.9375rem; }
