:root {
    --red: #F30029;
    --violet: #8A3FFC;
    --gold: #FFB300;
    --coral: #FF4A5F;
    --ink: #1C1114;
    --night: #141014;
    --paper: #FBF8F4;
    --matte: #F4EEE8;
    --ink-soft: rgba(28, 17, 20, 0.62);
    --on-red-soft: rgba(255, 255, 255, 0.92);
    --on-night-soft: rgba(251, 248, 244, 0.72);

    --font-brand: "Gill Sans", "Gill Sans MT", "Gill Sans Nova", Seravek, "Segoe UI", sans-serif;
    --font-read: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;

    --gutter: clamp(16px, 5vw, 56px);
    --column: 1180px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --phone-shadow: drop-shadow(0 40px 50px rgba(40, 0, 8, 0.45));

    color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-read);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

::selection { background: var(--gold); color: var(--ink); }

a { color: inherit; text-underline-offset: 0.2em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

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

.phone { width: 100%; height: auto; filter: var(--phone-shadow); user-select: none; -webkit-user-drag: none; }

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

.hero {
    position: relative;
    background: var(--red);
    color: #fff;
    padding: max(14px, env(safe-area-inset-top)) var(--gutter) 0;
    overflow: clip;
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--column);
    margin: 0 auto;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-brand);
    font-weight: 600;
    font-size: 21px;
    letter-spacing: -0.015em;
}

.wordmark__glyph { width: 30px; height: 30px; }

.bar__get {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 99px;
    background: rgba(110, 0, 16, 0.28);
    font-family: var(--font-brand);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s;
}

.bar__get:hover { background: rgba(110, 0, 16, 0.42); }

.hero__grid {
    max-width: var(--column);
    margin: 0 auto;
    display: grid;
    gap: 28px;
    padding-top: 36px;
}

.hero__copy { display: grid; justify-items: start; }

