/* =========================================================================
   Varn landing page, v2 "Noir"
   Dark, cinematic, product-led. px units only, BEM, mobile-first.
   ========================================================================= */

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@property --shine {
  syntax: "<percentage>";
  inherits: false;
  initial-value: -30%;
}

@property --product-color {
  syntax: "<color>";
  inherits: true;
  initial-value: #7f77dd;
}

/* ---------- Tokens ------------------------------------------------------ */
:root {
  --bg: #09080d;
  --bg-alt: #110f17;
  --surface: #16141e;
  --surface-2: #1c1926;
  --surface-3: #232030;
  --line: rgb(var(--fg-rgb) / 0.08);
  --line-strong: rgb(var(--fg-rgb) / 0.14);
  --text: #f4f2f8;
  --text-soft: #d3cfdc;
  --muted: #a6a1b3;
  --violet: #9d95ff;
  --blush: #ed93b1;
  --clay: #e8784f;
  --mint: #7fd6a4;
  --grad: linear-gradient(100deg, #9d95ff 0%, #ed93b1 52%, #e8784f 100%);
  --grad-text: linear-gradient(90deg, #9d95ff, #ed93b1 55%, #e8784f);

  /* Theme-aware surfaces. Dark values here, light overrides below. */
  --fg-rgb: 255 255 255;
  --on-text: #09080d;
  --header-bg: rgba(9, 8, 13, 0.72);
  --header-solid: rgba(9, 8, 13, 0.97);
  --scrim: rgba(9, 8, 13, 0.75);
  --stat-bg: rgba(9, 8, 13, 0.4);
  --media-a: #2c2839;
  --media-b: #17151f;
  --art-bg: #211e2b;
  --mock-a: #1b1825;
  --mock-b: #121019;
  --pop-a: #1c1927;
  --pop-b: #110f17;
  --shadow-deep: var(--shadow-deep);
  --tag-free-text: #b3eecb;
  --tag-adv-text: #c3bdff;
  --ok-text: #a6ebc2;
  --mark-filter: brightness(0) invert(1);
  --aurora-o: 0.5;
  --aurora-o-strong: 0.75;
  --index-bg: #34304a;
  --studio-a: #17132a;
  --studio-b: #221428;

  /* Pricing follows the active theme like every other section. */
  --band-bg: var(--bg);
  --band-card: var(--surface);
  --band-line: var(--line-strong);
  --band-text: var(--text);
  --band-muted: var(--muted);
  --band-accent: var(--violet);
  --band-grad-text: var(--grad-text);
  --band-thumb: var(--text);
  --band-on-thumb: var(--on-text);
  --band-icon-bg: color-mix(in srgb, var(--violet) 14%, transparent);
  --band-save-bg: rgba(232, 120, 79, 0.16);
  --band-save-text: var(--clay);
  --band-save-text-on: #9c3d1a;

  /* The highlighted plan is lifted by its glowing border, not inverted. */
  --hl-fill: var(--surface-2);
  --hl-text: var(--text);
  --hl-muted: var(--muted);
  --hl-accent: var(--violet);
  --hl-icon-bg: color-mix(in srgb, var(--violet) 14%, transparent);
  --hl-line: var(--line-strong);

  --ink: #09080d;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-body: 17px;
  --fs-lead: clamp(19px, 14px + 0.9vw, 22px);
  --fs-h1: clamp(36px, 4.6vw, 68px);
  --fs-h2: clamp(36px, 4.6vw, 68px);
  --fs-h3: clamp(22px, 16px + 0.8vw, 28px);
  --ls-h1: clamp(-3px, -0.198vw, -1.4px);
  --ls-h2: clamp(-2px, -0.138vw, -1px);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --section-pad: clamp(72px, 9vw, 136px);
  --shell: 1240px;
  --gutter: 20px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --swatch-size: 40px;
  --swatch-gap: 12px;
  --swatch-border: 1px;
  --swatch-radius: 999px;

  --st-operational: #5cc98a;
  --st-degraded: #f0b545;
  --st-partial: #e8784f;
  --st-major: #f0605a;
  --st-maintenance: #9d95ff;

  --z-header: 100;
  --z-modal: 200;
  --z-confetti: 300;
}

/* Light theme is the default. Dark applies only with data-theme="dark". */
:root:not([data-theme="dark"]) {
  --bg: #f8f7fb;
  --bg-alt: #efedf5;
  --surface: #ffffff;
  --surface-2: #f5f3fa;
  --surface-3: #e8e5f0;
  --fg-rgb: 22 19 34;
  --line: rgba(22, 19, 34, 0.09);
  --line-strong: rgba(22, 19, 34, 0.16);
  --text: #16131f;
  --text-soft: #353044;
  --muted: #5a5569;
  --violet: #5446d6;
  --blush: #b3336a;
  --clay: #b4451c;
  --mint: #1f9d5c;
  --grad-text: linear-gradient(90deg, #5446d6, #b3336a 55%, #b4451c);

  --on-text: #ffffff;
  --header-bg: rgba(248, 247, 251, 0.78);
  --header-solid: rgba(248, 247, 251, 0.98);
  --scrim: rgba(255, 255, 255, 0.9);
  --stat-bg: rgba(255, 255, 255, 0.75);
  --media-a: #ffffff;
  --media-b: #ebe9f2;
  --art-bg: #ebe9f2;
  --mock-a: #ffffff;
  --mock-b: #faf9fd;
  --pop-a: #ffffff;
  --pop-b: #f6f4fb;
  --shadow-deep: rgba(46, 36, 96, 0.16);
  --tag-free-text: #17774a;
  --tag-adv-text: #4a3fc4;
  --ok-text: #17774a;
  --mark-filter: none;
  --aurora-o: 0.2;
  --aurora-o-strong: 0.32;
  --index-bg: #625d77;
  --studio-a: #ece8fd;
  --studio-b: #fce9f1;

  --band-save-text-on: #ffb59a;
  --hl-fill: #ffffff;
}

@media (min-width: 576px) {
  :root {
    --fs-body: 18px;
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

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

html[data-theme="dark"] {
  color-scheme: dark;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

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

img {
  display: block;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

strong {
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--on-text);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Gradient text + shimmer ------------------------------------ */
.grad-text {
  background-image:
    linear-gradient(100deg, transparent calc(var(--shine) - 12%), rgba(255, 255, 255, 0.85) var(--shine), transparent calc(var(--shine) + 12%)),
    var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: 4px;
}

.grad-text--deep {
  background-image:
    linear-gradient(100deg, transparent calc(var(--shine) - 12%), rgba(255, 255, 255, 0.7) var(--shine), transparent calc(var(--shine) + 12%)),
    var(--band-grad-text);
}

.grad-text.is-shimmering {
  animation: shine 6s var(--ease-out) infinite;
  animation-delay: var(--shine-delay, 0ms);
}

@keyframes shine {
  0% {
    --shine: -30%;
  }
  35%,
  100% {
    --shine: 130%;
  }
}

/* ---------- Eyebrow ----------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--violet);
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  --mag-x: 0px;
  --mag-y: 0px;
  --sweep: rgba(255, 255, 255, 0.35);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.1px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transform: translate3d(var(--mag-x), var(--mag-y), 0);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, var(--sweep) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:active {
  transform: translate3d(var(--mag-x), var(--mag-y), 0) scale(0.97);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn--primary {
  --sweep: rgba(157, 149, 255, 0.4);
  background-color: var(--text);
  color: var(--on-text);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.4), 0 1px 0 rgb(var(--fg-rgb) / 0.2);
}

.btn--primary:hover {
  box-shadow:
    inset 0 0 0 1px rgb(var(--fg-rgb) / 0.6),
    0 10px 36px -6px rgba(157, 149, 255, 0.6),
    0 0 64px -8px rgba(237, 147, 177, 0.5);
}

.btn--glass {
  background-color: rgb(var(--fg-rgb) / 0.04);
  border-color: var(--line-strong);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn--glass:hover {
  background-color: rgb(var(--fg-rgb) / 0.08);
  border-color: rgb(var(--fg-rgb) / 0.26);
}

.btn--ghost {
  background: transparent;
  color: var(--text-soft);
}

.btn--ghost:hover {
  background-color: rgb(var(--fg-rgb) / 0.05);
  color: var(--text);
}

.btn--sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

.btn--lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 17px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn > span {
  position: relative;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Header ------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition:
    transform 0.4s var(--ease-out),
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.site-header.is-stuck {
  background-color: var(--header-bg);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-menu-open {
  background-color: var(--header-solid);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgb(var(--fg-rgb) / 0.14);
}

.brand__name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.brand__by {
  display: none;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}

.brand__by-mark,
.site-footer__made-mark {
  filter: var(--mark-filter);
  opacity: 0.75;
}

.site-header__nav {
  display: none;
}

.site-header__links {
  display: flex;
  gap: 2px;
  padding: 0;
  list-style: none;
}

.site-header__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-header__link:hover {
  color: var(--text);
  background-color: rgb(var(--fg-rgb) / 0.05);
}

.site-header__link[aria-current="true"] {
  color: var(--text);
  background-color: rgb(var(--fg-rgb) / 0.07);
}

.site-header__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--grad);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.25s ease, transform 0.35s var(--ease-spring);
}

.site-header__link[aria-current="true"]::after {
  opacity: 1;
  transform: scale(1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__cta-secondary {
  display: none;
}

/* Theme toggle: sun in light, moon in dark, crossfading with a turn. */
.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgb(var(--fg-rgb) / 0.04);
  color: var(--text);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s var(--ease-out);
}

.theme-toggle:hover {
  background: rgb(var(--fg-rgb) / 0.08);
  border-color: rgb(var(--fg-rgb) / 0.26);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle__icon {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  transition:
    transform 0.55s var(--ease-spring),
    opacity 0.3s ease;
}

.theme-toggle__moon,
[data-theme="dark"] .theme-toggle__sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle__moon {
  opacity: 1;
  transform: none;
}

/* The page swaps theme inside a view transition; micro.js grows a circle
   from the toggle, so the default cross-fade is switched off. */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

/* While the theme swaps (micro.js), nothing else may animate: color
   transitions and looping effects would repaint the live snapshot the
   circle is revealing on every frame. */
.is-theme-switching *,
.is-theme-switching *::before,
.is-theme-switching *::after {
  transition: none !important;
  animation-play-state: paused !important;
}

.site-header__menu-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgb(var(--fg-rgb) / 0.04);
  color: var(--text);
}

.site-header__menu-close,
.site-header__menu-btn[aria-expanded="true"] .site-header__menu-open {
  display: none;
}

.site-header__menu-btn[aria-expanded="true"] .site-header__menu-close {
  display: block;
}

.site-header__panel {
  border-top: 1px solid var(--line);
  padding-block: 12px 24px;
}

.site-header__panel-links {
  padding: 0;
  list-style: none;
}

.site-header__panel-link {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.3px;
  text-decoration: none;
}

.site-header__panel-link[aria-current="true"] {
  color: var(--violet);
}

.site-header__panel-actions {
  margin-top: 20px;
}

@media (min-width: 576px) {
  .brand__by {
    display: inline-flex;
  }
}

@media (min-width: 992px) {
  .site-header__nav {
    display: block;
  }

  .site-header__menu-btn,
  .site-header__panel {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .site-header__cta-secondary {
    display: inline-flex;
  }
}

/* ---------- Aurora ------------------------------------------------------ */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: var(--aurora-o);
  will-change: transform;
  pointer-events: none;
}

.aurora--violet {
  top: -260px;
  left: calc(50% - 640px);
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(157, 149, 255, 0.95), rgba(157, 149, 255, 0) 65%);
  animation: drift-a 24s ease-in-out infinite alternate;
}

.aurora--blush {
  top: -80px;
  left: calc(50% + 40px);
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(237, 147, 177, 0.8), rgba(237, 147, 177, 0) 65%);
  animation: drift-b 28s ease-in-out infinite alternate;
}

.aurora--clay {
  top: 420px;
  left: calc(50% - 260px);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(232, 120, 79, 0.6), rgba(232, 120, 79, 0) 65%);
  opacity: 0.35;
  animation: drift-c 32s ease-in-out infinite alternate;
}

@keyframes drift-a {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(90px, 50px, 0) scale(1.08); }
  100% { transform: translate3d(-40px, 90px, 0) scale(0.95); }
}

@keyframes drift-b {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-80px, 70px, 0) scale(1.1); }
  100% { transform: translate3d(40px, -30px, 0) scale(0.92); }
}

