/*
 * Ad landing pages. Plain CSS on purpose: no build step, no script, no third-party request.
 * The page's Content-Security-Policy forbids inline styles, so everything lives here,
 * including per-item variation (nth-child) and the per-platform colour themes.
 */

@font-face {
    font-family: "Unbounded";
    src: url("/landing/fonts/unbounded-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Onest";
    src: url("/landing/fonts/onest-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #0e1326;
    --ink-soft: #1c2444;
    --muted: #5b6478;
    --line: #e4e8f1;
    --white: #ffffff;
    --soft: #f4f6fb;
    --spark: #ffd166;

    /* Theme: the general page. Each platform page overrides these two below. */
    --a1: #1a3fd6;
    --a2: #8a4dff;

    --display: "Unbounded", "Arial Black", system-ui, sans-serif;
    --body: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

    --wrap: 70rem;
    --gutter: clamp(1.25rem, 5vw, 3rem);
    --section: clamp(3.5rem, 8vw, 6rem);
}

.theme-instagram {
    --a1: #9a148a;
    --a2: #ff5a3c;
}

.theme-tiktok {
    --a1: #065a69;
    --a2: #12b3a6;
}

.theme-youtube {
    --a1: #a50e1b;
    --a2: #ff4b3e;
}

.theme-facebook {
    --a1: #0c38ad;
    --a2: #3d8bff;
}

.theme-linkedin {
    --a1: #094a86;
    --a2: #1ea7d8;
}

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

html {
    background: var(--soft);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    /* Derived here, not on :root, so they follow the theme class on <body>. */
    --tint: color-mix(in srgb, var(--a2) 9%, white);
    --tint-line: color-mix(in srgb, var(--a2) 30%, white);
    --glow: color-mix(in srgb, var(--a1) 55%, transparent);

    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ol,
ul {
    margin: 0;
}

ol,
ul {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
}

svg {
    display: block;
}

:focus-visible {
    outline: 3px solid var(--spark);
    outline-offset: 3px;
}

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

h2 {
    font-family: var(--display);
    font-size: clamp(1.625rem, 1.15rem + 2vw, 2.5rem);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

/* Button ----------------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    min-height: 3.75rem;
    padding: 0.9rem 1.2rem 0.9rem 2rem;
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 16px 34px -12px rgb(0 0 0 / 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button__arrow {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--a1), var(--a2));
    transition: transform 0.2s ease;
}

.button__arrow::after {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    margin-left: -0.15rem;
    border-top: 2px solid var(--white);
    border-right: 2px solid var(--white);
    transform: rotate(45deg);
}

.button:hover .button__arrow {
    transform: translateX(3px);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 40px -12px rgb(0 0 0 / 0.5);
}

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

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(135deg, var(--a1) 0%, var(--a1) 26%, var(--a2) 100%);
    color: var(--white);
}

/* A fine dot grid that fades out towards the bottom. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgb(255 255 255 / 0.2) 1px, transparent 1.6px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

/* A soft light behind the illustration. */
.hero::after {
    content: "";
    position: absolute;
    top: -16rem;
    right: -12rem;
    z-index: -1;
    width: 48rem;
    height: 48rem;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgb(255 255 255 / 0.3), transparent);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding-block: 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.brand svg {
    width: 1.9rem;
    height: 1.9rem;
    fill: var(--white);
}

.hero__grid {
    display: grid;
    align-items: center;
    gap: 1.5rem;
    padding-block: clamp(1rem, 4vw, 3rem) clamp(2.5rem, 6vw, 5rem);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.95rem 0.4rem 0.75rem;
    border: 1px solid rgb(255 255 255 / 0.35);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.14);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}

.badge::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--spark);
    box-shadow: 0 0 0 4px rgb(255 209 102 / 0.28);
}

.hero h1 {
    margin-top: 1.25rem;
    font-family: var(--display);
    font-size: clamp(2.25rem, 1.2rem + 4.6vw, 4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.hero__intro {
    margin-top: 1.25rem;
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
    font-weight: 500;
    color: rgb(255 255 255 / 0.92);
}

.hero__action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    margin-top: 2rem;
}

/* The illustration. */

.scene {
    position: relative;
    width: 100%;
    max-width: 27rem;
    height: 21rem;
    margin-inline: auto;
}

.scene__ring {
    position: absolute;
    inset: 4% 9%;
    border: 1.5px dashed rgb(255 255 255 / 0.4);
    border-radius: 50%;
    animation: spin 50s linear infinite;
}

.scene__card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14.5rem;
    padding: 1.2rem;
    border: 1px solid rgb(255 255 255 / 0.42);
    border-radius: 1.75rem;
    background: rgb(255 255 255 / 0.18);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 60px -10px rgb(0 0 0 / 0.35);
    transform: translate(-50%, -50%) rotate(-5deg);
}

.scene__top {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.scene__avatar {
    flex: none;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--white), rgb(255 255 255 / 0.55));
    box-shadow: 0 0 0 3px rgb(255 255 255 / 0.35);
}