.hero__title {
    margin: 0;
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: clamp(48px, 13vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.hero__lede {
    margin: 16px 0 24px;
    max-width: 34ch;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
}

.hero__jump {
    margin-top: 16px;
    padding: 10px 2px;
    font-weight: 600;
    font-size: 16px;
    color: var(--on-red-soft);
}

/* The hero phone rises out of the bottom edge: only its top shows on a phone. */
.hero__phone {
    justify-self: center;
    width: min(78vw, 340px);
    height: min(92vw, 400px);
    padding: 0 6% 0;
}

.hero__phone .phone {
    transform: rotate(-4deg) translateY(10px);
    transform-origin: 50% 0;
}

/* ---------- CTA ---------- */

.cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 22px 9px 9px;
    min-height: 58px;
    border-radius: 99px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 12px 30px -10px rgba(90, 0, 12, 0.6);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.cta:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(90, 0, 12, 0.7); }
.cta:active { transform: translateY(0) scale(0.98); }

.cta__icon { width: 40px; height: 40px; border-radius: 10px; }
.cta__text { display: grid; line-height: 1.2; }
.cta__label { font-family: var(--font-brand); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.cta__sub { font-size: 13px; color: var(--ink-soft); }

/* Phones only: once the hero CTA scrolls away, a slim App Store dock takes its place. */
.dock {
    position: fixed;
    width: max-content;
    white-space: nowrap;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 20px 7px 7px;
    border-radius: 99px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.6);
    transform: translate(-50%, 140%);
    transition: transform 0.4s var(--ease-out);
}

.dock .cta__icon { width: 36px; height: 36px; border-radius: 9px; }
.dock .cta__label { font-size: 17px; }
.dock .cta__sub { color: var(--on-night-soft); font-size: 12px; }
.dock[data-shown] { transform: translate(-50%, 0); }

/* ---------- Drop wall ---------- */

.wall {
    padding: 48px var(--gutter) 64px;
    background: var(--paper);
}

.wall__head, .wall__filters, .wall__grid, .wall__foot, .wall__empty { max-width: var(--column); margin-inline: auto; }

.wall__title {
    margin: 0;
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: clamp(34px, 7vw, 56px);
    line-height: 1;
    letter-spacing: -0.02em;
}

.wall__sub { margin: 8px 0 0; color: var(--ink-soft); }

.wall__filters {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.wall__filters::-webkit-scrollbar { display: none; }

.pill {
    flex: none;
    min-height: 40px;
    padding: 0 16px;
    border: 1.5px solid rgba(28, 17, 20, 0.14);
    border-radius: 99px;
    background: #fff;
    color: var(--ink);
    font: 600 15px/1 var(--font-read);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pill:hover { border-color: rgba(28, 17, 20, 0.3); }
.pill[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.pill[hidden] { display: none; }

.wall__grid {
    list-style: none;
    padding: 0;
    margin-top: 24px;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
}

.wall__grid[data-state="loading"]::before,
.wall__grid[data-state="loading"]::after {
    content: "";
    aspect-ratio: 1;
    border-radius: 20px;
    background: var(--matte);
}

.drop { position: relative; display: grid; gap: 4px; align-content: start; }
.drop[hidden] { display: none; }

.drop__link { position: absolute; inset: -6px; z-index: 2; border-radius: 24px; }

.drop__tile {
    position: relative;
    aspect-ratio: 1;
    margin-bottom: 6px;
    border-radius: 20px;
    background: var(--matte);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s var(--ease-out);
}

.drop:hover .drop__tile { transform: translateY(-3px); }

.drop__tile img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }

.drop__tile--photo img { object-fit: cover; padding: 0; mix-blend-mode: normal; }

.drop__tile--missing::after {
    content: "";
    position: absolute;
    inset: 34%;
    background: var(--gold);
    opacity: 0.55;
    -webkit-mask: url(/img/star.svg) center / contain no-repeat;
    mask: url(/img/star.svg) center / contain no-repeat;
}

.drop__tile--restock { background: #FBE7E6; }
.drop__tile--new { background: #EFE8F8; }
.drop__tile--drop { background: #FBF0D9; }

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px 3px 8px;
    border-radius: 99px;
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.35;
    color: #fff;
    mix-blend-mode: normal;
}

.badge svg { width: 11px; height: 11px; }
.badge--restock { background: var(--red); }
.badge--new { background: var(--violet); }
.badge--drop { background: var(--gold); color: var(--ink); }

.drop__name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.drop__price { margin: 0; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }

.drop__meta { margin: 0; font-size: 14px; color: var(--ink-soft); }

.wall__empty { margin-top: 24px; font-weight: 600; }

.wall__foot { display: grid; justify-items: center; gap: 18px; margin-top: 36px; text-align: center; }

.wall__more {
    min-height: 48px;
    padding: 0 26px;
    border: 0;
    border-radius: 99px;
    background: var(--ink);
    color: #fff;
    font: 600 17px/1 var(--font-brand);
    cursor: pointer;
    transition: transform 0.2s var(--ease-out);
}

.wall__more:hover { transform: translateY(-2px); }
.wall__more[hidden] { display: none; }

.wall__nudge { margin: 0; color: var(--ink-soft); }
.wall__nudge a { color: var(--red); font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
    .wall__grid[data-arrive] .drop { animation: rise 0.6s var(--ease-out) both; animation-delay: calc(var(--i) * 45ms); }
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

/* ---------- Night sections ---------- */

.lanes, .stores {
    background: var(--night);
    color: var(--paper);
    padding: 72px var(--gutter);
}

.section-title {
    max-width: var(--column);
    margin: 0 auto 28px;
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: clamp(32px, 6vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.lanes { overflow: clip; }

.lanes__inner {
    max-width: var(--column);
    margin: 0 auto;
    display: grid;
    gap: 48px;
}

.lane + .lane { margin-top: 28px; }

.lane__title {
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.01em;
}

.lane__glyph { width: 22px; height: 22px; fill: var(--gold); stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; }
.lane__body { margin: 0; max-width: 42ch; color: var(--on-night-soft); }

/* Two phones at different sizes and angles: the Alerts tab behind, a watched product in front. */
.lanes__phones {
    position: relative;
    justify-self: center;
    width: min(100%, 420px);
    aspect-ratio: 1 / 1.12;
}

.lanes__phones .phone { position: absolute; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); }
.phone--back { width: 56%; left: 4%; top: 0; transform: rotate(-7deg); }
.phone--front { width: 50%; right: 2%; top: 14%; transform: rotate(6deg); }

.stores { padding-top: 8px; }

.stores__list {
    max-width: var(--column);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    font-family: var(--font-brand);
    font-weight: 600;
    font-size: clamp(22px, 4.2vw, 34px);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.stores__note { max-width: var(--column); margin: 24px auto 0; color: var(--on-night-soft); }

/* ---------- Close ---------- */

.close {
    background: var(--red);
    color: #fff;
    padding: 80px var(--gutter) 0;
    overflow: clip;
}

.close__inner { max-width: var(--column); margin: 0 auto; display: grid; gap: 40px; }

.close__copy { display: grid; justify-items: center; text-align: center; }

.close__star { width: 54px; height: 54px; margin: 0 auto 18px; fill: var(--gold); filter: drop-shadow(0 4px 14px rgba(255, 179, 0, 0.5)); }

.close__title {
    margin: 0 auto;
    max-width: 14ch;
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: clamp(40px, 9vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.close__body { margin: 18px auto 30px; max-width: 40ch; font-size: 19px; font-weight: 600; }

.close__phone {
    justify-self: center;
    width: min(56vw, 240px);
    height: min(60vw, 260px);
}

.close__phone .phone { transform: rotate(5deg) translateY(16px); transform-origin: 50% 0; }

/* ---------- Footer ---------- */

.foot {
    background: var(--night);
    color: var(--on-night-soft);
    padding: 28px var(--gutter) max(96px, calc(env(safe-area-inset-bottom) + 84px));
    font-size: 13px;
    text-align: center;
}

.foot p { margin: 4px 0; }

/* ---------- Tablet and up ---------- */

@media (min-width: 640px) {
    .wall__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
}

@media (min-width: 900px) {
    .hero { padding-top: 24px; }
    .hero__grid {
        grid-template-columns: 1fr 440px;
        align-items: end;
        gap: 48px;
        padding-top: 24px;
    }
    .hero__copy { align-self: center; padding-bottom: 80px; }
    .hero__lede { font-size: 21px; margin: 24px 0 32px; }
    .hero__phone { width: 100%; height: 600px; padding: 0 30px; }
    .hero__phone .phone { transform: perspective(1800px) rotateY(-16deg) rotateX(4deg) rotate(-3deg) translateY(28px); }

    .wall { padding-top: 72px; }
    .wall__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
    .wall__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; margin-top: 28px; }

    .lanes__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
    .lanes__phones { width: 100%; max-width: 500px; }
    .phone--back { transform: perspective(1600px) rotateY(16deg) rotate(-5deg); }
    .phone--front { transform: perspective(1600px) rotateY(-12deg) rotate(5deg); }

    .close__inner { grid-template-columns: 1fr 340px; align-items: end; }
    .close__copy { justify-items: start; text-align: left; padding-bottom: 88px; }
    .close__star, .close__title, .close__body { margin-left: 0; }
    .close__phone { width: 100%; height: 440px; padding: 0 30px; }
    .close__phone .phone { transform: perspective(1600px) rotateY(14deg) rotate(4deg) translateY(30px); }

    .foot { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
    .dock { display: none; }
}

@media (min-width: 1100px) {
    .wall__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