@keyframes drift-c {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(70px, -60px, 0) scale(1.12); }
  100% { transform: translate3d(-60px, 20px, 0) scale(1); }
}

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(28px, 4.4vw, 60px));
  padding-bottom: clamp(56px, 7vw, 96px);
  background: var(--bg);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(var(--fg-rgb) / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--fg-rgb) / 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 22%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 22%, #000 15%, transparent 75%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1120px;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgb(var(--fg-rgb) / 0.04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.hero__pill:hover {
  border-color: rgba(157, 149, 255, 0.5);
  background: rgba(157, 149, 255, 0.08);
}

.hero__pill-dot,
.launch-moment__live-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.hero__pill-dot::after,
.launch-moment__live-dot::after,
.st-dot--live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2.4s var(--ease-out) infinite;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.6; }
  80%,
  100% { transform: scale(2.8); opacity: 0; }
}

.hero__pill-arrow {
  color: var(--muted);
  transition: transform 0.3s var(--ease-out);
}

.hero__pill:hover .hero__pill-arrow {
  transform: translateX(3px);
}

.hero__title {
  margin-top: 22px;
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--ls-h1);
  text-wrap: balance;
}

.hero__line {
  display: block;
}

@media (min-width: 992px) {
  .hero__line {
    white-space: nowrap;
  }
}

.hero__lead {
  max-width: 720px;
  margin-top: 20px;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}

.hero__note-icon {
  flex: none;
  color: var(--mint);
}

