/* ==========================================================================
   Everworlds — the game's website.

   Look: josephgoss.com (dark ink, film grain, Bricolage Grotesque, pill
   buttons, a live canvas hero, letters that show a picture through them).
   Structure: roam.community (feature rows with a framed shot and a mono tag,
   a card grid, a "Good to know" FAQ, a closing call to action, a footer).
   Colours: taken from the game itself (gem cyan, sky, grass, lava).
   ========================================================================== */

:root {
    --bg: #050608;
    --bg-deep: #030405;
    --surface: #0d1015;
    --ink: #f6f3ee;
    --ink-dim: rgba(246, 243, 238, 0.66);
    --ink-faint: rgba(246, 243, 238, 0.45);
    --line: rgba(255, 255, 255, 0.13);
    --line-strong: rgba(255, 255, 255, 0.26);
    --glass: rgba(255, 255, 255, 0.06);

    /* from the game */
    --gem: #68efe3;
    --gem-deep: #2bb3a8;
    --sky: #8ee7ff;
    --grass: #5cbf4a;
    --lava: #ff8a2a;
    --gold: #ffd166;

    --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --shell: 1140px;
    --r-panel: 20px;
    --shadow: 0 30px 70px -34px rgba(0, 0, 0, .9);
    --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* the game's colours as soft glows behind everything below the hero */
    background:
        radial-gradient(50% 40% at 8% 32%, rgba(255, 138, 42, .08), transparent 70%),
        radial-gradient(45% 40% at 92% 55%, rgba(92, 191, 74, .08), transparent 70%),
        radial-gradient(55% 35% at 50% 98%, rgba(104, 239, 227, .08), transparent 70%),
        var(--bg);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
    margin: 0;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

.shell {
    width: min(100% - 3rem, var(--shell));
    margin-inline: auto;
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 2rem, var(--shell));
    }
}

.mono,
.mono-label {
    font-family: var(--mono);
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}

.mono-label {
    color: var(--ink-dim);
}

/* Film grain over everything (josephgoss.com) */
.grain {
    position: fixed;
    inset: -50%;
    z-index: 50;
    pointer-events: none;
    opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-3%, 2%); }
    40% { transform: translate(2%, -3%); }
    60% { transform: translate(-2%, -1%); }
    80% { transform: translate(3%, 3%); }
    100% { transform: translate(0, 0); }
}

/* magnetic elements get their pull through `translate`, leaving `transform` free */
.mag {
    transition: translate .35s var(--ease);
}

/* ================================================================ TOP BAR */

.topbar {
    position: fixed;
    top: 14px;
    left: 50%;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 6px 6px 18px;
    border-radius: 999px;
    background: rgba(12, 13, 16, .66);
    border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
    translate: -50% -160%;
    opacity: 0;
    transition: translate .55s var(--ease), opacity .4s;
}

.topbar.show {
    translate: -50% 0;
    opacity: 1;
}

.tb-name {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -.03em;
    margin-right: 8px;
    white-space: nowrap;
    -webkit-background-clip: text;
    background-clip: text;
}

.tb-name:hover {
    color: transparent;
    background-image: linear-gradient(90deg, var(--grass), var(--sky), var(--gem), var(--lava));
}

.tb-link {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink-dim);
    transition: color .2s, background .2s;
}

.tb-link:hover,
.tb-link[aria-current="true"] {
    color: var(--ink);
    background: var(--glass);
}

.tb-play {
    margin-left: 4px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    color: #05070a;
    font-weight: 700;
    font-size: .92rem;
    box-shadow: 0 8px 26px -10px rgba(104, 239, 227, .9);
    transition: transform .3s var(--ease);
}

.tb-play:hover {
    transform: scale(1.05);
}

@media (max-width: 520px) {
    .tb-link {
        padding: 7px 7px;
        font-size: .86rem;
    }

    .tb-faq {
        display: none;
    }

    .tb-name {
        margin-right: 2px;
    }
}

/* =================================================================== HERO */

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background: #070b16;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    touch-action: manipulation;
}

/* vignette, and the ground fading into the page like the game's depth shading */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 50% 42%, transparent 35%, rgba(5, 6, 8, .55) 100%),
        linear-gradient(to bottom, transparent 82%, var(--bg));
}

/* clicks go through the empty parts of the hero to the canvas */
.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 16px 14vh;
    pointer-events: none;
}

.hero-inner a,
.hero-inner .store {
    pointer-events: auto;
}

.hero-label {
    margin-bottom: clamp(10px, 2vh, 18px);
    animation: fade-up 1s var(--ease) .1s backwards;
}

