/*
    Home page (Teachquizly's front page). Loaded only by Home.razor, after app.css, so the exam pages stay as light as before.
    Idea: a teacher's desk in the Teachquizly colours. Cream paper and cards, navy ink for text and buttons, the brand's red
    pen for the logo and the marks, a yellow highlighter. The logo itself is brand/logo.svg (BrandLogo.razor). The fonts are
    subset to Latin + Turkish (see fonts/LICENSE.txt). No inline styles anywhere (the site's CSP allows only this file's rules).
*/

@font-face {
    font-family: "Fraunces";
    src: url("fonts/fraunces.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Fraunces";
    src: url("fonts/fraunces-italic.woff2") format("woff2");
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("fonts/figtree.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Caveat";
    src: url("fonts/caveat.woff2") format("woff2");
    font-weight: 500 700;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ---------- */

/* The Teachquizly palette: navy ink for text, buttons and what is selected; the brand red only as an accent (logo, marks,
   italic words), never for something that could read as wrong; cream for the page and the cards. */
:root {
    --paper: #f6f2e9;
    --paper-deep: #efe9dc;
    --card: #fffbf3;
    --ink: #211c32;
    --ink-soft: #5e5869;
    --line: #e5ded0;
    --line-strong: #d3c9b5;
    --navy-soft: #e9e5ec;
    --check-bg: #211c32;
    --check-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%23fffbf3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --red: #ae4030;
    --red-ink: #ae4030;
    --red-soft: #f5e5dc;
    --yellow: #ffd84a;
    --hl: #ffd84a;
    --sun: #fff3c4;
    --green: #22764f;
    --green-soft: #dcf1e5;
    --tick: #22764f;
    --band: #211c32;
    --band-text: #f6f2e9;
    --band-soft: #c8c2d4;
    --r: 22px;
    --lift: 0 1px 2px rgba(33, 28, 50, 0.05), 0 14px 34px -12px rgba(33, 28, 50, 0.22);
    --lift-sm: 0 1px 2px rgba(33, 28, 50, 0.06), 0 4px 12px -4px rgba(33, 28, 50, 0.12);
    --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
    --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

    /* Things on the desk (sheet, phone, QR sticker) are objects: they keep their own colours in both themes. */
    --art-paper: #fffbf3;
    --art-ink: #211c32;
    --art-soft: #5e5869;
    --art-rule: #d6e1f2;
    --art-margin: #f0a99c;
    --art-red: #ae4030;
}

/* The brand's dark counterparts. --band is a lifted navy, so the code strip and the dark cards stand off the page. */
@media (prefers-color-scheme: dark) {
    :root {
        --paper: #15121d;
        --paper-deep: #1a1625;
        --card: #211c32;
        --ink: #f6f2e9;
        --ink-soft: #b9b3c6;
        --line: #3a3350;
        --line-strong: #4b4363;
        --navy-soft: #2e2843;
        --check-bg: #f6f2e9;
        --check-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%23211c32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        --red: #e2735e;
        --red-ink: #e2735e;
        --red-soft: #33232f;
        --hl: rgba(255, 216, 74, 0.34);
        --sun: #2a2414;
        --green: #7fd6a2;
        --green-soft: #183326;
        --tick: #7fd6a2;
        --band: #2a2442;
        --band-text: #f6f2e9;
        --band-soft: #c0bacf;
        --lift: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 40px -14px rgba(0, 0, 0, 0.7);
        --lift-sm: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 6px 16px -6px rgba(0, 0, 0, 0.6);
        --art-paper: #f6f2e9;
    }
}

/* ---------- Base ---------- */

body {
    background: var(--paper);
    color: var(--ink);
}

.lp {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    overflow-x: clip;
}

.lp a {
    color: inherit;
}

/* :where() keeps these resets at element weight, so any class below can set its own margins. */
:where(.lp) :is(h1, h2, h3, p) {
    margin: 0;
}

.wrap {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: max(1.25rem, env(safe-area-inset-left)) max(1.25rem, env(safe-area-inset-right));
}

.lp .skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: var(--yellow);
    color: #211c32;
    font-weight: 700;
    text-decoration: none;
}

.lp .skip-link:focus {
    top: 0.6rem;
}

.join,
.cta-box,
.plan-featured,
.duo-school {
    --focus: var(--yellow);
    --tick: var(--yellow);
}

.lp section[id] {
    scroll-margin-top: 1rem;
}

@media (min-width: 900px) {
    .lp section[id] {
        scroll-margin-top: 5rem;
    }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0.75rem 1.45rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font: 700 1rem/1.2 var(--font-body);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.lp .btn-primary {
    background: var(--ink);
    color: var(--paper);
}

.lp .btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--yellow);
}

.lp .btn-accent {
    background: var(--yellow);
    color: #211c32;
}

.lp .btn-accent:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--red);
}

