/* =====================================================================
   The Logo Wall - app.css
   "Brand graffiti" wall · clean modern chrome.
   Dense, layered, alive in <main>; meticulous everywhere else.
   ===================================================================== */
.category-rail {
    display: none !important;
}

:root {
    /* Surfaces ------------------------------------------------------ */
    --bg: #F2EFE6;
    /* warm cream - paper, road-case bumper */
    --bg-chrome: #FAF8F1;
    /* slightly lighter for header / footer */
    --bg-card: #FFFFFF;
    --line: #D5D1C3;
    --line-soft: #E8E4D5;

    /* Ink ----------------------------------------------------------- */
    --ink: #0A0908;
    /* off-black, not pure */
    --ink-soft: #2A2722;
    --ink-mute: #76726A;

    /* Bold singular accent ----------------------------------------- */
    --accent: #FF2E1F;
    /* fluorescent sticker red-orange */
    --accent-deep: #C71F12;
    --accent-ink: #FFFFFF;

    /* Highlighter - used SPARINGLY for tape, marker, marquee ------- */
    --tape: #F0F23A;
    --tape-deep: #D9DC2F;

    /* Shadows tinted to the base hue (anti-AI-glow) ----------------- */
    --shadow-1: 0 1px 2px rgba(10, 9, 8, 0.06);
    --shadow-2: 0 8px 24px rgba(10, 9, 8, 0.10);
    --shadow-3: 0 18px 50px rgba(10, 9, 8, 0.18);
    --shadow-sticker: 0 1px 1px rgba(10, 9, 8, 0.10),
        0 6px 14px rgba(10, 9, 8, 0.08),
        0 18px 36px rgba(10, 9, 8, 0.10);

    /* Geometry ------------------------------------------------------ */
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --container: min(1280px, 98vw);

    /* Type ---------------------------------------------------------- */
    --font-sans: 'IBM Plex Sans', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Bricolage Grotesque', 'IBM Plex Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

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

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Paper grain - subtle. Lives on body so the chrome inherits it
       too, but the wall section overlays a heavier scribble texture. */
    background-image:
        radial-gradient(rgba(10, 9, 8, 0.020) 1px, transparent 1px),
        radial-gradient(rgba(10, 9, 8, 0.013) 1px, transparent 1px);
    background-size: 3px 3px, 7px 7px;
    background-position: 0 0, 1px 2px;
}

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

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.02;
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(2.6rem, 6.4vw, 5.2rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

.container {
    width: var(--container);
    margin-inline: auto;
}

/* ==== Buttons ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.78rem 1.2rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: transform 140ms cubic-bezier(.16, 1, .3, 1),
        background-color 140ms ease,
        color 140ms ease,
        box-shadow 200ms ease;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

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

.btn--primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: var(--shadow-1);
}

.btn--primary:hover {
    background: var(--accent-deep);
    color: var(--accent-ink);
    box-shadow: var(--shadow-2);
}

.btn--ghost {
    color: var(--ink);
    border-color: var(--line);
    background: var(--bg-card);
}

.btn--ghost:hover {
    border-color: var(--ink);
}

.btn--lg {
    padding: 0.95rem 1.45rem;
    font-size: 1rem;
}

/* ==== Header (clean chrome) =========================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg-chrome) 88%, transparent);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border-bottom: 1px solid var(--line);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.brand-mark__icon {
    display: block;
    flex-shrink: 0;
    transition: transform 220ms cubic-bezier(.2, .8, .2, 1.15);
}

.brand-mark:hover {
    text-decoration: none;
}

.brand-mark:hover .brand-mark__icon {
    transform: rotate(8deg) scale(1.08);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-nav a:not(.btn) {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
}

.site-nav a:not(.btn):hover {
    text-decoration: none;
    color: var(--accent);
}

/* ==== Marquee - bridge from clean chrome into graffiti =============== */
.marquee {
    background: var(--ink);
    color: var(--bg);
    border-block: 1px solid var(--ink);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

.marquee__track {
    display: flex;
    gap: 2.5rem;
    padding: 0.65rem 0;
    white-space: nowrap;
    width: max-content;
    animation: marquee 38s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.marquee__track>span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.marquee__dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateY(-1px);
}

@keyframes marquee {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* ==== Hero (asymmetric, clean) ====================================== */
.wall-hero {
    padding: clamp(3.2rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3.2rem);
}

.wall-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.7rem 0.3rem 0.55rem;
    background: var(--ink);
    color: var(--bg);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1.4rem;
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
    }

    70% {
        box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent);
    }

    100% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent);
    }
}

.wall-hero__title {
    margin: 0 0 1rem;
    max-width: 14ch;
}

