/*
 * Mãe do Livro — sistema visual da vitrine
 * Minimalismo caloroso: tinta e papel quentes, roxo como único acento,
 * linhas de 1px no lugar de sombras, e a capa do livro como protagonista.
 */

/* Fontes hospedadas no próprio site (licença SIL OFL): Fraunces para
   títulos, calorosa e editorial; Inter para textos, moderna e legível. */
@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/assets/fonts/fraunces.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Fraunces";
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
    src: url("/assets/fonts/fraunces-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("/assets/fonts/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;
}

/* Letra de máquina de escrever do título da capa do Medicão (Special Elite,
   SIL OFL). Só é baixada nas páginas que a usam. */
@font-face {
    font-family: "Special Elite";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/special-elite.woff2") format("woff2");
}

/* Letra do título da capa de Amor de Vó (Mali, SIL OFL). Só é baixada nas
   páginas que a usam. */
@font-face {
    font-family: "Mali";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/mali.woff2") format("woff2");
}

:root {
    /* papel e tinta — tons quentes, nunca cinza puro */
    --paper: #fdfcfb;
    --paper-soft: #f6f3f0;
    --paper-deep: #efeae5;
    --surface: #fff;

    --ink: #23201f;
    --ink-soft: #635c57;
    --ink-faint: #736b65;

    /* linhas substituem sombras */
    --line: rgb(35 32 31 / 12%);
    --line-strong: rgb(35 32 31 / 26%);

    /*
     * Paleta da marca. Cada cor tem um papel fixo, para que o colorido
     * pareça intencional e não decorativo:
     *   roxo    — marca: links, botão principal, foco, item ativo
     *   amarelo — alegria: destaques, selos, realces
     *   laranja — calor: categorias e chamadas do catálogo
     *   verde   — confiança: pagamento seguro e confirmações
     *   azul    — calma: avisos e informações
     */
    --accent: #6b3f86;
    --accent-deep: #4c2b5c;
    --accent-soft: #f3eef7;

    --yellow: #f2b705;
    --yellow-soft: #fff5d4;
    --yellow-ink: #7a5c00;
    --yellow-deep: #3d2e00;

    --orange: #d9552c;
    --orange-soft: #fce6dc;
    --orange-ink: #98380f;

    --green: #5d8a1b;
    --green-soft: #e9f2d6;
    --green-ink: #456611;
    --green-deep: #3c5a0f;

    --blue: #2f7fa8;
    --blue-soft: #ddeef6;
    --blue-ink: #1f5f80;

    --danger: #a3341f;
    --danger-soft: #fbf0ed;

    /* tipografia sem download: serifa editorial + sans do sistema */
    --serif: "Fraunces", Georgia, "Iowan Old Style", "Palatino Linotype", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* escala fluida */
    --step-display: clamp(2.4rem, 1.5rem + 3.9vw, 4.1rem);
    --step-title: clamp(1.75rem, 1.3rem + 1.9vw, 2.6rem);
    --step-h3: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
    --step-lead: clamp(1.02rem, .97rem + .28vw, 1.18rem);

    /* ritmo vertical */
    --space-section: clamp(64px, 8vw, 128px);
    --gutter: clamp(20px, 4vw, 40px);

    --radius: 10px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --shadow-soft: 0 18px 40px -24px rgb(35 32 31 / 35%);
    --shadow-lift: 0 26px 50px -28px rgb(35 32 31 / 45%);

    --ease: cubic-bezier(.2, .6, .3, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

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

button,
summary {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
figure,
blockquote {
    margin: 0;
}

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

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

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

.honeypot {
    position: absolute !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.shell {
    width: min(1160px, calc(100% - var(--gutter) * 2));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 200;
    top: 10px;
    left: 10px;
    padding: 10px 18px;
    color: #fff;
    background: var(--ink);
    border-radius: var(--radius);
    font-size: .9rem;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform .18s var(--ease);
}

.skip-link:focus-visible {
    transform: translateY(0);
}

/* ---------------------------------------------------------------- tipografia */

.display-title {
    max-width: 18ch;
    font-family: var(--serif);
    font-size: var(--step-display);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.display-title span {
    display: block;
    color: var(--accent);
    font-style: italic;
}

.section-title {
    font-family: var(--serif);
    font-size: var(--step-title);
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: -.015em;
    text-wrap: balance;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.lead {
    max-width: 56ch;
    color: var(--ink-soft);
    font-size: var(--step-lead);
    line-height: 1.68;
    text-wrap: pretty;
}

/* ------------------------------------------------------------------ cabeçalho */

/* Cabeçalho no vermelho-terra da capa de Acredita em Você. A cor exata da
   capa (#e16146) deixaria o menu branco em 3,50:1; #c14a33 é o mesmo tom,
   um pouco mais fundo, e chega a 4,89:1. */
.site-header {
    position: sticky;
    z-index: 90;
    top: 0;
    border-bottom: 1px solid rgb(0 0 0 / 14%);
    background: #c14a33;
    box-shadow: 0 6px 18px -14px rgb(35 32 31 / 60%);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding-block: 6px;
}

.brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin-right: auto;
    text-decoration: none;
}

/* Dimensionado pela altura, para o logotipo ficar centrado na barra. */
.brand-logo {
    display: block;
    width: auto;
    height: 58px;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    gap: 30px;
    margin-right: 14px;
}

.desktop-nav a {
    position: relative;
    padding: 6px 0;
    color: #fff;
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: .01em;
    text-decoration: none;
    transition: color .16s var(--ease);
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: #fff;
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s var(--ease);
}

.desktop-nav a:hover {
    color: #fff;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
    transform: scaleX(1);
}

.desktop-nav a.is-active {
    color: #fff;
}

.account-pill,
.cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgb(255 255 255 / 55%);
    color: #fff;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .16s var(--ease), background-color .16s var(--ease);
}

.account-pill:hover,
.cart-pill:hover {
    border-color: #fff;
    background: #fff;
    color: #a63d29;
}

.cart-pill svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.cart-pill strong {
    min-width: 21px;
    padding: 1px 6px;
    color: var(--yellow-deep);
    background: var(--yellow);
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    text-align: center;
}

.mobile-menu {
    display: none;
    position: relative;
}

.mobile-menu summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding-left: 10px;
    border: 1px solid rgb(255 255 255 / 42%);
    border-radius: var(--radius);
    cursor: pointer;
    list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu summary span {
    width: 20px;
    height: 1.5px;
    background: #fff;
}

.mobile-menu nav {
    position: absolute;
    z-index: 95;
    top: calc(100% + 10px);
    right: 0;
    display: flex;
    flex-direction: column;
    min-width: 208px;
    padding: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-lg);
    color: var(--ink);
}

.mobile-menu nav a {
    padding: 11px 14px;
    border-radius: var(--radius);
    font-size: .95rem;
    text-decoration: none;
}

.mobile-menu nav a:hover {
    background: var(--paper-soft);
}

/* --------------------------------------------------------------------- botões */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 28px;
    border: 1px solid var(--ink);
    background: none;
    border-radius: var(--radius-pill);
    font-size: .94rem;
    font-weight: 600;
    letter-spacing: .005em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.button:hover {
    transform: translateY(-1px);
}

.button.is-dark {
    box-shadow: 0 10px 22px -12px rgb(76 43 92 / 70%);
}

.button.is-dark {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.button.is-dark:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
}

.button.is-light {
    color: var(--ink);
    border-color: var(--line-strong);
}

.button.is-light:hover {
    border-color: var(--ink);
    background: var(--paper-soft);
}

.button.is-disabled,
.button[disabled] {
    color: var(--ink-faint);
    background: var(--paper-soft);
    border-color: var(--line);
    cursor: not-allowed;
}

.button.is-full-button {
    width: 100%;
}

.button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.small-button {
    padding: 9px 16px;
    border: 1px solid var(--line-strong);
    background: none;
    border-radius: var(--radius);
    font-size: .85rem;
    cursor: pointer;
    transition: border-color .16s var(--ease), background-color .16s var(--ease);
}

.small-button:hover {
    border-color: var(--ink);
    background: var(--paper-soft);
}

.small-button.is-ghost {
    color: var(--ink-soft);
    border-color: transparent;
}

.small-button.is-ghost:hover {
    color: var(--danger);
    background: var(--danger-soft);
}

.text-button {
    padding: 0;
    color: var(--ink-soft);
    background: none;
    border: 0;
    font-size: .9rem;
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}

.text-button:hover {
    color: var(--ink);
}

.back-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--ink-soft);
    font-size: .9rem;
    text-decoration: none;
}

.back-link:hover {
    color: var(--accent);
}

/* ----------------------------------------------------------------- home: hero */

.home-hero {
    padding-block: clamp(52px, 7vw, 104px) var(--space-section);
    background:
        radial-gradient(circle at 82% 18%, rgb(242 183 5 / 12%), transparent 24%),
        radial-gradient(circle at 90% 76%, rgb(47 127 168 / 10%), transparent 28%);
}

.hero-grid {
    display: grid;
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
    grid-template-columns: .92fr 1.08fr;
}

.hero-copy .lead {
    margin-top: 22px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--ink-faint);
    font-size: .87rem;
}