.lp .btn-outline {
    border-color: var(--ink);
    color: var(--ink);
    background: transparent;
}

.lp .btn-outline:hover {
    background: var(--ink);
    color: var(--paper);
}

.lp .btn-ghost-light {
    border-color: rgba(246, 242, 233, 0.55);
    color: var(--band-text);
}

.lp .btn-ghost-light:hover {
    border-color: var(--band-text);
    background: rgba(246, 242, 233, 0.08);
}

.btn-small {
    min-height: 44px;
    padding: 0.45rem 1.05rem;
    font-size: 0.93rem;
}

/* ---------- Tick lists ---------- */

.ticks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.ticks li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.ticks li::before {
    content: "";
    flex: none;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.18em;
    background: var(--tick);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.8 10.6l4 4L16.4 5.8' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.8 10.6l4 4L16.4 5.8' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Students' code box ---------- */

.join {
    background: var(--band);
    color: var(--band-text);
    padding-block: 0.65rem;
}

.join-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
}

.join-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
    line-height: 1.35;
}

.join-label strong {
    color: var(--yellow);
}

.join-icon {
    flex: none;
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.join-row {
    display: flex;
    gap: 0.5rem;
    flex: 1 1 100%;
    max-width: 24rem;
}

/* ".join" first: app.css styles input[type=text] for the exam pages, and that selector outweighs a lone class. */
.join .join-input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 0.45rem 1rem;
    border: 2px solid transparent;
    border-radius: 999px;
    background: #fffbf3;
    color: #211c32;
    font: 700 1rem/1.2 var(--font-body);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.join .join-input:focus {
    border-color: transparent;
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}

.join .join-input::placeholder {
    color: #706a7b;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
}

.join-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.45rem 1.15rem;
    border: 0;
    border-radius: 999px;
    background: var(--yellow);
    color: #211c32;
    font: 700 1rem/1 var(--font-body);
    cursor: pointer;
}

.join-button svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.15s ease;
}

.join-button:hover svg {
    transform: translateX(3px);
}

.join-error {
    flex-basis: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    background: #fdecea;
    color: #9f2119;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

@media (min-width: 720px) {
    .join-row {
        flex: 0 1 24rem;
    }
}

/* ---------- Header ---------- */

.top {
    position: relative;
    z-index: 10;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
    min-height: 4.25rem;
    padding-block: 0.55rem;
}

/* The logo link: the img's alt ("Teachquizly") names it. The picture's height sets its size (app.css, .brand-logo). */
.lp .logo {
    display: inline-flex;
    align-items: center;
    margin-right: auto;
    border-radius: 6px;
}

.top .brand-logo img {
    height: 2.1rem;
}

.top-login {
    margin-left: auto;
}

.short-label {
    display: none;
}

/* Phones: the links get their own row. The padding leaves room for the focus ring inside the scroll box, and the auto
   margins centre the row without pushing the first link out of reach when it is wider than the screen. */
.top-nav {
    order: 3;
    display: flex;
    gap: 0 1.1rem;
    width: calc(100% + 12px);
    margin: -4px -6px 0;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.top-nav a:first-child {
    margin-left: auto;
}

.top-nav a:last-child {
    margin-right: auto;
}

.top-nav a {
    padding: 0.6rem 0.2rem;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
}

.top-nav a:hover {
    color: var(--ink);
}

@media (max-width: 399px) {
    .top .brand-logo img {
        height: 1.8rem;
    }

    .top-login .long-label {
        display: none;
    }

    .top-login .short-label {
        display: inline;
    }

    .top-nav {
        gap: 0 0.55rem;
    }

    .top-nav a {
        font-size: 0.875rem;
    }
}

@media (min-width: 900px) {
    .top {
        position: sticky;
        top: 0;
        background: color-mix(in srgb, var(--paper) 86%, transparent);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .top-nav {
        order: 0;
        width: auto;
        gap: 2rem;
        margin: 0 1rem 0 0;
        padding: 0;
        overflow: visible;
    }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: clamp(2.25rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5.5rem);
    background-image: radial-gradient(var(--line-strong) 1px, transparent 1.3px);
    background-size: 24px 24px;
    background-position: -12px -12px;
}

.hero::after {
    /* fades the dot grid into the band below */
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    background: linear-gradient(transparent, var(--paper));
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(2.5rem, 5vw, 3.5rem);
    align-items: center;
}

@media (min-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1.05fr 1fr;
    }
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--lift-sm);
}

.pill-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 22%, transparent);
}

