:root {
  color-scheme: light;
  --teal-950: #073e43;
  --teal-800: #075a61;
  --teal-700: #0b6b73;
  --teal-100: #d9eff0;
  --teal-50: #edf8f8;
  --lime: #c9f24a;
  --lime-soft: #ecffc2;
  --ink: #102f32;
  --muted: #4e686a;
  --line: #bfd1d2;
  --surface: #ffffff;
  --canvas: #f5f9f8;
  --danger: #a33a32;
  --warning: #855d00;
  --success: #226a4b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --shadow-hard: 5px 5px 0 var(--teal-950);
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--teal-700);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }

:focus-visible { outline: none; box-shadow: var(--focus); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: .75rem 1rem;
  background: var(--surface);
  color: var(--teal-800);
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.site-header {
  min-height: 72px;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 249, 248, .96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--teal-800);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -.03em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  background: var(--lime);
  border: 2px solid var(--teal-950);
  box-shadow: 3px 3px 0 var(--teal-950);
  transform: rotate(-4deg);
}

.header-note { margin: 0; color: var(--muted); font-size: .9rem; }

main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto 0;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}
.site-footer p { margin: 0; }

.hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.signal, .section-index, .flow-kicker {
  color: var(--teal-800);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.signal { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; }
.signal > span, .flow-kicker .stage-dot { width: 9px; height: 9px; background: var(--lime); border: 1px solid var(--teal-950); }

.hero h1, .summary-screen h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: .96;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.highlight {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}
.highlight::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.03em;
  right: -.05em;
  bottom: .07em;
  height: .31em;
  background: var(--lime);
  transform: rotate(-1deg);
}

.hero-lede { max-width: 56ch; margin: 1.6rem 0; color: var(--muted); font-size: 1.08rem; text-wrap: pretty; }

.method { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin: 0; padding: 0; list-style: none; color: var(--teal-950); font-weight: 650; }
.method li { display: flex; align-items: center; gap: .5rem; }
.method span { width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border: 1px solid var(--teal-800); border-radius: 50%; font-size: .78rem; }

.start-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  border: 2px solid var(--teal-950);
  box-shadow: var(--shadow-hard);
}

.field { display: grid; gap: .45rem; margin-bottom: 1.2rem; }
.field label, .recall-box label { color: var(--teal-950); font-weight: 700; }
.label-row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.label-row output { color: var(--muted); font-size: .8rem; white-space: nowrap; }

input, select, textarea {
  width: 100%;
  border: 1px solid #92aaac;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  padding: .8rem .9rem;
  transition: border-color 180ms ease, background-color 180ms ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--teal-700); }
