/* ==========================================================================
   The lucky deal: the golden ticket (section.lk2Section)

   One ticket wherever it is printed: under the course guide of every landing
   and of every course page, and on the home of an account
   (front/partials/lucky-deal-section-v2, the four catalogue platforms). This
   sheet draws it in the three places, by day and, in an account, by night; a
   page changes nothing of it but the tokens named under "Where it stands".

   How it is made:
   - two faces, through tokens: the display face for the titles, the prices,
     the button and the pill of the saving, the body face for what is read
     and for the figures of the clock (they are tabular). The older sheets of
     both sides retype the face of what they reach (a system face for every
     class that ends in MainTitle, the body face for every element of the
     home of an account, the gold of the title included), so the two families
     are pinned here, and so are the few lines an older sheet pins;
   - one unit (--lk-u): a pixel of the design, multiplied by the scale of the
     page, so on a wide screen of a landing the whole ticket grows as one
     drawing and nothing in it falls out of proportion;
   - the section measures itself (lk2): beside the menu of an account it is
     far narrower than the screen, so the sizes that follow the room
     (--lk-title-size and its kin) answer the room the section really has,
     never the window. A browser that cannot measure a container keeps the
     fixed sizes written first and lays the ticket out by the window;
   - nothing is read under 14px but the labels set in capitals (800, from
     12px), and what is pressed is 56px tall;
   - every pill keeps one row; the words of a longer language that need two
     take them, even, in a rounded plate, and nothing is ever cut;
   - what is read reaches 4.5 to 1 against what it stands on (3 to 1 for the
     large figures), on the paper, on the gold and by night;
   - the clock is the script's (js/blocks/lucky-deal-section-v2-1.js). What
     moves is moved by the compositor alone (opacity and transform), rests
     away from the screen and stands still for a reader who asked for less
     motion;
   - the section says data-dm-skip: the dark pass of an account leaves it
     alone, and its night closes this sheet.
   ========================================================================== */

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

.lk2Section,
.lk2Section * {
    font-family: var(--lk-font-body) !important;
}

/* a landing gives every section its own padding and clip (.lp section): the element is named so this rule,
   read after it, is the one that stands */