.scene__lines {
    display: grid;
    flex: 1;
    gap: 0.45rem;
}

.scene__lines i {
    height: 0.6rem;
    border-radius: 99px;
    background: rgb(255 255 255 / 0.9);
}

.scene__lines i:last-child {
    width: 58%;
    background: rgb(255 255 255 / 0.5);
}

.scene__tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.scene__tabs i {
    flex: 1;
    height: 1.8rem;
    border-radius: 0.7rem;
    background: rgb(255 255 255 / 0.24);
}

.scene__chart {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    height: 6.25rem;
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.14);
}

.scene__chart i {
    flex: 1;
    border-radius: 0.5rem 0.5rem 0.2rem 0.2rem;
    background: var(--white);
    transform-origin: bottom;
    animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.scene__chart i:nth-child(1) { height: 26%; animation-delay: 0.15s; }
.scene__chart i:nth-child(2) { height: 38%; animation-delay: 0.25s; }
.scene__chart i:nth-child(3) { height: 52%; animation-delay: 0.35s; }
.scene__chart i:nth-child(4) { height: 66%; animation-delay: 0.45s; }
.scene__chart i:nth-child(5) { height: 82%; animation-delay: 0.55s; }
.scene__chart i:nth-child(6) { height: 100%; animation-delay: 0.65s; }

.scene__bubble {
    position: absolute;
    display: grid;
    place-items: center;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    background: var(--white);
    color: var(--a1);
    box-shadow: 0 16px 30px -8px rgb(0 0 0 / 0.4);
    animation: float 5.5s ease-in-out infinite;
}

.scene__bubble svg {
    width: 1.75rem;
    height: 1.75rem;
}

.scene__bubble:nth-of-type(1) { top: 9%; left: 3%; animation-delay: -1s; }
.scene__bubble:nth-of-type(2) { top: 2%; right: 4%; width: 4.5rem; height: 4.5rem; color: var(--a2); animation-delay: -2.6s; }
.scene__bubble:nth-of-type(3) { bottom: 6%; left: 7%; width: 4.25rem; height: 4.25rem; color: var(--a2); animation-delay: -3.7s; }
.scene__bubble:nth-of-type(4) { right: 2%; bottom: 14%; animation-delay: -0.4s; }

@keyframes rise {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.7rem); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (min-width: 62rem) {
    .hero__grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 3rem;
        min-height: 33rem;
    }

    .scene {
        height: 28rem;
        max-width: 30rem;
    }

    .scene__card {
        width: 17.5rem;
        padding: 1.5rem;
    }

    .scene__avatar {
        width: 3.75rem;
        height: 3.75rem;
    }

    .scene__chart {
        height: 8rem;
    }

    .scene__bubble {
        width: 4.5rem;
        height: 4.5rem;
    }

    .scene__bubble svg {
        width: 2.1rem;
        height: 2.1rem;
    }

    .scene__bubble:nth-of-type(2),
    .scene__bubble:nth-of-type(3) {
        width: 5.25rem;
        height: 5.25rem;
    }
}

/* Ribbon ----------------------------------------------------------------- */

.ribbon {
    overflow: hidden;
    padding-block: 1rem;
    background: var(--ink);
    color: var(--white);
}

.ribbon__track {
    display: flex;
    width: max-content;
    animation: slide 45s linear infinite;
}

.ribbon__item {
    display: inline-flex;
    align-items: center;
    gap: 1.75rem;
    padding-right: 1.75rem;
    font-family: var(--display);
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
}

.ribbon__item::after {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 2px;
    background: var(--spark);
    transform: rotate(45deg);
}

/* The track holds the items twice over, so half its width is one seamless loop. */
@keyframes slide {
    to { transform: translateX(-50%); }
}