.name {
    font-size: clamp(2.6rem, 11.5vw, 8.4rem);
    line-height: .86;
    letter-spacing: -0.045em;
    font-weight: 600;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
}

/* Each letter swells as the cursor passes, and a block from the game shows
   through it: the block is the letter's background clipped to the glyph, and
   the cream fill fades out on top. Shadows come from `filter`, because
   text-shadow would paint over the block inside the glyph. */
.name .ch {
    --h: 0;
    display: inline-block;
    /* grow the box past the tight line-height so the block covers the whole glyph */
    padding: .1em 0 .05em;
    margin: -.1em 0 -.05em;
    font-weight: 600;
    color: var(--ink);
    background: var(--img, none) center top / auto 100% repeat-x;
    image-rendering: pixelated;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: rgb(246 243 238 / calc(1 - var(--h)));
    filter:
        drop-shadow(0 0 1.5px rgb(255 255 255 / calc(var(--h) * .8)))
        drop-shadow(0 10px 26px rgb(0 0 0 / .5))
        brightness(calc(1 + var(--h) * .12));
    transform: translateY(calc(var(--h) * -0.07em)) scale(calc(1 + var(--h) * .06));
    animation: rise 1.1s var(--ease) backwards;
    animation-delay: calc(var(--n, 0) * 60ms + 150ms);
}

@keyframes rise {
    from {
        opacity: 0;
        translate: 0 .5em;
        filter: blur(12px);
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        translate: 0 20px;
    }
}

.intro {
    margin: clamp(16px, 3vh, 26px) auto 0;
    max-width: 30ch;
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    line-height: 1.4;
    color: var(--ink-dim);
    text-shadow: 0 2px 20px rgba(0, 0, 0, .7);
    animation: fade-up 1s var(--ease) .6s backwards;
}

.actions {
    margin-top: clamp(22px, 4vh, 34px);
    display: flex;
    justify-content: center;
    animation: fade-up 1s var(--ease) .75s backwards;
}

/* the game has keyboard controls only so far */
.touch-note {
    display: none;
    margin-top: 12px;
    font-size: .9rem;
    color: var(--ink-faint);
    animation: fade-up 1s var(--ease) .85s backwards;
}

@media (hover: none) {
    .touch-note {
        display: block;
    }
}

.stores {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    animation: fade-up 1s var(--ease) .9s backwards;
}

/* store badges, shaped like roam.community's */
.store {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem .85rem .45rem .75rem;
    border-radius: 11px;
    border: 1px solid var(--line-strong);
    background: rgba(0, 0, 0, .5);
    line-height: 1.05;
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink-dim);
    cursor: default;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.store i {
    font-size: 1.15rem;
}

.store span {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store small {
    font-size: .62rem;
    font-weight: 500;
    color: var(--ink-faint);
    letter-spacing: .02em;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 18px;
    translate: -50% 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--ink-dim);
    animation: bob 2.4s ease-in-out infinite;
}

.scroll-cue svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes bob {
    0%,
    100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* the gem counter from the game, for gems knocked out of the hero's ground */
.haul {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 12px;
    border-radius: 999px;
    background: rgba(26, 35, 53, .86);
    border: 1px solid rgba(142, 231, 255, .25);
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .8);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    animation: fade-up .5s var(--ease);
}

.haul[hidden],
.haul-toast[hidden] {
    display: none;
}

.haul.bump {
    animation: bump .35s var(--ease);
}

@keyframes bump {
    40% { transform: scale(1.14); }
}

.gem-ico {
    width: 20px;
    height: 18px;
    image-rendering: pixelated;
    shape-rendering: crispEdges;
}

.haul-cap {
    font-weight: 500;
    color: var(--ink-faint);
    font-size: .85rem;
}

.haul-toast {
    position: absolute;
    top: 70px;
    right: 18px;
    z-index: 2;
    max-width: min(300px, calc(100vw - 36px));
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    color: #0a0b0d;
    font-weight: 600;
    font-size: .92rem;
    line-height: 1.35;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8);
    animation: fade-up .45s var(--ease);
}

@media (max-width: 600px) {
    .name {
        font-size: 14.5vw;
    }

    .hl-more {
        display: none;
    }

    .hero-inner {
        padding-bottom: 18vh;
    }
}

/* ================================================================ BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.04rem;
    line-height: 1;
    transition: translate .35s var(--ease), box-shadow .3s, transform .3s var(--ease);
}

.btn:hover {
    transform: scale(1.04);
}

.btn .arrow {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .3s var(--ease);
}

.btn:hover .arrow {
    transform: translate(2px, -2px);
}

/* white pill with a gem-coloured glow (josephgoss.com's Roam button, in Everworlds colours) */
.btn-play {
    background: #fff;
    color: #05070a;
    box-shadow: 0 12px 44px -12px rgba(104, 239, 227, .95);
}