.hero-library {
    position: relative;
    display: grid;
    align-items: end;
    gap: clamp(8px, 1.4vw, 18px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: clamp(24px, 3.6vw, 44px) clamp(18px, 3vw, 34px) clamp(38px, 4vw, 52px);
    border: 1px solid var(--line);
    background: rgb(255 255 255 / 72%);
    border-radius: 18px;
}

.hero-volume {
    display: block;
    min-width: 0;
    transform-origin: bottom center;
    transition: translate .3s var(--ease);
}

.hero-volume:nth-child(1) {
    rotate: -3deg;
}

.hero-volume:nth-child(2) {
    translate: 0 -22px;
}

.hero-volume:nth-child(3) {
    rotate: 3deg;
}

.hero-volume:hover {
    translate: 0 -9px;
}

.hero-volume:nth-child(2):hover {
    translate: 0 -31px;
}

.hero-volume img {
    width: 100%;
    aspect-ratio: 720 / 1024;
    border: 1px solid var(--line);
    border-radius: 2px;
    object-fit: cover;
}

.hero-tag {
    position: absolute;
    bottom: -14px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: var(--yellow-soft);
    border: 1px solid var(--yellow);
    border-radius: 999px;
    color: var(--yellow-ink);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    white-space: nowrap;
    transform: translateX(-50%);
}



/* -------------------------------------------------------------- faixa valores */

.values-strip {
    padding-block: clamp(40px, 5vw, 60px);
    border-block: 1px solid var(--line);
    background: linear-gradient(180deg, var(--paper-soft), var(--paper));
}

.values-grid {
    display: grid;
    gap: clamp(26px, 4vw, 56px);
    grid-template-columns: repeat(3, 1fr);
}

.value {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.value strong {
    font-size: 1rem;
    font-weight: 600;
}

.value p {
    color: var(--ink-soft);
    font-size: .92rem;
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 50%;
    font-size: 1.05rem;
    line-height: 1;
}

.value-icon.is-sky {
    color: var(--blue-ink);
    background: var(--blue-soft);
}

.value-icon.is-sun {
    color: var(--yellow-ink);
    background: var(--yellow-soft);
}

.value-icon.is-sage {
    color: var(--green-ink);
    background: var(--green-soft);
}

/* ------------------------------------------------ comunicação para os pais */

.values-grid.is-four {
    grid-template-columns: repeat(4, 1fr);
}

.value-icon.is-rose {
    color: var(--accent-deep);
    background: var(--accent-soft);
}

/* ------------------------------------------- livros: para que serve cada um */

/* Paleta própria de cada livro, aplicada na home e na página do livro. */
.is-sky {
    --tone: #2f7fa8;
    --tone-soft: #e8f3f9;
    --tone-deep: #cfe5f1;
    --tone-ink: #1f5f80;
}

.is-rose {
    --tone: #c2547a;
    --tone-soft: #fbedf2;
    --tone-deep: #f4d3df;
    --tone-ink: #8a2c4e;
}

.is-sun {
    --tone: #e0a500;
    --tone-soft: #fff6d9;
    --tone-deep: #fde7a6;
    --tone-ink: #6b4f00;
}

.book-purpose {
    padding-block: var(--space-section);
}

.purpose-heading {
    max-width: 640px;
    margin: 0 auto clamp(40px, 6vw, 72px);
    text-align: center;
}

.purpose-heading .lead {
    margin: 18px auto 0;
}

.purpose-list {
    display: grid;
    gap: clamp(28px, 4vw, 56px);
}

.purpose-story {
    display: grid;
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    padding: clamp(26px, 4.5vw, 64px);
    background: var(--tone-soft);
    border-radius: 22px;
}

.purpose-story:nth-child(even) .purpose-cover {
    order: 2;
}

.purpose-cover {
    position: relative;
    display: grid;
    place-items: center;
    padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 40px);
    background: var(--tone-deep);
    border-radius: 18px;
}

.purpose-cover img {
    width: min(250px, 78%);
    border-radius: 3px;
    box-shadow: 0 22px 40px -18px rgb(35 32 31 / 45%), 0 4px 10px rgb(35 32 31 / 12%);
    transform: rotate(-3deg);
    transition: transform .45s var(--ease);
}

.purpose-story:nth-child(even) .purpose-cover img {
    transform: rotate(3deg);
}

.purpose-cover:hover img,
.purpose-story:hover .purpose-cover img {
    transform: rotate(0) translateY(-8px) scale(1.02);
}

.purpose-age {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 13px;
    background: var(--surface);
    border-radius: 999px;
    color: var(--tone-ink);
    font-size: .78rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgb(35 32 31 / 10%);
}

.purpose-content h3 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
    font-weight: 400;
    line-height: 1.1;
}

.purpose-content h3 a {
    text-decoration: none;
}

.purpose-content h3 a:hover {
    color: var(--tone-ink);
}

.purpose-statement {
    margin-top: 10px;
    color: var(--tone-ink);
    font-size: var(--step-lead);
    font-weight: 600;
}

.purpose-columns {
    display: grid;
    gap: clamp(20px, 3vw, 40px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: clamp(22px, 3vw, 34px);
}

.purpose-content h4,
.guide-audience h4 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.check-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    color: var(--ink-soft);
    line-height: 1.5;
}

.check-list li::before {
    position: absolute;
    top: .1em;
    left: 0;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    background: var(--tone-ink, var(--accent));
    border-radius: 50%;
    color: #fff;
    content: "✓";
    font-size: .72rem;
    font-weight: 700;
}

.purpose-parents {
    color: var(--ink-soft);
    line-height: 1.6;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
}

.skill-chips li {
    padding: 6px 13px;
    background: var(--surface);
    border: 1px solid var(--tone-deep, var(--line));
    border-radius: 999px;
    color: var(--tone-ink, var(--ink));
    font-size: .82rem;
    font-weight: 600;
}

.purpose-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: clamp(26px, 3vw, 36px);
}

.purpose-price {
    font-family: var(--serif);
    font-size: 1.5rem;
}

/* Página do livro: explicação para a mãe ao lado da capa. */
.product-fact.is-age strong {
    color: var(--accent);
}

.book-brief {
    display: grid;
    gap: 24px;
    padding: clamp(22px, 3vw, 32px);
    margin-top: 30px;
    background: var(--tone-soft);
    border-radius: var(--radius-lg);
}

.brief-block h2 {
    margin-bottom: 12px;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 500;
}

.brief-moments {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.brief-moments li {
    position: relative;
    padding: 12px 14px 12px 40px;
    background: var(--surface);
    border-radius: var(--radius);
    color: var(--ink);
    line-height: 1.5;
}

.brief-moments li::before {
    position: absolute;
    top: 13px;
    left: 14px;
    width: 14px;
    height: 14px;
    background: var(--tone-ink);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--tone-deep);
    content: "";
    transform: scale(.7);
}

.brief-steps {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    counter-reset: passo;
    list-style: none;
}

.brief-steps li {
    position: relative;
    padding-left: 42px;
    color: var(--ink-soft);
    line-height: 1.55;
    counter-increment: passo;
}

.brief-steps li::before {
    position: absolute;
    top: -2px;
    left: 0;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    background: var(--tone-ink);
    border-radius: 50%;
    color: #fff;
    content: counter(passo);
    font-size: .82rem;
    font-weight: 700;
}

.brief-bond {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: var(--surface);
    border-left: 4px solid var(--tone-ink);
    border-radius: var(--radius);
}

.brief-bond .icon {
    width: 24px;
    height: 24px;
    color: var(--tone-ink);
}

.brief-bond p {
    color: var(--ink-soft);
    line-height: 1.6;
}

.brief-bond strong {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
}

.book-brief .skill-chips {
    margin-top: 0;
}

.brief-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tone-ink);
    font-weight: 600;
    text-decoration: none;
}

.brief-more .icon {
    width: 18px;
    height: 18px;
    transform: rotate(90deg);
}

.brief-more:hover {
    text-decoration: underline;
}

/* Página do livro: guia de uso para a família. */
/* Folhear as páginas de exemplo (book-flip.js): janela aberta pelo clique na capa. */
.product-cover-open {
    position: relative;
    display: block;
    cursor: zoom-in;
}

.product-cover-open img {
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.product-cover-open:hover img,
.product-cover-open:focus-visible img {
    transform: scale(1.025);
}

/* Selo no canto vazio da capa; ao passar o mouse, mostra "Folhear o livro". */
.product-cover-hint {
    position: absolute;
    bottom: 14px;
    left: 26px;
    display: inline-flex;
    align-items: center;
    padding: 11px;
    background: var(--accent);
    border-radius: var(--radius-pill);
    box-shadow: 0 0 0 4px rgb(255 255 255 / 55%), 0 8px 22px -8px rgb(35 32 31 / 60%);
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
    transition: transform .25s;
    animation: cover-hint-pulse 2.6s ease-in-out 1s 2;
}

.product-cover-hint svg {
    width: 20px;
    height: 20px;
    flex: none;
}

.product-cover-hint span {
    max-width: 0;
    overflow: hidden;
    transition: max-width .35s ease, margin .35s ease;
}

.product-cover-open:hover .product-cover-hint span,
.product-cover-open:focus-visible .product-cover-hint span {
    max-width: 160px;
    margin: 0 4px 0 8px;
}

.product-cover-open:hover .product-cover-hint {
    transform: translateY(-2px);
}

@keyframes cover-hint-pulse {
    50% {
        box-shadow: 0 0 0 10px rgb(255 255 255 / 0%), 0 8px 22px -8px rgb(35 32 31 / 60%);
    }
}

.has-flip-open,
.has-flip-open body {
    overflow: hidden;
}

.flip {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 12px 12px 18px;
    background: transparent;
    border: 0;
    color: #fff;
    outline: none;
}

.flip[open] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: flip-fade .35s ease-out;
}

.flip::backdrop {
    background: rgb(28 24 30 / 96%);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

@keyframes flip-fade {
    from {
        opacity: 0;
    }
}

.flip-top {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 0 20px;
    pointer-events: none;
}

.flip-title {
    color: #fff;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 500;
}

.flip-title span {
    color: rgb(255 255 255 / 60%);
    font-family: var(--sans);
    font-size: .85rem;
}

.flip-close {
    display: grid;
    width: 44px;
    height: 44px;
    flex: none;
    place-items: center;
    padding: 0;
    background: rgb(255 255 255 / 12%);
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 50%;
    margin-left: auto;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
}

.flip-close:hover {
    background: rgb(255 255 255 / 22%);
}

.flip-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-width: 2.2;
}

/* Em pé: livro na largura toda, controles embaixo. */
.flip-stage {
    width: min(100%, calc((100dvh - 190px) * 2 * var(--page-ratio)));
    margin: 56px auto 0;
    cursor: pointer;
    perspective: 2400px;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.flip-book {
    position: relative;
    aspect-ratio: calc(2 * var(--page-ratio));
    transform-style: preserve-3d;
    transition: transform .9s cubic-bezier(.45, .05, .25, 1);
}

/* Fechado, só uma metade tem página: centraliza a capa ou a contracapa. */
.flip-book.is-closed {
    transform: translateX(-25%);
}

.flip-book.is-closed-back {
    transform: translateX(25%);
}

.flip.is-instant .flip-book,
.flip.is-instant .flip-leaf {
    transition: none;
}

.flip-base,
.flip-leaf {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
}

.flip-base {
    background: #fff;
    border-radius: 0 4px 4px 0;
}

.flip-leaf {
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform .9s cubic-bezier(.45, .05, .25, 1);
}

.flip-leaf.is-turned {
    transform: rotateY(-180deg);
}

.flip-face {
    position: absolute;
    inset: 0;
    background: #fbf8f2;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-face.is-front {
    border-radius: 0 4px 4px 0;
}

.flip-face.is-back {
    border-radius: 4px 0 0 4px;
    transform: rotateY(180deg);
}

/* Espessura do miolo na borda de fora das páginas abertas. */
.flip-face.is-pagina.is-front,
.flip-face.is-branca.is-front {
    box-shadow: 2px 0 0 #ece6dd, 4px 1px 0 #ddd5ca;
}

.flip-face.is-pagina.is-back {
    box-shadow: -2px 0 0 #ece6dd, -4px 1px 0 #ddd5ca;
}

.flip-base img,
.flip-face img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    pointer-events: none;
}

/* A capa do catálogo tem outra proporção: estica de leve em vez de cortar o título. */
.flip-face.is-capa img {
    object-fit: fill;
}

/* Contracapa de outra proporção: corta o topo, nunca o pé (onde fica o código de barras). */
.flip-face.is-contracapa img {
    object-position: center bottom;
}

/* Capa e contracapa: livro fechado, com sombra sobre a mesa. */
.flip-face.is-capa,
.flip-face.is-contracapa {
    box-shadow: 0 30px 60px -24px rgb(0 0 0 / 70%), 0 0 0 1px rgb(0 0 0 / 8%);
}

/* Dobra da lombada: sombra suave no lado de dentro de cada página. */
.flip-base::after,
.flip-face::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.flip-base::after,
.flip-face.is-front::after {
    background: linear-gradient(90deg, rgb(0 0 0 / 24%) 0, rgb(0 0 0 / 6%) 4%, transparent 12%);
}

.flip-face.is-back::after {
    background: linear-gradient(270deg, rgb(0 0 0 / 24%) 0, rgb(0 0 0 / 6%) 4%, transparent 12%);
}

/* Capa e contracapa têm lombada de verdade, não a dobra do miolo. */
.flip-face.is-capa::after {
    background: linear-gradient(90deg, rgb(0 0 0 / 18%) 0, transparent 3%);
}