.hero__stage {
  width: 100%;
  max-width: 1080px;
  margin-top: clamp(40px, 5vw, 64px);
  perspective: 2000px;
}

.hero__frame {
  --rx: 0deg;
  --ry: 0deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-origin: 50% 30%;
  will-change: transform;
}

/* ---------- Animated conic border -------------------------------------- */
.glow-frame {
  --frame-fill: var(--surface);
  --frame-radius: var(--radius-xl);
  position: relative;
  border: 1px solid transparent;
  border-radius: var(--frame-radius);
  background:
    linear-gradient(var(--frame-fill), var(--frame-fill)) padding-box,
    conic-gradient(from var(--angle), rgba(157, 149, 255, 0.18), #9d95ff 10%, #ed93b1 20%, #e8784f 30%, rgba(232, 120, 79, 0.1) 42%, rgba(157, 149, 255, 0.1) 78%, rgba(157, 149, 255, 0.18)) border-box;
  box-shadow:
    0 40px 120px -40px rgba(157, 149, 255, 0.5),
    0 0 90px -30px rgba(237, 147, 177, 0.35);
  animation: frame-spin 8s linear infinite;
}


.glow-frame.is-offscreen {
  animation-play-state: paused;
}

@keyframes frame-spin {
  to {
    --angle: 360deg;
  }
}

/* ---------- Demo -------------------------------------------------------- */
.demo {
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 1px);
  background: var(--surface);
  text-align: left;
}

.demo__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgb(var(--fg-rgb) / 0.02);
}

.demo__dots {
  display: inline-flex;
  flex: none;
  gap: 6px;
}

.demo__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(var(--fg-rgb) / 0.14);
}

.demo__url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgb(var(--fg-rgb) / 0.04);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo__live {
  display: none;
  flex: none;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--violet);
}

.demo__body {
  display: grid;
  gap: 24px;
  padding: 16px;
}

.demo__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: radial-gradient(circle at 50% 38%, var(--media-a) 0%, var(--media-b) 72%);
}

.demo__stage {
  width: 74%;
  height: auto;
  transition: --product-color 0.5s var(--ease-out);
}

.demo__badge {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--scrim);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
}

.demo__badge svg {
  color: var(--mint);
}

.demo__badge.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.demo__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.demo__thumb {
  display: block;
  width: 60px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.demo__thumb svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: --product-color 0.5s var(--ease-out);
}

.demo__thumb[aria-current="true"] {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(157, 149, 255, 0.3);
}

.demo__info {
  display: flex;
  flex-direction: column;
  padding: 4px 4px 8px;
}

.demo__vendor {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.demo__title {
  margin-top: 6px;
  font-size: clamp(26px, 20px + 1vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.demo__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 22px;
}

.demo__price {
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.demo__compare {
  font-size: 16px;
  color: var(--muted);
  text-decoration: line-through;
}

.demo__picker {
  display: grid;
  margin-top: 22px;
}

.demo__panel {
  grid-area: 1 / 1;
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}

.demo__panel[aria-hidden="true"] {
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0s linear 0.25s;
}

.demo__option-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.demo__option-label {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.demo__option-value {
  font-size: 15px;
  font-weight: 500;
}

.demo__select {
  width: 100%;
  min-height: 52px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background-color: var(--surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23A6A1B3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

/* The native select stays for main.js but is fully collapsed; the name
   pills are the visible "Without Varn" picker. */
.demo__select.visually-hidden {
  width: 1px;
  min-height: 0;
  height: 1px;
  padding: 0;
  border: 0;
}

.demo__select option {
  background: var(--surface);
  color: var(--text);
}

.demo__stock {
  display: block;
  min-height: 22px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--blush);
}

.demo__atc {
  margin-top: 20px;
}

.demo__atc .btn.is-nudging {
  animation: atc-nudge 1.4s var(--ease-out) 3;
  box-shadow: 0 0 0 4px rgba(157, 149, 255, 0.28), 0 0 44px rgba(237, 147, 177, 0.55);
}

@keyframes atc-nudge {
  0%, 60%, 100% { transform: none; }
  15% { transform: translateY(-3px) scale(1.02); }
  30% { transform: none; }
  45% { transform: translateY(-2px) scale(1.012); }
}

.demo__caption {
  margin-top: 22px;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 576px) {
  .demo__live {
    display: inline;
  }

  .demo__body {
    padding: 24px;
  }

  .demo__media {
    aspect-ratio: 4 / 4.2;
  }
}

@media (min-width: 768px) {
  .demo__body {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    padding: 32px;
  }

  .demo__info {
    padding-top: 12px;
  }
}

/* ---------- Toggle ------------------------------------------------------ */
.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgb(var(--fg-rgb) / 0.04);
}

.demo .toggle {
  display: flex;
  width: 100%;
}

.toggle__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--text);
  box-shadow: 0 6px 20px -6px rgba(157, 149, 255, 0.6);
  transition:
    transform 0.45s var(--ease-out),
    width 0.45s var(--ease-out);
}

.toggle__option {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.demo .toggle__option {
  flex: 1;
}

.toggle__option[aria-pressed="true"] {
  color: var(--on-text);
}

.toggle--light {
  border-color: var(--band-line);
  background: var(--band-card);
}

.toggle--light .toggle__thumb {
  background: var(--band-thumb);
  box-shadow: 0 8px 20px -8px rgba(9, 8, 13, 0.5);
}

.toggle--light .toggle__option {
  color: var(--band-muted);
}

.toggle--light .toggle__option[aria-pressed="true"] {
  color: var(--band-on-thumb);
}

.toggle__save {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--band-save-bg);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--band-save-text);
  transition: color 0.3s ease;
}

.toggle__option[aria-pressed="true"] .toggle__save {
  background: rgba(232, 120, 79, 0.25);
  color: var(--band-save-text-on);
}

/* ---------- Name pills (the picker without Varn) ----------------------- */
.name-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.name-pill {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgb(var(--fg-rgb) / 0.03);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.2s var(--ease-out);
}

.name-pill:hover {
  border-color: rgb(var(--fg-rgb) / 0.32);
  color: var(--text);
}

.name-pill:active {
  transform: scale(0.96);
}

.name-pill[aria-pressed="true"] {
  border-color: var(--text);
  background: var(--text);
  color: var(--on-text);
}

.name-pill.is-soldout {
  color: var(--muted);
  text-decoration: line-through;
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Swatches ---------------------------------------------------- */
.swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--swatch-gap);
}

.swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  inline-size: max(var(--swatch-size), 76px);
  padding: 2px 0 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
}

button.swatch {
  min-height: 44px;
}

.swatch[aria-disabled="true"] {
  cursor: not-allowed;
}

.swatch__chip {
  position: relative;
  display: block;
  inline-size: var(--swatch-size);
  block-size: var(--swatch-size);
  overflow: hidden;
  border-radius: var(--swatch-radius);
  background-color: var(--chip-a, var(--surface-3));
  box-shadow: inset 0 0 0 var(--swatch-border) rgb(var(--fg-rgb) / 0.22);
  transition:
    box-shadow 0.25s var(--ease-out),
    transform 0.35s var(--ease-spring);
}

