/* ---------------------------------------------------------------------------
   sheeps.app

   The palette, the two families and the dial geometry are the iOS app's, taken
   from `apps/ios/App/Assets.xcassets/*.colorset` and
   `apps/ios/Sources/SheepsApp/Typography.swift`. Dark only, on purpose: the
   product has no light mode and neither does its front door.
   ------------------------------------------------------------------------- */

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/fonts/fraunces-latin.woff2') format('woff2');
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
        U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/fonts/fraunces-latin-ext.woff2') format('woff2');
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
        U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'General Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/general-sans-400.woff2') format('woff2');
}
@font-face {
    font-family: 'General Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/general-sans-500.woff2') format('woff2');
}
@font-face {
    font-family: 'General Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/general-sans-600.woff2') format('woff2');
}

:root {
    /* The app's six tokens, plus world.json's interactive accent. */
    --ink: #12101f;
    --plum: #241f38;
    --candle: #1e1b4e;
    --broccoli: #7fa37a;
    --fog: #a9a3cc;
    --moon: #f2ede4;
    --peri: #8e9be8;

    --line: color-mix(in srgb, var(--fog) 16%, transparent);
    --line-strong: color-mix(in srgb, var(--fog) 30%, transparent);
    --surface: color-mix(in srgb, var(--plum) 55%, transparent);

    /* One spacing scale. Everything on the page is a step on it. */
    --s1: 0.25rem;
    --s2: 0.5rem;
    --s3: 0.75rem;
    --s4: 1rem;
    --s5: 1.5rem;
    --s6: 2rem;
    --s7: 3rem;
    --s8: 4rem;
    --s9: 6rem;
    --s10: 9rem;
    --s11: 13rem;

    --display: 'Fraunces', 'Iowan Old Style', Palatino, Georgia, serif;
    --body: 'General Sans', ui-sans-serif, -apple-system, 'Segoe UI', sans-serif;

    --measure: 62ch;
    --gutter: clamp(1.25rem, 5vw, 4rem);
    --radius: 20px;

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--moon);
    font-family: var(--body);
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    line-height: 1.62;
    letter-spacing: 0.002em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

/* The riso grain the design prototype asked for, as one fixed overlay. */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0.4;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------- typography */

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 400;
    font-variation-settings:
        'SOFT' 24,
        'WONK' 1,
        'opsz' 120;
    letter-spacing: -0.022em;
    line-height: 1.02;
    text-wrap: balance;
    margin: 0;
}

.h-hero {
    /* Also bounded by viewport height: the hero has to hold a headline, a
       paragraph and a button above the fold on a short laptop screen too. */
    font-size: min(clamp(2.6rem, 1.5rem + 5vw, 6rem), 13.5svh);
}
.h-section {
    font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem);
}
.h-sub {
    font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
    letter-spacing: -0.014em;
    line-height: 1.16;
}

.lead {
    font-size: clamp(1.0625rem, 1rem + 0.42vw, 1.3125rem);
    line-height: 1.58;
    color: var(--fog);
    max-width: var(--measure);
    margin: var(--s5) 0 0;
    text-wrap: pretty;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--peri) 82%, var(--moon));
    margin: 0 0 var(--s4);
}

/* -------------------------------------------------------------------- shell */