.lp .hero-title {
    margin: 1.1rem 0 1.3rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.4rem, 1.25rem + 4.6vw, 4.45rem);
    line-height: 1.03;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.hero-title em {
    font-style: italic;
    font-weight: 500;
}

.hl {
    padding: 0 0.06em;
    background: linear-gradient(transparent 56%, var(--hl) 56%, var(--hl) 92%, transparent 92%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.lp .lead {
    max-width: 34rem;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.9rem 0 1.4rem;
}

.hero-ticks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.3rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 600;
}

/* The desk scene. Sized in em so the whole picture scales with one font-size. */

.hero-art {
    position: relative;
    width: 34em;
    height: 31.5em;
    margin-inline: auto;
    font-size: min(15px, calc((100vw - 2.5rem) / 34));
    color: var(--art-ink);
    line-height: 1.35;
}

.art-sheet {
    position: absolute;
    left: 0;
    top: 4.4em;
    z-index: 1;
    width: 19.2em;
    padding: 1.3em 1.4em 1.6em 3.3em;
    border-radius: 0.7em;
    background-color: var(--art-paper);
    background-image:
        linear-gradient(90deg, transparent 2.35em, var(--art-margin) 2.35em, var(--art-margin) 2.5em, transparent 2.5em),
        repeating-linear-gradient(transparent 0 2.3em, var(--art-rule) 2.3em 2.4em);
    background-position: 0 0, 0 4.1em;
    box-shadow: var(--lift);
    transform: rotate(-3.5deg);
}

.sheet-head {
    display: flex;
    align-items: center;
    gap: 0.6em;
    height: 2.8em;
}

.sheet-class {
    padding: 0.15em 0.5em;
    border-radius: 0.4em;
    background: var(--art-ink);
    color: var(--art-paper);
    font-weight: 700;
    font-size: 0.9em;
}

.sheet-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15em;
    white-space: nowrap;
}

.sheet-date {
    margin-left: auto;
    color: var(--art-red);
    font-family: var(--font-hand);
    font-weight: 600;
    font-size: 1.35em;
}

.sheet-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sheet-rows li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 2.4em;
    padding-right: 0.3em;
    font-size: 1em;
    font-weight: 500;
}

.sheet-rows b {
    color: var(--art-red);
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 1.75em;
    line-height: 1;
}

.sheet-rows .waiting {
    display: flex;
    gap: 0.12em;
    font-size: 1em;
}

.waiting i {
    width: 0.38em;
    height: 0.38em;
    border-radius: 50%;
    background: var(--art-soft);
    opacity: 0.6;
}

.sheet-circle {
    position: absolute;
    right: 0.6em;
    top: 8.75em;
    width: 4.3em;
    height: 2.6em;
    overflow: visible;
}

.sheet-circle path {
    fill: none;
    stroke: var(--art-red);
    stroke-width: 2.4;
    stroke-linecap: round;
}

.art-note {
    position: absolute;
    left: 9.8em;
    top: 20.4em;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--art-red);
    transform: rotate(-6deg);
}

.art-note span {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 1.65em;
    line-height: 0.95;
    white-space: nowrap;
}

.art-note svg {
    width: 2.6em;
    height: 2.3em;
    margin: 0 0.6em 0.1em 0;
    overflow: visible;
}

.art-note path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (prefers-color-scheme: dark) {
    /* the note is written on the desk, not on the paper: it takes the dark theme's lighter red */
    .art-note {
        color: var(--red);
    }
}

.art-qr {
    position: absolute;
    left: 1.4em;
    top: 22.4em;
    z-index: 2;
    width: 7.6em;
    padding: 0.75em 0.75em 0.5em;
    border-radius: 0.8em;
    background: #fff;
    box-shadow: var(--lift);
    text-align: center;
    transform: rotate(-7deg);
}

.art-qr::before {
    /* a strip of tape */
    content: "";
    position: absolute;
    left: 50%;
    top: -0.65em;
    width: 3.6em;
    height: 1.2em;
    background: rgba(255, 216, 74, 0.75);
    transform: translateX(-50%) rotate(4deg);
}

.art-qr .qr {
    display: block;
    width: 100%;
    height: auto;
}

.art-qr span {
    display: block;
    margin-top: 0.3em;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.qr-bg {
    fill: #fff;
}

.qr-dots {
    fill: #211c32;
}

/* The phone shows the exam page (app.css) in its light colours: cream page and cards, navy text, buttons and choices. */
.art-phone {
    position: absolute;
    right: 0.3em;
    top: 0.8em;
    z-index: 3;
    width: 14.6em;
    height: 28.6em;
    padding: 0.55em;
    border-radius: 2.4em;
    background: #1b1728;
    box-shadow: 0 1.6em 3em -1.2em rgba(27, 23, 40, 0.55), inset 0 0 0 0.16em #3a3350;
    transform: rotate(4deg);
}

.phone-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.85em 0.95em 1em;
    border-radius: 1.9em;
    background: #f6f2e9;
    color: #211c32;
    font-size: 0.82em;
    overflow: hidden;
}