.swatch__chip--duo {
  background-image: linear-gradient(135deg, var(--chip-a) 0 50%, var(--chip-b) 50% 100%);
}

.swatch__chip--gradient {
  background-image: linear-gradient(135deg, var(--chip-a), var(--chip-b));
}

.swatch__chip--photo {
  background-size: cover;
  background-position: center;
}

.swatch[aria-checked="true"] .swatch__chip {
  box-shadow:
    inset 0 0 0 var(--swatch-border) rgb(var(--fg-rgb) / 0.22),
    0 0 0 2px var(--surface),
    0 0 0 4px var(--text),
    0 0 22px rgba(157, 149, 255, 0.45);
}

.swatch:hover .swatch__chip {
  transform: translateY(-2px);
}

.swatch__label {
  display: -webkit-box;
  max-inline-size: 84px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.25;
  color: var(--muted);
  text-align: center;
  overflow-wrap: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.swatch[aria-checked="true"] .swatch__label {
  color: var(--text);
}

.swatches--no-labels .swatch__label {
  display: none;
}

.swatches--no-labels .swatch {
  inline-size: max(var(--swatch-size), 44px);
}

.swatch[data-state="soldout"],
.swatch[data-state="out"] {
  opacity: 0.6;
}

.swatch[data-state="soldout"] .swatch__chip::after,
.swatch[data-state="out"] .swatch__chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top left,
    transparent calc(50% - 2px),
    rgba(9, 8, 13, 0.55) calc(50% - 2px),
    rgba(244, 242, 248, 0.95) calc(50% - 1px) calc(50% + 1px),
    rgba(9, 8, 13, 0.55) calc(50% + 1px),
    transparent calc(50% + 2px)
  );
}

.swatch[data-state="soldout"] .swatch__label,
.swatch[data-state="out"] .swatch__label {
  text-decoration: line-through;
}

/* ---------- Themes marquee --------------------------------------------- */
.themes {
  width: 100%;
  margin-top: clamp(64px, 8vw, 104px);
}

.themes__label {
  margin-bottom: 22px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
.marquee.is-paused .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.marquee__item {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  margin-inline-end: 12px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgb(var(--fg-rgb) / 0.025);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-soft);
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.marquee__item:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.marquee__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(var(--fg-rgb) / 0.3);
}

/* ---------- Facts band ------------------------------------------------- */
.facts-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 104px);
  background: var(--bg-alt);
  color: var(--text);
}

.facts-band::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157, 149, 255, 0.55) 30%, rgba(237, 147, 177, 0.55) 55%, rgba(232, 120, 79, 0.4) 75%, transparent);
}

.facts-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(var(--fg-rgb) / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--fg-rgb) / 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
  pointer-events: none;
}

.facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 16px;
}

.facts__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
}

.facts__value {
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: clamp(-3px, -0.2vw, -1.5px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: 4px;
}

.facts__prefix,
.facts__unit {
  display: inline-block;
  font-size: clamp(18px, 1.8vw, 30px);
  font-weight: 500;
  letter-spacing: -0.5px;
}

.facts__prefix {
  margin-right: 8px;
}

.facts__unit {
  margin-left: 8px;
}

.facts__label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 992px) {
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .facts__item {
    padding-left: 24px;
  }
}

/* ---------- Sections ---------------------------------------------------- */
.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section--a {
  background: var(--bg);
}

.section--b {
  background: var(--bg-alt);
}

.section--a::before,
.section--b::before,
.section--paper::before,
.closer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157, 149, 255, 0.55) 30%, rgba(237, 147, 177, 0.55) 55%, rgba(232, 120, 79, 0.4) 75%, transparent);
  pointer-events: none;
}

.section__head {
  max-width: 900px;
  margin: 0 auto clamp(48px, 6vw, 88px);
  text-align: center;
}

.section__title {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: var(--ls-h2);
  text-wrap: balance;
}

.section__lead {
  max-width: 740px;
  margin: 24px auto 0;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
}

.section__head--left {
  margin: 0;
  text-align: left;
}

.section__head--left .section__lead {
  margin-left: 0;
}

/* ---------- Cards + cursor spotlight ----------------------------------- */
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgb(var(--fg-rgb) / 0.04), rgb(var(--fg-rgb) / 0.005) 60%),
    var(--surface);
  transition: border-color 0.3s ease;
}

/* Light theme: cards sit on clean white with a soft lift instead of a wash. */
:root:not([data-theme="dark"]) .card {
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(22, 19, 34, 0.04), 0 24px 48px -36px rgba(46, 36, 96, 0.28);
}

:root:not([data-theme="dark"]) .tile__visual {
  background:
    radial-gradient(ellipse 80% 90% at 50% 120%, var(--tint), transparent 70%),
    var(--bg);
}

[data-spotlight] {
  --mx: 50%;
  --my: -300px;
}

[data-spotlight]::before,
[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

[data-spotlight]::before {
  z-index: 0;
  background: radial-gradient(460px circle at var(--mx) var(--my), rgba(157, 149, 255, 0.12), transparent 45%);
}

[data-spotlight]::after {
  z-index: 3;
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(237, 147, 177, 0.9), rgba(157, 149, 255, 0.5) 35%, transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

[data-spotlight] > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  [data-spotlight]:hover::before,
  [data-spotlight]:hover::after {
    opacity: 1;
  }
}

/* ---------- Steps ------------------------------------------------------- */
.steps {
  display: grid;
  gap: 40px;
}

.steps__list {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgb(var(--fg-rgb) / 0.015);
  transition: border-color 0.4s ease, background-color 0.4s ease;
}

.step.is-active {
  border-color: rgba(157, 149, 255, 0.35);
  background: linear-gradient(135deg, rgba(157, 149, 255, 0.09), rgba(237, 147, 177, 0.03) 60%, transparent), var(--surface);
}

.step__head {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.step__index {
  position: relative;
  isolation: isolate;
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  border-color: transparent;
  background: var(--index-bg);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: #ffffff;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.step__index::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, #5446d6, #a3347a 60%, #b4451c);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.step__index::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -2;
  border-radius: 20px;
  background: var(--grad);
  filter: blur(18px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.step.is-active .step__index {
  border-color: transparent;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(9, 8, 13, 0.35);
}

.step.is-active .step__index::before {
  opacity: 1;
}

.step.is-active .step__index::after {
  opacity: 0.65;
  animation: glow-pulse 2.8s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.92); }
  50% { opacity: 0.8; transform: scale(1.06); }
}

.step__body p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
}

.step__body .step__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-soft);
}

.step__meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
}

@media (min-width: 576px) {
  .step {
    padding: 28px;
  }

  .step__body {
    padding-left: 64px;
  }
}

@media (min-width: 992px) {
  .steps {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }

  .steps__list {
    gap: 20px;
  }

  /* No list padding and no card min-height: the sticky mock's top meets the
     first card's top, and when it releases its bottom meets the last card's. */
  .steps__stage {
    position: sticky;
    top: calc(var(--header-h) + 48px);
  }
}