.wrap {
    width: min(100%, 1240px);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.narrow {
    width: min(100%, 780px);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

section {
    position: relative;
    padding-block: clamp(5rem, 11vw, 11rem);
}

.rule {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: var(--s3) var(--s4);
    background: var(--plum);
    border-radius: 0 0 12px 0;
}
.skip:focus {
    left: 0;
}

:focus-visible {
    outline: 2px solid var(--peri);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------------------------------------------------------------------- nav */

.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: var(--s4);
    padding: var(--s4) var(--gutter);
    transition:
        background 400ms var(--ease),
        backdrop-filter 400ms var(--ease),
        border-color 400ms var(--ease);
    border-bottom: 1px solid transparent;
}
.nav[data-stuck='true'] {
    background: color-mix(in srgb, var(--ink) 78%, transparent);
    backdrop-filter: blur(16px) saturate(1.2);
    border-bottom-color: var(--line);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 500;
    font-variation-settings:
        'SOFT' 40,
        'WONK' 1;
    letter-spacing: -0.02em;
    text-decoration: none;
    margin-right: auto;
}
.wordmark img {
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.langs {
    display: flex;
    gap: var(--s1);
    font-size: 0.8125rem;
    color: var(--fog);
}
.langs a {
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    text-decoration: none;
    transition:
        color 200ms,
        background 200ms;
}
.langs a:hover {
    color: var(--moon);
    background: var(--surface);
}
.langs [aria-current] {
    color: var(--ink);
    background: var(--moon);
    font-weight: 500;
}

@media (max-width: 559px) {
    /* Three things do not fit across a 375px bar. The wordmark and the
       language switch stay; the store link is repeated three times below. */
    .nav > .btn {
        display: none;
    }
}

/* ------------------------------------------------------------------ buttons */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-family: var(--body);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    text-decoration: none;
    border: 1px solid transparent;
    transition:
        transform 260ms var(--ease),
        box-shadow 260ms var(--ease),
        background 260ms var(--ease);
    will-change: transform;
}
.btn--primary {
    background: var(--moon);
    color: var(--ink);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 10px 40px -12px color-mix(in srgb, var(--peri) 70%, transparent);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 18px 50px -14px color-mix(in srgb, var(--peri) 90%, transparent);
}
.btn--ghost {
    border-color: var(--line-strong);
    color: var(--moon);
}
.btn--ghost:hover {
    background: var(--surface);
    transform: translateY(-2px);
}
.btn--sm {
    padding: 0.55rem 1.05rem;
    font-size: 0.8125rem;
}
.btn svg {
    width: 1.05em;
    height: 1.05em;
    flex: none;
}

/* --------------------------------------------------------------------- hero */

.hero {
    position: relative;
    isolation: isolate; /* or the negative-z media paints behind <body> */
    min-height: 100svh;
    display: grid;
    align-items: end;
    padding-block: var(--s9) var(--s8);
    overflow: clip;
}
.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero__media video,
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* The footage is a dawn forest. Cool it and take it down toward the app's
       night — this is a page about a dark room. */
    filter: saturate(0.78) brightness(0.52) contrast(1.05) hue-rotate(-8deg);
}
.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        /* the ground the copy sits on */
        linear-gradient(
            to top,
            var(--ink) 0%,
            color-mix(in srgb, var(--ink) 92%, transparent) 22%,
            color-mix(in srgb, var(--ink) 55%, transparent) 52%,
            color-mix(in srgb, var(--ink) 28%, transparent) 100%
        ),
        /* darker on the reading side, so the type never fights the forest */
        linear-gradient(
                100deg,
                color-mix(in srgb, var(--ink) 88%, transparent) 0%,
                color-mix(in srgb, var(--ink) 40%, transparent) 46%,
                transparent 72%
            ),
        /* and a plum vignette, which is what the app does at the edges */
        radial-gradient(130% 100% at 50% 40%, transparent 34%, color-mix(in srgb, var(--candle) 40%, transparent) 100%);
}
.hero__inner {
    position: relative;
}
.hero .h-hero {
    max-width: 11ch;
}
.hero .lead {
    max-width: 46ch;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s4);
    margin-top: var(--s6);
}
.hero__note {
    font-size: 0.8125rem;
    color: var(--fog);
    margin: 0;
}
@media (max-width: 559px) {
    .hero__note {
        width: 100%;
    }
}