input:focus, select:focus, textarea:focus { border-color: var(--teal-700); }
textarea { resize: vertical; min-height: 9rem; line-height: 1.55; }
::placeholder { color: #596f71; opacity: 1; }

.setup-row { display: flex; gap: 1rem; align-items: end; justify-content: space-between; }
.compact-field { flex: 1; margin-bottom: 1.35rem; }
.privacy-note { margin: 0 0 1.65rem; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.privacy-note span { color: var(--success); font-size: .6rem; }

.button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: .72rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button-primary { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.button-primary:hover:not(:disabled) { background: var(--teal-800); }
.button-secondary { background: var(--surface); color: var(--teal-800); border-color: var(--teal-700); }
.button-secondary:hover:not(:disabled) { background: var(--teal-50); }
.button-quiet { min-height: 38px; padding: .45rem .7rem; background: transparent; color: var(--teal-800); border-color: var(--line); font-size: .88rem; }
.button-small { min-height: 38px; padding: .45rem .8rem; background: var(--teal-700); color: #fff; font-size: .86rem; }
.button-wide { width: 100%; }
.button-help { font-size: .72rem; font-weight: 500; opacity: .78; }

.dashboard-section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin: .15rem 0 0; font-size: 1.55rem; letter-spacing: -.025em; }
.section-index { margin: 0; }
.count-badge { min-width: 2rem; height: 2rem; padding: 0 .5rem; display: grid; place-items: center; border-radius: 999px; background: var(--lime); color: var(--teal-950); font-weight: 800; }

.empty-inline { min-height: 96px; padding: 1.25rem; border: 1px dashed #8da7a9; display: flex; align-items: center; gap: 1rem; color: var(--muted); }
.empty-inline span { flex: 0 0 auto; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; background: var(--teal-100); border-radius: 50%; color: var(--success); font-weight: 800; }
.empty-inline p, .empty-history { margin: 0; }
.empty-history { color: var(--muted); }

.review-list, .history-list { border-top: 1px solid var(--line); }
.review-row, .history-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.review-row p, .history-row p { margin: .1rem 0; color: var(--muted); font-size: .9rem; }
.review-row .review-title, .history-row .history-title { color: var(--ink); font-size: 1rem; font-weight: 700; }
.history-row time { color: var(--muted); font-size: .85rem; white-space: nowrap; }

.header-link { color: var(--teal-800); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--lime); }
.header-link:hover { color: var(--teal-950); }
.header-link-active { border-bottom-color: var(--success); color: var(--success); }

.premium-hero { align-items: start; }
.premium-list { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.premium-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .25rem; }
.premium-list strong { font-size: 1.05rem; }
.premium-list span { max-width: 60ch; color: var(--muted); font-size: .92rem; }

.premium-panel { padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--surface); border: 2px solid var(--teal-950); box-shadow: var(--shadow-hard); }
.premium-price { padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.premium-price-label { margin: 0; color: var(--muted); font-size: .85rem; }
.premium-price-value { margin: .15rem 0 .35rem; font-size: 2.6rem; font-weight: 750; letter-spacing: -.035em; line-height: 1; }
.premium-price-note { margin: 0; color: var(--muted); font-size: .82rem; }
.premium-safe { margin: .75rem 0 0; color: var(--muted); font-size: .8rem; }
.button.is-disabled { background: var(--line); border-color: var(--muted); color: var(--muted); cursor: not-allowed; box-shadow: none; }

.activation { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px dashed #8da7a9; }
.activation h2 { margin: 0 0 .35rem; font-size: 1.1rem; letter-spacing: -.02em; }
.activation label { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
.activation-row { display: flex; gap: .5rem; }
.activation-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  background: var(--canvas);
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.activation-row input:focus-visible { border-color: var(--teal-700); }
.activation-status { margin: .6rem 0 0; min-height: 1.2em; color: var(--muted); font-size: .84rem; }
.activation-status.status-ok { color: var(--success); font-weight: 600; }
.activation-status.status-erro { color: var(--danger); font-weight: 600; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 1rem 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-700); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq p { max-width: 70ch; margin: 0 0 1rem; color: var(--muted); }

.library-locked .library-title, .library-locked .library-meta, .library-locked .library-summary { color: var(--muted); }
.lock-tag {
  margin-left: .4rem;
  padding: .1rem .4rem;
  border: 1px solid var(--teal-700);
  border-radius: 999px;
  color: var(--teal-800);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.generator { padding: 1rem; border: 1px dashed #8da7a9; background: var(--teal-50); }
.generator-lede { margin: 0 0 .75rem; color: var(--teal-800); font-size: .92rem; font-weight: 600; }
.generator-row { display: flex; gap: .75rem; }
.generator-row .field:first-child { flex: 1 1 60%; }
.generator-row .field:last-child { flex: 1 1 40%; }
.generator-actions { display: flex; gap: .5rem; margin-top: .75rem; }
.generator-actions .button { flex: 1 1 auto; }
.generator-help { margin: .6rem 0 0; color: var(--muted); font-size: .78rem; }
.generator-status { margin: .5rem 0 0; min-height: 1.2em; color: var(--muted); font-size: .82rem; }
.generator-status.status-ok { color: var(--success); font-weight: 600; }
.generator-status.status-erro { color: var(--danger); font-weight: 600; }
.prompt-fallback { width: 100%; margin-top: .6rem; padding: .6rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .8rem; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; resize: vertical; }

.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  min-height: 38px;
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--teal-800);
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms cubic-bezier(.22,.61,.36,1), color 160ms cubic-bezier(.22,.61,.36,1), border-color 160ms cubic-bezier(.22,.61,.36,1);
}
.chip:hover { background: var(--teal-50); border-color: var(--teal-700); }
.chip-active { background: var(--teal-800); border-color: var(--teal-800); color: #fff; }
.chip-active:hover { background: var(--teal-950); border-color: var(--teal-950); }

.chip-count { margin-left: .15rem; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.chip-active .chip-count { color: var(--teal-100); }

.library-list { border-top: 1px solid var(--line); }
.library-more { margin-top: 1.1rem; }
.library-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.library-info { min-width: 0; }
.library-row p { margin: .1rem 0; }
.library-title { color: var(--ink); font-size: 1rem; font-weight: 700; }
.library-meta { color: var(--muted); font-size: .82rem; }
.library-summary { max-width: 62ch; color: var(--muted); font-size: .9rem; }
.library-row .button { flex: 0 0 auto; }

.flow-top { width: min(960px, 100%); margin: 1.5rem auto 0; display: flex; align-items: center; gap: 1.5rem; }
.back-home { min-height: 44px; border: 0; background: transparent; color: var(--teal-800); cursor: pointer; font-weight: 700; }
.flow-progress { flex: 1; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: .4rem; color: var(--muted); font-size: .78rem; }
.progress-track { height: 5px; overflow: hidden; background: #d8e5e5; }
.progress-track span { display: block; height: 100%; background: var(--teal-700); }

.flow-screen { width: min(960px, 100%); min-height: 65vh; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 0 3rem; }
.flow-kicker { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.flow-screen h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.flow-screen h1 + p, .recall-heading p { color: var(--muted); font-size: 1.05rem; }

.reading-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.timer { flex: 0 0 auto; color: var(--teal-800); text-align: right; font-variant-numeric: tabular-nums; }
.timer strong { display: block; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: .85; letter-spacing: -.045em; }
.timer span { display: block; margin-top: .5rem; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.timer-bar { height: 7px; margin: 1.7rem 0 2rem; background: #d9e5e5; overflow: hidden; }
.timer-bar span { display: block; height: 100%; width: 100%; background: var(--lime); border-right: 2px solid var(--teal-950); transform-origin: left center; transition: transform 250ms linear; }

.study-text { padding: clamp(1.4rem, 4vw, 3rem); background: var(--surface); border: 2px solid var(--teal-950); font-size: clamp(1.15rem, 2.2vw, 1.48rem); line-height: 1.75; letter-spacing: -.012em; }
.study-text p { max-width: 70ch; margin: 0 auto 1em; }
.study-text p:last-child { margin-bottom: 0; }
.flow-actions { margin-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; }
.flow-actions .button { min-width: 190px; }

.recall-screen { width: min(840px, 100%); }
.recall-heading { margin-bottom: 1.8rem; }
.recall-heading p { max-width: 58ch; }
.recall-box { padding: 1.25rem; background: var(--surface); border: 2px solid var(--teal-950); }
.recall-box textarea { min-height: 300px; margin-top: .75rem; border: 0; border-radius: 0; padding: .5rem 0; font-size: 1.08rem; }
.recall-box textarea:focus { box-shadow: none; }
.recall-meta { padding-top: .75rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .8rem; }
.single-action { justify-content: flex-end; }

.checking-screen { width: min(620px, 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.checking-screen p { max-width: 52ch; color: var(--muted); }
.checking-mark { height: 56px; display: flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; }
.checking-mark span { width: 12px; height: 12px; background: var(--teal-700); animation: checking 900ms ease-in-out infinite alternate; }
.checking-mark span:nth-child(2) { animation-delay: 180ms; background: var(--lime); }
.checking-mark span:nth-child(3) { animation-delay: 360ms; }
.checking-lines { width: min(420px, 90%); margin-top: 2rem; display: grid; gap: .7rem; }
.checking-lines span { height: 9px; background: #dce7e7; animation: pulse 1.2s ease-in-out infinite alternate; }
.checking-lines span:nth-child(2) { width: 78%; }
.checking-lines span:nth-child(3) { width: 91%; }
@keyframes checking { to { transform: translateY(-14px); } }
@keyframes pulse { to { background: var(--teal-100); } }

.notice { margin-bottom: 1.5rem; padding: .8rem 1rem; background: #fff6d6; color: #674c0b; border: 1px solid #d8b760; border-radius: var(--radius-sm); }
.feedback-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.result-badge { flex: 0 0 auto; padding: .42rem .75rem; border-radius: 999px; font-weight: 700; font-size: .86rem; }
.result-completo { background: #d8f1e3; color: #18583d; }
.result-parcial { background: #fff0b8; color: #644800; }
.result-incompleto, .result-errado { background: #f7dcd7; color: #7c2d26; }
.justification { max-width: 70ch; margin: 1.25rem 0 2rem; color: var(--muted); font-size: 1.06rem; }
.feedback-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--surface); }
.feedback-group { padding: 1.25rem; }
.feedback-group + .feedback-group { border-left: 1px solid var(--line); }
.feedback-group h2 { min-height: 2.4rem; margin: 0 0 1rem; display: flex; align-items: center; gap: .55rem; font-size: 1rem; }
.feedback-group h2 span { width: 1.55rem; height: 1.55rem; display: grid; place-items: center; border-radius: 50%; background: var(--teal-100); color: var(--teal-800); }
.feedback-group ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; }
.feedback-group li + li { margin-top: .55rem; }
.feedback-empty { margin: 0; color: var(--muted); font-size: .9rem; }
.hint { margin: 1.2rem 0; padding: 1rem 1.15rem; display: flex; gap: .9rem; background: var(--lime-soft); border: 1px solid #9fbf43; }
.hint > span { color: var(--teal-800); font-size: 1.3rem; font-weight: 800; }
.hint p { margin: .2rem 0 0; color: #405615; }
.fallback-copy { max-width: 65ch; color: var(--muted); }

#original-area:not(:empty) { margin-top: 2rem; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--teal-950); background: var(--surface); scroll-margin-top: 1rem; }
.comparison section { padding: 1.4rem; min-width: 0; }
.comparison section + section { border-left: 1px solid var(--line); background: var(--teal-50); }
.comparison h2 { margin: 0 0 .8rem; font-size: 1rem; color: var(--teal-800); }
.comparison p { margin: 0 0 1em; white-space: pre-line; overflow-wrap: anywhere; }
.evaluation-form { margin-top: 1.5rem; }
.evaluation-form fieldset { margin: 0; padding: 0; border: 0; }
.evaluation-form legend { font-size: 1.25rem; font-weight: 750; }
.evaluation-form fieldset > p { margin: .2rem 0 1rem; color: var(--muted); }
.rating-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.rating-option { position: relative; cursor: pointer; }
.rating-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-option > span { height: 100%; padding: .9rem; display: block; border: 1px solid #8da5a7; border-radius: var(--radius-sm); background: var(--surface); }
.rating-option strong, .rating-option small { display: block; }
.rating-option small { margin-top: .2rem; color: var(--muted); line-height: 1.35; }
.rating-option input:checked + span { border: 2px solid var(--teal-700); padding: calc(.9rem - 1px); background: var(--teal-50); }
.rating-option input:focus-visible + span { box-shadow: var(--focus); }

.summary-screen { min-height: 75vh; padding: clamp(4rem, 10vw, 8rem) 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.summary-mark { width: 3.6rem; height: 3.6rem; margin-bottom: 1rem; display: grid; place-items: center; background: var(--lime); border: 2px solid var(--teal-950); box-shadow: 4px 4px 0 var(--teal-950); font-size: 1.8rem; font-weight: 800; }
.centered { justify-content: center; }
.summary-screen h1 { max-width: 14ch; font-size: clamp(2.6rem, 6vw, 4.7rem); }
.summary-lede { color: var(--muted); font-size: 1.05rem; }
.summary-list { width: min(620px, 100%); margin: 1.5rem 0 2rem; border-top: 1px solid var(--line); text-align: left; }
.summary-row { padding: .9rem 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.summary-row div { display: flex; gap: .8rem; align-items: baseline; }
.summary-row span, .summary-row p { color: var(--muted); font-size: .88rem; }
.summary-row p { margin: 0; }
.summary-row time { color: var(--teal-800); font-weight: 700; }

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

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 3.5rem; }
  .hero h1 { max-width: 12ch; font-size: clamp(3rem, 12vw, 4.7rem); }
  .start-panel { max-width: 620px; }
  .feedback-grid { grid-template-columns: 1fr; }
  .feedback-group + .feedback-group { border-left: 0; border-top: 1px solid var(--line); }
  .rating-options { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .site-header { min-height: 62px; }
  .header-note { display: none; }
  main, .site-footer { width: min(100% - 1.25rem, 1180px); }
  .hero { gap: 2.5rem; padding: 2.5rem 0 3rem; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 3.5rem); }
  .hero-lede { font-size: 1rem; }
  .method { gap: .75rem 1rem; font-size: .9rem; }
  .start-panel { padding: 1rem; box-shadow: 3px 3px 0 var(--teal-950); }
  .setup-row { display: block; }
  .privacy-note { margin-top: -1rem; }
  .section-heading { align-items: center; }
  .review-row { align-items: stretch; flex-direction: column; }
  .review-row .button { width: 100%; }
  .flow-top { margin-top: 1rem; gap: .5rem; }
  .back-home span { display: none; }
  .flow-screen { padding-top: 2.5rem; }
  .reading-heading { align-items: start; }
  .reading-heading > div:first-child p { max-width: 25ch; }
  .timer strong { font-size: 2.55rem; }
  .study-text { padding: 1.15rem; font-size: 1.08rem; line-height: 1.7; }
  .flow-actions { flex-direction: column-reverse; }
  .flow-actions .button { width: 100%; }
  .single-action { flex-direction: column; }
  .recall-box { padding: 1rem; }
  .recall-box textarea { min-height: 260px; }
  .feedback-heading { align-items: start; flex-direction: column; gap: .8rem; }
  .comparison { grid-template-columns: 1fr; }
  .comparison section + section { border-left: 0; border-top: 1px solid var(--line); }
  .rating-options { grid-template-columns: 1fr; }
  .summary-screen h1 { font-size: 2.75rem; }
  .summary-row { align-items: start; }
  .summary-row div { flex-direction: column; gap: .1rem; }
  .library-row { align-items: stretch; flex-direction: column; gap: .75rem; }
  .library-row .button { width: 100%; }
  .library-section .section-heading { align-items: stretch; flex-direction: column; gap: .9rem; }
  .generator-row { flex-direction: column; gap: .6rem; }
  .generator-actions { flex-direction: column; }
  .header-tagline { display: none; }
  .premium-price-value { font-size: 2.2rem; }
  .activation-row { flex-direction: column; }
  .activation-row .button { width: 100%; }
}

/* KaTeX: herda a cor do texto e nunca estoura a linha no celular. */
.katex { font-size: 1.03em; color: inherit; }
.study-text .katex { font-size: 1em; }
.katex-display { margin: .8em 0; overflow-x: auto; overflow-y: hidden; padding-bottom: .25rem; }
.feedback-group .katex, .library-row .katex { font-size: .98em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
