/* ══ The Playground home, version 2 of its sections (/): start ══
 * views/partials/home-next2-sections.ejs and home-next2-dock.ejs, after home.css and home-next.css; the footer is the
 * new look's own. Everything here is under .st-home-next2 or the hn2- names, so the first version's sections and
 * today's home are untouched. The hero's tokens (--hn-ink, --hn-y, the fonts) come from .st-home-next on the same body.
 * Section headings stay smaller than the hero's title; the yellow highlighter marks three of them (what runs, the AI,
 * the last call); a section has one sticker at most, never one of the hero's. Each section fits a laptop's screen
 * (900 px at 1,440) and a phone's screen and a half (1,266 px at 390). */

.st-home-next2 {
    --hn2-dots: radial-gradient(circle at 1px 1px, rgba(23, 19, 31, 0.13) 1px, transparent 1.5px) 0 0 / 22px 22px;
    --hn2-shadow: 4px 4px 0 var(--hn-ink);
    /* Flappy Bird's own ground, as the game draws it: its sky, then the grass and the sand from 86.7% down. A frame
       of the game, fitted whole into a wider space, sits on it as one picture. */
    --hn2-flappy-ground: linear-gradient(#4ec0ca, #baecee 86.6%, #3a8024 86.6%, #3a8024 87.1%, #6ec448 87.1%, #6ec448 89%, #ded895 89%);
    --hn2-pink: #ff8fb1;
    --hn2-green: #6ee7a8;
}

/* ── Shared parts ── */

.hn2-band {
    position: relative;
    padding: 96px 0;
    scroll-margin-top: calc(var(--st-nav-h, 64px) + 8px);
}

.hn2-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

.hn2-head {
    max-width: 44rem;
}

.hn2-head--center {
    max-width: 50rem;
    margin: 0 auto;
    text-align: center;
}

.hn2-head--center .hn2-lead {
    margin-left: auto;
    margin-right: auto;
}

.hn2-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 48px;
    max-width: none;
}

.hn2-head--split .hn2-lead {
    max-width: 27rem;
    margin: 0;
}

/* From 901 px the words stay beside the heading, which wraps its own lines instead. */
@media (min-width: 901px) {
    .hn2-head--split {
        flex-wrap: nowrap;
    }

    .hn2-head--split > div {
        min-width: 0;
    }

    .hn2-head--split .hn2-lead {
        flex: 0 1 auto;
    }
}

.hn2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font: 700 13px/1.3 var(--hn-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hn-brand-deep);
}

.hn2-eyebrow svg {
    width: 15px;
    height: 15px;
}

.hn2-h2 {
    margin: 12px 0 0;
    font-family: var(--hn-disp);
    font-size: clamp(30px, 2.8vw, 40px);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.025em;
    color: var(--hn-ink);
    text-wrap: balance;
}

.hn2-lead {
    max-width: 38rem;
    margin: 16px 0 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--hn-muted);
    text-wrap: pretty;
}

.hn2-mark {
    padding: 0 0.08em;
    border-radius: 0.12em;
    background: linear-gradient(var(--hn-y), var(--hn-y)) no-repeat 0 88% / 100% 0.82em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* On a dark band the highlighter covers the whole line, so no letter's top is dark on dark. */
.hn2-mark--full {
    padding: 0.04em 0.12em;
    background-size: 100% 100%;
    color: var(--hn-ink);
}

.hn2-center {
    margin: 44px 0 0;
    text-align: center;
}

.hn2-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hn2-ctas--center {
    justify-content: center;
}

/* Buttons: an ink edge and a hard shadow, the hero's. A template button is also .st-stack-chip (dashboard.js makes
   the project), so every property that class sets is set again here. */
.st-home-next2 .hn2-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-height: 48px;
    padding: 0 20px;
    border: 2px solid var(--hn-ink);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--hn2-shadow);
    color: var(--hn-ink);
    font: 700 15px/1.2 var(--st-font-body, "DM Sans"), system-ui, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.st-home-next2 .hn2-btn:hover {
    color: var(--hn-ink);
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--hn-ink);
}

.st-home-next2 .hn2-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--hn-ink);
}

.st-home-next2 .hn2-btn:focus-visible,
.hn2-more-link a:focus-visible,
.hn2-price-note a:focus-visible,
.hn2-made-row a:focus-visible,
.hn2-game:focus-visible,
.hn2-clips-toggle:focus-visible,
.hn2-offer:focus-visible,
.hn2-tile:focus-visible,
.hn2-fix-tabs button:focus-visible,
.st-home-next2 .hn2-fix-go:focus-visible {
    outline: 3px solid var(--hn-brand);
    outline-offset: 3px;
}

.st-home-next2 .hn2-btn--pri,
.st-home-next2 .hn2-btn--pri:hover {
    background: var(--hn-brand);
    color: #fff;
}

.st-home-next2 .hn2-btn--y,
.st-home-next2 .hn2-btn--y:hover {
    background: var(--hn-y);
    color: var(--hn-ink);
}

.st-home-next2 .hn2-btn--discord,
.st-home-next2 .hn2-btn--discord:hover {
    background: #5865f2;
    color: #fff;
}

.st-home-next2 .hn2-btn--lg {
    min-height: 56px;
    padding: 0 26px;
    font-size: 17px;
}

.st-home-next2 .hn2-btn.is-loading {
    opacity: 0.7;
}

/* On a dark band the hard shadow is lilac, so the buttons keep their edge. */
.hn2-dark .hn2-btn {
    box-shadow: 4px 4px 0 #a78bfa;
}

/* On the dark band the focus ring is the highlighter's yellow, which reads on ink as the brand doesn't. */
.st-home-next2 .hn2-dark .hn2-btn:focus-visible,
.hn2-dark .hn2-fix-tabs button:focus-visible {
    outline-color: var(--hn-y);
}

.st-home-next2 .hn2-dark .hn2-btn:hover {
    box-shadow: 5px 5px 0 #a78bfa;
}

.hn2-sticker {
    position: absolute;
    z-index: 3;
    padding: 7px 12px;
    border: 2px solid var(--hn-ink);
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--hn-ink);
    background: var(--hn-y);
    color: var(--hn-ink);
    font: 800 14px var(--hn-disp);
    white-space: nowrap;
    pointer-events: none;
}

.hn2-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1.5px solid var(--hn-ink);
    border-radius: 999px;
    background: #fff;
    color: var(--hn-ink);
    font: 700 13px var(--st-font-body, "DM Sans"), sans-serif;
    white-space: nowrap;
}

.hn2-chip--sky { background: var(--hn-sky); }
.hn2-chip--rose { background: var(--hn-rose); }
.hn2-chip--y { background: var(--hn-y); }
.hn2-chip--lilac { background: var(--hn-lilac); }
.hn2-chip--ink { background: var(--hn-ink); color: #fff; }
.hn2-chip--sm { max-width: 100%; padding: 3px 8px; font-size: 11.5px; white-space: normal; }

.hn2-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 8px 14px;
    border: 2px solid var(--hn-ink);
    border-radius: 999px;
    background: #fff;
    box-shadow: 3px 3px 0 var(--hn-ink);
    font: 500 13.5px var(--hn-mono);
    color: var(--hn-ink);
}

.hn2-pill i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
}

.hn2-tick {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: #15803d;
}


/* ── Everything Striqr does: one card of icon tiles under the hero, on the hero's dots ── */

.hn2-dock {
    position: relative;
    padding: 30px 0 26px;
}

/* On the hero's ground, with no line under it: the frameworks share it too. */
.st-home-next main section.hn2-dock {
    border-bottom: 0;
}

.hn2-dock-box {
    position: relative;
}

/* The heading is a sticker on the card's top edge. */
.hn2-dock-title {
    position: absolute;
    z-index: 2;
    top: -16px;
    left: -18px;
    margin: 0;
    padding: 6px 14px;
    border: 2px solid var(--hn-ink);
    border-radius: 12px;
    background: var(--hn-y);
    box-shadow: 3px 3px 0 var(--hn-ink);
    color: var(--hn-ink);
    font: 800 16px/1.2 var(--hn-disp);
    transform: rotate(-3deg);
}

/* Ten tiles in a row; fewer (a school pupil's six) keep the same width, centred. */
.hn2-dock-list {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 22px 18px 14px;
    list-style: none;
    border: 2px solid var(--hn-ink);
    border-radius: 22px;
    background: #fff;
    box-shadow: 6px 6px 0 var(--hn-ink);
}

.hn2-dock-list > li {
    display: flex;
    flex: 0 1 calc((100% - 9 * 6px) / 10);
    min-width: 0;
}

.hn2-tile {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 4px 2px 6px;
    border-radius: 14px;
    color: var(--hn-ink);
    text-align: center;
    text-decoration: none;
    transition: transform 0.12s ease, background-color 0.12s ease;
}

.hn2-tile-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    box-sizing: border-box;
    border: 2px solid var(--hn-ink);
    border-radius: 15px;
    background: #fff;
    box-shadow: 3px 3px 0 var(--hn-ink);
    color: var(--hn-ink);
    transition: box-shadow 0.12s ease;
}

.hn2-tile-icon svg {
    width: 26px;
    height: 26px;
}