.scrollcue {
    position: absolute;
    left: 50%;
    bottom: var(--s5);
    translate: -50% 0;
    z-index: 1;
    font-size: 0.6875rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--fog) 70%, transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s2);
}
.scrollcue::after {
    content: '';
    width: 1px;
    height: 42px;
    background: linear-gradient(var(--fog), transparent);
    animation: cue 2.6s var(--ease) infinite;
    transform-origin: top;
}
@media (max-width: 899px) {
    /* It would sit on top of the call to action, and a phone does not need
       telling that a page scrolls. */
    .scrollcue {
        display: none;
    }
}
@media (min-width: 900px) {
    /* Out of the call to action's way, once there is a margin to put it in. */
    .scrollcue {
        left: auto;
        right: var(--gutter);
        bottom: var(--s7);
        translate: none;
    }
}

@keyframes cue {
    0% {
        scale: 1 0.2;
        opacity: 0;
    }
    35% {
        scale: 1 1;
        opacity: 0.9;
    }
    100% {
        scale: 1 1;
        opacity: 0;
    }
}

/* -------------------------------------------------------------------- beats */

.beat {
    display: grid;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 900px) {
    /* A fixed media track, so the prose column is the same width whichever
       side the clip is on. A symmetric `1fr 0.86fr` is not symmetric once the
       media swaps into the wider track. */
    .beat {
        grid-template-columns: minmax(0, 1fr) 360px;
    }
    .beat:nth-child(even) {
        grid-template-columns: 360px minmax(0, 1fr);
    }
    .beat:nth-child(even) .beat__media {
        order: -1;
    }
}

.beat__media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 9 / 16;
    max-height: 68svh;
    max-width: 360px;
    margin-inline: auto;
    width: 100%;
    background: var(--plum);
    box-shadow:
        0 40px 120px -50px #000,
        0 0 0 1px var(--line);
}
.beat__media video,
.beat__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) brightness(0.86);
}
.beat__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, color-mix(in srgb, var(--ink) 55%, transparent), transparent 44%);
}

.beat__label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fog);
    padding-bottom: var(--s3);
    border-bottom: 1px solid var(--line);
    margin-bottom: var(--s5);
}
.beat__body {
    color: var(--fog);
    font-size: clamp(1rem, 0.96rem + 0.3vw, 1.1875rem);
    max-width: 52ch;
    margin: var(--s5) 0 0;
    text-wrap: pretty;
}

/* ------------------------------------------------------------------- reveal */

.reveal {
    text-align: center;
    background: radial-gradient(
        90% 70% at 50% 30%,
        color-mix(in srgb, var(--candle) 55%, transparent),
        transparent 70%
    );
}
.reveal .lead {
    margin-inline: auto;
    text-align: center;
}

/* Four lines that get shorter, softer and further apart — the language decay,
   demonstrated rather than described. */
.dissolve {
    list-style: none;
    margin: clamp(3rem, 7vw, 6rem) auto 0;
    padding: 0;
    max-width: 46ch;
    text-align: left;
    font-family: var(--display);
    font-variation-settings:
        'SOFT' 60,
        'WONK' 1;
}
.dissolve li {
    color: var(--moon);
    line-height: 1.28;
    text-wrap: pretty;
}
.dissolve li:nth-child(1) {
    font-size: clamp(1.15rem, 1rem + 0.9vw, 1.7rem);
    margin-bottom: 1.6rem;
}
.dissolve li:nth-child(2) {
    font-size: clamp(1.05rem, 0.95rem + 0.7vw, 1.5rem);
    opacity: 0.82;
    margin: 0 0 2.4rem 8%;
}
.dissolve li:nth-child(3) {
    font-size: clamp(0.98rem, 0.9rem + 0.5vw, 1.32rem);
    opacity: 0.6;
    margin: 0 0 3.6rem 16%;
}
.dissolve li:nth-child(4) {
    font-size: clamp(0.92rem, 0.88rem + 0.3vw, 1.15rem);
    opacity: 0.38;
    margin-left: 24%;
}

.decay {
    margin-top: clamp(4rem, 9vw, 8rem);
    padding-top: var(--s7);
    border-top: 1px solid var(--line);
    max-width: var(--measure);
    margin-inline: auto;
    text-align: left;
}
.reveal .decay .lead {
    text-align: left;
    margin-inline: 0;
}

