/* ==========================================================================
   Landing additions (27 Nov 2026, docs/31), on top of tokens/base/hero/sections.css:
   the waitlist/live switch, full-width section headings, the art styles phones, the How it works demo, format
   phones, the comparison race, the waitlist box and the sticky button. Desktop and phone layouts for each.
   ========================================================================== */

:root {
  --orange: #C8792C;          /* the site's button orange: backgrounds behind white text */
  --orange-deep: #A9601F;
  --ink: #1A1410;
}

/* The launch switch: show only the current version's parts (scripts/site-config.js sets data-mode on <html>) */
html[data-mode="waitlist"] [data-only="live"],
html[data-mode="live"] [data-only="waitlist"] { display: none !important; }

/* Hero: a very light dark layer over the scene (the original layer's shape at low strength, plus a faint even tint) */
.hero__scene::before {
  opacity: 1;
  background:
    linear-gradient(color-mix(in srgb, var(--shade) 8%, transparent), color-mix(in srgb, var(--shade) 8%, transparent)),
    radial-gradient(120% 90% at 18% 55%, color-mix(in srgb, var(--shade) 26%, transparent) 0%, color-mix(in srgb, var(--shade) 10%, transparent) 45%, transparent 70%),
    radial-gradient(140% 100% at 50% 50%, transparent 60%, color-mix(in srgb, var(--shade) 22%, transparent) 100%);
}
/* Hero content sits a little higher and more central, with the subtitle closer to the logo */
.hero__content { padding-top: 2.25rem; }
.hero__title { margin-top: clamp(0.6rem, 1.8vh, 1.25rem); }
/* a short, plain line saying what AnimateShort is (for visitors, search engines and AI assistants) */
.hero__tagline { margin-top: 0.4rem; max-width: 40ch; font-size: 0.88rem; font-weight: 500; color: var(--c-champagne-soft); opacity: 0.9; }
@media (max-width: 760px) { .hero__content { padding-top: 6rem; } }

/* Section headings and their text run the full width (they wrap naturally on phones) */
.section__head { max-width: none; }
.section__head p { max-width: none; }