.hn2-tile-icon--run { background: var(--hn-ink); color: #fff; box-shadow: 3px 3px 0 var(--hn-brand); }
.hn2-tile-icon--share { background: var(--hn-lilac); }
.hn2-tile-icon--live { background: var(--hn-mint); }
.hn2-tile-icon--play { background: var(--hn-sun); }
.hn2-tile-icon--fix { background: var(--hn-y); }
.hn2-tile-icon--ai { background: var(--hn-brand); color: #fff; }
.hn2-tile-icon--find { background: var(--hn-rose); }
.hn2-tile-icon--teach { background: var(--hn-sky); }
.hn2-tile-icon--discord { background: #5865f2; color: #fff; }

.hn2-tile-words {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 100%;
}

.hn2-tile-words b {
    font-size: 14px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.hn2-tile-words small {
    font: 500 11.5px/1.2 var(--hn-mono);
    color: var(--hn-muted);
    overflow-wrap: anywhere;
}

/* Hover: the tile lifts onto lilac, its icon's shadow grows, and the verb is underlined. */
.hn2-tile:hover {
    background: var(--hn-lilac);
    color: var(--hn-ink);
    transform: translate(-1px, -2px);
}

.hn2-tile:hover .hn2-tile-icon {
    box-shadow: 5px 5px 0 var(--hn-ink);
}

.hn2-tile:hover .hn2-tile-icon--run {
    box-shadow: 5px 5px 0 var(--hn-brand);
}

.hn2-tile:hover b {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── What runs: send it to a friend ── */

.st-home-next .hn2-runs {
    padding: 60px 0;
    background: var(--hn-mint);
}

/* The words on the left (the heading, the kinds, the kind's line, the button) and the chat on the right; on phones
   the chat comes between the kinds and the line. The page's order is heading, kinds, line, button, chat: a screen
   reader reaches the new chat just after the chip that changed it, and nothing in the chat takes the focus. */
.hn2-send {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
    grid-template-rows: 1fr auto auto auto auto 1fr;
    grid-template-areas:
        ".    chat"
        "head chat"
        "pick chat"
        "line chat"
        "go   chat"
        ".    chat";
    column-gap: clamp(40px, 4.4vw, 64px);
}

.hn2-send-head {
    grid-area: head;
}

.hn2-send-head .hn2-lead {
    margin-top: 12px;
}

.hn2-kinds-wrap {
    grid-area: pick;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
    container-type: inline-size;
    font-size: 15px;
}

.hn2-kind-lines {
    grid-area: line;
    margin-top: 12px;
}

.hn2-send-go {
    grid-area: go;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 16px;
}

.hn2-chat {
    grid-area: chat;
}

/* What swaps in place (the chats, the lines under the chips) is stacked in one cell, so the tallest sets the height
   and a pick never moves the page. The ones not picked take no part: hidden from sight and from screen readers. */
.hn2-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.hn2-stack > * {
    grid-area: 1 / 1;
}

.hn2-stack > .is-off {
    visibility: hidden;
}

.hn2-kinds-wrap[hidden],
.hn2-send-go [hidden] {
    display: none !important;
}

.hn2-kinds-ask {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--hn-ink);
}

/* The four kinds: one row on a laptop, else two by two at equal widths; never three and one. */
.hn2-kinds {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 520px;
}

.hn2-kind {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 4px 13px;
    border: 2px solid var(--hn-ink);
    border-radius: 999px;
    background: #fff;
    box-shadow: 3px 3px 0 var(--hn-ink);
    color: var(--hn-ink);
    font: 700 15px/1.2 var(--st-font-body, "DM Sans"), system-ui, sans-serif;
    text-align: center;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.hn2-kind svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* One row once the four fit: their words are longer in Portuguese and longer again in Spanish. (An em here is the
   chips' size.) */
@container (min-width: 37.6em) {
    .hn2-kinds:lang(en) {
        grid-template-columns: repeat(4, max-content);
        max-width: none;
    }
}

@container (min-width: 40.2em) {
    .hn2-kinds:lang(pt) {
        grid-template-columns: repeat(4, max-content);
        max-width: none;
    }
}

@container (min-width: 41.8em) {
    .hn2-kinds:lang(es) {
        grid-template-columns: repeat(4, max-content);
        max-width: none;
    }
}

.hn2-kind:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--hn-ink);
}

.hn2-kind[aria-pressed="true"] {
    background: var(--hn-ink);
    color: #fff;
    box-shadow: 3px 3px 0 var(--hn-brand);
    transform: none;
}

.hn2-kind:focus-visible,
.hn2-send-paste:focus-visible {
    outline: 3px solid var(--hn-brand);
    outline-offset: 3px;
}

.hn2-kind-line {
    max-width: 34rem;
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--hn-muted);
}

/* A link, but a finger's size: 44 px tall with its padding. */
.hn2-send-paste {
    display: inline-block;
    padding-block: 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--hn-brand-deep);
    text-underline-offset: 4px;
}

.hn2-send-paste:hover {
    color: var(--hn-ink);
}

/* The chat: Sam at the top, the messages, and a message box that is only a picture. */
.hn2-chat {
    display: flex;
    flex-direction: column;
    align-self: center;
    overflow: hidden;
    border: 2px solid var(--hn-ink);
    border-radius: 22px;
    background: #fff;
    box-shadow: 6px 6px 0 var(--hn-ink);
}

.hn2-chat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    box-sizing: border-box;
    padding: 6px 16px;
    border-bottom: 2px solid var(--hn-ink);
    background: #fff;
}

.hn2-chat-av {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    border: 2px solid var(--hn-ink);
    border-radius: 50%;
    background: var(--hn-rose);
    font: 800 14px var(--hn-disp);
}

.hn2-chat-who {
    display: flex;
    flex-direction: column;
    margin: 0;
    line-height: 1.15;
}

.hn2-chat-who b {
    font-size: 15px;
}

.hn2-chat-who small {
    font-size: 12px;
    color: var(--hn-muted);
}

.hn2-chat-body {
    flex: 1;
    padding: 14px 16px;
    background: #faf8ff;
}

.hn2-convo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hn2-msg {
    box-sizing: border-box;
    max-width: 80%;
    margin: 0;
    padding: 8px 14px;
    border: 2px solid var(--hn-ink);
    font-size: 14.5px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Yours on the right in violet, Sam's on the left in white: the side says who as well as the colour. */
.hn2-msg--me {
    align-self: flex-end;
    border-radius: 16px 16px 4px 16px;
    background: var(--hn-brand);
    color: #fff;
}

.hn2-msg--sam {
    align-self: flex-start;
    border-radius: 16px 16px 16px 4px;
    background: #fff;
    color: var(--hn-ink);
}

.hn2-msg--link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 330px;
    max-width: 100%;
    padding: 8px;
}

.hn2-msg-url {
    overflow: hidden;
    padding: 0 4px;
    font: 500 12.5px/1.4 var(--hn-mono);
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hn2-card {
    display: block;
    overflow: hidden;
    border: 2px solid var(--hn-ink);
    border-radius: 12px;
    background: #fff;
    color: var(--hn-ink);
}

.hn2-card-shot {
    position: relative;
    display: flex;
    height: 116px;
    overflow: hidden;
    box-sizing: border-box;
    border-bottom: 2px solid var(--hn-ink);
}

.hn2-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
}

.hn2-card-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.hn2-card-name b {
    font-size: 14px;
}

.hn2-card-name small {
    font-size: 12px;
    color: var(--hn-muted);
}

.hn2-card-open {
    flex: 0 0 auto;
    padding: 4px 12px;
    border: 2px solid var(--hn-ink);
    border-radius: 999px;
    background: var(--hn-y);
    font-size: 12.5px;
    font-weight: 700;
}

/* The website: the to-do app. */
.hn2-card-shot--web {
    align-items: stretch;
    background: var(--hn-lilac);
}

.hn2-shot-app {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    box-sizing: border-box;
    padding: 12px 18px;
}

.hn2-shot-app b {
    font: 800 15px/1.1 var(--hn-disp);
}

.hn2-shot-app > i,
.hn2-shot-add i {
    display: block;
    height: 16px;
    box-sizing: border-box;
    border: 2px solid var(--hn-ink);
    border-radius: 6px;
    background: #fff;
}

.hn2-shot-app > i.is-done {
    background: #bbf7d0;
}

.hn2-shot-add {
    display: flex;
    gap: 6px;
}

.hn2-shot-add i {
    flex: 1;
}

.hn2-shot-add i + i {
    flex: 0 0 34px;
    background: var(--hn-brand);
}

/* The game: a whole frame of the real Flappy Bird (the score, the bird, the pipes, the ground), on the game's own
   sky and ground. */
.hn2-card-shot--game {
    background: var(--hn2-flappy-ground);
}

.hn2-card-shot--game img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* The notebook: its cell and the week's rain as bars, Thursday's the tallest. */
.hn2-card-shot--note {
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px 0;
    background: #fff;
}

.hn2-card-shot--note code {
    font: 500 12px var(--hn-mono);
    color: #29243a;
}

.hn2-card-shot--note code i {
    font-style: normal;
    color: #6b6580;
}

.hn2-shot-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 0 6px;
    border-bottom: 2px solid var(--hn-ink);
    margin-bottom: 8px;
}

.hn2-shot-bars i {
    flex: 1;
    height: 30%;
    border: 2px solid var(--hn-ink);
    border-bottom: 0;
    background: var(--hn-brand);
}

.hn2-shot-bars i:nth-child(2) { height: 55%; }
.hn2-shot-bars i:nth-child(3) { height: 20%; }
.hn2-shot-bars i:nth-child(4) { height: 100%; background: var(--hn-y); }
.hn2-shot-bars i:nth-child(5) { height: 45%; }
.hn2-shot-bars i:nth-child(6) { height: 35%; }

/* The API: its answer. */
.hn2-card-shot--api {
    background: var(--hn-ink);
}

.hn2-shot-api {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    font: 500 12.5px/1.5 var(--hn-mono);
    color: #fff;
}

.hn2-shot-api > span {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.hn2-shot-api i {
    min-width: 0;
    overflow: hidden;
    font-style: normal;
    text-overflow: ellipsis;
}

.hn2-shot-api b {
    color: var(--hn-y);
}

.hn2-shot-api em {
    padding: 1px 6px;
    border-radius: 6px;
    background: #16a34a;
    color: #fff;
    font-style: normal;
}

.hn2-shot-api code {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font: inherit;
}

.hn2-shot-api u {
    color: #c4b5fd;
    text-decoration: none;
}

.hn2-shot-api s {
    color: #bbf7d0;
    text-decoration: none;
}

.hn2-chat-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    box-sizing: border-box;
    padding: 0 12px;
    border-top: 2px solid var(--hn-ink);
}