/* --------------------------------------------------------------------- dial */

.dial {
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--plum) 40%, transparent) 30%, transparent);
}
.dial__stage {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--ink) 70%, var(--plum));
    box-shadow: 0 40px 120px -60px #000;
}
.dial__preview {
    font-family: var(--display);
    font-variation-settings:
        'SOFT' 70,
        'WONK' 1;
    font-size: clamp(1.35rem, 1.05rem + 1.5vw, 2.35rem);
    line-height: 1.2;
    min-height: 3.6em;
    display: flex;
    align-items: center;
    text-wrap: pretty;
    transition:
        opacity 320ms var(--ease),
        filter 320ms var(--ease);
}
.dial__preview[data-swapping='true'] {
    opacity: 0;
    filter: blur(4px);
}
.dial__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s4);
    margin-top: var(--s7);
    margin-bottom: var(--s4);
}
.dial__level {
    font-size: 0.8125rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--peri);
}
.dial__hint {
    font-size: 0.8125rem;
    color: var(--fog);
}

.dial input[type='range'] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 30px;
    background: transparent;
    cursor: grab;
}
.dial input[type='range']:active {
    cursor: grabbing;
}
.dial input[type='range']::-webkit-slider-runnable-track {
    height: 3.5px; /* DialSpec: a 3.5px arc */
    border-radius: 999px;
    background: linear-gradient(90deg, var(--peri) var(--fill, 0%), var(--line-strong) var(--fill, 0%));
}
.dial input[type='range']::-moz-range-track {
    height: 3.5px;
    border-radius: 999px;
    background: var(--line-strong);
}
.dial input[type='range']::-moz-range-progress {
    height: 3.5px;
    border-radius: 999px;
    background: var(--peri);
}
.dial input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 30px; /* DialSpec: a 30px knob */
    height: 30px;
    margin-top: -13.25px;
    border-radius: 50%;
    background: var(--moon);
    border: 6px solid var(--ink);
    box-shadow:
        0 0 0 1px var(--line-strong),
        0 8px 24px -6px color-mix(in srgb, var(--peri) 80%, transparent);
    transition: box-shadow 260ms var(--ease);
}
.dial input[type='range']::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--moon);
    border: 6px solid var(--ink);
    box-shadow: 0 0 0 1px var(--line-strong);
}

.dial__ticks {
    display: flex;
    justify-content: space-between;
    margin-top: var(--s3);
    font-size: 0.75rem;
    color: color-mix(in srgb, var(--fog) 75%, transparent);
}
.dial__ticks span {
    flex: 1;
    text-align: center;
}
.dial__ticks span:first-child {
    text-align: left;
}
.dial__ticks span:last-child {
    text-align: right;
}
.dial__ticks [data-on='true'] {
    color: var(--moon);
}
.dial__foot {
    margin: var(--s6) 0 0;
    font-size: 0.875rem;
    color: var(--fog);
}

/* --------------------------------------------------------------- marquee */

.marquee {
    margin-top: clamp(3rem, 6vw, 4.5rem);
    display: grid;
    gap: var(--s5);
    /* The rows are `width: max-content`; without this they widen the document
       rather than running past its edge. */
    overflow: hidden;
    /* Fade the rows out at both edges rather than cutting them. */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__row {
    display: flex;
    gap: var(--s5);
    width: max-content;
    animation: slide 64s linear infinite;
}
.marquee__row--back {
    animation-direction: reverse;
    animation-duration: 78s;
}
.marquee:hover .marquee__row {
    animation-play-state: paused;
}
@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.theme {
    flex: none;
    width: clamp(150px, 19vw, 208px);
    text-align: center;
}
.theme img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    background: color-mix(in srgb, var(--plum) 60%, var(--ink));
    border: 1px solid var(--line);
}
.theme span {
    display: block;
    margin-top: var(--s3);
    font-size: 0.8125rem;
    color: var(--fog);
}

