/* ruled-ink / 01-redacao-em-dia — curso de redação "Redação Em Dia" (até a v1.62.1, "Margem").
   Escrito a partir de references/education/reference-01 e dos limites da família (tokens.css, design-dna.json).
   Medidas, respiro e margens iguais aos da referência (pedido da Lya); cores, fontes, objeto e composição próprios (R32).
   Visual de biblioteca: a textura de pontinhos da referência no destaque, cor só no grifo, no botão em destaque e nas
   anotações; as folhas têm pauta e o texto delas se escreve sozinho (no destaque ao abrir, na redação ao aparecer).
   v1.63.2: destaque centralizado com o marca-texto verde (esquema lima), a palavra que troca e o quadriculado que acende
   (script.js); abas, revelação, sanfona, cabeçalho e menu são comportamentos globais. */

/* ---- base ------------------------------------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ri-header-h) + 12px); }
body { margin: 0; background: var(--ri-paper); color: var(--ri-ink); font: 400 1rem/var(--ri-body-leading) var(--ri-font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { font-family: var(--ri-font-heading); font-weight: var(--ri-heading-weight); line-height: var(--ri-heading-leading); letter-spacing: var(--ri-heading-track); color: var(--ri-ink); }
h1 { font-size: var(--ri-h1); margin-bottom: 18px; }
h2 { font-size: var(--ri-h2); margin-bottom: 12px; }
h3 { font-size: var(--ri-h3); margin-bottom: 6px; }
.wrap { width: min(var(--ri-container), 100% - 32px); margin-inline: auto; }
.section { padding: var(--ri-section-y) 0; }
.section-band { background: var(--ri-band); }
.sec-head { max-width: 720px; margin: 0 0 28px; }
.sec-center { margin-inline: auto; text-align: center; }
.lead { max-width: 52ch; margin-bottom: 26px; color: var(--ri-muted); font-size: var(--ri-lead); }
.sec-center .lead { margin-inline: auto; }
.sec-head .lead:last-child { margin-bottom: 0; }
.hand { font-family: var(--ri-font-hand); font-weight: 600; color: var(--ri-pen); line-height: 1.1; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--ri-ink); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ri-pen); outline-offset: 3px; }

/* rótulo: caixa-alta pequena, vermelha de caneta, com um traço na frente */
.label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--ri-pen); font-size: var(--ri-label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.label::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

/* o grifo: a caneta marca-texto passa por baixo da palavra quando ela chega na tela */
.mark { padding: 0 .06em; font-style: normal; color: inherit; background: linear-gradient(transparent 58%, var(--ri-marker) 58%, var(--ri-marker) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .9s var(--ri-ease) .15s; }
.mark.in, .mark-load { background-size: 100% 100%; }
.mark-load { animation: ri-sweep 1.1s var(--ri-ease) .55s both; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 18px; border: 1.5px solid var(--ri-line-strong); border-radius: var(--ri-radius-pill);
  background: var(--ri-sheet); color: var(--ri-ink); font: 700 .92rem/1.2 var(--ri-font-body); text-decoration: none; cursor: pointer; transition: transform .25s var(--ri-ease), background-color .25s, border-color .25s; }
.btn:hover { transform: translateY(-1px); border-color: var(--ri-ink); }
.btn-lg { min-height: 54px; padding: 0 26px; border-radius: 16px; font-size: 1rem; }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-primary { border-color: var(--ri-ink); background: var(--ri-ink); color: #fff; }
.btn-primary:hover { background: var(--ri-ink-soft); }
.btn-light { border-color: var(--ri-paper); background: var(--ri-paper); color: var(--ri-ink); }
.btn-outline-light { border-color: rgba(243, 238, 229, .4); background: transparent; color: var(--ri-on-dark); }
.btn-outline-light:hover { border-color: var(--ri-on-dark); }
.btn-arrow { display: inline-flex; transition: transform .25s var(--ri-ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn .ws2-icon { width: 20px; height: 20px; }

/* ---- cabeçalho -------------------------------------------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 50; height: var(--ri-header-h); transition: background-color .3s, box-shadow .3s; }
.header.scrolled { background: color-mix(in srgb, var(--ri-paper) 88%, transparent); box-shadow: 0 1px 0 var(--ri-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.header-in { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ri-ink); font: 700 1.25rem/1 var(--ri-font-heading); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.bm-sheet { fill: var(--ri-sheet); stroke: var(--ri-ink); stroke-width: 1.8; }
.bm-margin { stroke: var(--ri-pen); stroke-width: 1.8; }
.bm-lines { stroke: var(--ri-ink); stroke-width: 1.8; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ri-muted); font-size: .92rem; text-decoration: none; transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--ri-ink); }
.menu-toggle { display: none; place-items: center; width: 42px; height: 42px; margin-left: auto; border: 1.5px solid var(--ri-line-strong); border-radius: 50%; background: var(--ri-sheet); cursor: pointer; }
.menu-lines { display: grid; gap: 5px; width: 16px; }
.menu-lines i { display: block; height: 2px; border-radius: 2px; background: var(--ri-ink); transition: transform .3s; }
.menu-toggle[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-mobile { display: none; }

/* ---- destaque (v1.63.2): centralizado, marca-texto atrás das linhas, quadriculado que acende -------------------
   Formato pedido pela Lya a partir de references/education/reference-02; até a v1.63.1, destaque dividido com as folhas. */
.hero { position: relative; padding: clamp(52px, 8vw, 108px) 0 clamp(48px, 6vw, 84px); overflow: hidden; text-align: center;
  background: linear-gradient(var(--ri-grid, var(--ri-line)) 1px, transparent 1px) 0 0 / 44px 44px,
              linear-gradient(90deg, var(--ri-grid, var(--ri-line)) 1px, transparent 1px) 0 0 / 44px 44px; }   /* o quadriculado: 44 px, como a trilha do script.js */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(64% 58% at 50% 46%, color-mix(in srgb, var(--ri-paper) 78%, transparent) 30%, transparent 62%),
              linear-gradient(transparent 70%, var(--ri-paper)); }   /* o centro mais limpo, para o texto respirar; a borda de baixo some no papel */
.grid-trail { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.hero-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: var(--ri-radius-pill); background: var(--ri-marker); color: var(--ri-on-marker);
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hero h1 { margin: 26px auto 24px; font-size: clamp(2.5rem, 6.2vw, 5.2rem); line-height: 1.14; letter-spacing: -.02em; }
.hl { display: inline-block; padding: .02em .24em .1em; border-radius: .18em; background: var(--ri-marker); color: var(--ri-on-marker); }
.hl-1 { rotate: -.9deg; }
.hl-2 { rotate: .7deg; margin-top: .06em; }
.hl-plain { display: inline-block; margin: .04em 0; }
.swap { position: relative; display: inline-block; height: 1.2em; overflow: hidden; vertical-align: bottom; text-align: left; transition: width .5s var(--ri-ease); }
.swap-word { display: inline-block; white-space: nowrap; }   /* do tamanho da palavra: é a medida que o grifo segue */
.swap-word.is-out { position: absolute; left: 0; top: 0; animation: ri-swap-out .42s var(--ri-ease) both; }
.swap-word.is-in { animation: ri-swap-in .48s var(--ri-ease) both; }
@keyframes ri-swap-out { to { opacity: 0; transform: translateY(-70%); filter: blur(3px); } }
@keyframes ri-swap-in { from { opacity: 0; transform: translateY(70%); filter: blur(3px); } }
.hero .lead { max-width: 60ch; margin: 0 auto 30px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 26px; color: var(--ri-muted); font-size: .9rem; }
.hero-steps li { display: inline-flex; align-items: center; gap: 8px; }
.hero-steps li + li::before { content: "›"; margin-right: 6px; color: var(--ri-line-strong); font-size: 1.1rem; }
.hero-steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ri-marker); color: var(--ri-on-marker); font-size: .76rem; }
.ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 18px; color: var(--ri-muted); font-size: .9rem; }
.ticks li { display: inline-flex; align-items: center; gap: 6px; }
.ticks svg { width: 15px; height: 15px; color: var(--ri-pen); stroke-width: 2.6; }
/* as folhinhas soltas: pauta fina, uma linha grifada, balançando devagar */
.mini-sheet { position: absolute; z-index: 1; display: grid; align-content: center; gap: 9px; width: 92px; height: 112px; padding: 0 14px; border-radius: 8px; background: var(--ri-sheet);
  box-shadow: var(--ri-shadow-sheet); animation: ri-bob 7s ease-in-out infinite; }
.mini-sheet i { display: block; height: 2px; border-radius: 2px; background: var(--ri-rule-strong); }
.mini-sheet i.g { height: 9px; background: var(--ri-marker); }
.mini-sheet i.c { width: 60%; }
.ms-1 { left: max(24px, calc(50% - 640px)); top: 18%; rotate: -8deg; }
.ms-2 { right: max(24px, calc(50% - 640px)); bottom: 16%; width: 76px; height: 94px; rotate: 7deg; animation-delay: -3.5s; }
.hero-toggle { position: absolute; right: max(16px, calc((100% - var(--ri-container)) / 2)); bottom: 18px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px;
  border: 1.5px solid var(--ri-line-strong); border-radius: 50%; background: var(--ri-sheet); color: var(--ri-ink); cursor: pointer; }
.hero-toggle svg { width: 14px; height: 14px; }
.hero-toggle .ic-play, .hero-toggle[aria-pressed="true"] .ic-pause { display: none; }
.hero-toggle[aria-pressed="true"] .ic-play { display: block; }

/* ---- programa: grade editorial de tamanhos alternados --------------------------------------------------------- */
.modules { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.module { position: relative; grid-column: span 4; display: flex; flex-direction: column; padding: 24px 24px 22px; border: 1px solid var(--ri-line); border-radius: var(--ri-radius); background: var(--ri-sheet); box-shadow: var(--ri-shadow); }
.module > p:not(.m-num):not(.m-out) { color: var(--ri-muted); font-size: .95rem; }
.m-big { grid-column: span 7; }
.m-big h3 { font-size: 1.55rem; }
.m-mid { grid-column: span 5; }
.m-wide { grid-column: span 12; display: grid; grid-template-columns: auto 1fr 1.2fr; gap: 6px 28px; align-items: baseline; }
.m-wide .m-num { grid-row: span 2; }
.m-wide .m-out { grid-column: 3; grid-row: 1 / span 2; align-self: center; margin-top: 0; padding: 0 0 0 24px; border-top: 0; border-left: 1px dashed var(--ri-line-strong); }
.m-num { margin-bottom: 10px; color: var(--ri-pen); font: 600 2.3rem/1 var(--ri-font-hand); }
.m-out { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--ri-line-strong); font-size: .9rem; }
.module p + .m-out { margin-top: 16px; }
.m-out b { display: block; margin-bottom: 2px; color: var(--ri-pen); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.m-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--ri-ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.m-link svg { width: 15px; height: 15px; }

/* ---- aula aberta: a redação comentada ----------------------------------------------------------------------------- */
.lesson { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.essay { position: relative; padding: 1.9rem 34px 1.6rem 70px; border-radius: var(--ri-radius-sheet); background: repeating-linear-gradient(transparent 0 calc(1.9rem - 1px), var(--ri-rule-strong) calc(1.9rem - 1px) 1.9rem) var(--ri-sheet);
  background-origin: content-box; box-shadow: var(--ri-shadow-sheet); line-height: 1.9rem; }
.essay::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50px; width: 2px; background: var(--ri-margin); }
.essay p { margin-bottom: 1.9rem; }
/* a redação se escreve sozinha quando aparece na tela: cada parágrafo desce como uma mão escrevendo */
.essay > p { clip-path: inset(0 0 100% 0); transition: clip-path 1.05s linear calc(.3s + var(--i, 0) * .8s); }
.essay.in > p { clip-path: inset(-6px 0 -6px 0); }
.essay p:last-child { margin-bottom: 0; }
.essay-theme { color: var(--ri-muted); font-size: .92rem; }
.essay-theme b { margin-right: 6px; color: var(--ri-pen); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.essay-sign { color: var(--ri-pen); font: 600 1.3rem/1.9rem var(--ri-font-hand); text-align: right; }
.mk { padding: .1em 0; background: linear-gradient(transparent 12%, var(--ri-marker) 12%, var(--ri-marker) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .8s var(--ri-ease); }
.lesson[data-ws2-tabs-active="0"] .mk-0, .lesson:not([data-ws2-tabs-active]) .mk-0,
.lesson[data-ws2-tabs-active="1"] .mk-1, .lesson[data-ws2-tabs-active="2"] .mk-2, .lesson[data-ws2-tabs-active="3"] .mk-3 { background-size: 100% 100%; }
.lesson-side { position: sticky; top: calc(var(--ri-header-h) + 24px); display: grid; gap: 16px; }
.part-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.part-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1.5px solid var(--ri-line-strong); border-radius: var(--ri-radius-pill);
  background: var(--ri-sheet); color: var(--ri-ink); font: 700 .9rem/1 var(--ri-font-body); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.part-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--ri-marker); }
.part-tab[aria-selected="true"] { border-color: var(--ri-ink); background: var(--ri-ink); color: #fff; }
.part-panel { padding: 22px 22px 20px; border: 1px solid var(--ri-line); border-radius: var(--ri-radius); background: var(--ri-sheet); box-shadow: var(--ri-shadow); animation: ri-fade .45s ease both; }
.part-panel .hand { margin-bottom: 10px; font-size: 1.65rem; }
.part-panel p:not(.hand):not(.part-q) { color: var(--ri-muted); }
.part-q { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--ri-band); font-size: .92rem; }
.part-q b { display: block; margin-bottom: 2px; color: var(--ri-pen); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.lesson-side .btn { justify-self: start; }

/* ---- método (duas colunas) e professora --------------------------------------------------------------------------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.prose p { margin-bottom: 14px; color: var(--ri-ink); font-size: 1.02rem; }
.prose b { font-weight: 700; }
.teacher { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.polaroid { position: relative; justify-self: center; width: min(100%, 340px); padding: 14px 14px 0; background: var(--ri-sheet); box-shadow: var(--ri-shadow-sheet); transform: rotate(-2.5deg); }
.polaroid img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.polaroid figcaption { padding: 12px 0 16px; font-size: 1.4rem; text-align: center; }
.tape { position: absolute; left: 50%; top: -14px; width: 110px; height: 30px; margin-left: -55px; background: color-mix(in srgb, var(--ri-marker) 55%, transparent); transform: rotate(3deg); }
.creds { display: grid; margin-top: 4px; }
.creds li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--ri-line-strong); }
.creds svg { width: 20px; height: 20px; color: var(--ri-pen); }

/* ---- como estudar, revisão --------------------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 22px 20px 18px; border: 1px solid var(--ri-line); border-radius: var(--ri-radius); background: var(--ri-sheet); box-shadow: var(--ri-shadow); }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%; background: var(--ri-ink); color: #fff; font-weight: 700; }
.step p { color: var(--ri-muted); font-size: .95rem; }
.tips { display: grid; gap: 12px; }
.tip { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--ri-line); border-radius: 14px; background: var(--ri-sheet); box-shadow: var(--ri-shadow); }
.tip-ok { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--ri-marker); color: var(--ri-on-marker); }
.tip-ok svg { width: 14px; height: 14px; stroke-width: 3; }
.tip p { color: var(--ri-muted); font-size: .95rem; }
.tip b { color: var(--ri-ink); }

/* ---- turmas e compromissos -------------------------------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border: 1px solid var(--ri-line); border-radius: var(--ri-radius); background: var(--ri-sheet); box-shadow: var(--ri-shadow); }
.plan h3 { font-size: 1.4rem; }
.plan-desc { min-height: 3.3em; color: var(--ri-muted); font-size: .92rem; }
.plan-tag { position: absolute; right: 20px; top: 14px; color: var(--ri-marker); font-size: 1.3rem; transform: rotate(-4deg); }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.price b { font: 700 2.4rem/1 var(--ri-font-heading); letter-spacing: -.02em; }
.price span, .price-note { color: var(--ri-muted); font-size: .88rem; }
.price-note { margin: 6px 0 18px; }
.plan ul { display: grid; gap: 10px; margin-bottom: 24px; padding-top: 18px; border-top: 1px dashed var(--ri-line-strong); font-size: .93rem; }
.plan li { display: flex; align-items: flex-start; gap: 10px; }
.plan li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--ri-pen); stroke-width: 2.6; }
.plan .btn { margin-top: auto; }
.plan.is-featured { border-color: transparent; background: var(--ri-ink); color: var(--ri-on-dark); }
.plan.is-featured h3, .plan.is-featured .price b { color: #fff; }
.plan.is-featured .plan-desc, .plan.is-featured .price span, .plan.is-featured .price-note { color: var(--ri-on-dark-muted); }
.plan.is-featured ul { border-color: var(--ri-on-dark-line); }
.plan.is-featured li svg { color: var(--ri-marker); }
.plan.is-featured .btn-primary { border-color: var(--ri-marker); background: var(--ri-marker); color: var(--ri-on-marker); }
.plans-foot { max-width: 640px; margin: 24px auto 0; color: var(--ri-muted); font-size: .9rem; text-align: center; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promise { padding: 24px 24px 22px; border: 1px solid var(--ri-line); border-radius: var(--ri-radius); background: var(--ri-sheet); box-shadow: var(--ri-shadow); }
.promise .promise-n { display: inline-block; margin-bottom: 8px; padding: 0 .2em; font-size: 2.6rem; background: linear-gradient(transparent 60%, color-mix(in srgb, var(--ri-marker) 55%, transparent) 60%); }
.promise p { color: var(--ri-muted); font-size: .95rem; }

/* ---- dúvidas -------------------------------------------------------------------------------------------------------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq-item { margin-bottom: 10px; border: 1px solid var(--ri-line); border-radius: 14px; background: var(--ri-sheet); box-shadow: var(--ri-shadow); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font-weight: 700; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { display: grid; place-items: center; width: 28px; height: 28px; color: var(--ri-pen); transition: transform .35s var(--ri-ease); }
.faq-plus svg { stroke-width: 2.6; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; color: var(--ri-muted); animation: ri-fade .4s ease both; }

/* ---- chamada final -------------------------------------------------------------------------------------------------- */
.cta { position: relative; display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; padding: clamp(32px, 6vw, 64px);
  border-radius: var(--ri-radius-cta); background: var(--ri-dark); color: var(--ri-on-dark); overflow: hidden; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.cta .mark { padding: 0 .14em; border-radius: 4px; color: var(--ri-on-marker); background: var(--ri-marker); transition: none; }   /* no escuro o grifo cobre a palavra inteira e já vem pintado: a tinta não some no fundo */
.cta p { max-width: 52ch; color: var(--ri-on-dark-muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- rodapé ------------------------------------------------------------------------------------------------------- */
.footer { padding: 48px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--ri-dark); color: var(--ri-on-dark-muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 32px; }
.brand-light { color: var(--ri-on-dark); }
.brand-light .bm-sheet { fill: transparent; stroke: var(--ri-on-dark); }
.brand-light .bm-lines { stroke: var(--ri-on-dark); }
.footer-brand p:not(.brand) { max-width: 34ch; margin-top: 14px; }
.footer-head { margin-bottom: 12px; color: var(--ri-on-dark); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-col a { display: block; margin-bottom: 8px; color: var(--ri-on-dark-muted); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer .ws2-social { margin-top: 14px; }
.footer .ws2-social-link { color: var(--ri-on-dark); border-color: rgba(243, 238, 229, .25); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--ri-on-dark-line); font-size: .84rem; }
.footer-bottom a { color: var(--ri-on-dark); }

/* ---- revelação e movimento -------------------------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ri-ease), transform .7s var(--ri-ease); }
.reveal.in { opacity: 1; transform: none; }
.anim-rise { animation: ri-rise .8s var(--ri-ease) var(--delay, 0ms) both; }
@keyframes ri-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes ri-fade { from { opacity: 0; } }
@keyframes ri-sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes ri-bob { 50% { transform: rotate(.6deg) translateY(-6px); } }
@keyframes ri-write { from { clip-path: inset(-4px 100% -4px 0); } to { clip-path: inset(-4px -2px -4px 0); } }

/* ---- tablet e celular ------------------------------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-grid; }
  .nav-mobile.open { position: fixed; inset: var(--ri-header-h) 0 0; z-index: 49; display: grid; align-content: start; gap: 4px; padding: 24px 16px;
    background: var(--ri-paper); }
  .nav-mobile.open a { color: var(--ri-ink); font: 700 1.8rem/52px var(--ri-font-heading); text-decoration: none; }
  .cols, .lesson, .teacher { grid-template-columns: 1fr; }
  .mini-sheet { display: none; }
  .lesson-side { position: static; }
  .module, .m-big, .m-mid { grid-column: span 6; }
  .m-wide { grid-column: span 12; grid-template-columns: 1fr; }
  .m-wide .m-num { grid-row: auto; }
  .m-wide .m-out { grid-column: auto; grid-row: auto; padding: 14px 0 0; border-left: 0; border-top: 1px dashed var(--ri-line-strong); }
  .steps { grid-template-columns: 1fr 1fr; }
  .plans, .promises { grid-template-columns: 1fr; }
  .plan-desc { min-height: 0; }
  .cta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .pill { gap: 7px; padding: 8px 12px; font-size: .64rem; letter-spacing: .05em; }
  .hero-steps { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 10px 20px; text-align: left; }
  .hero-steps li + li::before { content: none; }
  .module, .m-big, .m-mid, .m-wide { grid-column: span 12; }
  .steps { grid-template-columns: 1fr; }
  .essay { padding: 1.9rem 18px 1.6rem 46px; }
  .essay::before { left: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- movimento reduzido: tudo no lugar, a folha não troca, o grifo já está pintado -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html:not([data-ws2-motion="full"]) *, html:not([data-ws2-motion="full"]) *::before, html:not([data-ws2-motion="full"]) *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html:not([data-ws2-motion="full"]) .reveal { opacity: 1; transform: none; }
  html:not([data-ws2-motion="full"]) .mark { background-size: 100% 100%; }
  html:not([data-ws2-motion="full"]) .mini-sheet { animation: none; }
  html:not([data-ws2-motion="full"]) .hero-toggle { display: none; }
  html:not([data-ws2-motion="full"]) .essay > p { clip-path: none; }
}
html[data-ws2-motion="reduced"] *, html[data-ws2-motion="reduced"] *::before, html[data-ws2-motion="reduced"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html[data-ws2-motion="reduced"] .reveal { opacity: 1; transform: none; }
html[data-ws2-motion="reduced"] .mark { background-size: 100% 100%; }
html[data-ws2-motion="reduced"] .mini-sheet { animation: none; }
html[data-ws2-motion="reduced"] .hero-toggle { display: none; }
html[data-ws2-motion="reduced"] .essay > p { clip-path: none; }