/* ---------- Mock admin panels ------------------------------------------ */
.mock {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--mock-a) 0%, var(--mock-b) 100%);
  box-shadow: 0 50px 100px -40px var(--shadow-deep);
}

.mock--glow {
  box-shadow:
    0 50px 100px -40px var(--shadow-deep),
    0 0 120px -40px rgba(157, 149, 255, 0.45);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}

.mock__bar img {
  border-radius: 4px;
}

.mock__bar-spark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(237, 147, 177, 0.7);
}

.mock__panel {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.mock__row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(var(--fg-rgb) / 0.025);
  transition: border-color 0.4s ease, background-color 0.4s ease;
}

.mock__row-chip {
  width: 22px;
  height: 22px;
  border: 1.5px dashed rgb(var(--fg-rgb) / 0.28);
  border-radius: 50%;
  transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.45s var(--ease-spring);
}

.mock__row-name {
  overflow: hidden;
  font-size: 15px;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock__row-state {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgb(var(--fg-rgb) / 0.05);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.mock__row.is-matched {
  border-color: rgba(157, 149, 255, 0.28);
  background: rgba(157, 149, 255, 0.06);
}

.mock__row.is-matched .mock__row-chip {
  border-color: transparent;
  transform: scale(1.05);
}

.mock__row.is-matched .mock__row-chip:not([style]) {
  background: var(--grad);
}

.mock__row.is-matched .mock__row-state {
  background: rgba(127, 214, 164, 0.12);
  color: var(--ok-text);
}

.mock__note {
  margin: 6px 2px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.mock__cta {
  justify-self: start;
  margin-top: 6px;
}

/* ---------- Bento ------------------------------------------------------- */
.bento {
  display: grid;
  grid-auto-flow: row dense;
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

/* Illustration backgrounds and line art follow the theme. */
.art-bg {
  fill: var(--art-bg);
}

.tile__visual {
  color: var(--text);
  --tint: rgba(157, 149, 255, 0.3);
  display: grid;
  place-items: center;
  height: 188px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 80% 90% at 50% 120%, var(--tint), transparent 70%),
    rgb(var(--fg-rgb) / 0.02);
}

.tile__visual--blush {
  --tint: rgba(237, 147, 177, 0.26);
}

.tile__visual--clay {
  --tint: rgba(232, 120, 79, 0.24);
}

.tile__visual svg {
  width: auto;
  height: 112px;
  transition: transform 0.6s var(--ease-out);
}

.tile:hover .tile__visual svg {
  transform: scale(1.06);
}

.tile__swatches {
  --swatch-size: 44px;
  justify-content: center;
}

.tag {
  align-self: flex-start;
  padding: 5px 10px;
  border: 1px solid;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.tag--free {
  border-color: rgba(127, 214, 164, 0.3);
  background: rgba(127, 214, 164, 0.08);
  color: var(--tag-free-text);
}

.tag--advance {
  border-color: rgba(157, 149, 255, 0.38);
  background: rgba(157, 149, 255, 0.1);
  color: var(--tag-adv-text);
}

.tile__title {
  margin: 16px 0 10px;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.tile__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile--wide {
    grid-column: span 2;
  }

  .tile {
    padding: 28px;
  }
}

@media (min-width: 1200px) {
  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Split layouts + checklist ---------------------------------- */
.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

.split__text {
  margin-bottom: 20px;
  color: var(--text-soft);
}

.checklist {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.checklist__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.checklist__item strong {
  color: var(--text);
}

.checklist__icon {
  width: 28px;
  height: 28px;
  padding: 6px;
  border: 1px solid rgba(157, 149, 255, 0.3);
  border-radius: 50%;
  background: rgba(157, 149, 255, 0.1);
  color: var(--violet);
}

@media (min-width: 992px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
  }

  .split--reverse .split__copy {
    order: 2;
  }
}

/* ---------- Scorecard + gauge ------------------------------------------ */
.scorecard {
  padding: 24px;
}

.scorecard__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.scorecard__meta .eyebrow {
  margin-bottom: 4px;
}

.gauge {
  position: relative;
  flex: none;
  width: 148px;
  height: 148px;
}

.gauge__svg {
  display: block;
  width: 148px;
  height: 148px;
  transform: rotate(-90deg);
}

.gauge__track {
  fill: none;
  stroke: rgb(var(--fg-rgb) / 0.08);
  stroke-width: 10;
}

.gauge__ring {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 18;
  filter: drop-shadow(0 0 6px rgba(237, 147, 177, 0.55));
}

.gauge.is-armed .gauge__ring {
  stroke-dashoffset: 100;
  opacity: 0;
}

.gauge.is-armed.is-filled .gauge__ring {
  stroke-dashoffset: 18;
  opacity: 1;
  transition:
    stroke-dashoffset 1.6s var(--ease-out),
    opacity 0.2s ease;
}

.gauge__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.scorecard__score {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.scorecard__grade {
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -2px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.scorecard__note {
  font-size: 15px;
  color: var(--muted);
}

.scorecard > .scorecard__note {
  margin-top: 22px;
}

.scorecard__signals,
.dash__signals {
  display: grid;
  gap: 14px;
}

.signal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  font-size: 15px;
  color: var(--text);
}

.signal__points {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}

.signal__missing {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--clay);
}

.signal__bar {
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgb(var(--fg-rgb) / 0.07);
}

.signal__bar--missing {
  background: repeating-linear-gradient(135deg, rgba(232, 120, 79, 0.22) 0 6px, rgba(232, 120, 79, 0.08) 6px 12px);
}

.signal__fill {
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
  transition: width 1.2s var(--ease-out);
}

@media (min-width: 576px) {
  .scorecard {
    padding: 32px;
  }
}

/* ---------- Variants gallery mock -------------------------------------- */
.vgal {
  padding: 18px;
}

.vgal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.vgal__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgb(var(--fg-rgb) / 0.03);
  font-size: 15px;
  color: var(--text-soft);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s var(--ease-out);
}

.vgal__chip:hover {
  border-color: rgb(var(--fg-rgb) / 0.3);
}

.vgal__chip:active {
  transform: scale(0.97);
}

.vgal__chip[aria-pressed="true"] {
  border-color: transparent;
  background: var(--text);
  color: var(--on-text);
}

.vgal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(var(--fg-rgb) / 0.25);
}

.vgal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.vgal__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  animation: photo-in 0.45s var(--ease-out) both;
}

.vgal__photo svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes photo-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}

.vgal__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--scrim);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.2;
  color: var(--text);
}

.vgal__badge--n {
  min-width: 26px;
  text-align: center;
}

/* ---------- Product groups mock ---------------------------------------- */
.gjoin {
  padding: 20px;
}

.gjoin__kicker {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.gjoin__caption {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
}

.gjoin__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.gjoin__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 15px;
  color: var(--text-soft);
}