.wall-hero__title .accent {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.wall-hero__title .accent::after {
    /* hand-drawn underline */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.05em;
    height: 0.18em;
    background: var(--tape);
    border-radius: 3px;
    transform: skewX(-12deg) translateY(0.06em);
    z-index: -1;
}

.wall-hero__sub {
    max-width: 38ch;
    margin: 0 0 1.6rem;
    color: var(--ink-soft);
    font-size: clamp(1.02rem, 1.3vw, 1.15rem);
}

.wall-stats {
    color: var(--ink-mute);
    font-size: 0.85rem;
    margin: 0 0 1.6rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.wall-stats .counter {
    color: var(--ink);
    font-weight: 600;
    font-feature-settings: "tnum" 1;
}

.wall-hero__cta {
    display: inline-flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.hero-proof__stars {
    display: flex;
    gap: 0.05rem;
    color: #F5C518;
}

.hero-proof__stars svg {
    width: 1.3rem;
    height: 1.3rem;
}

.hero-proof__avatars {
    display: flex;
}

.hero-proof__avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-chrome);
    object-fit: cover;
    margin-left: -8px;
}

.hero-proof__avatars img:first-child {
    margin-left: 0;
}

.hero-proof__text {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ink-mute);
    white-space: nowrap;
}

.hero-proof__text strong {
    color: var(--ink);
    font-weight: 600;
}

/* Featured-brand cards in the hero stack. Same uniform white-card treatment
   as the wall stickers, but slightly larger since these are the marquee tier. */
.hero-stack {
    position: relative;
    aspect-ratio: 1 / 0.92;
    min-height: 320px;
}

.hero-card {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: var(--shadow-sticker);
    /* `scale` is a separate property so it composes on top of the per-card
       `transform: rotate(...) scale(...)` rule - hover keeps the tilt. */
    scale: 1;
    transition: scale 240ms cubic-bezier(.2, .8, .2, 1.15),
        box-shadow 240ms ease;
    text-decoration: none;
    max-width: 220px;
}

.hero-card img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.hero-card:hover {
    scale: 1.05;
    box-shadow:
        0 4px 8px rgba(10, 9, 8, 0.12),
        0 18px 40px rgba(10, 9, 8, 0.18);
    z-index: 5;
    text-decoration: none;
}

.hero-card:nth-child(1) {
    top: 4%;
    left: 2%;
    transform: rotate(-9deg) scale(1.04);
}

.hero-card:nth-child(2) {
    top: 10%;
    left: 38%;
    transform: rotate(6deg) scale(0.98);
}

.hero-card:nth-child(3) {
    top: 36%;
    left: 8%;
    transform: rotate(3deg) scale(1.10);
}

.hero-card:nth-child(4) {
    top: 42%;
    left: 48%;
    transform: rotate(-6deg) scale(0.98);
}

.hero-card:nth-child(5) {
    top: 66%;
    left: 18%;
    transform: rotate(11deg) scale(1.06);
}

.hero-card:nth-child(6) {
    top: 68%;
    left: 52%;
    transform: rotate(-3deg) scale(1.12);
}

/* Tape strip on the second card */
.hero-card:nth-child(2)::before {
    content: "";
    position: absolute;
    left: -10px;
    top: -14px;
    width: 56px;
    height: 18px;
    background: var(--tape);
    transform: rotate(-12deg);
    box-shadow: 0 1px 0 rgba(10, 9, 8, 0.12);
    border-radius: 1px;
    opacity: 0.92;
    pointer-events: none;
}

/* ==== Wall search bar ============================================== */
.wall-search {
    background: var(--bg-chrome);
    border-block: 1px solid var(--line);
}

.wall-search__inner {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0;
}

.wall-search__icon {
    flex-shrink: 0;
    color: var(--ink-mute);
}

.wall-search__input {
    flex: 1;
    min-width: 0;
    padding: 0.45rem 0.2rem;
    border: 0;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--ink);
    -webkit-appearance: none;
    appearance: none;
}

.wall-search__input::placeholder {
    color: var(--ink-mute);
}

.wall-search__input:focus {
    outline: none;
}

.wall-search__input::-webkit-search-decoration,
.wall-search__input::-webkit-search-cancel-button {
    display: none;
}

.wall-search__clear {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--ink);
    color: var(--bg);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.wall-search__clear:hover {
    background: var(--accent);
}

.wall-search__count {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ==== Category rail (clean) ======================================== */
.category-rail {
    border-block: 1px solid var(--line);
    background: var(--bg-chrome);
}

.category-rail__inner {
    display: flex;
    gap: 0.4rem;
    padding: 0.7rem 0;
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.category-rail__inner::-webkit-scrollbar {
    height: 4px;
}

.category-rail__inner::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 4px;
}

.chip {
    flex: 0 0 auto;
    padding: 0.45rem 0.95rem;
    border: 1px solid var(--line);
    background: var(--bg-card);
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
    white-space: nowrap;
}

.chip:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.chip.is-active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

/* ==== THE WALL - graffiti, dense, alive ============================ */
.wall {
    position: relative;
    padding: 2.2rem 0 4.5rem;
    overflow: hidden;
    /* contain rotated stickers + scribbles */
    isolation: isolate;
    /* prevents blend-mode bleed */
}

/* Subtle marker scribbles - hand-drawn vibe in the background. The SVG
   is built into the gradient via data URI so it's a single asset. */
.wall::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'>\
<g fill='none' stroke='%230A0908' stroke-width='1.4' stroke-linecap='round' opacity='0.07'>\
<path d='M40 120 q40 -30 80 0 t80 0' />\
<path d='M620 60 l50 20 -10 -28 z' />\
<circle cx='720' cy='240' r='34' />\
<path d='M120 460 l60 -10 -20 28' />\
<path d='M380 280 q24 -30 0 -60 q-24 -30 0 -60' />\
<path d='M60 700 l40 -20 40 20 40 -20 40 20' />\
<path d='M530 540 l28 28 m0 -28 l-28 28' />\
<path d='M680 700 q-30 -30 -60 0 q-30 30 -60 0' />\
<path d='M260 80 l8 -22 8 22 22 8 -22 8 -8 22 -8 -22 -22 -8 z' />\
</g></svg>");
    background-repeat: repeat;
    background-size: 800px 800px;
    pointer-events: none;
    z-index: -1;
}

