/* Matérias da Toda Fase (/articulacoes, /costas, /memoria): leitura curta, no celular, vinda de banner.
   Mesmos tokens da landing page; cada matéria termina no produto que a ciência citada usou. */
:root {
  --paper: #FFF7F8; --surface: #FFFFFF; --blush: #FBE6EC; --ink: #2B1027; --muted: #6E4A63; --line: #EBCFD9;
  --berry: #A0185A; --on-berry: #FFFFFF; --berry-deep: #5E0D36; --leaf: #2E6A4E; --gold: #FFD84D; --warn: #9A3412;
  --warn-bg: #FFF1E6;
  --display: "Gloock", Georgia, "Times New Roman", serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #190C17; --surface: #241322; --blush: #2C1628; --ink: #F9EAF1; --muted: #CDAFC2; --line: #45283E;
    --berry: #E8599A; --on-berry: #1C0714; --berry-deep: #3A0A24; --leaf: #82CBA5; --warn: #FDBA74; --warn-bg: #2E1A10;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #190C17; --surface: #241322; --blush: #2C1628; --ink: #F9EAF1; --muted: #CDAFC2; --line: #45283E;
  --berry: #E8599A; --on-berry: #1C0714; --berry-deep: #3A0A24; --leaf: #82CBA5; --warn: #FDBA74; --warn-bg: #2E1A10;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.1875rem/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--berry); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 680px; margin-inline: auto; padding-inline: 16px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; text-wrap: balance; letter-spacing: -.01em; margin: 0; }
p { margin: 0 0 .8em; }
strong { font-weight: 700; }
sup { line-height: 0; font-size: .7em; }
mark { background: var(--gold); color: #111317; padding: 0 .12em; border-radius: .12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Barra de leitura + topo */
.progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 30; background: var(--berry);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand svg { width: 28px; height: 28px; }
.brand .name { font-family: var(--display); font-size: 1.3rem; }
.top .tag { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Abertura */
.hero { padding: 24px 0 8px; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--berry); background: var(--blush); padding: .35em .8em; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 7.4vw, 3rem); margin-bottom: 14px; }
.dek { font-size: 1.2rem; color: var(--muted); margin-bottom: 14px; }
.byline { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 18px; }
.byline span { display: inline-flex; align-items: center; gap: 6px; }
.byline svg { width: 16px; height: 16px; }
.hero figure { margin: 0 -16px; }
.hero figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
figcaption { font-size: .85rem; color: var(--muted); padding: 8px 16px 0; }
@media (min-width: 700px) { .hero figure { margin: 0; } .hero figure img, .pic img { border-radius: 16px; } figcaption { padding-inline: 0; } }

/* Resumo */
.tldr { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--berry); border-radius: 14px;
  padding: 18px 18px 8px; margin: 26px 0; }
.tldr h2 { font-family: var(--body); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--berry); margin-bottom: 10px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 10px; margin-bottom: 10px; line-height: 1.45; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--leaf); margin-top: 2px; }

/* Texto corrido */
.lead { font-size: 1.25rem; }
.lead::first-letter { font-family: var(--display); float: left; font-size: 3.4em; line-height: .82; padding: .06em .1em 0 0; color: var(--berry); }