.hn2-chat-foot span {
    flex: 1;
    padding: 7px 14px;
    border: 2px solid var(--hn-ink);
    border-radius: 999px;
    font-size: 14px;
    color: #6b6580;
}

.hn2-chat-foot i {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--hn-ink);
}

.hn2-chat-foot svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── The trail: one tab, start to finish ── */

.st-home-next .hn2-trail {
    padding: 70px 0;
    background: var(--hn-lilac);
}

.hn2-trail .hn2-head--split .hn2-lead {
    max-width: 25rem;
}

.hn2-trail-board {
    position: relative;
    margin-top: 44px;
}

/* The road: a yellow and ink stripe behind the stops' pictures (down the tokens on phones). */
.hn2-road {
    position: absolute;
    top: 58px;
    left: 60px;
    right: 60px;
    height: 12px;
    box-sizing: border-box;
    border: 2px solid var(--hn-ink);
    border-radius: 6px;
    background: repeating-linear-gradient(90deg, var(--hn-y) 0 16px, var(--hn-ink) 16px 30px);
    pointer-events: none;
}

.hn2-stops {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hn2-stops[data-stops="5"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hn2-stop {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--hn-ink);
    border-radius: 18px;
    background: #fff;
    box-shadow: 4px 4px 0 var(--hn-ink);
    color: var(--hn-ink);
}

.hn2-token {
    position: absolute;
    z-index: 2;
    top: -14px;
    left: -12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    box-sizing: border-box;
    border: 2px solid var(--hn-ink);
    border-radius: 50%;
    background: var(--hn-y);
    color: var(--hn-ink);
    font: 900 17px var(--hn-disp);
}

/* The finish: violet. */
.hn2-token--finish {
    background: var(--hn-brand);
    color: #fff;
}

.hn2-sticker--start {
    top: -20px;
    left: 40px;
    padding: 3px 10px;
    border-radius: 10px;
    background: var(--hn-mint);
    box-shadow: 2px 2px 0 var(--hn-ink);
    font-size: 12.5px;
    transform: rotate(-4deg);
}

.hn2-stop-art {
    position: relative;
    display: block;
    flex: 0 0 auto;
    height: 128px;
    overflow: hidden;
    box-sizing: border-box;
    border-bottom: 2px solid var(--hn-ink);
    border-radius: 16px 16px 0 0;
}

.hn2-stop-icon,
.hn2-stop-short {
    display: none;
}

.hn2-stop-words {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 14px;
}

.hn2-stop h3 {
    margin: 0;
    font: 800 17px/1.2 var(--hn-disp);
    color: var(--hn-ink);
}

.hn2-stop-words p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--hn-muted);
}

/* Step 1: templates as stickers on sunshine. */
.hn2-art-sun {
    background: var(--hn-sun);
}

.hn2-art-sun .hn2-chip {
    position: absolute;
    left: var(--x);
    top: var(--y);
    padding: 3px 10px;
    font-size: 12px;
    transform: rotate(var(--r));
}

/* Step 2: the code and the page it makes. */
.hn2-art-edit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: #fff;
}

.hn2-art-code {
    display: block;
    font: 500 10px/1.6 var(--hn-mono);
    color: #29243a;
    white-space: pre;
}

.hn2-art-edit .hn2-art-code {
    overflow: hidden;
    padding: 30px 8px 0 12px;
    border-right: 2px solid var(--hn-ink);
    background: #faf8ff;
    white-space: normal;
    word-break: break-all;
}

.hn2-art-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 8px 0;
}

.hn2-art-page b {
    padding: 1px 4px;
    border: 1.5px dashed var(--hn-brand);
    font: 800 14px var(--hn-disp);
    text-align: center;
}

/* Step 3: two carets in one file, you and a friend. */
.hn2-art-collab {
    background: #faf8ff;
}

.hn2-art-collab .hn2-art-code {
    position: absolute;
    left: 14px;
    top: 30px;
    font-size: 11px;
    line-height: 1.7;
}

.hn2-caret {
    display: inline-block;
    width: 2px;
    height: 13px;
    vertical-align: middle;
    background: var(--hn-brand);
}

.hn2-caret--o {
    background: #c2410c;
}

.hn2-who {
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--hn-brand);
    color: #fff;
    font: 700 11.5px var(--st-font-body, "DM Sans"), sans-serif;
    font-style: normal;
    white-space: nowrap;
}

.hn2-who--friend {
    background: #c2410c;
}

.hn2-art-collab .hn2-who {
    position: absolute;
    right: 12px;
    top: 22px;
}

.hn2-art-collab .hn2-who--friend {
    top: 86px;
}

/* Step 4: the languages. */
.hn2-art-langs {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    gap: 5px;
    padding: 24px 10px 0;
    background: var(--hn-sky);
}

/* Step 5: its address. */
.hn2-art-online {
    display: grid;
    place-items: center;
    background: var(--hn-mint);
}

.hn2-art-online .hn2-pill {
    align-self: center;
    padding: 7px 12px;
    font-size: 12px;
}

/* Step 6: three small projects, the middle one, Flappy Bird, being remixed. */
.hn2-art-remix {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
    background: var(--hn-rose);
}

.hn2-thumb {
    position: relative;
    display: block;
    flex: 0 0 auto;
    box-sizing: border-box;
    border: 2px solid var(--hn-ink);
    border-radius: 8px;
    background: #fff;
}

.hn2-thumb--paint {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    width: 44px;
    height: 60px;
    padding: 4px;
}

