/* PromptBook landing pages (2026-09-14; flagship rebuild 2026-11-07, owner L).
   One stylesheet for every variant (lib/landing-render.php). Colours, focus and type come from
   /promptbook/assets/pb-tokens.css, linked first: light by default, dark when the OS asks
   (contract D17; the original page was dark-only). Mobile-first: min-width 480 / 768 / 1024.
   No icon font and, on the children's page, no web font (body.lp--local-fonts). */

.lp {
    --lp-serif: var(--pb-font-display);
    --lp-sans: var(--pb-font-ui);
    --lp-radius: var(--pb-radius);
    --lp-paper: #f7f3ea;            /* the sample "book page" is paper in both themes */
    --lp-paper-ink: #2b2622;        /* 13.6:1 on paper */
    --lp-paper-kicker: #7a5d3b;     /* 5.6:1 on paper */
    --lp-glow: rgba(79, 70, 229, 0.10);
    --lp-glow-2: rgba(109, 40, 217, 0.06);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-pb-theme="light"]) .lp { --lp-glow: rgba(99, 102, 241, 0.22); --lp-glow-2: rgba(196, 181, 253, 0.10); }
}
[data-pb-theme="dark"] .lp { --lp-glow: rgba(99, 102, 241, 0.22); --lp-glow-2: rgba(196, 181, 253, 0.10); }

/* Children's page: local fonts only (contract §5.2), a rounder display face */
.lp.lp--local-fonts {
    --lp-sans: var(--pb-font-ui-local);
    --lp-serif: var(--pb-font-child-local);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-padding-bottom: 24px; }
/* UI-R2-01 (WCAG 2.4.11): keyboard focus, anchors and scrollIntoView never land under the sticky 61px header. */
.lp :is(a, button, input, select, textarea, summary, label, [tabindex], h2, h3) { scroll-margin-top: 84px; scroll-margin-bottom: 24px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lp *, .lp *::before, .lp *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

body.lp {
    margin: 0;
    background: var(--pb-bg);
    color: var(--pb-ink);
    font: 16px/1.6 var(--lp-sans);
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}
.lp a { color: var(--pb-link); text-underline-offset: 0.15em; }
.lp a:hover { text-decoration-thickness: 2px; }
.lp h1, .lp h2, .lp h3 { text-wrap: balance; margin: 0; color: var(--pb-ink); }
.lp img { max-width: 100%; height: auto; }
.lp-ico { display: inline-block; vertical-align: -0.2em; flex: 0 0 auto; }
.sr-only, .lp-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lp-muted { color: var(--pb-muted); }

/* Focus: one visible ring everywhere, both themes (WCAG 2.4.7 / 2.4.11) */
.lp a:focus-visible, .lp button:focus-visible, .lp summary:focus-visible, .lp select:focus-visible,
.lp textarea:focus-visible, .lp input:focus-visible, .lp [tabindex]:focus-visible {
    outline: 3px solid var(--pb-focus);
    outline-offset: 2px;
}
.lp-radio input:focus-visible + span { outline: 3px solid var(--pb-focus); outline-offset: 2px; }

.lp-skip {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--pb-surface); color: var(--pb-ink) !important; padding: 10px 14px; border-radius: 10px;
    border: 2px solid var(--pb-focus); font-weight: 600;
}
.lp-skip:focus { position: fixed; top: 12px; scroll-margin: 0; }

.lp-wrap { max-width: var(--pb-wrap); margin: 0 auto; padding-inline: var(--pb-gutter); }
.lp-narrow { max-width: 820px; }
.lp-center { text-align: center; }

