/* One Long Friday (/one-long-friday/): the game's page, the alpha playtest and vendor applications.
   Festival dusk on near-black: warm paper type, one gold accent, images that do the talking. */
:root {
    --bg: #0b0810;
    --bg-2: #120d1a;
    --bg-3: #1a1324;
    --ink: #f4ecdf;
    --ink-2: #dcd2e4;
    --muted: #a99db7;
    --dim: #7d7290;
    --gold: #ffc857;
    --ember: #ff6a3d;
    --pink: #ff4d8d;
    --mint: #5de0c3;
    --line: rgba(244, 236, 223, 0.12);
    --line-2: rgba(244, 236, 223, 0.24);
    --glass: rgba(244, 236, 223, 0.05);
    --r-s: 3px;
    --r-m: 4px;
    --r-l: 6px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --display: "Bricolage Grotesque", "Outfit", system-ui, sans-serif;
    --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --sans: "Instrument Sans", "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 48px);
    --p: 0;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-optical-sizing: auto; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 200; padding: 10px 16px; border-radius: var(--r-s); background: var(--gold); color: var(--bg); font-weight: 600; }
.skip:focus { left: 16px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* film grain over everything, a thin progress line at the top */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.055; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 180px 180px; }
.progress-line { position: fixed; top: 0; left: 0; z-index: 95; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p)); background: linear-gradient(90deg, var(--ember), var(--gold)); pointer-events: none; }

/* ---- type helpers ---- */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.8; }
.h2 { font-size: clamp(34px, 4.8vw, 66px); max-width: 15ch; }
.h3 { font-size: clamp(20px, 2vw, 24px); }
.accent { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: 0; color: var(--gold); }
.lede { color: var(--ink-2); font-size: clamp(17px, 1.5vw, 20px); max-width: 60ch; }
.lede-sm { color: var(--muted); max-width: 62ch; }
.fine { color: var(--dim); font-size: 14px; }
.muted { color: var(--muted); }

/* ---- buttons ---- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: var(--r-s); border: 1px solid transparent; font: 600 15px var(--sans); letter-spacing: 0.02em; text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate; transition: background 0.25s, border-color 0.25s, box-shadow 0.4s var(--ease), color 0.25s; }
.btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; opacity: 0.55; transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); }
.btn:active { filter: brightness(0.94); }
.btn--primary { color: #1c1206; background: var(--gold); }
.btn--primary:hover { background: #ffd374; box-shadow: 0 18px 40px -22px rgba(255, 200, 87, 0.75); }
.btn--ghost { color: var(--ink); background: rgba(11, 8, 16, 0.35); border-color: var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { background: rgba(244, 236, 223, 0.09); border-color: rgba(255, 200, 87, 0.6); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--text { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.btn--text .arrow { transition: transform 0.3s var(--ease); }
.btn--text:hover { color: var(--gold); }
.btn--text:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---- nav ---- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 14px var(--gutter); pointer-events: none; }
.nav__bar { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1240px; margin-inline: auto; padding: 8px 8px 8px 16px; border-radius: var(--r-m); border: 1px solid transparent; transition: background 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s; }
.nav.is-scrolled .nav__bar, .nav.is-open .nav__bar { background: rgba(11, 8, 16, 0.62); border-color: var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.8); }
.nav__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap; flex: none; }
.nav__brand img { width: 28px; height: 28px; border-radius: 2px; box-shadow: 0 0 18px rgba(255, 200, 87, 0.35); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a { padding: 8px 12px; border-radius: var(--r-s); color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; transition: color 0.2s, background 0.2s; }
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--ink); background: var(--glass); }
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__menu { display: none; width: 44px; height: 44px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--glass); cursor: pointer; padding: 0; }
.nav__menu span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav__menu span + span { margin-top: 5px; }
.nav.is-open .nav__menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__menu span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1080px) {
    .nav__links { position: fixed; inset: 80px var(--gutter) auto; display: grid; gap: 4px; padding: 14px; border-radius: var(--r-m); border: 1px solid var(--line); background: rgba(11, 8, 16, 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
    .nav__links a { font-size: 18px; padding: 12px 14px; }
    .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
    .nav__menu { display: block; }

    .nav .live { display: none; }
}

/* the live world chip (filled from /api/olf/worlds) */
.live { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 11px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: rgba(11, 8, 16, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink-2); font-size: 13px; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }
.live__dot { position: relative; width: 8px; height: 8px; border-radius: 1px; background: var(--gold); flex: none; }
.live.is-on { border-color: rgba(93, 224, 195, 0.45); }
.live.is-on .live__dot { background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.live.is-on .live__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 1px; border: 1px solid var(--mint); animation: ping 2.2s var(--ease) infinite; }