.hn2-thumb--paint i { border-radius: 2px; background: var(--hn-brand); }
.hn2-thumb--paint i:nth-child(2) { background: #f472b6; }
.hn2-thumb--paint i:nth-child(3) { background: #facc15; }

.hn2-thumb--game {
    width: 52px;
    height: 78px;
    overflow: hidden;
    background: #4ec0ca;
}

.hn2-thumb--game img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hn2-thumb--game b {
    position: absolute;
    left: 50%;
    bottom: 4px;
    padding: 0 5px;
    border: 1.5px solid var(--hn-ink);
    border-radius: 6px;
    background: var(--hn-y);
    font: 700 10px var(--st-font-body, "DM Sans"), sans-serif;
    transform: translateX(-50%);
}

.hn2-thumb--chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 44px;
    height: 60px;
    padding: 4px;
}

.hn2-thumb--chart i { flex: 1; height: 40%; background: var(--hn-brand); }
.hn2-thumb--chart i:nth-child(2) { height: 85%; border: 1px solid var(--hn-ink); background: var(--hn-y); }
.hn2-thumb--chart i:nth-child(3) { height: 55%; }

/* The phone list's small pictures, one a stop. */
.hn2-stop-icon {
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    box-sizing: border-box;
    border: 2px solid var(--hn-ink);
    border-radius: 11px;
    background: #faf8ff;
    color: var(--hn-ink);
}

.hn2-stop-icon svg {
    width: 22px;
    height: 22px;
}

.hn2-stop--sun .hn2-stop-icon { background: var(--hn-sun); }
.hn2-stop--online .hn2-stop-icon { background: var(--hn-mint); }

.hn2-stop-icon--langs {
    background: var(--hn-sky);
    font: 800 13px var(--hn-mono);
}

.hn2-stop-icon--collab {
    align-content: center;
    gap: 3px;
}

.hn2-stop-icon--collab .hn2-who {
    max-width: 40px;
    overflow: hidden;
    padding: 0 3px;
    font-size: 7.5px;
    line-height: 1.4;
    text-overflow: clip;
}

.hn2-stop-icon--remix {
    background: #4ec0ca;
}

.hn2-stop-icon--remix img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hn2-stop-short--address {
    font: 500 12.5px var(--hn-mono);
}

/* ── The AI: it broke, now it runs ── */

/* main > section.… outranks home-next.css's "last section is mint" rule, which the last call would otherwise take. */
.st-home-next .hn2-dark,
.st-home-next main > section.hn2-band.hn2-dark {
    background: var(--hn-ink);
    color: #fff;
}

.hn2-dark .hn2-eyebrow { color: #c4b5fd; }
.hn2-dark .hn2-h2 { color: #fff; }
.hn2-dark .hn2-lead { color: #d1cbe3; }

.st-home-next .hn2-ai {
    padding: 58px 0;
}

.hn2-ai .hn2-h2 {
    font-size: clamp(32px, 3.05vw, 44px);
}

.hn2-ai .hn2-head--split .hn2-lead {
    max-width: 23rem;
}

/* The steps' toggles, for narrow screens with the script (public/js/home-next2.js). */
.hn2-fix-tabs,
.hn2-fix-narrow {
    display: none;
}

/* Three steps in a row, an arrow between each two; the middle one a little wider. */
.hn2-fix {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 60px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.hn2-fix-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 30px 16px 16px;
    border: 2px solid var(--hn-ink);
    border-radius: 20px;
    background: #fff;
    box-shadow: 6px 6px 0 var(--hn2-pink);
    color: var(--hn-ink);
}

.hn2-fix-step--2 { box-shadow: 6px 6px 0 var(--hn-y); }
.hn2-fix-step--3 { box-shadow: 6px 6px 0 var(--hn2-green); }

.hn2-fix-step--1::after,
.hn2-fix-step--2::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 13px);
    width: 40px;
    height: 40px;
    margin-top: -20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffe234' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Each step's name is a label on the card's corner. */
.hn2-fix-tag {
    position: absolute;
    z-index: 2;
    top: -18px;
    left: -10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 5px 12px 5px 5px;
    border: 2px solid var(--hn-ink);
    border-radius: 12px;
    background: var(--hn-rose);
    box-shadow: 3px 3px 0 var(--hn-ink);
    color: var(--hn-ink);
    font: 800 16px/1.2 var(--hn-disp);
    transform: rotate(-3deg);
}

.hn2-fix-step--2 .hn2-fix-tag { background: var(--hn-y); transform: rotate(2deg); }
.hn2-fix-step--3 .hn2-fix-tag { background: var(--hn-mint); transform: rotate(-2deg); }

.hn2-fix-n {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--hn-ink);
    color: #fff;
    font: 800 13px var(--hn-disp);
}

.hn2-fix-art {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* A file: its name, then its lines. */
.hn2-file {
    display: block;
    overflow: hidden;
    border: 2px solid var(--hn-ink);
    border-radius: 12px;
    background: #fff;
}

.hn2-file-name {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    border-bottom: 2px solid var(--hn-ink);
    background: #f7f5fc;
    font: 600 12px var(--hn-mono);
}

.hn2-file-name > span + span {
    color: var(--hn-muted);
    font-family: var(--st-font-body, "DM Sans"), sans-serif;
}

.hn2-code {
    display: block;
    padding: 10px 0;
    font: 500 13px/1.8 var(--hn-mono);
    white-space: pre;
}

.hn2-code > span {
    display: block;
    overflow: hidden;
    padding: 0 12px;
    text-overflow: ellipsis;
}

.hn2-code i {
    margin-right: 8px;
    font-style: normal;
    color: #736d85;
}

.hn2-code .is-bad { background: var(--hn-rose); }

.hn2-code u {
    text-decoration: underline wavy #dc2626;
    text-underline-offset: 3px;
}

/* The diff: what went, on rose with a minus; what came, on mint with a plus. */
.hn2-diff {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hn2-diff .hn2-code {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 0;
    font: 600 14px/2 var(--hn-mono);
}

.hn2-code .is-del { background: var(--hn-rose); color: #9f1239; }
.hn2-code .is-add { background: var(--hn-mint); color: #14532d; }

.hn2-term {
    flex: 1;
    display: block;
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: #221d2e;
    color: #e9e4f5;
    font: 500 13px/1.8 var(--hn-mono);
    overflow-wrap: anywhere;
}

.hn2-term .is-err { color: #fca5a5; }
.hn2-term .is-ok { color: var(--hn2-green); }

.hn2-term .is-hi {
    display: block;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--hn2-green);
}

.hn2-term--install {
    flex: 0 0 auto;
}

/* Smart Bolt's card, as the editor shows it, with the button pressed. */
.hn2-bolt-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    border: 2px solid var(--hn-ink);
    border-radius: 14px;
    background: var(--hn-sun);
}

.hn2-bolt-who {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--hn-brand-deep);
}

.hn2-bolt-who svg,
.hn2-fix-ask-title svg,
.hn2-fix-title svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    color: var(--hn-brand);
}

.hn2-bolt-card b {
    margin-top: 6px;
    font: 800 17px/1.2 var(--hn-disp);
}

.hn2-bolt-body {
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--hn-muted);
}

.hn2-fake-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.hn2-fake-btns i {
    padding: 6px 12px;
    border: 2px solid var(--hn-ink);
    border-radius: 10px;
    background: #fff;
    font: 700 13px var(--st-font-body, "DM Sans"), sans-serif;
    font-style: normal;
}

.hn2-fake-btns i.is-pri {
    position: relative;
    background: var(--hn-brand);
    box-shadow: 1px 1px 0 var(--hn-ink);
    color: #fff;
    transform: translate(2px, 2px);
}

.hn2-bolt-pointer {
    position: absolute;
    right: -12px;
    bottom: -16px;
    width: 26px;
    height: 26px;
    fill: #fff;
    stroke: var(--hn-ink);
    stroke-width: 2;
    stroke-linejoin: round;
}

/* It runs: what it printed, and the line that says so in words. */
.hn2-fix-ok {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 2px solid var(--hn-ink);
    border-radius: 12px;
    background: var(--hn-mint);
    font-size: 14.5px;
    font-weight: 700;
}

.hn2-fix-ok-mark {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #15803d;
    color: #fff;
}

.hn2-fix-ok-mark svg {
    width: 15px;
    height: 15px;
}

/* A school pupil's game, running in its window. */
.hn2-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 150px;
    overflow: hidden;
    border: 2px solid var(--hn-ink);
    border-radius: 12px;
    background: var(--hn2-flappy-ground);
}

.hn2-window-bar {
    padding: 5px 10px;
    border-bottom: 2px solid var(--hn-ink);
    background: #f7f5fc;
    font: 600 12px var(--hn-mono);
}

.hn2-window img {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    object-fit: contain;
}

/* What the narrow screens add inside the steps: the ask, the fix's own title and why, and the buttons that move on. */
.hn2-fix-ask {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 12px;
    border: 2px solid var(--hn-ink);
    border-radius: 14px;
    background: var(--hn-sun);
}

.hn2-fix-ask-title,
.hn2-fix-title {
    align-items: center;
    gap: 6px;
    font: 800 15px/1.2 var(--hn-disp);
}

.hn2-fix-title {
    font-size: 17px;
}

.hn2-fix-ask-body {
    font-size: 13px;
    line-height: 1.4;
    color: var(--hn-muted);
}

.hn2-fix-ask-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.hn2-fake {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 2px solid var(--hn-ink);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}

.hn2-fix-why {
    font-size: 15px;
    line-height: 1.45;
}

.hn2-fix-why code {
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--hn-mint);
    font: 600 13.5px var(--hn-mono);
}

.hn2-fix-why code.is-bad {
    background: var(--hn-rose);
}

.st-home-next2 .hn2-fix-go {
    min-height: 44px;
    padding: 0 14px;
    border: 2px solid var(--hn-ink);
    border-radius: 12px;
    background: #fff;
    color: var(--hn-ink);
    font: 700 14px/1.2 var(--st-font-body, "DM Sans"), system-ui, sans-serif;
    cursor: pointer;
}

.st-home-next2 .hn2-fix-go--pri {
    background: var(--hn-brand);
    box-shadow: 2px 2px 0 var(--hn-ink);
    color: #fff;
    font-size: 13px;
}

.st-home-next2 .hn2-fix-go--run {
    min-height: 48px;
    margin-top: auto;
    border-radius: 14px;
    background: #15803d;
    box-shadow: 4px 4px 0 var(--hn-ink);
    color: #fff;
    font-size: 16px;
}

/* Striqr AI, slim, under the steps: a prompt becomes files and a running app. */
.hn2-aistrip {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding: 12px 12px 12px 16px;
    border: 2px solid #fff;
    border-radius: 18px;
    background: #241f31;
}

.hn2-aistrip-name {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #fff;
    font: 800 16px var(--hn-disp);
}

.hn2-aistrip-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--hn-brand);
}