.flip-face.is-contracapa::after {
    background: linear-gradient(270deg, rgb(0 0 0 / 18%) 0, transparent 3%);
}

/* Brilho que atravessa a página enquanto ela vira. */
.flip-leaf.is-turning .flip-face::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent 20%, rgb(255 255 255 / 35%) 50%, rgb(0 0 0 / 12%) 80%);
    animation: flip-sheen .9s ease-in-out;
    content: "";
    opacity: 0;
    pointer-events: none;
}

@keyframes flip-sheen {
    50% {
        opacity: 1;
    }
}

.flip-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 3vw, 28px);
    margin-top: 22px;
}

.flip-arrow {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    padding: 0;
    background: #fff;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 8px 22px -10px rgb(0 0 0 / 60%);
    color: var(--tone-ink);
    cursor: pointer;
    pointer-events: auto;
    transition: transform .2s, opacity .2s;
}

.flip-arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.flip-arrow:hover:not(:disabled) {
    transform: scale(1.07);
}

.flip-arrow:disabled {
    cursor: default;
    opacity: .3;
}

.flip-status {
    min-width: 0;
    text-align: center;
}

.flip-caption {
    color: #fff;
    font-family: var(--serif);
    font-size: 1.05rem;
}

.flip-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 8px;
}

.flip-dots span {
    width: 8px;
    height: 8px;
    background: rgb(255 255 255 / 30%);
    border-radius: 999px;
    transition: width .3s, background .3s;
}

.flip-dots span.is-current {
    width: 24px;
    background: #fff;
}

.flip-rotate {
    display: none;
}

/* Celular em pé: as páginas ficam pequenas; sugere deitar o aparelho. */
@media (orientation: portrait) and (width <= 700px) {
    .flip-rotate {
        display: block;
        margin-top: 18px;
        color: rgb(255 255 255 / 70%);
        font-size: .9rem;
        text-align: center;
    }
}

/* Tela deitada: setas nas laterais e o livro usa quase toda a altura. */
@media (orientation: landscape) {
    .flip {
        padding-bottom: 62px;
    }

    .flip-stage {
        width: min(100% - 130px, calc((100dvh - 132px) * 2 * var(--page-ratio)));
    }

    .flip-controls {
        position: absolute;
        inset: 0;
        justify-content: space-between;
        margin: 0;
        padding-inline: 14px;
        pointer-events: none;
    }

    .flip-status {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
    }

    .flip-caption {
        font-size: .95rem;
    }
}

/* Telas baixas (celular deitado): título some para o livro crescer. */
@media (orientation: landscape) and (height <= 500px) {
    .flip-title {
        display: none;
    }

    .flip-stage {
        width: min(100% - 130px, calc((100dvh - 80px) * 2 * var(--page-ratio)));
        margin-top: 8px;
    }
}

.flip-fallback {
    padding-block: var(--space-section);
}

.flip-fallback figure {
    margin: 24px 0 0;
}

.flip-fallback figure > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    margin-inline: auto;
    box-shadow: 0 18px 40px -18px rgb(35 32 31 / 45%);
}

.flip-fallback img {
    width: 100%;
    height: auto;
}

.flip-fallback figcaption {
    margin-top: 10px;
    color: var(--ink-soft);
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .flip[open],
    .flip-book,
    .flip-leaf,
    .product-cover-open img,
    .product-cover-hint {
        animation: none;
        transition: none;
    }

    .flip-leaf.is-turning .flip-face::before {
        animation: none;
    }
}

.book-guide {
    padding-block: var(--space-section);
    background: linear-gradient(180deg, var(--tone-soft) 0, var(--paper) 520px);
}

.guide-intro {
    max-width: 720px;
    margin: 0 auto clamp(40px, 6vw, 64px);
    text-align: center;
}

.guide-purpose {
    margin-top: 14px;
    color: var(--tone-ink);
    font-family: var(--serif);
    font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem);
    line-height: 1.3;
}

.guide-age {
    display: inline-flex;
    gap: 8px;
    padding: 8px 16px;
    margin-top: 20px;
    background: var(--surface);
    border-radius: 999px;
    color: var(--tone-ink);
    font-weight: 700;
    box-shadow: 0 4px 14px rgb(35 32 31 / 8%);
}

.guide-age span {
    color: var(--ink-soft);
    font-weight: 500;
}

.guide-block + .guide-block,
.guide-block + .guide-talk {
    margin-top: clamp(40px, 5vw, 64px);
}

.guide-block h3,
.guide-talk h3 {
    margin-bottom: 20px;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 1.15rem + .8vw, 1.8rem);
    font-weight: 400;
}