section.lk2Section {
    --lk-scale: var(--lp-scale, 1);
    --lk-u: calc(1px * var(--lk-scale));
    --lk-font-display: var(--sc-font-display, 'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    --lk-font-body: var(--sc-font-body, 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    --lk-ink: #14273f;
    --lk-ink-2: #33455e;
    --lk-ink-3: #4b5b74;
    /* the paper of the ticket and what stands on it */
    --lk-paper: linear-gradient(170deg, #fffdf7 0%, #fdf8ec 100%);
    --lk-paper-line: rgba(217, 119, 6, 0.24);
    --lk-paper-ring: rgba(251, 191, 36, 0.12);
    --lk-paper-shadow: 0 30px 70px -20px rgba(120, 82, 8, 0.3), 0 4px 16px rgba(120, 82, 8, 0.08);
    --lk-plate: rgba(255, 255, 255, 0.8);
    --lk-plate-line: rgba(217, 119, 6, 0.24);
    --lk-plate-shadow: 0 10px 26px -12px rgba(120, 82, 8, 0.24);
    --lk-rule: rgba(120, 82, 8, 0.2);
    --lk-perf-ink: rgba(120, 82, 8, 0.36);
    /* what shows through the two notches of the perforation: the band the ticket lies on */
    --lk-hole: #f8f4e9;
    --lk-band:
        radial-gradient(900px 420px at 8% 4%, rgba(251, 191, 36, 0.12), transparent 60%),
        radial-gradient(820px 400px at 94% 96%, rgba(52, 211, 153, 0.09), transparent 60%),
        linear-gradient(180deg, #faf7ef 0%, #f6f1e4 100%);
    /* gold: the pill over the title, the price in the title, the stub */
    --lk-gold: linear-gradient(135deg, #fde047 0%, #fbbf24 45%, #f59e0b 100%);
    --lk-gold-ink: #451a03;
    /* the gold that is read is deeper than the gold that is drawn: 3 to 1 against the band at its lightest point */
    --lk-gold-text: linear-gradient(120deg, #c2650a 0%, #cb6e06 45%, #a84f08 100%);
    --lk-gold-line: linear-gradient(90deg, rgba(245, 158, 11, 0) 0%, #f59e0b 22%, #fbbf24 78%, rgba(251, 191, 36, 0) 100%);
    --lk-stub:
        radial-gradient(130% 55% at 50% 0%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 14px, transparent 14px 28px),
        linear-gradient(160deg, #fbb21e 0%, #f39a0b 50%, #dd7b0a 100%);
    --lk-stub-ink: #451a03;
    --lk-stub-was: #6b2e06;
    --lk-stub-pill: rgba(69, 26, 3, 0.88);
    --lk-stub-pill-ink: #fde9a8;
    /* the three accents: what ends tonight, what is included, what is saved */
    --lk-red: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    --lk-calm: rgba(251, 191, 36, 0.16);
    --lk-calm-line: rgba(217, 119, 6, 0.38);
    --lk-calm-ink: #8a3c0b;
    --lk-green: #047857;
    --lk-green-wash: rgba(16, 185, 129, 0.14);
    --lk-navy: #14335e;
    --lk-mark: rgba(251, 191, 36, 0.45);
    /* the button: the primary of the platform, as every button that buys is painted. Under the pointer the same
       blues change places, so its label never stands on a lighter blue than it can be read on */
    --lk-cta: linear-gradient(135deg, #1e3a5f 0%, #2563eb 55%, #1d4ed8 100%);
    --lk-cta-over: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #1e40af 100%);
    --lk-cta-shadow: 0 14px 30px -12px rgba(37, 99, 235, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    --lk-cta-shadow-over: 0 20px 40px -14px rgba(37, 99, 235, 0.85), 0 0 0 3px rgba(251, 191, 36, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    /* the measures: the rhythm and the inset of the page the ticket stands on */
    --lk-pad-y: var(--lp-sec-pad, clamp(48px, 7vw, 88px));
    --lk-pad-x: var(--lp-pad-x, 20px);
    --lk-measure: calc(1040 * var(--lk-u));
    /* what is read on the paper keeps one measure: the sentence, the plate and the fine print end on one line */
    --lk-text: calc(560 * var(--lk-u));
    --lk-radius: calc(26 * var(--lk-u));
    /* the sizes that follow the room of the section: fixed here, measured under @supports */
    --lk-title-size: 2.1rem;
    --lk-h3-size: 1.75rem;
    --lk-copy-size: 1.0625rem;
    --lk-price-size: 3.4rem;
    --lk-head-gap: 34px;
    --lk-main-pad: 36px;
    --lk-stub-pad: 32px 26px;
    --lk-stub-w: 330px;
    --lk-perf: 44px;
    --lk-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    /* the ticket lays itself out against the width it really has, not the window: beside the menu of an account
       the section is far narrower than the screen */
    container-type: inline-size;
    container-name: lk2;
    width: auto;
    max-width: none;
    margin: 0;
    padding: var(--lk-pad-y) var(--lk-pad-x);
    background: var(--lk-band);
    color: var(--lk-ink-2);
    line-height: 1.5;
}

/* the room of the section, in hundredths of its width (cqi): the title takes 8.2 on a phone, then grows slower,
   up to 51 units on a desk; the stub takes a third, between 252px and 330 units */
@supports (container-type: inline-size) {
    section.lk2Section {
        --lk-title-size: clamp(24px, min(8.2cqi, 2.1cqi + 25px), calc(51 * var(--lk-u)));
        --lk-h3-size: clamp(23px, 2.2cqi + 15px, calc(31 * var(--lk-u)));
        --lk-copy-size: clamp(16.5px, 0.4cqi + 14px, calc(18 * var(--lk-u)));
        --lk-price-size: clamp(48px, 3.6cqi + 30px, calc(67 * var(--lk-u)));
        --lk-head-gap: clamp(26px, 4.2cqi, calc(46 * var(--lk-u)));
        --lk-main-pad: clamp(22px, 4.2cqi, calc(44 * var(--lk-u)));
        --lk-stub-pad: clamp(24px, 4cqi, calc(40 * var(--lk-u))) clamp(18px, 3cqi, calc(32 * var(--lk-u)));
        --lk-stub-w: clamp(252px, 33cqi, calc(330 * var(--lk-u)));
        --lk-perf: clamp(32px, 4.4cqi, calc(44 * var(--lk-u)));
    }
}

/* ---- the sparks of the band: six points of gold that breathe ---- */
.lk2Sparks i {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f59e0b;
    opacity: 0.25;
    animation: lk2Twinkle 5s ease-in-out infinite;
    pointer-events: none;
}

.lk2Sparks i:nth-child(1) { top: 12%; left: 10%; animation-delay: 0s; }
.lk2Sparks i:nth-child(2) { top: 22%; left: 82%; animation-delay: 0.9s; }
.lk2Sparks i:nth-child(3) { top: 70%; left: 6%; animation-delay: 1.8s; }
.lk2Sparks i:nth-child(4) { top: 84%; left: 62%; animation-delay: 2.7s; }
.lk2Sparks i:nth-child(5) { top: 48%; left: 94%; animation-delay: 3.6s; }
.lk2Sparks i:nth-child(6) { top: 8%; left: 46%; animation-delay: 4.5s; }

@keyframes lk2Twinkle {
    0%, 100% { opacity: 0.12; transform: scale(0.8); }
    50% { opacity: 0.6; transform: scale(1.35); }
}

/* ---- the head over the ticket ---- */
.lk2Head {
    position: relative;
    max-width: calc(820 * var(--lk-u));
    margin: 0 auto var(--lk-head-gap);
    text-align: center;
}

/* the pill of the day: 38 units tall, so 19 is a pill on one row and a rounded plate on two */
.lk2Section .lk2Head > .lk2Eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(8 * var(--lk-u));
    max-width: 100%;
    margin: 0 0 calc(16 * var(--lk-u));
    padding: calc(9 * var(--lk-u)) calc(18 * var(--lk-u));
    overflow: hidden;
    border-radius: calc(19 * var(--lk-u));
    background: var(--lk-gold);
    box-shadow:
        0 10px 24px -8px rgba(245, 158, 11, 0.55),
        0 0 0 5px rgba(251, 191, 36, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: var(--lk-gold-ink);
    font-size: calc(13 * var(--lk-u));
    font-weight: 800;
    line-height: calc(20 * var(--lk-u));
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-wrap: balance;
}

.lk2Eyebrow svg {
    flex: none;
    width: calc(16 * var(--lk-u));
    height: calc(16 * var(--lk-u));
}

/* a light that crosses the pill: a band the compositor slides */
.lk2Eyebrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
    transform: skewX(-18deg);
    animation: lk2Sheen 4.4s ease-in-out infinite;
    pointer-events: none;
}

/* the title: two even lines on a phone and on a desk, one where the room holds it */
.lk2Section .lk2Title,
.lk2Section .lk2Title * {
    font-family: var(--lk-font-display) !important;
}

.lk2Section .lk2Title {
    margin: 0;
    color: var(--lk-ink);
    font-size: var(--lk-title-size);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

/* the price in the title: gold, kept whole on its line, a stroke of gold drawn under it. It stays a run of
   the line (never a box of its own), so every browser weighs it when it evens the two lines of the title */
.lk2TitleGold {
    position: relative;
    white-space: nowrap;
    background: var(--lk-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.lk2TitleGold::after {
    content: '';
    position: absolute;
    right: 1%;
    bottom: -0.16em;
    left: 1%;
    height: 0.14em;
    border-radius: 999px;
    background: var(--lk-gold-line);
    opacity: 0.9;
    transform: rotate(-1.2deg);
}

/* ---- the ticket: the paper, the perforation, the stub ---- */
.lk2Ticket {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--lk-perf) var(--lk-stub-w);
    max-width: var(--lk-measure);
    margin: 0 auto;
    border: 1px solid var(--lk-paper-line);
    border-radius: var(--lk-radius);
    background: var(--lk-paper);
    box-shadow: var(--lk-paper-shadow), inset 0 0 0 5px var(--lk-paper-ring);
    text-align: left;
}

/* ---- the paper ---- */
.lk2Main {
    min-width: 0;
    padding: var(--lk-main-pad);
}

.lk2ChipRow {
    display: flex;
    flex-wrap: wrap;
    gap: calc(8 * var(--lk-u));
    margin: 0 0 calc(16 * var(--lk-u));
}

/* the two chips: as they are typed, 14 units, 32 tall, so 16 is a pill on one row and a rounded plate on two */
.lk2Section .lk2ChipRow > .lk2ChipUrgent,
.lk2Section .lk2ChipRow > .lk2ChipCalm {
    display: inline-flex;
    align-items: center;
    gap: calc(7 * var(--lk-u));
    max-width: 100%;
    min-height: calc(32 * var(--lk-u));
    padding: calc(6 * var(--lk-u)) calc(12 * var(--lk-u));
    border: 0;
    border-radius: calc(16 * var(--lk-u));
    font-size: calc(14 * var(--lk-u));
    font-weight: 700;
    line-height: calc(20 * var(--lk-u));
    letter-spacing: 0;
    text-transform: none;
    text-wrap: balance;
}

.lk2Section .lk2ChipRow > .lk2ChipUrgent {
    background: var(--lk-red);
    box-shadow: 0 8px 18px -8px rgba(220, 38, 38, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.lk2Section .lk2ChipRow > .lk2ChipCalm {
    /* its line is drawn inside the 32 units of its neighbour */
    padding: calc(6 * var(--lk-u) - 1px) calc(12 * var(--lk-u) - 1px);
    border: 1px solid var(--lk-calm-line);
    background: var(--lk-calm);
    color: var(--lk-calm-ink);
}

.lk2ChipDot {
    flex: none;
    width: calc(7 * var(--lk-u));
    height: calc(7 * var(--lk-u));
    border-radius: 50%;
    background: #ffffff;
    animation: lk2Pulse 1.6s ease-in-out infinite;
}

@keyframes lk2Pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.lk2Section .lk2MainTitle {
    margin: 0 0 calc(10 * var(--lk-u));
    color: var(--lk-ink);
    font-family: var(--lk-font-display) !important;
    font-size: var(--lk-h3-size);
    font-style: normal;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

/* how it works, in one sentence */
.lk2Section .lk2Copy {
    max-width: var(--lk-text);
    margin: 0 0 calc(20 * var(--lk-u));
    color: var(--lk-ink-2);
    font-size: var(--lk-copy-size);
    font-weight: 500;
    line-height: 1.62;
    text-wrap: pretty;
}

/* both sides reset the colour of a bold word, the landing with a flag of its own */
.lk2Section .lk2Copy b {
    color: var(--lk-ink) !important;
    font-weight: 800;
}

/* the stroke of a highlighter over the two prices, whole on every line it runs over */
.lk2Section .lk2Mark {
    padding: 0 2px;
    border-radius: 3px;
    background: linear-gradient(180deg, transparent 58%, var(--lk-mark) 58%);
    color: inherit;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* what the price holds: three lines on a plate, each ticked, each said to be included */
.lk2Stack {
    max-width: var(--lk-text);
    margin: 0 0 calc(22 * var(--lk-u));
    padding: calc(4 * var(--lk-u)) calc(16 * var(--lk-u));
    border: 1px solid var(--lk-plate-line);
    border-radius: calc(16 * var(--lk-u));
    background: var(--lk-plate);
    box-shadow: var(--lk-plate-shadow);
}

.lk2StackRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(12 * var(--lk-u));
    min-height: calc(44 * var(--lk-u));
    padding: calc(9 * var(--lk-u)) 0;
}

.lk2StackRow + .lk2StackRow {
    border-top: 1px dashed var(--lk-rule);
}

.lk2StackLabel {
    display: flex;
    align-items: center;
    gap: calc(10 * var(--lk-u));
    min-width: 0;
    color: var(--lk-ink);
    font-size: calc(15 * var(--lk-u));
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    text-wrap: balance;
}

.lk2Section .lk2StackLabel svg {
    flex: none;
    width: calc(20 * var(--lk-u));
    height: calc(20 * var(--lk-u));
    max-width: none;
    padding: calc(4 * var(--lk-u));
    border-radius: 50%;
    background: var(--lk-green-wash);
    color: var(--lk-green);
}

.lk2StackVal {
    flex: none;
    color: var(--lk-green);
    font-size: calc(14 * var(--lk-u));
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

/* ---- the button ---- */
.lk2Section .lk2Cta,
.lk2Section .lk2Cta:hover,
.lk2Section .lk2Cta:focus {
    color: #ffffff;
    text-decoration: none;
}

.lk2Section .lk2Cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(12 * var(--lk-u));
    max-width: 100%;
    min-height: calc(56 * var(--lk-u));
    padding: calc(14 * var(--lk-u)) calc(32 * var(--lk-u));
    overflow: hidden;
    border-radius: calc(28 * var(--lk-u));
    background: var(--lk-cta);
    box-shadow: var(--lk-cta-shadow);
    font-family: var(--lk-font-display) !important;
    font-size: calc(17 * var(--lk-u));
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.005em;
    text-align: center;
    text-wrap: balance;
    transition: transform 0.25s var(--lk-ease), box-shadow 0.25s var(--lk-ease);
}

.lk2Section .lk2Cta svg {
    flex: none;
    width: calc(20 * var(--lk-u));
    height: calc(20 * var(--lk-u));
    max-width: none;
    transition: transform 0.25s var(--lk-ease);
}

.lk2Cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.32) 50%, transparent 100%);
    transform: skewX(-18deg);
    animation: lk2Sheen 5s ease-in-out infinite;
    pointer-events: none;
}

/* The sheen slides by a transform, which the compositor moves alone: as a
   `left` that changed it had the browser lay the pill out again on every
   frame for as long as the deal was on screen. 381.82% of the band's own
   width is the journey it always made, from -80% to 130% of the pill, and
   the lean of the band travels with it (28 November 2026). */
@keyframes lk2Sheen {
    0%, 60%   { transform: translateX(0) skewX(-18deg); }
    90%, 100% { transform: translateX(381.82%) skewX(-18deg); }
}

@media (hover: hover) {
    .lk2Section .lk2Cta:hover {
        background: var(--lk-cta-over);
        box-shadow: var(--lk-cta-shadow-over);
        transform: translateY(-2px);
    }

    .lk2Section .lk2Cta:hover svg {
        transform: translateX(4px);
    }
}

.lk2Section .lk2Cta:active {
    transform: translateY(0) scale(0.985);
}

/* the home of an account takes the outline off every link with a flag: the ring of the button answers it */
.lk2Section .lk2Cta:focus-visible {
    outline: 3px solid #f59e0b !important;
    outline-offset: 3px;
}

/* the fine print under the button: the courses the price never covers */
.lk2Section .lk2Fine {
    max-width: var(--lk-text);
    margin: calc(14 * var(--lk-u)) 0 0;
    color: var(--lk-ink-3);
    font-size: calc(14 * var(--lk-u));
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    text-wrap: pretty;
}

/* ---- the perforation: a dashed line and the two notches a ticket is torn at ---- */
.lk2Perf {
    position: relative;
    background: repeating-linear-gradient(180deg, var(--lk-perf-ink) 0 10px, transparent 10px 20px) center / 2px 100% no-repeat;
}

.lk2Perf::before,
.lk2Perf::after {
    content: '';
    position: absolute;
    left: 50%;
    width: calc(34 * var(--lk-u));
    height: calc(17 * var(--lk-u));
    border: 1px solid var(--lk-paper-line);
    background: var(--lk-hole);
    transform: translateX(-50%);
}

.lk2Perf::before {
    top: -1px;
    border-top: 0;
    border-radius: 0 0 calc(34 * var(--lk-u)) calc(34 * var(--lk-u));
}

.lk2Perf::after {
    bottom: -1px;
    border-bottom: 0;
    border-radius: calc(34 * var(--lk-u)) calc(34 * var(--lk-u)) 0 0;
}

/* ---- the stub: every figure of the deal, on gold ---- */
.lk2Stub {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* the stub is shorter than the paper: what it holds stands in its middle, the gold over it and under it
       the same */
    justify-content: center;
    gap: calc(12 * var(--lk-u));
    min-width: 0;
    padding: var(--lk-stub-pad);
    border-radius: 0 calc(var(--lk-radius) - 1px) calc(var(--lk-radius) - 1px) 0;
    background: var(--lk-stub);
    color: var(--lk-stub-ink);
    text-align: center;
}

/* the labels of the stub: capitals of 13 units at 800, the size of the pill of the day */
.lk2StubKicker,
.lk2StubLabel,
.lk2TimerLabel,
.lk2StubValid {
    font-size: calc(13 * var(--lk-u));
    font-weight: 800;
    line-height: calc(18 * var(--lk-u));
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-wrap: balance;
}

.lk2StubKicker {
    max-width: 100%;
    padding: calc(6 * var(--lk-u)) calc(14 * var(--lk-u));
    border-radius: calc(15 * var(--lk-u));
    background: var(--lk-stub-pill);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: var(--lk-stub-pill-ink);
}

.lk2StubLabel,
.lk2TimerLabel,
.lk2StubValid {
    display: block;
    color: var(--lk-stub-ink);
}

.lk2StubWorth,
.lk2StubPay {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.lk2Section .lk2StubOld,
.lk2Section .lk2StubPrice,
.lk2Section .lk2StubPillSave {
    font-family: var(--lk-font-display) !important;
}

/* the price the five cost apart: struck by a stroke drawn across it */
.lk2StubOld {
    position: relative;
    display: inline-block;
    margin-top: calc(2 * var(--lk-u));
    color: var(--lk-stub-was);
    font-size: calc(24 * var(--lk-u));
    font-weight: 800;
    line-height: 1.25;
}

.lk2StubOld::after {
    content: '';
    position: absolute;
    top: 52%;
    left: -6%;
    width: 112%;
    height: 3px;
    border-radius: 2px;
    background: #b91c1c;
    transform: rotate(-6deg);
}

.lk2StubPrice {
    display: block;
    margin-top: calc(2 * var(--lk-u));
    color: var(--lk-stub-ink);
    font-size: var(--lk-price-size);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.28);
}

.lk2StubPillSave {
    max-width: 100%;
    padding: calc(8 * var(--lk-u)) calc(16 * var(--lk-u));
    border-radius: calc(18 * var(--lk-u));
    background: var(--lk-navy);
    box-shadow: 0 8px 18px -8px rgba(20, 51, 94, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: calc(15 * var(--lk-u));
    font-weight: 700;
    line-height: calc(20 * var(--lk-u));
    text-wrap: balance;
}

/* the clock: one capsule of the paper of the ticket, the three units parted by hairlines */
.lk2Timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(7 * var(--lk-u));
    margin-top: calc(2 * var(--lk-u));
}

.lk2TimerBoxes {
    display: inline-flex;
    align-items: stretch;
    padding: calc(9 * var(--lk-u)) calc(6 * var(--lk-u));
    border-radius: calc(16 * var(--lk-u));
    background: rgba(255, 253, 247, 0.96);
    box-shadow:
        0 12px 24px -10px rgba(69, 26, 3, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(69, 26, 3, 0.08);
}

.lk2TimerCell {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: calc(4 * var(--lk-u));
    min-width: calc(56 * var(--lk-u));
    padding: 0 calc(10 * var(--lk-u));
}

.lk2TimerDigit {
    display: block;
    color: #451a03;
    font-size: calc(22 * var(--lk-u));
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.lk2TimerDigit.lk2Tick {
    animation: lk2Tick 0.3s ease-out;
}

@keyframes lk2Tick {
    from { transform: translateY(-3px); opacity: 0.35; }
    to { transform: translateY(0); opacity: 1; }
}

/* a landing sets every small at 14px: the three units are labels of capitals */
.lk2Section .lk2TimerCell small {
    color: #8a4a12;
    font-size: calc(12.5 * var(--lk-u));
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* the hairlines between the units, in the place of the colons the page prints */
.lk2TimerBoxes i {
    align-self: center;
    width: 1px;
    height: calc(26 * var(--lk-u));
    overflow: hidden;
    background: rgba(69, 26, 3, 0.16);
    font-size: 0;
    line-height: 0;
    color: transparent;
}

.lk2Barcode {
    width: calc(148 * var(--lk-u));
    max-width: 100%;
    height: calc(30 * var(--lk-u));
    margin-top: calc(2 * var(--lk-u));
    border-radius: 4px;
    background:
        repeating-linear-gradient(90deg,
            #451a03 0 3px, transparent 3px 6px,
            #451a03 6px 7px, transparent 7px 12px,
            #451a03 12px 16px, transparent 16px 19px,
            #451a03 19px 21px, transparent 21px 26px);
    opacity: 0.85;
}

/* ---- the note for a team, under the ticket ---- */
.lk2Section .lk2Team {
    display: flex;
    align-items: center;
    gap: calc(12 * var(--lk-u));
    width: fit-content;
    max-width: min(100%, var(--lk-measure));
    margin: calc(22 * var(--lk-u)) auto 0;
    padding: calc(11 * var(--lk-u)) calc(20 * var(--lk-u)) calc(11 * var(--lk-u)) calc(13 * var(--lk-u));
    border: 1px solid var(--lk-plate-line);
    border-radius: calc(18 * var(--lk-u));
    background: var(--lk-plate);
    box-shadow: var(--lk-plate-shadow);
    color: var(--lk-ink-2);
    font-size: calc(16 * var(--lk-u));
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    text-wrap: pretty;
}

.lk2Section .lk2Team b {
    color: var(--lk-ink) !important;
    font-weight: 800;
}

.lk2TeamIcon {
    flex: none;
}

/* ---- the room the section has (the scale of the page is 1 in every one of these rooms) ---- */

/* a narrow ticket of two sides (a tablet held upright, an account beside its menu): the three lines of the
   plate say what is included by their tick alone, so each keeps its words on one row longer, and the button
   keeps its label on one */
@container lk2 (max-width: 899px) {
    .lk2StackVal {
        display: none;
    }

    .lk2Section .lk2Cta {
        padding-right: 26px;
        padding-left: 26px;
    }
}

/* under this width the two sides no longer stand side by side: the stub goes under the paper and the
   perforation lies down. The ticket and the note under it keep one width */
@container lk2 (max-width: 699px) {
    .lk2Ticket {
        grid-template-columns: minmax(0, 1fr);
        max-width: 560px;
    }

    .lk2Main {
        text-align: center;
    }

    .lk2ChipRow {
        justify-content: center;
    }

    .lk2Section .lk2Copy,
    .lk2Stack,
    .lk2Section .lk2Fine {
        margin-right: auto;
        margin-left: auto;
    }

    .lk2Perf {
        height: 40px;
        background: repeating-linear-gradient(90deg, var(--lk-perf-ink) 0 10px, transparent 10px 20px) center / 100% 2px no-repeat;
    }

    .lk2Perf::before,
    .lk2Perf::after {
        top: 50%;
        left: auto;
        width: 17px;
        height: 34px;
        transform: translateY(-50%);
    }

    .lk2Perf::before {
        left: -1px;
        border: 1px solid var(--lk-paper-line);
        border-left: 0;
        border-radius: 0 34px 34px 0;
    }

    .lk2Perf::after {
        right: -1px;
        bottom: auto;
        border: 1px solid var(--lk-paper-line);
        border-right: 0;
        border-radius: 34px 0 0 34px;
    }

    .lk2Stub {
        border-radius: 0 0 calc(var(--lk-radius) - 1px) calc(var(--lk-radius) - 1px);
    }

    .lk2Section .lk2Team {
        width: 100%;
        max-width: 560px;
    }
}

/* a phone */
@container lk2 (max-width: 519px) {
    .lk2Main {
        padding: 24px 20px 22px;
    }

    .lk2Stack {
        padding: 2px 14px;
    }

    .lk2StackRow {
        justify-content: flex-start;
    }

    /* the button is as wide as the paper, its label on one row; a language whose label needs two rows takes
       them, even, in a rounded button */
    .lk2Section .lk2Cta {
        display: flex;
        width: 100%;
        gap: 10px;
        padding: 14px 12px;
        font-size: 16px;
    }

    /* the drawing of the team stands in the middle of the height of its words */
    .lk2Section .lk2Team {
        padding: 12px 16px 12px 12px;
        font-size: 15.5px;
    }
}

/* a narrow phone. The longest label a platform prints is 15 of its own letters wide: where it and the arrow no
   longer share the row of the button the arrow goes, and where it no longer has the row to itself its letters
   follow the room (what the button keeps of it: 66px less), never under 14px. One figure for every platform,
   never one fitted to a label */
@container lk2 (max-width: 335px) {
    .lk2Section .lk2Cta {
        font-size: clamp(14px, (100cqi - 66px) / 15, 16px);
    }

    .lk2Section .lk2Cta svg {
        display: none;
    }
}

/* the narrowest phones (an account at 320px): the paper gives 8px of its sides to what it holds */
@container lk2 (max-width: 300px) {
    .lk2Main {
        padding: 22px 16px 20px;
    }

    .lk2Section .lk2Cta {
        font-size: clamp(14px, (100cqi - 58px) / 15, 16px);
    }

    .lk2TimerCell {
        min-width: 50px;
        padding: 0 8px;
    }
}

/* a browser that cannot measure a container answers the window */
@supports not (container-type: inline-size) {
    @media (max-width: 1040px) {
        .lk2StackVal {
            display: none;
        }
    }

    @media (max-width: 840px) {
        section.lk2Section {
            --lk-title-size: 1.75rem;
            --lk-h3-size: 1.5rem;
            --lk-price-size: 3rem;
            --lk-head-gap: 26px;
            --lk-main-pad: 24px 20px 22px;
            --lk-stub-pad: 24px 18px;
        }

        .lk2Ticket {
            grid-template-columns: minmax(0, 1fr);
            max-width: 560px;
        }

        .lk2Main {
            text-align: center;
        }

        .lk2ChipRow {
            justify-content: center;
        }

        .lk2Section .lk2Copy,
        .lk2Stack,
        .lk2Section .lk2Fine {
            margin-right: auto;
            margin-left: auto;
        }

        .lk2StackRow {
            justify-content: flex-start;
        }

        .lk2Perf {
            display: none;
        }

        .lk2Stub {
            border-radius: 0 0 calc(var(--lk-radius) - 1px) calc(var(--lk-radius) - 1px);
        }

        .lk2Section .lk2Cta {
            display: flex;
            width: 100%;
            padding: 14px 12px;
            font-size: 16px;
        }

        .lk2Section .lk2Team {
            width: 100%;
            max-width: 560px;
        }
    }

    @media (max-width: 400px) {
        .lk2Section .lk2Cta svg {
            display: none;
        }
    }

    @media (max-width: 340px) {
        .lk2Section .lk2Cta {
            font-size: 14px;
        }
    }
}

/* ---- where it stands ---- */

/* The home of an account: no band, the ticket lies straight on the canvas of the account, as wide as the
   grid of the courses over it, and the notches show that canvas. The page already frames what it holds, so
   the section keeps no inset of its own, and nothing clips the shadow of the ticket. The divider under it
   gives its own room back, so the room over the ticket and under it is the same. */
.homePageAdminContent section.lk2Section {
    --lk-pad-y: clamp(24px, 3vw, 44px);
    --lk-pad-x: 0px;
    --lk-measure: 980px;
    --lk-band: none;
    --lk-hole: #eff4fb;
    overflow: visible;
}

.homePageAdminContent .lk2Section ~ .productsDividerWrapper {
    padding-top: 0;
}

/* ---- the night of an account ---- */
html.dark section.lk2Section {
    --lk-ink: #f1f5fb;
    --lk-ink-2: #cdd8ea;
    --lk-ink-3: #a3b2c9;
    --lk-paper: linear-gradient(170deg, #18243b 0%, #111a2e 100%);
    --lk-paper-line: rgba(251, 191, 36, 0.3);
    --lk-paper-ring: rgba(251, 191, 36, 0.07);
    --lk-paper-shadow: 0 30px 70px -22px rgba(0, 0, 0, 0.8), 0 4px 16px rgba(0, 0, 0, 0.3);
    --lk-plate: rgba(255, 255, 255, 0.05);
    --lk-plate-line: rgba(251, 191, 36, 0.22);
    --lk-plate-shadow: none;
    --lk-rule: rgba(255, 255, 255, 0.14);
    --lk-perf-ink: rgba(251, 191, 36, 0.42);
    --lk-hole: #0a1120;
    --lk-gold-text: linear-gradient(120deg, #fbbf24 0%, #fcd34d 45%, #f59e0b 100%);
    --lk-calm: rgba(251, 191, 36, 0.12);
    --lk-calm-line: rgba(251, 191, 36, 0.42);
    --lk-calm-ink: #fcd34d;
    --lk-green: #6ee7b7;
    --lk-green-wash: rgba(52, 211, 153, 0.16);
    --lk-mark: rgba(251, 191, 36, 0.3);
    --lk-cta-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* a screen of forced colours draws no gradient: the price in the title is written in the colour of the title */
@media (forced-colors: active) {
    .lk2TitleGold {
        background: none;
        color: inherit;
        -webkit-text-fill-color: currentColor;
    }
}

/* ---- a reader who asked for less motion ---- */
@media (prefers-reduced-motion: reduce) {
    .lk2Sparks i,
    .lk2ChipDot,
    .lk2Cta::after,
    .lk2Eyebrow::after,
    .lk2TimerDigit.lk2Tick {
        animation: none;
    }

    .lk2Section .lk2Cta,
    .lk2Section .lk2Cta svg {
        transition: none;
    }
}