/* Find your profile ------------------------------------------------------ */

.find {
    padding-block: var(--section) clamp(2.5rem, 5vw, 3.5rem);
    scroll-margin-top: 1rem;
}

.find__panel {
    position: relative;
    overflow: hidden;
    padding: clamp(1.75rem, 5vw, 3.5rem);
    border-radius: 2rem;
    background: var(--tint);
}

.find__panel h2,
.find__panel .finder,
.find__lead {
    position: relative;
    z-index: 1;
}

.find__lead {
    max-width: 34rem;
    margin-top: 1.1rem;
    color: var(--muted);
}

/* The search icon again, oversized and faint, as a watermark. */
.find__mark {
    position: absolute;
    right: -2.5rem;
    bottom: -3.5rem;
    color: color-mix(in srgb, var(--a2) 18%, transparent);
    pointer-events: none;
}

.find__mark svg {
    width: 15rem;
    height: 15rem;
    stroke-width: 0.9;
}

.finder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 36rem;
    margin-top: 1.75rem;
    padding: 0.4rem 0.4rem 0.4rem 1.1rem;
    border: 2px solid var(--tint-line);
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 18px 40px -22px var(--glow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.finder:focus-within {
    border-color: var(--a1);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--a2) 22%, transparent);
}

.finder__icon {
    flex: none;
    color: var(--muted);
}

.finder__icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

.finder__input {
    flex: 1;
    min-width: 0;
    height: 3rem;
    padding: 0 0.25rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 1.0625rem;
    font-weight: 500;
}

.finder__input::placeholder {
    color: #8a93a6;
    font-weight: 400;
}

.finder__button {
    flex: none;
    height: 3rem;
    padding: 0 1.4rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--a1), var(--a2));
    color: var(--white);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.finder__button:hover {
    filter: brightness(1.1);
}

/* The search pop-up ------------------------------------------------------- */

.sheet {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    /* One column no wider than the screen; the panel is centred in it. */
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    overflow-y: auto;
    padding: clamp(1rem, 6vh, 5rem) 1rem 1rem;
    background: rgb(14 19 38 / 0.62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.sheet:target,
.sheet--open {
    display: grid;
}

html:has(.sheet:target),
html:has(.sheet--open) {
    overflow: hidden;
}

.sheet__backdrop {
    position: absolute;
    inset: 0;
}

.sheet__panel {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 32rem;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 1.75rem;
    background: var(--white);
    box-shadow: 0 40px 80px -20px rgb(0 0 0 / 0.55);
    animation: pop 0.22s ease both;
}

.sheet__panel h2 {
    padding-right: 3rem;
    font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);
}

.sheet__panel .finder {
    margin-top: 1.25rem;
    box-shadow: none;
}

.sheet__close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--soft);
    transition: background-color 0.2s ease;
}

.sheet__close:hover {
    background: var(--line);
}

.sheet__close::before,
.sheet__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
}

.sheet__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.sheet__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.sheet__message {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: var(--soft);
    color: var(--ink);
    font-size: 0.9688rem;
}

.results {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}

.result {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

button.result:hover {
    border-color: var(--tint-line);
    background: var(--tint);
}

.result--private {
    opacity: 0.6;
    cursor: default;
}

.result__avatar {
    flex: none;
    overflow: hidden;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--a1), var(--a2));
}

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

.result__text {
    display: grid;
    flex: 1;
    min-width: 0;
}

.result__name,
.result__handle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result__name {
    font-weight: 700;
}

.result__handle {
    color: var(--muted);
    font-size: 0.9375rem;
}

.result__go {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--ink);
}

.result__go::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    margin-left: -0.15rem;
    border-top: 2px solid var(--white);
    border-right: 2px solid var(--white);
    transform: rotate(45deg);
}

button.result:hover .result__go {
    background: var(--a1);
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(0.75rem) scale(0.98);
    }
}

/* Options ---------------------------------------------------------------- */

.options {
    padding-block: var(--section) clamp(2.5rem, 5vw, 3.5rem);
    scroll-margin-top: 1rem;
}

.options__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 2rem;
}