.wall__grid {
    width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-items: flex-end;
    justify-content: center;
}

/* ---- A single sticker ---- */
/* Each sticker is a uniform white "card" - every logo (transparent PNG, white-bg JPG,
   wide horizontal mark, square glyph) sits in the same shape so the wall reads as one
   visual system. The card carries the shadow + radius; the inner img has none.

   Tilt + scale come from TWO sources combined:
     --rot / --scale         : per-brand stored values (set inline by the template)
     --rot-extra / --scale-x : position-based variance from :nth-child below
   This guarantees chaos even if a brand's stored rotation is 0. */
.sticker {
    --rot: 0;
    --rot-extra: 0;
    --scale: 1;
    --scale-x: 1;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: calc(96px * var(--scale) * var(--scale-x));
    /* horizontal padding wider than vertical → looks more like a real sticker */
    padding: 10px 14px;
    background: var(--sticker-bg, var(--bg-card));
    border-radius: 12px;
    box-shadow:
        0 1px 1px rgba(10, 9, 8, 0.12),
        0 6px 12px rgba(10, 9, 8, 0.06);
    max-width: 320px;
    transform: rotate(calc((var(--rot) + var(--rot-extra)) * 2.5deg)) scale(calc(var(--scale) * var(--scale-x)));
    transform-origin: center;
    transition: transform 220ms cubic-bezier(.2, .8, .2, 1.15),
        box-shadow 180ms ease,
        opacity 180ms ease;

    /* PERF: skip rendering stickers that aren't in viewport. Browser uses the
       last-rendered size as a placeholder so layout stays stable. */
    content-visibility: auto;
    contain-intrinsic-size: auto 96px;

    /* PERF: contain restricts how far style/layout/paint changes propagate when
       this sticker is hovered or transformed. */
    contain: layout paint;
}

/* ---- Position-based tilt fallback ---- */
/* Every sticker gets some tilt regardless of its stored --rot. Combined with
   the stored value, the wall has rotation everywhere with no two adjacent
   stickers at the same angle. */
.sticker:nth-child(7n+1) {
    --rot-extra: -3;
}

.sticker:nth-child(7n+2) {
    --rot-extra: 2;
}

.sticker:nth-child(7n+3) {
    --rot-extra: 3;
}

.sticker:nth-child(7n+4) {
    --rot-extra: -2;
}

.sticker:nth-child(7n+5) {
    --rot-extra: 3;
}

.sticker:nth-child(7n+6) {
    --rot-extra: -3;
}

.sticker:nth-child(7n) {
    --rot-extra: 2;
}

/* ---- Feature anchors + small accents ---- */
/* A few stickers are clearly larger - anchor points that break the grid.
   Kept modest so they read as "slightly bigger" rather than "billboard". */
.sticker:nth-child(13n+5) {
    --scale-x: 1.12;
    z-index: 1;
}

.sticker:nth-child(19n+8) {
    --scale-x: 1.18;
    z-index: 1;
}

/* A handful are deliberately smaller, like minor accents on the wall. */
.sticker:nth-child(11n+4) {
    --scale-x: 0.85;
}

/* ---- Overlap (negative margins) ---- */
/* Pull a few stickers into their neighbours so the layout breathes like a real wall. */
.sticker:nth-child(8n+3) {
    margin-left: -22px;
}

.sticker:nth-child(13n+7) {
    margin-top: -16px;
}

.sticker:nth-child(9n+5) {
    margin-right: -28px;
}

.sticker:nth-child(17n+11) {
    margin-top: 14px;
    margin-left: -14px;
}

/* ---- Landscape & wordmark logos ---- */
/* Wide logos render shorter than icons inside the same bounding box, so we
   give them a slightly wider max-width and a tiny height bump on the very
   wide ones. Stays subtle - dramatic scaling makes them dominate the wall. */
.sticker--landscape {
    --scale-x: 0.95;
    max-width: 280px;
}

.sticker--wordmark {
    --scale-x: 1.0;
    max-width: 240px;
}

/* Don't promote landscape/wordmark to "feature" size on top of the shape bump. */
.sticker--landscape.sticker:nth-child(13n+5),
.sticker--landscape.sticker:nth-child(19n+8) {
    --scale-x: 0.95;
}