/* ---------------------------------------------------------------- header */
.lp-header {
    position: sticky; top: 0; z-index: var(--pb-z-sticky);
    border-bottom: 1px solid var(--pb-line);
    background: var(--pb-bg);
    background: color-mix(in srgb, var(--pb-bg) 92%, transparent);
    backdrop-filter: blur(10px);
}
.lp-header-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 0.75rem; }
.lp-brand { color: var(--pb-ink) !important; text-decoration: none; font-weight: 700; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; }
.lp-brand .lp-ico { color: var(--pb-accent); }
.lp-brand-by { display: none; font-weight: 500; font-size: 0.78rem; color: var(--pb-muted); margin-left: 0.2rem; }
.lp-header-link {
    color: var(--pb-ink) !important; text-decoration: none; font-weight: 600; font-size: 0.92rem;
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
    border: 1px solid var(--pb-line-strong); border-radius: var(--pb-radius-pill);
    white-space: nowrap; flex: 0 0 auto;   /* UI-R4-02: one line at 320 */
}
@media (max-width: 379px) { .lp-header-link { padding: 0 0.7rem; font-size: 0.86rem; } .lp-brand { min-width: 0; } }
.lp-header-link:hover { border-color: var(--pb-link); }

/* ---------------------------------------------------------------- hero */
.lp-hero {
    padding-block: 28px 40px;
    background:
        radial-gradient(900px 420px at 12% -10%, var(--lp-glow), transparent 60%),
        radial-gradient(700px 380px at 100% 20%, var(--lp-glow-2), transparent 60%);
}
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.lp-eyebrow { margin: 0 0 0.6rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pb-lilac); }
.lp h1 { font-family: var(--lp-serif); font-weight: 600; font-size: clamp(1.9rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.lp h1 em { font-style: italic; color: var(--pb-lilac); }
.lp--local-fonts h1, .lp--local-fonts h2 { letter-spacing: 0; }
.lp-lede { margin: 0.8rem 0 1.25rem; font-size: 1.04rem; color: var(--pb-muted); max-width: 36rem; }
.lp-points { list-style: none; margin: 0; padding: 0; display: none; gap: 0.6rem; }
.lp-points li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--pb-ink); }
.lp-points .lp-ico { color: var(--pb-good); margin-top: 0.2em; }

/* ---------------------------------------------------------------- form card */
.lp-card { background: var(--pb-surface); border: 1px solid var(--pb-line-strong); border-radius: var(--pb-radius-lg); padding: 18px; box-shadow: var(--pb-shadow-2); }
.lp-form { display: grid; gap: 1rem; }
.lp-form[hidden] { display: none; }
.lp-field { display: grid; gap: 0.4rem; min-width: 0; border: 0; margin: 0; padding: 0; }
.lp-field > label, .lp-field > legend, .lp-guided > legend { font-weight: 600; font-size: 0.95rem; padding: 0; color: var(--pb-ink); }
.lp textarea, .lp input[type="text"], .lp input[type="email"], .lp select {
    width: 100%; max-width: 100%; font: inherit; font-size: 16px; color: var(--pb-ink);
    background: var(--pb-surface-2); border: 1px solid var(--pb-line-strong); border-radius: 10px;
    padding: 0.7rem 0.8rem; min-height: 48px;
}
.lp textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.lp-guided textarea { min-height: 64px; }
.lp textarea::placeholder, .lp input::placeholder { color: var(--pb-subtle); opacity: 1; }
.lp-field-foot { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.82rem; color: var(--pb-muted); }
.lp-hint { color: var(--pb-muted); font-size: 0.85rem; margin: 0; }
.lp-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-count.is-over { color: var(--pb-bad); font-weight: 700; }

.lp-guided { border: 1px solid var(--pb-line); border-radius: var(--pb-radius); padding: 14px; margin: 0; display: grid; gap: 0.8rem; min-width: 0; }
.lp-guided[hidden], [data-single-box][hidden] { display: none; }
[data-single-box] { display: grid; gap: 0.5rem; }

