/* Landing da Abelha Amarela (abelha.maedolivro.com). Celular primeiro.
   Cores tiradas da capa: amarelo-mel, marrom das listras, céu azul. */

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/assets/fonts/fraunces.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("/assets/fonts/inter.woff2") format("woff2");
}

:root {
    --honey: #ffd84d;
    --honey-soft: #fff7d6;
    --honey-deep: #f2b705;
    --brown: #5c3a12;
    --brown-ink: #3b2414;
    --sky: #cfe8f7;
    --paper: #fffdf6;
    --ink: #2b2118;
    --ink-soft: #5d5145;
    --line: #f0dfa8;
    --radius: 18px;
    --serif: "Fraunces", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    /* Espaço para o botão fixo do celular. */
    padding-bottom: 76px;
}

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

h1,
h2,
h3 {
    margin: 0;
    color: var(--brown-ink);
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.15;
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--brown);
}

.lp-wrap {
    width: min(1080px, 100% - 32px);
    margin-inline: auto;
}

.lp-narrow {
    width: min(720px, 100% - 32px);
}

.lp-review-bar {
    margin: 0;
    padding: 8px 16px;
    background: var(--brown-ink);
    color: #fff3c4;
    font-size: .8rem;
    text-align: center;
}

/* ------------------------------------------------------------ topo */