.sticker--wordmark.sticker:nth-child(13n+5),
.sticker--wordmark.sticker:nth-child(19n+8) {
    --scale-x: 1.0;
}

.sticker__img {
    height: 100%;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    /* No bg / shadow / radius here - the card carries it. */
}

.sticker:hover {
    transform: rotate(0deg) scale(calc(var(--scale) * var(--scale-x) * 1.08)) translateY(-2px);
    box-shadow:
        0 2px 3px rgba(10, 9, 8, 0.18),
        0 14px 28px rgba(10, 9, 8, 0.22);
    z-index: 3;
    /* will-change is set transiently on hover only - never on the base state. */
    will-change: transform;
}

/* When you hover any sticker, dim the rest. Opacity-only so it can be
   GPU-composited without repainting (was: filter change which forced repaint
   on every other sticker on every mouse move). */
.wall__grid:hover .sticker:not(:hover) {
    opacity: 0.62;
}

/* TAPE - a few stickers carry a torn highlighter strip */
.sticker:nth-child(11n+3)::before,
.sticker:nth-child(13n+7)::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 18%;
    width: 44%;
    height: 16px;
    background: var(--tape);
    transform: rotate(-9deg);
    box-shadow: 0 1px 0 rgba(10, 9, 8, 0.10);
    border-radius: 1px;
    opacity: 0.92;
    z-index: 1;
    pointer-events: none;
}

.sticker:nth-child(13n+7)::before {
    left: auto;
    right: 14%;
    top: auto;
    bottom: -8px;
    transform: rotate(7deg);
}

/* SHARPIE marker - tiny circle/asterisk near the corner of every 17th */
.sticker:nth-child(17n+5)::after {
    content: "★";
    position: absolute;
    top: -16px;
    right: -14px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    transform: rotate(15deg);
    pointer-events: none;
    text-shadow: 1px 1px 0 var(--ink);
}

/* On touch devices, soften the rotation so tap targets stay accurate. */
@media (hover: none) {
    .sticker {
        transform: rotate(calc((var(--rot) + var(--rot-extra)) * 1deg)) scale(calc(var(--scale) * var(--scale-x)));
    }

    .sticker:hover {
        transform: rotate(0) scale(calc(var(--scale) * var(--scale-x) * 1.02));
    }
}

.wall__sentinel {
    width: 100%;
    height: 1px;
}

.wall__loading {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    color: var(--ink-mute);
    font-size: 0.95rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}

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

.wall__empty {
    text-align: center;
    padding: 4rem 0;
}

.wall__empty h2 {
    font-size: 1.4rem;
}

/* End-of-wall CTA - shown after all logos have loaded */
.wall__end-cta {
    padding: clamp(3rem, 6vw, 5rem) 1rem clamp(4rem, 8vw, 7rem);
    text-align: center;
}

.wall__end-cta__inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.wall__end-cta__inner::before {
    content: "";
    position: absolute;
    inset: -2rem -2.5rem;
    background: var(--tape);
    border-radius: 4px;
    transform: skewX(-2deg) rotate(-0.6deg);
    z-index: 0;
    opacity: 0.18;
}

.wall__end-cta__label {
    margin: 0;
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
}

.wall__end-cta__headline {
    margin: 0;
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
}

.wall__end-cta .btn {
    position: relative;
}

/* ==== Brand profile (clean chrome) ================================= */
.brand-page {
    padding: 3.2rem 0 5rem;
    max-width: 760px;
    margin-inline: auto;
}

.brand-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink-mute);
    font-size: 0.88rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 2.4rem;
    text-decoration: none;
    transition: color 140ms ease;
}

.brand-page__back:hover {
    color: var(--ink);
    text-decoration: none;
}

.brand-page__back::before {
    content: "←";
    font-style: normal;
}

.brand-page__head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.6rem 2.4rem;
    align-items: start;
    margin-bottom: 2.4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}

.brand-page__logo-wrap {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 160px;
    flex-shrink: 0;
}

.brand-page__logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-page__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-page__intro h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    margin-bottom: 0.35rem;
    line-height: 1.05;
}

.brand-page__tagline {
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin-bottom: 1.4rem;
    line-height: 1.4;
}

.brand-page__cta {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Social-icon row under the brand profile CTA */
.brand-page__socials {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.brand-page__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    transition: transform 140ms cubic-bezier(.16, 1, .3, 1),
        color 140ms ease,
        border-color 140ms ease,
        background-color 140ms ease;
}

.brand-page__social:hover {
    transform: translateY(-1px);
    color: var(--accent-ink);
    background: var(--ink);
    border-color: var(--ink);
    text-decoration: none;
}

/* Per-platform brand colours on hover. */
.brand-page__social--twitter:hover {
    background: #000000;
    border-color: #000000;
}

.brand-page__social--linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
}

.brand-page__social--github:hover {
    background: #181717;
    border-color: #181717;
}

.brand-page__social--youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
}

.brand-page__social--instagram:hover {
    background: #E4405F;
    border-color: #E4405F;
}

.brand-page__social--facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.brand-page__social--tiktok:hover {
    background: #000000;
    border-color: #000000;
}

