/* Trade by Customer Engine: landing page. Brand tokens match ../guided-trade/static/css. */
@font-face {
    font-family: Inter;
    src: url("../assets/fonts/Inter-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --ink: #20352f;
    --ink-deep: #14241f;
    --forest: #215b48;
    --forest-deep: #174332;
    --cream: #f6f4ee;
    --paper: #fbfaf6;
    --sage: #e7eee7;
    --mint: #c1e9dc;
    --muted: #61716a;
    --line: #d9dfd7;
    --rule: #b1bdb5;
    --clay: #a65738;
    --ochre: #d9a85b;
    --amber-bg: #f5e9d8;
    --amber: #805118;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgb(32 53 47 / 6%), 0 4px 12px rgb(32 53 47 / 6%);
    --shadow-lg: 0 2px 4px rgb(32 53 47 / 4%), 0 24px 60px -12px rgb(32 53 47 / 22%);
    --shadow-xl: 0 40px 100px -20px rgb(20 36 31 / 40%);
    --radius: 14px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --gutter: clamp(16px, 4vw, 40px);
    /* fine paper grain, echoing the film's riso texture */
    --grain: 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%3CfeColorMatrix values='0 0 0 0 .13 0 0 0 0 .2 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

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

a {
    color: var(--forest);
    text-underline-offset: 4px;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

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

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: none;
}

.shell {
    width: min(1180px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

/* ---------- Brand lockup (brand.css) ---------- */
.lockup {
    display: inline-flex;
    align-items: baseline;
    gap: 0.42em;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.04em;
    white-space: nowrap;
    color: var(--ink);
    text-decoration: none;
}

.lockup-platform {
    font-weight: 650;
}

.lockup-divider {
    align-self: center;
    width: 1px;
    height: 1.05em;
    background: var(--rule);
}

.lockup-product {
    font-weight: 400;
    color: var(--muted);
}

.lockup-inverse {
    color: var(--cream);
}

.lockup-inverse .lockup-product {
    color: #b6c9bf;
}

.lockup-inverse .lockup-divider {
    background: #728c7f;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.25s var(--ease-out),
        background-color 0.2s,
        box-shadow 0.25s var(--ease-out);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--forest);
    color: var(--white);
    box-shadow: 0 1px 0 rgb(255 255 255 / 15%) inset, 0 10px 24px -10px rgb(33 91 72 / 70%);
}

.btn-primary:hover {
    background: var(--forest-deep);
    box-shadow: 0 1px 0 rgb(255 255 255 / 15%) inset, 0 16px 32px -12px rgb(33 91 72 / 80%);
}

.btn-primary::after {
    /* sheen on hover */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 28%) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.8s var(--ease-out);
}

.btn-primary:hover::after {
    transform: translateX(120%);
}

.btn-ghost {
    background: rgb(255 255 255 / 60%);
    border-color: var(--line);
    color: var(--ink);
}

.btn-ghost:hover {
    background: var(--white);
}

.btn-small {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

.btn-play {
    width: 0;
    height: 0;
    border-block: 6px solid transparent;
    border-left: 10px solid currentColor;
    margin-left: 2px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(246 244 238 / 82%);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 72px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-link {
    color: var(--muted);
    font-size: 14px;
    font-weight: 550;
    text-decoration: none;
    transition: color 0.2s;
}

.header-link:hover {
    color: var(--ink);
}

/* ---------- Shared type ---------- */
.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: var(--forest);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-label-inverse {
    color: var(--mint);
}

.eyebrow {
    padding: 7px 14px 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgb(255 255 255 / 55%);
    letter-spacing: 0.08em;
}

.eyebrow-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--forest);
}

.eyebrow-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--forest);
    opacity: 0;
    animation: ping 2.4s var(--ease-out) infinite;
}

@keyframes ping {
    0% {
        transform: scale(0.6);
        opacity: 0.7;
    }
    80%,
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.section-title {
    margin: 0;
    font-size: clamp(34px, 5.2vw, 64px);
    font-weight: 750;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.section-lede {
    max-width: 52ch;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: clamp(17px, 1.6vw, 20px);
}

/* The film's caption treatment: cream type on forest blocks. */
.caption-title {
    margin: 0;
    font-size: clamp(40px, 8.4vw, 108px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.caption-title-sm {
    font-size: clamp(34px, 5vw, 60px);
}

.caption-line {
    display: block;
}

.caption-line > span {
    display: inline;
    padding: 0.02em 0.22em 0.06em;
    background: var(--forest);
    color: var(--cream);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.caption-title em {
    font-style: normal;
    color: var(--mint);
}

/* ---------- Reveal on load / scroll ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.9s var(--ease-out) var(--d, 0s),
        transform 0.9s var(--ease-out) var(--d, 0s);
}

.js .reveal.is-in {
    opacity: 1;
    transform: none;
}

/* Above the fold: animate on load rather than waiting for an observer. */
.js .hero-inner .reveal {
    transition: none;
    animation: rise 0.9s var(--ease-out) var(--d, 0s) forwards;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 8vw, 100px);
    background:
        radial-gradient(60rem 30rem at 8% -10%, rgb(217 168 91 / 22%), transparent 70%),
        radial-gradient(50rem 30rem at 100% 10%, rgb(193 233 220 / 55%), transparent 70%),
        var(--cream);
    isolation: isolate;
}

.hero::before {
    /* fine paper grain, echoing the illustration's riso texture */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.35;
    background-image: var(--grain);
    pointer-events: none;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero .caption-title {
    margin-top: 4px;
}

.js .hero .caption-line > span {
    background-size: 0% 100%;
    background-image: linear-gradient(var(--forest), var(--forest));
    background-repeat: no-repeat;
    background-color: transparent;
    color: transparent;
    animation:
        caption-wipe 0.75s var(--ease-out) forwards,
        caption-ink 0.4s ease-out forwards;
}

.js .hero .caption-line > span em {
    color: transparent;
    animation: caption-mint 0.4s ease-out forwards;
}

.js .hero .caption-line:nth-child(1) > span {
    animation-delay: 0.1s, 0.4s;
}

.js .hero .caption-line:nth-child(2) > span {
    animation-delay: 0.28s, 0.58s;
}

.js .hero .caption-line:nth-child(2) > span em {
    animation-delay: 0.58s;
}

@keyframes caption-wipe {
    to {
        background-size: 100% 100%;
    }
}

@keyframes caption-ink {
    to {
        color: var(--cream);
    }
}

@keyframes caption-mint {
    to {
        color: var(--mint);
    }
}

.hero-lede {
    max-width: 52ch;
    margin: clamp(24px, 3vw, 36px) 0 0;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.55;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

/* ---------- Film ---------- */
.film-wrap {
    margin-top: clamp(48px, 7vw, 88px);
    perspective: 1600px;
}

.film {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: clamp(14px, 2vw, 24px);
    background: var(--ink);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgb(32 53 47 / 10%);
    transform-origin: 50% 0;
    transition: transform 0.2s linear;
}

.film-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--cream);
    cursor: pointer;
    text-align: left;
}

.film-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
    transform: scale(1.06);
    transition: transform 1.6s var(--ease-out);
}

.film-poster:hover .film-art {
    transform: scale(1.1) translateX(-1%);
}

.film-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgb(246 244 238 / 92%) 0%, rgb(246 244 238 / 55%) 32%, transparent 58%),
        linear-gradient(0deg, rgb(20 36 31 / 35%), transparent 40%);
}

.film-copy {
    position: absolute;
    left: clamp(20px, 5%, 64px);
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: clamp(14px, 2.4vw, 32px);
}

.film-lockup {
    display: grid;
    line-height: 1;
    color: var(--ink);
}

.film-lockup strong {
    font-size: clamp(32px, 6vw, 76px);
    font-weight: 750;
    letter-spacing: -0.055em;
}

.film-lockup small {
    margin-top: 0.5em;
    font-size: clamp(12px, 1.6vw, 20px);
    font-weight: 450;
    letter-spacing: -0.02em;
}

.film-caption {
    font-size: clamp(16px, 2.6vw, 34px);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.film-caption span {
    padding: 0.06em 0.25em;
    background: var(--forest);
    color: var(--cream);
}

.film-button {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: clamp(64px, 9vw, 112px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--forest);
    color: var(--cream);
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 50px -10px rgb(20 36 31 / 60%);
    transition: transform 0.35s var(--ease-out), background-color 0.2s;
}

.film-button svg {
    width: 34%;
    height: 34%;
}

.film-button-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgb(246 244 238 / 70%);
    animation: ring 2.6s var(--ease-out) infinite;
}

@keyframes ring {
    0% {
        transform: scale(0.85);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.film-poster:hover .film-button {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--forest-deep);
}

.film-meta {
    position: absolute;
    right: clamp(14px, 3%, 32px);
    bottom: clamp(12px, 3%, 28px);
    display: flex;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.film-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgb(20 36 31 / 72%);
    color: var(--cream);
    backdrop-filter: blur(6px);
}

.film iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--cream);
}