/* ---- hero ---- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: clip; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; transform-origin: 50% 30%; will-change: transform; }
.hero__veil { position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(180deg, rgba(11, 8, 16, 0.45) 0%, rgba(11, 8, 16, 0.05) 30%, rgba(11, 8, 16, 0.35) 58%, rgba(11, 8, 16, 0.92) 86%, var(--bg) 100%),
    radial-gradient(60% 50% at 50% 100%, rgba(255, 106, 61, 0.18), transparent 70%); }
.hero__fx { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__inner { position: relative; padding: 150px 0 clamp(40px, 6vw, 72px); }
.hero__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 26px; }
.hero__top .fine { color: var(--ink-2); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
.hero__title { font-size: clamp(60px, 12.5vw, 176px); font-weight: 700; letter-spacing: -0.035em; line-height: 0.9; margin-left: -0.04em; text-shadow: 0 10px 50px rgba(0, 0, 0, 0.55); }
.hero__sub { margin: 18px 0 0; font-family: var(--serif); font-size: clamp(26px, 3.6vw, 46px); line-height: 1.1; color: #ffe6b8; letter-spacing: -0.01em; }
.hero__sub em { font-style: italic; color: var(--gold); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-top: 34px; }
.hero__lede { color: var(--ink-2); font-size: clamp(16px, 1.5vw, 19px); max-width: 54ch; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 26px; }
.hero__join { width: 100%; margin-top: 4px; font-size: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 0; margin-top: clamp(40px, 6vw, 72px); padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
.facts span { padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--line-2); }
.facts span:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.facts b { color: var(--gold); font-weight: 600; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(180deg, var(--gold), transparent); animation: cue 2s var(--ease) infinite; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 24px; } .hero__inner { padding-top: 120px; } .facts { display: grid; gap: 8px; } .facts span { border-right: 0; padding-right: 0; margin-right: 0; } .scroll-cue { display: none; } }
@supports (animation-timeline: scroll()) {
    .hero__bg img { animation: heroDrift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    /* the copy fades as you leave the hero, only where the hero fits on one screen (on a phone it is taller than the screen) */
    @media (min-width: 901px) { .hero__inner { animation: heroFade linear both; animation-timeline: scroll(root); animation-range: 0 70vh; } }
}