.gjoin__chip.is-current {
  border-color: rgba(237, 147, 177, 0.6);
  box-shadow: 0 0 0 3px rgba(237, 147, 177, 0.12);
  color: var(--text);
}

.gjoin__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.gjoin__members {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.gjoin__member {
  display: grid;
  grid-template-columns: 12px 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(var(--fg-rgb) / 0.02);
}

.gjoin__member.is-here {
  border-color: rgba(157, 149, 255, 0.35);
  background: rgba(157, 149, 255, 0.07);
}

.gjoin__grip {
  width: 10px;
  height: 16px;
  background-image: radial-gradient(circle, rgb(var(--fg-rgb) / 0.4) 1.2px, transparent 1.6px);
  background-size: 5px 5px;
}

.gjoin__thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.gjoin__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gjoin__title {
  font-size: 15px;
  color: var(--text);
}

.gjoin__sub {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Style studio ------------------------------------------------ */
.studio {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 50px 100px -50px var(--shadow-deep);
}

.studio__preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 72px 20px 40px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(rgb(var(--fg-rgb) / 0.1) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(150deg, var(--studio-a), var(--studio-b));
}

/* A solid stage behind the swatches keeps chips and labels readable. */
.studio__preview .swatches {
  justify-content: center;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 24px 50px -30px var(--shadow-deep), 0 1px 0 rgb(var(--fg-rgb) / 0.04);
}

.studio__preview .swatch__label {
  color: var(--text-soft);
}

.studio__preview .swatch[aria-checked="true"] .swatch__chip {
  box-shadow:
    inset 0 0 0 var(--swatch-border) rgb(var(--fg-rgb) / 0.22),
    0 0 0 2px var(--surface),
    0 0 0 4px var(--text),
    0 0 22px rgba(157, 149, 255, 0.45);
}

.studio__preview-label {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-soft);
}

.studio__preview-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgb(31 157 92 / 0.18);
}

.studio__controls {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.field__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.field__value {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--violet) 12%, transparent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}

.segmented {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgb(var(--fg-rgb) / 0.04);
}

/* Sliding pill behind the pressed option, positioned by micro.js. */
.segmented__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--text);
  box-shadow: 0 6px 20px -6px rgba(157, 149, 255, 0.6);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.5s var(--ease-spring),
    width 0.5s var(--ease-out),
    opacity 0.2s ease;
}

.segmented.has-thumb .segmented__thumb {
  opacity: 1;
}

.segmented__option {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 15px;
  color: var(--muted);
  transition: background-color 0.3s ease, color 0.35s ease, transform 0.2s var(--ease-out);
}

.segmented__option:hover {
  color: var(--text);
}

.segmented__option:active {
  transform: scale(0.96);
}

.segmented__option[aria-pressed="true"] {
  background: var(--text);
  color: var(--on-text);
}

.segmented.has-thumb .segmented__option[aria-pressed="true"] {
  background: transparent;
}

.slider {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* Filled up to the thumb (micro.js sets --pct), neutral after it. */
.slider {
  --pct: 50%;
  --track-fill: linear-gradient(90deg, #8a80f2, #e27ba4);
}

.slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--track-fill) 0 0 / var(--pct) 100% no-repeat, rgb(var(--fg-rgb) / 0.14);
}

.slider::-moz-range-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--track-fill) 0 0 / var(--pct) 100% no-repeat, rgb(var(--fg-rgb) / 0.14);
}

.slider::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--violet), 0 4px 12px rgba(9, 8, 13, 0.3);
  transition: transform 0.2s var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--violet), 0 4px 12px rgba(9, 8, 13, 0.3);
}

.slider:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

.switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.switch__input {
  position: absolute;
  top: 50%;
  right: 0;
  width: 52px;
  height: 32px;
  margin: -16px 0 0;
  opacity: 0;
  cursor: pointer;
}

.switch__control {
  position: relative;
  flex: none;
  width: 52px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: rgb(var(--fg-rgb) / 0.22);
  transition: background-color 0.3s ease;
  pointer-events: none;
}

.switch__control::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(9, 8, 13, 0.35);
  transition: transform 0.35s var(--ease-spring);
}

.switch__input:checked + .switch__control {
  background: var(--grad);
}

.switch__input:checked + .switch__control::after {
  transform: translateX(20px);
}

.switch__input:focus-visible + .switch__control {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

@media (min-width: 576px) {
  .studio__controls {
    padding: 32px;
  }
}

@media (min-width: 992px) {
  .studio {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .studio__preview {
    min-height: 460px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .studio__controls {
    align-content: center;
    padding: 40px;
  }
}

/* ---------- Surfaces ---------------------------------------------------- */
.surfaces {
  display: grid;
  gap: 16px;
}

.surface-card {
  padding: 18px 18px 26px;
}

.surface-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(var(--fg-rgb) / 0.02);
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.product-card__media {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1);
  transition: transform 0.5s var(--ease-out);
}

.surface-card:hover .product-card__media {
  transform: translateY(-3px);
}

.surface-card:hover .product-card:nth-child(2) .product-card__media {
  transition-delay: 60ms;
}

.surface-card:hover .product-card:nth-child(3) .product-card__media {
  transition-delay: 120ms;
}

.product-card__name {
  overflow: hidden;
  font-size: 14px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.product-card__chip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(var(--fg-rgb) / 0.25);
}

.surface-card__title {
  margin-bottom: 8px;
  padding-inline: 4px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.surface-card__text {
  padding-inline: 4px;
  font-size: 16px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .surfaces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .surfaces {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Analytics dashboard ---------------------------------------- */
.dash {
  padding: 22px;
}

.dash__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.dash__head .eyebrow {
  margin: 0;
}

.dash__range {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}

.dash__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.dash__tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(var(--fg-rgb) / 0.03);
}

.dash__num {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}

.dash__lab {
  font-size: 14px;
  line-height: 1.3;
  color: var(--muted);
}

.dash__tile--warn {
  border-color: rgba(232, 120, 79, 0.38);
  background: rgba(232, 120, 79, 0.06);
}

.dash__tile--warn .dash__num {
  color: var(--clay);
}

.dash__sub {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.dash__advice {
  margin: 22px 0 10px;
  padding: 14px 16px;
  border: 1px solid rgba(237, 147, 177, 0.28);
  border-radius: 14px;
  background: rgba(237, 147, 177, 0.07);
  font-size: 15px;
}

.dash__note {
  font-size: 14px;
  color: var(--muted);
}

@media (min-width: 576px) {
  .dash {
    padding: 32px;
  }

  .dash__tile {
    padding: 16px;
  }

  .dash__num {
    font-size: 30px;
  }
}

/* ---------- Pillars ----------------------------------------------------- */
.pillars {
  display: grid;
  gap: 16px;
}

.pillar {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.pillar__icon-wrap {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border: 1px solid rgba(157, 149, 255, 0.3);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(157, 149, 255, 0.18), rgba(237, 147, 177, 0.06));
  color: var(--violet);
  box-shadow: 0 0 30px -8px rgba(157, 149, 255, 0.5);
}

.pillar__title {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.pillar__text {
  flex: 1;
  margin-bottom: 22px;
  font-size: 16px;
  color: var(--muted);
}

.pillar__stat {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--blush);
}

@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Maker band (glass) ----------------------------------------- */
.maker {
  position: relative;
  display: grid;
  gap: 32px;
  margin-top: clamp(48px, 6vw, 88px);
  padding: clamp(24px, 4vw, 56px);
  overflow: hidden;
  border: 1px solid rgb(var(--fg-rgb) / 0.12);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(157, 149, 255, 0.2), transparent 70%),
    radial-gradient(ellipse 50% 70% at 100% 100%, rgba(232, 120, 79, 0.14), transparent 70%),
    rgb(var(--fg-rgb) / 0.03);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgb(var(--fg-rgb) / 0.08);
}

.maker__identity {
  display: flex;
  align-items: center;
  gap: 16px;
  align-self: start;
}

.maker__logo {
  flex: none;
  color: var(--text);
}

.maker__logo-accent {
  fill: #ef6224;
}

.maker__wordmark {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.maker__wordmark span {
  color: #f07a44;
}

.maker__tagline {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}

.maker__title {
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1px;
  text-wrap: balance;
}

.maker__text {
  margin-bottom: 14px;
  font-size: 17px;
  color: var(--muted);
}

.maker__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.maker__stat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--stat-bg);
}

.maker__stat-label {
  font-size: 14px;
  line-height: 1.3;
  color: var(--muted);
}

.maker__stat-value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.6px;
}

.maker__aside .actions {
  margin-top: 24px;
}

@media (min-width: 992px) {
  .maker {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 40px 56px;
  }

  .maker__identity {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) {
  .maker {
    grid-template-columns: 240px minmax(0, 1.3fr) minmax(0, 1fr);
  }

  .maker__identity {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Pricing (paper band) --------------------------------------- */
.section--paper {
  background: var(--band-bg);
  color: var(--band-text);
}

.section--paper :focus-visible {
  outline-color: var(--band-accent);
}

.section--paper .eyebrow {
  color: var(--band-accent);
}

.section--paper .section__lead {
  color: var(--band-muted);
}

.pricing__head {
  display: grid;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.pricing__switch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.pricing__trial-line {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--band-muted);
}

.pricing__switch .toggle {
  max-width: 100%;
}

.pricing__grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--band-line);
  border-radius: var(--radius-lg);
  background: var(--band-card);
  box-shadow: 0 1px 0 rgba(9, 8, 13, 0.04), 0 30px 60px -40px rgba(9, 8, 13, 0.3);
  color: var(--band-text);
}

.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 18px;
}

.plan__name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.plan__flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--grad);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}