.guide-questions {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-question {
    position: relative;
    padding: 24px 24px 24px 50px;
    background: var(--surface);
    border-radius: 18px 18px 18px 4px;
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.5;
    box-shadow: 0 10px 28px -16px rgb(35 32 31 / 30%);
}

.guide-question::before {
    position: absolute;
    top: 12px;
    left: 18px;
    color: var(--tone);
    content: "“";
    font-family: var(--serif);
    font-size: 2.6rem;
    line-height: 1;
}

.guide-learning {
    display: grid;
    gap: clamp(24px, 4vw, 56px);
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    padding: clamp(26px, 4vw, 48px);
    background: var(--surface);
    border-radius: 22px;
    box-shadow: 0 10px 28px -18px rgb(35 32 31 / 28%);
}

.guide-learning h3 {
    margin-bottom: 18px;
}

.guide-learning .check-list li {
    color: var(--ink);
    font-size: 1.02rem;
}

.guide-skills .skill-chips {
    margin-top: 0;
}

.guide-skills .skill-chips li {
    padding: 9px 16px;
    background: var(--tone-soft);
    font-size: .9rem;
}

.guide-audiences {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-audience {
    padding: 28px;
    background: var(--surface);
    border-top: 4px solid var(--tone);
    border-radius: 18px;
    box-shadow: 0 10px 28px -18px rgb(35 32 31 / 28%);
}

.guide-audience.is-parents {
    border-top-color: var(--accent);
}

.guide-audience.is-school {
    border-top-color: var(--green);
}

.guide-audience p {
    color: var(--ink-soft);
    line-height: 1.6;
}

.guide-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    place-items: center;
    background: var(--tone-soft);
    border-radius: 50%;
    color: var(--tone-ink);
    font-size: 1.2rem;
}

.guide-talk {
    padding: clamp(30px, 5vw, 60px);
    margin-top: clamp(40px, 5vw, 64px);
    background: var(--accent-deep);
    border-radius: 22px;
    color: #fff;
}

.guide-talk h3 {
    color: #fff;
}

.guide-talk ol {
    display: grid;
    gap: 16px;
    padding: 0;
    margin: 0;
    counter-reset: conversa;
    list-style: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-talk li {
    position: relative;
    padding: 58px 22px 22px;
    background: rgb(255 255 255 / 9%);
    border-radius: 16px;
    counter-increment: conversa;
    font-size: 1.05rem;
    line-height: 1.5;
}

.guide-talk li::before {
    position: absolute;
    top: 18px;
    left: 22px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    background: var(--yellow);
    border-radius: 50%;
    color: var(--yellow-deep);
    content: counter(conversa);
    font-size: .9rem;
    font-weight: 700;
}

.guide-note {
    max-width: 720px;
    margin: 24px auto 0;
    color: var(--ink-soft);
    font-size: .9rem;
    text-align: center;
}

.guide-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: clamp(40px, 5vw, 60px);
    text-align: center;
}

.guide-cta p {
    font-family: var(--serif);
    font-size: 1.35rem;
}

/* Ícones vetoriais (componente x-icon). */
.icon {
    display: block;
    width: 1.25em;
    height: 1.25em;
    flex: 0 0 auto;
}

.value-icon .icon {
    width: 20px;
    height: 20px;
}

.guide-icon .icon {
    width: 22px;
    height: 22px;
}

.hb-benefit-icon .icon {
    width: 16px;
    height: 16px;
}

/* ------------------------------------------------ banners do topo da home */

/* Paletas tiradas das capas: Medicão (amarelo-sol e turquesa), Amor de Vó
   (rosa-céu, pêssego e verde de campo) e Acredita em Você (terracota,
   âmbar e borboletas). Textos sempre na tinta escura de cada paleta. */
.hb-medicao {
    --hb-bg: linear-gradient(120deg, #fff8d6 0%, #fdf1b0 100%);
    --hb-blob: #f8e27c;
    --hb-ink: #165c5f;
    --hb-accent: #1f7275;
}

.hb-amor-de-vo {
    --hb-bg: linear-gradient(120deg, #fdf0f2 0%, #fde3d3 100%);
    --hb-blob: #f7cdd6;
    --hb-ink: #7d2f4a;
    --hb-accent: #8f3a57;
}

.hb-acredita {
    --hb-bg: linear-gradient(120deg, #fff3e3 0%, #fcdcbd 100%);
    --hb-blob: #f6c494;
    --hb-ink: #7f3412;
    --hb-accent: #9c4219;
}

.hero-banners {
    position: relative;
    overflow: hidden;
}

.hb-slide {
    padding-block: clamp(40px, 6vw, 84px) clamp(64px, 7vw, 104px);
    background: var(--hb-bg);
}

.hb-inner {
    display: grid;
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}

.hb-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    color: var(--hb-ink);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hb-age {
    padding: 6px 14px;
    background: #fff;
    border-radius: 999px;
    color: var(--hb-ink);
    letter-spacing: .02em;
    text-transform: none;
    box-shadow: 0 4px 14px rgb(35 32 31 / 10%);
}

.hb-title {
    max-width: 17ch;
    margin-top: 18px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(2rem, 1.35rem + 2.7vw, 3.4rem);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.07;
    text-wrap: balance;
}

.hb-lead {
    max-width: 52ch;
    margin-top: 18px;
    color: #4a4440;
    font-size: var(--step-lead);
    line-height: 1.6;
}

.hb-benefits {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 26px 0 0;
    list-style: none;
}

.hb-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #4a4440;
    line-height: 1.45;
}

.hb-benefits strong {
    display: block;
    color: var(--hb-ink);
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hb-benefit-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    background: var(--hb-accent);
    border-radius: 50%;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
}

.hb-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 30px;
}

.hb-actions form {
    margin: 0;
}

.hb-button {
    color: #fff;
    background: var(--hb-accent);
    border-color: var(--hb-accent);
}

.hb-button:hover {
    background: var(--hb-ink);
    border-color: var(--hb-ink);
}

.hb-buy {
    padding: 13px 22px;
    border: 1px solid var(--hb-accent);
    background: rgb(255 255 255 / 70%);
    border-radius: var(--radius-pill);
    color: var(--hb-ink);
    font-weight: 600;
    cursor: pointer;
    transition: background-color .18s var(--ease);
}

.hb-buy:hover {
    background: #fff;
}

.hb-art {
    position: relative;
    display: grid;
    min-height: clamp(340px, 34vw, 460px);
    place-items: center;
}

.hb-blob {
    position: absolute;
    inset: 6% 8%;
    background: var(--hb-blob);
    border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%;
}

.hb-illustration {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hb-cover {
    position: relative;
    z-index: 1;
    display: block;
    width: min(240px, 54%);
    transform: rotate(-4deg);
    transition: transform .5s var(--ease);
}

.hb-cover:hover {
    transform: rotate(0) translateY(-8px);
}

/* Símbolo no cantinho do banner (fita do autismo no Medicão). */
.hb-badge {
    position: absolute;
    z-index: 2;
    top: 2%;
    right: 5%;
    width: clamp(58px, 7.5vw, 96px);
    height: auto;
    /* Menos brilho: cores um pouco mais suaves e sombra mais leve. */
    filter: saturate(.7) brightness(.98) drop-shadow(0 6px 10px rgb(35 32 31 / 14%));
    opacity: .92;
    transform: rotate(10deg);
    animation: hb-flutuar 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hb-badge {
        animation: none;
    }
}

/* Desenho por cima da capa (colar do Medicão), no mesmo enquadramento da imagem. */
.hb-cover-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hb-cover img {
    width: 100%;
    border-radius: 3px;
    box-shadow: 0 28px 48px -20px rgb(35 32 31 / 55%), 0 6px 14px rgb(35 32 31 / 14%);
}

.hb-bubble {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 4%;
    max-width: 250px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 18px 18px 4px 18px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.02rem;
    line-height: 1.35;
    box-shadow: 0 16px 34px -18px rgb(35 32 31 / 45%);
}

.hb-bubble span {
    display: block;
    margin-bottom: 4px;
    color: var(--hb-ink);
    font-family: var(--sans);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* Título do banner com a letra da capa do livro. */
.hb-title.is-lettering-amor-de-vo {
    max-width: none;
    color: #d63d72;
    font-family: "Mali", var(--sans);
    font-size: clamp(3.2rem, 2rem + 4.6vw, 5.6rem);
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1;
    text-shadow: 3px 3px 0 #fff, 4px 4px 0 rgb(214 61 114 / 18%);
}

/* Título do Medicão como na capa: máquina de escrever grossa, MEDI em
   turquesa e CÃO em roxo. O traço é engrossado com contorno da mesma cor.
   O turquesa da capa (#25c4da) daria 1,84:1 sobre o amarelo; #138a9c fica
   no mesmo tom e passa de 3:1. */
.hb-title.is-lettering-medicao {
    max-width: none;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: clamp(3rem, 1.8rem + 4.6vw, 5.4rem);
    font-weight: 400;
    letter-spacing: .03em;
    line-height: 1;
    text-transform: uppercase;
    -webkit-text-stroke: .045em currentcolor;
    paint-order: stroke fill;
}

.hb-title.is-lettering-medicao .hb-title-a {
    color: #138a9c;
}

.hb-title.is-lettering-medicao .hb-title-b {
    color: #7056bd;
}

/* Título do Acredita em Você: o letreiro recortado da capa, com o mesmo
   brilho claro que ele tem no livro. */
.hb-title.is-lettering-acredita {
    max-width: none;
    line-height: 1;
}

.hb-title.is-lettering-acredita img {
    width: min(560px, 100%);
    height: auto;
    filter: drop-shadow(0 0 8px rgb(255 255 255 / 75%));
}

/* Carrossel: só vira carrossel quando o hero-banners.js assume. Sem
   JavaScript, os três banners aparecem um abaixo do outro. Os banners
   deslizam devagar para o lado, em ciclo contínuo. */
.hero-banners.is-enhanced .hb-track {
    display: flex;
    transition: transform var(--hb-deslize, 1100ms) cubic-bezier(.65, 0, .35, 1);
    will-change: transform;
}

.hero-banners.is-enhanced .hb-slide {
    flex: 0 0 100%;
    min-width: 0;
}

/* O banner inteiro leva à página do livro; botões ficam por cima. */
.hb-slide {
    position: relative;
}

.hb-title a {
    color: inherit;
    text-decoration: none;
}

.hb-title a::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
}

.hb-actions,
.hb-cover {
    position: relative;
    z-index: 2;
}

.hb-slide:hover .hb-title a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .12em;
}

/* Entrada dos textos e da capa quando o banner chega. */
.hero-banners.is-enhanced .hb-slide .hb-copy > *,
.hero-banners.is-enhanced .hb-slide .hb-art {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.hero-banners.is-enhanced .hb-slide.is-active .hb-copy > *,
.hero-banners.is-enhanced .hb-slide.is-active .hb-art {
    opacity: 1;
    transform: none;
}

.hero-banners.is-enhanced .hb-slide.is-active .hb-copy > :nth-child(1) { transition-delay: .45s; }
.hero-banners.is-enhanced .hb-slide.is-active .hb-copy > :nth-child(2) { transition-delay: .55s; }
.hero-banners.is-enhanced .hb-slide.is-active .hb-copy > :nth-child(3) { transition-delay: .65s; }
.hero-banners.is-enhanced .hb-slide.is-active .hb-copy > :nth-child(4) { transition-delay: .75s; }
.hero-banners.is-enhanced .hb-slide.is-active .hb-copy > :nth-child(5) { transition-delay: .85s; }
.hero-banners.is-enhanced .hb-slide.is-active .hb-art { transition-delay: .5s; }

/* Camada dos controles sobre o banner inteiro; só os botões recebem clique. */
.hb-controls {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: auto;
    margin: 0;
    pointer-events: none;
}

/* O atributo hidden precisa vencer o display das regras abaixo. */
.hb-controls[hidden] {
    display: none;
}

.hb-bar {
    position: absolute;
    right: 0;
    bottom: clamp(16px, 2.4vw, 28px);
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hb-bar > *,
.hb-arrow {
    pointer-events: auto;
}

/* Setas grandes e suaves nas laterais, centradas na sobra ao lado do conteúdo. */
.hb-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    width: 80px;
    height: 200px;
    place-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: rgb(35 32 31 / 55%);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}

.hb-arrow.is-prev {
    left: max(6px, calc((100% - 1160px) / 4 - 40px));
}

.hb-arrow.is-next {
    right: max(6px, calc((100% - 1160px) / 4 - 40px));
}

.hb-arrow svg {
    width: 48px;
    height: 112px;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
    filter: drop-shadow(0 1px 0 rgb(255 255 255 / 70%));
}

.hb-arrow:hover,
.hb-arrow:focus-visible {
    background: rgb(255 255 255 / 55%);
    color: var(--ink);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.hb-arrow.is-prev:hover {
    transform: translate(-3px, -50%);
}

.hb-arrow.is-next:hover {
    transform: translate(3px, -50%);
}

.hb-arrow:active {
    background: rgb(255 255 255 / 75%);
}

/* Telas médias: pouca sobra ao lado do conteúdo; setas menores, coladas na borda. */
@media (width <= 1360px) {
    .hb-arrow {
        width: 40px;
        height: 140px;
    }

    .hb-arrow.is-prev {
        left: 2px;
    }

    .hb-arrow.is-next {
        right: 2px;
    }

    .hb-arrow svg {
        width: 24px;
        height: 64px;
    }
}

.hb-pause {
    display: grid;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    place-items: center;
    border: 0;
    background: rgb(255 255 255 / 85%);
    border-radius: 999px;
    color: var(--ink);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgb(35 32 31 / 12%);
}

.hb-dots {
    display: flex;
    gap: 8px;
    padding: 5px;
    background: rgb(255 255 255 / 85%);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgb(35 32 31 / 12%);
}

.hb-dot {
    padding: 7px 14px;
    border: 0;
    background: transparent;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease);
}

.hb-dot[aria-selected="true"] {
    background: var(--hb-accent);
    color: #fff;
}

.hb-dot {
    position: relative;
    overflow: hidden;
}

.hb-dot::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgb(255 255 255 / 75%);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
}

.hb-dot.is-running::after {
    animation: hb-progresso var(--hb-intervalo, 7000ms) linear forwards;
}

@keyframes hb-progresso {
    to { transform: scaleX(1); }
}

/* Ilustrações flutuando de leve. */
@keyframes hb-flutuar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

.hb-float {
    animation: hb-flutuar 6s ease-in-out infinite;
}

.hb-float-slow {
    animation: hb-flutuar 9s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hb-float,
    .hb-float-slow {
        animation: none;
    }

    .hero-banners.is-enhanced .hb-track,
    .hero-banners.is-enhanced .hb-slide .hb-copy > *,
    .hero-banners.is-enhanced .hb-slide .hb-art {
        transition: none;
    }

    .hb-dot.is-running::after {
        animation: none;
    }
}

/* Alternativa em grade: três banners lado a lado, mais compactos. */
.hero-banners.is-grade {
    padding-block: clamp(28px, 4vw, 48px);
}

.hero-banners.is-grade .hb-track {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(1160px, calc(100% - var(--gutter) * 2));
    margin-inline: auto;
}

.hero-banners.is-grade .hb-slide {
    padding: 0;
    border-radius: 22px;
}

.hero-banners.is-grade .hb-inner {
    width: auto;
    padding: 24px;
    grid-template-columns: 1fr;
    gap: 6px;
}

.hero-banners.is-grade .hb-art {
    order: -1;
    min-height: 240px;
}

.hero-banners.is-grade .hb-cover {
    width: 140px;
}

.hero-banners.is-grade .hb-title {
    font-size: 1.45rem;
}

.hero-banners.is-grade .hb-lead,
.hero-banners.is-grade .hb-bubble {
    display: none;
}

@media (width <= 1000px) {
    .hb-inner {
        grid-template-columns: 1fr;
    }

    .hb-art {
        order: -1;
        min-height: 300px;
    }

    .hb-cover {
        width: min(200px, 52%);
    }

    .hb-bubble {
        right: 4%;
        bottom: 0;
        max-width: 220px;
        font-size: .92rem;
    }

    .hero-banners.is-grade .hb-track {
        grid-template-columns: 1fr;
    }
}

@media (width <= 760px) {
    /* Espaço reservado para os controles não cobrirem os botões. */
    .hb-slide {
        padding-bottom: 104px;
    }

    .hb-art {
        min-height: 0;
        padding-block: 18px 0;
    }

    .hb-cover {
        width: min(180px, 48%);
    }

    /* O balão sai de cima da capa e fica logo abaixo dela. */
    .hb-bubble {
        position: relative;
        right: auto;
        bottom: auto;
        max-width: 280px;
        margin-top: -22px;
        justify-self: center;
    }

    .hb-dot {
        padding: 7px 11px;
        font-size: .76rem;
        white-space: nowrap;
    }

    /* No celular a pausa sai para caber os nomes. */
    .hb-pause {
        display: none;
    }

    /* Setas discretas na altura da capa, onde as bordas são só decoração. */
    .hb-arrow {
        top: 180px;
        width: 30px;
        height: 96px;
        color: rgb(35 32 31 / 42%);
    }

    .hb-arrow.is-prev {
        left: 0;
    }

    .hb-arrow.is-next {
        right: 0;
    }

    .hb-arrow svg {
        width: 16px;
        height: 44px;
        stroke-width: 2.2;
    }
}

/* ------------------------------------------------------------ Para Escolas */

.school-questions {
    padding-block: var(--space-section);
}

.school-questions-heading {
    max-width: 640px;
    margin: 0 auto clamp(32px, 4vw, 52px);
    text-align: center;
}

.school-question-list {
    display: grid;
    gap: clamp(16px, 2.2vw, 26px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.school-question {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(24px, 3vw, 34px);
    background: var(--surface);
    border-top: 4px solid var(--accent);
    border-radius: 18px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem);
    line-height: 1.4;
    box-shadow: var(--shadow-soft);
}

.school-question:nth-child(2) {
    border-top-color: #c14a33;
}

.school-question:nth-child(3) {
    border-top-color: var(--blue);
}

.school-question-icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    background: var(--accent-soft);
    border-radius: 50%;
    color: var(--accent);
}

.school-question:nth-child(2) .school-question-icon {
    background: #fbe7e2;
    color: #a63d29;
}

.school-question:nth-child(3) .school-question-icon {
    background: var(--blue-soft);
    color: var(--blue-ink);
}

.school-question-icon .icon {
    width: 24px;
    height: 24px;
}

/* Banner do topo da página Para Escolas, no estilo dos banners da home. */
.school-banner {
    padding-block: clamp(40px, 6vw, 84px);
    background: linear-gradient(120deg, #f5eefa 0%, #fde9de 100%);
}

.school-banner-inner {
    display: grid;
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.school-banner-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    color: var(--accent);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.school-banner-eyebrow span {
    padding: 6px 14px;
    background: #fff;
    border-radius: 999px;
    color: #a63d29;
    letter-spacing: .02em;
    text-transform: none;
    box-shadow: 0 4px 14px rgb(35 32 31 / 10%);
}

.school-banner h1 {
    margin-top: 18px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.8rem);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.05;
    text-wrap: balance;
}

.school-banner-lead {
    max-width: 50ch;
    margin-top: 18px;
    color: #4a4440;
    font-size: var(--step-lead);
    line-height: 1.6;
}

.school-banner-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.school-banner-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 8px;
    background: rgb(255 255 255 / 80%);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
}

.school-banner-points span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    background: var(--accent);
    border-radius: 50%;
    color: #fff;
}

.school-banner-points .icon {
    width: 15px;
    height: 15px;
}

.school-banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 30px;
}