/* ---- sections ---- */
.section { position: relative; padding-block: clamp(84px, 12vw, 168px); }
.section--tight { padding-block: clamp(56px, 8vw, 110px); }
.section--tone { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(30px, 6vw, 96px); align-items: start; }
.split--rev { grid-template-columns: 5fr 7fr; }
.split--mid { align-items: center; }
@media (max-width: 900px) { .split, .split--rev { grid-template-columns: 1fr; } }
.head { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(20px, 4vw, 60px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.head .lede { padding-bottom: 6px; }
@media (max-width: 900px) { .head { grid-template-columns: 1fr; } }

/* intro: a big statement and who makes it */
.maker { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 22px; margin-top: 28px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--glass); }
.maker img { width: 56px; height: 56px; border-radius: var(--r-s); box-shadow: 0 0 24px rgba(255, 200, 87, 0.3); }
.maker b { display: block; font-weight: 600; }
.maker p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.maker a { display: inline-block; margin-top: 10px; font-size: 14px; }

/* a day at the festival: the pinned frame and the steps that drive it */
.hours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 18px; }
.hour { display: flex; flex-direction: column; }
.hour__pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-m); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line); }
.hour__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 0.5s; filter: brightness(0.92); }
.hour:hover .hour__pic img { transform: scale(1.03); filter: brightness(1); }
.hour__time { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: var(--r-s); background: rgba(11, 8, 16, 0.78); border: 1px solid var(--line); font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--gold); font-variant-numeric: tabular-nums; }
.hour__t { margin-top: 16px; font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.hour h3 { font-size: clamp(20px, 1.8vw, 24px); margin-top: 6px; }
.hour p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
@media (max-width: 900px) { .hours { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hours { grid-template-columns: 1fr; } }

/* features: a bento grid with the screenshots behind the big ones */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(190px, auto); gap: 14px; }
.tile { --mx: 50%; --my: 50%; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 26px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--bg-2); min-height: 230px; isolation: isolate; transition: border-color 0.35s; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(244, 236, 223, 0.09), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.tile:hover { border-color: var(--line-2); }
.tile:hover::after { opacity: 1; }
.tile--img img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s; filter: saturate(1.05) brightness(0.9); }
.tile--img:hover img { transform: scale(1.04); filter: saturate(1.15) brightness(1); }
.tile--img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 8, 16, 0) 30%, rgba(11, 8, 16, 0.86) 100%); }
.tile h3 { font-size: clamp(22px, 2.2vw, 30px); }
.tile p { color: var(--ink-2); font-size: 15px; max-width: 44ch; }
.tile--img p { color: #efe6dc; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.tile__k { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.tile--big { grid-column: 1 / 4; grid-row: 1 / 3; }
.tile--a { grid-column: 4 / 7; grid-row: 1; }
.tile--b { grid-column: 4 / 7; grid-row: 2; }
.tile--c { grid-column: 1 / 3; grid-row: 3; }
.tile--d { grid-column: 3 / 5; grid-row: 3; }
.tile--e { grid-column: 5 / 7; grid-row: 3; }
.tile__big { font-family: var(--display); font-size: clamp(44px, 5vw, 72px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile__big small { font-size: 0.42em; color: var(--gold); margin-left: 4px; letter-spacing: -0.01em; }
.tile__list { color: var(--ink-2); font-size: 15px; max-width: 46ch; }
.tile__list em { font-family: var(--serif); font-style: italic; font-size: 1.12em; color: var(--gold); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; } .tile--big { grid-column: 1 / -1; grid-row: auto; min-height: 340px; } .tile--a, .tile--b, .tile--c, .tile--d, .tile--e { grid-column: auto; grid-row: auto; } .tile--b { grid-column: 1 / -1; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile--a, .tile--c, .tile--d, .tile--e { grid-column: 1 / -1; } }

/* screenshots: a snapping reel with a counter */
.reel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 24px; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 min(82vw, 820px); margin: 0; scroll-snap-align: center; }
.shot button { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-m); overflow: hidden; cursor: zoom-in; background: var(--bg-3); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1s var(--ease), filter 0.6s; }
.shot button:hover img { transform: scale(1.035); filter: saturate(1.15); }
.shot figcaption { display: flex; gap: 12px; align-items: baseline; margin-top: 12px; color: var(--muted); font-size: 14px; }
.shot figcaption b { font-family: var(--display); color: var(--gold); font-weight: 600; letter-spacing: 0.08em; }
.reel__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.reel__count { font-family: var(--display); font-size: 15px; letter-spacing: 0.12em; color: var(--muted); font-variant-numeric: tabular-nums; }
.reel__count b { color: var(--ink); font-weight: 600; }
.reel__nav { display: flex; gap: 8px; }
.reel__btn { width: 46px; height: 46px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--glass); cursor: pointer; transition: background 0.2s, transform 0.3s var(--ease); display: grid; place-items: center; padding: 0; }
.reel__btn:hover { background: rgba(244, 236, 223, 0.12); transform: translateY(-2px); }
.reel__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* playtest */
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 2px; border: 1px solid rgba(93, 224, 195, 0.6); background: rgba(93, 224, 195, 0.12); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 9px; border: solid var(--mint); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.rigs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rig { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font-size: 15px; }
.rig::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--gold); opacity: 0.8; flex: none; }
.rig:nth-child(3n)::before { background: var(--mint); }
.rig:nth-child(3n + 2)::before { background: var(--pink); }
.rigs__t { grid-column: 1 / -1; margin: 0 0 6px; color: var(--muted); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: clamp(48px, 6vw, 80px) 0 0; counter-reset: t; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: linear-gradient(90deg, var(--gold), var(--line) 60%, transparent); }
.tstep { position: relative; padding-top: 48px; }
.tstep::before { content: counter(t, decimal-leading-zero); counter-increment: t; position: absolute; left: 0; top: 0; display: grid; place-items: center; height: 46px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--bg); font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: 0.06em; color: var(--gold); }
.tstep h3 { font-size: 20px; }
.tstep p { color: var(--muted); font-size: 15px; margin-top: 8px; }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr 1fr; } .timeline::before { display: none; } }
@media (max-width: 520px) { .timeline, .rigs { grid-template-columns: 1fr; } }