.btn-play:hover {
    box-shadow: 0 16px 60px -8px rgba(104, 239, 227, 1);
}

/* ========================================================= FEATURE ROWS */

.rows,
.gems {
    display: grid;
    gap: clamp(4rem, 10vw, 8rem);
}

.rows {
    padding-top: clamp(4rem, 9vw, 7rem);
}

.gems {
    padding-top: clamp(4rem, 10vw, 8rem);
}

.row {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 5vw, 4.5rem);
}

.row.flip .frame {
    order: 2;
}

.frame {
    position: relative;
    border-radius: var(--r-panel);
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .6s var(--ease), border-color .3s;
}

.frame img {
    width: 100%;
    image-rendering: pixelated;
}

/* a little glare, like the layer stack on josephgoss.com */
.frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(255, 255, 255, .14), transparent 40%);
}

.row:hover .frame {
    transform: translateY(-4px) rotate(-.4deg);
    border-color: var(--line-strong);
}

.row.flip:hover .frame {
    transform: translateY(-4px) rotate(.4deg);
}

.tag {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    color: var(--ink-faint);
    margin-bottom: 1rem;
}

.tag .kind {
    color: var(--ink);
}

.tag .sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--line-strong);
}

.tag .live {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--grass);
}

.tag .live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.row-title {
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.03em;
}

.row-body {
    margin-top: 1rem;
    color: var(--ink-dim);
    max-width: 44ch;
}

/* splice recipes as little block chips */
.splices {
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
    display: grid;
    gap: .55rem;
    color: var(--ink-faint);
    font-weight: 600;
}

.splices li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .28rem .7rem .28rem .4rem;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: .9rem;
}

.chip::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: var(--c);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .2);
}