.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-bottom: 6px;
}

.plan__strike {
  font-size: 18px;
  color: var(--band-muted);
}

.plan__amount {
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}

.plan__period {
  font-size: 16px;
  color: var(--band-muted);
}

.plan__note {
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--band-muted);
}

.plan__tagline {
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 1.5;
}

.plan__cta {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.plan__trial {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--band-line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--band-muted);
}

.plan__trial--placeholder {
  visibility: hidden;
}

.plan__features,
.pricing__includes-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.plan__features {
  padding-top: 22px;
  border-top: 1px solid var(--band-line);
}

.plan__feature {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
}

.plan__feature-icon {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--band-icon-bg);
  color: var(--band-accent);
}

.plan--highlight {
  isolation: isolate;
  --frame-fill: var(--hl-fill);
  --frame-radius: var(--radius-lg);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--frame-fill), var(--frame-fill)) padding-box,
    conic-gradient(from var(--angle), rgba(157, 149, 255, 0.25), #9d95ff 10%, #ed93b1 20%, #e8784f 30%, rgba(232, 120, 79, 0.15) 42%, rgba(157, 149, 255, 0.15) 78%, rgba(157, 149, 255, 0.25)) border-box;
  color: var(--hl-text);
  box-shadow: 0 40px 80px -30px rgba(91, 79, 214, 0.55), 0 0 60px -20px rgba(237, 147, 177, 0.45);
}

.plan--highlight .plan__strike,
.plan--highlight .plan__period,
.plan--highlight .plan__note,
.plan--highlight .plan__trial {
  color: var(--hl-muted);
}

.plan--highlight .plan__features {
  border-top-color: var(--hl-line);
}

.plan--highlight .plan__feature-icon {
  background: var(--hl-icon-bg);
  color: var(--hl-accent);
}

.plan--highlight :focus-visible {
  outline-color: var(--hl-accent);
}

.pricing__includes {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--band-line);
  border-radius: var(--radius-lg);
  background: var(--band-card);
}

.pricing__includes-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--band-muted);
}

.pricing__note {
  max-width: 820px;
  margin: 28px auto 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--band-muted);
  text-align: center;
}

@media (min-width: 768px) {
  .pricing__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing__includes-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
  }
}

@media (min-width: 992px) {
  .pricing__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 48px;
  }

  .pricing__switch {
    align-items: flex-end;
  }

  .pricing__includes {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding: 28px 32px;
  }
}

@media (min-width: 1200px) {
  .pricing__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pricing__includes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
  }
}

/* ---------- FAQ --------------------------------------------------------- */
.faq-grid {
  display: grid;
  gap: 48px;
}

.faq-side .section__title {
  font-size: clamp(36px, 4vw, 56px);
}

.faq-side .section__lead {
  margin: 20px 0 0;
}

.faq {
  border-top: 1px solid var(--line-strong);
}

.faq__item {
  border-bottom: 1px solid var(--line-strong);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 22px 0;
  font-size: clamp(18px, 16px + 0.4vw, 21px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.2px;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover {
  color: var(--text);
}

.faq__icon {
  flex: none;
  width: 38px;
  height: 38px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  transition:
    transform 0.45s var(--ease-spring),
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.faq__question:hover .faq__icon {
  border-color: rgb(var(--fg-rgb) / 0.3);
  color: var(--text);
}

.faq__item[open]:not(.is-closing) .faq__icon {
  transform: rotate(45deg);
  border-color: transparent;
  background: var(--text);
  color: var(--on-text);
}

.faq__answer {
  overflow: hidden;
}

.faq__answer p {
  padding: 0 0 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

@media (min-width: 768px) {
  .faq__answer p {
    padding-right: 62px;
  }
}

@media (min-width: 992px) {
  .faq-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 80px;
    align-items: start;
  }

  .faq-side {
    position: sticky;
    top: calc(var(--header-h) + 48px);
  }
}

/* ---------- Status strip ------------------------------------------------ */
[data-status="operational"] { --st-tone: var(--st-operational); }
[data-status="degraded"] { --st-tone: var(--st-degraded); }
[data-status="partial"] { --st-tone: var(--st-partial); }
[data-status="major"] { --st-tone: var(--st-major); }
[data-status="maintenance"] { --st-tone: var(--st-maintenance); }
[data-status="unknown"] { --st-tone: var(--muted); }

.status-strip {
  display: grid;
  gap: 10px;
  margin-top: 32px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgb(var(--fg-rgb) / 0.03);
}

.status-strip__state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.status-strip__label {
  font-size: 15px;
  font-weight: 600;
}

.status-strip__detail {
  font-size: 14px;
  color: var(--muted);
}

.status-strip__detail:empty {
  display: none;
}

.status-strip__services {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.status-strip__services:empty {
  display: none;
}

.status-strip__pip {
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: var(--st-tone, var(--st-operational));
}

.status-strip__link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  font-size: 15px;
  color: var(--violet);
  text-underline-offset: 4px;
}

.st-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--st-tone, var(--st-operational));
}

.status-strip[data-state="loading"] .st-dot {
  background: rgb(var(--fg-rgb) / 0.3);
}

.status-strip[data-state="error"] .st-dot {
  background: var(--muted);
}

.status-strip[data-state="error"] .st-dot::after {
  display: none;
}

/* ---------- Closer ------------------------------------------------------ */
.closer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(88px, 10vw, 150px);
  background: var(--bg);
  text-align: center;
}

