/* Showcase page. The library's CSS lives in @layer liquid-glass behind :where(), so every rule here
   wins without !important. Never put opacity, filter, mask, clip-path or backdrop-filter on an
   element that contains glass: it would become a Backdrop Root and blank the glass inside. */

/* ── Tokens ───────────────────────────────────────────────────────────── */
:root {
  color-scheme: light dark;
  --sc-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sc-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sc-bg: light-dark(#f5f5f7, #000);
  --sc-bg-alt: light-dark(#fff, #101012);
  --sc-text: light-dark(#1d1d1f, #f5f5f7);
  --sc-text-2: light-dark(#6e6e73, #a1a1a6);
  --sc-rule: light-dark(rgb(0 0 0 / .12), rgb(255 255 255 / .14));
  --sc-link: light-dark(#0066cc, #2997ff);
  --sc-eyebrow: linear-gradient(90deg, #ff375f, #bf5af2 55%, #0a84ff);
  --sc-max: 1200px;
  --sc-gutter: clamp(16px, 4vw, 48px);
  --sc-section: clamp(88px, 11vw, 168px);
  --sc-stage-r: clamp(24px, 2.6vw, 36px);
  --sc-nav-h: 52px;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ── Base ─────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sc-nav-h) + 28px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
:root[data-glass-motion="reduced"] { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sc-bg);
  color: var(--sc-text);
  font: 400 17px/1.47 var(--sc-font);
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { margin: 0; color: inherit; }
p { margin: 0; }
code { font: .88em/1 var(--sc-mono); letter-spacing: 0; }
canvas { display: block; }

.sc-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Icon stroke style only: the library sizes glyphs in its controls (tab bar 28, large buttons 24…),
   and an unlayered size here would override it. Icons outside controls get sizes in context. */
svg.i {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc-skip {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sc-text);
  color: var(--sc-bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.sc-skip:focus-visible { transform: none; }

.sc-wrap { width: min(var(--sc-max), 100% - 2 * var(--sc-gutter)); margin-inline: auto; }
.sc-center { text-align: center; }
.sc-nowrap, .sc-facts code { white-space: nowrap; }

/* ── Fixed navigation ─────────────────────────────────────────────────── */
.glass-scroll-edge[data-glass-bar="nav"] { z-index: 49; }
.sc-nav {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  justify-content: center;
  gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) var(--sc-gutter) 0;
  pointer-events: none;
}
.sc-nav > * { pointer-events: auto; }
.sc-navbar { gap: 2px; padding: 6px 8px 6px 14px; min-width: 0; }
.sc-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: 10px;
  color: inherit;
  font: 600 17px/1 var(--sc-font);
  letter-spacing: -.022em;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
}
.sc-mark { width: 26px; height: 26px; flex: none; }
.sc-wordmark-sub { font-weight: 400; opacity: .62; }
.sc-navlinks { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sc-navlinks .glass-item { padding: 0 12px; font-size: 14px; }
.sc-navmenu-open { display: none; }
.sc-nav-cta { min-height: var(--sc-nav-h); padding-inline: 22px; font-size: 15px; }

#navmenu { min-width: 240px; }

/* ── Shared section furniture ─────────────────────────────────────────── */
/* overflow-x: clip stops glass bleed layers at the screen edge from widening the page (unlike
   hidden, clip makes no scroll container). */
.sc-section { position: relative; overflow-x: clip; padding: var(--sc-section) 0; background: var(--sc-bg); }
.sc-alt { background: var(--sc-bg-alt); }

.sc-head { max-width: 860px; margin: 0 auto clamp(40px, 5.5vw, 72px); text-align: center; }
.sc-head-left { margin-inline: 0; text-align: left; }
.sc-eyebrow {
  width: fit-content;
  margin: 0 auto 14px;
  font: 600 clamp(17px, 1.5vw, 21px)/1.2 var(--sc-font);
  letter-spacing: -.01em;
  color: #bf5af2;
  background: var(--sc-eyebrow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sc-head-left .sc-eyebrow { margin-left: 0; }
.sc-head h2 {
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.038em;
  text-wrap: balance;
}
.sc-lead {
  color: var(--sc-text-2);
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.42;
  letter-spacing: -.014em;
  text-wrap: pretty;
}
.sc-lead code { color: var(--sc-text); }
.sc-note { color: var(--sc-text-2); font-size: 15px; line-height: 1.45; letter-spacing: -.01em; }
.sc-note.sc-center { max-width: 640px; margin: 24px auto 0; }
.sc-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9f0a, #ff375f);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  -webkit-text-fill-color: #fff;
}

/* Stages: a rounded panel of procedural art with glass on top. The canvas rounds its own corners;
   the stage never clips, so it is not a rounded-clip ancestor of the glass it holds. */
.sc-stage {
  position: relative;
  min-height: 560px;
  border-radius: var(--sc-stage-r);
  background: var(--sc-art-bg, #1b1d24);
}
.sc-stage[data-scheme="dark"], .sc-tile[data-glass-backdrop="dark"], .sc-hero, .sc-footer, .sc-phone { color-scheme: dark; }
.sc-tile[data-glass-backdrop="light"] { color-scheme: light; }
/* Each art's colours until its canvas paints (it mounts as it nears the viewport). The stage wears
   them too: glass reads its first tone from its ancestors' backgrounds, before it can sample. */
.sc-art { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; background: var(--sc-art-bg); }
.sc-art[data-art="aurora"], .sc-stage:has(> [data-art="aurora"]) { --sc-art-bg: linear-gradient(135deg, #10306e, #3a0b3f 60%, #5b1a2e); }
.sc-art[data-art="aurora"][data-resolved="light"], .sc-stage:has(> [data-art="aurora"][data-resolved="light"]) { --sc-art-bg: linear-gradient(135deg, #dfe8fb, #f3e3f4 60%, #fbeede); }
.sc-art[data-art="typeSpecimen"], .sc-stage:has(> [data-art="typeSpecimen"]) { --sc-art-bg: #f1efe9; }
.sc-art[data-art="typeSpecimen"][data-resolved="dark"], .sc-stage:has(> [data-art="typeSpecimen"][data-resolved="dark"]) { --sc-art-bg: #121214; }
.sc-art[data-art="landscape"], .sc-stage:has(> [data-art="landscape"]) { --sc-art-bg: linear-gradient(#3d67d6, #b9a8d8 55%, #6c6190 56%, #7b86c9); }
.sc-art[data-art="landscape"][data-resolved="dark"], .sc-stage:has(> [data-art="landscape"][data-resolved="dark"]) { --sc-art-bg: linear-gradient(#0b1030, #1f2a5c 55%, #0d0f1e 56%, #1a2150); }
.sc-art[data-art="mosaic"], .sc-stage:has(> [data-art="mosaic"]) { --sc-art-bg: #1c1c28; }
.sc-art[data-art="poster"], .sc-stage:has(> [data-art="poster"]) { --sc-art-bg: #f1efe9; }
.sc-art[data-art="poster"][data-resolved="dark"], .sc-stage:has(> [data-art="poster"][data-resolved="dark"]) { --sc-art-bg: #141416; }

/* ── 1 · Hero ─────────────────────────────────────────────────────────── */
.sc-hero {
  position: relative;
  overflow: clip;
  display: grid;
  align-items: center;
  min-height: max(700px, 100svh);
  padding: calc(var(--sc-nav-h) + 72px) 0 104px;
  box-sizing: border-box;
  background: #0b1d51;
  color: #fff;
}
.sc-hero-art { will-change: transform; }
/* A shade behind the copy column, so white text keeps 4.5:1 over the brightest glows. */
.sc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 24% 58%, rgb(8 6 30 / .42), transparent 75%),
    linear-gradient(90deg, rgb(8 6 30 / .34), rgb(8 6 30 / .2) 50%, transparent 72%);
  pointer-events: none;
}
.sc-hero-grid { z-index: 1; }
.sc-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.sc-hero h1 {
  margin-bottom: 28px;
  font-size: clamp(56px, 7.6vw, 116px);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgb(0 0 0 / .18);
}
.sc-hero-sub {
  max-width: 32em;
  margin-bottom: 36px;
  color: #fff;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.42;
  letter-spacing: -.014em;
  text-wrap: pretty;
  text-shadow: 0 1px 12px rgb(8 6 30 / .45);
}
.sc-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.sc-ctas .glass-button { font-size: 17px; }

.sc-engine {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 4px 4px 4px 16px;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.sc-engine-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #ffd60a;
  box-shadow: 0 0 0 3px rgb(255 214 10 / .25);
}
:root[data-sc-engine="a"] .sc-engine-dot { background: #30d158; box-shadow: 0 0 0 3px rgb(48 209 88 / .28); }
:root[data-sc-engine="c"] .sc-engine-dot { background: #8e8e93; box-shadow: none; }
.sc-why {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / .16);
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sc-why:hover { background: rgb(255 255 255 / .26); }
.sc-engine[data-lg-tone="light"] .sc-why { background: rgb(0 0 0 / .07); }
.sc-engine[data-lg-tone="light"] .sc-why:hover { background: rgb(0 0 0 / .12); }
.sc-why:focus-visible { outline: 2px solid var(--glass-accent, #0a84ff); outline-offset: 2px; }

.sc-why-pop { width: min(380px, calc(100vw - 32px)); max-width: none; box-sizing: border-box; padding: 20px 22px 18px; }
/* These panels are wider than a menu: centred on their button, free to use the whole width (inside
   the page gutter), so they still flip above it when there is no room below. */
@supports (position-area: block-end) {
  .sc-why-pop { position-area: block-end span-all; justify-self: anchor-center; margin: 6px 16px; }
}
.sc-why-pop h2 { margin-bottom: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.sc-why-pop p { margin-bottom: 10px; font-size: 15px; line-height: 1.45; letter-spacing: -.01em; }
.sc-why-pop .sc-why-foot { margin: 0; opacity: .72; }
.sc-license { width: min(460px, calc(100vw - 32px)); }
.sc-license p { font-size: 12px; line-height: 1.45; }
.sc-license p:last-child { margin: 0; }

/* The cluster: a clear media card over the art, plus three icon buttons. */
.sc-cluster { display: grid; gap: 18px; justify-items: center; justify-self: end; width: min(100%, 400px); }
.sc-player {
  display: grid;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  padding: 22px 22px 14px;
  border-radius: 36px;
}
.sc-player-top { display: flex; align-items: center; gap: 14px; }
.sc-cover {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 14px;
  background: #1c1c28;
  box-shadow: 0 6px 18px rgb(0 0 0 / .28);
}
.sc-player-meta { display: grid; gap: 2px; min-width: 0; }
.sc-player-meta strong { font-size: 19px; font-weight: 700; letter-spacing: -.022em; }
.sc-player-meta span { font-size: 15px; opacity: .72; }
.sc-player-scrub { margin: 2px 0 -10px; }
.sc-player-times { display: flex; justify-content: space-between; font: 600 12px/1 var(--sc-font); font-variant-numeric: tabular-nums; letter-spacing: 0; opacity: .7; }
.sc-transport { display: flex; justify-content: center; gap: 28px; }
.sc-transport button {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background-color .15s;
}
.sc-transport button:hover { background: rgb(255 255 255 / .12); }
.sc-transport button:active { background: rgb(255 255 255 / .2); }
.sc-transport svg { width: 30px; height: 30px; }
.sc-transport .sc-playpause svg { width: 38px; height: 38px; }
.sc-player-switch {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  min-height: 48px;
  padding-top: 8px;
  border-top: 1px solid rgb(255 255 255 / .16);
  font-weight: 600;
}
.sc-cluster-row { display: flex; gap: 16px; }
[aria-pressed="true"] > svg.i { fill: currentColor; }
.glass-icon[aria-label="Love"][aria-pressed="true"] { color: #ff375f; }

/* ── 2 · Over anything ────────────────────────────────────────────────── */
.sc-live {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(280px, 25vw, 340px);
  gap: 16px;
}
.sc-tile { position: relative; margin: 0; border-radius: 28px; }
.sc-tile-marquee, .sc-tile-type { grid-column: span 7; }
.sc-tile-shapes, .sc-tile-clock { grid-column: span 5; }
.sc-tile-bg { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.sc-tile figcaption {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgb(0 0 0 / .62);
  color: #fff;
  font: 600 12px/1 var(--sc-font);
  letter-spacing: .02em;
  pointer-events: none;
}

.sc-live-capsule, .sc-live-orb, .sc-live-pill { position: absolute; pointer-events: none; }

.sc-marquee {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background:
    radial-gradient(120% 90% at 20% 0%, #2a1b6b 0, transparent 60%),
    radial-gradient(90% 80% at 100% 100%, #5a1036 0, transparent 60%),
    #0a0b1c;
}
.sc-marquee-row {
  display: flex;
  width: max-content;
  font: 800 clamp(52px, 5.4vw, 78px)/1.04 var(--sc-font);
  letter-spacing: -.045em;
  white-space: nowrap;
  animation: sc-marquee 26s linear infinite;
}
.sc-marquee-row span { padding-right: .25em; }
.sc-marquee-row:nth-child(1) span { background: linear-gradient(90deg, #ff375f, #ff9f0a, #ffd60a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-marquee-row:nth-child(2) { animation-duration: 34s; }
.sc-marquee-row:nth-child(2) span { color: transparent; -webkit-text-stroke: 1.5px #64d2ff; }
.sc-marquee-row:nth-child(3) { animation-duration: 20s; }
.sc-marquee-row:nth-child(3) span { background: linear-gradient(90deg, #30d158, #64d2ff, #bf5af2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-marquee-rev { animation-direction: reverse; }
@keyframes sc-marquee { to { transform: translateX(-50%); } }
.sc-live-capsule { left: 50%; top: 50%; width: min(76%, 460px); height: 118px; transform: translate(-50%, -50%); }

.sc-shapes {
  background:
    repeating-linear-gradient(90deg, rgb(0 0 0 / .9) 0 6px, transparent 6px 16px) 0 50% / 100% 34% no-repeat,
    #f4f1ea;
  animation: sc-stripes 3s linear infinite;
}
@keyframes sc-stripes { to { background-position: 160px 50%, 0 0; } }
.sc-shape { position: absolute; display: block; }
.sc-ring {
  left: 12%;
  top: 50%;
  width: 230px;
  height: 230px;
  margin-top: -115px;
  border-radius: 50%;
  background: conic-gradient(#ff375f, #ff9f0a, #ffd60a, #30d158, #64d2ff, #0a84ff, #bf5af2, #ff375f);
  -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 59%);
  mask: radial-gradient(closest-side, transparent 58%, #000 59%);
  animation: sc-spin 9s linear infinite;
}
.sc-bar { bottom: 0; width: 22px; border-radius: 11px 11px 0 0; transform-origin: 50% 100%; animation: sc-eq 1.6s ease-in-out infinite alternate; }
.sc-bar-1 { right: 22%; height: 62%; background: #0a84ff; }
.sc-bar-2 { right: 15%; height: 78%; background: #ff375f; animation-delay: -.5s; }
.sc-bar-3 { right: 8%; height: 54%; background: #30d158; animation-delay: -1.1s; }
@keyframes sc-eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.sc-dot { width: 34px; height: 34px; border-radius: 50%; left: calc(12% + 98px); top: calc(50% - 17px); animation: sc-orbit 6s linear infinite; }
.sc-dot-1 { background: #111; }
.sc-dot-2 { background: #ff9f0a; animation-delay: -2s; }
.sc-dot-3 { background: #bf5af2; animation-delay: -4s; }
@keyframes sc-orbit { from { transform: rotate(0) translateX(150px) rotate(0); } to { transform: rotate(1turn) translateX(150px) rotate(-1turn); } }
.sc-square {
  right: 26%;
  top: 14%;
  width: 70px;
  height: 70px;
  border-radius: 14px;
  background: repeating-linear-gradient(45deg, #111 0 5px, #ffd60a 5px 10px);
  animation: sc-spin 7s linear infinite reverse;
}
@keyframes sc-spin { to { transform: rotate(1turn); } }
.sc-live-orb { left: 50%; top: 50%; width: 190px; height: 190px; transform: translate(-50%, -50%); border-radius: 50%; }

.sc-clock {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  background:
    linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px) 0 0 / 100% 22px,
    radial-gradient(110% 90% at 50% 120%, #1d3b8f 0, transparent 60%),
    #050608;
  color: #fff;
}
.sc-clock-time {
  font: 700 clamp(72px, 7.4vw, 112px)/1 var(--sc-font);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.sc-clock-s { background: linear-gradient(180deg, #64d2ff, #0a84ff 45%, #bf5af2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-clock-date { color: rgb(255 255 255 / .7); font-size: 17px; font-weight: 500; }
.sc-clock-sweep {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #30d158, #64d2ff, #0a84ff, #bf5af2, #ff375f);
  transform-origin: 0 50%;
  animation: sc-sweep 60s linear infinite;
}
@keyframes sc-sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.sc-type { background: #fbfaf6; }
/* The mirror lays out the same text invisibly, to find where the caret is (the lens follows it). */
.sc-type textarea, .sc-type-mirror {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 56px 32px 56px;
  border: 0;
  font: 700 clamp(32px, 3.4vw, 50px)/1.14 var(--sc-font);
  letter-spacing: -.035em;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.sc-type textarea {
  background: transparent;
  color: #111;
  resize: none;
  outline: none;
  scrollbar-width: none;
  caret-color: #0a84ff;
}
.sc-type-mirror { visibility: hidden; overflow: hidden; pointer-events: none; }
.sc-type textarea::placeholder { color: rgb(0 0 0 / .32); }
.sc-tile-type:has(textarea:focus-visible) { outline: 2px solid color-mix(in srgb, #0a84ff 75%, transparent); outline-offset: 3px; }
.sc-tile-type figcaption { top: auto; bottom: 16px; background: rgb(0 0 0 / .78); }
#typeLens { position: absolute; left: 0; top: 0; }

.sc-live-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  max-width: 820px;
  margin: 28px auto 0;
  text-align: center;
}
.sc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sc-bg-alt);
  box-shadow: inset 0 0 0 1px var(--sc-rule);
  color: var(--sc-text);
  font-size: 14px;
  font-weight: 600;
}

/* ── Split layouts (optics, navigation, accessibility) ────────────────── */
.sc-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.sc-split .sc-head { margin-bottom: 32px; }
.sc-split .sc-head h2 { font-size: clamp(44px, 5vw, 72px); }

.sc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 32px; }
.sc-facts div { padding-top: 12px; border-top: 1px solid var(--sc-rule); }
.sc-facts dt { margin-bottom: 4px; color: var(--sc-text-2); font-size: 13px; font-weight: 600; }
.sc-facts dd { margin: 0; font-size: 15px; line-height: 1.35; letter-spacing: -.01em; }

.sc-toggles { display: grid; max-width: 440px; }
.sc-toggles > .glass-switch,
.sc-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  border-bottom: 1px solid var(--sc-rule);
  font-size: 17px;
}
.sc-toggles > .glass-switch { flex-direction: row-reverse; }
.sc-seg-small { width: 180px; }
/* A label column and a track column, so the two preference sliders line up at every width. */
.sc-tinted-row { display: grid; grid-template-columns: minmax(0, 1fr) min(220px, 56%); }
.sc-tinted-row .glass-slider { width: 100%; }

.sc-stage-optics { min-height: 620px; }
.sc-drag { position: absolute; cursor: grab; touch-action: none; }
.sc-drag.is-dragging { cursor: grabbing; }
.sc-drag:focus-visible { outline-offset: 4px; }
.sc-optics-capsule { left: 7%; top: 16%; width: min(440px, 78%); height: 124px; }
.sc-optics-card { left: 42%; top: 50%; width: min(280px, 50%); height: 210px; border-radius: 44px; }

/* ── 4 · Materials ────────────────────────────────────────────────────── */
.sc-stage-materials { min-height: 640px; display: grid; }
.sc-materials {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
}
.sc-material { display: grid; justify-items: center; gap: 22px; }
.sc-sample {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  box-sizing: border-box;
  padding: 26px 26px 28px;
  border-radius: 44px;
  /* A lighter legibility fill than the library's .55 for text-bearing glass: enough for the copy,
     while the frost still shows what each recipe does. */
  --glass-opacity-text: .3;
  --glass-opacity-text-dark: .42;
}
.sc-sample h3 { font-size: 34px; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.sc-sample p { font-size: 15px; line-height: 1.38; letter-spacing: -.01em; opacity: .86; }
.sc-sample-tag {
  position: absolute;
  top: 22px;
  left: 26px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .7;
}

/* ── 5 · Controls ─────────────────────────────────────────────────────── */
.sc-stage-controls { display: grid; min-height: 600px; }
.sc-controls {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  padding: clamp(24px, 4.5vw, 64px);
}
.sc-settings { display: grid; padding: 6px 0; border-radius: 28px; }
.sc-settings .glass-switch {
  flex-direction: row-reverse;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 14px 0 18px;
  font-size: 17px;
}
.sc-settings .glass-switch + .glass-switch { box-shadow: inset 52px 1px 0 -51px transparent, inset 0 1px 0 rgb(255 255 255 / .12); }
.sc-settings[data-lg-tone="light"] .glass-switch + .glass-switch { box-shadow: inset 0 1px 0 rgb(0 0 0 / .1); }
.sc-row-label { display: inline-flex; align-items: center; gap: 12px; }
.sc-row-label svg.i, .sc-slider-row svg.i { width: 20px; height: 20px; }
.sc-controls-col { display: grid; gap: 22px; align-content: center; }
.sc-controls-col .glass-segmented { width: 100%; }
.sc-slider-row { display: flex; align-items: center; gap: 12px; color: #fff; }
.sc-slider-row svg { filter: drop-shadow(0 1px 3px rgb(0 0 0 / .6)); }
.sc-slider-row .glass-slider { flex: 1; }
.sc-slider-row .sc-i-lg { width: 26px; height: 26px; }
.sc-button-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* A text field over the busiest art on the page: a denser fill and a stronger placeholder keep it
   legible in whichever tone the glass picks. */
.sc-controls .glass-search { width: 100%; --glass-fill-opacity: .64; --glass-fill-opacity-dark: .5; }
.sc-controls .glass-search input::placeholder { color: color-mix(in srgb, currentColor 74%, transparent); }

/* ── 6 · Navigation: phone mock ───────────────────────────────────────── */
.sc-split-phone { grid-template-columns: minmax(0, 1fr) auto; }
.sc-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.sc-steps li {
  position: relative;
  padding: 14px 0 14px 44px;
  border-top: 1px solid var(--sc-rule);
  color: var(--sc-text-2);
  font-size: 17px;
  line-height: 1.42;
  counter-increment: step;
}
.sc-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sc-text);
  color: var(--sc-bg);
  font-size: 14px;
  font-weight: 700;
}
.sc-steps strong { color: var(--sc-text); font-weight: 600; }
.sc-kbd { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--sc-rule); letter-spacing: .08em; }
@media not (pointer: coarse) { .sc-touch-note { display: none; } }

.sc-phone {
  --glass-device-radius: 55px;
  position: relative;
  width: 390px;
  height: 780px;
  margin: 12px;
  border-radius: 58px;
  background: #000;
  box-shadow: 0 0 0 3px #3a3a40, 0 0 0 11px #111114, 0 0 0 12px #4a4a52, 0 40px 90px -20px rgb(0 0 0 / .45);
  color: #fff;
}
.sc-phone-screen { position: absolute; inset: 0; border-radius: inherit; }
.sc-feed {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: inherit;
  background: #0b0b0f;
  scrollbar-width: none;
}
.sc-feed::-webkit-scrollbar { display: none; }
@media (pointer: coarse) {
  .sc-feed { overscroll-behavior: auto; }
  .sc-phone:not([data-active]) .sc-feed { overflow-y: hidden; }
}
.sc-feed:focus-visible { outline: 3px solid #0a84ff; outline-offset: 4px; }
.sc-feed-head { padding: 92px 22px 16px; }
.sc-feed-kicker { color: rgb(255 255 255 / .6); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sc-feed-title { font-size: 34px; font-weight: 800; letter-spacing: -.035em; }
.sc-feed-art { position: relative; inset: auto; width: 100%; height: 1680px; border-radius: 0; }
.sc-phone-edge { position: absolute; }
.sc-phone-edge[data-edge="top"] { border-radius: 55px 55px 0 0; }
.sc-phone-edge[data-edge="bottom"] { border-radius: 0 0 55px 55px; }
.sc-phone-edge::before, .sc-phone-edge::after, .sc-phone-edge > * { border-radius: inherit; }
.sc-phone-top { position: absolute; top: 0; left: 0; right: 0; justify-content: space-between; padding: 28px 18px 0; }
.sc-phone-bottom { position: absolute; bottom: 0; left: 0; right: 0; gap: 10px; padding: 0 18px 24px; }
.sc-phone-bottom .glass-tabbar { flex: 1; }
.sc-phone-sheet { color: inherit; }
.sc-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.sc-sheet-head h2, .sc-sheet-head h3 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.sc-rows { margin: 0; padding: 0; list-style: none; }
.sc-rows li {
  display: flex;
  justify-content: space-between;
  padding: 12px 2px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  font-size: 17px;
}
.sc-rows li span:last-child { opacity: .6; font-variant-numeric: tabular-nums; }

/* ── 7 · Magnifier ────────────────────────────────────────────────────── */
.sc-stage-poster { min-height: 640px; }
#posterLens { position: absolute; left: 14%; top: 26%; }
#posterPill { position: absolute; left: 58%; top: 70%; width: 250px; height: 96px; }
.sc-loupe-row { display: grid; justify-items: center; gap: 8px; margin-top: 28px; }
.sc-loupe-row .glass-switch { font-size: 17px; }
.sc-loupe-note { font-size: 14px; }
:root[data-sc-engine="a"] .sc-loupe-note { display: none; }
.sc-loupe { position: fixed; z-index: 60; left: 0; top: 0; pointer-events: none; }

/* ── 8 · Droplets ─────────────────────────────────────────────────────── */
.sc-stage-droplets { display: grid; place-content: center; justify-items: center; gap: 56px; min-height: 520px; }
.sc-drops, .sc-drop-bar { position: relative; display: flex; align-items: center; }
.sc-drops { gap: 28px; }
.sc-drop-bar { gap: 8px; }
.sc-drops .glass { touch-action: none; }
.sc-drop-toggle { position: relative; }
[hidden] { display: none !important; }

/* ── 9 · Accessibility ────────────────────────────────────────────────── */
.sc-stage-access { display: grid; justify-items: center; align-content: start; min-height: 560px; padding-top: clamp(40px, 6vw, 72px); box-sizing: border-box; }
.sc-access-demo { position: relative; display: grid; justify-items: center; gap: 24px; width: min(100% - 32px, 420px); }
.sc-access-bar { width: 100%; box-sizing: border-box; padding: 6px; }
.sc-access-title { flex: 1; font-size: 17px; font-weight: 700; letter-spacing: -.02em; text-align: center; }
.sc-access-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sc-access-row .glass-prominent { gap: 8px; }
.sc-access-row .glass-prominent svg.i { width: 16px; height: 16px; }

/* ── 10 · Get started ─────────────────────────────────────────────────── */
.sc-code {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 24px;
  background: #16161a;
  color: #f5f5f7;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45), inset 0 0 0 1px rgb(255 255 255 / .08);
  color-scheme: dark;
}
.sc-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 24px;
  border-bottom: 1px solid rgb(255 255 255 / .08);
  color: rgb(255 255 255 / .6);
  font: 500 13px/1 var(--sc-mono);
  letter-spacing: 0;
}
.sc-code pre { margin: 0; padding: 22px 24px 26px; overflow-x: auto; font: 14px/1.75 var(--sc-mono); letter-spacing: 0; tab-size: 2; }
.sc-code code { font: inherit; }
.t-c { color: #7f8c98; }
.t-t { color: #ff7ab2; }
.t-a { color: #d0a8ff; }
.t-s { color: #ff8170; }
.sc-copy { gap: 6px; font-size: 14px; }
.sc-copy svg.i { width: 16px; height: 16px; }
.sc-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 980px; margin: 56px auto 0; padding: 0; list-style: none; }
.sc-points li { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--sc-rule); }
.sc-points strong { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.sc-points span { color: var(--sc-text-2); font-size: 15px; line-height: 1.45; }
.sc-downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 48px; }
.sc-downloads .glass-button { gap: 8px; font-size: 15px; font-weight: 600; }
.sc-downloads svg.i { width: 18px; height: 18px; }

/* ── 11 · Diagnostics ─────────────────────────────────────────────────── */
.sc-stage-hood { padding: clamp(16px, 4vw, 56px); }
.sc-diag {
  display: grid;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 32px;
  font-size: 15px;
  letter-spacing: -.01em;
}
.sc-diag-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; }
.sc-diag-list { display: grid; margin: 0; }
.sc-diag-list div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.sc-diag-list dt { opacity: .7; }
.sc-diag-list dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.sc-diag-table-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.sc-diag-table-head h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.sc-diag-filter { font-size: 15px; white-space: nowrap; }
/* A fixed height: rows come and go with the scroll, and a panel that changed size with them would
   move the page under the glass it lists (and re-sample every tone) once a second. */
.sc-diag-table { height: 264px; overflow: auto; border-radius: 14px; }
.sc-diag-table:focus-visible { outline: 2px solid #0a84ff; }
.sc-diag table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sc-diag th { position: sticky; top: 0; padding: 8px 10px; text-align: left; font-weight: 600; opacity: .8; background: rgb(20 20 24 / .92); }
.sc-diag[data-lg-tone="light"] th { background: rgb(245 245 247 / .95); }
.sc-diag td { padding: 7px 10px; border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent); white-space: nowrap; }
.sc-diag td:first-child { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.sc-tier { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-family: var(--sc-mono); }
.sc-tier::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sc-tier-a { color: #30d158; }
.sc-tier-b { color: #ffd60a; }
.sc-tier-c { color: #ff6961; }
.sc-tier-none { color: #8e8e93; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.sc-footer {
  position: relative;
  overflow: clip;
  padding: clamp(180px, 22vw, 300px) 0 48px;
  background: #0b1030;
  color: #fff;
}
.sc-footer-inner { position: relative; display: grid; justify-items: center; gap: 20px; }
.sc-footer-bar { flex-wrap: wrap; justify-content: center; gap: 4px; padding: 6px 8px 6px 14px; }
.sc-footer-bar .glass-item { font: inherit; font-size: 14px; padding: 0 12px; text-decoration: none; }
.sc-disclaimer { color: rgb(255 255 255 / .74); font-size: 13px; text-align: center; letter-spacing: 0; text-shadow: 0 1px 8px rgb(0 0 0 / .6); }

/* ── Tuning panel ─────────────────────────────────────────────────────── */
.sc-tuner { z-index: 80; font-size: 15px; }
@media (min-width: 600px) {
  .sc-tuner:not(:modal) {
    position: fixed;
    inset: calc(var(--sc-nav-h) + 24px) 16px 16px auto;
    width: 372px;
    height: fit-content;
    max-height: calc(100% - var(--sc-nav-h) - 40px);
    margin: 0;
  }
}
.sc-tuner .sc-sheet-head h2 { font-size: 24px; }
.sc-tuner-intro { margin: -4px 0 18px; font-size: 14px; opacity: .7; }
.sc-tune-group { display: grid; gap: 2px; margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.sc-tune-group legend { margin-bottom: 4px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.sc-tune-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 36px; }
.sc-tune-row > label, .sc-tune-row > span { font-size: 15px; font-weight: 500; }
.sc-tune-row > output { font: 500 13px/1 var(--sc-mono); letter-spacing: 0; opacity: .72; text-align: right; }
.sc-tune-row > .glass-slider { grid-column: 1 / -1; min-width: 0; height: 36px; margin-top: -4px; }
.sc-tune-seg { grid-template-columns: auto minmax(0, 1fr); min-height: 48px; }
.sc-tune-seg .glass-segmented { justify-self: end; width: min(100%, 230px); }
.sc-tune-pick { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; }
.sc-tune-pick span { opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-tune-dial { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 56px; }
.sc-dial {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 18%, transparent);
  cursor: grab;
  touch-action: none;
}
.sc-dial:focus-visible { outline: 2px solid var(--glass-accent, #0a84ff); outline-offset: 2px; }
.sc-dial-hand {
  position: absolute;
  left: calc(50% - 1.5px);
  top: 5px;
  width: 3px;
  height: 17px;
  border-radius: 2px;
  background: var(--glass-accent, #0a84ff);
  transform-origin: 50% 17px;
  transform: rotate(var(--angle, -45deg));
}
.sc-tune-swatches { min-height: 48px; }
.sc-swatches { display: flex; gap: 8px; }
.sc-swatches label { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.sc-swatches input[type="radio"] { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.sc-swatches label:has(:checked) { box-shadow: 0 0 0 2px var(--sc-tuner-bg, #fff), 0 0 0 4px var(--c); }
.sc-swatches label:has(:focus-visible) { outline: 2px solid var(--glass-accent, #0a84ff); outline-offset: 4px; }
.sc-swatch-custom { background: conic-gradient(#ff375f, #ffd60a, #30d158, #64d2ff, #bf5af2, #ff375f) !important; overflow: hidden; }
.sc-swatch-custom input { position: absolute; inset: -8px; width: 44px; height: 44px; opacity: 0; cursor: pointer; }
.sc-tuner[data-lg-tone="dark"] { --sc-tuner-bg: #2c2c2e; }
.sc-tuner .glass-switch { display: flex; flex-direction: row-reverse; justify-content: space-between; min-height: 44px; }
.sc-tune-css { margin: 0 0 16px; font-size: 14px; }
.sc-tune-css summary { cursor: pointer; font-weight: 600; }
.sc-tune-css pre { max-height: 220px; margin: 10px 0 0; padding: 12px 14px; overflow: auto; border-radius: 12px; background: rgb(0 0 0 / .72); color: #f5f5f7; font: 12px/1.6 var(--sc-mono); letter-spacing: 0; white-space: pre; }
.sc-tune-actions { display: flex; justify-content: flex-end; gap: 10px; }
.sc-tune-actions .glass-button { font-size: 15px; }
:root.sc-picking, :root.sc-picking * { cursor: crosshair !important; }
[data-sc-picked] { outline: 2px dashed var(--glass-accent, #0a84ff) !important; outline-offset: 5px !important; }

/* ── Motion ───────────────────────────────────────────────────────────── */
:root[data-glass-motion="reduced"] :is(.sc-marquee-row, .sc-shapes, .sc-shape, .sc-clock-sweep) { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  :is(.sc-marquee-row, .sc-shapes, .sc-shape, .sc-clock-sweep) { animation-play-state: paused; }
}
/* ?freeze: a fixed, representative frame for screenshots. */
:root.sc-frozen :is(.sc-marquee-row, .sc-shapes, .sc-shape) { animation-play-state: paused; animation-delay: -7s; }
:root.sc-frozen .sc-clock-sweep { animation-play-state: paused; animation-delay: -7s; }

/* ── Tablet ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .sc-navlinks .glass-item { padding: 0 9px; }
  .sc-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-settings { grid-row: span 2; align-self: center; }
}
@media (max-width: 960px) {
  .sc-navlinks { display: none; }
  .sc-navmenu-open { display: inline-flex; }
  .sc-hero-grid { grid-template-columns: minmax(0, 1fr); }
  /* One column: the shade runs across the top, behind the copy. */
  .sc-hero::after { background: linear-gradient(rgb(8 6 30 / .22), rgb(8 6 30 / .4) 220px 520px, rgb(8 6 30 / .08) 700px, transparent 900px); }
  .sc-cluster { justify-self: start; }
  .sc-split, .sc-split-phone { grid-template-columns: minmax(0, 1fr); }
  .sc-phone { justify-self: center; }
  .sc-live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-tile-marquee, .sc-tile-type { grid-column: 1 / -1; }
  .sc-tile-shapes, .sc-tile-clock { grid-column: span 1; }
  .sc-materials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-sample h3 { font-size: 28px; }
}

/* ── Phone ────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  :root { --sc-nav-h: 48px; }
  .sc-nav { gap: 8px; }
  .sc-nav-cta { display: none; }
  .sc-navbar { flex: 1; justify-content: space-between; padding-left: 12px; min-height: var(--sc-nav-h); }
  .sc-wordmark { margin-right: auto; }
  .sc-hero { padding-top: calc(var(--sc-nav-h) + 56px); min-height: 0; }
  .sc-hero h1 { font-size: clamp(48px, 13.5vw, 64px); }
  .sc-cluster { width: 100%; }
  .sc-live { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 280px; }
  .sc-tile-shapes, .sc-tile-clock { grid-column: 1 / -1; }
  .sc-live-capsule { height: 100px; }
  .sc-facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sc-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
  .sc-facts dd { text-align: right; }
  .sc-stage-optics { min-height: 520px; }
  .sc-optics-capsule { height: 100px; }
  .sc-materials { grid-template-columns: minmax(0, 1fr); padding: 28px 20px; }
  .sc-sample { max-width: 280px; aspect-ratio: auto; min-height: 200px; }
  .sc-controls { grid-template-columns: minmax(0, 1fr); padding: 24px 16px; }
  .sc-settings { grid-row: auto; }
  .sc-phone { width: min(100%, 390px); height: 720px; margin: 12px auto; }
  .sc-stage-poster { min-height: 520px; }
  #posterLens { left: 8%; top: 18%; }
  #posterPill { left: auto; right: 6%; top: 66%; width: 200px; height: 84px; }
  .sc-loupe-row { display: none; }
  .sc-points { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sc-points li { padding: 14px 0; }
  .sc-diag-cols { grid-template-columns: minmax(0, 1fr); }
  .sc-diag th:nth-child(2), .sc-diag td:nth-child(2) { display: none; }
  .sc-footer-bar { flex-wrap: nowrap; padding-left: 8px; }
  .sc-footer-bar .sc-wordmark { display: none; }
  .sc-footer-bar .glass-item { padding: 0 10px; }
  .sc-stage-droplets { gap: 40px; }
  .sc-drops { gap: 22px; }
}
@media (max-width: 420px) {
  .sc-wordmark-sub { display: none; }
}
