/* Flashcard Factory — the public landing page.
   Loaded only by index.html, and every rule is scoped under `.lp` so the page
   can have its own palette and type without reaching into the app's.

   The vocabulary is a student's desk: squared paper under the hero, index
   cards with a blue header line and blue rules (the same cards the 404 page
   deals, drawn from the same --card-* tokens in app.css), a ballpoint-blue pen
   for actions and answers, and a highlighter for cloze deletions. The workspace
   mock reuses the product's own classes (.card-row, .slide-row, .chip) rather
   than restating them, so it cannot drift from the real workspace. */

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../fonts/bricolage-grotesque-latin-standard.477b564b86e0.woff2") format("woff2");
    font-weight: 200 800;
    font-stretch: 75% 100%;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/instrument-sans-latin-wght.fa41c43a3d8e.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

.lp {
    --lp-paper: #f4f6fb;
    --lp-paper-tint: #eaeef8;
    --lp-surface: #ffffff;
    --lp-ink: #161a2c;
    --lp-ink-muted: #4f576c;
    --lp-ink-dim: #687086;
    --lp-line: #dce1ec;
    --lp-line-strong: #c2c9d8;
    /* The pen: what the buttons are, and what answers are written in. */
    --lp-pen: #3346d3;
    --lp-pen-deep: #2737ae;
    --lp-pen-lit: #aab6ff;
    /* The highlighter: a cloze deletion is the part you would have marked. */
    --lp-marker: #ffe45c;
    /* The closing band is the same pen ink, not a black. */
    --lp-night: #161b44;

    --lp-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
    --lp-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --lp-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --lp-gutter: clamp(16px, 5vw, 56px);

    font-family: var(--lp-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--lp-ink);
    background: var(--lp-paper);
    /* The dealt cards lean past the column on a phone; clip, so they cannot
       give the page a sideways scroll. */
    overflow-x: clip;
}

body.lp-body { background: var(--lp-paper); }

/* The nav is anchor links, so the ease belongs to the document scroller — which
   is <html>, and only on this page. Behind the motion query, because anybody
   who asked their system for less movement is not asking for it here. */
@media (prefers-reduced-motion: no-preference) {
    html:has(> body.lp-body) { scroll-behavior: smooth; }
}

.lp ::selection { background: var(--lp-marker); color: var(--lp-ink); }

.lp-wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding-inline: var(--lp-gutter);
}

/* ── Type ──────────────────────────────────────────────────────────────── */
/* Resets in :where() so they carry no specificity: a plain `.lp p {margin: 0}`
   is (0,1,1) and silently beats every single-class margin below it. */
:where(.lp) h1, :where(.lp) h2, :where(.lp) h3, :where(.lp) p, :where(.lp) ul,
:where(.lp) ol, :where(.lp) figure { margin: 0; }
:where(.lp) a { color: inherit; }

.lp h1, .lp h2, .lp h3 {
    font-family: var(--lp-display);
    color: var(--lp-ink);
    text-wrap: balance;
}
.lp h1 {
    font-size: clamp(2.75rem, 6.4vw, 5rem);
    font-weight: 700;
    font-stretch: 82%;
    line-height: 0.98;
    letter-spacing: -0.025em;
    max-width: 9.5em;
}
.lp h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    font-weight: 650;
    font-stretch: 88%;
    line-height: 1.08;
    letter-spacing: -0.02em;
}
.lp h3 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.005em;
}
.lp-lead { font-size: 1.0625rem; color: var(--lp-ink-muted); max-width: 36em; }
.lp code { font-family: var(--lp-mono); font-size: 0.875em; }
.lp-kbd {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.6em; height: 1.6em; padding: 0 0.4em;
    font: 500 0.75rem/1 var(--lp-mono);
    color: var(--lp-ink);
    background: var(--lp-surface);
    border: 1px solid var(--lp-line-strong);
    border-bottom-width: 2px;
    border-radius: 5px;
}

.lp :focus-visible { outline: 2px solid var(--lp-pen); outline-offset: 3px; border-radius: 6px; }
.lp-end :focus-visible { outline-color: var(--lp-pen-lit); }

/* ── Buttons: pills, so they are never mistaken for a card ─────────────── */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 22px;
    font: 600 0.9375rem/1 var(--lp-sans);
    text-decoration: none;
    border: 1.5px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.lp-btn:active { transform: translateY(1px); }
