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

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

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

@font-face {
    font-family: "HeliosExtBlackC";
    src: url("fonts/Helios/HeliosExtBlackC.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #156cff;
    --ink: #000000;
    --paper: #ffffff;
    --bg: #f2f8fe;
    --soft-blue: #e1efff;
    --rose: #f65a84;
    --blush: #ffe8f0;
    --mint: #aadf96;
    --sun: #ffd76f;
    --muted: #6f7b8b;
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Gilroy", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    background-image: url("images/noise.gif");
    opacity: 0.08;
}

button,
input,
a {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:disabled {
    cursor: wait;
    opacity: 0.68;
}

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

[hidden] {
    display: none !important;
}

.wrapper {
    width: min(100%, 115.25rem);
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    min-height: 5.25rem;
    padding: 1rem clamp(1rem, 3vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(242, 248, 254, 0.84);
    border-bottom: 0.1875rem solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(16px);
}

.brand,
.topnav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 0.75rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
}

.brand-mark {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--paper);
    border-radius: 50%;
}

.brand-name {
    font-family: "HeliosExtBlackC", "Gilroy", sans-serif;
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    line-height: 1;
}

.topnav {
    gap: clamp(1rem, 4vw, 3rem);
    font-weight: 800;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
}

.topnav a {
    color: var(--ink);
    text-decoration: none;
    position: relative;
}

.topnav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: 0;
    height: 0.1875rem;
    background: var(--primary);
    transition: width 180ms ease;
}

.topnav a:hover::after {
    width: 100%;
}

.section-band {
    position: relative;
    overflow: hidden;
}

.hero {
    min-height: 100vh;
    padding: 8rem 0 4rem;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.72fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border: 0.125rem solid var(--ink);
    background: var(--paper);
    color: var(--primary);
    border-radius: 999px;
    font-size: clamp(0.78rem, 1.2vw, 0.95rem);
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    font-family: "HeliosExtBlackC", "Gilroy", sans-serif;
    line-height: 0.98;
}

h1 {
    max-width: 12ch;
    font-size: clamp(2.75rem, 5.35vw, 5.8rem);
    overflow-wrap: break-word;
}

h1 span {
    display: block;
    color: var(--primary);
}

h2 {
    font-size: clamp(2rem, 5vw, 4.8rem);
}

.lead {
    max-width: 44rem;
    margin: 0;
    color: #263242;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 700;
}

.hero-link,
.action-btn,
.soft-btn {
    border: 0.25rem solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.hero-link {
    min-height: 4.75rem;
    padding: 0 2rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 800;
}

.hero-link:hover,
.action-btn:hover,
.soft-btn:hover {
    transform: translateY(-0.25rem);
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 1rem 0 var(--primary);
}

.cat-hero {
    min-height: clamp(25rem, 48vw, 38rem);
    padding: clamp(1rem, 3vw, 2rem);
    position: relative;
    overflow: hidden;
    background: var(--paper);
    border: 0.25rem solid var(--ink);
    border-radius: 0.5rem;
    box-shadow: 1rem 1rem 0 var(--primary);
}

.hero-photo {
    position: absolute;
    inset: 1rem;
    z-index: 1;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    border-radius: 0.35rem;
    object-fit: cover;
}

.sticker {
    position: absolute;
    z-index: 3;
    border: 0.25rem solid var(--ink);
    border-radius: 0.5rem;
    background: var(--paper);
    object-fit: cover;
    box-shadow: 0.55rem 0.55rem 0 var(--sun);
}

.sticker-shh {
    top: 1.35rem;
    right: 1.35rem;
    width: min(34%, 11rem);
    aspect-ratio: 1;
    transform: rotate(4deg);
}

.sticker-jam {
    left: 1.35rem;
    bottom: 5.75rem;
    width: min(33%, 10.5rem);
    aspect-ratio: 1;
    transform: rotate(-6deg);
    box-shadow: 0.55rem 0.55rem 0 var(--rose);
}

.corner {
    position: absolute;
    z-index: 4;
    width: 3.75rem;
    height: 3.75rem;
    border-color: rgba(0, 0, 0, 0.18);
    border-style: solid;
}

.corner-tl {
    top: 1rem;
    left: 1rem;
    border-width: 0.15rem 0 0 0.15rem;
}

.corner-tr {
    top: 1rem;
    right: 1rem;
    border-width: 0.15rem 0.15rem 0 0;
}

.corner-bl {
    bottom: 1rem;
    left: 1rem;
    border-width: 0 0 0.15rem 0.15rem;
}

.corner-br {
    right: 1rem;
    bottom: 1rem;
    border-width: 0 0.15rem 0.15rem 0;
}

.code-note {
    position: absolute;
    z-index: 4;
    left: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 0.5rem;
    font-weight: 800;
}

.code-note b {
    color: var(--mint);
}

.question {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--paper);
}