.avoid {
    margin-top: clamp(3.5rem, 7vw, 6rem);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--plum) 34%, transparent);
    max-width: 68ch;
}
.avoid p {
    color: var(--fog);
    margin: var(--s4) 0 0;
}

/* ------------------------------------------------------------------- voices */

.voices {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid var(--line);
}
.voice {
    display: grid;
    gap: var(--s2) var(--s6);
    align-items: baseline;
    padding: var(--s5) 0;
    border-bottom: 1px solid var(--line);
    transition:
        background 300ms var(--ease),
        padding-inline 300ms var(--ease);
}
@media (min-width: 700px) {
    .voice {
        grid-template-columns: 12rem 1fr;
    }
    .voice:hover {
        background: color-mix(in srgb, var(--plum) 30%, transparent);
        padding-inline: var(--s4);
    }
}
.voice__name {
    font-family: var(--display);
    font-size: 1.5rem;
    font-variation-settings:
        'SOFT' 40,
        'WONK' 1;
}
.voice__line {
    color: var(--fog);
    margin: 0;
}

/* -------------------------------------------------------------------- night */

.grid2 {
    display: grid;
    gap: 1px;
    margin-top: clamp(3rem, 6vw, 4.5rem);
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
@media (min-width: 780px) {
    .grid2 {
        grid-template-columns: 1fr 1fr;
    }
}
.card {
    background: var(--ink);
    padding: clamp(1.75rem, 4vw, 2.75rem);
}
.card p {
    color: var(--fog);
    margin: var(--s4) 0 0;
    text-wrap: pretty;
}

/* ------------------------------------------------------------------ pricing */

.plans {
    display: grid;
    gap: var(--s5);
    margin-top: clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 720px) {
    .plans {
        grid-template-columns: 1fr 1fr;
    }
}
.plan {
    position: relative;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--plum) 30%, transparent);
}
.plan[data-featured='true'] {
    border-color: color-mix(in srgb, var(--peri) 55%, transparent);
    background: color-mix(in srgb, var(--candle) 42%, transparent);
    box-shadow: 0 30px 90px -50px color-mix(in srgb, var(--peri) 90%, transparent);
}
.plan__badge {
    position: absolute;
    top: -0.75rem;
    right: 1.5rem;
    max-width: calc(100% - 3rem);
    white-space: nowrap;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--peri);
    color: var(--ink);
    font-weight: 600;
}
.plan__name {
    font-size: 0.8125rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fog);
    margin: 0;
}
.plan__price {
    font-family: var(--display);
    font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem);
    font-variation-settings:
        'SOFT' 20,
        'WONK' 1;
    letter-spacing: -0.03em;
    margin: var(--s3) 0 0;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.plan__per {
    font-family: var(--body);
    font-size: 0.9375rem;
    color: var(--fog);
    letter-spacing: 0;
}
.plan__note {
    color: var(--fog);
    margin: var(--s3) 0 0;
    font-size: 0.9375rem;
}

.credits {
    margin-top: var(--s7);
    padding-top: var(--s7);
    border-top: 1px solid var(--line);
    max-width: var(--measure);
}
.credits p {
    color: var(--fog);
    margin: var(--s3) 0 0;
}

/* ------------------------------------------------------------------- closer */

.closer {
    text-align: center;
    padding-block: clamp(6rem, 14vw, 13rem);
}
.closer__sheep {
    width: clamp(160px, 24vw, 260px);
    height: auto;
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
    border-radius: 40px;
    filter: drop-shadow(0 30px 70px color-mix(in srgb, var(--candle) 90%, transparent));
}
.closer .lead {
    margin-inline: auto;
    max-width: 48ch;
}
.closer .btn {
    margin-top: var(--s7);
}

/* ------------------------------------------------------------------- footer */