.ph-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.4em;
    font-size: 0.85em;
    font-weight: 700;
}

.ph-icons {
    display: flex;
    gap: 0.3em;
}

.ph-icons i {
    width: 1.1em;
    height: 0.55em;
    border-radius: 0.2em;
    background: #211c32;
}

.ph-icons i:first-child {
    width: 0.7em;
    opacity: 0.6;
}

.ph-logo {
    display: block;
    width: auto;
    height: 1.45em;
    margin: 0.85em 0 0 0.1em;
}

.ph-eyebrow {
    margin-top: 0.75em;
    color: #ae4030;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ph-title {
    font-weight: 800;
    font-size: 1.12em;
    line-height: 1.25;
}

.ph-who {
    display: flex;
    justify-content: space-between;
    margin-top: 0.3em;
    font-size: 0.8em;
    font-weight: 600;
}

.ph-link {
    color: #211c32;
    text-decoration: underline;
}

.ph-progress {
    height: 0.5em;
    margin-top: 0.7em;
    border-radius: 1em;
    background: #e9e5ec;
    overflow: hidden;
}

.ph-progress span {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: #211c32;
}

.ph-count {
    margin-top: 0.35em;
    color: #5e5869;
    font-size: 0.78em;
}

.ph-question {
    flex: none;
    margin-top: 0.7em;
    padding: 0.85em 0.9em;
    border-radius: 1.1em;
    background: #fffbf3;
    box-shadow: 0 1px 2px rgba(33, 28, 50, 0.06), 0 2px 8px rgba(33, 28, 50, 0.05);
}

.ph-qno {
    color: #211c32;
    font-size: 0.75em;
    font-weight: 700;
}

.ph-question p:not(.ph-qno) {
    margin-top: 0.2em;
    font-weight: 600;
    font-size: 1em;
    line-height: 1.4;
}

.ph-blank {
    display: inline-block;
    width: 3.2em;
    border-bottom: 0.15em solid #211c32;
}

.ph-question ul {
    list-style: none;
    display: grid;
    gap: 0.45em;
    margin: 0.75em 0 0;
    padding: 0;
}

.ph-question li {
    position: relative;
    padding: 0.55em 0.7em 0.55em 2.2em;
    border: 0.12em solid #d3c9b5;
    border-radius: 0.8em;
    font-size: 0.92em;
}

.ph-question li::before {
    content: "";
    position: absolute;
    left: 0.7em;
    top: 50%;
    width: 0.95em;
    height: 0.95em;
    border: 0.13em solid #b3a993;
    border-radius: 50%;
    transform: translateY(-50%);
}

.ph-question li.picked {
    border-color: #211c32;
    background: #e9e5ec;
    font-weight: 700;
}