.school-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a63d29;
    font-weight: 600;
    text-decoration: none;
}

.school-banner-link .icon {
    width: 18px;
    height: 18px;
}

.school-banner-link:hover {
    text-decoration: underline;
}

.school-banner-art {
    position: relative;
    display: grid;
    min-height: clamp(340px, 34vw, 460px);
    place-items: center;
}

.school-banner-blob {
    position: absolute;
    inset: 6% 6%;
    background: #ecdcf4;
    border-radius: 52% 48% 44% 56% / 46% 54% 46% 54%;
}

.school-banner-illustration {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Os três livros juntos, em leque: o do meio à frente. */
.school-banner-books {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    padding-inline: 8%;
}

.school-banner-book {
    display: block;
    width: min(196px, 35%);
    margin-inline: -1.5%;
    transition: transform .45s var(--ease);
}

.school-banner-book img {
    width: 100%;
    border-radius: 3px;
    box-shadow: 0 24px 40px -20px rgb(35 32 31 / 55%), 0 6px 12px rgb(35 32 31 / 12%);
}

.school-banner-book:nth-child(1) {
    transform: rotate(-10deg) translate(-6%, 16px);
}

.school-banner-book:nth-child(2) {
    z-index: 2;
    transform: translateY(-8px) scale(1.14);
}

.school-banner-book:nth-child(3) {
    transform: rotate(10deg) translate(6%, 16px);
}

.school-banner-book:hover {
    z-index: 3;
}

.school-banner-book:nth-child(1):hover { transform: rotate(-4deg) translateY(4px); }
.school-banner-book:nth-child(2):hover { transform: translateY(-18px) scale(1.16); }
.school-banner-book:nth-child(3):hover { transform: rotate(4deg) translateY(4px); }

.school-statement {
    padding-block: clamp(48px, 6vw, 80px);
    background: var(--accent-deep);
    text-align: center;
}

.school-statement p {
    max-width: 24ch;
    margin-inline: auto;
    color: #fff;
    font-family: var(--serif);
    font-size: clamp(1.6rem, 1.2rem + 1.9vw, 2.6rem);
    line-height: 1.2;
    text-wrap: balance;
}

.school-statement em {
    display: block;
    margin-top: 6px;
    color: var(--yellow);
}

.school-about {
    padding-block: var(--space-section);
}

.school-about-grid {
    display: grid;
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr);
}

.school-about-text p {
    color: var(--ink-soft);
    font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem);
    line-height: 1.75;
}

.school-about-text p + p {
    margin-top: 18px;
}

.school-themes {
    padding: clamp(24px, 3vw, 34px);
    background: var(--paper-soft);
    border-radius: var(--radius-lg);
}

.school-themes h2 {
    margin-bottom: 16px;
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 500;
}

.school-themes ul {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.school-themes li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: var(--radius);
    font-weight: 500;
}

.school-themes .icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.school-books {
    padding-block: var(--space-section);
    background: var(--paper-soft);
}

.school-books-heading {
    margin-bottom: clamp(32px, 4vw, 52px);
    text-align: center;
}

.school-book-grid {
    display: grid;
    gap: clamp(18px, 2.4vw, 28px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.school-book {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.school-book-cover {
    display: grid;
    padding: 28px 28px 0;
    place-items: center;
    background: var(--tone-soft);
}

.school-book-cover img {
    width: min(170px, 60%);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 16px 30px -18px rgb(35 32 31 / 55%);
}

.school-book-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 24px 26px;
}

.school-book-age {
    align-self: flex-start;
    padding: 4px 11px;
    margin-bottom: 10px;
    background: var(--tone-soft);
    border-radius: 999px;
    color: var(--tone-ink);
    font-size: .76rem;
    font-weight: 700;
}

.school-book h3 {
    margin-bottom: 8px;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 500;
}

.school-book h3 a {
    text-decoration: none;
}

.school-book-body > p:not(.school-book-age) {
    color: var(--ink-soft);
    line-height: 1.6;
}

.school-book-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--tone-ink);
    font-weight: 600;
    text-decoration: none;
}

.school-book-link .icon {
    width: 18px;
    height: 18px;
}

.school-book-link:hover {
    text-decoration: underline;
}

.school-contact {
    padding-block: clamp(48px, 6vw, 80px);
}

.school-contact-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(28px, 4vw, 48px);
    background: var(--accent-soft);
    border-radius: 22px;
}

.school-contact h2 {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem);
    font-weight: 500;
}

.school-contact p {
    margin-top: 6px;
    color: var(--ink-soft);
}

.school-contact-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.school-contact-actions span {
    color: var(--ink-soft);
    font-size: .9rem;
}

@media (width <= 1000px) {
    .school-about-grid,
    .school-book-grid,
    .school-question-list,
    .school-banner-inner {
        grid-template-columns: 1fr;
    }

    .school-banner-art {
        order: -1;
        min-height: 300px;
    }
}



/* Página "Como usar o Medicão na sua sala de aula". */
.school-banner.is-medicao {
    background: linear-gradient(120deg, #fff8d6 0%, #fdf1b0 100%);
}

.school-banner.is-medicao .school-banner-blob {
    background: #f8e27c;
}

.school-banner.is-medicao .school-banner-eyebrow {
    color: #165c5f;
}

.school-banner.is-medicao .school-banner-eyebrow span,
.school-banner.is-medicao .school-banner-link {
    color: #165c5f;
}

.school-banner.is-medicao .button.is-dark {
    background: #1f7275;
    border-color: #1f7275;
    box-shadow: 0 10px 22px -12px rgb(22 92 95 / 70%);
}

.school-banner.is-medicao .button.is-dark:hover {
    background: #165c5f;
    border-color: #165c5f;
}

.school-banner-subtitle {
    margin-top: 16px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
    font-style: italic;
    line-height: 1.25;
}

.school-banner-cover {
    position: relative;
    z-index: 1;
    width: min(250px, 56%);
    transform: rotate(-4deg);
}

.school-banner-cover img {
    width: 100%;
    border-radius: 3px;
    box-shadow: 0 28px 48px -20px rgb(35 32 31 / 55%), 0 6px 14px rgb(35 32 31 / 14%);
}

.button.is-dark.school-book-cta {
    align-self: flex-start;
    margin-top: 18px;
    padding: 12px 20px;
    background: #1f7275;
    border-color: #1f7275;
    border-radius: 14px;
    font-size: .88rem;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
}

.button.is-dark.school-book-cta:hover {
    background: #165c5f;
    border-color: #165c5f;
}

.school-story {
    padding-block: var(--space-section);
    background: var(--paper-soft);
}

.school-story-grid {
    display: grid;
    align-items: start;
    gap: clamp(28px, 5vw, 72px);
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}

.school-story-text p {
    color: var(--ink-soft);
    font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem);
    line-height: 1.75;
}

.school-story-text p + p {
    margin-top: 18px;
}

.school-beyond {
    padding-block: clamp(48px, 6vw, 80px);
    background: var(--accent-deep);
    color: #fff;
    text-align: center;
}

.school-beyond .eyebrow {
    color: var(--yellow);
}

.school-beyond-text {
    max-width: 28ch;
    margin-inline: auto;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.3rem);
    line-height: 1.25;
    text-wrap: balance;
}

.school-beyond-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 26px 0 0;
    list-style: none;
}

.school-beyond-tags li {
    padding: 9px 18px;
    background: rgb(255 255 255 / 12%);
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 999px;
    font-weight: 600;
}

.school-final {
    padding-block: clamp(48px, 6vw, 84px);
}

.school-final-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.school-final h2 {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
    font-weight: 500;
}

@media (width <= 1000px) {
    .school-story-grid {
        grid-template-columns: 1fr;
    }
}