.option {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    min-height: 11.5rem;
    padding: 1.15rem;
    border: 1px solid transparent;
    border-radius: 1.6rem;
    background: var(--tint);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.option:hover {
    border-color: var(--tint-line);
    background: var(--white);
    box-shadow: 0 26px 50px -22px var(--glow);
    transform: translateY(-6px);
}

.option__icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, var(--a1), var(--a2));
    color: var(--white);
    box-shadow: 0 12px 20px -10px var(--a1);
    transition: transform 0.2s ease;
}

.option:hover .option__icon {
    transform: rotate(-8deg) scale(1.06);
}

.option__icon svg {
    width: 1.65rem;
    height: 1.65rem;
}

/* Each card leans its colour a little further, so the row is not one flat tone. */
li:nth-child(2) > .option .option__icon { filter: hue-rotate(14deg); }
li:nth-child(3) > .option .option__icon { filter: hue-rotate(28deg); }
li:nth-child(4) > .option .option__icon { filter: hue-rotate(-14deg); }
li:nth-child(5) > .option .option__icon { filter: hue-rotate(-28deg); }
li:nth-child(6) > .option .option__icon { filter: hue-rotate(42deg); }

.option__label {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 1.5rem;
    font-family: var(--display);
    font-size: clamp(1rem, 0.9rem + 0.6vw, 1.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.option__note {
    position: relative;
    z-index: 1;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.9688rem;
    font-variant-numeric: tabular-nums;
}

.option__go {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--ink);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.option__go::after {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    margin-left: -0.15rem;
    border-top: 2px solid var(--white);
    border-right: 2px solid var(--white);
    transform: rotate(45deg);
}

.option:hover .option__go {
    background: var(--a1);
    transform: translateX(3px);
}

/* The same icon again, oversized and faint, as a watermark in the corner. */
.option__mark {
    position: absolute;
    right: -1.4rem;
    bottom: -1.6rem;
    color: color-mix(in srgb, var(--a2) 20%, transparent);
    pointer-events: none;
}

.option__mark svg {
    width: 7.5rem;
    height: 7.5rem;
    stroke-width: 1;
}

/* Two columns on a phone: an odd one out takes the full row... */
.options__grid > li:last-child:nth-child(odd) {
    grid-column: span 2;
}

/* ...and when there are only one or two options, each gets a row of its own. */
.options__grid:not(:has(> :nth-child(3))) {
    grid-template-columns: minmax(0, 1fr);
}

.options__grid:not(:has(> :nth-child(3))) > li {
    grid-column: auto;
}

@media (min-width: 48rem) {
    .options__grid {
        grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
        gap: 1.25rem;
    }

    .options__grid > li:last-child:nth-child(odd) {
        grid-column: auto;
    }

    /* One or two options sit side by side again once there is room. */
    .options__grid:not(:has(> :nth-child(3))) {
        grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
    }

    /* Six options sit better as two rows of three... */
    .options__grid:has(> :nth-child(5)) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* ...and five as three over two, with the last two filling the row. */
    .options__grid:has(> :nth-child(5):last-child) {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .options__grid:has(> :nth-child(5):last-child) > li {
        grid-column: span 2;
    }

    .options__grid:has(> :nth-child(5):last-child) > li:nth-child(n + 4) {
        grid-column: span 3;
    }

    .option {
        min-height: 13.5rem;
        padding: 1.5rem;
    }

    .option__go {
        top: 1.5rem;
        right: 1.5rem;
    }
}

/* Steps and points ------------------------------------------------------- */

.bento {
    padding-block: 0 var(--section);
}

.bento__grid {
    display: grid;
    gap: 0.9rem;
}

.tile {
    position: relative;
    overflow: hidden;
    padding: 1.6rem;
    border-radius: 1.75rem;
}

.tile--steps {
    background: linear-gradient(150deg, var(--ink), var(--ink-soft));
    color: var(--white);
}

.tile--steps h2 {
    max-width: 14ch;
}

.steps {
    display: grid;
    gap: 1rem;
    margin-top: 1.75rem;
    counter-reset: step;
}

.steps li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--display);
    font-size: 1.0313rem;
    font-weight: 600;
    line-height: 1.25;
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    width: 1.1rem;
    color: var(--spark);
    font-weight: 800;
}

.steps__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgb(255 255 255 / 0.2);
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.1);
}

.steps__icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* The logo's rising bars, as a flourish. */
.tile__bars,
.closing__bars {
    position: absolute;
    bottom: 0;
    display: none;
    align-items: flex-end;
    gap: 0.6rem;
    pointer-events: none;
}