.ph-question li.picked::before {
    border-color: #211c32;
    background: radial-gradient(#211c32 42%, transparent 48%);
}

.art-toast {
    position: absolute;
    left: 1.6em;
    top: 0.6em;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.6em 1em 0.6em 0.65em;
    border-radius: 999px;
    background: #fffbf3;
    box-shadow: var(--lift);
    font-size: 0.95em;
    white-space: nowrap;
    transform: rotate(-2deg);
}

.art-toast b {
    color: #22764f;
    font-weight: 800;
}

.toast-tick {
    position: relative;
    flex: none;
    width: 1.7em;
    height: 1.7em;
    border-radius: 50%;
    background: #22764f;
}

.toast-tick::after {
    content: "";
    position: absolute;
    left: 0.6em;
    top: 0.34em;
    width: 0.4em;
    height: 0.75em;
    border: solid #fff;
    border-width: 0 0.17em 0.17em 0;
    transform: rotate(45deg);
}

/* ---------- Numbers band ---------- */

.numbers {
    border-block: 1px solid var(--line);
    background: var(--paper-deep);
}

.numbers-list {
    list-style: none;
    margin-block: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
    padding-block: clamp(1.75rem, 4vw, 2.5rem);
}

.numbers-list li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.numbers-list strong {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.numbers-list span {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (min-width: 860px) {
    .numbers-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .numbers-list li + li {
        padding-left: 1.5rem;
        border-left: 1px solid var(--line-strong);
    }
}

/* ---------- Sections ---------- */

.section {
    padding-block: clamp(3.5rem, 6.5vw, 5.75rem);
}

.section-head {
    max-width: 42rem;
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.scribble {
    display: inline-block;
    margin-bottom: 0.3rem;
    color: var(--red-ink);
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 1.7rem;
    line-height: 1.1;
    transform: rotate(-2deg);
}

.lp h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.95rem, 1.2rem + 2.7vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.lp h2 em {
    font-style: italic;
    font-weight: 500;
    color: var(--red-ink);
}

.section-lead {
    margin-top: 1rem;
    color: var(--ink-soft);
    font-size: 1.1rem;
}

.section-lead a,
.pricing-note a {
    color: var(--ink);
    font-weight: 700;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.lp h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.32rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Small drawings inside the cards. */

.mini {
    margin-top: auto;
    padding: 0.95rem;
    border: 1px dashed var(--line-strong);
    border-radius: 16px;
    background: var(--paper);
    font-size: 0.9rem;
    line-height: 1.3;
}

/* ---------- How it works ---------- */

.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 880px) {
    .step-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.6rem 1.5rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--card);
    box-shadow: var(--lift-sm);
}

.step p {
    margin-bottom: 1.1rem;
    color: var(--ink-soft);
}

.step-no {
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    margin-bottom: 0.5rem;
    border: 2.5px solid var(--red);
    border-radius: 52% 46% 55% 45% / 47% 55% 45% 53%;
    color: var(--red-ink);
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
    transform: rotate(-6deg);
}

.mini-pick {
    display: grid;
    gap: 0.5rem;
}

.mini-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
}

.mini-row::before {
    content: "";
    flex: none;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--line-strong);
    border-radius: 5px;
    background: var(--card);
}

.mini-row.on::before {
    border-color: var(--check-bg);
    background: var(--check-bg) var(--check-mark) center / 85% no-repeat;
}

.mini-row.off {
    color: var(--ink-soft);
    text-decoration: line-through;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
}

.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.mini-tags i,
.mini-names i,
.mini-grades i,
.mini-fresh i {
    font-style: normal;
}

.mini-tags i {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--navy-soft);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.8rem;
}

.mini-qr {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mini-qr .qr {
    flex: none;
    width: 5.4rem;
    height: 5.4rem;
    border-radius: 8px;
}

.mini-names {
    display: grid;
    flex: 1;
    gap: 0.35rem;
}

.mini-names i {
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    font-size: 0.85rem;
    white-space: nowrap;
}

.mini-names i.on {
    border-color: var(--ink);
    background: var(--navy-soft);
    font-weight: 700;
}

.mini-grades {
    display: grid;
    gap: 0.1rem;
}

.mini-grades span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.2rem 0.1rem;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
}

.mini-grades span:last-child {
    border-bottom: 0;
}

.mini-grades b {
    color: var(--red-ink);
    font-family: var(--font-hand);
    font-size: 1.55rem;
    line-height: 1.1;
}

/* ---------- Features ---------- */

.bento {
    display: grid;
    gap: 1.1rem;
}

@media (min-width: 720px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .tile-bank {
        grid-column: span 2;
    }
}

@media (min-width: 1040px) {
    .bento {
        grid-template-columns: repeat(3, 1fr);
    }

    .tile-light {
        grid-column: span 2;
    }
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--card);
    overflow: hidden;
}

.tile h3 {
    text-wrap: balance;
}

.tile p {
    margin-bottom: 1.1rem;
    color: var(--ink-soft);
}

.tile-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tile-bank {
    display: grid;
    gap: 1.5rem;
    background: var(--red-soft);
    border-color: transparent;
}

.tile-bank h3 {
    font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem);
}

@media (min-width: 720px) {
    .tile-bank {
        grid-template-columns: 1fr 1.05fr;
        align-items: end;
        padding: 2rem;
    }
}

.shelf {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    height: 12rem;
    padding: 0 0.6rem;
    border-bottom: 0.55rem solid #6b4b2e;
    border-radius: 0 0 4px 4px;
}

.book {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0 0.7rem;
    border-radius: 0.45rem 0.45rem 0.15rem 0.15rem;
    color: #fff;
    box-shadow: inset -0.4rem 0 0 rgba(0, 0, 0, 0.14), inset 0 0.45rem 0 rgba(255, 255, 255, 0.14);
}

.book b {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
}

.book i {
    font-style: normal;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    opacity: 0.92;
}