/* Dynamic social-link builder used in account + admin brand-edit forms. */
.social-builder__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.social-builder__hint {
    margin: 0.4rem 0 0.7rem;
    color: var(--ink-mute);
    font-size: 0.88rem;
}

.social-builder__icons {
    display: none;
}

.social-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.55rem;
    background: var(--bg-chrome);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.social-row__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
}

.social-row__select {
    flex-shrink: 0;
    min-width: 130px;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: var(--ink);
}

.social-row__url {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: var(--ink);
}

.social-row__url:focus,
.social-row__select:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.social-row__remove {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--ink-mute);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.social-row__remove:hover {
    border-color: #9a261c;
    color: #9a261c;
    background: color-mix(in srgb, #9a261c 6%, var(--bg-card));
}

@media (max-width: 540px) {
    .social-row {
        flex-wrap: wrap;
    }

    .social-row__url {
        flex-basis: 100%;
        order: 3;
    }

    .social-row__remove {
        margin-left: auto;
    }
}

.brand-page__body {
    margin-bottom: 2.4rem;
}

.brand-page__body p {
    font-size: 1.05rem;
    color: var(--ink-soft);
    max-width: 65ch;
    line-height: 1.65;
}

.brand-page__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem 2rem;
    border-top: 1px solid var(--line);
    padding-top: 1.6rem;
}

.brand-page__meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.brand-page__meta-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-mute);
}

.brand-page__meta-value {
    font-size: 0.95rem;
    color: var(--ink-soft);
    font-weight: 500;
}

.brand-page__meta-value a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.brand-page__meta-value a:hover {
    text-decoration-color: var(--accent-deep);
}

@media (max-width: 640px) {
    .brand-page__head {
        grid-template-columns: 1fr;
    }

    .brand-page__logo-wrap {
        min-width: auto;
    }
}

/* ==== Signup (clean chrome) ======================================== */
.signup {
    padding: 3rem 0 5rem;
    max-width: 720px;
    margin-inline: auto;
}

.signup__head {
    margin-bottom: 2.4rem;
}

.signup__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink-mute);
    font-size: 0.82rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.6rem;
    text-decoration: none;
    transition: color 140ms ease;
}

.signup__back::before {
    content: "←";
}

.signup__back:hover {
    color: var(--ink);
    text-decoration: none;
}

.signup h1 {
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    margin-bottom: 0.5rem;
}

.signup__lede {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 56ch;
    margin-bottom: 0.8rem;
}

.signup__lede strong {
    color: var(--ink);
    font-weight: 600;
}

.signup__note {
    font-size: 0.92rem;
    color: var(--ink-mute);
    max-width: 56ch;
}

.signup__errors {
    background: color-mix(in srgb, var(--accent) 10%, var(--bg-card));
    border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line));
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    margin-bottom: 2rem;
    color: var(--ink);
    font-size: 0.95rem;
}

.signup__errors ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

.signup__errors li {
    margin-bottom: 0.2rem;
}

.signup-form {
    display: grid;
    gap: 2rem;
}

.signup-form__section {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.6rem 1.4rem;
    background: var(--bg-card);
    margin: 0;
}

.signup-form__section legend {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    padding: 0 0.5rem;
    margin-left: -0.5rem;
}

.legend__hint {
    color: var(--ink-mute);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.82rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.field:last-child {
    margin-bottom: 0;
}

.field label {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
}

.field__hint {
    font-weight: 400;
    color: var(--ink-mute);
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field input[type="number"],
.field input[type="file"],
.field select,
.field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-chrome);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.field textarea {
    font-family: var(--font-sans);
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.field input[type="file"] {
    padding: 0.55rem 0.6rem;
    cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--ink);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.field-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}

.field-row .field {
    margin-bottom: 0;
}

.field--check label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-weight: 400;
    cursor: pointer;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.field--check input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.field--check a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

/* ---- Field validation states ------------------------------------- */
.field--invalid input,
.field--invalid textarea,
.field--invalid select {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 5%, var(--bg-chrome));
}
.field--invalid input:focus,
.field--invalid textarea:focus,
.field--invalid select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field__error {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 500;
    margin-top: -0.1rem;
}
.field--valid input,
.field--valid textarea,
.field--valid select {
    border-color: #16a34a;
}
.field--valid input:focus,
.field--valid textarea:focus,
.field--valid select:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px color-mix(in srgb, #16a34a 18%, transparent);
}

/* ==== Tier toggle (Standard vs Featured) ========================== */
.signup-form__section--tier {
    background: var(--bg-card);
}

.tier-toggle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.tier-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.tier-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.tier-card__inner {
    display: block;
    padding: 1.2rem 1.2rem 1.1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-chrome);
    transition: border-color 160ms ease, background-color 160ms ease,
        box-shadow 160ms ease, transform 140ms ease;
    height: 100%;
}

.tier-card:hover .tier-card__inner {
    border-color: var(--ink);
    transform: translateY(-1px);
}

.tier-card input[type="radio"]:checked+.tier-card__inner {
    border-color: var(--ink);
    background: var(--bg-card);
    box-shadow: var(--shadow-2);
}