.question-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 28rem);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.question-main {
    display: grid;
    gap: clamp(2rem, 4vw, 4rem);
}

.question-cat {
    margin: 0;
    padding: 0.85rem;
    position: relative;
    display: grid;
    gap: 0.75rem;
    background: var(--blush);
    border: 0.25rem solid var(--ink);
    border-radius: 0.5rem;
    box-shadow: 0.75rem 0.75rem 0 var(--mint);
    transform: rotate(2deg);
}

.question-cat img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 0.35rem;
}

.question-cat figcaption {
    margin: 0;
    font-family: "HeliosExtBlackC", "Gilroy", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1;
    text-align: center;
}

.section-title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.section-title.compact h2 {
    font-size: clamp(2rem, 4.5vw, 4rem);
}

.index-pill {
    width: 4.5rem;
    height: 4.5rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-size: 1.75rem;
    font-weight: 800;
}

.choice-stage {
    position: relative;
    min-height: 10rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
}

.action-btn {
    min-width: clamp(9rem, 18vw, 14rem);
    min-height: 5.25rem;
    padding: 0 1.5rem;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 800;
}

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

.yes-btn:hover {
    background: var(--mint);
    color: var(--ink);
}

.no-btn {
    z-index: 2;
    background: var(--paper);
}

.no-btn.is-runaway {
    position: absolute;
    transition: left 180ms ease, top 180ms ease, transform 180ms ease, background 180ms ease;
}