/* ---------- Hero decoration ---------- */
.leaf {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.leaf-a {
    width: clamp(120px, 16vw, 240px);
    left: -40px;
    top: 120px;
    transform: rotate(-20deg);
    animation: sway 9s ease-in-out infinite alternate;
}

.leaf-b {
    width: clamp(90px, 11vw, 170px);
    right: 4%;
    top: 70px;
    transform: rotate(150deg);
    animation: sway 11s ease-in-out infinite alternate-reverse;
}

.leaf-c {
    width: clamp(60px, 7vw, 110px);
    left: 12%;
    top: 46%;
    transform: rotate(60deg);
    opacity: 0.9;
    animation: sway 8s ease-in-out infinite alternate;
}

.leaf-d {
    width: clamp(36px, 4vw, 64px);
    right: 15%;
    top: 40%;
    opacity: 0.85;
}

@keyframes sway {
    to {
        translate: 0 -14px;
        rotate: 6deg;
    }
}

.film-wrap {
    position: relative;
}

.floats {
    position: absolute;
    inset: 0 0 auto;
    aspect-ratio: 16 / 9;
    z-index: 3;
    pointer-events: none;
}

.float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgb(255 255 255 / 92%);
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 40px -14px rgb(20 36 31 / 35%);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    white-space: nowrap;
    translate: 0 var(--py, 0px);
}

.js .float {
    opacity: 0;
    animation: float-in 0.9s var(--ease-out) forwards, bob 6s ease-in-out 1.8s infinite alternate;
}

.float small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.float b {
    color: var(--forest);
}

.float-a {
    left: -1%;
    top: 14%;
    animation-delay: 1s, 1.8s !important;
}

.float-b {
    right: -2%;
    top: 8%;
    animation-delay: 1.2s, 2.4s !important;
}

.float-b img {
    width: 52px;
    height: 34px;
    border-radius: 6px;
    background: var(--cream);
    object-fit: contain;
}

.float-c {
    display: grid;
    gap: 0;
    left: -2.5%;
    bottom: 16%;
    padding: 14px 18px;
    border-top: 3px solid var(--forest);
    animation-delay: 1.4s, 2s !important;
}

.float-c strong {
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.float-c span {
    color: var(--muted);
    font-size: 12px;
}

.float-d {
    right: -3%;
    bottom: 22%;
    background: var(--forest);
    border-color: var(--forest);
    color: var(--cream);
    animation-delay: 1.6s, 2.6s !important;
}

.float-d small {
    color: var(--mint);
}

.float-check {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--forest);
    font-weight: 800;
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes bob {
    to {
        transform: translateY(-8px);
    }
}

.film-wrap:has(.film.is-playing) .floats {
    display: none;
}

@media (max-width: 900px) {
    .float-a,
    .float-b {
        display: none;
    }

    .float {
        font-size: 12px;
    }

    .floats {
        aspect-ratio: 4 / 5;
    }

    .float {
        translate: none;
    }

    .film-meta {
        display: none;
    }

    .float-c {
        left: -6px;
        bottom: -18px;
        padding: 10px 14px;
    }

    .float-c strong {
        font-size: 24px;
    }

    .float-d {
        right: -6px;
        bottom: -14px;
    }

    .float-check {
        width: 24px;
        height: 24px;
    }
}

/* ---------- Journey rail (top of the walkthrough) ---------- */
.journey {
    margin-bottom: clamp(48px, 7vw, 88px);
}

.journey-rail {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.journey-rail::before,
.journey-rail::after {
    content: "";
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    top: 23px;
    height: 2px;
    background: var(--line);
}

.journey-rail::after {
    background: linear-gradient(90deg, var(--clay), var(--forest), var(--clay));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.8s var(--ease-out) 0.2s;
}

.journey.is-in .journey-rail::after {
    transform: scaleX(1);
}

.journey-rail li {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
    text-align: center;
}

.js .journey-rail li {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.6s var(--ease-out),
        transform 0.6s var(--ease-out);
    transition-delay: calc(var(--i) * 0.32s + 0.2s);
}

.journey.is-in .journey-rail li {
    opacity: 1;
    transform: none;
}

.journey-dot {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 17px;
    font-style: normal;
    font-weight: 800;
    box-shadow: 0 0 0 6px var(--cream);
}

.who-maya {
    background: var(--clay);
    color: var(--cream);
}

.who-trade {
    background: var(--mint);
    color: var(--forest);
}

.who-you {
    background: var(--forest);
    color: var(--cream);
}

.journey-who {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--forest);
}

.journey-what {
    max-width: 22ch;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

.journey-end {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 36px 0 0;
}

.journey-end span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 9px 12px;
    border-radius: 999px;
    background: var(--forest);
    color: var(--cream);
    font-size: 14px;
    font-weight: 650;
}

.journey-end span::before {
    content: "✓";
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--forest);
    font-size: 11px;
    font-weight: 800;
}

.js .journey-end span {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.5s var(--ease-out);
}

.js .journey.is-in .journey-end span {
    opacity: 1;
    transform: none;
}

.js .journey.is-in .journey-end span:nth-child(1) { transition-delay: 1.9s; }
.js .journey.is-in .journey-end span:nth-child(2) { transition-delay: 2.05s; }
.js .journey.is-in .journey-end span:nth-child(3) { transition-delay: 2.2s; }

@media (max-width: 760px) {
    .journey-rail {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 340px;
        margin-inline: auto;
    }

    .journey-rail::before,
    .journey-rail::after {
        left: 23px;
        right: auto;
        top: 24px;
        bottom: 24px;
        width: 2px;
        height: auto;
    }

    .journey-rail::after {
        background: linear-gradient(180deg, var(--clay), var(--forest), var(--clay));
        transform: scaleY(0);
        transform-origin: top;
    }

    .journey.is-in .journey-rail::after {
        transform: scaleY(1);
    }

    .journey-rail li {
        grid-template-columns: 48px 1fr;
        justify-items: start;
        align-items: center;
        column-gap: 16px;
        row-gap: 0;
        text-align: left;
    }

    .journey-dot {
        grid-row: span 2;
    }

    .journey-who {
        margin: 0;
        align-self: end;
    }

    .journey-what {
        max-width: none;
        align-self: start;
    }
}

/* ---------- The usual way: Maya's fortnight, as a scroll-driven scene ---------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.pain {
    --sky: #f6f4ee;
    --sky-2: #efe9dc;
    --land: #e3dccb;
    --label: var(--forest);
    position: relative;
    background: linear-gradient(180deg, var(--sky), var(--sky-2));
    transition: --sky 1s, --sky-2 1s;
}

/* The scene only works scroll-driven; without JS every beat would show at once. */
.no-js .pain {
    display: none;
}