.b-a1 { height: 86%; background: #ae4030; }
.b-a2 { height: 100%; background: #f2b134; color: #211c32; }
.b-b1 { height: 94%; background: #237a59; }
.b-b1p { height: 82%; background: #2c6fb5; }
.b-b2 { height: 90%; background: #e2735e; color: #211c32; }
.b-c1 { height: 78%; background: #211c32; }

@media (prefers-color-scheme: dark) {
    /* navy would vanish on the dark tile */
    .b-c1 {
        background: #5e5869;
    }
}

.mini-fresh {
    display: grid;
    gap: 0.3rem;
}

.mini-fresh .who {
    font-weight: 700;
}

.mini-fresh .when {
    margin-top: 0.3rem;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 600;
}

.mini-fresh .qs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.mini-fresh i {
    padding: 0.22rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.mini-fresh i.seen {
    color: var(--ink-soft);
    text-decoration: line-through;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
}

.chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: auto 0 0;
    padding: 0;
}

.chips li {
    padding: 0.4rem 0.8rem;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper);
    font-size: 0.88rem;
    font-weight: 600;
}

.chips li:nth-child(3n + 1) {
    border-color: var(--ink);
    background: var(--navy-soft);
}

.tile-game {
    background: var(--sun);
    border-color: transparent;
}

.ring {
    display: block;
    width: 11rem;
    height: 11rem;
    margin: auto auto 0;
}

.ring-track {
    fill: none;
    stroke: var(--line-strong);
    stroke-width: 1.4;
    stroke-dasharray: 2 4;
}

.ring text {
    fill: var(--ink);
    font: 700 9px var(--font-body);
    text-anchor: middle;
    dominant-baseline: central;
}

.ring-done {
    fill: var(--green);
}

/* As in the game (wordgame.css): the letter being asked is navy; red there would mean a wrong answer. */
.ring-now {
    fill: var(--ink);
}

.ring text.done,
.ring text.now {
    fill: #fff;
}

@media (prefers-color-scheme: dark) {
    .ring text.done,
    .ring text.now {
        fill: #15121d;
    }
}

.ring .ring-clue {
    font: italic 600 13px var(--font-display);
}

.ring .ring-hint {
    fill: var(--ink-soft);
    font: 700 7px var(--font-body);
    letter-spacing: 0.04em;
}

.mini-table {
    display: grid;
    grid-template-columns: 1.15fr repeat(3, 1fr);
    padding: 0;
    overflow: hidden;
    border-style: solid;
    border-color: var(--line);
    font-variant-numeric: tabular-nums;
}

.mini-table span {
    padding: 0.5rem 0.55rem;
    border-bottom: 1px solid var(--line);
    text-align: center;
    font-weight: 600;
}

.mini-table span:nth-last-child(-n + 4) {
    border-bottom: 0;
}

.mini-table .th {
    background: var(--paper-deep);
    color: var(--ink-soft);
    font-size: 0.8rem;
}

.mini-table .td-name {
    text-align: left;
    font-weight: 700;
}

.mini-switch {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-style: solid;
    font-weight: 600;
}

.switch {
    position: relative;
    flex: none;
    width: 2.7rem;
    height: 1.55rem;
    border-radius: 999px;
    background: var(--green);
}

.switch i {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.mini-switch b {
    margin-left: auto;
    color: var(--red-ink);
    font-family: var(--font-hand);
    font-size: 1.55rem;
    line-height: 1;
    white-space: nowrap;
}

.mini-offline {
    position: relative;
    display: grid;
    gap: 0.45rem;
    width: 100%;
    max-width: 19rem;
    border-style: solid;
    background: var(--card);
}

.off-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
}

.off-reload {
    width: 1.05rem;
    height: 1.05rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16 10a6 6 0 1 1-1.8-4.3M16 3.5v3.2h-3.2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16 10a6 6 0 1 1-1.8-4.3M16 3.5v3.2h-3.2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.off-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
}

.off-row b {
    margin-left: auto;
    padding: 0.15rem 0.55rem;
    border-radius: 8px;
    background: var(--navy-soft);
    color: var(--ink);
    font-size: 0.85rem;
}

.off-row .ok {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--ink);
}

.off-note {
    justify-self: end;
    margin-top: 0.1rem;
    color: var(--red-ink);
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1;
    transform: rotate(-3deg);
}

.signal {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 0.95rem;
}

.signal i {
    width: 0.28rem;
    border-radius: 1px;
    background: currentColor;
}

.signal i:nth-child(1) { height: 35%; }
.signal i:nth-child(2) { height: 65%; opacity: 0.35; }
.signal i:nth-child(3) { height: 100%; opacity: 0.35; }

@media (min-width: 1040px) {
    .tile-light {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }

    .tile-light .tile-text {
        flex: 1 1 0;
        max-width: 30rem;
    }

    .tile-light .tile-text p {
        margin-bottom: 0;
    }

    .tile-light .mini-offline {
        margin-top: 0;
        flex: 0 0 18rem;
    }
}

/* ---------- Audience ---------- */

.duo {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 880px) {
    .duo {
        grid-template-columns: 1fr 1fr;
    }
}

.duo-card {
    position: relative;
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    border-radius: var(--r);
    overflow: hidden;
}

.duo-card h3 {
    margin: 0.3rem 0 1.4rem;
    font-size: clamp(1.55rem, 1.1rem + 1.4vw, 2.05rem);
    line-height: 1.15;
    max-width: 22ch;
}

.duo-tag {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1;
}

.duo-teacher {
    background-color: var(--sun);
    background-image: repeating-linear-gradient(transparent 0 2.2rem, color-mix(in srgb, var(--line-strong) 30%, transparent) 2.2rem calc(2.2rem + 1px));
}

.duo-teacher .duo-tag {
    color: var(--red-ink);
}

.duo-school {
    background: var(--band);
    color: var(--band-text);
}

.duo-school .duo-tag {
    color: var(--yellow);
}

.duo-card .ticks {
    gap: 0.75rem;
    font-size: 1.02rem;
}

/* ---------- Pricing ---------- */

.plans-wrap {
    position: relative;
}

.period-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.period-switch {
    display: flex;
    width: fit-content;
    margin: 0 auto clamp(2rem, 4vw, 2.75rem);
    padding: 0.3rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    box-shadow: var(--lift-sm);
}

.period-switch label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.45rem 1.25rem;
    border-radius: 999px;
    color: var(--ink-soft);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.save {
    color: var(--red-ink);
    font-family: var(--font-hand);
    font-size: 1.2rem;
    line-height: 1;
}

#donem-ay:checked ~ .period-switch label[for="donem-ay"],
#donem-yil:checked ~ .period-switch label[for="donem-yil"] {
    background: var(--ink);
    color: var(--paper);
}

#donem-yil:checked ~ .period-switch .save {
    color: var(--yellow);
}

@media (prefers-color-scheme: dark) {
    /* the chosen label is cream in the dark theme: the light theme's red reads on it */
    #donem-yil:checked ~ .period-switch .save {
        color: #ae4030;
    }
}

#donem-ay:focus-visible ~ .period-switch label[for="donem-ay"],
#donem-yil:focus-visible ~ .period-switch label[for="donem-yil"] {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.by-year {
    display: none;
}