.lp-examples { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; font-size: 0.85rem; color: var(--pb-muted); }
.lp-chip {
    font: inherit; font-size: 0.85rem; color: var(--pb-ink); background: var(--pb-surface);
    border: 1px solid var(--pb-line-strong); border-radius: var(--pb-radius-pill); padding: 0.4rem 0.8rem; min-height: 40px; cursor: pointer;
}
.lp-chip:hover { border-color: var(--pb-link); color: var(--pb-link); }

.lp-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; align-items: end; }
.lp-length { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.lp-length legend { width: 100%; margin-bottom: 0.4rem; }
.lp-radio { flex: 1 1 0; min-width: 0; position: relative; }
.lp-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.lp-radio span {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    min-height: 52px; padding: 0.35rem 0.4rem; border: 1px solid var(--pb-line-strong); border-radius: 10px;
    font-weight: 600; font-size: 0.92rem; line-height: 1.2; background: var(--pb-surface-2);
}
.lp-radio small { font-weight: 500; font-size: 0.75rem; color: var(--pb-muted); margin-top: 0.15rem; }
.lp-radio input:checked + span { border: 2px solid var(--pb-accent); background: var(--pb-accent-soft); }

.lp-more summary { cursor: pointer; font-size: 0.9rem; color: var(--pb-muted); min-height: 44px; display: flex; align-items: center; }
.lp-more[open] summary { margin-bottom: 0.4rem; }

.lp-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--pb-muted); line-height: 1.45; cursor: pointer; }
.lp-consent input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--pb-accent); flex: 0 0 auto; }
.lp-consent input[aria-invalid="true"] { outline: 2px solid var(--pb-bad); outline-offset: 2px; }

.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; text-align: center;
    font: inherit; font-weight: 700; text-decoration: none !important; border-radius: var(--pb-radius-pill); cursor: pointer;
    border: 1px solid transparent; min-height: 50px; padding: 0.75rem 1.35rem;
    transition: background-color var(--pb-dur) var(--pb-ease), border-color var(--pb-dur) var(--pb-ease);
}
.lp-btn-primary { background: var(--pb-accent); color: var(--pb-accent-ink) !important; box-shadow: 0 8px 22px rgba(79, 70, 229, 0.28); }
.lp-btn-primary:hover { background: var(--pb-accent-hover); }
.lp-btn-ghost { background: transparent; color: var(--pb-ink) !important; border-color: var(--pb-line-strong); }
.lp-btn-ghost:hover { border-color: var(--pb-link); }
.lp-btn[disabled] { opacity: 0.6; cursor: progress; }
.lp-btn-block { width: 100%; font-size: 1.02rem; }
.lp-btn-lg { min-height: 56px; font-size: 1.05rem; padding-inline: 1.6rem; }
.lp-link { background: none; border: 0; font: inherit; font-size: 0.92rem; color: var(--pb-muted); text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 0.25rem; justify-self: center; }
.lp-link:hover { color: var(--pb-ink); }
.lp-form-note { margin: -0.35rem 0 0; text-align: center; font-size: 0.84rem; color: var(--pb-muted); }
.lp-error { margin: 0; padding: 0.7rem 0.85rem; border-radius: 10px; background: var(--pb-warn-soft); border: 1px solid var(--pb-warn); color: var(--pb-ink); font-size: 0.9rem; }
.lp-error a { color: var(--pb-link); font-weight: 600; }
.lp-error[hidden] { display: none; }
.lp-proof { margin: 0.25rem 0 0; text-align: center; font-size: 0.84rem; color: var(--pb-muted); }
.lp-proof .lp-ico { color: var(--pb-lilac); }