/* Mood: morning → afternoon → dusk → night. It stays dark: the section ends on the problem. */
.pain[data-chapter="2"] { --sky: #f1ead9; --sky-2: #e9dfc8; --land: #dccfb4; }
.pain[data-chapter="3"] { --sky: #e2bf9a; --sky-2: #d6a47e; --land: #b98c69; }
.pain[data-chapter="4"] { --sky: #8e6a5b; --sky-2: #5b4a46; --land: #4a3d39; --label: #f0d4c2; }
.pain[data-chapter="5"] { --sky: #3c3d3f; --sky-2: #2a2e2d; --land: #232826; --label: #f0d4c2; }
.pain[data-chapter="6"] { --sky: #1f2a27; --sky-2: #14201c; --land: #101915; --label: var(--mint); }

@property --sky { syntax: "<color>"; inherits: true; initial-value: #f6f4ee; }
@property --sky-2 { syntax: "<color>"; inherits: true; initial-value: #efe9dc; }
@property --land { syntax: "<color>"; inherits: true; initial-value: #e3dccb; }

.pain-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 100px 0 32px;
    overflow: hidden;
}

/* The film's paper grain over the scene; heavier than the hero's so it reads on the flat shapes */
.pain-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .15 0 0 0 0 .13 0 0 0 .5 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
    pointer-events: none;
}

.pain-top {
    position: relative;
    text-align: center;
}

.pain-label {
    margin: 0 0 14px;
    color: var(--label);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.6s;
}

.pain-captions {
    display: grid;
    min-height: 2.4em;
    font-size: clamp(26px, 3.6vw, 52px);
}

.pcap {
    grid-area: 1 / 1;
    align-self: start;
    margin: 0;
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.045em;
}

.pcap span {
    display: table;
    margin: 0 auto;
    padding: 0.02em 0.24em 0.07em;
    background: var(--forest);
    color: var(--cream);
}

.pcap .pcap-you {
    background: var(--clay);
}

.js .pcap {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.35s ease-out,
        transform 0.5s var(--ease-out);
}

.js .pcap.on {
    opacity: 1;
    transform: none;
    transition-delay: 0.12s;
}

/* Tally: what one enquiry has cost so far. Slots are reserved so nothing shifts. */
.tally {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    color: var(--label);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.6s;
}

.tally li {
    padding: 5px 12px 6px;
    border: 1px solid color-mix(in srgb, var(--label) 35%, transparent);
    border-radius: 999px;
    white-space: nowrap;
    transition: border-color 0.6s;
}

.tally b {
    margin-right: 2px;
    font-size: 16px;
    font-weight: 800;
}

.tally .tally-end {
    border-color: var(--clay);
    background: var(--clay);
    color: #fff;
}

.js .tally li {
    opacity: 0;
    transform: scale(0.8);
    transition:
        opacity 0.35s ease-out,
        transform 0.5s var(--ease-out),
        border-color 0.6s;
}

.js .tally li.on {
    opacity: 1;
    transform: none;
    transition-delay: 0.35s;
}

/* The scene: a fixed-aspect stage; everything inside is positioned in percentages. */
.pain-scene {
    position: relative;
    width: min(1180px, 100% - 2 * var(--gutter), (100svh - 400px) * 1.9);
    aspect-ratio: 19 / 10;
    margin: 8px auto 0;
    container-type: inline-size;
    font-size: 1.15cqw;
}

.sun {
    position: absolute;
    left: 9%;
    top: calc(4% + var(--sun, 0) * 46%);
    width: 9%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #f2c46d;
    box-shadow: 0 0 0 1.4cqw rgb(242 196 109 / 22%);
    transition: top 1s var(--ease-out), background-color 1s, opacity 1s;
}

.pain[data-chapter="4"] .sun { background: #e98a5a; }
.pain[data-chapter="5"] .sun,
.pain[data-chapter="6"] .sun {
    top: 6%;
    width: 6%;
    background: #f3eee2;
    box-shadow: -1.2cqw 0.4cqw 0 0 var(--sky) inset;
}

.ground {
    position: absolute;
    left: -50vw;
    right: -50vw;
    bottom: 0;
    height: 11%;
    background: var(--land);
}

.prop {
    position: absolute;
}

.js .pain-scene [data-show] {
    opacity: 0;
    transform: var(--from, translateY(3cqw)) rotate(var(--r, 0deg));
    transition:
        opacity 0.45s ease-out,
        transform 0.75s var(--ease-out);
    pointer-events: none;
}

.js .pain-scene [data-show].on {
    opacity: 1;
    transform: rotate(var(--r, 0deg));
    transition-delay: calc(var(--k, 0) * 0.14s + 0.1s);
}

.house {
    left: 0;
    bottom: 8.5%;
    width: 30%;
}

.house .window-lit {
    transition: fill 1s;
}

.pain[data-chapter="5"] .window-lit,
.pain[data-chapter="6"] .window-lit {
    fill: #f2c46d;
}

/* As in the film: the car's roof comes up to Maya's chest, and both are dwarfed by the house. */
.car {
    left: 27%;
    bottom: 6%;
    width: 20%;
}

.hills {
    position: absolute;
    left: -10%;
    bottom: 10%;
    width: 120%;
    height: 22%;
}

.hill-back {
    fill: color-mix(in srgb, var(--land) 55%, var(--sky));
    transition: fill 1s;
}

.hill-front {
    fill: color-mix(in srgb, var(--land) 85%, var(--sky));
    transition: fill 1s;
}

.tree {
    position: absolute;
    left: -2%;
    bottom: 9%;
    width: 10%;
}

/* She stands in front of the car, so her feet sit just below its wheels. */
.pain-scene .maya {
    left: 43%;
    bottom: 5%;
    height: 33%;
}

/* The phone poses swap instantly; a cross-fade would briefly show two left arms. */
.maya-stress,
.maya-q,
.maya-mouth {
    transition: opacity 0.4s;
}

.maya-stress,
.maya-q {
    opacity: 0;
}

.pain[data-chapter="2"] .maya-stress,
.pain[data-chapter="5"] .maya-stress {
    opacity: 1;
    animation: twitch 0.6s ease-in-out infinite alternate;
}

.pain[data-chapter="3"] .maya-q,
.pain[data-chapter="4"] .maya-q {
    opacity: 1;
}

@keyframes twitch {
    to {
        transform: translate(1px, -1px);
    }
}

/* Her mood follows the story: hopeful, then fed up, then let down. */
.mouth-flat,
.mouth-frown,
.pain:is([data-chapter="2"], [data-chapter="3"], [data-chapter="4"], [data-chapter="5"], [data-chapter="6"]) .mouth-smile {
    opacity: 0;
}

.pain:is([data-chapter="2"], [data-chapter="3"], [data-chapter="4"]) .mouth-flat,
.pain:is([data-chapter="5"], [data-chapter="6"]) .mouth-frown {
    opacity: 1;
}

/* She looks at her phone, except during the phone tag, when it's at her ear. */
.maya-phone-ear,
.pain[data-chapter="2"] .maya-phone-hand {
    opacity: 0;
}

.pain[data-chapter="2"] .maya-phone-ear {
    opacity: 1;
}

.maya-screen {
    transition: fill 0.3s;
}

.pain[data-chapter="0"] .maya-screen,
.pain[data-chapter="1"] .maya-screen {
    fill: #fff;
    animation: glow 0.9s ease-in-out infinite alternate;
}

@keyframes glow {
    to {
        fill: #c1e9dc;
    }
}

/* Opening beat: Maya's wish and her search */
.wish {
    left: 51%;
    top: 18%;
    width: 18%;
    padding: 1cqw;
    border-radius: 2cqw;
    background: #fff;
    box-shadow: 0 1.4cqw 3cqw -1.4cqw rgb(32 53 47 / 35%);
    --from: translateY(2cqw) scale(0.92);
}

.wish img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 1.2cqw;
}

.wish p {
    margin: 0.9cqw 0.4cqw 0.2cqw;
    font-size: 1.35cqw;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* thought dots trailing down to Maya's head */
.wish::before,
.wish::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0.6cqw 1.4cqw -0.6cqw rgb(32 53 47 / 35%);
}

.wish::before {
    left: 4%;
    bottom: -2.2cqw;
    width: 1.8cqw;
    height: 1.8cqw;
}

.wish::after {
    left: -2%;
    bottom: -3.8cqw;
    width: 1cqw;
    height: 1cqw;
}

.search {
    right: 2%;
    top: 2cqw;
    width: 25%;
    padding: 1.2cqw;
    border-radius: 1.6cqw;
    background: #fff;
    box-shadow: 0 1.4cqw 3cqw -1.4cqw rgb(32 53 47 / 35%);
    --from: translateX(4cqw);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.8cqw;
    margin: 0 0 1cqw;
    padding: 0.8cqw 1.1cqw;
    border-radius: 999px;
    background: var(--cream);
    color: var(--ink);
    font-size: 1.2cqw;
    font-weight: 600;
}

.search-bar span {
    color: var(--muted);
    font-size: 1.6cqw;
    line-height: 1;
}

.search ul {
    display: grid;
    gap: 0.4cqw;
    margin: 0;
    padding: 0;
    list-style: none;
}

.search li {
    display: flex;
    align-items: center;
    gap: 1cqw;
    padding: 0.7cqw 0.4cqw;
    border-top: 1px solid var(--line);
}

.search b {
    display: block;
    font-size: 1.25cqw;
}

.search small {
    display: block;
    color: var(--muted);
    font-size: 1.05cqw;
    font-weight: 600;
}

.search .inst-badge {
    width: 2.6cqw;
    height: 2.6cqw;
    font-size: 1.2cqw;
}

/* Messages flying to installers */
.lines {
    inset: 0;
    width: 100%;
    height: 100%;
    --from: translateY(0);
}

.lines path {
    fill: none;
    stroke: var(--clay);
    stroke-width: 2;
    stroke-dasharray: 2 5;
    stroke-linecap: round;
    animation: march 1s linear infinite;
}

@keyframes march {
    to {
        stroke-dashoffset: -14;
    }
}

.installers {
    position: absolute;
    right: 2%;
    top: 4%;
    display: grid;
    gap: 1.4cqw;
    width: 25%;
}

.installer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1cqw;
    padding: 1.2cqw 1.4cqw;
    border-radius: 1.2cqw;
    background: #fff;
    box-shadow: 0 1.4cqw 3cqw -1.4cqw rgb(32 53 47 / 35%);
    --from: translateX(6cqw);
}

.installer b {
    display: block;
    font-size: 1.3cqw;
}

.installer small {
    display: block;
    color: var(--muted);
    font-size: 1.1cqw;
    font-weight: 600;
}

.inst-you {
    outline: 0.3cqw solid var(--clay);
    outline-offset: 0.3cqw;
}

.inst-you small {
    color: var(--clay);
    font-weight: 750;
}

.inst-badge {
    display: grid;
    flex: none;
    place-items: center;
    width: 3.2cqw;
    height: 3.2cqw;
    border-radius: 0.8cqw;
    color: #fff;
    font-size: 1.4cqw;
    font-weight: 800;
}

.inst-a { background: #c58f3d; }
.inst-b { background: #5f7d73; }
.inst-c { background: #8d6e8f; }

.van {
    bottom: 6%;
    width: 19%;
    --from: translateX(40cqw);
}

.js .pain-scene .van {
    transition:
        opacity 0.3s ease-out,
        transform 1.3s var(--ease-out);
}

.van-a {
    left: 55%;
    color: #c58f3d;
}

.van-b {
    left: 77%;
    color: #5f7d73;
    --k: 3;
}

/* Calendar */
.calendar {
    left: 51%;
    top: 5%;
    width: 20%;
    padding: 1.3cqw;
    border-radius: 1.2cqw;
    background: #fff;
    box-shadow: 0 1.6cqw 3.4cqw -1.4cqw rgb(32 53 47 / 40%);
    --from: translateY(-3cqw);
}

.cal-head {
    margin-bottom: 0.8cqw;
    color: var(--muted);
    font-size: 1.1cqw;
    font-weight: 650;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4cqw;
    text-align: center;
}

.cal-grid span {
    color: var(--muted);
    font-size: 0.9cqw;
    font-weight: 700;
}

.cal-grid i {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.4cqw;
    background: var(--sage);
}

.cal-grid i.off {
    background: var(--clay);
}

.cal-note,
.cal-empty {
    display: flex;
    align-items: center;
    gap: 0.6cqw;
    margin: 0.9cqw 0 0;
    font-size: 1.05cqw;
    font-weight: 650;
}

.off-key {
    width: 1cqw;
    height: 1cqw;
    border-radius: 0.25cqw;
    background: var(--clay);
}

.cal-empty b {
    color: var(--clay);
    font-size: 1.6cqw;
}

/* Phone tag */
.phone {
    left: 56%;
    top: 0;
    width: 20%;
    aspect-ratio: 9 / 16;
    padding: 1.4cqw 1cqw;
    border: 0.6cqw solid #1e2a26;
    border-radius: 2.4cqw;
    background: linear-gradient(180deg, #2c3a35, #1b2622);
    box-shadow: 0 3cqw 6cqw -2cqw rgb(0 0 0 / 45%);
    color: #fff;
    --from: translateY(8cqw) rotate(4deg);
}

.phone-notch {
    width: 30%;
    height: 0.7cqw;
    margin: -0.6cqw auto 0;
    border-radius: 0 0 0.6cqw 0.6cqw;
    background: #1e2a26;
}

.phone-time {
    margin: 0.8cqw 0 1cqw;
    font-size: 3.4cqw;
    font-weight: 300;
    letter-spacing: -0.04em;
    text-align: center;
}

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

.notifs li {
    display: flex;
    align-items: center;
    gap: 0.7cqw;
    padding: 0.7cqw 0.8cqw;
    border-radius: 0.9cqw;
    background: rgb(255 255 255 / 92%);
    color: var(--ink);
    font-size: 0.95cqw;
    line-height: 1.25;
    opacity: 0;
    transform: translateY(-1.5cqw) scale(0.94);
    transition:
        opacity 0.3s,
        transform 0.5s var(--ease-out);
}

.notifs b {
    display: block;
    font-size: 1.05cqw;
}

.phone.on .notifs li {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--k) * 0.45s + 0.5s);
}

.notifs i {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.2cqw;
    height: 2.2cqw;
    border-radius: 50%;
    font-size: 1.1cqw;
    font-style: normal;
    font-weight: 800;
}

.n-missed { background: #f6d9cc; color: var(--clay); }
.n-vm { background: var(--sage); color: var(--forest); font-size: 0.7cqw !important; letter-spacing: -0.1em; }

/* No price */
.bubble {
    max-width: 19%;
    margin: 0;
    padding: 1.1cqw 1.4cqw;
    border-radius: 1.4cqw;
    background: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5cqw;
    font-style: italic;
    line-height: 1.3;
    box-shadow: 0 1.4cqw 3cqw -1.4cqw rgb(0 0 0 / 50%);
    --from: translateY(2cqw) scale(0.9);
}

.bubble::after {
    content: "";
    position: absolute;
    bottom: -1cqw;
    left: 30%;
    border: 0.6cqw solid transparent;
    border-top: 0.8cqw solid #fff;
}

.bubble-a {
    left: 54%;
    top: 34%;
}

.bubble-b {
    left: 75%;
    top: 22%;
    --k: 3;
}

.tag {
    padding: 0.5cqw 1.1cqw;
    border-radius: 0.6cqw 2cqw 2cqw 0.6cqw;
    background: #f2c46d;
    color: var(--ink);
    font-size: 2cqw;
    font-weight: 800;
    letter-spacing: -0.04em;
    --from: scale(0.4);
}

.tag.on {
    animation: drift 3s ease-in-out infinite alternate;
}

.tag-1 { left: 30%; top: 14%; --r: -12deg; --k: 4; }
.tag-2 { left: 46%; top: 6%; --r: 8deg; --k: 5; }
.tag-3 { left: 20%; top: 32%; --r: 14deg; --k: 6; }

@keyframes drift {
    to {
        translate: 0 -1.2cqw;
    }
}

/* Mismatched quotes */
.quotes {
    position: absolute;
    left: 50%;
    top: 3%;
    width: 48%;
    height: 80%;
}

.quote {
    top: 0;
    width: 42%;
    padding: 1.4cqw 1.5cqw;
    border-radius: 0.6cqw;
    background: #fbf8f1;
    box-shadow: 0 2cqw 4cqw -1.6cqw rgb(0 0 0 / 55%);
    color: var(--ink);
    --from: translateY(-10cqw) rotate(20deg);
}

.quote:nth-child(1) { left: 0; top: 8%; }
.quote:nth-child(2) { left: 30%; top: 0; }
.quote:nth-child(3) { left: 58%; top: 12%; }

.quote small {
    display: block;
    color: var(--muted);
    font-size: 1cqw;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.quote b {
    display: block;
    margin: 0.4cqw 0 0.8cqw;
    padding-bottom: 0.8cqw;
    border-bottom: 1px solid var(--line);
    font-size: 3.2cqw;
    letter-spacing: -0.05em;
}

.quote sup {
    margin-left: 0.3cqw;
    color: var(--clay);
    font-size: 1.1cqw;
    letter-spacing: 0;
}

.quote span {
    display: block;
    padding: 0.25cqw 0;
    font-size: 1.15cqw;
    font-weight: 550;
}

.quote em {
    font-style: normal;
    font-weight: 750;
    background: linear-gradient(transparent 62%, rgb(166 87 56 / 35%) 62%);
}

/* Still chasing */
.chase {
    left: 74%;
    top: 14%;
    max-width: 22%;
    margin: 0;
    padding: 1.1cqw 1.4cqw;
    border-radius: 1.4cqw 1.4cqw 0.3cqw 1.4cqw;
    background: var(--clay);
    color: #fff;
    font-size: 1.4cqw;
    font-weight: 600;
    line-height: 1.3;
    --k: 2;
}

.chase b {
    display: block;
    color: #f6d9cc;
    font-size: 1cqw;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* The verdict: the scene dims behind the problem statement. */
.verdict {
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2cqw;
    padding: 0 4%;
    text-align: center;
    --from: translateY(0);
}

.pain-scene :is(.hills, .tree, .ground, .house, .car, .maya) {
    transition: opacity 0.8s;
}

.pain[data-chapter="6"] :is(.sun, .hills, .tree, .ground, .house, .car, .maya) {
    opacity: 0.12;
}

.verdict-title {
    margin: 0;
    font-size: 5.4cqw;
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.045em;
}

.verdict-title span {
    display: table;
    margin: 0 auto;
    padding: 0.02em 0.24em 0.07em;
    background: var(--cream);
    color: var(--forest);
}

.verdict-title .verdict-hit {
    margin-top: 0.12em;
    background: var(--clay);
    color: #fff;
}

.verdict-note {
    max-width: 34em;
    margin: 0;
    color: #e6eee9;
    font-size: max(15px, 2cqw);
    font-weight: 550;
    line-height: 1.45;
}

/* Footer: progress dots and the way out */
.pain-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pain-dots {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pain-dots li {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--label) 30%, transparent);
    transition: width 0.4s var(--ease-out), background-color 0.4s;
}

.pain-dots li.is-on {
    width: 26px;
    background: var(--label);
}

.pain-next {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--label) 40%, transparent);
    color: var(--label);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.pain-next-go {
    display: none;
}

.pain[data-chapter="6"] .pain-next {
    border-color: var(--mint);
    background: var(--mint);
    color: var(--forest);
}

.pain[data-chapter="6"] .pain-next-skip {
    display: none;
}

.pain[data-chapter="6"] .pain-next-go {
    display: inline;
}

/* Pinned, scroll-driven mode */
.pain.is-scrolly {
    height: var(--pain-height, 900vh);
}

.pain.is-scrolly .pain-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
}

.pain.is-scrolly .pain-foot {
    margin-top: auto;
}

/* Phones: a taller scene with re-arranged props. */
@media (max-width: 760px) {
    .pain-stage {
        padding-top: 88px;
        gap: 6px;
    }

    .pain-captions {
        font-size: clamp(24px, 7vw, 32px);
    }

    .pain-scene {
        /* 370px: everything in the sticky stage except the scene, incl. the two-row tally and footer */
        width: min(100% - 2 * var(--gutter), (100svh - 370px) * 0.68);
        aspect-ratio: 2 / 3;
        font-size: 3cqw;
    }

    .tree { left: -8%; width: 16%; }

    .sun { left: 6%; width: 14%; }
    .house { left: -6%; width: 54%; bottom: 8%; }
    .car { left: 42%; width: 39%; }
    .pain-scene .maya { left: 64%; height: 25%; }
    .lines { display: none; }

    .wish { left: 2%; top: 3%; width: 44%; padding: 2cqw; border-radius: 3cqw; }
    .wish p { font-size: 3.2cqw; margin: 1.6cqw 0.6cqw 0.4cqw; }
    .wish::before { left: auto; right: 10%; bottom: -4cqw; width: 3.6cqw; height: 3.6cqw; }
    .wish::after { left: auto; right: 2%; bottom: -8cqw; width: 2cqw; height: 2cqw; }
    .search { right: 0; top: 2%; width: 50%; padding: 2.4cqw; border-radius: 3cqw; }
    .search-bar { font-size: 2.6cqw; padding: 1.6cqw 2cqw; gap: 1.4cqw; margin-bottom: 2cqw; }
    .search-bar span { font-size: 3.4cqw; }
    .search li { gap: 2cqw; padding: 1.6cqw 0.6cqw; }
    .search b { font-size: 3.2cqw; }
    .search small { font-size: 2.7cqw; }
    .search .inst-badge { width: 7cqw; height: 7cqw; font-size: 3.2cqw; border-radius: 1.8cqw; }

    .installers { right: 0; top: 2%; width: 52%; gap: 2cqw; }
    .installer { padding: 2cqw 2.4cqw; gap: 2.4cqw; border-radius: 2.4cqw; }
    .installer b { font-size: 3.6cqw; }
    .installer small { font-size: 3.1cqw; }
    .inst-badge { width: 8cqw; height: 8cqw; font-size: 3.6cqw; border-radius: 2cqw; }

    .calendar { left: 0; top: 2%; width: 46%; padding: 3cqw; border-radius: 3cqw; }
    .cal-head { font-size: 3cqw; }
    .cal-grid { gap: 1cqw; }
    .cal-grid span { font-size: 2.4cqw; }
    .cal-note, .cal-empty { font-size: 2.8cqw; gap: 1.4cqw; margin-top: 2cqw; }
    .off-key { width: 2.6cqw; height: 2.6cqw; }
    .cal-empty b { font-size: 4cqw; }

    .phone { left: 58%; top: 0; width: 42%; padding: 3cqw 2cqw; border-width: 1.4cqw; border-radius: 5cqw; }
    .phone-time { font-size: 7cqw; margin: 1.6cqw 0 2cqw; }
    .notifs { gap: 1.4cqw; }
    .notifs li { padding: 1.6cqw; font-size: 2.6cqw; gap: 1.6cqw; border-radius: 2cqw; }
    .notifs b { font-size: 2.8cqw; }
    .notifs i { width: 5cqw; height: 5cqw; font-size: 2.6cqw; }
    .n-vm { font-size: 1.8cqw !important; }

    .van { width: 30%; bottom: 3%; }
    /* the vans pull up at the house, clear of Maya and her car */
    .van-a { left: 0; }
    .van-b { left: 27%; }
    .bubble { max-width: 46%; font-size: 3.6cqw; padding: 2.4cqw 3cqw; border-radius: 3cqw; }
    .bubble::after { border-width: 1.4cqw; border-top-width: 1.8cqw; bottom: -2.6cqw; }
    .bubble-a { left: 48%; top: 22%; }
    .bubble-b { left: 4%; top: 2%; max-width: 54%; }
    .tag { font-size: 5cqw; padding: 1.2cqw 2.4cqw; }
    .tag-1 { left: 66%; top: 4%; }
    .tag-2 { left: 6%; top: 34%; }
    .tag-3 { left: 74%; top: 44%; }

    .quotes { left: 2%; top: 0; width: 96%; height: 70%; }
    .quote { width: 48%; padding: 3cqw; border-radius: 1.6cqw; }
    .quote:nth-child(1) { left: 0; top: 4%; }
    .quote:nth-child(2) { left: 26%; top: 18%; }
    .quote:nth-child(3) { left: 52%; top: 0; }
    .quote small { font-size: 2.3cqw; }
    .quote b { font-size: 7cqw; }
    .quote sup { font-size: 2.6cqw; }
    .quote span { font-size: 2.8cqw; }

    .chase { left: 54%; top: 10%; max-width: 46%; font-size: 3.4cqw; padding: 2.6cqw 3cqw; border-radius: 3cqw 3cqw 0.6cqw 3cqw; }
    .chase b { font-size: 2.4cqw; }

    .inst-you { outline-width: 0.7cqw; outline-offset: 0.7cqw; }

    .verdict { gap: 5cqw; padding: 0 2%; }
    .verdict-title { font-size: 7.4cqw; }
    .verdict-note { font-size: 4.2cqw; }

    .tally { gap: 5px 6px; margin-top: 10px; font-size: 12px; }
    .tally li { padding: 3px 9px 4px; }
    .tally b { font-size: 14px; }

    .pain-next { font-size: 13px; padding: 9px 14px; }
    .pain-dots li { width: 6px; height: 6px; }
    .pain-dots li.is-on { width: 18px; }
}

/* ---------- Marquee ---------- */
.marquee {
    overflow: hidden;
    padding: 22px 0;
    background: var(--mint);
    color: var(--forest);
    border-block: 1px solid #9fd3c2;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 38s linear infinite;
}

.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 36px;
    padding-right: 36px;
    font-size: clamp(20px, 2.6vw, 32px);
    font-weight: 750;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.marquee-track span::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50% 0;
    background: var(--clay);
    transform: rotate(45deg);
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Walkthrough ---------- */
.walk {
    padding: clamp(80px, 12vw, 160px) 0 clamp(40px, 6vw, 80px);
    background: var(--cream);
}

.walk-intro {
    max-width: 760px;
    margin-bottom: clamp(32px, 6vw, 64px);
}

.walk-grid {
    position: relative;
}

.step {
    padding: 32px 0 64px;
}

.step-num {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: var(--forest);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.step-num span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--cream);
    font-size: 13px;
    letter-spacing: 0;
}

.step h3 {
    margin: 0 0 16px;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.step p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 17px;
}

.step p strong,
.step p em {
    color: var(--ink);
    font-style: normal;
    font-weight: 650;
}

.step-aside {
    padding: 14px 18px;
    border-left: 3px solid var(--forest);
    border-radius: 0 8px 8px 0;
    background: var(--sage);
}

.step-panel {
    margin-top: 28px;
}

.walk-stage {
    display: none;
}

/* Desktop: copy scrolls on the left, a sticky stage swaps panels on the right. */
@media (min-width: 980px) {
    .walk-grid {
        display: grid;
        grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
        gap: clamp(36px, 4.5vw, 72px);
    }

    .step {
        display: flex;
        align-items: center;
        min-height: 88vh;
        padding: 0;
        opacity: 0.28;
        transition: opacity 0.5s;
    }

    .step.is-active {
        opacity: 1;
    }

    /* Step one is long: scrolling through it plays Maya's conversation. */
    .step:first-child {
        min-height: 240vh;
        align-items: flex-start;
        padding-top: 12vh;
    }

    .step:first-child .step-copy {
        position: sticky;
        top: 18vh;
    }

    .step-panel {
        margin: 0;
    }

    .walk-stage {
        position: sticky;
        top: 96px;
        display: grid;
        align-self: start;
        height: calc(100vh - 128px);
        min-height: 560px;
        max-height: 760px;
        grid-template-rows: auto minmax(0, 1fr);
        place-items: center;
        border-radius: 28px;
        background:
            radial-gradient(40rem 26rem at 70% 0%, rgb(193 233 220 / 70%), transparent 70%),
            var(--sage);
        overflow: hidden;
    }

    .stage-head {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: space-between;
        gap: 4px 16px;
        justify-self: stretch;
        margin: 0;
        padding: 20px 28px 0;
    }

    .stage-kicker {
        color: var(--forest);
        font-size: 12px;
        font-weight: 750;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .stage-step {
        color: var(--muted);
        font-size: 14px;
        font-weight: 600;
    }

    .walk-stage > .step-panel {
        position: relative;
        z-index: 1;
        grid-area: 2 / 1;
        width: calc(100% - clamp(32px, 4vw, 72px));
        max-width: 640px;
        opacity: 0;
        transform: translateY(28px) scale(0.97);
        transition:
            opacity 0.55s var(--ease-out),
            transform 0.7s var(--ease-out);
        pointer-events: none;
    }

    /* In the stage, the phone is sized from the stage height. */
    .walk-stage .ui-phone {
        width: auto;
        height: clamp(420px, 100vh - 300px, 600px);
    }

    .walk-stage .ui-replay {
        display: none;
    }

    .walk-stage > .step-panel.is-active {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .stage-progress {
        position: absolute;
        left: 50%;
        bottom: 22px;
        display: flex;
        gap: 6px;
        transform: translateX(-50%);
    }

    .stage-progress span {
        width: 22px;
        height: 4px;
        border-radius: 4px;
        background: rgb(33 91 72 / 20%);
        transition: background-color 0.3s, width 0.4s var(--ease-out);
    }

    .stage-progress span.is-on {
        width: 40px;
        background: var(--forest);
    }

    .walk-stage::before {
        /* cut-paper shapes behind the product panels */
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        right: -70px;
        top: -70px;
        border-radius: 50% 0;
        background: rgb(33 91 72 / 12%);
        transform: rotate(20deg);
    }

    .walk-stage::after {
        content: "";
        position: absolute;
        width: 140px;
        height: 140px;
        left: -40px;
        bottom: 60px;
        border-radius: 50%;
        background: rgb(217 168 91 / 28%);
    }

    .step-copy {
        position: relative;
        isolation: isolate;
    }

    .step-copy::before {
        /* the large step number behind the copy */
        content: attr(data-n);
        position: absolute;
        left: -8px;
        top: -0.62em;
        z-index: -1;
        font-size: 200px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: -0.08em;
        color: rgb(33 91 72 / 7%);
    }
}

/* ---------- Product UI (mirrors the app) ---------- */
.ui-frame {
    position: relative;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink);
}

.ui-card,
.ui-chat {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.ui-card {
    padding: 22px;
}

.ui-card-lg {
    padding: clamp(22px, 3vw, 32px);
}

.ui-kicker {
    margin: 0 0 6px;
    color: var(--forest);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ui-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.ui-card-lg .ui-title {
    font-size: clamp(22px, 2.4vw, 28px);
}

.ui-sub {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.ui-body {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.ui-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0 0;
    padding: 6px 11px;
    border-radius: 6px;
    background: var(--sage);
    color: var(--forest);
    font-size: 12px;
    font-weight: 650;
}

.ui-pill-amber {
    background: var(--amber-bg);
    color: var(--amber);
}

.ui-tag {
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--cream);
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.ui-rows {
    margin: 0;
}

.ui-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.ui-row:last-child {
    border-bottom: 0;
}

.ui-row dt {
    color: var(--muted);
}

.ui-row dd {
    margin: 0;
    font-weight: 650;
    text-align: right;
}

.ui-flag {
    color: var(--amber);
}

.ui-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.ui-thumbs figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream);
}

.ui-thumbs img {
    width: 100%;
    height: 48px;
    object-fit: contain;
}

.ui-thumbs figcaption {
    padding: 4px 7px;
    background: var(--white);
    font-size: 11px;
    font-weight: 600;
}

.ui-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.ui-price-label {
    color: var(--muted);
    font-size: 13px;
}

.ui-amount {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 750;
    line-height: 1;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
}

.ui-date {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
    background: var(--sage);
}

.ui-date-square {
    min-width: 56px;
    padding: 6px 8px;
    border-radius: 8px;
    background: var(--white);
    text-align: center;
    line-height: 1.1;
}

.ui-date-square b {
    display: block;
    font-size: 24px;
}

.ui-date-square span {
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ui-date strong {
    display: block;
    font-size: 16px;
}

.ui-date small {
    color: var(--muted);
    font-size: 12px;
}

.ui-review-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.ui-review-grid,
.ui-accept-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.ui-decision {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--forest);
    border-radius: 10px;
    background: var(--paper);
}

.ui-decision .ui-amount {
    font-size: clamp(36px, 4vw, 48px);
}

.ui-when {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}

.ui-btn {
    position: relative;
    display: grid;
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--forest);
    color: var(--white);
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s, transform 0.15s;
}

.ui-btn > span {
    grid-area: 1 / 1;
    align-self: center;
    transition:
        opacity 0.3s,
        transform 0.4s var(--ease-out);
}

.ui-btn-done {
    opacity: 0;
    transform: translateY(100%);
}

.ui-btn:hover {
    background: var(--forest-deep);
}

.ui-btn:active {
    transform: scale(0.97);
}

.ui-btn.is-done {
    background: var(--sage);
    color: var(--forest);
    cursor: default;
}

.ui-btn.is-done .ui-btn-idle {
    opacity: 0;
    transform: translateY(-100%);
}

.ui-btn.is-done .ui-btn-done {
    opacity: 1;
    transform: none;
}

.ui-btn.is-pressing {
    transform: scale(0.95);
}

.ui-btn-ghost {
    min-height: 40px;
    border: 1px solid var(--rule);
    background: var(--white);
    color: var(--forest);
}

.ui-btn-ghost:hover {
    background: var(--sage);
}

.ui-ask-note {
    max-height: 0;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    opacity: 0;
    transition: max-height 0.4s var(--ease-out), opacity 0.3s;
}

.ui-ask-note.is-in {
    max-height: 4em;
    opacity: 1;
}

.ui-accept.is-accepted .ui-card {
    border-color: var(--forest);
    box-shadow: 0 0 0 4px var(--mint), var(--shadow-lg);
    transition: box-shadow 0.5s, border-color 0.5s;
}

/* Guided conversation, on Maya's phone */
.ui-guided {
    display: grid;
    justify-items: center;
}

/* A phone-shaped phone: the same 9:18 shape at every screen size. */
.ui-phone {
    display: flex;
    flex-direction: column;
    width: min(100%, 280px);
    aspect-ratio: 9 / 18;
    padding: 10px;
    border-radius: 38px;
    background: var(--ink);
    box-shadow: var(--shadow-xl);
}

.ui-phone::before {
    content: "";
    display: block;
    width: 84px;
    height: 6px;
    margin: 2px auto 8px;
    border-radius: 6px;
    background: rgb(246 244 238 / 22%);
}

.ui-phone .ui-chat {
    flex: 1;
    min-height: 0;
    border: 0;
    border-radius: 28px;
    box-shadow: none;
}

.ui-chat {
    display: flex;
    flex-direction: column;
    padding: 16px 18px 12px;
}

.ui-chat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.ui-chat-head strong {
    display: block;
    font-size: 14px;
}

.ui-chat-head small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.ui-bot {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px 9px 9px 2px;
    background: var(--forest);
    color: var(--cream);
    font-size: 14px;
    font-weight: 750;
}

.ui-replay {
    margin-left: auto;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.ui-guided.is-done .ui-replay {
    opacity: 1;
}

.ui-chat-window {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-end;
    min-height: 0;
    padding-top: 12px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent 0, #000 36px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 36px);
}

.msg {
    display: grid;
    grid-template-rows: 1fr;
    flex: none;
}

.msg > div {
    min-height: 0;
    overflow: hidden;
}

.msg p {
    width: fit-content;
    max-width: 86%;
    margin: 0 0 8px;
    padding: 9px 13px;
    border-radius: 12px;
    background: var(--sage);
    font-size: 13.5px;
    border-top-left-radius: 3px;
}

.msg.maya p,
.msg.maya .msg-attach {
    margin-left: auto;
    background: var(--cream);
    border-top-left-radius: 12px;
    border-bottom-right-radius: 3px;
}

.msg-photo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.msg-photo img {
    width: 72px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
}

.msg-attach {
    display: flex;
    gap: 8px;
    width: fit-content;
    margin: 0 0 8px;
    padding: 8px;
    border-radius: 12px;
}

.msg-attach figure {
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    background: var(--white);
}

.msg-attach img {
    width: 88px;
    height: 54px;
    object-fit: contain;
}

.msg-attach figcaption {
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 600;
}

.msg.typing {
    display: none;
}

.is-scripted .msg.typing {
    display: grid;
}

.msg.typing p {
    display: flex;
    gap: 4px;
    padding: 12px 14px;
}

.msg.typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted);
    animation: typing 1s infinite;
}

.msg.typing i:nth-child(2) {
    animation-delay: 0.15s;
}

.msg.typing i:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typing {
    0%,
    60%,
    100% {
        opacity: 0.3;
        transform: none;
    }
    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* Scripted states (JS adds .is-scripted; without JS everything is shown). */
.is-scripted .msg {
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s var(--ease-out);
}

.is-scripted .msg > div {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition:
        opacity 0.35s ease-out 0.08s,
        transform 0.45s var(--ease-out) 0.08s;
}

.is-scripted .msg.maya > div {
    transform-origin: right bottom;
}

.is-scripted .msg.is-in {
    grid-template-rows: 1fr;
}

.is-scripted .msg.is-in > div {
    opacity: 1;
    transform: none;
}

/* ---------- Benefit ---------- */
.benefit {
    padding: clamp(80px, 12vw, 160px) 0;
    background: var(--forest);
    color: var(--cream);
    overflow: hidden;
}

.benefit-title {
    margin: 0;
    font-size: clamp(36px, 6.2vw, 92px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.benefit-title span {
    display: block;
}

.benefit-mint {
    color: var(--mint);
}

.js .benefit-title span {
    opacity: 0.15;
    transform: translateX(-0.4em);
    transition:
        opacity 0.8s var(--ease-out),
        transform 1s var(--ease-out);
}

.js .benefit-title span.is-lit {
    opacity: 1;
    transform: none;
}

.gains {
    display: grid;
    gap: 14px;
    margin: clamp(40px, 6vw, 72px) 0 0;
    padding: 0;
    list-style: none;
}

.gains li {
    padding: clamp(22px, 2.6vw, 30px);
    border: 1px solid rgb(246 244 238 / 14%);
    border-radius: 20px;
    background: rgb(246 244 238 / 6%);
}

.gain-was {
    margin: 0 0 18px;
    color: rgb(246 244 238 / 62%);
    font-size: 14px;
    font-weight: 600;
}

.gain-was s {
    color: #f0b79c;
    text-decoration-color: var(--clay);
    text-decoration-thickness: 2px;
}

.gains h3 {
    margin: 0 0 8px;
    color: var(--mint);
    font-size: clamp(21px, 2vw, 24px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.gains li > p:last-child {
    margin: 0;
    color: rgb(246 244 238 / 80%);
    font-size: 15.5px;
}

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

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

/* ---------- Control / bento ---------- */
.control {
    position: relative;
    padding: clamp(80px, 12vw, 160px) 0;
    background:
        radial-gradient(40rem 24rem at 100% 0%, rgb(217 168 91 / 16%), transparent 70%),
        var(--cream);
}

.control-head {
    max-width: 760px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bento-card {
    position: relative;
    padding: clamp(24px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition:
        transform 0.4s var(--ease-out),
        box-shadow 0.4s var(--ease-out);
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.bento-card::before {
    /* cursor-following light */
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(360px circle at var(--mx, -400px) var(--my, -400px), rgb(193 233 220 / 55%), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card > * {
    position: relative;
}

.bento-card h3 {
    margin: 18px 0 8px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.bento-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
}

.bento-card em {
    color: var(--ink);
    font-style: normal;
    font-weight: 600;
}

.bento-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--sage);
    color: var(--forest);
    font-size: 19px;
    font-weight: 800;
    transition:
        background-color 0.3s,
        color 0.3s,
        transform 0.4s var(--ease-out);
}

.bento-card:hover .bento-icon {
    background: var(--forest);
    color: var(--cream);
    transform: rotate(-8deg) scale(1.06);
}

.bento-visual {
    display: grid;
    gap: 8px;
    margin-top: 24px;
    padding: 18px;
    border-radius: 14px;
    background: var(--cream);
    font-size: 13px;
}

.mini-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.mini-row span {
    color: var(--muted);
}

.mini-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.mini-btn {
    justify-self: start;
    padding: 9px 14px;
    border-radius: 7px;
    background: var(--forest);
    color: var(--white);
    font-size: 13px;
    font-weight: 650;
}

.mini-btn-ghost {
    border: 1px solid var(--rule);
    background: var(--white);
    color: var(--forest);
}

.bento-browser {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--white);
}

.browser-bar {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
}

.browser-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rule);
}

.browser-body {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.browser-copy {
    display: grid;
    gap: 6px;
}

.browser-copy small {
    color: var(--forest);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.browser-copy b {
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.browser-body img {
    width: 100%;
    border-radius: 8px;
}

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

    .bento-wide {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: center;
    }

    .bento-wide .bento-visual {
        margin-top: 0;
    }

    .bento-site {
        grid-column: span 2;
    }
}

/* ---------- Try / form ---------- */
.try {
    position: relative;
    padding: clamp(80px, 12vw, 160px) 0;
    background:
        radial-gradient(50rem 30rem at 0% 100%, rgb(33 91 72 / 55%), transparent 70%),
        var(--ink-deep);
    color: var(--cream);
}

.try::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.5;
    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%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.try > * {
    position: relative;
}

.try-grid {
    display: grid;
    gap: clamp(40px, 6vw, 80px);
}

.try-copy p {
    max-width: 44ch;
    margin: 20px 0 0;
    color: rgb(246 244 238 / 80%);
    font-size: 18px;
}

.try .section-label {
    margin-bottom: 28px;
}

.try .caption-line > span {
    background: var(--cream);
    color: var(--forest);
}

.try-points {
    display: grid;
    gap: 12px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.try-points li {
    display: flex;
    gap: 12px;
    color: var(--cream);
    font-size: 16px;
}

.try-points li::before {
    content: "✓";
    flex: none;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgb(193 233 220 / 18%);
    color: var(--mint);
    font-size: 12px;
    font-weight: 800;
}

.form-card {
    align-self: start;
    padding: clamp(22px, 3.5vw, 40px);
    border-radius: 24px;
    background: var(--cream);
    color: var(--ink);
    box-shadow: var(--shadow-xl);
}

.choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.choices legend {
    margin-bottom: 14px;
    padding: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.choice {
    position: relative;
    cursor: pointer;
}

.choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-face {
    display: grid;
    place-content: center;
    gap: 2px;
    height: 100%;
    padding: 16px 12px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    text-align: center;
    transition:
        border-color 0.2s,
        background-color 0.2s,
        transform 0.25s var(--ease-out),
        box-shadow 0.25s;
}

.choice-face b {
    font-size: 17px;
    letter-spacing: -0.02em;
}

.choice-face small {
    color: var(--muted);
    font-size: 12.5px;
}

.choice:hover .choice-face {
    border-color: var(--rule);
    transform: translateY(-2px);
}

.choice input:checked + .choice-face {
    border-color: var(--forest);
    background: var(--sage);
    box-shadow: inset 0 0 0 1px var(--forest);
}

.choice input:focus-visible + .choice-face {
    outline: 3px solid var(--clay);
    outline-offset: 3px;
}

.fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 22px;
}

.field {
    display: grid;
    align-content: start;
    gap: 7px;
}

.field > span {
    font-size: 14px;
    font-weight: 600;
}

.field em {
    color: var(--muted);
    font-style: normal;
    font-weight: 400;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #a6b3ab;
    border-radius: 9px;
    background: var(--white);
    color: var(--ink);
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.field input,
.field select {
    height: 52px;
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--forest);
    box-shadow: 0 0 0 4px rgb(33 91 72 / 15%);
}

.field [aria-invalid="true"] {
    border-color: #a13330;
}

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

    .field-full {
        grid-column: 1 / -1;
    }
}

.form-status {
    min-height: 1.5em;
    margin: 12px 0 0;
    font-size: 14px;
}

.form-status[data-state="error"] {
    color: #a13330;
}

.form-privacy {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.form-thanks {
    padding: 24px 0;
    text-align: center;
    outline: none;
}

.thanks-mark {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--cream);
    font-size: 32px;
    animation: pop 0.6s var(--ease-out);
}

@keyframes pop {
    0% {
        transform: scale(0.4);
        opacity: 0;
    }
    100% {
        transform: none;
        opacity: 1;
    }
}

.form-thanks h3 {
    margin: 0 0 8px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.form-thanks p {
    margin: 0;
    color: var(--muted);
}

@media (min-width: 980px) {
    .try-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .try .caption-title-sm {
        font-size: clamp(34px, 3.3vw, 46px);
    }

    .try-copy {
        position: sticky;
        top: 120px;
    }
}

/* ---------- FAQ ---------- */
.faq {
    padding: clamp(80px, 10vw, 140px) 0;
}

.faq-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 900px) {
    .faq-grid {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 64px;
    }
}

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

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

.faq-list summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.02em;
    cursor: pointer;
    list-style: none;
}

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

.faq-list summary::after {
    content: "+";
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sage);
    color: var(--forest);
    font-size: 20px;
    font-weight: 500;
    transition: transform 0.3s var(--ease-out);
}

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

.faq-list details p {
    max-width: 60ch;
    margin: 0 0 22px;
    color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 56px 0 64px;
    background: var(--ink-deep);
    color: rgb(246 244 238 / 70%);
}

.footer-inner {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.footer-inner p {
    margin: 0;
}

.footer-small {
    font-size: 13px;
    color: rgb(246 244 238 / 50%);
}

.footer-small a {
    color: inherit;
}

/* ---------- Floating CTA ---------- */
.float-cta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 999px;
    background: var(--forest);
    color: var(--white);
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
    box-shadow: 0 16px 40px -10px rgb(20 36 31 / 60%);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition:
        opacity 0.35s,
        transform 0.45s var(--ease-out),
        background-color 0.2s;
}

.float-cta.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.float-cta:hover {
    background: var(--forest-deep);
}

/* ---------- Confetti (accept moment) ---------- */
.confetti {
    position: fixed;
    z-index: 60;
    width: 8px;
    height: 12px;
    border-radius: 2px;
    pointer-events: none;
}

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
    .header-link {
        display: none;
    }

    .lockup {
        font-size: 18px;
    }

    .header-nav .btn-small {
        padding: 9px 12px;
        font-size: 13px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* opaque, so the hero leaves don't show through */
    .hero-actions .btn-ghost {
        background: var(--paper);
    }

    .eyebrow {
        font-size: 10.5px;
        letter-spacing: 0.04em;
    }

    .film {
        aspect-ratio: 4 / 5;
    }

    .film-scrim {
        background: linear-gradient(180deg, rgb(246 244 238 / 94%) 0%, rgb(246 244 238 / 60%) 38%, transparent 60%),
            linear-gradient(0deg, rgb(20 36 31 / 40%), transparent 40%);
    }

    .film-art {
        object-position: 42% 50%;
    }

    .film-copy {
        top: 24px;
        left: 20px;
        right: 20px;
        transform: none;
    }

    .film-button {
        top: 62%;
    }

    .film.is-playing {
        aspect-ratio: 16 / 9;
    }

    .film-meta {
        left: 14px;
        right: auto;
        font-size: 12px;
    }

    .ui-review-grid,
    .ui-accept-grid {
        grid-template-columns: 1fr;
    }

    .choices {
        grid-template-columns: 1fr;
    }

    .choice-face {
        grid-template-columns: auto 1fr;
        align-items: baseline;
        gap: 10px;
        text-align: left;
    }

    .float-cta {
        left: 16px;
        right: 16px;
        bottom: 14px;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .lockup {
        font-size: 16px;
    }

    .label-long {
        display: none;
    }
}

@media (min-width: 421px) {
    .label-short {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }
}