/* Página "Quem somos": mesmo banner das escolas, em lilás. */
.school-banner.is-about {
    background: linear-gradient(120deg, #f6eefa 0%, #fbe9e4 100%);
}

.school-banner.is-about .school-banner-blob {
    background: #ead9f3;
}

.school-question-list.is-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.school-final-inner p {
    max-width: 46ch;
    color: var(--ink-soft);
}

@media (width <= 1000px) {
    .school-question-list.is-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width <= 560px) {
    .school-question-list.is-four {
        grid-template-columns: 1fr;
    }
}

/* Página "Como usar o Amor de Vó na sua sala de aula": mesma estrutura, em rosa. */
.school-banner.is-amor-de-vo {
    background: linear-gradient(120deg, #fdf0f2 0%, #fde3d3 100%);
}

.school-banner.is-amor-de-vo .school-banner-blob {
    background: #f7cdd6;
}

.school-banner.is-amor-de-vo .school-banner-eyebrow,
.school-banner.is-amor-de-vo .school-banner-eyebrow span,
.school-banner.is-amor-de-vo .school-banner-link {
    color: #7d2f4a;
}

.school-banner.is-amor-de-vo .hb-title {
    margin-top: 6px;
}

.school-banner.is-amor-de-vo .button.is-dark,
.button.is-dark.is-rose,
.button.is-dark.school-book-cta.is-rose {
    background: #8f3a57;
    border-color: #8f3a57;
    box-shadow: 0 10px 22px -12px rgb(125 47 74 / 70%);
}

.school-banner.is-amor-de-vo .button.is-dark:hover,
.button.is-dark.is-rose:hover,
.button.is-dark.school-book-cta.is-rose:hover {
    background: #7d2f4a;
    border-color: #7d2f4a;
}

/* "Como nasceu o livro": a origem da história em destaque. */
.school-origin {
    padding-block: var(--space-section);
    background: linear-gradient(180deg, #fdf0f2 0%, var(--paper) 100%);
}

.school-origin-inner {
    max-width: 820px;
    text-align: center;
}

.school-origin .eyebrow {
    color: #8f3a57;
}

.school-origin-quote {
    position: relative;
    margin: 14px 0 0;
    padding: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem);
    font-style: italic;
    line-height: 1.35;
    text-wrap: balance;
}

.school-origin-quote::before {
    display: block;
    margin-bottom: 6px;
    color: #e8a0b4;
    content: "“";
    font-size: 4rem;
    font-style: normal;
    line-height: .6;
}

.school-origin-text {
    max-width: 62ch;
    margin: 24px auto 0;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
    line-height: 1.75;
}

.school-questions.is-topics .school-question {
    font-size: clamp(1rem, .95rem + .2vw, 1.1rem);
}

.school-beyond.is-rose {
    background: #6e2a43;
}

.school-beyond.is-rose .eyebrow {
    color: #f9c9d6;
}

.school-beyond-lead {
    max-width: 58ch;
    margin: 18px auto 0;
    color: rgb(255 255 255 / 85%);
    font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
    line-height: 1.7;
}

.school-beyond.is-rose .school-beyond-text {
    margin-top: 22px;
    font-style: italic;
}

/* Página "Como usar o Acredita em Você na sua sala de aula": mesma estrutura, em laranja. */
.school-banner.is-acredita {
    background: linear-gradient(120deg, #fff3e3 0%, #fcdcbd 100%);
}

.school-banner.is-acredita .school-banner-blob {
    background: #f6c494;
}

.school-banner.is-acredita .school-banner-eyebrow,
.school-banner.is-acredita .school-banner-eyebrow span,
.school-banner.is-acredita .school-banner-link {
    color: #7f3412;
}

.school-banner.is-acredita .hb-title {
    margin-top: 10px;
}

.school-banner.is-acredita .button.is-dark,
.button.is-dark.is-sun,
.button.is-dark.school-book-cta.is-sun {
    background: #9c4219;
    border-color: #9c4219;
    box-shadow: 0 10px 22px -12px rgb(127 52 18 / 70%);
}

.school-banner.is-acredita .button.is-dark:hover,
.button.is-dark.is-sun:hover,
.button.is-dark.school-book-cta.is-sun:hover {
    background: #7f3412;
    border-color: #7f3412;
}

.school-question-list.is-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.school-beyond.is-sun {
    background: #7f3412;
}

.school-beyond.is-sun .eyebrow {
    color: #fcd9b6;
}

.school-beyond-text.is-long {
    max-width: 34ch;
    font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem);
    line-height: 1.4;
}

@media (width <= 760px) {
    .school-question-list.is-two {
        grid-template-columns: 1fr;
    }
}

/* Entrada suave ao rolar. A classe .has-reveal só é posta pelo reveal.js,
   então sem JavaScript, ou com movimento reduzido, tudo aparece normalmente. */
.has-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}

.has-reveal [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (width <= 1000px) {
    .purpose-story,
    .guide-learning {
        grid-template-columns: 1fr;
    }

    .purpose-story:nth-child(even) .purpose-cover {
        order: 0;
    }

    .guide-questions,
    .guide-audiences,
    .guide-talk ol {
        grid-template-columns: 1fr;
    }
}

@media (width <= 760px) {
    .purpose-columns {
        grid-template-columns: 1fr;
    }

    .purpose-story {
        border-radius: 18px;
    }
}

@media print {
    .has-reveal [data-reveal] {
        opacity: 1;
        transform: none;
    }
}



@media (width <= 1000px) {
    .values-grid.is-four {
        grid-template-columns: repeat(2, 1fr);
    }

    
}

@media (width <= 760px) {
    .values-grid.is-four {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------ seção de livros */

.books-section {
    padding-block: var(--space-section);
    scroll-margin-top: 104px;
}

.section-heading {
    display: grid;
    align-items: end;
    gap: 24px;
    grid-template-columns: 1fr minmax(0, 44ch);
    margin-bottom: clamp(38px, 5vw, 62px);
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.section-heading > p {
    color: var(--ink-soft);
    font-size: .96rem;
}

.book-grid {
    display: grid;
    gap: clamp(28px, 3.4vw, 52px) clamp(20px, 2.6vw, 36px);
    /* auto-fit: com três livros, a grade ocupa a largura toda. */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* --------------------------------------------------------- cartão de produto */

.book-card {
    display: flex;
    flex-direction: column;
}

.book-cover-link {
    position: relative;
    display: block;
    text-decoration: none;
}

.book-cover {
    display: block;
    overflow: hidden;
    background: var(--paper-deep);
    border-radius: 2px;
}

.book-cover img {
    width: 100%;
    aspect-ratio: 720 / 1024;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.book-cover-link:hover img {
    transform: scale(1.035);
}

.cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 720 / 1024;
    color: var(--ink-faint);
    font-family: var(--serif);
    font-size: 1.05rem;
}

.cover-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    background: var(--yellow);
    border-radius: 999px;
    color: var(--yellow-deep);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.book-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-top: 18px;
}

.book-kicker {
    margin-bottom: 7px;
    color: var(--orange-ink);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.book-card-content h3 {
    font-family: var(--serif);
    font-size: var(--step-h3);
    font-weight: 400;
    line-height: 1.24;
}

.book-card-content h3 a {
    text-decoration: none;
}

.book-card-content h3 a:hover {
    color: var(--accent);
}

.book-excerpt {
    margin-top: 9px;
    color: var(--ink-soft);
    font-size: .89rem;
    line-height: 1.6;
}

.book-meta {
    margin-top: 10px;
    color: var(--ink-faint);
    font-size: .8rem;
}

.book-card-footer {
    margin-top: auto;
    padding-top: 16px;
}

.price-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-block del {
    color: var(--ink-faint);
    font-size: .85rem;
}

.price-block strong {
    font-size: 1.14rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.card-cta-form {
    margin-top: 14px;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--line-strong);
    background: none;
    border-radius: var(--radius);
    font-size: .89rem;
    font-weight: 500;
    cursor: pointer;
    transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}

.cta-button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.cta-button:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.cta-button.is-disabled {
    color: var(--ink-faint);
    background: var(--paper-soft);
    border-color: var(--line);
    cursor: not-allowed;
}

.cta-button.is-disabled:hover {
    color: var(--ink-faint);
    background: var(--paper-soft);
    border-color: var(--line);
}



/* ------------------------------------------------------------------ manifesto */

.manifesto {
    padding-block: var(--space-section);
    border-top: 1px solid var(--line);
    background: var(--accent-soft);
}

.manifesto-grid {
    display: grid;
    gap: clamp(24px, 4vw, 68px);
    grid-template-columns: minmax(0, 20ch) 1fr;
}

.manifesto-label {
    color: var(--ink-faint);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.manifesto blockquote {
    max-width: 26ch;
    font-family: var(--serif);
    font-size: var(--step-title);
    font-weight: 400;
    line-height: 1.24;
    letter-spacing: -.015em;
    text-wrap: balance;
}

.manifesto blockquote em {
    color: var(--accent);
}

.manifesto-copy {
    max-width: 52ch;
    margin-block: 26px 32px;
    color: var(--ink-soft);
}

/* ------------------------------------------------------- cabeçalho de página */

.page-hero {
    padding-block: clamp(48px, 6vw, 84px) clamp(30px, 4vw, 48px);
    border-bottom: 1px solid var(--line);
}

.page-hero .lead {
    margin-top: 20px;
}

/* ------------------------------------------------------------------ catálogo */

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 34px;
}

.catalog-count {
    color: var(--ink-faint);
    font-size: .84rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------ página do livro */

.product-page {
    padding-block: clamp(28px, 4vw, 46px) var(--space-section);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: clamp(30px, 4vw, 52px);
    color: var(--ink-faint);
    font-size: .84rem;
}

.breadcrumbs a {
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.product-grid {
    display: grid;
    align-items: start;
    gap: clamp(34px, 5vw, 78px);
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

/* A capa acompanha a leitura da ficha; o topo desvia do cabeçalho fixo. */
.product-art {
    position: sticky;
    top: 92px;
}

.product-cover-frame {
    overflow: hidden;
    background: var(--paper-deep);
    border: 1px solid var(--line);
    border-radius: 2px;
}

.product-cover-frame img {
    width: 100%;
    aspect-ratio: 720 / 1024;
    object-fit: cover;
}

.product-copy h1 {
    max-width: 20ch;
    margin-block: 6px 20px;
    font-family: var(--serif);
    font-size: var(--step-title);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.product-description + .product-description {
    margin-top: 14px;
}

.product-description {
    max-width: 58ch;
    color: var(--ink-soft);
    font-size: var(--step-lead);
    line-height: 1.7;
}

.product-facts {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin-top: 34px;
    border-block: 1px solid var(--line);
}

.product-fact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-block: 18px;
}

.product-fact span {
    color: var(--accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.product-fact strong {
    font-size: .98rem;
    font-weight: 500;
}

.product-purchase {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 32px;
}

.product-purchase .price-block strong {
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: -.02em;
}

.product-purchase form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quantity-field {
    width: 76px;
    padding: 13px 12px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    border-radius: var(--radius);
    text-align: center;
}

.availability-note {
    margin-top: 22px;
    color: var(--ink-faint);
    font-size: .87rem;
}

/* ------------------------------------------------------------------ carrinho */

.cart-section,
.checkout-section,
.account-section,
.result-section,
.content-section {
    padding-block: clamp(40px, 5vw, 68px) var(--space-section);
}

.cart-list {
    border-top: 1px solid var(--line);
}

.cart-item {
    display: grid;
    align-items: center;
    gap: clamp(16px, 2.4vw, 28px);
    grid-template-columns: 78px 1fr auto;
    padding-block: 24px;
    border-bottom: 1px solid var(--line);
}

.cart-item img {
    width: 78px;
    aspect-ratio: 720 / 1024;
    border-radius: 2px;
    object-fit: cover;
}

.cart-item h2 {
    font-family: var(--serif);
    font-size: 1.16rem;
    font-weight: 400;
}

.cart-item > div > p {
    margin-top: 5px;
    color: var(--ink-soft);
    font-size: .92rem;
}

.cart-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.cart-actions form {
    display: flex;
    gap: 8px;
}

.cart-actions .quantity-field {
    width: 68px;
    padding: 9px 8px;
}

.cart-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 34px;
}

.cart-total {
    font-family: var(--serif);
    font-size: 1.6rem;
    letter-spacing: -.02em;
}

.cart-checkout-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.cart-checkout-action small {
    color: var(--ink-faint);
    font-size: .85rem;
}

/* ------------------------------------------------------------------ checkout */

.checkout-card {
    max-width: 780px;
    padding: clamp(26px, 3.6vw, 46px);
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-lg);
}

.checkout-summary {
    padding-bottom: 22px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.checkout-summary p {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-block: 7px;
    font-size: .95rem;
}

.checkout-summary p:last-child {
    padding-top: 14px;
    margin-top: 7px;
    border-top: 1px solid var(--line);
    font-weight: 600;
}

.checkout-form {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
}

.checkout-form > .checkout-summary,
.checkout-form > .form-group-title,
.checkout-form > .field.is-full,
.checkout-form > .checkout-account,
.checkout-form > .notice,
.checkout-form > .button,
.checkout-form > .payment-redirect-note,
.checkout-form > .payment-security {
    grid-column: 1 / -1;
}

.form-group-title {
    margin-top: 14px;
    color: var(--ink-faint);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.checkout-account {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    background: var(--paper-soft);
    border-radius: var(--radius);
}

.checkout-account span {
    display: block;
    color: var(--ink-faint);
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.checkout-account strong {
    display: block;
    margin-top: 3px;
}

.checkout-account small {
    color: var(--ink-soft);
    font-size: .87rem;
}

.checkout-account a {
    font-size: .88rem;
}

.secure-payment-button {
    margin-top: 12px;
}

.payment-redirect-note {
    color: var(--ink-faint);
    font-size: .85rem;
    text-align: center;
}

/* ------------------------------------------------- selo de pagamento seguro */

.payment-security {
    margin-top: 26px;
    padding: 20px 22px;
    border: 1px solid rgb(93 138 27 / 32%);
    background: var(--green-soft);
    border-radius: var(--radius);
}

.payment-security.is-compact {
    margin-top: 34px;
}

.payment-security-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.payment-security-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--green);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.payment-security-heading strong {
    display: block;
    font-size: .95rem;
}

.payment-security-heading small {
    display: block;
    margin-top: 2px;
    color: var(--ink-soft);
    font-size: .85rem;
}

.payment-security-seals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.payment-seal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-faint);
    font-size: .8rem;
}

.payment-seal svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.payment-seal.is-mercadopago {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.payment-seal.is-mercadopago strong {
    color: var(--ink-soft);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
}

/* ---------------------------------------------------------- resultado / erro */

.result-card {
    max-width: 620px;
    margin-inline: auto;
    padding-block: clamp(30px, 5vw, 60px);
    text-align: center;
}

.result-symbol {
    display: block;
    width: 46px;
    height: 4px;
    margin: 0 auto 30px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--orange), var(--yellow));
}

.result-card .lead {
    margin-top: 16px;
}

.result-order-status {
    margin-top: 30px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: left;
}

.result-order-status > span {
    display: block;
    color: var(--ink-faint);
    font-size: .8rem;
}

.result-order-status strong {
    display: block;
    margin-top: 10px;
    color: var(--ink-faint);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.result-order-status p {
    margin-top: 4px;
    font-size: 1.02rem;
}

/* --------------------------------------------------------------- formulários */

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--ink-soft);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .04em;
}

.field.is-full {
    grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: .97rem;
    font-weight: 400;
    letter-spacing: normal;
    transition: border-color .16s var(--ease);
}

.field input:hover,
.field select:hover {
    border-color: var(--ink-faint);
}

.field input:focus,
.field select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input[disabled] {
    color: var(--ink-faint);
    background: var(--paper-soft);
    cursor: not-allowed;
}

.field small {
    color: var(--ink-faint);
    font-size: .78rem;
    font-weight: 400;
    letter-spacing: normal;
}

/* Aviso da busca de endereço pelo CEP; criado por JavaScript. */
.field .cep-status {
    min-height: 1.2em;
}

.field .cep-status:empty {
    display: none;
}

.field .cep-status.is-ok {
    color: var(--green-ink);
}

.field .cep-status.is-alerta {
    color: var(--orange-ink);
}

/*
 * Mostrar/ocultar senha. A caixa e o botão são criados por JavaScript, então
 * estas regras só entram em cena quando o recurso está disponível.
 */
.password-field {
    position: relative;
    display: block;
}

.password-field input {
    padding-right: 88px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    padding: 7px 11px;
    border: 0;
    background: none;
    border-radius: var(--radius);
    color: var(--accent);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: normal;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color .16s var(--ease);
}

.password-toggle:hover {
    background: var(--accent-soft);
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
}

.check-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink-soft);
    font-size: .9rem;
    line-height: 1.55;
    cursor: pointer;
}

.check-field.is-full {
    grid-column: 1 / -1;
}

.check-field input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin-top: 3px;
    accent-color: var(--accent);
}

.registration-form fieldset {
    padding: 0;
    border: 0;
    margin: 0 0 38px;
}

.registration-form legend {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.3rem;
}

.registration-form legend span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    color: #fff;
    background: var(--accent);
    border-radius: 50%;
    font-family: var(--sans);
    font-size: .82rem;
    font-weight: 600;
}

.registration-submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.registration-submit p {
    color: var(--ink-faint);
    font-size: .88rem;
}

.account-form {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

/* --------------------------------------------------------- avisos e vazios */

.notice,
.errors {
    padding: 16px 20px;
    margin-bottom: 26px;
    border-radius: var(--radius);
    font-size: .92rem;
}

.notice {
    color: var(--blue-ink);
    border-left: 3px solid var(--blue);
    background: var(--blue-soft);
}

.errors {
    color: var(--danger);
    border-left: 2px solid var(--danger);
    background: var(--danger-soft);
}

.notice p + p,
.errors p + p {
    margin-top: 5px;
}

/* Confirmação de item adicionado, exibida na página onde o comprador estava. */
.cart-flash {
    border-bottom: 1px solid rgb(93 138 27 / 30%);
    background: var(--green-soft);
}

.cart-flash-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-block: 13px;
    color: var(--green-ink);
    font-size: .93rem;
}

.cart-flash-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    background: var(--green);
    border-radius: 50%;
}

.cart-flash-mark svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.6;
}

.cart-flash p {
    margin-right: auto;
    font-weight: 500;
}

.cart-flash a {
    padding: 7px 16px;
    background: var(--green-ink);
    border-radius: 999px;
    color: #fff;
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.cart-flash a:hover {
    background: var(--green-deep);
}

.empty-state {
    padding-block: clamp(50px, 7vw, 84px);
    border: 1px solid var(--line);
    background: var(--paper-soft);
    border-radius: var(--radius-lg);
    text-align: center;
}

.empty-state h2 {
    max-width: 30ch;
    margin-inline: auto;
    font-family: var(--serif);
    font-size: var(--step-h3);
    font-weight: 400;
}

.empty-state p {
    margin-top: 11px;
    color: var(--ink-soft);
}

.empty-state .button {
    margin-top: 26px;
}

/* --------------------------------------------------------------- minha conta */

.account-hero {
    padding-block: clamp(48px, 6vw, 88px) var(--space-section);
}

.account-shell {
    display: grid;
    align-items: start;
    gap: clamp(34px, 5vw, 76px);
    grid-template-columns: 1fr minmax(0, 430px);
}

.account-shell .lead {
    margin-top: 20px;
}

.account-card {
    padding: clamp(26px, 3.4vw, 40px);
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-lg);
}

.account-card h2 {
    margin-bottom: 8px;
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
}

.account-card > p {
    color: var(--ink-soft);
    font-size: .92rem;
}

.account-card form + form {
    margin-top: 16px;
}

.account-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 20px;
    margin-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: .9rem;
}