/* ---------------------------------------------------------------- loading */
.lp-loading { text-align: center; padding: 34px 6px; }
.lp-loading[hidden], .lp-result[hidden] { display: none; }
.lp-loading-mark { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.lp-loading-mark span { width: 12px; height: 16px; border-radius: 2px 6px 6px 2px; background: var(--pb-lilac); animation: lp-page 1.4s ease-in-out infinite; }
.lp-loading-mark span:nth-child(2) { animation-delay: 0.18s; }
.lp-loading-mark span:nth-child(3) { animation-delay: 0.36s; }
@keyframes lp-page { 0%, 100% { transform: scaleY(0.6); opacity: 0.45; } 50% { transform: scaleY(1); opacity: 1; } }
.lp-loading-title { font-family: var(--lp-serif); font-size: 1.35rem; margin: 0 0 0.35rem; }
.lp-loading-sub { margin: 0; color: var(--pb-muted); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.lp-loading-bar { height: 6px; border-radius: 999px; background: var(--pb-bg-2); margin: 20px auto 12px; max-width: 320px; overflow: hidden; }
.lp-loading-bar span { display: block; height: 100%; width: 0; background: var(--pb-accent); transition: width 0.5s ease; }
.lp-loading-tip { margin: 0; font-size: 0.84rem; color: var(--pb-muted); }
.lp-loading-read { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 14px; min-height: 44px; font-size: 0.9rem; }

/* ---------------------------------------------------------------- ready / started */
.lp-ready[hidden], .lp-started[hidden], .lp-start[hidden] { display: none; }
.lp-ready { display: grid; gap: 12px; text-align: center; padding: 14px 0; }
.lp-ready-title { margin: 0; font-weight: 700; color: var(--pb-good); display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; }
.lp-ready-name { margin: 0 0 6px; font-family: var(--lp-serif); font-size: 1.4rem; line-height: 1.2; color: var(--pb-ink); text-wrap: balance; }
.lp-ready-actions { display: grid; gap: 10px; }
.lp-ready .lp-form-note { margin: 0; }
.lp-ready-head { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left; }
.lp-ready-head .lp-ready-name { margin: 0; }
.lp-title-note { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--pb-muted); }
.lp-cover[hidden] { display: none; }
.lp-cover { position: relative; flex: 0 0 auto; width: 76px; aspect-ratio: 2 / 3; margin: 0; border-radius: 4px 8px 8px 4px; overflow: hidden; background: var(--pb-bg-2); box-shadow: var(--pb-cover-shadow); }
.lp-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-cover figcaption { position: absolute; inset: 0 0 auto 0; padding: 8px 6px 14px; font-family: var(--lp-serif); font-weight: 700; font-size: 0.62rem; line-height: 1.15; color: #fff; text-align: center; text-wrap: balance; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85); background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent); }
.lp-start { display: grid; gap: 10px; text-align: left; }
.lp-gsi { display: flex; justify-content: center; min-height: 44px; }
.lp-gsi[hidden], .lp-or[hidden] { display: none; }
.lp-or { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 0.8rem; color: var(--pb-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.lp-or::before, .lp-or::after { content: ""; flex: 1; height: 1px; background: var(--pb-line-strong); }
.lp-email-start { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.lp-email-start .lp-btn { width: 100%; }
.lp-start .lp-form-note { margin: 0; }
.lp-start-alt { margin: 0; font-size: 0.85rem; text-align: center; }
.lp-start-alt a { color: var(--pb-muted); }
.lp-started-copy { margin: 0; color: var(--pb-ink); }

/* ---------------------------------------------------------------- result */
.lp-result { padding-block: 40px; background: var(--pb-bg-2); border-block: 1px solid var(--pb-line); }
.lp-result-head { max-width: 760px; }
.lp-result h2 { font-family: var(--lp-serif); font-weight: 600; font-size: var(--pb-text-h2); line-height: 1.15; }
.lp-result-summary { color: var(--pb-muted); font-size: 1.05rem; margin: 0.9rem 0 0; }
.lp-result-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 1.4rem; }
.lp-result-quick .lp-btn { width: 100%; }
.lp-result-quick span { font-size: 0.86rem; color: var(--pb-muted); }
.lp-chapters { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.lp-chapter { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 16px; background: var(--pb-surface); border: 1px solid var(--pb-line); border-radius: var(--lp-radius); }
.lp-chapter-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; background: var(--pb-accent-soft); color: var(--pb-ink); font-variant-numeric: tabular-nums; }
.lp-chapter h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.3rem; }
.lp-chapter p { margin: 0; color: var(--pb-muted); font-size: 0.94rem; }
.lp-chapter details { margin-top: 0.5rem; font-size: 0.88rem; }
.lp-chapter summary { cursor: pointer; color: var(--pb-link); min-height: 32px; display: flex; align-items: center; }
.lp-chapter ul { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--pb-muted); }
.lp-cast { margin: 1rem 0 0; color: var(--pb-muted); font-size: 0.95rem; }
.lp-cast strong { color: var(--pb-ink); }

.lp-cta-panel {
    margin-top: 28px; padding: 20px; border-radius: var(--pb-radius-lg);
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center;
    background: var(--pb-surface); border: 2px solid var(--pb-accent);
}
.lp-cta-panel h3 { font-family: var(--lp-serif); font-size: 1.45rem; font-weight: 600; margin-bottom: 0.4rem; }
.lp-cta-panel p { margin: 0.35rem 0 0; color: var(--pb-ink); }
.lp-cta-fine { color: var(--pb-muted) !important; font-size: 0.86rem; }
.lp-cta-actions { display: grid; gap: 10px; }

.lp-sample-offer[hidden], .lp-sample-live[hidden], .lp-sample-out[hidden] { display: none; }
.lp-sample-offer { display: grid; gap: 14px; margin: 24px 0 0; padding: 18px; border-radius: 16px; border: 1px solid var(--pb-line-strong); background: var(--pb-surface); }
.lp-sample-offer h3 { margin: 0 0 0.3rem; font-family: var(--lp-serif); font-size: 1.25rem; }
.lp-sample-offer p { margin: 0; color: var(--pb-muted); font-size: 0.95rem; max-width: 52ch; }
.lp-sample-live { margin: 24px 0 0; padding: 28px 12px; text-align: center; border-radius: 16px; border: 1px solid var(--pb-line); background: var(--pb-surface); }
.lp-sample-out { margin: 24px 0 0; padding: 18px; border-radius: 16px; border: 1px solid var(--pb-line-strong); background: var(--pb-surface); }
.lp-sample-prose { margin: 0.6rem 0 1.2rem; max-width: var(--pb-measure); font-size: 1.04rem; line-height: 1.75; }
.lp-sample-prose p { margin: 0 0 1em; }
.lp-sample-after { display: grid; gap: 10px; justify-items: start; border-top: 1px solid var(--pb-line); padding-top: 16px; }
.lp-sample-after p { margin: 0; color: var(--pb-muted); }
.lp-sample-after .lp-form-note { text-align: left; margin: 0; }
.lp-sample-offer .lp-btn, .lp-sample-after .lp-btn { width: 100%; }

/* ---------------------------------------------------------------- sections */
.lp-section { padding-block: 48px; }
.lp-band { background: var(--pb-bg-2); border-block: 1px solid var(--pb-line); }
.lp-section h2 { font-family: var(--lp-serif); font-weight: 600; font-size: var(--pb-text-h2); line-height: 1.2; margin-bottom: 1rem; }
.lp-prose > p, .lp-prose li, .lp-prose dd { color: var(--pb-ink); }
.lp-prose > p { margin: 0 0 1rem; max-width: var(--pb-measure); }
.lp-note { color: var(--pb-muted) !important; font-size: 0.92rem; }

.lp-sample-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.lp-sample-grid > div > p { color: var(--pb-muted); }
.lp-brief { margin-top: 1.25rem; padding: 16px 18px; border: 1px dashed var(--pb-line-strong); border-radius: 12px; }
.lp-brief span { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pb-lilac); margin-bottom: 0.35rem; }
.lp-brief p { margin: 0; color: var(--pb-ink); font-size: 0.97rem; }
.lp-meta { font-size: 0.88rem; color: var(--pb-muted); }
.lp-page { margin: 0; background: var(--lp-paper); color: var(--lp-paper-ink); border-radius: 6px 14px 14px 6px; padding: 24px 22px; box-shadow: var(--pb-shadow-2), inset 10px 0 18px -14px rgba(0, 0, 0, 0.35); }
.lp-page figcaption { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lp-paper-kicker); margin-bottom: 1rem; }
.lp-page p { font-family: var(--pb-font-read); font-size: 1.05rem; line-height: 1.78; margin: 0 0 0.9rem; color: var(--lp-paper-ink); }
.lp-page p:last-child { margin-bottom: 0; }