.hn2-aistrip-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hn2-aistrip-art {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.hn2-aistrip-ask {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    padding: 7px 12px;
    border-radius: 12px 12px 3px 12px;
    background: var(--hn-lilac);
    color: var(--hn-ink);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hn2-aistrip-to {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--hn-y);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hn2-files {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
}

.hn2-files i {
    padding: 3px 9px;
    border: 1.5px solid #fff;
    border-radius: 999px;
    color: #fff;
    font: 500 12.5px var(--hn-mono);
    font-style: normal;
}

.hn2-aistrip .hn2-pill {
    flex: 0 0 auto;
    padding: 5px 12px;
    box-shadow: none;
    font-size: 13px;
    white-space: nowrap;
}

.st-home-next2 .hn2-aistrip .hn2-btn {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 18px;
}

/* ── Teachers ── */

.st-home-next .hn2-teach {
    padding: 70px 0;
    background: var(--hn2-dots), #fff;
}

/* The words, the two offers and the buttons on the left, the live view on the right; on phones the live view comes
   after the words, before the offers. */
.hn2-teach-grid {
    display: grid;
    grid-template-columns: minmax(0, 540fr) minmax(0, 560fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas:
        ".      fig"
        "head   fig"
        "offers fig"
        "ctas   fig"
        ".      fig";
    column-gap: clamp(40px, 6vw, 96px);
}

.hn2-teach-head {
    grid-area: head;
}

.hn2-teach-head .hn2-lead {
    margin-top: 12px;
}

.hn2-offers {
    grid-area: offers;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.hn2-offer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px 10px 10px;
    border: 2px solid var(--hn-ink);
    border-radius: 14px;
    background: #fff;
    box-shadow: 4px 4px 0 var(--hn-ink);
    color: var(--hn-ink);
    text-decoration: none;
}

.hn2-offer[href]:hover {
    background: var(--hn-lilac);
    color: var(--hn-ink);
}

.hn2-offer-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    border: 2px solid var(--hn-ink);
    border-radius: 11px;
    background: var(--hn-mint);
}

.hn2-offer-icon--discord {
    background: #5865f2;
    color: #fff;
}

.hn2-offer-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hn2-offer-words {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hn2-offer-words strong {
    font-size: 16px;
}

.hn2-offer-words span {
    font-size: 14px;
    line-height: 1.4;
    color: var(--hn-muted);
}

.hn2-offer-go {
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 900;
}

.hn2-teach-grid .hn2-ctas {
    grid-area: ctas;
    margin-top: 24px;
}

/* The live view, with two of its facts pinned to it. */
.hn2-live {
    grid-area: fig;
    position: relative;
    align-self: center;
    margin: 0;
}

.hn2-live-card {
    overflow: hidden;
    border: 2px solid var(--hn-ink);
    border-radius: 20px;
    background: #fff;
    box-shadow: 6px 6px 0 var(--hn-ink);
}

.hn2-live-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 50px;
    box-sizing: border-box;
    padding: 6px 18px;
    border-bottom: 2px solid var(--hn-ink);
    background: var(--hn-mint);
    font: 800 17px var(--hn-disp);
}

.hn2-live-dot {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border: 1.5px solid var(--hn-ink);
    border-radius: 999px;
    background: #fff;
    font: 600 12px var(--hn-mono);
}

.hn2-live-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
}

.hn2-live-label {
    margin: 16px 18px 10px;
    font: 700 11.5px var(--hn-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hn-muted);
}

.hn2-live-need {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 18px;
    padding: 9px 12px;
    border: 2px solid var(--hn-ink);
    border-radius: 12px;
    background: var(--hn-sun);
    font-size: 14.5px;
}

.hn2-live-need b {
    flex: 1;
    min-width: 0;
}

.hn2-live-need i {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 2px solid var(--hn-ink);
    border-radius: 10px;
    background: #fff;
    font: 700 13px var(--st-font-body, "DM Sans"), sans-serif;
    font-style: normal;
    white-space: nowrap;
}

.hn2-ini {
    flex: 0 0 auto;
    padding: 2px 6px;
    border: 1.5px solid var(--hn-ink);
    border-radius: 7px;
    background: #fff;
    font: 700 11.5px var(--hn-mono);
}

.hn2-live-rows {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    padding: 14px 18px 16px;
    font-size: 13px;
}

.hn2-steps {
    display: flex;
    gap: 4px;
}

.hn2-steps i {
    flex: 1;
    height: 11px;
    border-radius: 4px;
    background: #e9e4f5;
}

.hn2-steps i.d { background: #16a34a; }

/* The step in progress is striped and outlined as well as yellow, so it doesn't rely on colour alone. */
.hn2-steps i.n {
    box-sizing: border-box;
    border: 1px solid var(--hn-ink);
    background: repeating-linear-gradient(45deg, var(--hn-y) 0 4px, #f2c200 4px 7px);
}

.hn2-st {
    justify-self: start;
    padding: 2px 10px;
    border: 1.5px solid var(--hn-ink);
    border-radius: 999px;
    background: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.hn2-st--rose { background: var(--hn-rose); }
.hn2-st--sky { background: var(--hn-sky); }
.hn2-st--mint { background: var(--hn-mint); }

.hn2-live-foot {
    margin: 0;
    padding: 10px 18px;
    border-top: 2px solid var(--hn-ink);
    background: var(--hn-lilac);
    font-size: 13px;
    color: var(--hn-muted);
}

.hn2-callout {
    position: absolute;
    z-index: 2;
    padding: 6px 12px;
    border: 2px solid var(--hn-ink);
    border-radius: 12px;
    font: 800 13.5px var(--hn-disp);
    white-space: nowrap;
}

.hn2-callout--live {
    top: -18px;
    right: -14px;
    background: var(--hn-ink);
    box-shadow: 3px 3px 0 var(--hn-brand);
    color: #fff;
    transform: rotate(2deg);
}

/* Beside "Needs you now", over the empty end of its line. */
.hn2-callout--stuck {
    top: 56px;
    right: 22px;
    background: var(--hn-y);
    box-shadow: 3px 3px 0 var(--hn-ink);
    color: var(--hn-ink);
    transform: rotate(-4deg);
}

/* ── Discord ── */

.st-home-next .hn2-discord {
    background: var(--hn-sky);
}

.hn2-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 64px;
    align-items: center;
}

.hn2-facts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    font-size: 16px;
    color: var(--hn-ink);
}

.hn2-facts li {
    display: flex;
    gap: 10px;
}

.hn2-dc {
    margin: 0;
}

.hn2-dc-chat {
    overflow: hidden;
    border: 2px solid var(--hn-ink);
    border-radius: 18px;
    background: #313338;
    box-shadow: 8px 8px 0 #5865f2;
    color: #dbdee1;
    font-size: 14.5px;
}

.hn2-dc-channel {
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #1f2023;
    background: #2b2d31;
    color: #f2f3f5;
    font-weight: 700;
}

.hn2-dc-channel span {
    color: #80848e;
}

.hn2-dc-msg {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px 2px;
}

.hn2-dc-msg:last-child {
    padding-bottom: 16px;
}

.hn2-dc-msg--cont {
    padding-top: 8px;
}

.hn2-dc-msg p {
    margin: 0;
}

.hn2-dc-av {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    font: 800 14px var(--hn-disp);
}

.hn2-dc-av--n { background: #c2410c; }
.hn2-dc-av--bolt { background: var(--hn-brand); }
.hn2-dc-av svg { width: 18px; height: 18px; }

.hn2-dc-name {
    color: #f2f3f5;
    font-weight: 700;
}

.hn2-dc-name small {
    margin-left: 6px;
    color: #b5bac1;
    font-size: 12px;
    font-weight: 400;
}

.hn2-dc-name em {
    margin-left: 6px;
    padding: 1px 5px;
    border-radius: 4px;
    background: #5865f2;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    vertical-align: 1px;
}

.hn2-dc-chat pre {
    margin: 6px 0 0;
    padding: 9px 12px;
    border-radius: 6px;
    background: #1e1f22;
    color: #dbdee1;
    font: 12.5px/1.6 var(--hn-mono);
}

.hn2-dc-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-left: 4px solid #ef4444;
    border-radius: 6px;
    background: #232428;
}

.hn2-dc-msg:not(.hn2-dc-msg--cont) .hn2-dc-card {
    margin-top: 6px;
}

.hn2-dc-card--play { border-left-color: #5865f2; }
.hn2-dc-card--quest { border-left-color: #facc15; }

.hn2-dc-card b {
    color: #f2f3f5;
}

.hn2-dc-card > span:not(.hn2-dc-btns) {
    color: #c9cdd3;
    font-size: 13.5px;
    line-height: 1.5;
}

.hn2-dc-card u {
    color: #f2f3f5;
    text-decoration: none;
    font-weight: 700;
}

.hn2-dc-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.hn2-dc-btns i {
    padding: 6px 10px;
    border-radius: 6px;
    background: #4e5058;
    color: #fff;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
}

.hn2-dc-btns i.go {
    background: #248046;
}


/* ── Games, and the projects people share ── */

.st-home-next .hn2-play {
    padding: 64px 0;
    background: var(--hn-sun);
}

.hn2-play .hn2-head--split .hn2-lead {
    max-width: 26rem;
    font-size: 17px;
}

/* Three equal cards: each game's own picture on top, all at one height, whole and at its own shape; its name and the
   button under it. On phones, three small tiles side by side. */
.hn2-games {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 32px;
}

.hn2-game {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    padding: 0;
    border: 2px solid var(--hn-ink);
    border-radius: 18px;
    background: #fff;
    box-shadow: 5px 5px 0 var(--hn-ink);
    color: var(--hn-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.hn2-game:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--hn-ink);
}

.hn2-game-art {
    position: relative;
    display: block;
    flex: 0 0 auto;
    height: clamp(170px, 14vw, 230px);
    overflow: hidden;
    border-bottom: 2px solid var(--hn-ink);
}

/* "Playing" while its clip plays (public/js/home-next2.js), with a dot: the word says it, not the colour. */
.hn2-game-live {
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 10px;
    display: none;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border: 1.5px solid var(--hn-ink);
    border-radius: 999px;
    background: #fff;
    color: var(--hn-ink);
    font-size: 11.5px;
    font-weight: 700;
}

.hn2-game-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dc2626;
}

.hn2-game.is-live .hn2-game-live {
    display: inline-flex;
}

/* A play mark on the phones' tiles, which have no button of their own. */
.hn2-game-tap {
    position: absolute;
    z-index: 1;
    display: none;
    place-items: center;
    width: 30px;
    height: 30px;
    box-sizing: border-box;
    border: 2px solid var(--hn-ink);
    border-radius: 50%;
    background: var(--hn-y);
}

.hn2-game-tap svg {
    width: 13px;
    height: 13px;
    fill: var(--hn-ink);
}

.hn2-game-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
}

.hn2-game-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.hn2-game-name strong {
    font: 800 20px/1.15 var(--hn-disp);
}

.hn2-game-stack {
    padding: 1px 8px;
    border: 1.5px solid var(--hn-ink);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.hn2-game-lang {
    display: none;
    font-size: 11.5px;
    color: var(--hn-muted);
}

.hn2-game-go {
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 2px solid var(--hn-ink);
    border-radius: 12px;
    background: var(--hn-brand);
    box-shadow: 3px 3px 0 var(--hn-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.hn2-game.is-loading {
    opacity: 0.7;
}

/* The games' own pictures: a still (the clip's first frame, loaded as it nears the screen) under the clip, which
   public/js/home-next2.js plays while it is on screen, and shows once it is playing. Each shows the whole play area,
   never cropped, on the game's own ground (Flappy Bird's sky, Snake's board, Pong's black), so it reads as one
   picture. */
.hn2-game-still,
.hn2-game-clip {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hn2-game-clip {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.hn2-game-clip.is-playing {
    opacity: 1;
}

.hn2-game-art--flappy {
    background: var(--hn2-flappy-ground);
}

.hn2-game-art--snake {
    background: #1c2620;
}

.hn2-game-art--pong {
    background: #0a0c18;
}

.hn2-games-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-top: 14px;
}

/* The link takes the row and wraps its own words, so Pause stays beside it at the right, as in English (Spanish's and
   Portuguese's longer link pushed it to a row of its own, at the left, on phones). */
.hn2-games-foot .hn2-more-link {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.hn2-clips-toggle {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid var(--hn-ink);
    border-radius: 50%;
    background: #fff;
    box-shadow: 2px 2px 0 var(--hn-ink);
    color: var(--hn-ink);
    cursor: pointer;
}

.hn2-clips-toggle[hidden] {
    display: none;
}

.hn2-clips-toggle svg {
    width: 16px;
    height: 16px;
}

.hn2-clips-play,
.hn2-clips-toggle.is-stopped .hn2-clips-pause {
    display: none;
}

.hn2-clips-toggle.is-stopped .hn2-clips-play {
    display: block;
}

.hn2-more-link {
    margin: 22px 0 0;
    font-size: 15px;
    font-weight: 700;
}

/* Links on their own line are a finger's size: 44 px tall with their padding. */
.hn2-more-link a {
    display: inline-block;
    padding-block: 12px;
    color: var(--hn-brand-deep);
}

/* The projects people share: Discover's featured, four in a row (public/js/home-catalog.js fills it). */
.hn2-made {
    display: grid;
    grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    margin-top: 24px;
    padding: 16px 18px;
    border: 2px solid var(--hn-ink);
    border-radius: 18px;
    background: #fff;
    box-shadow: 5px 5px 0 var(--hn-ink);
}

.hn2-made-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.hn2-made-head h3 {
    margin: 0;
    font: 900 22px var(--hn-disp);
    letter-spacing: -0.01em;
}

.hn2-made-head p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--hn-muted);
}

.st-home-next2 .hn2-made-head .hn2-btn {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--hn-ink);
    font-size: 14px;
}

.hn2-made-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
}

.hn2-made-row .st-share-card {
    min-width: 0;
    min-height: 0;
    gap: 6px;
    margin: 0;
    border: 2px solid var(--hn-ink);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
}

.hn2-made-row .st-share-card:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--hn-ink);
}

.hn2-made-row .st-share-card:nth-child(n+5),
.hn2-made-row .st-share-card-cta {
    display: none;
}

.hn2-made-row .st-share-card > .st-share-card-top {
    padding: 10px 10px 0;
}

.hn2-made-row .st-share-card > .st-share-card-desc {
    min-height: 0;
    margin-bottom: 10px;
    padding: 0 10px;
    font-size: 13px;
}

.hn2-made-row .st-acc-link {
    display: inline-block;
    padding-block: 15px;
}

.hn2-made-row .st-catpromo-loading,
.hn2-made-row .st-catpromo-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px;
    border: 2px dashed var(--hn-ink);
    border-radius: 14px;
    background: var(--hn-lilac);
    color: var(--hn-ink);
}