/* Passos */
.step { margin: 40px 0; }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.num { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--berry); color: var(--on-berry); font: 400 1.7rem/1 var(--display); }
.step h2 { font-size: clamp(1.55rem, 5.6vw, 2rem); }
.step > h2 { margin-bottom: 14px; }
.pic { margin: 16px -16px; }
.pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 700px) { .pic { margin-inline: 0; } }
.howto { background: var(--blush); border-radius: 14px; padding: 16px 18px; margin: 14px 0; }
.howto b { display: block; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--berry); margin-bottom: 6px; }
.howto ol { margin: 0; padding-left: 1.2em; }
.howto li { margin-bottom: 4px; }
.fact { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; margin: 18px 0;
  padding: 16px 18px; border-radius: 14px; background: var(--berry-deep); color: #FFF; }
.fact .big { font: 400 clamp(2.6rem, 11vw, 3.4rem)/1 var(--display); color: #FFD84D; grid-row: span 2; }
.fact p { margin: 0; line-height: 1.4; }
.fact small { color: #F3CFDD; font-size: .875rem; }

/* Produto */
.role { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin: 22px 0;
  box-shadow: 0 10px 30px -18px rgba(94, 13, 54, .45); }
.role-head { background: var(--berry-deep); color: #FFF; padding: 10px 18px; font-size: .85rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; }
.role-body { padding: 18px; }
.role-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.role-photo { flex: none; width: 96px; height: 96px; border-radius: 12px; background: #FFF; display: grid; place-items: center; }
.role-photo img { width: 88px; height: 88px; object-fit: contain; }
.role h3 { font-size: 1.35rem; margin-bottom: 4px; }
.role .meta { font-size: .9rem; color: var(--muted); margin: 0; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .95rem; margin-bottom: 12px; }
.stars { color: #E0A100; letter-spacing: .06em; }
.buy { display: grid; gap: 10px; margin-top: 14px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 12px 20px;
  border-radius: 999px; font: 700 1.05rem/1.2 var(--body); text-decoration: none; text-align: center; }
.btn-buy { background: var(--berry); color: var(--on-berry); }
.btn-alt { border: 2px solid var(--berry); color: var(--berry); }
.btn:hover { filter: brightness(1.06); }
.perday { font-size: .95rem; color: var(--muted); margin-top: 6px; }
.perday b { color: var(--ink); font-size: 1.15rem; }
.note { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* Aviso, perguntas e leia também */
.alert { background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: 14px;
  padding: 16px 18px; margin: 30px 0; }
.alert b { color: var(--warn); }
.alert ul { margin: 8px 0 0; padding-left: 1.2em; }
.faq { margin: 36px 0; }
.faq h2, .more h2 { font-size: 1.6rem; margin-bottom: 12px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; color: var(--berry); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); }
.more { margin: 40px 0 20px; }
.cards { display: grid; gap: 12px; }
.card { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.card img { width: 110px; height: 90px; object-fit: cover; }
.card span { font-family: var(--display); font-size: 1.1rem; line-height: 1.2; padding-right: 12px; }

/* Rodapé */
footer { margin-top: 40px; padding: 30px 0 110px; background: var(--blush); font-size: .9rem; color: var(--muted); }
footer h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 18px 0 6px; }
footer ol { padding-left: 1.2em; margin: 0; }
footer li { margin-bottom: 6px; }

/* Barra fixa (aparece depois do primeiro passo) */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, .4); transition: transform .3s ease; }
.sticky[data-off] { transform: translateY(110%); }
.sticky .t { flex: 1; margin: 0; font-size: .9rem; line-height: 1.3; color: var(--muted); }
.sticky .t b { display: block; color: var(--ink); }
.sticky .btn { min-height: 46px; padding: 10px 18px; font-size: .95rem; white-space: nowrap; }
@media (min-width: 760px) { .sticky { left: 50%; right: auto; width: 680px; transform: translateX(-50%); bottom: 14px;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 22px; }
  .sticky[data-off] { transform: translate(-50%, 150%); } }

/* Entradas suaves ao rolar (desligadas com movimento reduzido) */
@media (prefers-reduced-motion: no-preference) {
  html.anim .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  html.anim .rv.in { opacity: 1; transform: none; }
  .progress { transition: transform .1s linear; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sticky { transition: none; } }

/* Navegação e trilha (matérias e blog) */
.nav { display: flex; gap: 18px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: .95rem; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--berry); color: var(--berry); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { color: var(--muted); }

/* Home do blog */
.blog-hero { padding: 28px 0 8px; }
.blog-hero h1 { font-size: clamp(2.1rem, 8vw, 3.2rem); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; }
.chips a:hover { border-color: var(--berry); color: var(--berry); }
.posts { display: grid; gap: 22px; margin: 26px 0 40px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.post > a { display: block; color: inherit; text-decoration: none; }
.post img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post .in-post { padding: 16px 18px 20px; }
.post .kicker { margin-bottom: 10px; }
.post h2 { font-size: clamp(1.4rem, 5.2vw, 1.8rem); margin-bottom: 8px; }
.post p { color: var(--muted); margin: 0 0 10px; }
.post .read { font-weight: 700; color: var(--berry); }
.post.feature h2 { font-size: clamp(1.7rem, 6.4vw, 2.3rem); }
@media (min-width: 700px) {
  .posts { grid-template-columns: 1fr 1fr; }
  .post.feature { grid-column: 1 / -1; }
  .post.feature > a { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }
  .post.feature img { height: 100%; aspect-ratio: auto; min-height: 300px; }
}
.editorial { background: var(--blush); border-radius: 16px; padding: 20px; margin: 10px 0 30px; }
.editorial h2 { font-size: 1.5rem; margin-bottom: 10px; }
.editorial ul { margin: 0; padding-left: 1.2em; }
.editorial li { margin-bottom: 6px; }