.lp-top {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.lp-brand img {
    width: auto;
    height: 44px;
}

.lp-top-buy {
    display: none;
    padding: 9px 18px;
    background: var(--brown);
    border-radius: 999px;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

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

.lp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 30px;
    background: var(--brown);
    border: 2px solid var(--brown);
    border-radius: 999px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgb(92 58 18 / 22%);
    transition: transform .15s ease, background .15s ease;
}

.lp-button:hover {
    background: var(--brown-ink);
    transform: translateY(-1px);
}

.lp-button:focus-visible,
.lp-top-buy:focus-visible {
    outline: 3px solid var(--honey-deep);
    outline-offset: 3px;
}

.lp-button.is-ghost {
    background: transparent;
    color: var(--brown);
    box-shadow: none;
}

.lp-buy {
    display: grid;
    justify-items: start;
    gap: 10px;
    margin-top: 24px;
}

.lp-buy-price {
    margin: 0;
    color: var(--brown-ink);
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}

.lp-buy-note {
    margin: 0;
    color: var(--ink-soft);
    font-size: .9rem;
}

.lp-buy-note strong {
    color: #b3261e;
}

.lp-soldout {
    margin: 0;
    color: #b3261e;
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
}

/* ------------------------------------------------------------ abertura */

.lp-hero {
    padding: 28px 0 40px;
    background:
        radial-gradient(circle at 85% 10%, rgb(255 255 255 / 70%) 0 12%, transparent 13%),
        linear-gradient(180deg, var(--sky) 0%, #fff4c2 55%, var(--paper) 100%);
}

.lp-hero-grid {
    display: grid;
    gap: 24px;
}

.lp-hero-cover img {
    width: min(300px, 78vw);
    margin-inline: auto;
    border-radius: 6px 14px 14px 6px;
    box-shadow: 0 24px 50px rgb(59 36 20 / 28%);
    transform: rotate(-2deg);
}

.lp-hero-copy {
    text-align: center;
}

.lp-hero-copy h1 img {
    width: min(460px, 100%);
    margin-inline: auto;
}

.lp-hero-subtitle {
    margin: 12px 0 4px;
    color: var(--brown-ink);
    font-family: var(--serif);
    font-size: 1.35rem;
    font-style: italic;
}

.lp-hero-author {
    color: var(--ink-soft);
}

.lp-hero .lp-buy {
    justify-items: center;
}

/* ------------------------------------------------------------ seções */

.lp-section {
    padding: 56px 0;
}

.lp-eyebrow {
    margin-bottom: 8px;
    color: var(--brown);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.lp-section h2 {
    margin-bottom: 20px;
}

.lp-story {
    background: var(--honey-soft);
}

.lp-signature {
    color: var(--brown);
    font-family: var(--serif);
    font-style: italic;
}

.lp-cards {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-cards li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

/* Favo de mel no lugar do marcador. */
.lp-hex {
    flex: 0 0 auto;
    width: 20px;
    height: 22px;
    margin-top: 3px;
    background: var(--honey-deep);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.lp-talk {
    margin-top: 28px;
    padding: 22px;
    background: var(--brown);
    border-radius: var(--radius);
    color: #fff3c4;
}

.lp-talk h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.2rem;
}

.lp-talk ul {
    margin: 0;
    padding-left: 1.1em;
}

.lp-letter {
    margin: 32px 0 0;
    padding: 22px 22px 18px;
    background: #fff;
    border-left: 6px solid var(--honey-deep);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--serif);
    font-size: 1.15rem;
}

.lp-letter footer {
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: .85rem;
}

.lp-gallery {
    background: linear-gradient(180deg, var(--paper), var(--honey-soft));
}

/* Galeria: desliza para o lado no celular. */
.lp-gallery-track {
    display: grid;
    grid-auto-columns: 78%;
    grid-auto-flow: column;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.lp-gallery-track figure {
    margin: 0;
    scroll-snap-align: start;
}

.lp-gallery-track img {
    border-radius: 12px;
    box-shadow: 0 10px 24px rgb(59 36 20 / 14%);
}

.lp-author-grid {
    display: grid;
    gap: 24px;
}

.lp-author-photo {
    width: min(320px, 100%);
    border-radius: var(--radius);
}

.lp-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--brown-ink);
}

.lp-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lp-quotes {
    display: grid;
    gap: 14px;
}

.lp-quotes blockquote {
    margin: 0;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.lp-facts {
    display: grid;
    margin: 0;
    border-top: 1px solid var(--line);
}

.lp-facts div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.lp-facts dt {
    color: var(--ink-soft);
}

.lp-facts dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

.lp-checks {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.lp-checks li {
    position: relative;
    padding: 8px 0 8px 30px;
}

.lp-checks li::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 4px;
    width: 12px;
    height: 7px;
    border-bottom: 3px solid var(--brown);
    border-left: 3px solid var(--brown);
    transform: rotate(-45deg);
}

.lp-faq details {
    border-bottom: 1px solid var(--line);
}

.lp-faq summary {
    padding: 16px 0;
    color: var(--brown-ink);
    font-weight: 700;
    cursor: pointer;
}

.lp-faq details p {
    color: var(--ink-soft);
}

.lp-final {
    background: var(--honey);
    text-align: center;
}

.lp-final .lp-buy {
    justify-items: center;
}

.lp-placeholder {
    margin-top: 16px;
    padding: 14px 16px;
    border: 2px dashed #c58a00;
    border-radius: 12px;
    background: #fffbea;
    color: #6b4f00;
    font-size: .9rem;
    text-align: left;
}

.lp-footer {
    padding: 28px 16px;
    background: var(--brown-ink);
    color: #e9dcc4;
    font-size: .85rem;
    text-align: center;
}

.lp-footer a {
    color: #fff3c4;
}

/* Botão fixo do celular. */
.lp-sticky {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgb(59 36 20 / 12%);
}

.lp-sticky-price {
    color: var(--brown-ink);
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
}

.lp-sticky .lp-button {
    min-height: 48px;
    padding: 10px 24px;
}

/* ------------------------------------------------------------ telas maiores */

@media (min-width: 820px) {
    body {
        padding-bottom: 0;
    }

    .lp-sticky {
        display: none;
    }

    .lp-top-buy {
        display: inline-flex;
    }

    .lp-hero {
        padding: 56px 0 72px;
    }

    .lp-hero-grid {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        align-items: center;
        gap: 56px;
    }

    .lp-hero-cover img {
        width: min(400px, 100%);
    }

    .lp-hero-copy,
    .lp-hero .lp-buy {
        text-align: left;
        justify-items: start;
    }

    .lp-hero-copy h1 img {
        margin-inline: 0;
    }

    .lp-section {
        padding: 84px 0;
    }

    .lp-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lp-gallery-track {
        grid-auto-columns: calc((100% - 42px) / 4);
        overflow: visible;
    }

    .lp-author-grid {
        grid-template-columns: 320px minmax(0, 1fr);
        align-items: center;
        gap: 48px;
    }

    .lp-quotes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .lp-button {
        transition: none;
    }
}

/* Selo de pagamento seguro ao lado de cada botão de compra. */
.lp-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #2e6b3a;
    font-size: .85rem;
    font-weight: 600;
}

.lp-secure svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