.lp-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lp-steps li { padding: 20px; border-radius: var(--lp-radius); background: var(--pb-surface); border: 1px solid var(--pb-line); }
.lp-step-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--pb-line-strong); font-weight: 700; font-size: 0.86rem; color: var(--pb-ink); margin-bottom: 0.7rem; }
.lp-steps h3 { font-size: 1.04rem; margin-bottom: 0.4rem; }
.lp-steps p { margin: 0; color: var(--pb-muted); font-size: 0.94rem; }

/* Variant block components */
.lp-table-wrap { overflow-x: auto; margin: 0 0 1rem; border: 1px solid var(--pb-line); border-radius: var(--lp-radius); background: var(--pb-surface); }
.lp-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.94rem; }
.lp-table th, .lp-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--pb-line); }
.lp-table thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pb-muted); background: var(--pb-bg-2); }
.lp-table tbody tr:last-child th, .lp-table tbody tr:last-child td { border-bottom: 0; }
.lp-table tbody th { font-weight: 700; color: var(--pb-ink); }
.lp-ticks, .lp-list { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: 0.7rem; max-width: var(--pb-measure); }
.lp-ticks { list-style: none; padding-left: 0; }
.lp-ticks li { position: relative; padding-left: 1.6rem; }
.lp-ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.45em; width: 0.7rem; height: 0.4rem; border-left: 2px solid var(--pb-good); border-bottom: 2px solid var(--pb-good); transform: rotate(-45deg); }
.lp-styles { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.lp-styles li { display: grid; gap: 0.2rem; padding: 14px 16px; border: 1px solid var(--pb-line); border-left: 4px solid var(--pb-accent); border-radius: 10px; background: var(--pb-surface); }
.lp-styles span { color: var(--pb-muted); font-size: 0.94rem; }
.lp-defs { margin: 0 0 1rem; display: grid; gap: 0.35rem; }
.lp-defs dt { font-weight: 700; margin-top: 0.6rem; }
.lp-defs dd { margin: 0; color: var(--pb-muted); }
.lp-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 1rem; }
.lp-card-plain { padding: 18px; border: 1px solid var(--pb-line); border-radius: var(--lp-radius); background: var(--pb-surface); }
.lp-card-plain h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.lp-card-plain p { margin: 0; color: var(--pb-muted); }
.lp-worksheet { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.lp-ws-group { padding: 16px 18px; border: 1px solid var(--pb-line); border-radius: var(--lp-radius); background: var(--pb-surface); }
.lp-ws-group h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--pb-lilac); }
.lp-ws-group ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.lp-offer { margin-top: 1.25rem; }