/* ── Prices ── */

.st-home-next .hn2-prices {
    padding: 60px 0;
    background: var(--hn-lilac);
}

.hn2-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
    margin-top: 32px;
}

.hn2-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 20px 22px;
    border: 2px solid var(--hn-ink);
    border-radius: 20px;
    background: #fff;
    box-shadow: 5px 5px 0 var(--hn-ink);
}

/* The plan's name and its price on one line. */
.hn2-plan-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 12px;
}

.hn2-plan h3 {
    margin: 0;
    font: 800 21px var(--hn-disp);
}

.hn2-plan h3 small {
    font: 500 13px var(--st-font-body, "DM Sans"), sans-serif;
    color: var(--hn-muted);
}

.hn2-price {
    margin: 0;
    white-space: nowrap;
}

.hn2-price b {
    font: 900 32px var(--hn-disp);
    letter-spacing: -0.02em;
}

.hn2-price span {
    font-size: 14px;
    color: var(--hn-muted);
}

.hn2-plan ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14.5px;
    line-height: 1.4;
}

.hn2-plan li {
    display: flex;
    gap: 8px;
}

.st-home-next2 .hn2-plan .hn2-btn {
    min-height: 44px;
    margin-top: auto;
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--hn-ink);
}

.hn2-plan--pro {
    background: var(--hn-ink);
    box-shadow: 5px 5px 0 var(--hn-brand);
    color: #fff;
}

.hn2-plan--pro .hn2-price span {
    color: #d1cbe3;
}

.hn2-plan--pro .hn2-tick {
    color: var(--hn-y);
}

.st-home-next2 .hn2-plan--pro .hn2-btn {
    box-shadow: 3px 3px 0 #a78bfa;
}

.hn2-sticker--pop {
    top: -16px;
    right: -10px;
    padding: 4px 10px;
    border-radius: 10px;
    box-shadow: 2px 2px 0 var(--hn-ink);
    font-size: 13px;
    transform: rotate(4deg);
}

.hn2-price-note {
    margin: 22px 0 0;
    text-align: center;
    font-size: 14.5px;
    color: var(--hn-muted);
}

/* In a sentence, a finger's size all the same: the padding grows what a tap reaches, not the line. */
.hn2-price-note a {
    padding-block: 13px;
    color: var(--hn-brand-deep);
    font-weight: 700;
}

/* ── The last call ── */

.st-home-next main .hn2-end {
    padding: 112px 0 104px;
    border-bottom: 0;
}

.hn2-end-title {
    font-size: clamp(34px, 3.9vw, 52px);
}

/* ── The footer: the new look's own (views/partials/look/footer.ejs, public/css/look.css), a card on the same dark
   ground as the last call, so it starts with no ground of its own above the card. ── */

.st-home-next2 .lk-footer {
    padding-top: 0;
}

/* ── The sections sit in the site's own frame (home.css .st-shell, sized by site-layout.css), so their edges line up
   with the hero, the menu and the frameworks row at every width, phones and big monitors included. ── */
.st-home-next2 .hn2-wrap {
    width: var(--st-outline-w, 1180px);
    max-width: calc(100% - 2 * var(--st-gutter, 20px));
    padding-left: max(var(--st-inset, 16px), env(safe-area-inset-left, 0px));
    padding-right: max(var(--st-inset, 16px), env(safe-area-inset-right, 0px));
}


/* ── Big monitors: more room, a little bigger type and pictures, still under the hero's title ── */
@media (min-width: 1600px) {
    .hn2-band {
        padding: clamp(104px, 6vw, 148px) 0;
    }

    .st-home-next .hn2-runs,
    .st-home-next .hn2-trail,
    .st-home-next .hn2-ai,
    .st-home-next .hn2-teach,
    .st-home-next .hn2-play,
    .st-home-next .hn2-prices {
        padding: clamp(68px, 4.2vw, 104px) 0;
    }

    .hn2-h2,
    .hn2-ai .hn2-h2 {
        font-size: clamp(44px, 2.3vw, 58px);
    }

    .hn2-end-title {
        font-size: clamp(56px, 2.9vw, 72px);
    }

    .hn2-eyebrow {
        font-size: 14px;
    }

    .hn2-lead {
        max-width: 44rem;
        font-size: clamp(19px, 1vw, 22px);
    }

    .hn2-head {
        max-width: 52rem;
    }

    .hn2-head--center {
        max-width: 60rem;
    }

    .hn2-head--split .hn2-lead,
    .hn2-trail .hn2-head--split .hn2-lead,
    .hn2-ai .hn2-head--split .hn2-lead {
        max-width: 30rem;
    }

    .hn2-play .hn2-head--split .hn2-lead {
        max-width: 26rem;
        font-size: clamp(18px, 0.95vw, 21px);
    }

    .st-home-next2 .hn2-btn {
        min-height: 52px;
        padding: 0 22px;
        font-size: 16px;
    }

    .st-home-next2 .hn2-btn--lg {
        min-height: 60px;
        font-size: 18px;
    }

    .hn2-dock-title {
        font-size: 18px;
    }

    .hn2-dock-list {
        gap: 10px;
        padding: 26px 22px 16px;
    }

    .hn2-dock-list > li {
        flex-basis: calc((100% - 9 * 10px) / 10);
    }

    .hn2-tile-icon {
        width: 62px;
        height: 62px;
        border-radius: 17px;
    }

    .hn2-tile-icon svg {
        width: 30px;
        height: 30px;
    }

    .hn2-tile-words b {
        font-size: 16px;
    }

    .hn2-tile-words small {
        font-size: 13px;
    }

    .hn2-send {
        grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
    }

    .hn2-kinds-wrap {
        font-size: 16px;
    }

    .hn2-kind {
        min-height: 48px;
        font-size: 16px;
    }

    .hn2-kind-line,
    .hn2-send-paste {
        font-size: 16.5px;
    }

    .hn2-msg {
        font-size: 16px;
    }

    .hn2-msg--link {
        width: 380px;
    }

    .hn2-card-shot {
        height: 136px;
    }

    .hn2-stop-art {
        height: 150px;
    }

    .hn2-stop h3 {
        font-size: 19px;
    }

    .hn2-stop-words p {
        font-size: 15px;
    }

    .hn2-fix-tag {
        font-size: 18px;
    }

    .hn2-code,
    .hn2-term {
        font-size: 14.5px;
    }

    .hn2-diff .hn2-code {
        font-size: 15.5px;
    }

    .hn2-bolt-card b {
        font-size: 19px;
    }

    .hn2-bolt-body,
    .hn2-fix-ok {
        font-size: 15.5px;
    }

    .hn2-teach-grid {
        column-gap: clamp(64px, 5vw, 128px);
    }

    .hn2-offer-words strong,
    .hn2-live-top {
        font-size: 18px;
    }

    .hn2-offer-words span,
    .hn2-live-need,
    .hn2-live-rows {
        font-size: 15px;
    }

    .hn2-split {
        gap: clamp(64px, 5vw, 128px);
    }

    .hn2-dc-chat {
        font-size: 16px;
    }

    .hn2-plan ul,
    .hn2-facts {
        font-size: 16.5px;
    }

    .hn2-plans,
    .hn2-games {
        gap: 32px;
    }

    .hn2-game-art {
        height: clamp(200px, 11.5vw, 260px);
    }

    .hn2-game-name strong {
        font-size: 23px;
    }

    .hn2-price b {
        font-size: 38px;
    }
}

/* ── Less motion ── */