.tier-card--featured input[type="radio"]:checked+.tier-card__inner {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent),
        var(--shadow-2);
}

.tier-card input[type="radio"]:focus-visible+.tier-card__inner {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.tier-card__price {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.tier-card--featured .tier-card__price {
    color: var(--accent);
}

.tier-card__title {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.tier-card__desc {
    display: block;
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.5;
}

.tier-card__badge {
    position: absolute;
    top: -10px;
    right: 14px;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    z-index: 1;
}

/* Strikethrough "was" price shown when a promo is active. */
.tier-card__price-was {
    color: var(--ink-mute);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Inline "X% off" pill on each tier card when a promo is applied. */
.tier-card__discount-badge {
    display: inline-block;
    background: var(--tape);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin: -0.1rem 0 0.5rem;
    box-shadow: 0 1px 0 rgba(10, 9, 8, 0.08);
}

/* Banner above the tier toggle when a promo is in effect. */
.tier-promo-banner {
    margin: 0 0 1rem;
    padding: 0.7rem 0.95rem;
    background: color-mix(in srgb, var(--accent) 8%, var(--bg-card));
    border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.4;
}

.tier-promo-banner code {
    font-family: var(--font-mono);
    background: var(--ink);
    color: var(--bg);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

@media (max-width: 640px) {
    .tier-toggle {
        grid-template-columns: 1fr;
    }
}

/* Honeypot - hide from humans only */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==== Logo dropzone ============================================== */
.dropzone {
    position: relative;
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    background: var(--bg-chrome);
    padding: 1.6rem 1.4rem;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, transform 140ms ease;
}

.dropzone:hover {
    border-color: var(--ink);
    background: var(--bg-card);
}

.dropzone.is-drag {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, var(--bg-card));
    transform: scale(1.005);
}

.dropzone--error {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 6%, var(--bg-card));
    animation: dropzone-shake 0.35s ease;
}

@keyframes dropzone-shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-6px); }
    75%       { transform: translateX(6px); }
}

.dropzone.is-loaded {
    border-style: solid;
    border-color: var(--ink);
    background: var(--bg-card);
}

.dropzone__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    pointer-events: none;
}

.dropzone__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: 0.6rem 0;
    pointer-events: none;
}

.dropzone__icon {
    color: var(--ink-mute);
    margin-bottom: 0.2rem;
}

.dropzone.is-drag .dropzone__icon {
    color: var(--accent);
}

.dropzone__msg {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink);
    font-weight: 500;
}

.dropzone__pick {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    pointer-events: auto;
}

.dropzone__pick:hover {
    color: var(--accent-deep);
}

.dropzone__hint {
    margin: 0;
    font-size: 0.82rem;
    color: var(--ink-mute);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dropzone__preview {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dropzone__thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 6px;
    flex-shrink: 0;
}

.dropzone__file-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.dropzone__file-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropzone__file-size {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dropzone__clear {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: var(--ink-soft);
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
    transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.dropzone__clear:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--bg-card);
}

/* Submit loading state */
.btn[data-submit-btn].is-loading {
    opacity: 0.7;
    cursor: wait;
}

.btn[data-submit-btn]:disabled {
    cursor: not-allowed;
}

/* ==== Payment step =============================================== */
.signup-pay {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    padding: 2rem 1.8rem;
    max-width: 520px;
    margin-inline: auto;
}

.signup-pay__head {
    margin-bottom: 1.6rem;
    text-align: center;
}

.signup-pay__title {
    font-size: clamp(1.4rem, 2.6vw, 1.7rem);
    margin: 0.6rem 0 0.6rem;
    line-height: 1.15;
}

.signup-pay__title [data-pay-amount] {
    color: var(--accent);
}

.signup-pay__sub {
    color: var(--ink-mute);
    font-size: 0.92rem;
    margin: 0;
    max-width: 36ch;
    margin-inline: auto;
}

.signup-pay__buttons {
    margin: 1.4rem 0 0.4rem;
    min-height: 56px;
}

.signup-pay__error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: color-mix(in srgb, var(--accent) 10%, var(--bg-card));
    border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line));
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 0.92rem;
}

.signup-pay__small {
    text-align: center;
    margin: 1.2rem 0 0;
    font-size: 0.85rem;
}

.signup-pay__back-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--ink-mute);
    font: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 140ms ease;
}

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

.signup-form__submit {
    text-align: center;
    padding-top: 0.5rem;
}

.signup-form__small {
    margin-top: 0.8rem;
    font-size: 0.82rem;
    color: var(--ink-mute);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==== Signup thanks ============================================== */
.signup-thanks {
    padding: 5rem 0;
}

.signup-thanks__inner {
    max-width: 580px;
    margin-inline: auto;
    text-align: center;
}

.signup-thanks__sticker {
    display: inline-flex;
    transform: rotate(-6deg);
    filter: drop-shadow(0 8px 18px rgba(10, 9, 8, 0.12));
    margin-bottom: 1.6rem;
}

.signup-thanks h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.8rem;
}