.tile__bars {
    right: 1.75rem;
}

.tile__bars i {
    width: 2.75rem;
    border-radius: 1.1rem 1.1rem 0 0;
    background: linear-gradient(to top, var(--a1), var(--a2));
}

.tile__bars i:nth-child(1) { height: 5rem; }
.tile__bars i:nth-child(2) { height: 8.5rem; }
.tile__bars i:nth-child(3) { height: 12.5rem; }

.tile--point {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: var(--tint);
}

.tile__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.2rem;
    background: var(--white);
    color: var(--a1);
    box-shadow: 0 12px 22px -14px var(--a1);
}

.tile__icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.tile--point h3 {
    font-family: var(--display);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.tile--point p {
    margin-top: 0.2rem;
    color: var(--muted);
}

@media (min-width: 30rem) {
    .tile__bars {
        display: flex;
    }
}

@media (min-width: 56rem) {
    .bento__grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        grid-template-rows: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .tile {
        padding: 2rem;
    }

    .tile--steps {
        grid-row: 1 / span 3;
        padding: 2.5rem;
    }

    .steps {
        gap: 1.25rem;
        margin-top: 2.25rem;
    }

    .steps li {
        font-size: 1.125rem;
    }

    .tile__bars {
        right: 2.5rem;
    }
}

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

.closing {
    padding-bottom: var(--section);
}

.closing__card {
    position: relative;
    display: grid;
    justify-items: start;
    gap: 1.75rem;
    overflow: hidden;
    padding: clamp(2.25rem, 6vw, 4.5rem);
    border-radius: 2.25rem;
    background: linear-gradient(135deg, var(--a1), var(--a2));
    color: var(--white);
}

.closing__card h2 {
    font-size: clamp(1.875rem, 1.2rem + 3.4vw, 3.5rem);
    font-weight: 800;
}

.closing__bars {
    right: clamp(2rem, 6vw, 5rem);
    gap: 0.9rem;
}

.closing__bars i {
    width: 4.5rem;
    border-radius: 1.75rem 1.75rem 0 0;
    background: rgb(255 255 255 / 0.2);
}

.closing__bars i:nth-child(1) { height: 7rem; }
.closing__bars i:nth-child(2) { height: 12rem; }
.closing__bars i:nth-child(3) { height: 17.5rem; }

@media (min-width: 48rem) {
    .closing__bars {
        display: flex;
    }
}

/* Legal pages ------------------------------------------------------------ */

.masthead {
    background: linear-gradient(135deg, var(--a1) 0%, var(--a1) 26%, var(--a2) 100%);
    color: var(--white);
}

.masthead h1 {
    padding-block: clamp(1rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3.5rem);
    font-family: var(--display);
    font-size: clamp(1.875rem, 1.2rem + 3vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.doc {
    padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section);
}

/* Error pages: the coloured band is the whole message. */

.masthead--notice {
    padding-bottom: clamp(3rem, 8vw, 6rem);
}

.masthead--notice h1 {
    padding-bottom: 1rem;
}

.masthead--notice p {
    max-width: 34rem;
    margin-bottom: 2rem;
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
    font-weight: 500;
    color: rgb(255 255 255 / 0.92);
}

/* Text written in the admin panel: style the plain elements it is made of. */
.prose {
    max-width: 46rem;
    overflow-wrap: break-word;
}

.prose > * + * {
    margin-top: 1rem;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    margin-top: 2.25rem;
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.prose h1,
.prose h2 {
    font-size: 1.5rem;
}

.prose h3,
.prose h4 {
    font-size: 1.1875rem;
}

.prose > :first-child {
    margin-top: 0;
}

.prose ul,
.prose ol {
    padding-left: 1.4rem;
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li + li {
    margin-top: 0.35rem;
}

.prose a {
    color: var(--a1);
    font-weight: 600;
    text-underline-offset: 0.18em;
}

.prose table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

.prose th,
.prose td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

/* Who runs this page ----------------------------------------------------- */

.legal {
    padding-block: 2.25rem 2.75rem;
    background: var(--soft);
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.legal p {
    max-width: 52rem;
}

.legal__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    margin-block: 0.9rem;
}

.legal a {
    color: var(--ink);
    font-weight: 600;
    text-underline-offset: 0.18em;
}

.legal a:hover {
    color: var(--a1);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