.by-month,
#donem-yil:checked ~ .plans .by-year {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
}

#donem-yil:checked ~ .plans .by-month {
    display: none;
}

.plans {
    display: grid;
    gap: 1.25rem;
    max-width: 30rem;
    margin-inline: auto;
}

@media (min-width: 940px) {
    .plans {
        grid-template-columns: repeat(3, 1fr);
        max-width: none;
    }

    .plan-featured {
        margin-block: -0.9rem;
    }
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--card);
}

.plan h3 {
    font-size: 1.55rem;
}

.plan-for {
    margin: 0.3rem 0 1.3rem;
    color: var(--ink-soft);
}

.plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
    min-height: 3.25rem;
    margin-bottom: 1.5rem;
}

.amount {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.7rem;
    line-height: 1;
    letter-spacing: -0.025em;
}

.per {
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 600;
}

.plan-list {
    flex: 1;
    align-content: start;
    margin-bottom: 1.9rem;
}

.plan-button {
    width: 100%;
}

.plan-featured {
    padding-block: 2.6rem 2.25rem;
    border-color: transparent;
    background: var(--band);
    color: var(--band-text);
    box-shadow: var(--lift);
}

.plan-featured .plan-for,
.plan-featured .per {
    color: var(--band-soft);
}

.plan-flag {
    position: absolute;
    top: -0.9rem;
    right: 1.5rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: var(--yellow);
    color: #211c32;
    font-weight: 800;
    font-size: 0.85rem;
    transform: rotate(3deg);
}

.pricing-note {
    margin-top: 2.25rem;
    color: var(--ink-soft);
    text-align: center;
}

/* ---------- FAQ ---------- */

.faq {
    padding-top: 0;
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 940px) {
    .faq-grid {
        grid-template-columns: 0.85fr 1.15fr;
        gap: 4.5rem;
        align-items: start;
    }

    .faq .section-head {
        position: sticky;
        top: 6rem;
    }
}

.faq-list details {
    border-bottom: 1px solid var(--line-strong);
}

