/* ==========================================================================
   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 .sub { margin: 0; color: var(--text); }

/* The Level pages' first screen (chinese-deck-ads page landing-elaya-20261026): the h1 on the 36px step so the
   button stays on a phone's first screen, the proof line under the subtitle, the reassurance line under the button. */
.page-hero h1 { font-size: 36px; line-height: 40px; text-wrap: balance; }
.page-hero .sub { font-size: 16px; line-height: 24px; text-wrap: pretty; }
.page-hero.column:has(.hero-proof) { padding-bottom: 12px; }
.article-content:has(.fs-reassure) .fs-form { margin-top: 12px; padding-top: 12px; }
/* The Level pages' chips on one row (chinese-deck-ads E8, Clarity 2 Nov 2026: the button started below the first screen in 5 of 7
   phone sessions). They stay above the email: 7 of 15 Level-page sign-ups chose a Level other than the page's. */
.article-content:has(.fs-reassure) .fs-levels { grid-template-columns: repeat(6, 1fr); }
.article-content:has(.fs-reassure) .fs-levels > * { aspect-ratio: auto; border-bottom: 0; border-right: 1.5px solid var(--ink); font-size: 18px; }
.article-content:has(.fs-reassure) .fs-levels > :last-child { border-right: 0; }
.article-content:has(.fs-reassure) .fs-levels > [aria-pressed="true"]::after { top: 3px; right: 4px; font-size: 12px; }
.hero-proof { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); text-wrap: pretty; }
.hero-proof .stars { margin-right: 4px; font-family: var(--glyph); letter-spacing: 2px; color: var(--ink); }
.hero-proof .who { white-space: nowrap; }
.hero-proof .who::before { content: "· "; }
.fs-reassure { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 12px 0 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); }
.fs-reassure span::before { content: "✓\00a0"; color: var(--red); }

/* 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; }
.letter .yt-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.letter .yt-play img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.letter .yt-play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; background: var(--red)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") center / 28px no-repeat;
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1); }
.letter .yt-play:hover::after, .letter .yt-play:focus-visible::after { transform: scale(1.08); }
.letter .yt-play:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* 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; }
}