.signup-thanks__lede {
    font-size: 1.1rem;
    color: var(--ink-soft);
    margin-bottom: 1.6rem;
}

.signup-thanks__list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    gap: 0.6rem;
    text-align: left;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem 0;
}

.signup-thanks__list li {
    color: var(--ink-soft);
    font-size: 0.95rem;
    padding-left: 1.4rem;
    position: relative;
}

.signup-thanks__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

.signup-thanks__cta {
    display: inline-flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 640px) {
    .field-row {
        grid-template-columns: 1fr;
    }

    .signup-form__section {
        padding: 1.2rem;
    }
}

/* ==== Auth (OTP login) ============================================= */
.auth {
    padding: 4rem 0 5rem;
}

.auth__card {
    max-width: 460px;
    margin-inline: auto;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.4rem 2rem;
    box-shadow: var(--shadow-2);
}

.auth__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink-mute);
    font-size: 0.82rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.6rem;
    text-decoration: none;
}

.auth__back::before {
    content: "←";
}

.auth__back:hover {
    color: var(--ink);
    text-decoration: none;
}

.auth h1 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem;
}

.auth__lede {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.auth__hint {
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin: 0 0 1.2rem;
}

.auth__error {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    background: color-mix(in srgb, var(--accent) 10%, var(--bg-card));
    border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line));
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 0.92rem;
}

.auth__notice {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    background: #E6F5E6;
    border: 1px solid #BBE2C2;
    border-radius: var(--radius-sm);
    color: #15743a;
    font-size: 0.92rem;
}

.auth__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth__field span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-mute);
}

.auth__field input {
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-chrome);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--ink);
}

.auth__field input:focus {
    outline: none;
    border-color: var(--ink);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.auth__small {
    margin: 0.6rem 0 0;
    font-size: 0.85rem;
    color: var(--ink-mute);
    text-align: center;
}

.auth__small a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
}

.auth__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
}

.auth__link {
    background: none;
    border: none;
    padding: 0;
    color: var(--ink-mute);
    font: inherit;
    font-size: 0.85rem;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    cursor: pointer;
}

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

/* ==== Account area ================================================= */
.account {
    padding: 2.4rem 0 4rem;
}

.account__shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.4rem;
    align-items: start;
}

.account-sidebar {
    position: sticky;
    top: 88px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.2rem;
}

.account-sidebar__hello {
    font-size: 0.78rem;
    color: var(--ink-mute);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.account-sidebar__hello strong {
    color: var(--ink);
    font-size: 0.92rem;
    word-break: break-all;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 1rem;
}

.account-nav__item {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease;
}

.account-nav__item:hover {
    background: color-mix(in srgb, var(--ink) 5%, transparent);
    color: var(--ink);
    text-decoration: none;
}

.account-nav__item.is-active {
    background: var(--ink);
    color: var(--bg);
}

.account-sidebar__signout {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.account-sidebar__signout button {
    width: 100%;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    color: var(--ink-soft);
    font: inherit;
    font-size: 0.85rem;
    transition: border-color 140ms ease, color 140ms ease;
    text-align: left;
}

.account-sidebar__signout button:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.account-page__head {
    margin-bottom: 1.8rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--line);
}

.account-page__head h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 0.3rem;
}

.account-page__head p {
    margin: 0;
    color: var(--ink-mute);
    font-size: 0.92rem;
}

@media (max-width: 880px) {
    .account__shell {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .account-sidebar {
        position: static;
    }

    .account-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ==== Exit-intent popup ============================================ */
.exit-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.exit-popup.is-open {
    opacity: 1;
    pointer-events: auto;
}

.exit-popup__backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--ink) 65%, transparent);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.exit-popup__card {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 2.4rem 1.8rem 1.8rem;
    box-shadow:
        0 6px 14px rgba(10, 9, 8, 0.18),
        0 30px 60px rgba(10, 9, 8, 0.30);
    transform: rotate(-1.5deg) translateY(20px) scale(0.96);
    transition: transform 280ms cubic-bezier(.2, .8, .2, 1.15);
    text-align: center;
}

.exit-popup.is-open .exit-popup__card {
    transform: rotate(-1.5deg) translateY(0) scale(1);
}

.exit-popup__close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--ink-mute);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: color 140ms ease, background-color 140ms ease;
}

.exit-popup__close:hover {
    color: var(--ink);
    background: var(--bg-chrome);
}

/* Yellow tape strip in the corner - the graffiti-wall flourish */
.exit-popup__tape {
    position: absolute;
    top: -16px;
    left: 28px;
    width: 110px;
    height: 26px;
    background: var(--tape);
    transform: rotate(-6deg);
    box-shadow: 0 2px 4px rgba(10, 9, 8, 0.12);
    border-radius: 2px;
    pointer-events: none;
}

.exit-popup__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin: 0 0 0.6rem;
}

.exit-popup__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.04;
    margin: 0 0 0.8rem;
    color: var(--ink);
}

.exit-popup__sub {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.4rem;
    max-width: 36ch;
    margin-inline: auto;
}

.exit-popup__sub strong {
    color: var(--accent);
}

.exit-popup__code-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    margin: 0 0 1.2rem;
}