.footer {
    border-top: 1px solid var(--line);
    padding-block: var(--s7) var(--s8);
    font-size: 0.875rem;
    color: var(--fog);
}
.footer__grid {
    display: grid;
    gap: var(--s6);
}
@media (min-width: 800px) {
    .footer__grid {
        grid-template-columns: 1.4fr 1fr;
        align-items: start;
    }
}
.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2) var(--s5);
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer a {
    text-decoration-color: var(--line-strong);
    text-underline-offset: 3px;
    transition: color 200ms;
}
.footer a:hover {
    color: var(--moon);
}
.footer__disclaimer {
    max-width: 58ch;
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: color-mix(in srgb, var(--fog) 82%, transparent);
}
.footer__base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--s4);
    margin-top: var(--s7);
    padding-top: var(--s5);
    border-top: 1px solid var(--line);
    font-size: 0.8125rem;
}

/* -------------------------------------------------------------- legal pages */

.legal {
    padding-block: clamp(7rem, 14vw, 10rem) clamp(4rem, 8vw, 7rem);
}
.legal__date {
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fog);
    margin: var(--s5) 0 0;
}
.legal h2 {
    font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.9rem);
    margin: clamp(3rem, 6vw, 4.5rem) 0 var(--s4);
    padding-top: var(--s5);
    border-top: 1px solid var(--line);
}
.legal p,
.legal li {
    color: color-mix(in srgb, var(--moon) 78%, var(--fog));
    text-wrap: pretty;
}
.legal p {
    margin: 0 0 var(--s4);
}
.legal ul {
    margin: 0 0 var(--s4);
    padding-left: 1.15rem;
}
.legal li {
    margin-bottom: var(--s3);
}
.legal li::marker {
    color: var(--peri);
}
.legal dl {
    margin: 0 0 var(--s4);
}
.legal dt {
    font-family: var(--display);
    font-size: 1.1875rem;
    font-variation-settings:
        'SOFT' 40,
        'WONK' 1;
    color: var(--moon);
    margin-top: var(--s5);
}
.legal dd {
    margin: var(--s2) 0 0;
    color: color-mix(in srgb, var(--moon) 78%, var(--fog));
}
.legal a {
    color: var(--peri);
    text-underline-offset: 3px;
}

.legal .note {
    margin: var(--s5) 0;
    padding: var(--s5);
    border-left: 2px solid var(--peri);
    border-radius: 0 12px 12px 0;
    background: color-mix(in srgb, var(--plum) 40%, transparent);
    font-size: 0.9375rem;
}
.legal .note p:last-child {
    margin-bottom: 0;
}

.legal table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--s5) 0;
    font-size: 0.875rem;
}
.legal caption {
    text-align: left;
    color: var(--fog);
    font-size: 0.8125rem;
    padding-bottom: var(--s3);
}
.legal th,
.legal td {
    text-align: left;
    padding: var(--s3) var(--s4) var(--s3) 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.legal th {
    color: var(--moon);
    font-weight: 500;
    white-space: nowrap;
}
.legal td {
    color: color-mix(in srgb, var(--moon) 74%, var(--fog));
}
.table-scroll {
    overflow-x: auto;
}

.contactcard {
    margin: var(--s5) 0;
    padding: clamp(1.5rem, 3.5vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--plum) 34%, transparent);
}
.contactcard address {
    font-style: normal;
    line-height: 1.9;
}
.todo {
    display: inline-block;
    padding: 0.05em 0.45em;
    border-radius: 6px;
    background: color-mix(in srgb, #c2703f 34%, transparent);
    border: 1px dashed color-mix(in srgb, #e2a06f 60%, transparent);
    color: #f0c39c;
    font-size: 0.9em;
}

/* ----------------------------------------------------------------- reveals */

[data-anim] {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 900ms var(--ease),
        transform 900ms var(--ease);
}
[data-anim][data-shown='true'] {
    opacity: 1;
    transform: none;
}
[data-anim-delay='1'] {
    transition-delay: 90ms;
}
[data-anim-delay='2'] {
    transition-delay: 180ms;
}
[data-anim-delay='3'] {
    transition-delay: 270ms;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    [data-anim] {
        opacity: 1;
        transform: none;
    }
    .marquee__row {
        animation: none;
    }
}