/* vendors */
.framed { position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: 0 50px 120px -50px rgba(255, 106, 61, 0.45), inset 0 0 0 1px var(--line); }
.framed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.framed__badge { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-s); background: rgba(11, 8, 16, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.framed__badge b { color: var(--ink); font-weight: 600; }
.framed__badge i { width: 8px; height: 8px; border-radius: 1px; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(48px, 6vw, 80px); }
.how__step { padding: 24px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--glass); }
.how__n { font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; color: var(--gold); line-height: 1; }
.how__step h3 { font-size: 20px; margin-top: 14px; }
.how__step p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(36px, 5vw, 60px); }
.tier { --mx: 50%; --my: 50%; position: relative; isolation: isolate; overflow: hidden; padding: 24px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--bg-2); transition: border-color 0.3s; }
.tier::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(300px circle at var(--mx) var(--my), rgba(244, 236, 223, 0.08), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.tier:hover { border-color: var(--line-2); }
.tier:hover::after { opacity: 1; }
.tier__tag { display: inline-block; padding: 4px 10px; border-radius: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); background: rgba(255, 200, 87, 0.12); }
.tier h3 { font-size: 22px; margin-top: 16px; }
.tier p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.tier--hot { border-color: rgba(255, 77, 141, 0.5); background: linear-gradient(160deg, rgba(255, 77, 141, 0.14), var(--bg-2) 60%); }
.tier--hot .tier__tag { color: var(--pink); background: rgba(255, 77, 141, 0.14); }
@media (max-width: 1000px) { .how, .tiers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .how, .tiers { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; list-style: none; cursor: pointer; font-family: var(--display); font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; letter-spacing: -0.01em; transition: color 0.2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: center / 14px no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M7 1v12M1 7h12' stroke='%23f4ecdf' stroke-width='1.6' stroke-linecap='round'/></svg>"); transition: transform 0.4s var(--ease), background-color 0.3s; }
.faq summary:hover { color: var(--gold); }
.faq details[open] summary::after { transform: rotate(45deg); background-color: rgba(255, 200, 87, 0.14); }
.faq__a { padding: 0 0 24px; color: var(--muted); max-width: 66ch; font-size: 16px; }
@supports (interpolate-size: allow-keywords) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { height: 0; overflow: clip; transition: height 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
    .faq details[open]::details-content { height: auto; }
}

/* ---- applications ---- */
.apply__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.apply__rail { position: sticky; top: 100px; }
.apply__rail .h2 { font-size: clamp(32px, 3.6vw, 48px); }
.rail-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.rail-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: var(--ink-2); font-size: 15px; }
.rail-list b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-s); border: 1px solid var(--line-2); font-family: var(--display); font-size: 13px; color: var(--gold); }
.rail-list span { padding-top: 4px; }
.rail-note { margin-top: 26px; padding: 16px 18px; border-radius: var(--r-s); border: 1px solid rgba(93, 224, 195, 0.3); background: rgba(93, 224, 195, 0.07); color: var(--ink-2); font-size: 14px; }
@media (max-width: 900px) { .apply__grid { grid-template-columns: 1fr; } .apply__rail { position: static; } }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line-2); margin-bottom: 22px; }
.switch button { position: relative; z-index: 1; padding: 12px 30px 14px; border: 0; background: none; color: var(--muted); font: 600 15px var(--sans); letter-spacing: 0.02em; cursor: pointer; transition: color 0.3s; }
.switch button:hover { color: var(--ink); }
.switch button[aria-selected="true"] { color: var(--gold); }
.switch-pill { position: absolute; bottom: -1px; left: 0; width: 50%; height: 2px; background: var(--gold); transition: transform 0.45s var(--ease); }
.switch.vendor .switch-pill { transform: translateX(100%); }
.app-form { position: relative; padding: clamp(22px, 4vw, 40px); border-radius: var(--r-l); border: 1px solid var(--line); background: var(--bg-2); box-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.9); }
.progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress-bar { height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--mint), var(--gold)); transition: width 0.6s var(--ease); }
.step-label { margin: 12px 0 0; color: var(--dim); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.pane { border: 0; margin: 0; padding: 16px 0 0; min-width: 0; display: none; }
.pane.on { display: block; animation: paneIn 0.5s var(--ease); }
.pane legend { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -0.02em; padding: 0; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-top: 4px; position: relative; }
.field small, .q small { color: var(--dim); font-weight: 400; }
.lbl { display: block; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: rgba(244, 236, 223, 0.035); color: var(--ink); font: 400 16px var(--sans); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 200, 87, 0.14); background: rgba(244, 236, 223, 0.06); }
.field select option { background: var(--bg-3); }
.count { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: var(--dim); }
.q { margin: 22px 0 10px; font-weight: 500; color: var(--ink-2); }
.hint { color: var(--dim); font-size: 14px; margin: 8px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 16px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: rgba(244, 236, 223, 0.03); color: var(--ink); font: 500 15px var(--sans); cursor: pointer; transition: transform 0.2s var(--ease), background 0.25s, border-color 0.25s; }
.chips button small { color: var(--dim); font-weight: 400; font-size: 13px; }
.chips button:hover { border-color: rgba(255, 200, 87, 0.6); }
.chips button[aria-pressed="true"] { background: rgba(255, 200, 87, 0.14); border-color: var(--gold); }
.chips button[aria-pressed="true"]::before { content: "✓ "; color: var(--gold); }
.chips button[aria-pressed="true"] small { color: #ffe3b3; }
.agree { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; color: var(--ink-2); font-size: 15px; cursor: pointer; }
.agree input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--gold); flex: 0 0 auto; }
.detect { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-s); background: rgba(93, 224, 195, 0.07); border: 1px dashed rgba(93, 224, 195, 0.4); margin-bottom: 6px; }
.detect p { margin: 0; flex: 1 1 260px; color: var(--muted); font-size: 14px; }
.only-if { display: none; }
.only-if.show { display: flex; animation: paneIn 0.4s var(--ease); }
.bad input, .bad select, .bad textarea { border-color: var(--pink) !important; }
.bad.chips button { border-color: rgba(255, 77, 141, 0.6); }
.err { color: #ff9cc4; font-size: 13px; font-weight: 400; margin-top: 2px; }
.form-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 30px; }
.form-nav [data-next], .form-nav [data-send] { margin-left: auto; }
.form-msg { margin: 16px 0 0; color: #ff9cc4; min-height: 1.2em; font-size: 15px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.chips + .grid, .chips + .field, .hint + .field { margin-top: 18px; }
.thanks { text-align: center; padding: 60px 24px; border-radius: var(--r-l); border: 1px solid rgba(93, 224, 195, 0.35); background: radial-gradient(60% 60% at 50% 0%, rgba(93, 224, 195, 0.14), transparent 70%), var(--bg-2); animation: paneIn 0.7s var(--ease); }
.thanks h3 { font-size: clamp(30px, 3.6vw, 44px); margin: 18px 0 10px; }
.thanks p { color: var(--muted); max-width: 52ch; margin: 0 auto 26px; }
.thanks-mark { width: 72px; height: 72px; margin: 0 auto; display: grid; place-items: center; border-radius: var(--r-s); font-size: 32px; color: var(--bg); background: var(--mint); animation: pop 0.7s var(--ease); }
.confetti { position: fixed; top: -12px; width: 8px; height: 13px; border-radius: 2px; pointer-events: none; z-index: 120; animation: fall linear forwards; }

/* ---- footer, lightbox ---- */
.foot { border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0 40px; color: var(--muted); font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot__brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.foot__brand img { width: 34px; height: 34px; border-radius: 2px; }
.foot p { margin-top: 14px; max-width: 40ch; }
.foot h4 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot ul a { color: var(--ink-2); text-decoration: none; }
.foot ul a:hover { color: var(--gold); }
.foot__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; } }
.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 24px; background: rgba(5, 3, 8, 0.93); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox img { max-height: 82vh; max-width: 100%; width: auto; border-radius: var(--r-m); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8); animation: pop 0.45s var(--ease); }
.lightbox-cap { color: var(--muted); margin: 14px 0 0; text-align: center; font-size: 15px; }
.lightbox-x { position: absolute; top: 16px; right: 20px; width: 46px; height: 46px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--glass); color: var(--ink); font-size: 26px; cursor: pointer; }
.lightbox-arrow { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: rgba(11, 8, 16, 0.6); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.lightbox-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-arrow--prev { left: 18px; }
.lightbox-arrow--next { right: 18px; }
@media (max-width: 640px) { .lightbox-arrow { display: none; } }

/* ---- motion ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
@keyframes heroDrift { to { transform: translateY(14%) scale(1.08); } }
@keyframes heroFade { to { opacity: 0.1; transform: translateY(-40px); } }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes paneIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: scale(1); } }
@keyframes fall { to { transform: translate3d(var(--dx, 0), 110vh, 0) rotate(var(--rot, 540deg)); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .hero__bg img, .hero__inner { animation: none !important; }
    .hour__pic img { transition: none; }
}

/* Android download: one clear action and readable phone installation steps. */
#android { scroll-margin-top: 100px; }
.android-download { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.android-download .eyebrow { margin-bottom: 0; }
.android-download .btn { white-space: normal; text-align: center; max-width: 100%; line-height: 1.4; padding-block: 14px; }
.android-download__meta { color: var(--mint); font-size: 14px; }
.android-install { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--glass); min-width: 0; }
.android-install ol { padding-left: 22px; color: var(--ink-2); }
.android-install li { padding-left: 6px; margin-block: 16px; overflow-wrap: anywhere; }
.android-install details { border-top: 1px solid var(--line); padding-block: 18px; }
.android-install summary { cursor: pointer; color: var(--gold); font-weight: 600; }
.android-install details p { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* the vendor form's Shopify promise */
.vendor-note { margin: 22px 0 6px; padding: 14px 16px; border-left: 2px solid var(--mint); background: rgba(93, 224, 195, 0.06); color: var(--ink-2); }
@media (max-width: 520px) { .nav__brand span { display: none; } }