.plea {
    position: absolute;
    left: 50%;
    bottom: 0;
    margin: 0;
    transform: translateX(-50%);
    padding: 0.6rem 1rem;
    border: 0.1875rem solid var(--ink);
    border-radius: 999px;
    background: var(--sun);
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.plea.is-pulsing {
    animation: tinyPulse 420ms ease;
}

.plan {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.plan-grid {
    display: block;
}

.plan-panel {
    max-width: 64rem;
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 3rem);
    background: var(--paper);
    border: 0.25rem solid var(--ink);
    border-radius: 0.5rem;
    box-shadow: 1rem 1rem 0 var(--rose);
}

.time-block {
    margin-top: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 0.1875rem solid var(--ink);
    border-radius: 0.5rem;
    background: var(--soft-blue);
}

.time-label {
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
}

.time-block strong {
    font-family: "HeliosExtBlackC", "Gilroy", sans-serif;
    font-size: clamp(3rem, 9vw, 7rem);
    line-height: 0.9;
}

.rain-note {
    margin: 1.25rem 0 0;
    padding: 1rem 1.25rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 0.5rem;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 800;
}

.plan-cats {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(10rem, 0.65fr);
    gap: 1rem;
}

.plan-cats img {
    width: 100%;
    height: clamp(10rem, 26vw, 16rem);
    border: 0.1875rem solid var(--ink);
    border-radius: 0.5rem;
    background: var(--paper);
    object-fit: cover;
}

.plan-cats img:nth-child(2) {
    object-fit: contain;
    background: var(--sun);
}

.confirm-row,
.custom-time {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.soft-btn {
    min-height: 3.75rem;
    padding: 0 1.25rem;
    font-weight: 800;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.soft-btn.is-primary {
    background: var(--primary);
    color: var(--paper);
}

.status-message {
    margin: 1rem 0 0;
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    font-weight: 800;
    color: var(--primary);
}

.status-message.is-error {
    color: var(--rose);
}

.status-message.inline {
    width: 100%;
}

.custom-time {
    align-items: end;
    padding: 1rem;
    border: 0.1875rem solid rgba(0, 0, 0, 0.12);
    border-radius: 0.5rem;
    background: #fff9e3;
}

.custom-time label {
    min-width: min(100%, 13rem);
    display: grid;
    gap: 0.4rem;
    font-weight: 800;
}

.custom-time input {
    width: 100%;
    min-height: 3.4rem;
    padding: 0 0.85rem;
    border: 0.1875rem solid var(--ink);
    border-radius: 0.5rem;
    background: var(--paper);
    color: var(--ink);
    font-weight: 800;
}

@keyframes tinyPulse {
    0% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.08);
    }
    100% {
        transform: translateX(-50%) scale(1);
    }
}

@media (max-width: 900px) {
    .topbar {
        position: sticky;
    }

    .hero {
        min-height: auto;
        padding-top: 3rem;
    }

    .hero-grid,
    .question-layout {
        grid-template-columns: 1fr;
    }

    .cat-hero {
        min-height: 28rem;
        box-shadow: 0.65rem 0.65rem 0 var(--primary);
    }

    .question-cat {
        width: min(100%, 24rem);
        justify-self: center;
    }

    .plan-panel {
        box-shadow: 0.65rem 0.65rem 0 var(--rose);
    }
}

@media (max-width: 620px) {
    .topbar {
        min-height: 4.5rem;
        padding: 0.75rem 1rem;
    }

    .topnav {
        display: none;
    }

    .brand-mark {
        width: 2.5rem;
        height: 2.5rem;
    }

    .hero-copy {
        gap: 1.1rem;
    }

    h1 {
        max-width: 100%;
        font-size: clamp(2rem, 9vw, 2.35rem);
    }

    h2 {
        font-size: clamp(1.85rem, 8vw, 2.6rem);
    }

    .section-title {
        grid-template-columns: 1fr;
    }

    .section-title.compact h2 {
        font-size: clamp(1.8rem, 7.5vw, 2.35rem);
    }

    .index-pill {
        width: 3.75rem;
        height: 3.75rem;
        font-size: 1.45rem;
    }

    .hero-link {
        width: 100%;
        justify-content: center;
    }

    .cat-hero {
        min-height: 19.5rem;
        padding: 1rem;
    }

    .hero-photo {
        inset: 0.75rem;
        width: calc(100% - 1.5rem);
        height: calc(100% - 1.5rem);
    }

    .sticker-shh {
        width: 34%;
        top: 1rem;
        right: 1rem;
    }

    .sticker-jam {
        width: 33%;
        left: 1rem;
        bottom: 4.9rem;
    }

    .code-note {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    .question-cat {
        transform: none;
    }

    .choice-stage {
        min-height: 13.5rem;
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
    }

    .action-btn {
        width: min(100%, 18rem);
    }

    .plea {
        left: 0;
        right: 0;
        transform: none;
        white-space: normal;
    }

    .plea.is-pulsing {
        animation: tinyPulseMobile 420ms ease;
    }

    .time-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .confirm-row,
    .custom-time,
    .plan-cats {
        display: grid;
        grid-template-columns: 1fr;
    }

    .plan-cats img {
        height: 12rem;
    }

    .soft-btn {
        width: 100%;
    }
}

@keyframes tinyPulseMobile {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
    100% {
        transform: scale(1);
    }
}