@media (prefers-reduced-motion: reduce) {
    .st-home-next2 .hn2-btn,
    .hn2-kind,
    .hn2-tile,
    .hn2-tile-icon,
    .hn2-game {
        transition: none;
    }

    .hn2-tile:hover {
        transform: none;
    }

    /* Nothing moves: the games are their stills, and nothing offers to pause them. */
    .hn2-game-clip,
    .hn2-clips-toggle {
        display: none !important;
    }

    .hn2-game.is-live .hn2-game-live {
        display: none;
    }
}

/* ── Laptops: the dock and the trail in fewer columns, the chat a little narrower ── */

@media (max-width: 1239px) {
    /* The AI's prompt keeps its words: the files go, then the arrow after them. */
    .hn2-files,
    .hn2-aistrip-to--2 {
        display: none;
    }
}

@media (max-width: 1023px) {
    /* The dock five by two (a school pupil's six, three by two). */
    .hn2-dock-list {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 14px 6px;
    }

    .hn2-dock-list[data-tiles="6"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .hn2-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .hn2-send {
        grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
        column-gap: 36px;
    }

    .hn2-msg--link {
        width: 100%;
    }

    .hn2-road {
        display: none;
    }

    .hn2-stops,
    .hn2-stops[data-stops="5"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 30px;
    }

    .hn2-fix {
        gap: 44px;
    }

    .hn2-fix-step--1::after,
    .hn2-fix-step--2::after {
        left: calc(100% + 8px);
        width: 28px;
        height: 28px;
        margin-top: -14px;
    }

    .hn2-aistrip {
        flex-wrap: wrap;
    }

    .hn2-aistrip-art {
        flex-basis: 260px;
        flex-wrap: wrap;
        overflow: visible;
    }

    .hn2-aistrip-ask {
        white-space: normal;
    }

    .hn2-teach-grid {
        column-gap: 40px;
    }

    .hn2-live-rows {
        gap: 10px 8px;
    }

    .hn2-st {
        padding: 2px 7px;
        font-size: 12px;
    }

    .hn2-game-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .hn2-made {
        grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    }
}

/* ── Tablets and phones: one column ── */

@media (max-width: 900px) {
    .hn2-band {
        padding: 72px 0;
    }

    .st-home-next .hn2-runs,
    .st-home-next .hn2-trail,
    .st-home-next .hn2-ai,
    .st-home-next .hn2-teach,
    .st-home-next .hn2-play,
    .st-home-next .hn2-prices {
        padding: 56px 0;
    }

    /* The heading, the kinds, then the chat, then the kind's line and its button. */
    .hn2-send {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas: "head" "pick" "chat" "line" "go";
    }

    .hn2-chat {
        width: 100%;
        max-width: 560px;
        margin-top: 16px;
        align-self: start;
    }

    .hn2-kind-lines {
        margin-top: 14px;
    }

    .hn2-send-go {
        margin-top: 14px;
    }

    /* The AI's steps one under another; with the script, one at a time, with a toggle for each. */
    .hn2-fix {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        max-width: 560px;
    }

    .hn2-fix-step--1::after,
    .hn2-fix-step--2::after {
        display: none;
    }

    .hn2-ai.is-tabbed .hn2-fix-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        max-width: 560px;
        margin-top: 22px;
    }

    .hn2-fix-tabs button {
        min-height: 44px;
        padding: 4px 6px;
        border: 2px solid #fff;
        border-radius: 12px;
        background: transparent;
        color: #fff;
        font: 700 14px/1.2 var(--st-font-body, "DM Sans"), system-ui, sans-serif;
        cursor: pointer;
    }

    .hn2-fix-tabs button[aria-pressed="true"] {
        background: var(--hn-y);
        color: var(--hn-ink);
    }

    .hn2-fix-tabs .hn2-fix-n {
        display: inline;
        width: auto;
        height: auto;
        background: none;
        color: inherit;
        font: inherit;
    }

    .hn2-fix-tabs .hn2-fix-n::after {
        content: " ·";
    }

    /* One step shows; the others keep their room in the same cell, so a toggle never moves the page. */
    .hn2-ai.is-tabbed .hn2-fix {
        gap: 0;
        margin-top: 14px;
    }

    .hn2-ai.is-tabbed .hn2-fix-step {
        grid-area: 1 / 1;
        gap: 10px;
        padding: 14px;
    }

    .hn2-ai.is-tabbed .hn2-fix-step.is-off {
        visibility: hidden;
    }

    /* The toggles name the steps, so the labels are for screen readers only. */
    .hn2-ai.is-tabbed .hn2-fix-tag {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        border: 0;
        white-space: nowrap;
    }

    .hn2-ai.is-tabbed .hn2-fix-wide {
        display: none;
    }

    .hn2-ai.is-tabbed .hn2-fix-ask,
    .hn2-ai.is-tabbed .hn2-fix-ask-title,
    .hn2-ai.is-tabbed .hn2-fix-title {
        display: flex;
    }

    .hn2-ai.is-tabbed .hn2-fix-ask {
        flex: 1;
    }

    .hn2-ai.is-tabbed .hn2-fix-why,
    .hn2-ai.is-tabbed .hn2-fix-go {
        display: block;
    }

    .hn2-ai.is-tabbed .hn2-fix-step--1 .hn2-fix-art {
        flex: 0 0 auto;
    }

    .hn2-aistrip {
        max-width: 560px;
        box-sizing: border-box;
    }

    .hn2-teach-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas: "head" "fig" "offers" "ctas";
    }

    .hn2-live {
        width: 100%;
        max-width: 560px;
        margin-top: 26px;
    }

    .hn2-callout--live {
        display: none;
    }

    .hn2-callout--stuck {
        top: -16px;
        right: -6px;
        transform: rotate(3deg);
    }

    .hn2-offers {
        max-width: 560px;
    }

    .hn2-plans {
        grid-template-columns: minmax(0, 1fr);
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    /* The projects people share: the heading over a row that swipes. */
    .hn2-made {
        grid-template-columns: minmax(0, 1fr);
        overflow: hidden;
    }

    .hn2-made-row {
        display: flex;
        gap: 12px;
        margin: 0 -18px;
        padding: 0 18px 6px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .hn2-made-row .st-share-card {
        flex: 0 0 200px;
        scroll-snap-align: start;
    }

    .hn2-made-row .st-share-card:nth-child(n+5) {
        display: flex;
    }
}

/* ── Phones ── */

@media (max-width: 640px) {
    .hn2-band {
        padding: 60px 0;
    }

    .st-home-next .hn2-runs,
    .st-home-next .hn2-trail,
    .st-home-next .hn2-ai,
    .st-home-next .hn2-teach,
    .st-home-next .hn2-play,
    .st-home-next .hn2-prices,
    .st-home-next .hn2-discord {
        padding: 40px 0;
    }

    .hn2-eyebrow {
        font-size: 12.5px;
    }

    .hn2-h2 {
        margin-top: 10px;
    }

    .hn2-ai .hn2-h2 {
        font-size: 32px;
    }

    .hn2-lead,
    .hn2-play .hn2-head--split .hn2-lead {
        font-size: 16px;
    }

    .hn2-head--split {
        gap: 8px;
    }

    /* The dock: five by two, each tile its icon and verb (the name stays for screen readers). */
    .hn2-dock {
        padding: 26px 0 18px;
    }

    .hn2-dock-title {
        top: -16px;
        left: -10px;
        padding: 5px 12px;
        border-radius: 11px;
        font-size: 15px;
    }

    .hn2-dock-list {
        gap: 12px 4px;
        padding: 22px 10px 14px;
        border-radius: 20px;
        box-shadow: 5px 5px 0 var(--hn-ink);
    }

    .hn2-tile {
        gap: 6px;
        padding: 0;
    }

    .hn2-tile-icon {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }

    .hn2-tile-icon svg {
        width: 22px;
        height: 22px;
    }

    .hn2-tile-words b {
        font-size: 12.5px;
        line-height: 1.2;
    }

    .hn2-tile-words small {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    /* What runs: the chat as a phone shows it (Sam, the messages, no message box), the kinds two by two, and the
       button across the screen. */
    .hn2-kinds-wrap {
        margin-top: 18px;
    }

    .hn2-kinds {
        max-width: none;
    }

    .hn2-kind {
        gap: 6px;
        padding: 4px 6px;
    }

    .hn2-chat {
        max-width: none;
        border-radius: 20px;
        box-shadow: 5px 5px 0 var(--hn-ink);
    }

    .hn2-chat-head {
        min-height: 48px;
        padding: 4px 14px;
    }

    .hn2-chat-av {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .hn2-chat-who small,
    .hn2-chat-foot {
        display: none;
    }

    .hn2-chat-body {
        padding: 12px;
    }

    .hn2-msg {
        padding: 7px 12px;
        font-size: 14px;
        line-height: 1.35;
    }

    .hn2-msg--me {
        border-radius: 14px 14px 4px 14px;
    }

    .hn2-msg--sam {
        border-radius: 14px 14px 14px 4px;
    }

    .hn2-msg--link {
        width: 100%;
        max-width: 280px;
        padding: 7px;
    }

    .hn2-msg-url {
        font-size: 12px;
    }

    .hn2-card {
        border-radius: 11px;
    }

    .hn2-card-shot {
        height: 100px;
    }

    .hn2-shot-app {
        padding: 10px 14px;
        gap: 6px;
    }

    .hn2-shot-app b {
        font-size: 14px;
    }

    .hn2-shot-app > i,
    .hn2-shot-add i {
        height: 14px;
    }

    .hn2-shot-add i + i {
        flex-basis: 30px;
    }

    .hn2-shot-api {
        gap: 10px;
        padding: 12px;
        font-size: 11.5px;
    }

    .hn2-card-foot {
        padding: 7px 10px;
    }

    .hn2-card-name b {
        font-size: 13.5px;
    }

    .hn2-card-name small {
        font-size: 11.5px;
    }

    .hn2-card-open {
        padding: 3px 10px;
        font-size: 12px;
    }

    .hn2-kind-line {
        font-size: 14.5px;
    }

    .hn2-send-go {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .hn2-send-go .hn2-btn {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .hn2-send-paste {
        align-self: center;
        margin-top: 4px;
    }

    /* The trail: a list down a road, each stop a small picture, its name and a short line. */
    .hn2-trail-board {
        margin-top: 20px;
    }

    .hn2-road {
        display: block;
        top: 20px;
        bottom: 20px;
        left: 11px;
        right: auto;
        width: 10px;
        height: auto;
        background: repeating-linear-gradient(180deg, var(--hn-y) 0 12px, var(--hn-ink) 12px 22px);
    }

    .hn2-stops,
    .hn2-stops[data-stops="5"] {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-left: 44px;
    }

    .hn2-stop {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        min-height: 64px;
        box-sizing: border-box;
        padding: 8px 12px 8px 8px;
        border-radius: 14px;
        box-shadow: 3px 3px 0 var(--hn-ink);
    }

    .hn2-token {
        top: 50%;
        left: -46px;
        font-size: 16px;
        transform: translateY(-50%);
    }

    .hn2-sticker--start,
    .hn2-stop-art,
    .hn2-stop-long {
        display: none;
    }

    .hn2-stop-icon {
        display: grid;
    }

    .hn2-stop-words {
        flex: 1;
        min-width: 0;
        gap: 1px;
        padding: 0;
    }

    .hn2-stop h3 {
        font-size: 16px;
    }

    .hn2-stop-words p.hn2-stop-short {
        display: block;
        font-size: 13px;
    }

    .hn2-stop-words p.hn2-stop-short--address {
        font: 500 12.5px var(--hn-mono);
    }

    .hn2-trail .hn2-center {
        margin-top: 20px;
    }

    .hn2-trail .hn2-center .hn2-btn,
    .hn2-teach-grid .hn2-ctas .hn2-btn,
    .hn2-aistrip .hn2-btn,
    .hn2-made-head .hn2-btn {
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        text-align: center;
    }

    /* The AI: the steps closer and their code a little smaller (one step at a time with the script). */
    .hn2-fix {
        gap: 28px;
    }

    .hn2-fix-step {
        padding: 22px 14px 14px;
    }

    .hn2-file-name {
        padding: 5px 10px;
        font-size: 11.5px;
    }

    .hn2-code {
        padding: 6px 0;
        font-size: 12.5px;
        line-height: 1.75;
    }

    .hn2-code > span {
        padding: 0 10px;
    }

    .hn2-fix-step--1 .hn2-term {
        flex: 0 0 auto;
        padding: 10px 12px;
        font-size: 12px;
        line-height: 1.7;
    }

    .hn2-diff .hn2-code {
        font-size: 14px;
        line-height: 2.1;
    }

    .hn2-ai.is-tabbed .hn2-term--big {
        padding: 14px;
    }

    .hn2-ai.is-tabbed .hn2-term .is-hi {
        font-size: 30px;
        line-height: 1.5;
    }

    .hn2-ai.is-tabbed .hn2-fix-ok {
        font-size: 15px;
    }

    .hn2-aistrip {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 20px;
        padding: 14px;
    }

    .hn2-aistrip-art {
        flex-basis: auto;
        flex-wrap: wrap;
        gap: 8px;
        overflow: visible;
    }

    .hn2-aistrip-ask {
        white-space: normal;
    }

    /* Teachers: the live view after the words, then the offers and the two buttons side by side. */
    .hn2-live {
        margin-top: 22px;
    }

    .hn2-live-card {
        border-radius: 18px;
        box-shadow: 5px 5px 0 var(--hn-ink);
    }

    .hn2-live-top {
        min-height: 44px;
        padding: 4px 14px;
        font-size: 15px;
    }

    .hn2-live-label {
        margin: 14px 14px 8px;
        font-size: 11px;
    }

    .hn2-live-need {
        flex-wrap: wrap;
        gap: 8px;
        margin: 0 14px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .hn2-live-need b {
        flex: 1 1 6.5rem;
        line-height: 1.25;
    }

    .hn2-live-need i {
        padding: 5px 9px;
        border-radius: 9px;
        font-size: 12px;
    }

    .hn2-live-rows {
        gap: 8px;
        padding: 12px 14px 14px;
        font-size: 12px;
    }

    .hn2-steps {
        gap: 3px;
    }

    .hn2-steps i {
        height: 10px;
        border-radius: 3px;
    }

    .hn2-st {
        padding: 1px 8px;
        font-size: 12px;
    }

    .hn2-live-foot {
        padding: 8px 14px;
        font-size: 12.5px;
    }

    .hn2-callout--stuck {
        padding: 4px 10px;
        border-radius: 10px;
        font-size: 12.5px;
    }

    .hn2-offers {
        margin-top: 22px;
    }

    .hn2-offer {
        gap: 12px;
        padding: 10px 14px 10px 10px;
        box-shadow: 3px 3px 0 var(--hn-ink);
    }

    .hn2-offer-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .hn2-offer-words strong {
        font-size: 15px;
    }

    .hn2-offer-words span {
        font-size: 13px;
        line-height: 1.35;
    }

    .hn2-teach-grid .hn2-ctas {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 22px;
    }

    .hn2-teach-grid .hn2-ctas .hn2-btn {
        flex: 1 1 auto;
        width: auto;
        padding: 0 12px;
        white-space: nowrap;
    }

    /* Games: three small tiles side by side, each its picture, a play mark, its name and its language. */
    .hn2-games {
        gap: 10px;
        margin-top: 18px;
    }

    .hn2-game {
        border-radius: 14px;
        box-shadow: 3px 3px 0 var(--hn-ink);
    }

    .hn2-game-art {
        height: 150px;
    }

    .hn2-game-live,
    .hn2-game.is-live .hn2-game-live,
    .hn2-game-stack,
    .hn2-game-go {
        display: none;
    }

    .hn2-game-tap {
        display: grid;
        top: 114px;
        right: 6px;
    }

    .hn2-game-body {
        padding: 7px 8px 9px;
    }

    .hn2-game-name {
        gap: 2px;
    }

    .hn2-game-name strong {
        font-size: 15px;
    }

    .hn2-game-lang {
        display: block;
    }

    .hn2-games-foot {
        margin-top: 10px;
    }

    .hn2-made {
        gap: 10px;
        margin-top: 18px;
        padding: 14px;
        overflow: hidden;
        border-radius: 18px;
        box-shadow: 4px 4px 0 var(--hn-ink);
    }

    .hn2-made-head {
        display: contents;
    }

    .hn2-made-head h3 {
        font-size: 21px;
    }

    .hn2-made-head p {
        margin-top: -6px;
        font-size: 13px;
    }

    .hn2-made-row {
        order: 1;
        gap: 10px;
        margin: 0 -14px;
        padding: 0 14px 4px;
    }

    .hn2-made-row .st-share-card {
        flex-basis: 170px;
    }

    .st-home-next2 .hn2-made-head .hn2-btn {
        order: 2;
    }

    /* Prices: the three plans, one under another. */
    .hn2-plans {
        gap: 16px;
        margin-top: 22px;
    }

    .hn2-plan {
        gap: 12px;
        padding: 16px 18px;
        border-radius: 18px;
        box-shadow: 4px 4px 0 var(--hn-ink);
    }

    .hn2-plan--pro {
        box-shadow: 4px 4px 0 var(--hn-brand);
    }

    .hn2-plan h3 {
        font-size: 19px;
    }

    .hn2-price b {
        font-size: 28px;
    }

    .hn2-price span {
        font-size: 13px;
    }

    .hn2-plan ul {
        gap: 4px;
        font-size: 14px;
    }

    .hn2-sticker--pop {
        top: -14px;
        right: -6px;
        font-size: 12.5px;
    }

    .hn2-price-note {
        margin-top: 18px;
        font-size: 14px;
    }
}

/* ── Small phones: the dock's tiles keep a finger's width and their words whole ── */

@media (max-width: 380px) {
    .hn2-dock-list {
        gap: 12px 2px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .hn2-tile-icon {
        width: 40px;
        height: 40px;
        border-radius: 11px;
        box-shadow: 2px 2px 0 var(--hn-ink);
    }

    .hn2-tile-icon--run {
        box-shadow: 2px 2px 0 var(--hn-brand);
    }

    .hn2-tile-icon svg {
        width: 20px;
        height: 20px;
    }

    .hn2-tile-words b {
        font-size: 11.5px;
        hyphens: auto;
    }

    .hn2-fix-tabs button {
        font-size: 13px;
    }
}

/* Under 360 px five don't fit a word like "Importar": four a row (the last two centred), a pupil's six three a row. */
@media (max-width: 359px) {
    .hn2-dock-list,
    .hn2-dock-list[data-tiles="6"] {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hn2-dock-list > li {
        flex: 0 0 calc((100% - 3 * 2px) / 4);
    }

    .hn2-dock-list[data-tiles="6"] > li {
        flex-basis: calc((100% - 2 * 2px) / 3);
    }
}

/* A school pupil's What runs: no chat (their projects have no share links), the project's card alone, larger. Two
   classes, so the chat's own rules at each width don't put the chat's frame back. */
.hn2-chat.hn2-chat--card {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.hn2-chat--card .hn2-chat-body {
    padding: 0;
    background: none;
}

.hn2-solo .hn2-card {
    border-radius: 18px;
    box-shadow: 6px 6px 0 var(--hn-ink);
}

.hn2-solo .hn2-card-shot {
    height: 180px;
}

@media (max-width: 640px) {
    .hn2-solo .hn2-card-shot {
        height: 140px;
    }
}

/* ══ The Playground home, version 2: end ══ */