.faq-list details:first-child {
    border-top: 1px solid var(--line-strong);
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 44px;
    padding: 1.15rem 0;
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "";
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    border: 1.5px solid var(--line-strong);
    border-radius: 50%;
    background:
        linear-gradient(var(--ink), var(--ink)) center / 0.7rem 2px no-repeat,
        linear-gradient(var(--ink), var(--ink)) center / 2px 0.7rem no-repeat,
        var(--card);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-list details[open] summary::after {
    transform: rotate(45deg);
}

.faq-list summary:hover {
    color: var(--red-ink);
}

.faq-list details p {
    max-width: 62ch;
    padding: 0 2.5rem 1.4rem 0;
    color: var(--ink-soft);
}

/* ---------- Closing call ---------- */

.cta {
    padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.cta-box {
    position: relative;
    padding: clamp(2.75rem, 6vw, 4.75rem) clamp(1.5rem, 5vw, 4rem);
    border-radius: calc(var(--r) + 8px);
    background-color: var(--band);
    background-image: radial-gradient(rgba(246, 242, 233, 0.08) 1px, transparent 1.3px);
    background-size: 22px 22px;
    color: var(--band-text);
    text-align: center;
    overflow: hidden;
}

.cta-box .scribble {
    color: var(--yellow);
}

.cta-box h2 {
    max-width: 18ch;
    margin-inline: auto;
}

.lp .cta-box h2 em {
    color: var(--yellow);
}

.cta-box > p:not(.scribble) {
    margin-top: 1rem;
    color: var(--band-soft);
    font-size: 1.1rem;
}

.cta-box .hero-actions {
    justify-content: center;
    margin-bottom: 0;
}

/* ---------- Footer ---------- */

.foot {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--line);
    background: var(--paper-deep);
}

.foot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
}

.foot-brand,
.foot-contact {
    grid-column: 1 / -1;
}

.foot .brand-logo img {
    height: 2rem;
}

.foot-brand p {
    max-width: 22rem;
    margin-top: 0.75rem;
    color: var(--ink-soft);
}

@media (min-width: 860px) {
    .foot-grid {
        grid-template-columns: 1.8fr 1fr 1fr 1.2fr 1.2fr;
    }

    .foot-brand,
    .foot-contact {
        grid-column: auto;
    }
}

.foot-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.lp .foot-col h2 {
    margin-bottom: 0.1rem;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.foot-col a {
    padding-block: 0.4rem;
    text-decoration: none;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.foot-col a:hover {
    text-decoration: underline;
    text-decoration-color: var(--red);
}

.foot-legal {
    margin-top: 2.5rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

/* ---------- Motion (only for people who have not asked for less) ---------- */

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }

    .art-sheet { animation: lp-rise 0.7s 0.05s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
    .art-phone { animation: lp-rise-phone 0.8s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
    .art-qr { animation: lp-pop 0.5s 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
    .sheet-rows .s1 { animation: lp-write 0.45s 0.9s ease-out both; }
    .sheet-rows .s2 { animation: lp-write 0.45s 1.25s ease-out both; }
    .sheet-rows .s3 { animation: lp-write 0.45s 1.6s ease-out both; }
    .sheet-rows .s4 { animation: lp-write 0.45s 1.95s ease-out both; }
    .sheet-circle path { stroke-dasharray: 230; animation: lp-draw 0.8s 2.1s ease-out both; }
    .art-note { animation: lp-fade 0.6s 2.6s ease-out both; }
    .art-toast { animation: lp-toast 0.6s 2.3s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
    .waiting i { animation: lp-dots 1.2s infinite ease-in-out; }
    .waiting i:nth-child(2) { animation-delay: 0.15s; }
    .waiting i:nth-child(3) { animation-delay: 0.3s; }
    .pill-dot { animation: lp-pulse 2.4s 3s infinite ease-in-out; }

    @supports (animation-timeline: view()) {
        .step,
        .tile,
        .duo-card,
        .plan {
            animation: lp-reveal linear both;
            animation-timeline: view();
            animation-range: entry 5% entry 45%;
        }
    }
}

@keyframes lp-rise {
    from { opacity: 0; transform: translateY(1.5em) rotate(-1deg); }
}

@keyframes lp-rise-phone {
    from { opacity: 0; transform: translateY(2em) rotate(9deg); }
}

@keyframes lp-pop {
    from { opacity: 0; transform: scale(0.6) rotate(-16deg); }
}

@keyframes lp-write {
    from { opacity: 0; clip-path: inset(0 100% 0 0); }
    to { opacity: 1; clip-path: inset(0 0 0 0); }
}

@keyframes lp-draw {
    from { stroke-dashoffset: 230; }
    to { stroke-dashoffset: 0; }
}

@keyframes lp-fade {
    from { opacity: 0; }
}

@keyframes lp-toast {
    from { opacity: 0; transform: translateY(-1.2em) rotate(-2deg); }
}

@keyframes lp-dots {
    0%, 70%, 100% { transform: translateY(0); opacity: 0.5; }
    35% { transform: translateY(-0.3em); opacity: 1; }
}

@keyframes lp-pulse {
    0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 22%, transparent); }
    50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--red) 8%, transparent); }
}

@keyframes lp-reveal {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}