.lp-btn-sm { height: 38px; padding: 0 16px; font-size: 0.875rem; }
.lp-btn-pen { background: var(--lp-pen); color: #fff; }
.lp-btn-pen:hover { background: var(--lp-pen-deep); }
.lp-btn-pen .lp-kbd { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.lp-btn-outline { background: var(--lp-surface); border-color: var(--lp-line-strong); color: var(--lp-ink); }
.lp-btn-outline:hover { border-color: var(--lp-ink); }
.lp-btn-paper { background: #fff; color: var(--lp-night); }
.lp-btn-paper:hover { background: var(--lp-paper-tint); }
.lp-btn-ghost { border-color: rgba(255, 255, 255, 0.32); color: #fff; }
.lp-btn-ghost:hover { border-color: #fff; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
/* Squared paper, the kind lecture notes are written on, fading out before the
   next section so it reads as a page and not a pattern. */
.lp-hero-band {
    position: relative;
    background-image:
        linear-gradient(var(--lp-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--lp-line) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: -1px -1px;
}
.lp-hero-band::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, rgba(244, 246, 251, 0.35), var(--lp-paper) 96%);
}
.lp-hero-band > * { position: relative; z-index: 1; }

.lp-head { display: flex; align-items: center; gap: 16px; padding-block: 20px; }
.lp-brand {
    display: inline-flex; align-items: center; gap: 10px;
    font: 700 1.0625rem/1 var(--lp-display);
    font-stretch: 90%;
    letter-spacing: -0.01em;
    text-decoration: none;
}
.lp-brand .brand-mark { width: 26px; height: 26px; }
.lp-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.lp-nav a {
    padding: 8px 12px; border-radius: 999px;
    font-size: 0.9375rem; font-weight: 500; color: var(--lp-ink-muted); text-decoration: none;
}
.lp-nav a:hover { color: var(--lp-ink); background: rgba(22, 26, 44, 0.05); }
.lp-nav .lp-nav-cta {
    margin-left: 8px; color: var(--lp-ink);
    border: 1.5px solid var(--lp-line-strong); background: var(--lp-surface);
}
.lp-nav .lp-nav-cta:hover { border-color: var(--lp-ink); background: var(--lp-surface); }

.lp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
    padding-block: clamp(32px, 6vw, 80px) clamp(32px, 5vw, 64px);
}
.lp-hero-lead { margin-top: 24px; font-size: 1.1875rem; line-height: 1.55; color: var(--lp-ink-muted); max-width: 30em; }
.lp-hero-lead strong { color: var(--lp-ink); font-weight: 600; }
.lp-hero-foot { margin-top: 16px; font-size: 0.875rem; color: var(--lp-ink-dim); }

/* The slide: a bright rectangle, as projected. */
.lp-stage { position: relative; }
.lp-slide {
    display: flex; flex-direction: column;
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(22, 26, 44, 0.05), 0 30px 60px -30px rgba(22, 26, 44, 0.35);
    overflow: hidden;
}
.lp-slide-head {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 10px 16px;
    font-size: 0.75rem; color: var(--lp-ink-dim);
    border-bottom: 1px solid var(--lp-line);
}
.lp-slide-page { font-variant-numeric: tabular-nums; }
/* The bottom padding is the strip the dealt cards cover, so they lie over
   the slide's margin and never over its text. */
.lp-slide-face { padding: clamp(14px, 3vw, 28px) clamp(16px, 3.4vw, 32px) clamp(64px, 9vw, 96px); }
.lp .lp-slide-face h2 { font-size: clamp(1rem, 2.1vw, 1.5rem); font-weight: 650; }
.lp-slide-face ul { margin-top: clamp(8px, 1.6vw, 16px); padding: 0; list-style: none; }
.lp-slide-face li {
    position: relative; padding-left: 16px; margin-top: 6px;
    font-size: clamp(0.6875rem, 1.25vw, 0.9375rem); line-height: 1.45; color: var(--lp-ink-muted);
}
.lp-slide-face li::before {
    content: ""; position: absolute; left: 2px; top: 0.6em;
    width: 6px; height: 6px; border-radius: 2px; background: var(--lp-pen);
}

/* ── Index cards ───────────────────────────────────────────────────────── */
/* A 5x3 card: a header above a stronger blue line above fainter rules below it, the text set on
   the same pitch as the rules so it sits on them. --ix-line and --ix-head are
   the whole geometry; a bigger card only changes the two numbers. */
.lp-ix, .lp-face {
    --ix-head: 30px;
    --ix-line: 20px;
    background-color: var(--surface, #fff);
    background-image:
        linear-gradient(var(--card-margin), var(--card-margin)),
        repeating-linear-gradient(to bottom, transparent 0 calc(var(--ix-line) - 1px), var(--card-rule) calc(var(--ix-line) - 1px) var(--ix-line));
    background-size: 100% 1.5px, 100% calc(100% - var(--ix-head) - 2px);
    background-position: 0 var(--ix-head), 0 calc(var(--ix-head) + 2px);
    background-repeat: no-repeat;
    border-radius: 4px;
    box-shadow: var(--card-shadow);
}
.lp-ix { display: block; padding: 0 14px 10px; }
.lp-ix-head {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    height: var(--ix-head);
    font-size: 0.6875rem; font-weight: 500; color: var(--lp-ink-dim);
}
.lp-ix-head > :first-child { font-weight: 700; color: var(--lp-pen); }
.lp-ix-text {
    display: block;
    /* Nudged down so the baseline sits on a rule rather than between two. */
    padding-top: calc(var(--ix-line) * 0.2);
    font-size: 0.8125rem; line-height: var(--ix-line);
    color: var(--lp-ink);
}
/* What the student wrote in: the answer side, in pen. */
.lp-ix-pen { color: var(--lp-pen-deep); font-weight: 500; }
.lp-cloze {
    color: inherit;
    padding: 0 0.15em;
    background: linear-gradient(100deg, transparent 2%, var(--lp-marker) 4%, var(--lp-marker) 96%, transparent 98%) 0 55% / 100% 72% no-repeat;
}

/* The hand: three cards slid out from under the slide, the front one turnable. */
.lp-hand {
    position: relative;
    display: flex; justify-content: center; align-items: flex-start;
    margin-top: clamp(-84px, -7vw, -48px);
}
.lp-hand .lp-ix, .lp-hand .lp-flip {
    flex: 0 0 auto;
    width: 40%;
    aspect-ratio: 5 / 3;
    margin-inline: -3%;
    transform: rotate(var(--turn, 0deg)) translateY(var(--drop, 0));
}
.lp-ix-1 { --turn: -7deg; --drop: 18px; z-index: 1; }
.lp-ix-2 { --turn: 3deg; --drop: 4px; z-index: 2; }
.lp-ix-3 { --turn: -2deg; --drop: 30px; z-index: 3; }
/* Not on the turnable one: overflow other than visible flattens its 3D
   context, and the back face then shows the question mirrored. */
.lp-hand .lp-ix:not(.lp-flip) { overflow: hidden; }

.lp-flip {
    position: relative;
    padding: 0; border: 0;
    background: none; box-shadow: none;
    font: inherit; text-align: left; color: inherit;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 520ms cubic-bezier(.2, .8, .25, 1);
}
.lp-hand .lp-flip:hover { --drop: 26px; }
.lp-hand .lp-flip[aria-pressed="true"] { transform: rotate(var(--turn)) translateY(var(--drop)) rotateY(180deg); }
.lp-face {
    position: absolute; inset: 0;
    display: block; padding: 0 14px 10px;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.lp-face-a { transform: rotateY(180deg); }
.lp-face-a .lp-ix-text { font-size: 0.9375rem; }
.lp-stage-hint {
    margin-top: 48px; text-align: center;
    font-size: 0.8125rem; color: var(--lp-ink-dim);
}

/* The one orchestrated moment: the slide lands, then the cards are dealt from
   under it. `translate` rather than `transform`, so the animation leaves each
   card's own lean alone. */
@media (prefers-reduced-motion: no-preference) {
    .lp-slide { animation: lp-land 600ms cubic-bezier(.2, .8, .25, 1) backwards; }
    .lp-hand > * { animation: lp-deal 640ms cubic-bezier(.2, .9, .3, 1.12) backwards; }
    .lp-ix-1 { animation-delay: 420ms; }
    .lp-ix-2 { animation-delay: 520ms; }
    .lp-ix-3 { animation-delay: 620ms; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-flip { transition: none; }
}
@keyframes lp-land { from { opacity: 0; translate: 0 14px; } }
@keyframes lp-deal { from { opacity: 0; translate: 0 -70%; } }

/* ── Sections ──────────────────────────────────────────────────────────── */
.lp-section { padding-block: clamp(64px, 9vw, 120px); scroll-margin-top: 8px; }
.lp-section-tint { background: var(--lp-paper-tint); }
.lp-section-head { max-width: 40em; }
.lp-section-head .lp-lead { margin-top: 16px; }

/* How it works. The numbers sit on one dashed track, the conveyor of the
   factory; each numeral is backed with the page colour so the track stops
   either side of it. */
.lp-steps {
    position: relative;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin-top: 56px; padding: 0; list-style: none;
}
.lp-steps::before {
    content: ""; position: absolute; left: 0; right: 0; top: 30px;
    border-top: 2px dashed var(--lp-line-strong);
}
.lp-steps li { position: relative; }
.lp-step-n {
    display: inline-block;
    padding-right: 14px;
    background: var(--lp-paper);
    font: 600 3.75rem/1 var(--lp-display);
    font-stretch: 75%;
    color: var(--lp-pen);
    font-variant-numeric: tabular-nums;
}
.lp-steps h3 { margin-top: 18px; }
.lp-steps p { margin-top: 8px; font-size: 0.9375rem; color: var(--lp-ink-muted); }

/* The workspace mock: the app at its own scale, framed like a window. */
.lp-ws {
    margin-top: 48px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(22, 26, 44, 0.05), 0 40px 80px -40px rgba(22, 26, 44, 0.35);
    overflow: hidden;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.lp-ws-bar {
    display: flex; align-items: center; gap: 16px;
    padding: 12px 18px;
    font-size: 0.8125rem; color: var(--lp-ink-dim);
    border-bottom: 1px solid var(--lp-line);
}
.lp-ws-title { font-weight: 600; color: var(--lp-ink); }
.lp-ws-right { margin-left: auto; font-variant-numeric: tabular-nums; }
.lp-ws-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.lp-ws-slides {
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px;
    background: var(--surface-sunken, #f6f7f9);
    border-right: 1px solid var(--lp-line);
}
.lp-ws-cards { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.lp-ws .slide-row { width: 100%; cursor: default; }
.lp-ws .slide-row[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.lp-mini-face { padding: 10px 12px 12px; font-size: 0.75rem; line-height: 1.45; color: var(--lp-ink-muted); }
.lp-mini-face strong { display: block; margin-bottom: 3px; font-size: 0.8125rem; color: var(--lp-ink); font-weight: 600; }
.lp-ws .card-row { padding: 10px 12px; cursor: default; }
.lp-ws .card-row[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.lp-card-top { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-card-front { margin-top: 6px; font-size: 0.8125rem; line-height: 1.45; color: var(--lp-ink); }
.lp-card-back {
    margin-top: 6px; padding-top: 6px;
    font-size: 0.75rem; line-height: 1.45; color: var(--lp-ink-muted);
    border-top: 1px solid var(--lp-line);
}
.lp-cloze-raw { font-weight: 600; color: var(--chip-cloze-ink, #59459b); }

.lp-facts {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin-top: 48px; padding: 0; list-style: none;
}
.lp-facts p { margin-top: 8px; font-size: 0.9375rem; color: var(--lp-ink-muted); }
.lp-keys { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── The sweep ─────────────────────────────────────────────────────────── */
.lp-triage {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}
.lp-try { font-weight: 600; color: var(--lp-ink); }
.lp-section-head .lp-try { margin-top: 20px; }

.lp-sweep {
    display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    padding: 18px;
    background: var(--lp-paper-tint);
    border-radius: 18px;
}
.lp-sweep:focus-visible { outline-offset: 4px; border-radius: 18px; }
.lp-sweep-slide {
    align-self: start;
    padding: 14px;
    font-size: 0.8125rem; line-height: 1.5; color: var(--lp-ink-muted);
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: 10px;
}
.lp-sweep-slide strong { display: block; margin: 6px 0 4px; color: var(--lp-ink); font-weight: 600; }
.lp-sweep-page { font-size: 0.6875rem; color: var(--lp-ink-dim); }
.lp-sweep-main { display: flex; flex-direction: column; min-height: 230px; }

.lp-sweep-card { --ix-head: 34px; --ix-line: 26px; padding-inline: 18px; min-height: 172px; }
.lp-sweep-card .lp-ix-text { font-size: 0.9375rem; }
.lp-sweep-card .lp-ix-text + .lp-ix-text { margin-top: var(--ix-line); }
/* Which card shows is a match on the stack's data-current; see the template. */
.lp-sweep-stack > .lp-sweep-card { display: none; }
.lp-sweep-stack[data-current="0"] > [data-idx="0"],
.lp-sweep-stack[data-current="1"] > [data-idx="1"],
.lp-sweep-stack[data-current="2"] > [data-idx="2"] { display: block; }
.lp-sweep-card { transition: transform 240ms ease, opacity 240ms ease; }
.lp-sweep-stack[data-leaving="keep"] > .lp-sweep-card { transform: translateX(56px) rotate(4deg); opacity: 0; }
.lp-sweep-stack[data-leaving="bin"] > .lp-sweep-card { transform: translateX(-56px) rotate(-4deg); opacity: 0; }
@media (prefers-reduced-motion: reduce) {
    .lp-sweep-card { transition: none; }
}
.lp-sweep-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 16px; }
.lp-sweep-actions .lp-btn { flex: 1 1 0; }
.lp-sweep-done { padding: 20px 4px; }
.lp-sweep-done p { margin-top: 6px; font-size: 0.9375rem; color: var(--lp-ink-muted); }
.lp-sweep-done .lp-btn { margin-top: 16px; }

/* ── Models and Anki ───────────────────────────────────────────────────── */
.lp-two {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(40px, 7vw, 96px);
}
.lp-two .lp-lead { margin-top: 16px; }
.lp-cost {
    display: flex; flex-direction: column; gap: 4px;
    margin-top: 28px; padding-left: 18px;
    border-left: 3px solid var(--lp-pen);
    font-size: 0.875rem; color: var(--lp-ink-muted);
}
.lp-cost-big {
    font: 650 2.5rem/1.05 var(--lp-display);
    font-stretch: 80%;
    color: var(--lp-ink);
    font-variant-numeric: tabular-nums;
}
.lp-checks { margin-top: 20px; padding: 0; list-style: none; }
.lp-checks li {
    position: relative;
    padding: 12px 0 12px 32px;
    color: var(--lp-ink-muted);
    border-top: 1px solid var(--lp-line-strong);
}
.lp-checks li:first-child { border-top: 0; }
/* A tick in pen, drawn rather than typed: ✓ is an emoji on some systems. */
.lp-checks li::before {
    content: ""; position: absolute; left: 4px; top: 1.05em;
    width: 7px; height: 13px;
    border: solid var(--lp-pen); border-width: 0 2.5px 2.5px 0;
    transform: rotate(40deg);
}
.lp-checks strong { color: var(--lp-ink); font-weight: 600; }

/* ── The end ───────────────────────────────────────────────────────────── */
.lp-end { background: var(--lp-night); color: #c9cff0; }
.lp-start { padding-block: clamp(72px, 10vw, 128px); max-width: 36em; }
.lp .lp-start h2 { color: #fff; font-size: clamp(2.25rem, 5vw, 3.75rem); font-stretch: 82%; }
.lp-start .lp-hero-lead { color: #c9cff0; }

.lp-foot {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 8px 20px;
    padding-block: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8125rem; color: #8f97c4;
}
.lp-foot a { color: #c9cff0; text-decoration: none; }
.lp-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lp-foot .lp-foot-end { margin-left: auto; }

/* ── Narrow ────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .lp-hero, .lp-triage, .lp-two { grid-template-columns: minmax(0, 1fr); }
    .lp-stage { max-width: 600px; }
    .lp-steps, .lp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
    .lp-steps::before { display: none; }
}
@media (max-width: 640px) {
    .lp-nav a:not(.lp-nav-cta) { display: none; }
    .lp-steps, .lp-facts { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
    /* One column of steps: the numeral moves beside its heading, or four
       60px numerals stack the section a screen taller than its content. */
    .lp-steps { margin-top: 40px; row-gap: 28px; }
    .lp-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; }
    .lp-step-n { grid-row: span 2; padding-right: 0; font-size: 2.75rem; }
    .lp-steps h3 { margin-top: 4px; }
    .lp-ws-body { grid-template-columns: minmax(0, 1fr); }
    .lp-ws-slides { border-right: 0; border-bottom: 1px solid var(--lp-line); }
    .lp-ws-slides .slide-row + .slide-row { display: none; }
    .lp-sweep { grid-template-columns: minmax(0, 1fr); padding: 12px; }
    .lp-actions .lp-btn { flex: 1 1 auto; }
    .lp-foot .lp-foot-end { margin-left: 0; }
}
/* On a phone three cards do not fit side by side and stay legible: the back
   one goes, and the other two grow taller to keep their text on the card. */
@media (max-width: 560px) {
    .lp-ix-1 { display: none; }
    .lp-hand .lp-ix, .lp-hand .lp-flip { width: 54%; aspect-ratio: 4 / 3; }
    .lp-hand .lp-ix:not(.lp-flip), .lp-hand .lp-face { --ix-head: 26px; --ix-line: 18px; padding-inline: 10px; }
    .lp-hand .lp-ix-text { font-size: 0.75rem; }
    .lp-face-a .lp-ix-text { font-size: 0.8125rem; }
}

.lp [x-cloak] { display: none !important; }