.closer__aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.closer__aurora .aurora {
  opacity: var(--aurora-o-strong);
}

.closer__aurora .aurora--violet {
  top: auto;
  bottom: -320px;
  left: calc(50% - 560px);
}

.closer__aurora .aurora--blush {
  top: auto;
  bottom: -360px;
  left: calc(50% - 160px);
  width: 640px;
  height: 640px;
}

.closer__aurora .aurora--clay {
  top: auto;
  bottom: -300px;
  left: calc(50% + 120px);
  opacity: 0.45;
}

.closer__swatches {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 36px;
}

.closer__swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--bg), 0 10px 30px -8px rgba(0, 0, 0, 0.7);
  animation: bob 4.8s ease-in-out infinite;
}

.closer__swatch:nth-child(2) { animation-delay: -1.2s; }
.closer__swatch:nth-child(3) { animation-delay: -2.4s; }
.closer__swatch:nth-child(4) { animation-delay: -3.6s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.closer__title {
  max-width: 1040px;
  margin-inline: auto;
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--ls-h1);
  text-wrap: balance;
}

.closer__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}

/* ---------- Footer ------------------------------------------------------ */
.site-footer {
  position: relative;
  padding-block: 16px 16px;
  background: var(--bg);
  color: var(--text);
}

.site-footer__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 56px) 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 50% 60% at 0% 0%, rgba(157, 149, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 45% 55% at 100% 100%, rgba(232, 120, 79, 0.1), transparent 70%),
    var(--surface);
  box-shadow: 0 30px 80px -60px var(--shadow-deep);
}

.site-footer__top {
  display: grid;
  gap: 40px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer__brand {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__brand .brand__name {
  font-size: 24px;
}

.site-footer__blurb {
  max-width: 400px;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.site-footer__nav-title {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--violet);
}

.site-footer__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 16px;
  color: var(--text-soft);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.site-footer__link span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease-out);
}

.site-footer__link-arrow {
  flex: none;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--text);
}

.site-footer__link:hover span,
.site-footer__link:focus-visible span {
  background-size: 100% 1px;
}

.site-footer__link:hover .site-footer__link-arrow,
.site-footer__link:focus-visible .site-footer__link-arrow {
  opacity: 1;
  transform: none;
}

.site-footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.site-footer__made {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer__made strong {
  color: var(--text);
}

/* Phones: Company takes a full row so long names never wrap mid-column. */
@media (max-width: 767.98px) {
  .site-footer__col:last-child {
    grid-column: 1 / -1;
  }
}

.site-footer__link span {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .site-footer {
    padding-block: 24px 24px;
  }

  .site-footer__top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
  }

  .site-footer__brand {
    grid-column: auto;
  }
}

/* ---------- Launch moment + confetti ----------------------------------- */
.launch-moment {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: var(--z-modal);
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}

.launch-moment__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgb(var(--fg-rgb) / 0.14);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(237, 147, 177, 0.16), transparent 70%),
    radial-gradient(ellipse 70% 60% at 0% 0%, rgba(157, 149, 255, 0.18), transparent 70%),
    linear-gradient(180deg, var(--pop-a), var(--pop-b));
  box-shadow:
    0 40px 100px -20px var(--shadow-deep),
    0 0 90px -20px rgba(157, 149, 255, 0.5);
  color: var(--text);
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition:
    opacity 0.35s ease,
    transform 0.55s var(--ease-spring);
  pointer-events: auto;
}

.launch-moment__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--grad);
}

.launch-moment.is-open .launch-moment__card {
  opacity: 1;
  transform: none;
}

.launch-moment__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.launch-moment__close:hover {
  background: rgb(var(--fg-rgb) / 0.07);
  color: var(--text);
}

.launch-moment__receipt {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  margin: 0 44px 18px 0;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgb(var(--fg-rgb) / 0.04);
}

.launch-moment__receipt-chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.2);
}

.launch-moment__receipt-lines {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.launch-moment__receipt-name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-moment__receipt-meta {
  font-size: 14px;
  color: var(--muted);
}

.launch-moment__receipt-tick {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
}

.launch-moment.is-open .launch-moment__receipt-tick {
  animation: tick-pop 0.6s var(--ease-spring) 0.2s both;
}

@keyframes tick-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.launch-moment__eyebrow {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blush);
}

.launch-moment__title {
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.launch-moment__text {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.launch-moment__live {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--text-soft);
}

.launch-moment__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 479.98px) {
  .launch-moment__text {
    display: none;
  }

  .launch-moment__card {
    padding: 20px;
  }
}

@media (min-width: 768px) {
  .launch-moment {
    justify-content: flex-end;
    right: 24px;
    left: auto;
    bottom: 24px;
    padding-inline: 0;
  }
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: var(--z-confetti);
  overflow: hidden;
  pointer-events: none;
}

.confetti-bit {
  position: fixed;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 10px rgba(157, 149, 255, 0.35);
  pointer-events: none;
  will-change: transform, opacity;
}

.confetti-bit--round {
  border-radius: 50%;
}

.confetti-bit--pill {
  border-radius: var(--radius-pill);
}

/* ---------- Scroll reveals --------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.9s var(--ease-out),
    filter 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  filter: none;
  transform: none;
}

/* ---------- Reduced motion --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .js [data-reveal] {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .aurora,
  .glow-frame,
  .grad-text.is-shimmering,
  .marquee__track,
  .closer__swatch,
  .step.is-active .step__index::after,
  .hero__pill-dot::after,
  .launch-moment__live-dot::after,
  .st-dot--live::after {
    animation: none !important;
  }

  .hero__frame {
    transform: none;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: auto;
  }

  .marquee__item {
    margin-inline-end: 0;
  }

  .marquee__item[aria-hidden="true"] {
    display: none;
  }

  .btn,
  .btn:active {
    transform: none;
  }

  .btn::after {
    display: none;
  }
}

/* Guard: decorative layers (aurora, marquee) must never widen the page on phones. clip keeps position: sticky working. */
html,
body {
  overflow-x: clip;
}