/* Art styles: text and switch on the left, three stacked phones on the right ---------- */
#styles { padding-block: clamp(2rem, 4vw, 3.25rem); }
.styles-show {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.styles-show__head { margin-bottom: var(--space-xl); }
.styles-show__picks {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  border-radius: 999px; border: 1px solid var(--c-line-strong); background: rgba(42, 26, 63, 0.05);
}
.styles-show__picks button {
  padding: 0.6rem 1.2rem; border: 0; border-radius: 999px; background: transparent;
  color: var(--c-champagne-soft); font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.styles-show__picks button:hover { color: var(--c-champagne); }
.styles-show__picks button[aria-pressed="true"] { background: var(--c-amber); color: var(--c-on-amber); }
.styles-show__text { margin-top: var(--space-l); }
.styles-show__text p { font-size: 1.2rem; line-height: 1.5; color: var(--c-champagne); max-width: 32rem; }
.styles-show__text .styles-show__example { margin-top: var(--space-s); font-size: 0.98rem; color: var(--c-champagne-soft); }
.styles-show__text strong { color: var(--c-champagne); }

.styles-show__stack { position: relative; isolation: isolate; z-index: 5; width: 100%; max-width: 480px; justify-self: end; aspect-ratio: 1 / 1.4; cursor: pointer; }
.styles-show__stack .phone {
  position: absolute; left: 0; top: 3%; width: 72%;
  transform-origin: 50% 100%;
  transition: transform 0.6s var(--ease-out), z-index 0s linear 0.22s;
}
.styles-show__stack .phone[data-pos="0"] { z-index: 3; transform: none; }
.styles-show__stack .phone[data-pos="1"] { z-index: 2; transform: translate(20%, -2%) rotate(5deg) scale(0.93); }
.styles-show__stack .phone[data-pos="2"] { z-index: 1; transform: translate(37%, -3%) rotate(10deg) scale(0.86); }
.styles-show__stack .phone:not([data-pos="0"]) .phone__video,
.styles-show__stack .phone:not([data-pos="0"]) .phone__placeholder { filter: brightness(0.55) saturate(0.85); transition: filter 0.6s var(--ease-out); }
.styles-show__stack .phone:not([data-pos="0"]):hover .phone__video,
.styles-show__stack .phone:not([data-pos="0"]):hover .phone__placeholder { filter: brightness(0.75); }
.styles-show__stack .phone:not([data-pos="0"]) .phone__pause { opacity: 0; pointer-events: none; }
.styles-show__stack .phone:not([data-pos="0"]) .phone__peek { display: block; position: absolute; inset: 0; z-index: 3; padding: 0; border: 0; border-radius: 34px; background: transparent; cursor: pointer; }
.styles-show__stack .phone[data-pos="1"]:hover { transform: translate(23%, -4%) rotate(6deg) scale(0.93); }
.styles-show__stack .phone[data-pos="2"]:hover { transform: translate(41%, -5%) rotate(11deg) scale(0.86); }
.styles-show__stack .phone__play { right: 22px; }
/* sound: mute toggle and volume slider together in one pill */
.phone__vol {
  position: absolute; left: 22px; bottom: 22px; z-index: 2; height: 44px; padding: 0 0.85rem 0 4px; gap: 0.5rem;
  display: flex; align-items: center; border-radius: 999px;
  background: rgba(18, 13, 10, 0.55); border: 1px solid rgba(255, 243, 220, 0.5); transition: opacity 0.3s;
}
.phone__vol-btn { flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 243, 220, 0.14); color: #FFF3DC; cursor: pointer; }
.phone__vol-btn:hover { background: rgba(255, 243, 220, 0.28); }
.phone__vol-btn[aria-pressed="true"] .phone__icon--muted, .phone__vol-btn[aria-pressed="false"] .phone__icon--sound { display: none; }
.phone__vol input, .demo__vol, .mini-ctl input { accent-color: var(--orange); cursor: pointer; margin: 0; }
.phone__vol input { width: clamp(56px, 7vw, 84px); }
.styles-show__stack .phone:not([data-pos="0"]) .phone__vol { opacity: 0; pointer-events: none; }
.demo__volgroup { flex: none; display: flex; align-items: center; gap: 0.4rem; padding: 0 0.6rem 0 0; border-radius: 999px; background: rgba(255, 243, 220, 0.1); }
.demo__vol { flex: none; width: 64px; }
.mini-ctl {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; gap: 0.4rem; padding: 4px 8px 4px 4px; border-radius: 999px;
  background: rgba(18, 13, 10, 0.6);
}
.mini-ctl input { flex: 1 1 auto; min-width: 0; }
.mini-ctl__btn { flex: none; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 243, 220, 0.16); color: #FFF3DC; cursor: pointer; }
.mini-ctl__btn .phone__icon { width: 13px; height: 13px; }
.mini-ctl__btn[aria-pressed="true"] .phone__icon--muted, .mini-ctl__btn[aria-pressed="false"] .phone__icon--sound { display: none; }
@media (prefers-reduced-motion: reduce) { .styles-show__stack .phone { transition: none; } }

/* Placeholder screens (no video yet) */
.phone__placeholder {
  width: 100%; height: 100%; border-radius: 25px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
  padding: 1rem; text-align: center;
  background: linear-gradient(180deg, #3A2A1E 0%, #22180F 100%); color: #FFF3DC;
}
.phone__placeholder--dark { background: linear-gradient(180deg, #17121C 0%, #08060A 100%); }
.phone__placeholder--pixel {
  background-color: #1d1840;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #2b2066 0 58%, #3b8f4a 58% 64%, #5a3d22 64% 100%);
  background-size: 12px 12px, 12px 12px, 100% 100%;
}
.phone__placeholder-title { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.5rem; font-weight: 700; color: #FFC247; text-shadow: 3px 3px 0 #000; }
.phone__placeholder-note {
  padding: 0.3rem 0.65rem; border-radius: 999px;
  background: rgba(255, 243, 220, 0.12); border: 1px solid rgba(255, 243, 220, 0.25);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: #FFF3DC;
}
.ph-motif { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; color: #FFF3DC; line-height: 1.1; }
.ph-motif--money { color: #FFC247; font-size: 1.25rem; }
.ph-motif--quote { font-size: 1rem; font-style: italic; font-weight: 500; max-width: 11rem; }

/* How it works demo ------------------------------------------------------- */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}
.demo__steps { list-style: none; padding: 0; display: grid; gap: var(--space-m); }
.demo__step {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-m); align-items: start;
  padding: 1.1rem 1.2rem; border-radius: var(--radius-l);
  background: var(--c-night); border: 1px solid var(--c-line);
}
.demo__num {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; flex: none;
  border-radius: 50%; background: var(--c-amber); color: var(--c-on-amber);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
}
.demo__body h3 { font-size: 1.1rem; margin-top: 0.2rem; }
.demo__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.7rem; }
.demo__chip { padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid var(--c-line-strong); font-size: 0.85rem; font-weight: 500; color: var(--c-champagne-soft); background: var(--c-umber); transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.demo__chip.is-on { background: var(--c-champagne); border-color: var(--c-champagne); color: var(--c-night); }
.demo__sep { width: 1px; height: 1.4rem; background: var(--c-line-strong); margin: 0 0.3rem; }
.demo__topic {
  display: flex; align-items: center; min-height: 48px; margin-top: 0.7rem; padding: 0 0.9rem;
  border-radius: var(--radius-m); background: var(--c-umber); border: 1px solid var(--c-line-strong);
  font-weight: 500;
}
.demo__caret { display: inline-block; width: 2px; height: 1.2em; margin-left: 2px; background: var(--c-champagne); animation: demo-blink 1s steps(1) infinite; }
@keyframes demo-blink { 50% { opacity: 0; } }

/* "Writing the script..." with a spinning wheel, then a tick when done */
.demo__status { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.85rem; font-weight: 500; color: var(--c-champagne-soft); min-height: 1.4rem; }
.demo__spin { width: 15px; height: 15px; flex: none; border-radius: 50%; border: 2px solid var(--c-line-strong); border-top-color: var(--c-amber); animation: demo-spin 0.8s linear infinite; }
@keyframes demo-spin { to { transform: rotate(360deg); } }
.demo__status.is-done .demo__spin { animation: none; border: 0; background: #3E8E5A; position: relative; }
.demo__status.is-done .demo__spin::after { content: "\2713"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; }
.demo__status.is-done { color: #2E6E45; }
.js [data-demo] .demo__status:not(.is-on) { visibility: hidden; }

.demo__script { list-style: none; padding: 0; margin-top: 0.5rem; display: grid; gap: 0.4rem; }
.demo__script li { min-height: 2.35rem; padding: 0.5rem 0.75rem; border-radius: 8px; background: var(--c-umber); border: 1px solid var(--c-line); font-size: 0.93rem; transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.js [data-demo] .demo__script li:not(.is-in) { opacity: 0; transform: translateY(6px); }
.demo__script li.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--c-champagne); animation: demo-blink 0.8s steps(1) infinite; }

.demo__tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.4rem; margin-top: 0.5rem; }
/* parts that only show on phones (short labels, the Enter button text) and their desktop partners */
.demo__chipgroup { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.demo__chiplabel { display: none; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-champagne-soft); }
.vs__short, .waitlist__btn-short, .perk-short { display: none; }
.demo__tiles figure { position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: var(--c-mocha); }
.demo__tiles img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
/* empty frames shimmer while they're "being drawn", then the picture fades in */
.js [data-demo] .demo__tiles figure:not(.is-in) img { opacity: 0; transform: scale(1.06); }
.js [data-demo] .demo__tiles figure:not(.is-in)::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
  background-size: 220% 100%; animation: demo-shimmer 1.3s linear infinite;
}
@keyframes demo-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

.demo__result { margin: 0; position: relative; display: grid; gap: 12px; justify-items: center; align-content: start; }
.demo__result-label { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.demo__phone { width: 100%; max-width: 400px; }
/* video controls inside the phone, shown once the short is ready: pause, a seek bar, sound */
.demo__controls {
  position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 3;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 6px 8px; border-radius: 999px; background: rgba(14, 11, 9, 0.6); backdrop-filter: blur(6px);
  transition: opacity 0.4s var(--ease-out);
}
.demo__result:not(.is-ready) .demo__controls { opacity: 0; pointer-events: none; }
.demo__ctl {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 243, 220, 0.14); color: #FFF3DC; cursor: pointer;
}
.demo__ctl:hover { background: rgba(255, 243, 220, 0.28); }
.demo__ctl[data-playing="true"] .phone__icon--play, .demo__ctl[data-playing="false"] .phone__icon--pause { display: none; }
.demo__ctl[aria-pressed="true"] .phone__icon--muted, .demo__ctl[aria-pressed="false"] .phone__icon--sound { display: none; }
.demo__seek { flex: 1 1 auto; min-width: 0; height: 22px; margin: 0; accent-color: var(--orange); cursor: pointer; background: transparent; }
/* the render overlay: a ring that fills while "Animating...", then the short plays */
.demo__render {
  position: absolute; inset: 10px; z-index: 2; border-radius: 25px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem;
  background: #0E0B09; color: #FFF3DC;
  transition: opacity 0.6s var(--ease-out);
}
.demo__render.is-gone { opacity: 0; pointer-events: none; }
.demo__ring { width: 96px; height: 96px; transform: rotate(-90deg); }
.demo__ring circle { fill: none; stroke-width: 7; }
.demo__ring-bg { stroke: rgba(255, 243, 220, 0.18); }
.demo__ring-fg { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; }
.demo__render-pct { margin-top: -66px; height: 36px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.demo__render:not(.is-rendering) .demo__render-pct { visibility: hidden; }
.demo__render:not(.is-rendering) .demo__ring { animation: demo-spin 2.4s linear infinite; }
.demo__render:not(.is-rendering) .demo__ring-fg { stroke-dashoffset: 200; opacity: 0.5; }
.demo__render-text { margin-top: 30px; font-size: 0.9rem; font-weight: 500; opacity: 0.85; }
/* the hand-drawn arrow from the steps to the finished short (desktop only) */
.demo__arrow {
  position: absolute; right: calc(100% + 0.25rem + 5px); top: 70%;
  display: grid; justify-items: start; gap: 0.15rem;
  color: var(--c-amber); transform: rotate(-4deg); pointer-events: none;
  opacity: 0; transition: opacity 0.6s var(--ease-out), translate 0.6s var(--ease-out); translate: -8px 4px;
}
.demo__arrow.is-in { opacity: 1; translate: 0 0; }
.demo__arrow svg { width: clamp(60px, 6vw, 96px); }
.demo__arrow-label { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; transform: rotate(-6deg); white-space: nowrap; }
/* each step fades in after the one before (scripts/landing-v2.js) */
.js [data-demo] [data-step] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js [data-demo] [data-step].is-in { opacity: 1; transform: none; }

/* Formats: a row of phones ------------------------------------------------ */
.format-phones {
  list-style: none; padding: 0 0 0.5rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr);
  gap: clamp(0.9rem, 2vw, 1.5rem);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.format-phone { scroll-snap-align: start; }
@media (min-width: 1100px) {   /* wide screens: all seven phones fit in one row, no scrolling */
  .format-phones { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; }
}
.format-phone .phone { padding: 7px; border-radius: 26px; box-shadow: 0 18px 40px rgba(42, 26, 63, 0.2); }
.format-phone .phone__video, .format-phone .phone__placeholder { border-radius: 20px; }
.format-phone h3 { margin-top: var(--space-m); font-size: 1.05rem; }
.format-phone p { margin-top: 0.2rem; font-size: 0.88rem; color: var(--c-champagne-soft); }

/* Comparison: a looping race --------------------------------------------- */
.vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l); }
.vs__col { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-xl); background: var(--c-night); border: 1px solid var(--c-line); }
.vs__col--ours { background: var(--orange); color: #fff; border-color: var(--orange); }
.vs__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; font-size: 1.4rem; }
.vs__title span { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; opacity: 0.8; font-variant-numeric: tabular-nums; }
.vs__list { list-style: none; padding: 0; margin-top: var(--space-l); display: grid; gap: 0.6rem; }
.vs__list li {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center;
  padding: 0.7rem 0.85rem; border-radius: var(--radius-m);
  background: var(--c-umber); border: 1px solid var(--c-line);
  transition: border-color 0.3s, box-shadow 0.3s, opacity 0.3s;
}
.vs__col--ours .vs__list li { background: #fff; border-color: #fff; color: var(--ink); }
.vs__tool { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--c-champagne-soft); }
.vs__col--ours .vs__tool { color: var(--orange-deep); }
.vs__what { font-size: 0.95rem; }
.vs__time { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
/* race states (scripts/landing-v2.js): the boxes only get a tick when their checkpoint is passed */
.vs__list li.is-done .vs__time::after { content: " \2713"; color: #3E8E5A; }
.vs__col--ours .vs__list li.is-done .vs__time::after { color: #3E8E5A; }
.vs__extras { list-style: none; padding: 0; margin-top: var(--space-l); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.vs__extras li { padding: 0.35rem 0.75rem; border-radius: 999px; background: rgba(255, 255, 255, 0.6); color: var(--ink); font-size: 0.85rem; font-weight: 600; }
/* the race tracks under the cards (drawn by scripts/landing-v2.js on canvases, pixel-art style) */
.race { position: relative; margin-top: var(--space-xl); display: grid; gap: 0.9rem; }
.race__lane { position: relative; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 6rem; gap: 0.9rem; align-items: end; }
/* labels and times sit level with their road (the bottom ~30% of each canvas) */
.race__label {
  display: inline-flex; align-items: center; gap: 0.5rem; justify-self: start; margin-bottom: 0.15rem;
  padding: 0.45rem 0.8rem; border-radius: 8px; background: var(--c-night); border: 1px solid var(--c-line);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; white-space: nowrap;
}
.race__lane--ours .race__label { background: var(--orange); border-color: var(--orange); color: #fff; }
.race__dot { width: 10px; height: 10px; border-radius: 2px; background: #2A1E14; flex: none; }
.race__lane--ours .race__dot { background: #fff; }
.race__track { display: block; width: 100%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; }
.race__time { margin-bottom: 0.4rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.race__note { margin-top: var(--space-m); font-size: 0.85rem; color: var(--c-champagne-soft); }
/* F1-style start lights centred over the two roads: three reds come on one by one, then all green with GO! */
.race__count {
  position: absolute; z-index: 3; pointer-events: none;
  left: calc(9.5rem + 0.9rem); right: calc(6rem + 0.9rem); top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  opacity: 0; transition: opacity 0.25s;
}
.race__count.is-on { opacity: 1; }
.race__lights {
  display: flex; gap: 0.6rem; padding: 0.6rem 0.8rem; border-radius: 14px;
  background: #1A1410; border: 3px solid #3A2F27; box-shadow: 0 8px 22px rgba(26, 20, 16, 0.35);
}
.race__lights i { width: clamp(26px, 3vw, 38px); aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.35); transition: background-color 0.1s, box-shadow 0.1s; }
/* unlit lamps: dim red, amber and green */
.race__lights i:nth-child(1) { background: #3B1512; }
.race__lights i:nth-child(2) { background: #3A2A0E; }
.race__lights i:nth-child(3) { background: #10301A; }
/* lit: red, then amber, then green, one at a time */
.race__count[data-stage="0"] .race__lights i:nth-child(1) { background: #E5322B; box-shadow: 0 0 16px 3px rgba(229, 50, 43, 0.7), inset 0 -3px 0 rgba(0, 0, 0, 0.25); }
.race__count[data-stage="1"] .race__lights i:nth-child(2) { background: #F5A623; box-shadow: 0 0 16px 3px rgba(245, 166, 35, 0.7), inset 0 -3px 0 rgba(0, 0, 0, 0.25); }
.race__count[data-stage="2"] .race__lights i:nth-child(3) { background: #2FD15A; box-shadow: 0 0 16px 3px rgba(47, 209, 90, 0.7), inset 0 -3px 0 rgba(0, 0, 0, 0.25); }
/* then the light goes and GO! takes its place (and stays while it fades out, so the light never flashes back) */
.race__count[data-stage="3"] .race__lights, .race__count[data-stage="4"] .race__lights { display: none; }
.race__go {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 800; font-size: clamp(2.6rem, 5.5vw, 4.2rem); line-height: 1;
  color: var(--orange); text-shadow: 4px 4px 0 var(--ink);
  display: none;
}
.race__count[data-stage="3"] .race__go { display: block; animation: race-go 0.3s var(--ease-out); }
.race__count[data-stage="4"] .race__go { display: block; }
@keyframes race-go { from { opacity: 0; scale: 0.5; } }
.race__win {
  position: absolute; right: calc(6rem + 0.9rem + 240px); top: 22%; transform: translateY(4px) scale(0.85);
  padding: 0.2rem 0.65rem; border-radius: 6px; background: var(--ink); color: #fff;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); opacity: 0; transition: opacity 0.25s, transform 0.25s var(--ease-out); pointer-events: none; z-index: 2;
}
.race__win.is-on { opacity: 1; transform: none; }

/* Waitlist box: orange, white text, the email field and button in one pill -------------- */
.waitlist-section { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--c-line); }
.waitlist-box {
  position: relative; text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  border-radius: clamp(20px, 3vw, 32px);
  background: var(--orange); color: #fff;
}
.waitlist-box h2 { font-size: clamp(2.6rem, 8vw, 6.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
/* a thin dark outline so white text reads cleanly on the orange */
.waitlist-box h2 { text-shadow: 1.5px 1.5px 0 #6B3A12, -1.5px 1.5px 0 #6B3A12, 1.5px -1.5px 0 #6B3A12, -1.5px -1.5px 0 #6B3A12, 0 4px 14px rgba(90, 45, 10, 0.25); }
.waitlist-box__lede, .waitlist-perks, .waitlist-box .waitlist__consent, .waitlist-box .waitlist__msg { text-shadow: 1px 1px 0 rgba(107, 58, 18, 0.75), -1px 1px 0 rgba(107, 58, 18, 0.75), 1px -1px 0 rgba(107, 58, 18, 0.75), -1px -1px 0 rgba(107, 58, 18, 0.75); }
.waitlist-box__lede { margin: var(--space-l) auto 0; font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 500; max-width: 52rem; }
.waitlist-box__deal {
  display: inline-block; padding: 0.05em 0.45em; border-radius: 8px;
  background: #B3261E; color: #fff; font-weight: 800; text-shadow: none;
  box-shadow: 0 3px 0 #7A1712;
}
.waitlist { max-width: 40rem; margin: var(--space-xl) auto 0; text-align: left; }
/* the same pill in the hero, inside an orange card with a title line, sitting a little higher */
.hero__actions--waitlist { display: block; margin-top: 0.75rem; }
.waitlist--hero {
  width: 100%; max-width: min(33rem, calc(100vw - 2 * var(--gutter))); margin: 0;
  padding: 0.95rem 1rem 0.8rem; border-radius: 18px;
  /* the logo's orange at 40% with only a light blur, so the story behind clearly shows through */
  background: rgba(233, 165, 90, 0.4);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  border: 1.5px solid #1A1410;   /* a thin dark outline, like the logo's */
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.waitlist__title { margin: 0 0 0.7rem; padding-inline: 0.3rem; color: #fff; font-size: 0.98rem; font-weight: 500; line-height: 1.35; text-shadow: 0 1px 2px rgba(26, 20, 16, 0.55); }
.waitlist--hero .waitlist__title { color: #1A1410; text-shadow: 0 0 6px rgba(255, 236, 205, 0.9), 0 0 2px rgba(255, 236, 205, 0.9); }   /* a soft light halo keeps it readable over the scene */
.waitlist__title strong { font-weight: 800; }
.waitlist.is-done .waitlist__title { display: none; }
.waitlist--hero .waitlist__row { padding: 5px; box-shadow: none; }
.waitlist--hero .waitlist__input { min-height: 46px; font-size: 1rem; }
.waitlist--hero .waitlist__btn { min-height: 44px; padding: 0 1.6rem; font-size: 1rem; background: transparent; color: #9A5A1E; border: 2px solid #E9A55A; }
.waitlist--hero .waitlist__btn:hover { background: #E9A55A; color: #1A1410; }
.waitlist--hero .waitlist__consent { font-size: 0.82rem; color: #fff; padding-inline: 0.3rem; margin-top: 0.7rem; text-shadow: 0 1px 0 rgba(107, 58, 18, 0.6); }
.waitlist--hero .waitlist__consent input { accent-color: var(--ink); }
.waitlist--hero .waitlist__msg { color: #fff; min-height: 0; margin-top: 0.3rem; }
.waitlist--hero .waitlist__msg:empty { display: none; }
/* the spam-trap field: off screen, never seen or focused by people */
.waitlist__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.waitlist__row {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 6px; border-radius: 999px; background: #fff;
  box-shadow: 0 14px 34px rgba(90, 45, 10, 0.25);
}
.waitlist__input {
  flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 1.2rem;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: 1.05rem;
}
.waitlist__input::placeholder { color: #8A7E73; }
.waitlist__input:focus { outline: none; }
.waitlist__row:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6), 0 14px 34px rgba(90, 45, 10, 0.25); }
.waitlist__btn {
  flex: none; min-height: 52px; padding: 0 1.8rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: #fff; font: inherit; font-size: 1.05rem; font-weight: 600;
  transition: background-color var(--dur-fast), transform var(--dur-fast);
}
.waitlist__btn:hover { background: #3A2C22; }
.waitlist__btn:active { transform: scale(0.97); }
.waitlist__btn[disabled] { opacity: 0.6; cursor: wait; }
.waitlist__consent { display: flex; gap: 0.55rem; align-items: flex-start; margin-top: 1rem; padding-inline: 0.5rem; font-size: 0.88rem; color: #fff; cursor: pointer; }
.waitlist__consent input { margin-top: 0.2rem; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--ink); }
.waitlist__consent a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.waitlist__msg { margin-top: 0.6rem; padding-inline: 0.5rem; font-size: 0.95rem; font-weight: 600; min-height: 1.3em; }
.waitlist__msg:empty { display: none; }
.waitlist__links { margin-top: 0.8rem; font-size: 0.85rem; text-align: center; color: #fff; text-shadow: 1px 1px 0 rgba(107, 58, 18, 0.75), -1px 1px 0 rgba(107, 58, 18, 0.75), 1px -1px 0 rgba(107, 58, 18, 0.75), -1px -1px 0 rgba(107, 58, 18, 0.75); }
.waitlist__links a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* The consent pop-up (opens from any Join the waitlist form) */
.wl-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1rem; }
.wl-modal[hidden] { display: none; }
html.wl-modal-open { overflow: hidden; }
.wl-modal__backdrop { position: absolute; inset: 0; background: rgba(26, 20, 16, 0.6); backdrop-filter: blur(3px); animation: wl-fade 0.2s ease-out; }
.wl-modal__card {
  position: relative; width: min(28rem, 100%); padding: 1.8rem 1.6rem 1.3rem; border-radius: 22px;
  background: #fff; color: var(--ink); text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: wl-pop 0.28s var(--ease-out);
}
.wl-modal__close { position: absolute; top: 0.6rem; right: 0.7rem; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #6B6058; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.wl-modal__close:hover { background: #F2ECE4; }
.wl-modal__title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: -0.03em; }
.wl-modal__text { margin-top: 0.6rem; color: #5E544C; font-size: 0.95rem; line-height: 1.45; overflow-wrap: anywhere; }
.wl-modal__text strong { color: var(--ink); }
.wl-modal__consent {
  display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 1.2rem; padding: 0.9rem 1rem; text-align: left;
  border-radius: 14px; background: #FFF6E5; border: 2px solid var(--orange); cursor: pointer; font-size: 0.92rem; font-weight: 500;
}
.wl-modal__consent input { margin-top: 0.15rem; width: 1.25rem; height: 1.25rem; flex: none; accent-color: var(--orange); cursor: pointer; }
.wl-modal__go {
  width: 100%; min-height: 54px; margin-top: 1rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--orange); color: #fff; font: inherit; font-size: 1.05rem; font-weight: 700; transition: opacity 0.2s, background-color 0.2s;
}
.wl-modal__go:hover:not([disabled]) { background: var(--orange-deep); }
.wl-modal__go[disabled] { opacity: 0.45; cursor: not-allowed; }
.wl-modal__msg { margin-top: 0.6rem; font-size: 0.9rem; font-weight: 600; color: #9A3412; }
.wl-modal__msg:empty { display: none; }
/* the Turnstile bot check: invisible for most people; a small box appears here only when Cloudflare isn't sure */
.wl-modal__captcha { margin-top: 0.8rem; display: flex; justify-content: center; }
.wl-modal__captcha:empty { display: none; }
.wl-modal__links { margin-top: 0.8rem; font-size: 0.8rem; color: #6B6058; }
.wl-modal__links a { text-decoration: underline; text-underline-offset: 2px; }
@keyframes wl-fade { from { opacity: 0; } }
@keyframes wl-pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
.waitlist__msg[data-tone="error"] { color: #fff; }
.waitlist__msg[data-tone="error"]::before { content: "! "; }
.waitlist__done { display: none; align-items: center; gap: 0.8rem; padding: 1.1rem 1.3rem; border-radius: 18px; background: #fff; color: var(--ink); }
.waitlist__done strong { display: block; font-size: 1.1rem; }
.waitlist.is-done .waitlist__done { display: flex; }
.waitlist.is-done .waitlist__fields { display: none; }
.waitlist__tick { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font-weight: 700; }
.waitlist-perks { list-style: none; padding: 0; margin: var(--space-l) auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.6rem; font-weight: 600; }
/* live version's final box: one big white button in place of the email pill */
.final-cta__btn {
  display: inline-flex; align-items: center; justify-content: center; margin-top: var(--space-xl);
  min-height: 62px; min-width: min(22rem, 100%); padding: 0 2.4rem; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 1.15rem; font-weight: 700; border: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink); transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.final-cta__btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--ink); }
.final-cta__btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
/* the live version's box is a little more compact */
.waitlist-box--compact { padding-block: clamp(2.25rem, 5vw, 3.75rem); }
.waitlist-box--compact h2 { font-size: clamp(2.3rem, 6vw, 5rem); }
.waitlist-box--compact .waitlist-box__lede { max-width: none; margin-top: var(--space-m); }
.waitlist-box--compact .final-cta__btn { margin-top: var(--space-l); }
.waitlist-perks li::before { content: "\2713"; display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; margin-right: 0.45rem; border-radius: 50%; background: #fff; color: var(--orange-deep); font-size: 0.75rem; font-weight: 800; }
/* the starburst badge, top right */
.waitlist-badge {
  position: absolute; top: clamp(-2.6rem, -3.2vw, -1.8rem); right: clamp(-2.6rem, -3.2vw, -1.6rem); z-index: 2;
  width: clamp(120px, 12vw, 168px); aspect-ratio: 1; display: grid; place-items: center;
  transform: rotate(12deg); animation: badge-wobble 4s ease-in-out infinite;
}
.waitlist-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: #FFC247; filter: drop-shadow(0 6px 12px rgba(90, 45, 10, 0.3)); }
.waitlist-badge span { position: relative; font-family: var(--font-display); font-weight: 800; font-size: clamp(1rem, 1.4vw, 1.3rem); line-height: 1.05; text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); text-align: center; }
@keyframes badge-wobble { 0%, 100% { transform: rotate(12deg) scale(1); } 50% { transform: rotate(6deg) scale(1.05); } }

/* Footer links wrap on phones */
.site-footer nav { flex-wrap: wrap; }
.site-footer a[data-cookie-settings] { cursor: pointer; }

/* Sticky button: bottom centre, with an arrow that bobs towards its target ---------------
   Hidden at the top of the page and while its target is on screen (scripts/landing-v2.js). */
.sticky-cta {
  position: fixed; z-index: 60; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 58px; padding: 0 1.4rem 0 1.8rem; border-radius: 999px;
  background: var(--c-amber); color: var(--c-on-amber); font-weight: 700; font-size: 1.08rem; white-space: nowrap;
  box-shadow: 0 16px 40px rgba(90, 45, 10, 0.35), 0 0 0 4px rgba(255, 246, 229, 0.85);
  opacity: 0; transform: translate(-50%, 20px); pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), background-color var(--dur-fast);
}
.sticky-cta:hover { background: var(--c-amber-hover); }
.sticky-cta.is-shown { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.sticky-cta__arrow { width: 20px; height: 20px; animation: cta-bob 1.1s ease-in-out infinite; }
.sticky-cta.is-up .sticky-cta__arrow { animation-name: cta-bob-up; }
@keyframes cta-bob { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(5px); } }
@keyframes cta-bob-up { 0%, 100% { transform: rotate(180deg) translateY(-4px); } 50% { transform: rotate(180deg) translateY(5px); } }
/* never on top of the cookie banner: it waits until the visitor has chosen */
body:has(.consent.is-open) .sticky-cta, html.wl-modal-open .sticky-cta { opacity: 0; pointer-events: none; }

/* Tablets and phones ------------------------------------------------------ */
@media (max-width: 960px) {
  .styles-show { grid-template-columns: 1fr; gap: var(--space-xl); }
  .styles-show__info { text-align: center; }
  .styles-show__head { text-align: left; }
  .styles-show__text p { margin-inline: auto; }
  .styles-show__stack { max-width: 380px; justify-self: center; }
  .demo { grid-template-columns: 1fr; }
  .demo__result { position: static; order: 2; }
  .demo__phone { max-width: 380px; }
  .demo__arrow { display: none; }
  .vs { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .vs__list li { grid-template-columns: minmax(0, 1fr) auto; }
  .vs__tool { grid-column: 1 / -1; }
  .race__lane { grid-template-columns: 8.5rem minmax(0, 1fr) 5.5rem; }
  .race__count { left: calc(8.5rem + 0.9rem); right: calc(5.5rem + 0.9rem); }
  .race__win { right: calc(5.5rem + 0.9rem + 230px); }
}
@media (min-width: 961px) { .demo__phone { max-width: none; } }
@media (max-width: 600px) {
  .styles-show__stack { max-width: 320px; }
  .styles-show__picks button { padding: 0.5rem 0.85rem; font-size: 0.9rem; }
  .demo__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .format-phones { grid-auto-columns: 46%; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }

  /* hero: the page grows to fit, so the style switcher never sits on top of the signup card */
  .hero { height: auto; min-height: 100svh; max-height: none; }
  .hero__content { padding-bottom: 5.5rem; }
  .waitlist--hero { padding: 0.7rem 0.7rem 0.65rem; border-radius: 16px; }
  .waitlist--hero .waitlist__title { font-size: 0.85rem; margin-bottom: 0.55rem; }
  .waitlist--hero .waitlist__input { min-height: 42px; padding: 0 0.9rem; font-size: 0.95rem; }
  .waitlist--hero .waitlist__btn { min-height: 40px; padding: 0 1.1rem; font-size: 0.95rem; }

  /* email field and button stay on one line; the box's button says Enter */
  .waitlist__row { flex-direction: row; align-items: center; border-radius: 999px; }
  .waitlist__input { min-height: 46px; padding: 0 0.9rem; font-size: 0.95rem; }
  .waitlist__btn { width: auto; min-height: 44px; padding: 0 1.2rem; font-size: 0.95rem; border-radius: 999px; }
  .waitlist__btn-long { display: none; }
  .waitlist__btn-short { display: inline; }

  /* the waitlist / live boxes: tighter, heading in the section-heading style, links and ticks on one line each */
  .waitlist-box { padding: 2.6rem 1rem 1.8rem; }
  .waitlist-box h2, .waitlist-box--compact h2 { font-size: clamp(2.1rem, 9vw, 2.7rem); text-shadow: 0 2px 0 rgba(107, 58, 18, 0.55); padding-inline: 0.4rem; }
  .waitlist-box__lede { font-size: 1rem; margin-top: var(--space-s); }
  .waitlist-box .waitlist { margin-top: var(--space-m); }
  .waitlist__links { white-space: nowrap; font-size: 0.82rem; margin-top: 0.6rem; }
  .waitlist__links-lead { display: none; }
  .waitlist-perks { flex-wrap: wrap; justify-content: center; gap: 0.45rem 0.75rem; margin-top: var(--space-m); font-size: 0.82rem; }
  .waitlist-perks li { white-space: nowrap; }
  .waitlist-perks li::before { width: 1.1rem; height: 1.1rem; margin-right: 0.3rem; font-size: 0.65rem; }
  .perk-long { display: none; }
  .perk-short { display: inline; }
  .waitlist-badge { top: -3.1rem; right: -1.1rem; width: 88px; }
  .waitlist-badge span { font-size: 0.78rem; }
  .final-cta__btn { min-height: 54px; }

  /* How it works: style and length as two neat columns; the topic on one line */
  .demo__step { padding: 0.9rem; gap: 0.7rem; }
  .demo__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .demo__sep { display: none; }
  .demo__chipgroup { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .demo__chiplabel { display: block; }
  .demo__chip { font-size: 0.82rem; padding: 0.3rem 0.7rem; }
  .demo__topic { font-size: 0.9rem; white-space: nowrap; overflow: hidden; padding: 0 0.75rem; }

  /* comparison: the two cards side by side, short labels only, so the race fits on one screen */
  .vs__col { padding: 0.8rem 0.7rem; }
  .vs__title { flex-direction: column; align-items: flex-start; gap: 0.1rem; font-size: 1rem; }
  .vs__title span { font-size: 0.75rem; }
  .vs__list { margin-top: 0.6rem; gap: 0.35rem; }
  .vs__list li { grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem; padding: 0.45rem 0.55rem; }
  .vs__tool, .vs__what { display: none; }
  .vs__short { display: block; font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vs__time { font-size: 0.8rem; }
  .vs__extras { margin-top: 0.6rem; gap: 0.35rem; }
  .vs__extras li { padding: 0.3rem 0.55rem; font-size: 0.72rem; line-height: 1.25; }
  .race { margin-top: var(--space-l); }

  .race__lane { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label time" "track track"; row-gap: 0.35rem; align-items: center; }
  .race__time { margin-bottom: 0; }
  .race__count { left: 0; right: 0; }
  .race__label { grid-area: label; } .race__time { grid-area: time; } .race__track { grid-area: track; }
  .race__win { right: 4.5rem; left: auto; top: 0; bottom: auto; }
  .sticky-cta { left: 50%; right: auto; width: min(19rem, calc(100% - 3rem)); min-height: 52px; font-size: 1rem; transform: translate(-50%, 20px); }
  .sticky-cta.is-shown { transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-demo] [data-step], .js [data-demo] .demo__script li, .js [data-demo] .demo__tiles img { opacity: 1 !important; transform: none !important; }
  .js [data-demo] .demo__tiles figure::before { display: none; }
  .demo__caret, .demo__spin, .sticky-cta__arrow, .waitlist-badge { animation: none; }
}