.exit-popup__code {
    flex: 1;
    padding: 0.85rem 1rem;
    background: color-mix(in srgb, var(--tape) 35%, var(--bg-card));
    border: 2px dashed var(--ink);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.12em;
    color: var(--ink);
    text-align: center;
    user-select: all;
}

.exit-popup__copy {
    flex-shrink: 0;
    padding: 0 1rem;
    background: var(--ink);
    color: var(--bg);
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.exit-popup__copy:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.exit-popup__copy:active {
    transform: scale(0.97);
}

.exit-popup__copy.is-copied {
    background: #15743a;
    border-color: #15743a;
}

.exit-popup__cta {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.exit-popup__dismiss {
    background: none;
    border: none;
    padding: 0.4rem 0.6rem;
    color: var(--ink-mute);
    font: inherit;
    font-size: 0.82rem;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    cursor: pointer;
}

.exit-popup__dismiss:hover {
    color: var(--ink);
}

@media (max-width: 480px) {
    .exit-popup__card {
        padding: 2rem 1.4rem 1.4rem;
        transform: rotate(-1deg) translateY(20px) scale(0.96);
    }

    .exit-popup.is-open .exit-popup__card {
        transform: rotate(-1deg) translateY(0) scale(1);
    }

    .exit-popup__title {
        font-size: 1.7rem;
    }

    .exit-popup__code {
        font-size: 1.05rem;
        padding: 0.75rem 0.6rem;
    }

    .exit-popup__tape {
        left: 18px;
        width: 90px;
    }
}

/* ==== Static pages (clean chrome) ================================== */
.static-page {
    padding: 3.2rem 0 4rem;
    max-width: 720px;
    margin-inline: auto;
}

.static-page__lede {
    font-size: 1.18rem;
    color: var(--ink-soft);
    margin-bottom: 2rem;
    max-width: 60ch;
}

.static-page__updated {
    color: var(--ink-mute);
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.static-page h2 {
    margin-top: 2.4rem;
}

.static-page ul,
.static-page ol {
    padding-left: 1.4rem;
    margin: 0 0 1em;
}

.static-page li {
    margin-bottom: 0.4rem;
}

/* ==== Placeholders ================================================= */
.placeholder {
    text-align: center;
    padding: 5rem 0;
}

.placeholder h1 {
    max-width: 18ch;
    margin-inline: auto;
}

.placeholder__price {
    font-size: 1.05rem;
    color: var(--ink-soft);
}

/* ==== Errors ======================================================= */
.error-page {
    text-align: center;
    padding: 5rem 0;
}

.error-page__code {
    font-family: var(--font-mono);
    color: var(--ink-mute);
    font-size: 0.82rem;
    letter-spacing: 0.4em;
    margin-bottom: 1rem;
}

.error-page .btn+.btn {
    margin-left: 0.4rem;
}

/* ==== Footer (clean chrome) ======================================= */
.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 3rem;
    padding: 2rem 0 2rem;
    color: var(--ink-mute);
    font-size: 0.9rem;
    background: var(--bg-chrome);
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.site-footer nav {
    display: flex;
    gap: 1rem;
}

.site-footer a {
    color: var(--ink-mute);
}

.site-footer a:hover {
    color: var(--ink);
    text-decoration: none;
}

/* ==== Responsive collapse ========================================= */
@media (max-width: 880px) {
    .wall-hero__inner {
        grid-template-columns: 1fr;
    }

    /* Featured cards stack below the copy on mobile. Tighter min-height and
       smaller cards so the stack doesn't push the wall too far down. */
    .hero-stack {
        min-height: 260px;
        margin-top: 1.4rem;
    }

    .hero-card {
        height: 88px;
        padding: 10px 12px;
        max-width: 180px;
    }
}

@media (max-width: 640px) {

    /* Hero CTA - tighter on small screens */
    .wall-hero__cta .btn--lg {
        padding: 0.7rem 1.1rem;
        font-size: 0.9rem;
    }

    /* Header - tighter on small screens, no wrapping */
    .site-nav a:not(.btn) {
        display: none;
    }

    .brand-mark {
        font-size: 1.05rem;
    }

    .brand-mark__icon {
        width: 32px;
        height: 32px;
    }

    .site-nav .btn {
        padding: 0.55rem 0.9rem;
        font-size: 0.82rem;
    }

    /* Footer - centered, slightly smaller */
    .site-footer {
        font-size: 0.82rem;
    }

    .footer-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.6rem;
    }

    /* Hover-dim on the wall grid is touch-only on mobile - disable it */
    .wall__grid:hover .sticker:not(:hover) {
        opacity: 1;
    }
}

/* ==== Reduced motion =============================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .marquee__track {
        animation: none;
        transform: none;
    }

    .sticker {
        transform: rotate(calc((var(--rot) + var(--rot-extra)) * 1deg)) scale(calc(var(--scale) * var(--scale-x)));
    }

    .sticker:hover {
        transform: scale(calc(var(--scale) * var(--scale-x) * 1.02));
    }

    .eyebrow::before {
        animation: none;
    }
}