.c-dirt { --c: #a8653a; }
.c-lava { --c: #ff8a2a; }
.c-wood { --c: #d9a75c; }
.c-stone { --c: #a29d97; }
.c-rock { --c: #5a2b26; }
.c-cave { --c: #4a3520; }
.c-door { --c: #c98f4a; }

/* gem cap slider */
.cap {
    margin-top: 1.6rem;
    padding: 1.1rem 1.2rem 1.2rem;
    border-radius: 16px;
    background: var(--glass);
    border: 1px solid var(--line);
    max-width: 420px;
}

.cap-label {
    display: block;
    color: var(--ink-faint);
    margin-bottom: .6rem;
}

.cap input[type="range"] {
    width: 100%;
    accent-color: var(--gem);
    cursor: pointer;
}

.cap-out {
    margin-top: .6rem;
    color: var(--ink-dim);
    font-variant-numeric: tabular-nums;
}

.cap-lvl {
    color: var(--ink);
    font-weight: 700;
}

.cap-gems {
    color: var(--gem);
    font-size: 1.15em;
}

@media (max-width: 860px) {
    .row {
        grid-template-columns: 1fr;
    }

    .row.flip .frame {
        order: 0;
    }
}

/* ================================================================= ONLINE */

.online {
    padding-top: clamp(5rem, 12vw, 9rem);
}

.sec-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.kicker {
    margin-bottom: 1rem;
}

.soon {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 209, 102, .4);
    color: var(--gold);
    background: rgba(255, 209, 102, .07);
}

.sec-title {
    font-size: clamp(2.1rem, 4.8vw, 3.6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.035em;
}

.sec-lead {
    margin-top: 1rem;
    color: var(--ink-dim);
    font-size: 1.12rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.card {
    padding: 1.4rem 1.4rem 1.5rem;
    border-radius: var(--r-panel);
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
    border: 1px solid var(--line);
    transition: border-color .3s, transform .4s var(--ease);
}

.card:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
}

.card i {
    font-size: 1.25rem;
    color: var(--sky);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.2;
}

.card p {
    margin-top: .5rem;
    color: var(--ink-dim);
    font-size: .98rem;
}

@media (max-width: 900px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

/* search: copy beside a mock of the top-3 list */
.search {
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(1.4rem, 4vw, 2.6rem);
    border-radius: 26px;
    border: 1px solid var(--line);
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(142, 231, 255, .09), transparent 70%),
        rgba(255, 255, 255, .025);
}

.search-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.05;
}

.search-copy > p {
    margin-top: .8rem;
    color: var(--ink-dim);
}

.rules {
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .55rem;
    color: var(--ink-dim);
    font-size: .98rem;
}

.rules li {
    position: relative;
    padding-left: 1.3rem;
}

.rules li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--gem);
}

.search-mock {
    border-radius: 18px;
    background: #10141b;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 14px;
}

.sm-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #181d26;
    border: 1px solid rgba(142, 231, 255, .35);
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ink);
}

.sm-bar i {
    color: var(--ink-faint);
}

.sm-caret {
    width: 2px;
    height: 1.1em;
    margin-left: -6px;
    background: var(--sky);
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.sm-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.sm-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
}

.js .sm-list li {
    opacity: 0;
    translate: 0 8px;
    transition: opacity .4s var(--ease), translate .5s var(--ease);
    transition-delay: calc(var(--k) * 120ms);
}

.js .search-mock.found .sm-list li {
    opacity: 1;
    translate: 0 0;
}

.sm-rank {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(104, 239, 227, .12);
    color: var(--gem);
    font-weight: 800;
    font-size: .9rem;
}

.sm-name {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    color: var(--ink-dim);
}

.sm-name b {
    color: var(--ink);
}

.sm-name > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-name small {
    color: var(--gold);
    font-size: .8rem;
    font-weight: 600;
}

.sm-live {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: var(--grass);
    white-space: nowrap;
}

.sm-live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.sm-more {
    margin-top: 10px;
    text-align: center;
    font-size: .82rem;
    color: var(--ink-faint);
}

@media (max-width: 860px) {
    .search {
        grid-template-columns: 1fr;
    }
}

/* ======================================================= MONEY CAN'T BUY */

.cant {
    padding-top: clamp(6rem, 14vw, 10rem);
    text-align: center;
}

.cant-title {
    font-size: clamp(2.6rem, 8vw, 6rem);
    font-weight: 700;
    line-height: .95;
    letter-spacing: -.045em;
}

.cant-list {
    list-style: none;
    margin: clamp(1.8rem, 4vw, 2.8rem) auto 0;
    padding: 0;
    max-width: 52rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.cant-list li {
    position: relative;
    padding: .7rem 1.3rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--glass);
    font-size: clamp(1.05rem, 2.2vw, 1.4rem);
    font-weight: 600;
    letter-spacing: -.01em;
}

/* a crossed-out price tag before each */
.cant-list li::before {
    content: "$";
    display: inline-grid;
    place-items: center;
    width: 1.4em;
    height: 1.4em;
    margin-right: .55rem;
    border-radius: 50%;
    font-size: .75em;
    font-weight: 800;
    color: #ff8574;
    background:
        linear-gradient(135deg, transparent 46%, #ff8574 46% 54%, transparent 54%),
        rgba(255, 133, 116, .12);
    vertical-align: .1em;
}

.cant-lead {
    margin-top: 1.6rem;
    color: var(--ink-dim);
    font-size: 1.12rem;
}

/* ==================================================================== FAQ */

.know {
    padding-top: clamp(6rem, 13vw, 9rem);
}

.know-list {
    margin-top: 2.2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem clamp(2rem, 5vw, 4rem);
}

.know-list dt {
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.25;
}

.know-list dd {
    margin-top: .5rem;
    color: var(--ink-dim);
    max-width: 52ch;
}

@media (max-width: 760px) {
    .know-list {
        grid-template-columns: 1fr;
    }
}

/* ================================================================ CLOSING */

.closing {
    padding: clamp(6rem, 14vw, 10rem) 0 clamp(5rem, 11vw, 8rem);
    text-align: center;
}

.closing-title {
    font-size: clamp(2.3rem, 5.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
}

.closing-lead {
    margin: 1rem auto 2rem;
    color: var(--ink-dim);
    font-size: 1.12rem;
}

/* ================================================================= FOOTER */

.foot {
    border-top: 1px solid var(--line);
    background: var(--bg-deep);
    padding: 2.4rem 0 2.2rem;
    color: var(--ink-faint);
    font-size: .95rem;
}

.foot-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.foot-mark {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -.035em;
    color: var(--ink);
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.8rem;
}

.foot-links a {
    color: var(--ink-dim);
    transition: color .2s;
}

.foot-links a:hover {
    color: var(--ink);
}

.foot-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-size: .85rem;
}

.psst {
    font-style: italic;
}

/* ============================================================= REVEALS */

.js .reveal {
    opacity: 0;
    translate: 0 36px;
    transition: opacity 1s var(--ease), translate 1s var(--ease);
}

.js .reveal.in {
    opacity: 1;
    translate: 0 0;
}

/* ========================================================== ACCESSIBLE */

a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 4px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .js .reveal,
    .js .sm-list li {
        opacity: 1;
        translate: none;
    }
}