.account-after-form {
    margin-top: 30px;
    color: var(--ink-soft);
    font-size: .93rem;
    text-align: center;
}

.account-form-shell {
    max-width: 820px;
}

.logout-form {
    margin-top: 18px;
    text-align: center;
}

.account-dashboard-hero {
    padding-block: clamp(44px, 5vw, 74px) clamp(28px, 4vw, 44px);
    border-bottom: 1px solid var(--line);
}

.account-dashboard-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.account-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-page-heading .display-title {
    max-width: none;
}

.account-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 22px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.account-section-heading a {
    color: var(--ink-soft);
    font-size: .9rem;
    text-decoration: none;
}

.account-section-heading a:hover {
    color: var(--accent);
}

.orders-list {
    border-top: 1px solid var(--line);
}

.order-row {
    display: grid;
    align-items: center;
    gap: 18px;
    grid-template-columns: repeat(4, 1fr) auto;
    padding-block: 20px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    transition: background-color .16s var(--ease);
}

.order-row:hover {
    background: var(--paper-soft);
}

.order-row span {
    display: block;
    color: var(--ink-faint);
    font-size: .71rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.order-row strong {
    display: block;
    margin-top: 4px;
    font-size: .96rem;
    font-weight: 500;
}

.order-row b {
    color: var(--ink-faint);
    font-weight: 400;
}

.order-detail-grid {
    display: grid;
    align-items: start;
    gap: clamp(28px, 4vw, 56px);
    grid-template-columns: 1fr minmax(0, 340px);
}

.order-status-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    padding-bottom: 26px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.order-status-grid span {
    display: block;
    color: var(--ink-faint);
    font-size: .71rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.order-status-grid strong {
    display: block;
    margin-top: 5px;
    font-size: 1.02rem;
    font-weight: 500;
}

.order-items-card h2 {
    margin-bottom: 18px;
    font-family: var(--serif);
    font-size: 1.24rem;
    font-weight: 400;
}

.order-item-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding-block: 15px;
    border-bottom: 1px solid var(--line);
}

.order-item-line span {
    display: block;
    margin-top: 3px;
    color: var(--ink-faint);
    font-size: .85rem;
}

.order-item-line strong {
    font-weight: 500;
}

.order-totals {
    margin-top: 22px;
}

.order-totals p {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-block: 6px;
    color: var(--ink-soft);
    font-size: .94rem;
}

.order-totals p.is-total {
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.08rem;
}

.order-address-card,
.password-card {
    padding: clamp(22px, 2.8vw, 32px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.order-address-card h2,
.password-card h2 {
    margin-bottom: 14px;
    font-family: var(--serif);
    font-size: 1.16rem;
    font-weight: 400;
}

.order-address-card p {
    color: var(--ink-soft);
    font-size: .93rem;
    line-height: 1.72;
}

.profile-grid {
    display: grid;
    align-items: start;
    gap: clamp(30px, 4vw, 60px);
    grid-template-columns: 1fr minmax(0, 350px);
}

.password-card .account-form {
    margin-top: 4px;
}

/* ----------------------------------------------------- páginas institucionais */

.content-grid {
    display: grid;
    align-items: start;
    gap: clamp(30px, 5vw, 76px);
    grid-template-columns: minmax(0, 26ch) 1fr;
}

.content-aside {
    position: sticky;
    top: 104px;
}

.content-aside p {
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: .93rem;
}

.prose {
    max-width: 68ch;
}

.prose h2 {
    margin-top: 42px;
    margin-bottom: 12px;
    font-family: var(--serif);
    font-size: 1.34rem;
    font-weight: 400;
    letter-spacing: -.01em;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p {
    margin-bottom: 16px;
    color: var(--ink-soft);
    line-height: 1.75;
}

.prose ul {
    padding-left: 20px;
    margin-block: 0 18px;
    color: var(--ink-soft);
}

.prose li {
    margin-bottom: 7px;
    line-height: 1.7;
}

.prose a {
    color: var(--accent);
}

.prose .button {
    margin-top: 12px;
}

.prose-note {
    padding: 18px 22px;
    margin-block: 26px;
    border-left: 2px solid var(--line-strong);
    background: var(--paper-soft);
    color: var(--ink-soft);
    font-size: .92rem;
    line-height: 1.7;
}

.contact-cards {
    display: grid;
    gap: 16px;
    /* Largura contida para um canal só não atravessar a coluna inteira,
       mas suficiente para dois cartões lado a lado se outro for somado. */
    max-width: 520px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.contact-card {
    display: block;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: border-color .18s var(--ease), background-color .18s var(--ease);
}

.contact-card:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.contact-card span {
    display: block;
    color: var(--accent);
    font-size: .71rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.contact-card strong {
    display: block;
    margin-block: 8px 8px;
    font-size: 1.02rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.contact-card p {
    color: var(--ink-soft);
    font-size: .89rem;
}

/* -------------------------------------------------------------------- rodapé */

/* Cadastro de novidades, logo acima do rodapé em todas as páginas. */
.newsletter {
    padding-block: clamp(36px, 5vw, 56px);
    background: linear-gradient(120deg, #f6eefa 0%, #fbe9e4 100%);
}

.newsletter-inner {
    display: grid;
    align-items: center;
    gap: 22px clamp(28px, 5vw, 64px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.newsletter-copy {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.newsletter-icon {
    display: grid;
    flex: none;
    width: 48px;
    height: 48px;
    place-items: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    color: var(--accent);
}

.newsletter-icon svg {
    width: 22px;
    height: 22px;
}

.newsletter h2 {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 1.15rem + .9vw, 1.9rem);
    font-weight: 500;
    line-height: 1.2;
}

.newsletter-copy p {
    margin-top: 6px;
    color: var(--ink-soft);
}

.newsletter-field {
    display: flex;
    gap: 10px;
}

.newsletter-field input {
    flex: 1;
    min-width: 0;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid rgb(107 63 134 / 22%);
    border-radius: var(--radius-pill);
    color: var(--ink);
    font: inherit;
}

.newsletter-field input:focus-visible {
    border-color: var(--accent);
    outline: 3px solid rgb(107 63 134 / 22%);
    outline-offset: 1px;
}

.newsletter-field input[aria-invalid="true"] {
    border-color: #b3261e;
}

.newsletter-field .button {
    flex: none;
}

.newsletter-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.newsletter-error {
    margin-top: 8px;
    color: #b3261e;
    font-size: .9rem;
    font-weight: 600;
}

.newsletter-note {
    margin-top: 10px;
    color: var(--ink-faint);
    font-size: .82rem;
    line-height: 1.5;
}

.newsletter-note a {
    color: inherit;
    text-decoration: underline;
}

.newsletter-done {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    color: #1f6b3a;
    font-weight: 600;
}

.newsletter-done svg {
    width: 20px;
    height: 20px;
    flex: none;
}

@media (width <= 860px) {
    .newsletter-inner {
        grid-template-columns: 1fr;
    }
}

@media (width <= 520px) {
    .newsletter-field {
        flex-direction: column;
    }
}

.site-footer {
    padding-top: clamp(48px, 5vw, 74px);
    border-top: 4px solid transparent;
    background:
        linear-gradient(var(--paper-soft), var(--paper-soft)) padding-box,
        linear-gradient(90deg, var(--accent), var(--blue), var(--green), var(--yellow), var(--orange)) border-box;
}

.footer-grid {
    display: grid;
    gap: clamp(30px, 4vw, 54px);
    grid-template-columns: 1.4fr repeat(3, 1fr);
    padding-bottom: 46px;
}

.footer-brand p {
    max-width: 30ch;
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: .92rem;
}

.footer-logo-card img {
    display: block;
    width: clamp(148px, 14vw, 174px);
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.site-footer h3 {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: .71rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.site-footer .footer-grid a {
    display: block;
    margin-bottom: 9px;
    color: var(--ink-soft);
    font-size: .92rem;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.site-footer .footer-grid a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-block: 22px;
    border-top: 1px solid var(--line);
    color: var(--ink-faint);
    font-size: .84rem;
}

/* ------------------------------------------------------------------ responsivo */

@media (width <= 1000px) {
    .hero-grid,
.product-grid,
.account-shell,
.order-detail-grid,
.profile-grid,
.content-grid,
.manifesto-grid {
        grid-template-columns: 1fr;
    }

    .content-aside,
    .product-art {
        position: static;
    }

    .product-cover-frame {
        max-width: 420px;
    }

    .hero-library {
        width: min(680px, 100%);
    }

    

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .order-row b {
        display: none;
    }
}

@media (width <= 760px) {
    .desktop-nav,
    .account-pill {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .header-inner {
        gap: 10px;
        min-height: 62px;
        padding-block: 4px;
    }

    .brand-logo {
        width: auto;
        height: 48px;
    }

    .cart-pill span {
        display: none;
    }

    .home-hero {
        padding-top: 40px;
    }

    .hero-grid {
        gap: 50px;
    }

    .hero-library {
        gap: 7px;
        padding: 22px 12px 34px;
        border-radius: 12px;
    }

    .hero-volume:nth-child(2) {
        translate: 0 -12px;
    }

    .hero-volume:nth-child(2):hover {
        translate: 0 -18px;
    }

    .hero-tag {
        max-width: calc(100% - 24px);
        padding-inline: 13px;
        font-size: .69rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    

    .section-heading,
    .values-grid,
    .form-grid,
    .checkout-form,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 62px 1fr;
    }

    .cart-item img {
        width: 62px;
    }

    .cart-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .cart-summary,
    .cart-checkout-action {
        align-items: flex-start;
    }

    .cart-checkout-action {
        width: 100%;
    }

    .cart-checkout-action .button {
        width: 100%;
    }

    .product-purchase form {
        width: 100%;
    }

    .product-purchase form .button {
        flex: 1;
    }

    .registration-submit .button {
        width: 100%;
    }

    
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

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

@media print {
    .site-header,
    .site-footer,
    .skip-link,
    .card-cta-form,
    .cart-actions {
        display: none;
    }

    body {
        background: #fff;
    }
}

/* -------------------------------------------------------------------- frete */

.shipping-calc {
    max-width: 420px;
    margin-top: 22px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius);
}

.shipping-calc-label {
    display: block;
    margin-bottom: 9px;
    color: var(--ink-soft);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .04em;
}

.shipping-calc-row {
    display: flex;
    gap: 8px;
}

.shipping-calc-row input {
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: .97rem;
}

.shipping-calc-row input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.shipping-calc-help {
    display: inline-block;
    margin-top: 8px;
    color: var(--ink-faint);
    font-size: .8rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.shipping-calc-result:empty {
    display: none;
}

.shipping-calc-result {
    margin-top: 14px;
    font-size: .9rem;
}

.shipping-calc-result.is-error {
    color: var(--danger);
}

.shipping-calc-dest {
    margin-bottom: 6px;
    color: var(--ink-faint);
    font-size: .8rem;
}

.shipping-calc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shipping-calc-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-block: 9px;
    border-top: 1px solid var(--line);
}

.shipping-option-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: normal;
}

.shipping-option-name small {
    color: var(--ink-faint);
    font-size: .8rem;
    font-weight: 400;
}

.shipping-options {
    margin: 0;
    padding: 0;
    border: 0;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.shipping-option + .shipping-option {
    margin-top: 10px;
}

.shipping-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.shipping-option .shipping-option-name {
    flex: 1;
}

.shipping-option strong {
    color: var(--ink);
    font-size: 1rem;
}

.shipping-option:has(input:checked) {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.shipping-options-empty {
    padding: 14px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--ink-faint);
    font-size: .9rem;
    font-weight: 400;
    letter-spacing: normal;
}

.cart-summary .shipping-calc {
    flex: 1 1 320px;
    margin-top: 0;
}

/* ------------------------------------------------------- quem somos (Luana) */

.about-love {
    max-width: 50ch;
    margin-top: 14px;
    color: var(--accent-deep);
    font-family: var(--serif);
    font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
    font-style: italic;
    line-height: 1.35;
}

.about-photo {
    position: relative;
    z-index: 1;
    margin: 0;
    overflow: hidden;
    background: var(--paper-deep);
    box-shadow: 0 30px 50px -28px rgb(35 32 31 / 55%), 0 8px 16px rgb(35 32 31 / 10%);
}

.about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
}

.about-photo.is-banner {
    width: min(340px, 72%);
    aspect-ratio: 4 / 5;
    border: 6px solid #fff;
    border-radius: 999px 999px 28px 28px;
}

.about-photo.is-story {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
}

.school-about-grid.is-text-only {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
}

.about-quote {
    margin: 22px 0;
    padding-left: 20px;
    border-left: 3px solid #e8858f;
    color: var(--accent-deep);
    font-family: var(--serif);
    font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
    font-style: italic;
    line-height: 1.3;
}

.about-quote + p {
    margin-top: 0;
}

.about-welcome .school-beyond-text {
    margin-top: 0;
}

.about-motto {
    margin-top: 22px;
    color: #f9c9d6;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.about-signature {
    margin-top: 18px;
    color: #fff;
    font-family: var(--serif);
    font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem);
    font-style: italic;
}

.school-about-text p.eyebrow {
    color: var(--accent);
    font-size: .72rem;
    line-height: 1.4;
}

/* ------------------------------------------------------------------- cupom */

.coupon-row {
    display: flex;
    gap: 8px;
}

.coupon-row input {
    flex: 1;
    min-width: 0;
    text-transform: uppercase;
}

.coupon-row input::placeholder {
    text-transform: none;
}

.coupon-status:empty {
    display: none;
}

.coupon-status {
    color: var(--ink-faint);
    font-size: .85rem;
    font-weight: 400;
    letter-spacing: normal;
}

.coupon-status.is-ok {
    color: #2f7a4b;
}

.coupon-status.is-error {
    color: var(--danger);
}

.checkout-discount strong {
    color: #2f7a4b;
}

.checkout-discount small {
    color: var(--ink-faint);
    font-size: .8rem;
}

.checkout-summary p[hidden] {
    display: none;
}

/* Resumo do pedido destacado logo acima do botão de pagar. */
.checkout-summary.is-final {
    padding: 18px 22px;
    margin-bottom: 0;
    border: 2px solid var(--accent);
    background: color-mix(in srgb, var(--accent) 7%, var(--surface));
    border-radius: var(--radius-lg);
}

.checkout-summary.is-final .checkout-total-line {
    align-items: baseline;
    border-top-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    font-size: 1.15rem;
}

.checkout-summary.is-final .checkout-total-line strong {
    color: var(--accent);
    font-size: 1.6rem;
    font-weight: 700;
}

/* ------------------------------------------------ A Abelha Amarela (pré-venda) */

/* Paleta do livro: amarelo-mel e marrom das listras da abelha. */
.is-honey {
    --tone: #d08a00;
    --tone-soft: #fff7d6;
    --tone-deep: #fde8a0;
    --tone-ink: #5c3a12;
}

.hb-abelha {
    --hb-bg: linear-gradient(120deg, #fff9dc 0%, #ffe9a3 100%);
    --hb-blob: #fbd75c;
    --hb-ink: #5c3a12;
    --hb-accent: #7a4c14;
}

.hb-title.is-lettering-abelha {
    max-width: none;
    line-height: 1;
}

.hb-title.is-lettering-abelha img {
    width: min(520px, 100%);
    height: auto;
    filter: drop-shadow(0 6px 14px rgb(92 58 18 / 18%));
}

.cover-badge.is-presale {
    background: #5c3a12;
    color: #fff3c4;
}

.presale-note {
    display: block;
    color: #7a4c14;
    font-weight: 700;
}

.cart-item .presale-note {
    margin-top: 4px;
    font-size: .85rem;
}

.presale-note.is-checkout {
    margin-top: 14px;
    padding: 12px 16px;
    background: #fff7d6;
    border: 1px solid #fde8a0;
    border-radius: var(--radius-lg);
    font-size: .9rem;
    font-weight: 400;
}