.lp-shelf { list-style: none; margin: 18px 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.lp-shelf-item a { display: grid; gap: 0.5rem; text-decoration: none; color: var(--pb-ink) !important; }
.lp-shelf-item img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px 10px 10px 4px; box-shadow: var(--pb-cover-shadow); }
.lp-shelf-item.is-picture img { aspect-ratio: 4 / 3; border-radius: 10px; }
.lp-shelf-item .pb-badge { justify-self: start; }
.lp-brief-mini { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--pb-muted); }
.lp-brief-mini span { font-weight: 700; color: var(--pb-lilac); }

.lp-related-grid { list-style: none; margin: 24px 0 16px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.lp-related-grid a { display: grid; gap: 0.25rem; padding: 16px 18px; border: 1px solid var(--pb-line-strong); border-radius: var(--lp-radius); background: var(--pb-surface); text-decoration: none; color: var(--pb-ink) !important; min-height: 44px; }
.lp-related-grid a:hover { border-color: var(--pb-link); }
.lp-related-grid span { color: var(--pb-muted); font-size: 0.92rem; }

.lp-faq details { border-bottom: 1px solid var(--pb-line); padding-block: 4px; }
.lp-faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; min-height: 56px; display: flex; align-items: center; gap: 1rem; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; margin-left: auto; color: var(--pb-lilac); font-size: 1.3rem; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { margin: 0 0 1.1rem; color: var(--pb-muted); }

.lp-final { padding-block: 56px; background: radial-gradient(700px 300px at 50% 0%, var(--lp-glow), transparent 70%); }
.lp-final h2 { font-family: var(--lp-serif); font-weight: 600; font-size: var(--pb-text-h2); margin-bottom: 1.4rem; }
.lp-final .lp-btn { width: 100%; }

.lp-footer { border-top: 1px solid var(--pb-line); padding-block: 22px; font-size: 0.88rem; color: var(--pb-muted); }
.lp-footer-row { display: flex; flex-direction: column; gap: 0.5rem; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.lp-footer a { color: var(--pb-muted); display: inline-flex; align-items: center; min-height: 44px; }

/* ---------------------------------------------------------------- larger screens */
@media (min-width: 480px) {
    .lp-card { padding: 22px; }
    .lp-email-start { grid-template-columns: minmax(0, 1fr) auto; }
    .lp-email-start .lp-btn { width: auto; white-space: nowrap; }
    .lp-cover { width: 92px; }
    .lp-result-quick .lp-btn, .lp-final .lp-btn { width: auto; }
    .lp-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-brand-by { display: inline; }
}
@media (min-width: 768px) {
    .lp-wrap { padding-inline: var(--pb-s5); }
    .lp-hero { padding-block: 48px 60px; }
    .lp-points { display: grid; }
    .lp-lede { font-size: 1.12rem; }
    .lp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .lp-chapters, .lp-steps, .lp-styles, .lp-worksheet, .lp-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lp-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lp-section { padding-block: 64px; }
    .lp-page { padding: 34px 38px; }
    .lp-cta-panel { padding: 28px; }
    .lp-sample-offer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
    .lp-sample-offer .lp-btn, .lp-sample-after .lp-btn { width: auto; }
    .lp-footer-row { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
}
@media (min-width: 1024px) {
    .lp-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; }
    .lp-sample-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 44px; }
    .lp-cta-panel { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
    .lp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lp-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lp-worksheet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The memoir worksheet prints on its own */
@media print {
    .lp-header, .lp-hero, .lp-result, .lp-footer, .lp-final, .lp-faq, .lp-related, .lp-skip, .lp-steps { display: none !important; }
    body.lp { background: #fff; color: #000; }
    .lp-band { background: none; }
}

/* Children's page picture (UI Round 1): drawn spread or a real example spread. Fixed aspect: no layout shift. */
.lp-spread { margin: 24px 0 0; }
.lp-spread-svg, .lp-spread img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 380; border-radius: 10px; filter: drop-shadow(0 10px 22px rgba(20, 18, 50, 0.18)); }
.lp-spread img { aspect-ratio: 4 / 3; object-fit: cover; }
.lp-spread figcaption { margin-top: 0.6rem; font-size: 0.86rem; color: var(--pb-muted); }
.lp-spread--wide { display: none; max-width: 520px; }
.lp-spread-narrow { padding-bottom: 32px; }
@media (min-width: 1024px) {
    .lp-spread--wide { display: block; }
    .lp-spread-narrow { display: none; }
}
