/* ==========================================================================
   sales.css: the Level and Bundle pages (templates/sales.html links it; restyle ticket 02, mock concept A).
   Tokens and the shared components (.kicker, .practice-boxes, .btn, blockquote, the Free sample form, the exit
   popup, the print) come from site.css; these are the page's own pieces. Phone first: most visitors come from
   a Meta ad on a phone.
   ========================================================================== */

/* The hero across the whole width on the 田字格 grid (site.css .grid-band's lines), its text in the column. */
.page-hero.column {
    max-width: none;
    padding: 28px max(var(--gutter), calc((100% - var(--column)) / 2)) 20px;
    background-image:
        linear-gradient(var(--soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--soft) 1px, transparent 1px);
    background-size: 44px 44px;
    background-position: -1px -1px;
    border-bottom: 1px solid var(--soft);
}
.page-hero h1 { font-size: clamp(36px, 10vw, 48px); line-height: 1.05; }
.page-hero .sub { margin: 0; font-size: 17px; color: var(--text); }

/* Numbered red kickers on the section heads: "What's in the sample" is 01, then the letter's. */
.article-content { counter-reset: section; }
.fs-about h2::before, .letter h2::before {
    counter-increment: section;
    content: counter(section, decimal-leading-zero);
    display: block;
    margin-bottom: 6px;
    font: 600 12px/1.4 var(--sans);
    letter-spacing: .12em;
    color: var(--red);
}

/* The sales letter: one reading column; each <hr><h2> is one cobalt rule (the h2's own). */
.letter { margin-top: 32px; }
.letter hr:has(+ h2) { display: none; }
.letter hr { margin: 32px 0 24px; border-top-color: var(--soft); }
.letter .lead { font-size: 18px; line-height: 1.55; }
.letter figure { margin: 24px 0; }
.letter figure img { width: 100%; border: 1px solid var(--soft); }
.letter blockquote p { margin: 0; }
.letter .video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 24px 0; background: #000; border: 1px solid var(--soft); }
.letter .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* The Gumroad store's reviews as quotes in the red margin rule: stars, the words, the source. */
.reviews-title { margin: 28px 0 6px; }
.gumroad-reviews { margin: 8px 0 0; }
.letter .gumroad-review { margin: 0; padding: 14px 0 14px 14px; border-left: 3px solid var(--red); border-bottom: 1px solid var(--soft); }
.gumroad-review .stars { margin: 0 0 4px; font: 400 15px/1 var(--glyph); letter-spacing: 3px; color: var(--ink); }
.letter .gumroad-review blockquote { margin: 0 0 6px; padding: 0; border: 0; }
.gumroad-review .source { margin: 0; font-size: 13px; color: var(--muted); }

/* Prices and Buy buttons: a ruled box, the price in the button (site.css .btn). */
.buy-box { margin: 4px 0 24px; padding: 0; }
.price s { margin-right: 4px; font-weight: 400; color: var(--muted); }
.sale-note { margin: 0 0 8px; font: 700 15px/1.4 var(--sans); color: var(--red); }
.buy:disabled { cursor: wait; }
.buy-status { margin: 8px 0 0; font-size: 15px; color: var(--red); min-height: 1.4em; }
.buy-status:empty { min-height: 0; margin: 0; }
.picker-title { margin: 32px 0 6px; }
.letter .fs-picker { margin-bottom: 8px; }

/* The six Levels on the Bundle page as practice boxes (links, so none is chosen). */
.level-links { display: grid; grid-template-columns: repeat(3, 1fr); margin: 10px 0 24px; border: 1.5px solid var(--ink); }
.level-links a {
    display: grid; place-items: center; min-height: 56px;
    border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
    font: 600 22px/1 var(--serif); color: var(--ink); text-decoration: none;
    background-image:
        linear-gradient(90deg, transparent calc(50% - .5px), var(--soft) calc(50% - .5px), var(--soft) calc(50% + .5px), transparent calc(50% + .5px)),
        linear-gradient(transparent calc(50% - .5px), var(--soft) calc(50% - .5px), var(--soft) calc(50% + .5px), transparent calc(50% + .5px));
}
.level-links a:nth-child(3n) { border-right: 0; }
.level-links a:nth-child(n+4) { border-bottom: 0; }
.level-links a:hover { background-color: var(--soft); }

/* The Bundle offer (#bo) opens the Bundle page, above the form. */
.article-content > .column > #bo { margin: 24px 0 0; }

@media (min-width: 600px) {
    .page-hero.column { padding-top: 40px; padding-bottom: 28px; }
}
