/* Orbit · Playground
   Cream page, pastel color blocks, chunky rounded shapes with a soft "lip"
   underneath, Geist 800 for display and Fredoka for the friendly accents.
   ---------------------------------------------------------------------- */

:root {
  --bg: #FFF8EF;
  --paper: #FFFFFF;
  --ink: #1D2220;
  --ink-2: rgba(29, 34, 32, 0.74);
  --ink-3: rgba(29, 34, 32, 0.68);
  --ink-4: rgba(29, 34, 32, 0.38);
  --line: rgba(29, 34, 32, 0.1);
  --line-2: rgba(29, 34, 32, 0.16);

  --butter: #FFE8A3;  --butter-2: #FFF2CC;  --butter-d: #F2B418;  --butter-t: #6E4E00;
  --mint: #C7EED7;    --mint-2: #E2F7EA;    --mint-d: #22A06B;    --mint-t: #0D6640;
  --sky: #D0E5FF;     --sky-2: #E7F1FF;     --sky-d: #3E86F4;     --sky-t: #174BA8;
  --lilac: #E3DBFF;   --lilac-2: #F0EBFF;   --lilac-d: #7C5CF5;   --lilac-t: #4A2DB8;
  --bubble: #FFD7E5;  --bubble-2: #FFE9F1;  --bubble-d: #EE5A8F;  --bubble-t: #9C1C4D;
  --peach: #FFDCC6;   --peach-2: #FFEEE3;   --peach-d: #FF7A45;   --peach-t: #9E3D0E;

  --green: #22A06B;
  --green-t: #0D6640;
  --zest: #FF6A3D;

  /* --fx: the Noto font of scripts Geist and Fredoka do not cover (set per
     language below; each page loads only its own). */
  --fx: ui-sans-serif;
  --font: "Geist", var(--fx), ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --round: "Fredoka", "Geist", var(--fx), ui-rounded, system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-soft: cubic-bezier(0.28, 1.32, 0.54, 1);

  --container: 1180px;
  --gutter: 24px;
  --slab-x: 16px;
  --r-slab: 48px;
  --r-card: 30px;
  --r-in: 22px;

  --lip: 0 4px 0 rgba(29, 34, 32, 0.08);
  --lift: 0 24px 44px -30px rgba(29, 34, 32, 0.42);

  color-scheme: light;
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
    --slab-x: 0px;
    --r-slab: 32px;
    --r-card: 26px;
  }
}

/* Scripts that need their own font, a looser line and no tracking (negative
   letter-spacing breaks Arabic joins and crowds CJK, Devanagari, Bengali). */
:root:lang(ja) { --fx: "Noto Sans JP"; }
:root:lang(zh) { --fx: "Noto Sans SC"; }
:root:lang(hi) { --fx: "Noto Sans Devanagari"; }
:root:lang(bn) { --fx: "Noto Sans Bengali"; }
:root:lang(ar) { --fx: "Noto Sans Arabic"; }
:root:lang(ur) { --fx: "Noto Sans Arabic"; }
:root:is(:lang(ja), :lang(zh), :lang(hi), :lang(bn), :lang(ar), :lang(ur)) * { letter-spacing: 0 !important; }
/* Japanese breaks between phrases, not inside words. */
:root:lang(ja) :is(h1, h2, h3, .lead, .sub, .ch-caption) { word-break: auto-phrase; overflow-wrap: anywhere; }

/* --- Base ------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 92px;
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.is-shot) { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Scrollbar. Desktop: thin and rounded, in the ink of the page, on a
   transparent track. The corner Orbit lives inside the content area
   (clientWidth), so the bar never sits on it. Phones and touch screens:
   no bar at all. Chromium and Safari draw the ::-webkit-scrollbar parts
   (they allow a rounded thumb); Firefox uses the standard properties. */
html::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
html::-webkit-scrollbar-track,
html::-webkit-scrollbar-corner { background: transparent; }
html::-webkit-scrollbar-thumb {
  border: 2.5px solid transparent;
  border-radius: 999px;
  background: rgba(29, 34, 32, 0.26) padding-box;
}
html::-webkit-scrollbar-thumb:hover { background-color: rgba(29, 34, 32, 0.44); }
html::-webkit-scrollbar-thumb:active { background-color: rgba(29, 34, 32, 0.56); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: rgba(29, 34, 32, 0.3) transparent; }
}
@media (pointer: coarse), (max-width: 760px) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { display: none; width: 0; height: 0; }
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
svg { display: block; }
kbd { font-family: var(--mono); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease-out), opacity 0.15s;
}
.skip:focus { opacity: 1; transform: none; }

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

/* --- Color helpers ------------------------------------------------------ */

.s-butter { --slab: var(--butter); }
.s-mint { --slab: var(--mint); }
.s-sky { --slab: var(--sky); }
.s-lilac { --slab: var(--lilac); }
.s-bubble { --slab: var(--bubble); }
.s-peach { --slab: var(--peach); }

.v-butter { --tint: var(--butter); --tint-2: var(--butter-2); --deep: var(--butter-d); --deep-t: var(--butter-t); }
.v-mint { --tint: var(--mint); --tint-2: var(--mint-2); --deep: var(--mint-d); --deep-t: var(--mint-t); }
.v-sky { --tint: var(--sky); --tint-2: var(--sky-2); --deep: var(--sky-d); --deep-t: var(--sky-t); }
.v-lilac { --tint: var(--lilac); --tint-2: var(--lilac-2); --deep: var(--lilac-d); --deep-t: var(--lilac-t); }
.v-bubble { --tint: var(--bubble); --tint-2: var(--bubble-2); --deep: var(--bubble-d); --deep-t: var(--bubble-t); }
.v-peach { --tint: var(--peach); --tint-2: var(--peach-2); --deep: var(--peach-d); --deep-t: var(--peach-t); }

.c-butter { --c: var(--butter); --c-d: var(--butter-t); }
.c-mint { --c: var(--mint); --c-d: var(--mint-t); }
.c-sky { --c: var(--sky); --c-d: var(--sky-t); }
.c-lilac { --c: var(--lilac); --c-d: var(--lilac-t); }
.c-bubble { --c: var(--bubble); --c-d: var(--bubble-t); }
.c-peach { --c: var(--peach); --c-d: var(--peach-t); }

/* --- Type ------------------------------------------------------------- */

.display {
  font-weight: 800;
  font-size: clamp(42px, 4.15vw, 62px);
  line-height: 1;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.display-2 {
  font-weight: 800;
  font-size: clamp(50px, 7.4vw, 108px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.h2 {
  font-weight: 800;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1;
  letter-spacing: -0.046em;
  text-wrap: balance;
}

.lead {
  max-width: 31em;
  font-size: clamp(16.5px, 1.32vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--ink-2);
  text-wrap: pretty;
}

.sub {
  max-width: 34em;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--ink-2);
  text-wrap: pretty;
}

.meta { font-size: 14px; color: var(--ink-3); letter-spacing: -0.005em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 0 rgba(29, 34, 32, 0.06);
  font: 600 15px/1 var(--round);
  letter-spacing: 0.005em;
  color: var(--ink);
  width: fit-content;
}
.eyebrow .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--eyebrow-dot, var(--zest));
}
.s-mint .eyebrow .dot { --eyebrow-dot: var(--mint-d); }
.s-lilac .eyebrow .dot { --eyebrow-dot: var(--lilac-d); }
.s-bubble .eyebrow .dot { --eyebrow-dot: var(--bubble-d); }
.features .eyebrow .dot { --eyebrow-dot: var(--sky-d); }
.pricing .eyebrow .dot { --eyebrow-dot: var(--peach-d); }

/* --- Buttons ---------------------------------------------------------- */

.btn {
  --lipc: #000;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  margin-bottom: 4px;
  padding: 0 24px;
  border-radius: 999px;
  font: 600 15.5px/1 var(--font);
  letter-spacing: -0.012em;
  white-space: nowrap;
  transform: translateY(0);
  box-shadow: 0 4px 0 var(--lipc), 0 14px 24px -14px rgba(29, 34, 32, 0.45);
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--spring), background-color 0.2s;
}
.btn .arr { width: 17px; height: 17px; flex: none; transition: transform 0.35s var(--spring); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--lipc), 0 18px 28px -14px rgba(29, 34, 32, 0.5); }
.btn:hover .arr { transform: translateX(3px); }
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--lipc), 0 4px 10px -6px rgba(29, 34, 32, 0.4);
  transition-duration: 0.08s;
}
.btn-sm { height: 42px; padding: 0 18px; font-size: 14.5px; gap: 8px; }
.btn-sm .arr { width: 15px; height: 15px; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 16.5px; }
.btn-block { width: 100%; height: 56px; }

.btn-ink { background: var(--ink); color: #fff; --lipc: #050606; }
.btn-ink:hover { background: #262c29; }
.btn-white { background: #fff; color: var(--ink); --lipc: rgba(29, 34, 32, 0.15); }
.btn-white:hover { background: #fff; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px 14px; }

/* --- Stickers, chips, dots -------------------------------------------- */

.sticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 15px 0 13px;
  border-radius: 999px;
  background: #fff;
  font: 600 14.5px/1 var(--round);
  color: var(--ink);
  white-space: nowrap;
  transform: rotate(-5deg);
  box-shadow: 0 3px 0 rgba(29, 34, 32, 0.1), 0 12px 22px -12px rgba(29, 34, 32, 0.45);
  pointer-events: none;
}

.live-dot {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: live 2s ease-out infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(34, 160, 107, 0.5); }
  100% { box-shadow: 0 0 0 8px rgba(34, 160, 107, 0); }
}

/* --- Nav -------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding-inline: 14px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  height: 60px;
  padding-block: 7px;
  padding-inline: 12px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 0 rgba(29, 34, 32, 0.06), 0 16px 36px -22px rgba(29, 34, 32, 0.4);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transition: box-shadow 0.4s var(--ease-out), background-color 0.4s;
}
.nav[data-scrolled="true"] .nav-pill {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 3px 0 rgba(29, 34, 32, 0.08), 0 20px 40px -20px rgba(29, 34, 32, 0.45);
}
.nav .btn { margin-bottom: 0; height: 44px; box-shadow: 0 3px 0 var(--lipc); }
.nav .btn:hover { box-shadow: 0 4px 0 var(--lipc); transform: translateY(-1px); }
.nav .btn:active { box-shadow: 0 0 0 var(--lipc); transform: translateY(3px); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding-inline-end: 6px;
  flex: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.04em;
}
.brand-mark { width: 34px; height: 34px; transition: transform 0.5s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }

.nav-links { display: flex; align-items: center; gap: 2px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--ink); background: var(--butter-2); }
.nav-links a[aria-current] { color: var(--ink); background: var(--butter); }

/* Language menu: a globe and the language code; the list shows every
   language by its own name. */
.lang { position: relative; flex: none; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding-inline: 10px 12px;
  border-radius: 999px;
  font: 600 13.5px/1 var(--round);
  letter-spacing: 0.02em;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.2s, color 0.2s;
}
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn svg { width: 18px; height: 18px; flex: none; }
.lang-btn:hover,
.lang[open] .lang-btn { background: var(--butter-2); color: var(--ink); }
.lang-menu {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-end: -10px;
  z-index: 2;
  display: grid;
  gap: 2px;
  width: 236px;
  max-height: min(72vh, 580px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(29, 34, 32, 0.06), 0 26px 50px -22px rgba(29, 34, 32, 0.5);
  transform-origin: 90% 0;
}
[dir="rtl"] .lang-menu { transform-origin: 10% 0; }
.lang[open] .lang-menu { animation: langIn 0.32s var(--spring-soft) both; }
@keyframes langIn { from { opacity: 0; transform: translateY(-6px) scale(0.96); } }
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: start;
}
.lang-menu a:hover { background: var(--butter-2); color: var(--ink); }
.lang-menu a[aria-current] { background: var(--butter); color: var(--ink); font-weight: 600; }
.lang-menu a[aria-current]::after { content: "✓"; font-weight: 700; color: var(--butter-t); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-pill { width: 100%; justify-content: space-between; }
  .lang { margin-inline-start: auto; }
}

/* --- Slabs (one pastel block per section) ------------------------------ */

.slab {
  position: relative;
  margin: 16px var(--slab-x) 0;
  border-radius: var(--r-slab);
  background: var(--slab);
  padding-block: 112px;
}
.slab-deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.blob { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.42); }
.confetti { position: absolute; width: 16px; height: 16px; border-radius: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .confetti { animation: bob 7s var(--ease-io) infinite alternate; }
}
@keyframes bob {
  from { transform: translateY(0) rotate(var(--r, 0deg)); }
  to { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 28deg)); }
}

/* --- Engine stages ---------------------------------------------------- */

/* Panels drawn on Orbit's skin use the site's type. */
.o-stage { --o-sans: "Geist", var(--fx), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }

.fit { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.fit > .stage { position: absolute; right: 0; bottom: 0; transform-origin: 100% 100%; }

/* --- Hero ------------------------------------------------------------- */

.hero { margin-top: 12px; padding: 124px 0 52px; }
.hero .container { --container: 1280px; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 492px) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-copy .display { max-width: 9.6em; }
.hero-copy .cta-row { margin-top: 8px; }
.hero-copy .meta { margin-top: -6px; }

.hl { position: relative; display: inline; white-space: nowrap; }
.squiggle {
  position: absolute;
  left: -0.02em;
  bottom: -0.17em;
  /* An SVG keeps its own width when absolutely positioned: give it the
     highlighted word's width explicitly (any language, any length). */
  width: calc(100% - 0.1em);
  height: 0.24em;
  color: var(--zest);
  overflow: visible;
  pointer-events: none;
}
.js .squiggle use { stroke-dasharray: 160; stroke-dashoffset: 160; }
.squiggle.is-drawn use { animation: draw 1.1s var(--ease-out) 0.35s forwards; }
[dir="rtl"] .squiggle { transform: scaleX(-1); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero .blob.b1 { width: 620px; height: 620px; left: -180px; top: -260px; }
.hero .blob.b2 { width: 420px; height: 420px; right: -120px; bottom: -220px; background: rgba(255, 255, 255, 0.3); }
.confetti.c1 { display: none; }
.confetti.c2 { left: 41%; top: 17%; width: 12px; height: 12px; border-radius: 50%; background: var(--sky-d); animation-delay: -2s; }
.confetti.c3 { right: 4%; top: 15%; background: var(--bubble-d); border-radius: 50%; animation-delay: -4s; }
.confetti.c4 { left: 38%; bottom: 8%; width: 13px; height: 13px; background: var(--mint-d); --r: -18deg; animation-delay: -1s; }
.confetti.c5 { right: 47%; top: 6%; width: 10px; height: 10px; background: var(--lilac-d); border-radius: 50%; animation-delay: -3s; }

.hero-demo { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.sticker-live { position: absolute; z-index: 5; left: -14px; top: -16px; }

.screen {
  position: relative;
  padding: 9px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 6px 0 rgba(29, 34, 32, 0.08), 0 40px 70px -44px rgba(29, 34, 32, 0.55);
}
.screen-fit {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 760 / 600;
  background: #F6F2FF;
}
/* The phone scene in main.js is 400 x 560 below the same breakpoint. */
@media (max-width: 760px) { .screen-fit { aspect-ratio: 400 / 560; } }
.screen .stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.screen .o-content,
.screen .o-hit { pointer-events: none !important; }

.chapters { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.ch-play {
  flex: none;
  width: 44px;
  height: 44px;
  margin-bottom: 3px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 0 rgba(29, 34, 32, 0.12);
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--spring);
}
.ch-play:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(29, 34, 32, 0.12); }
.ch-play:active { transform: translateY(3px); box-shadow: 0 0 0 rgba(29, 34, 32, 0.12); }
.ch-play svg { width: 15px; height: 15px; grid-area: 1 / 1; transition: opacity 0.2s, transform 0.35s var(--spring); }
.ch-play .i-play { opacity: 0; transform: scale(0.5); }
.ch-play[data-playing="false"] .i-play { opacity: 1; transform: none; }
.ch-play[data-playing="false"] .i-pause { opacity: 0; transform: scale(0.5); }

.ch-list { display: flex; gap: 6px; min-width: 0; }
.ch {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin-bottom: 3px;
  padding: 0 14px 0 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font: 600 13.5px/1 var(--font);
  letter-spacing: -0.01em;
  color: var(--ink-2);
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(29, 34, 32, 0.06);
  transition: background-color 0.25s, color 0.2s, transform 0.35s var(--spring), box-shadow 0.35s var(--spring);
}
.ch:hover { transform: translateY(-2px); color: var(--ink); }
.ch[aria-current="step"] { background: #fff; color: var(--ink); box-shadow: 0 3px 0 rgba(29, 34, 32, 0.12); }
/* When the names don't fit on one row (main.js measures it, for any width
   and language), the chips show their numbers and the caption names them. */
.chapters.is-compact .ch { width: 62px; padding: 0; gap: 0; justify-content: center; }
.chapters.is-compact .ch-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ch-n {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c);
  color: var(--c-d);
  font: 700 14px/1 var(--round);
}
.ch-t { position: relative; }
.ch-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--c);
  opacity: 0.55;
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.ch[aria-current="step"] .ch-fill {
  animation: chfill var(--dur, 6s) linear both;
  animation-play-state: var(--run, running);
}
@keyframes chfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.ch-caption {
  min-height: 3em;
  padding-inline: 8px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  text-align: center;
  text-wrap: balance;
}
.cap-t { font-weight: 700; color: var(--ink); }

/* --- Hero desktop scene (inside the engine stage, design pixels) ------- */

.desk {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(48% 46% at 14% 18%, #FFE2EE 0%, rgba(255, 226, 238, 0) 72%),
    radial-gradient(46% 50% at 88% 12%, #D9EAFF 0%, rgba(217, 234, 255, 0) 72%),
    radial-gradient(60% 55% at 70% 96%, #E4DBFF 0%, rgba(228, 219, 255, 0) 72%),
    radial-gradient(40% 40% at 10% 92%, #DFF6E8 0%, rgba(223, 246, 232, 0) 72%),
    #F6F2FF;
}
.desk-shape { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
.desk-shape.s1 { width: 280px; height: 280px; left: -70px; top: 260px; }
.desk-shape.s2 { width: 160px; height: 160px; right: 120px; top: 40px; border-radius: 42px; transform: rotate(18deg); background: rgba(255, 255, 255, 0.34); }

.menubar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  font-size: 12.5px;
  letter-spacing: -0.005em;
  color: rgba(29, 34, 32, 0.78);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 -1px 0 rgba(29, 34, 32, 0.06);
}
.menubar b { font-weight: 700; color: var(--ink); }
.mb-app { width: 13px; height: 13px; border-radius: 4px; background: var(--ink); }
.mb-r { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.mb-r i { width: 15px; height: 9px; border-radius: 3px; box-shadow: inset 0 0 0 1.4px rgba(29, 34, 32, 0.6); }

.win {
  position: absolute;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(29, 34, 32, 0.05), 0 30px 60px -34px rgba(52, 40, 120, 0.45);
}
.win-bar {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  border-bottom: 1px solid rgba(29, 34, 32, 0.06);
}
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF8F87; }
.win-bar i:nth-child(2) { background: #FFD25E; }
.win-bar i:nth-child(3) { background: #6FD49A; }
.win-bar span { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; }

.doc { padding: 26px 32px; }
.doc h4 { font-size: 28px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.1; }
.doc-meta { margin-top: 7px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.doc-meta i { display: inline-block; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--butter); color: var(--butter-t); font: 600 11.5px/20px var(--round); font-style: normal; }
.doc-lines i { display: block; height: 9px; margin-top: 14px; border-radius: 5px; background: rgba(29, 34, 32, 0.07); }
.doc-lines.first { margin-top: 22px; }
.doc-h { margin-top: 26px; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.doc-typed { margin-top: 10px; font-size: 15px; line-height: 1.6; min-height: 1.6em; }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -0.2em; background: var(--ink); animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.win-term { background: #23263A; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12), 0 30px 60px -30px rgba(35, 38, 58, 0.6); }
.win-term .win-bar { color: rgba(232, 234, 255, 0.66); border-bottom-color: rgba(255, 255, 255, 0.06); }
.term { padding: 14px 18px; font: 12.5px/1.95 var(--mono); color: #ECEEFF; }
.term p { white-space: nowrap; }
.term .dim { color: rgba(236, 238, 255, 0.64); }
.term .work::before { content: "✻ "; display: inline-block; animation: spin 2.4s linear infinite; transform-origin: 45% 55%; color: #FFB38F; }
.term .ok { color: #8FE3B4; }
@keyframes spin { to { transform: rotate(360deg); } }

.dock {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 7px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 14px 30px -16px rgba(52, 40, 120, 0.45);
}
.dock span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--c);
  color: var(--c-d);
  box-shadow: inset 0 -2px 0 rgba(29, 34, 32, 0.08);
}
.dock svg { width: 20px; height: 20px; }

.dkeys {
  position: absolute;
  z-index: 30;
  left: 26px;
  bottom: 22px;
  display: flex;
  gap: 9px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease-out), transform 0.45s var(--spring);
  pointer-events: none;
}
.dkeys.is-on { opacity: 1; transform: none; }
.dkey {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  min-width: 62px;
  height: 62px;
  padding: 9px 11px;
  border-radius: 15px;
  background: #fff;
  font: 600 12px/1 var(--font);
  color: var(--ink-2);
  box-shadow: 0 0 0 1px rgba(29, 34, 32, 0.08), 0 5px 0 rgba(29, 34, 32, 0.14), 0 16px 26px -14px rgba(29, 34, 32, 0.5);
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, color 0.12s, background-color 0.12s;
}
.dkey.is-show { display: flex; }
.dkey .kg { font-size: 19px; color: var(--ink); }
.dkey-num { align-items: center; justify-content: center; font: 700 26px/1 var(--round); color: var(--ink); }
.dkey-space { width: 150px; justify-content: flex-end; }
.dkey.is-down {
  transform: translateY(5px);
  background: var(--mint-2);
  color: var(--green-t);
  box-shadow: 0 0 0 1px rgba(34, 160, 107, 0.4), 0 0 0 rgba(29, 34, 32, 0.14), 0 6px 12px -8px rgba(29, 34, 32, 0.4);
}
.dkey.is-down .kg { color: var(--green-t); }
.hero-m .dkeys { left: auto; right: 16px; top: 44px; bottom: auto; }
.hero-m .dkey-space { width: 150px; }

.dbubble {
  position: absolute;
  z-index: 30;
  right: 96px;
  bottom: 50px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 6px;
  max-width: 340px;
  padding: 12px 18px 12px 14px;
  border-radius: 22px 22px 6px 22px;
  background: #fff;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 0 rgba(29, 34, 32, 0.07), 0 20px 36px -20px rgba(29, 34, 32, 0.5);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transform-origin: 100% 100%;
  transition: opacity 0.2s var(--ease-out), transform 0.5s var(--spring);
  pointer-events: none;
}
.dbubble.is-on { opacity: 1; transform: none; }
.dbubble .rec { width: 9px; height: 9px; margin-right: 4px; border-radius: 50%; background: var(--bubble-d); animation: live 1.6s ease-out infinite; }
.dbubble .w { opacity: 0.14; transition: opacity 0.18s; }
.dbubble .w.is-on { opacity: 1; }
.hero-m .dbubble { right: 80px; bottom: 92px; max-width: 250px; font-size: 15px; }

/* Sparkle burst when the count reaches ✓ */
.dsparks { position: absolute; z-index: 30; right: 18px; bottom: 72px; width: 0; height: 0; pointer-events: none; }
.dsparks i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; opacity: 0; color: var(--sc, var(--butter-d)); }
.dsparks i svg { width: 100%; height: 100%; }
.dsparks.go i { animation: spark 1s var(--ease-out) both; animation-delay: calc(var(--k) * 35ms); }
@keyframes spark {
  0% { opacity: 0; transform: translate(0, 0) scale(0.2) rotate(0deg); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(var(--s, 1)) rotate(80deg); }
}

/* --- Panels drawn on Orbit's skin -------------------------------------- */

.pg-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 14px;
  font: 500 12px/1 var(--mono);
  color: var(--o-muted);
}
.pg-src { display: inline-flex; align-items: center; gap: 8px; }
.pg-src .o-app { width: 15px; height: 15px; }
.pg-n b { color: var(--o-text); font-weight: 500; }

.pg-opts { display: grid; gap: 7px; margin-top: 14px; }
.pg-opt {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 42px;
  padding: 8px 14px 8px 8px;
  border-radius: 14px;
  background: var(--o-raised);
  text-align: left;
  font-size: 14px !important;
  line-height: 1.35;
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.pg-opt:hover,
.pg-opt.is-hover { background: var(--o-raised-hi); }
.pg-opt kbd {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--o-chip, #3b423d);
  font: 600 12.5px/1 var(--mono);
  color: var(--o-text);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  transition: background-color 0.12s, color 0.12s, transform 0.1s;
}
.pg-opt.is-picked { box-shadow: inset 0 0 0 1.5px #9fd8b6; transform: scale(0.985); }
.pg-opt.is-picked kbd { background: var(--o-green); color: #fff; transform: translateY(1px); }
.pg-opt.is-sent { background: #dff3e6 !important; color: #14532d !important; }
.pg-opt.is-sent kbd { background: var(--o-green); color: #fff; }
.pg-opt .pg-okmark { margin-left: auto; width: 15px; height: 15px; flex: none; }
.pg-opts.is-done .pg-opt:not(.is-sent) { opacity: 0.4; }

.pg-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.pg-hint { font-size: 12.5px; color: var(--o-muted); }

.pg-vchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 9px 0 11px;
  border-radius: 17px;
  background: var(--o-raised);
  color: var(--o-muted);
  font-size: 12.5px;
}
.pg-vchip svg { width: 14px; height: 14px; }
.pg-vchip kbd {
  padding: 5px 6px;
  border-radius: 7px;
  background: var(--o-chip, #3b423d);
  color: var(--o-text);
  font: 500 11px/1 var(--mono);
  transition: background-color 0.12s, color 0.12s;
}
.pg-vchip.is-down kbd { background: var(--o-green); color: #fff; }

.pg-said { display: flex; align-items: flex-start; gap: 9px; color: var(--o-muted); font-size: 14px; line-height: 1.45; }
.pg-said svg { width: 15px; height: 15px; margin-top: 2px; flex: none; }
.pg-tag { margin: 12px 0 9px; font: 500 12px/1 var(--mono); letter-spacing: 0.01em; color: var(--o-ok, #a9dcbf); }
.pg-draft { padding: 13px 15px; border-radius: 15px; background: var(--o-raised); font-size: 14.5px; line-height: 1.55; }

.o-btn .pg-k,
.pg-k {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(22, 25, 23, 0.1);
  font: 500 12px/1 var(--mono);
  vertical-align: 1px;
}
.o-btn.is-done { background: #dff3e6 !important; color: #14532d !important; }
.o-btn .pg-ok { display: inline-block; width: 14px; height: 14px; margin-left: 7px; vertical-align: -2px; }

/* Preview from a coding agent */
.pg-pv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pg-pv-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.pg-pv-by { display: inline-flex; align-items: center; gap: 7px; font: 12px/1 var(--mono); color: var(--o-muted); }
.pg-pv-by svg { width: 14px; height: 14px; }

.pg-seg {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin: 13px 0 11px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.pg-seg button {
  position: relative;
  z-index: 1;
  height: 30px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 13px !important;
  font-weight: 600;
  color: var(--o-muted) !important;
  transition: color 0.2s;
}
.pg-seg button[aria-selected="true"] { color: #151816 !important; }
.pg-seg .seg-ind { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 999px; background: #fbfcf8; box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.4); }

.pg-pv-stage {
  position: relative;
  height: 286px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.pg-pv-stage .o-dev {
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 0;
  transform: translate(-50%, -46%) scale(calc(var(--k, 1) * 0.96));
  transition: opacity 0.28s var(--ease-out), transform 0.5s var(--ease-out);
}
.pg-pv-stage .o-dev.is-on { opacity: 1; transform: translate(-50%, -50%) scale(var(--k, 1)); }
.pg-pv-stage .o-dev-laptop { --k: 0.92; }
.pg-pv-stage .o-dev-laptop.is-on { transform: translate(-50%, -53%) scale(var(--k, 1)); }
.hero-m .pg-pv-stage { height: 214px; }
.hero-m .pg-pv-stage .o-dev-laptop { --k: 0.62; }
.hero-m .pg-pv-stage .o-dev-tablet { --k: 0.78; }
.hero-m .pg-pv-stage .o-dev-phone { --k: 0.84; }
.pg-pv-stage .o-dev.is-refresh .o-screen { animation: refresh 0.9s var(--ease-out); }
@keyframes refresh { 0% { filter: none; } 30% { filter: blur(3px) brightness(1.06); opacity: 0.6; } 100% { filter: none; opacity: 1; } }

.pg-fb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  padding: 5px 5px 5px 15px;
  border-radius: 24px;
  border: 1.5px solid var(--o-line);
  transition: border-color 0.15s;
}
.pg-fb.is-focus { border-color: #9fd8b6; }
.pg-in { flex: 1; min-width: 0; min-height: 21px; font-size: 14px; line-height: 21px; white-space: nowrap; overflow: hidden; }
.pg-in:empty::before { content: attr(data-ph); color: var(--o-muted); }
.pg-in.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: var(--o-text); animation: caret 1s steps(1) infinite; }
.pg-fb .o-send { width: 32px; height: 32px; }
.pg-fb .o-send svg { width: 15px; height: 15px; }
.pg-fb-ok { margin-top: 9px; font-size: 13px; color: var(--o-ok, #b7d8bd); }
.pg-fb-ok[hidden] { display: none; }
.pg-pv-act { margin-top: 13px; }
.pg-pv-act .pg-n2 { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--o-muted); }
.pg-pv-act .pg-n2 b { color: var(--o-text); font-weight: 500; }
.hero-m .o-content .o-btn { height: 40px; padding: 0 20px; font-size: 14.5px !important; }

/* Compact panels for the feature tiles */
.o-content[data-variant^="pgMini"] { padding: 15px 15px 14px; font-size: 13px; line-height: 1.45; }
.o-content[data-variant^="pgMini"] .o-avatar { width: 34px; height: 34px; }
.o-content[data-variant^="pgMini"] .o-msg-head { gap: 10px; }
.o-content[data-variant^="pgMini"] .o-msg-name { font-size: 13.5px; gap: 7px; }
.o-content[data-variant^="pgMini"] .o-app { width: 13px; height: 13px; }
.o-content[data-variant^="pgMini"] .o-msg-text { font-size: 13px; line-height: 1.4; margin-top: 1px; }
.o-content[data-variant^="pgMini"] .pg-opts { gap: 6px; margin-top: 11px; }
.o-content[data-variant^="pgMini"] .pg-opt { min-height: 36px; padding: 6px 11px 6px 6px; gap: 9px; border-radius: 12px; font-size: 12.5px !important; }
.o-content[data-variant^="pgMini"] .pg-opt kbd { width: 23px; height: 23px; font-size: 11.5px; border-radius: 7px; }
.o-content[data-variant^="pgMini"] .o-actions { margin-top: 11px; gap: 8px; }
.o-content[data-variant^="pgMini"] .o-btn { height: 34px; padding: 0 16px; border-radius: 17px; font-size: 13px !important; }
.o-content[data-variant^="pgMini"] .pg-k { min-width: 18px; height: 18px; margin-left: 6px; font-size: 10.5px; }
.o-content[data-variant^="pgMini"] .pg-said { font-size: 12.5px; gap: 7px; }
.o-content[data-variant^="pgMini"] .pg-said svg { width: 13px; height: 13px; }
.o-content[data-variant^="pgMini"] .pg-tag { margin: 9px 0 7px; font-size: 10.5px; }
.o-content[data-variant^="pgMini"] .pg-draft { padding: 10px 11px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; }
.o-content[data-variant^="pgMini"] .pg-seg { display: grid; margin: 0 0 9px; }
.o-content[data-variant^="pgMini"] .pg-seg button { height: 26px; padding: 0 8px; font-size: 11.5px !important; }
.o-content[data-variant^="pgMini"] .pg-pv-stage { height: 120px; border-radius: 12px; }
.o-content[data-variant^="pgMini"] .pg-fb { margin-top: 9px; padding: 3px 3px 3px 11px; border-radius: 18px; }
.o-content[data-variant^="pgMini"] .pg-fb input { flex: 1; min-width: 0; height: 26px; border: 0; outline: 0; background: transparent; color: var(--o-text); font: inherit; font-size: 12px; }
.o-content[data-variant^="pgMini"] .pg-fb input::placeholder { color: var(--o-muted); }
.o-content[data-variant^="pgMini"] .pg-fb.is-sent { border-color: rgba(50, 173, 112, 0.7); }
.o-content[data-variant^="pgMini"] .pg-fb.is-sent input::placeholder { color: var(--o-ok, #b7d8bd); }
.o-content[data-variant^="pgMini"] .pg-fb .o-send { width: 26px; height: 26px; }
.o-content[data-variant^="pgMini"] .pg-fb .o-send svg { width: 13px; height: 13px; }
.o-content[data-variant^="pgMini"] .pg-pv-act { margin-top: 9px; }
.o-content[data-variant^="pgMini"] .pg-pv-act .o-btn { width: 100%; }
.pg-pv-stage.is-mini .o-dev-laptop { --k: 0.36; }
.pg-pv-stage.is-mini .o-dev-tablet { --k: 0.4; }
.pg-pv-stage.is-mini .o-dev-phone { --k: 0.43; }
.pg-pv-stage.is-mini .o-dev-laptop.is-on { transform: translate(-50%, -52%) scale(var(--k)); }

/* --- Sections --------------------------------------------------------- */

.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.sec-head.center { align-items: center; text-align: center; }
.sec-head.center .sub { margin-inline: auto; text-wrap: balance; }

/* Peeking Orbits: the stage floor sits on an edge, the rest hides behind it. */
.peek {
  position: absolute;
  z-index: 4;
  width: var(--pw, 150px);
  height: var(--ph, 130px);
  overflow: hidden;
  pointer-events: none;
}
.peek > .stage { position: absolute; bottom: 0; transform-origin: 100% 100%; }
.peek > .stage.o-stage { overflow: visible; }
.peek-hit { position: absolute; pointer-events: auto; cursor: pointer; border-radius: 50% 50% 0 0; }
.peek-step { --ps: 0.86; right: 12px; bottom: 100%; }
.peek-tile { --ps: 0.9; right: 22px; bottom: 100%; }
.peek-plan { --ps: 1; right: 24px; bottom: 100%; }
.peek-ask { --ps: 0.84; right: 16px; bottom: 100%; }

/* How it works */
.how { margin-top: 16px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 64px;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: var(--lip), var(--lift);
}
.step-num {
  position: absolute;
  z-index: 5;
  left: -10px;
  top: -16px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--n);
  color: var(--ink);
  font: 700 27px/1 var(--round);
  transform: rotate(-8deg);
  box-shadow: 0 0 0 5px #fff, 0 4px 0 5px rgba(29, 34, 32, 0.08);
}
.n-butter { --n: #FFD95E; }
.n-sky { --n: #9CC8FF; }
.n-bubble { --n: #FFA9C8; }
.step-vis {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-radius: var(--r-in);
  background:
    radial-gradient(70% 80% at 20% 10%, var(--tint-2) 0%, transparent 70%),
    var(--tint);
  isolation: isolate;
}
.step-body { padding: 20px 14px 14px; }
.step h3 { font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; }
.step p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

/* Step 1: a little window; Orbit drops into its corner */
.mini-win {
  position: absolute;
  left: 22px;
  top: 26px;
  right: -6px;
  bottom: -6px;
  border-radius: 16px 0 0 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 3px 0 rgba(29, 34, 32, 0.05), 0 20px 40px -26px rgba(29, 34, 32, 0.4);
}
.mw-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(29, 34, 32, 0.06); }
.mw-bar i { width: 9px; height: 9px; border-radius: 50%; background: #FF8F87; }
.mw-bar i:nth-child(2) { background: #FFD25E; }
.mw-bar i:nth-child(3) { background: #6FD49A; }
.mw-lines { padding: 16px 18px; }
.mw-lines i { display: block; height: 8px; margin-bottom: 11px; border-radius: 4px; background: rgba(29, 34, 32, 0.07); }
.mw-lines i:nth-child(1) { width: 48%; height: 12px; background: rgba(29, 34, 32, 0.13); }
.mw-lines i:nth-child(2) { width: 76%; }
.mw-lines i:nth-child(3) { width: 64%; }
.mw-lines i:nth-child(4) { width: 40%; }
.mw-home {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 92px;
  height: 72px;
  border-radius: 24px 24px 18px 24px;
  border: 2.5px dashed rgba(29, 34, 32, 0.22);
  transition: opacity 0.4s, transform 0.5s var(--spring);
}
.step-vis.is-home .mw-home { opacity: 0; transform: scale(0.8); }

/* Step 2: apps plug in one by one */
.plugs { position: absolute; left: 16px; top: 16px; z-index: 2; display: grid; gap: 7px; width: 182px; }
.plugs li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 8px 0 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 0 rgba(29, 34, 32, 0.05);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.45s var(--spring);
}
.plugs li.on { transform: translateX(4px); }
.plug-ic { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; background: var(--c); color: var(--c-d); }
.plug-ic svg { width: 14px; height: 14px; }
.plugs .sw {
  position: relative;
  margin-left: auto;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: rgba(29, 34, 32, 0.14);
  transition: background-color 0.25s;
}
.plugs .sw::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.45s var(--spring);
}
.plugs li.on .sw { background: var(--green); }
.plugs li.on .sw::after { transform: translateX(12px); }

/* Step 3: the list clears */
.todo { position: absolute; left: 18px; top: 20px; z-index: 2; display: grid; gap: 9px; width: 190px; }
.todo li {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px 0 8px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 0 rgba(29, 34, 32, 0.05);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 0.35s, transform 0.45s var(--spring);
}
.todo .tick {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(29, 34, 32, 0.16);
  color: #fff;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.45s var(--spring);
}
.todo .tick svg { width: 13px; height: 13px; opacity: 0; transform: scale(0.4); transition: opacity 0.15s, transform 0.4s var(--spring); }
.todo li.done { opacity: 0.6; transform: scale(0.97); }
.todo li.done span { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(29, 34, 32, 0.35); }
.todo li.done .tick { background: var(--green); box-shadow: none; transform: scale(1.08); }
.todo li.done .tick svg { opacity: 1; transform: none; }

/* --- Features (bento) -------------------------------------------------- */

.features { padding-block: 128px 112px; }
.features .sec-head .h2 { max-width: 9em; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 64px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: var(--lip), var(--lift);
}
.tile-a { grid-column: span 7; }
.tile-b { grid-column: span 5; }
.tile-c { grid-column: span 5; }
.tile-d { grid-column: span 7; }
.tile-e { grid-column: span 6; }
.tile-f { grid-column: span 6; }
.tile-vis {
  position: relative;
  height: 352px;
  overflow: hidden;
  border-radius: var(--r-in);
  background:
    radial-gradient(80% 90% at 15% 0%, var(--tint-2) 0%, transparent 70%),
    var(--tint);
  isolation: isolate;
}
.tile-c .tile-vis,
.tile-d .tile-vis { height: 404px; }
.tile-e .tile-vis,
.tile-f .tile-vis { height: 320px; }
.tile-body { padding: 20px 14px 14px; }
.tile h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.tile-body p { max-width: 36em; margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.ticon {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--tint);
  color: var(--deep-t);
}
.ticon svg { width: 17px; height: 17px; }

.hint {
  position: absolute;
  left: 14px;
  bottom: 13px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font: 600 12.5px/1 var(--round);
  letter-spacing: 0.01em;
  color: var(--deep-t);
  pointer-events: none;
}

/* A. Only what needs you */
.board { position: absolute; left: 18px; top: 47%; right: 140px; z-index: 2; transform: translateY(-50%); display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); gap: 14px; }
.board-col { display: grid; align-content: start; gap: 7px; }
.col-label { display: inline-flex; align-items: center; gap: 7px; margin: 2px 0 3px 2px; font: 600 13px/1 var(--round); color: var(--deep-t); }
.col-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(29, 34, 32, 0.25); }
.col-dot.hot { background: var(--zest); box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.2); }
.handled li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ink-3);
}
.handled li svg { width: 15px; height: 15px; flex: none; }
.handled li span { min-width: 0; }
.handled em {
  margin-left: auto;
  flex: none;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font: 600 10.5px/1 var(--round);
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--green-t);
}
.need {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 8px 38px 8px 11px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(29, 34, 32, 0.08);
  text-align: left;
  font-size: 12.5px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  transition: transform 0.4s var(--spring), opacity 0.3s, box-shadow 0.3s var(--spring);
}
.need:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(29, 34, 32, 0.08); }
.need:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(29, 34, 32, 0.08); transition-duration: 0.08s; }
.need > svg { width: 16px; height: 16px; flex: none; color: var(--deep-t); }
.need b { display: block; font-weight: 700; color: var(--ink); }
.need span { color: var(--ink-2); }
.need-tick {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(29, 34, 32, 0.14);
  color: #fff;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.45s var(--spring);
}
.need-tick svg { width: 12px; height: 12px; opacity: 0; transform: scale(0.4); transition: opacity 0.15s, transform 0.4s var(--spring); }
.need.is-done { opacity: 0.55; box-shadow: 0 1px 0 rgba(29, 34, 32, 0.06); transform: none; }
.need.is-done span { text-decoration: line-through; text-decoration-color: rgba(29, 34, 32, 0.35); }
.need.is-done .need-tick { background: var(--green); box-shadow: none; transform: scale(1.1); }
.need.is-done .need-tick svg { opacity: 1; transform: none; }

/* C. Hold to talk */
.talk {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 12px 0 7px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(29, 34, 32, 0.1);
  font-size: 14px;
  font-weight: 600;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--spring);
}
.talk:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(29, 34, 32, 0.1); }
.talk-mic {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: background-color 0.2s, transform 0.4s var(--spring);
}
.talk-mic svg { width: 16px; height: 16px; }
.talk kbd {
  padding: 5px 7px;
  border-radius: 7px;
  background: var(--bubble-2);
  box-shadow: inset 0 -2px 0 rgba(29, 34, 32, 0.1);
  font: 500 11.5px/1 var(--mono);
  color: var(--ink-2);
  transition: background-color 0.12s, color 0.12s;
}
.talk.is-down { transform: translateY(4px); box-shadow: 0 0 0 rgba(29, 34, 32, 0.1); transition-duration: 0.08s; }
.talk.is-down .talk-mic { background: var(--bubble-d); transform: scale(1.08); }
.talk.is-down kbd { background: var(--bubble-d); color: #fff; box-shadow: none; }
.vbubble {
  position: absolute;
  right: 92px;
  bottom: 54px;
  z-index: 4;
  max-width: 190px;
  padding: 10px 13px;
  border-radius: 18px 18px 5px 18px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 3px 0 rgba(29, 34, 32, 0.07), 0 14px 26px -16px rgba(29, 34, 32, 0.5);
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transform-origin: 100% 100%;
  transition: opacity 0.2s var(--ease-out), transform 0.5s var(--spring);
  pointer-events: none;
}
.vbubble.is-on { opacity: 1; transform: none; }
.vbubble .w { opacity: 0.16; transition: opacity 0.15s; }
.vbubble .w.is-on { opacity: 1; }

/* D. A terminal next to the preview */
.term-card {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 0;
  width: 290px;
  overflow: hidden;
  border-radius: 16px;
  background: #23263A;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1), 0 24px 40px -26px rgba(35, 38, 58, 0.7);
}
.tc-bar {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(232, 234, 255, 0.66);
}
.tc-bar i { width: 9px; height: 9px; border-radius: 50%; background: #FF8F87; }
.tc-bar i:nth-child(2) { background: #FFD25E; }
.tc-bar i:nth-child(3) { background: #6FD49A; }
.tc-bar span { position: absolute; left: 0; right: 0; text-align: center; }
.tc-body { padding: 12px 14px 14px; font: 12px/1.95 var(--mono); color: #ECEEFF; }
.tc-body p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-body .dim { color: rgba(236, 238, 255, 0.64); }
.tc-body .ok { color: #8FE3B4; }

/* E. Keys */
.keys {
  position: absolute;
  inset: 0 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 120px 16px 16px;
}
/* Orbit's stage covers the card: the keys under it must still take the clicks. */
.tile-e .fit { pointer-events: none; }
.key-row { display: flex; gap: 9px; }
.key-gap { width: 18px; }
.kc {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-width: 52px;
  height: 52px;
  padding: 7px 10px;
  border-radius: 14px;
  background: #fff;
  font: 600 12px/1 var(--font);
  color: var(--ink-2);
  box-shadow: 0 0 0 1px rgba(29, 34, 32, 0.08), 0 5px 0 rgba(29, 34, 32, 0.13), 0 14px 22px -14px rgba(29, 34, 32, 0.5);
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, color 0.15s, background-color 0.15s;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  cursor: pointer;
}
.kc:focus-visible { outline: 2px solid var(--green-t); outline-offset: 3px; }
.kc[data-k="1"],
.kc[data-k="2"],
.kc[data-k="3"] { align-items: center; justify-content: center; font: 700 20px/1 var(--round); color: var(--ink); }
.kc small { display: block; margin-bottom: auto; font-size: 15px; color: var(--ink); }
.kc-w { min-width: 74px; justify-content: space-between; }
.kc[data-k="Escape"] { justify-content: center; }
.kc[data-k="Escape"] small { margin: 0; font-size: 13px; }
.kc-space { width: 128px; }
.kc.is-down {
  transform: translateY(5px);
  background: var(--mint-2);
  color: var(--green-t);
  box-shadow: 0 0 0 1px rgba(34, 160, 107, 0.4), 0 0 0 rgba(29, 34, 32, 0.13), 0 6px 12px -8px rgba(29, 34, 32, 0.4);
}
.kc.is-down small { color: var(--green-t); }
.key-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 12px; }
.key-legend span {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font: 600 12.5px/1 var(--round);
  color: var(--ink-3);
  transition: background-color 0.15s, color 0.15s, transform 0.4s var(--spring);
}
.key-legend span.is-on { background: var(--green); color: #fff; transform: translateY(-2px) scale(1.05); }

/* F. Your way */
.spin-copy { position: absolute; left: 22px; top: 22px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.spin-label { font: 600 13.5px/1 var(--round); color: var(--deep-t); }
.spin-name {
  min-height: 1.1em;
  font: 700 clamp(34px, 3.6vw, 46px)/1.08 var(--round);
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: transform 0.5s var(--spring), opacity 0.2s;
}
.spin-name.is-swap { opacity: 0; transform: translateY(8px) scale(0.92); transition-duration: 0.12s; }
.spin-copy .btn { margin-top: 14px; }
.tile-f .fit .stage { cursor: pointer; }

/* Perks under the bento */
.perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.perk {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 20px 20px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1.5px rgba(29, 34, 32, 0.06);
}
.perk-ic {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--c);
  color: var(--c-d);
}
.perk-ic svg { width: 20px; height: 20px; }
.perk h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em; }
.perk p { margin-top: 3px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.perk .try { display: block; margin-top: 4px; font: 600 13.5px/1.4 var(--round); color: var(--sky-t); }
.perk .try[hidden] { display: none; }

/* --- Looks (the closet) ------------------------------------------------ */

.looks { padding-block: 112px 88px; }
.looks .confetti.c6 { left: 6%; top: 9%; background: var(--butter-d); border-radius: 50%; }
.looks .confetti.c7 { right: 8%; top: 13%; background: var(--bubble-d); --r: 20deg; animation-delay: -3s; }
.looks .confetti.c8 { right: 30%; top: 5%; width: 11px; height: 11px; background: var(--mint-d); border-radius: 50%; animation-delay: -5s; }

.closet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.fitting {
  --tint: #E9E9E6;
  --tint-ink: var(--ink);
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(29, 34, 32, 0.08), 0 34px 60px -38px rgba(29, 34, 32, 0.5);
  isolation: isolate;
}
.fitting-bg {
  position: absolute;
  inset: 10px;
  z-index: -1;
  border-radius: 26px;
  background:
    radial-gradient(34% 62% at 73% 100%, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(46% 60% at 8% 0%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%),
    var(--tint);
  transition: background-color 0.6s var(--ease-out);
}
.fitting-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 50%;
  padding: 56px 0 40px 56px;
}
.look-cat { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--round); color: var(--tint-ink); }
.look-of { font-weight: 500; opacity: 0.75; }
.look-name {
  font: 700 clamp(48px, 5.6vw, 84px)/1 var(--round);
  letter-spacing: -0.02em;
  color: var(--tint-ink);
  transition: transform 0.55s var(--spring), opacity 0.2s, color 0.5s;
}
.look-name.is-swap { opacity: 0; transform: translateY(10px) scale(0.9); transition-duration: 0.12s; }
.look-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.round {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(29, 34, 32, 0.15);
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--spring);
}
.round svg { width: 18px; height: 18px; }
.round:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(29, 34, 32, 0.15); }
.round:active { transform: translateY(4px); box-shadow: 0 0 0 rgba(29, 34, 32, 0.15); transition-duration: 0.08s; }
.shuffle .dice { width: 18px; height: 18px; transition: transform 0.6s var(--spring); }
.shuffle:hover .dice { transform: rotate(-24deg) scale(1.08); }
.shuffle.is-roll .dice { animation: roll 0.6s var(--ease-out); }
@keyframes roll { to { transform: rotate(360deg); } }

.fit-closet { inset: 10px; border-radius: 26px; z-index: 2; }
.fit-closet .stage { pointer-events: none; }

/* The hand on a decorative Orbit (main.js, bodyHit): it follows the body;
   drag to grab and throw, click to poke. */
.grab-hit {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 22;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.grab-hit.is-held { cursor: grabbing; }
.fit-closet .stage.o-stage { overflow: visible; }

/* The poof: soft puffs burst around Orbit while it changes. */
.poof { position: absolute; z-index: 25; width: 0; height: 0; pointer-events: none; }
.poof i {
  position: absolute;
  left: calc(var(--sz) / -2);
  top: calc(var(--sz) / -2);
  width: var(--sz);
  height: var(--sz);
  border-radius: 50%;
  background: #fff;
  box-shadow: inset -3px -4px 0 rgba(29, 34, 32, 0.06);
  opacity: 0;
}
.poof b {
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  color: var(--pc, var(--butter-d));
  opacity: 0;
}
.poof b svg { width: 100%; height: 100%; }
.poof.go i { animation: puff 0.62s var(--ease-out) both; animation-delay: calc(var(--k) * 14ms); }
.poof.go b { animation: spark 0.8s var(--ease-out) both; animation-delay: calc(80ms + var(--k) * 30ms); }
@keyframes puff {
  0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
  18% { opacity: 1; }
  60% { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(1); }
  100% { opacity: 0; transform: translate(calc(var(--tx) * 1.15), calc(var(--ty) * 1.15)) scale(0.2); }
}

.rack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 5px 0 rgba(29, 34, 32, 0.05);
}
.tabs {
  display: flex;
  align-self: center;
  max-width: 100%;
  gap: 6px;
  padding: 5px;
  overflow-x: auto;
  border-radius: 999px;
  background: rgba(124, 92, 245, 0.1);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 1 0 auto;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font: 600 14.5px/1 var(--round);
  color: var(--lilac-t);
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, transform 0.4s var(--spring), box-shadow 0.3s;
}
.tabs button:hover { transform: translateY(-1px); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 3px 0 rgba(29, 34, 32, 0.1); }
.tabs button .n { margin-left: 5px; font-weight: 500; opacity: 0.6; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  align-content: start;
}
.look-tile {
  position: relative;
  aspect-ratio: 1 / 1.04;
  overflow: hidden;
  border-radius: 20px;
  background: var(--t, #eee);
  box-shadow: 0 3px 0 rgba(29, 34, 32, 0.06);
  transition: transform 0.45s var(--spring), box-shadow 0.3s var(--spring);
}
.look-tile:hover { transform: translateY(-4px) rotate(-2deg); box-shadow: 0 6px 0 rgba(29, 34, 32, 0.08); }
.look-tile:active { transform: translateY(1px); transition-duration: 0.08s; }
.look-tile[aria-checked="true"] { box-shadow: 0 0 0 3px var(--ink), 0 6px 0 3px rgba(29, 34, 32, 0.12); transform: translateY(-3px); }
.look-tile .stage { position: absolute; bottom: 0; transform-origin: 100% 100%; pointer-events: none; }
.look-tile .stage.o-stage { overflow: visible; }
.look-tile .tip {
  position: absolute;
  left: 50%;
  top: 7px;
  z-index: 30;
  transform: translate(-50%, -4px);
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 600 11px/1.1 var(--round);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.3s var(--spring);
}
.look-tile:hover .tip,
.look-tile:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }
.look-tile.is-hidden { display: none; }
.rack-note { padding: 2px 6px 4px; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-align: center; text-wrap: balance; }
.rack-note[hidden] { display: none; }

/* --- Pricing ---------------------------------------------------------- */

.pricing { padding-block: 128px 104px; }
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  margin-top: 72px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  border-radius: 36px;
  background:
    radial-gradient(80% 60% at 10% 0%, var(--tint-2) 0%, transparent 70%),
    var(--tint);
  box-shadow: 0 6px 0 rgba(29, 34, 32, 0.07), 0 34px 60px -40px rgba(29, 34, 32, 0.5);
}
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.035em; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font: 600 13.5px/1 var(--round);
  color: var(--deep-t);
}

.seg-ind {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(29, 34, 32, 0.1);
}

.price {
  display: flex;
  align-items: flex-end;
  margin-top: 24px;
  font-variant-numeric: tabular-nums;
}
.price-num { display: flex; align-items: flex-start; }
.price .cur { margin-top: 10px; margin-right: 3px; font: 600 28px/1 var(--round); }
.price .amt { font: 700 72px/0.95 var(--round); letter-spacing: -0.03em; }
.price-side { display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; margin-block-end: 8px; margin-inline-start: 14px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.bill { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-height: 30px; margin-top: 12px; font-size: 15px; color: var(--ink-2); text-wrap: pretty; }

.checks { display: grid; gap: 12px; margin-top: 24px; padding-top: 22px; border-top: 2px dashed rgba(29, 34, 32, 0.12); }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; }
.checks i {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--deep-t);
  box-shadow: 0 2px 0 rgba(29, 34, 32, 0.06);
}
.checks svg { width: 14px; height: 14px; }
.plan-cta { margin-top: auto; padding-top: 30px; text-align: center; }
.fine { margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); text-wrap: pretty; }
.fine.center { max-width: 40em; margin: 32px auto 0; text-align: center; }

.sticker-launch { position: absolute; z-index: 6; left: 24px; top: -17px; }

/* Lifetime price steps, inside the card: the first one wears its name
   ("Early adopter") as a pill on its top edge; on sale now (green, with a
   live dot and the seats left), next, and the price after launch. */
.ladder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding: 5px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
}
.ladder li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 2px 9px;
  border-radius: 15px;
  text-align: center;
}
.ladder b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 700 16px/1 var(--round);
  white-space: nowrap;
  color: var(--ink-2);
}
.ladder li > span { min-height: 1.2em; font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--ink-2); text-wrap: balance; }
.ladder-name {
  /* Centered on its step; a name too long for that starts at the edge of
     the ladder and grows inward, never out of the card. */
  position: absolute;
  top: 0;
  inset-inline: -5px;
  width: max-content;
  margin-inline: auto;
  transform: translateY(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green-t);
  font: 700 11px/1 var(--round);
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(13, 102, 64, 0.22);
}
.ladder-name + b { margin-top: 5px; }
.ladder s { text-decoration-thickness: 2px; text-decoration-color: rgba(29, 34, 32, 0.5); }
.ladder .is-now { background: #fff; box-shadow: 0 0 0 2px var(--green), 0 4px 10px -4px rgba(13, 102, 64, 0.35); }
.ladder .is-now b { color: var(--ink); }
.ladder .is-now > span { color: var(--green-t); font-weight: 700; }
.ladder .live-dot { width: 8px; height: 8px; }
.ladder-sep {
  position: absolute;
  top: 50%;
  inset-inline-start: -12px;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  color: rgba(29, 34, 32, 0.4);
}
[dir="rtl"] .ladder-sep { transform: scaleX(-1); }

/* Early Access: when Orbit arrives, as a little calendar page. */
.arrive {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding: 12px 14px 12px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
}
.plan-early .checks { margin-bottom: 24px; }
.arrive p { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.cal {
  flex: none;
  display: grid;
  grid-template-rows: 22px 1fr;
  width: 56px;
  height: 60px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  box-shadow: 0 3px 0 rgba(29, 34, 32, 0.08);
  transform: rotate(-4deg);
}
[dir="rtl"] .cal { transform: rotate(4deg); }
.cal b { display: grid; place-items: center; background: var(--sky-d); color: #fff; font: 700 11.5px/1 var(--round); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.cal span { display: grid; place-items: center; font: 700 17px/1 var(--round); color: var(--ink); }
.plan-early .plan-cta { margin-top: 0; padding-top: 18px; }

/* The pre-launch line in the hero. */
.meta-pre { display: flex; align-items: flex-start; gap: 8px; max-width: 30em; color: var(--ink-2); line-height: 1.45; }
.meta-pre svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--butter-t); }

/* --- FAQ -------------------------------------------------------------- */

.faq { padding-block: 112px; }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 56px;
  align-items: start;
}
.faq-side { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ask {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 88px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 0 rgba(29, 34, 32, 0.06);
}
.ask p { max-width: 18em; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.pill-mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  margin-bottom: 4px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(29, 34, 32, 0.12);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--spring);
}
.pill-mail svg { width: 18px; height: 18px; color: var(--bubble-t); }
.pill-mail:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(29, 34, 32, 0.12); }
.pill-mail:active { transform: translateY(4px); box-shadow: 0 0 0 rgba(29, 34, 32, 0.12); transition-duration: 0.08s; }

.faq-list { display: grid; gap: 10px; }
.faq-list details {
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(29, 34, 32, 0.06);
  transition: box-shadow 0.3s var(--ease-out);
}
.faq-list details[open] { box-shadow: 0 4px 0 rgba(29, 34, 32, 0.08), 0 20px 34px -26px rgba(29, 34, 32, 0.45); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 16px 18px 24px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-radius: 22px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline-offset: 2px; }
.faq-ic {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bubble-2);
  color: var(--bubble-t);
  transition: transform 0.5s var(--spring), background-color 0.25s, color 0.25s;
}
.faq-ic svg { width: 15px; height: 15px; }
.faq-list summary:hover .faq-ic { transform: scale(1.1) rotate(-8deg); }
.faq-list details[open] .faq-ic { transform: rotate(135deg); background: var(--ink); color: #fff; }
.faq-list details p { max-width: 60ch; padding: 0 64px 22px 24px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-list details::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.42s var(--ease-out), content-visibility 0.42s allow-discrete;
  }
  .faq-list details[open]::details-content { height: auto; }
}

/* --- Final call ------------------------------------------------------- */

.final {
  min-height: 620px;
  padding-block: 120px 206px;
  overflow: hidden;
  text-align: center;
}
.final .blob.b3 { width: 760px; height: 760px; left: 50%; top: -360px; transform: translateX(-50%); background: rgba(255, 255, 255, 0.38); }
.final .confetti.c9 { left: 9%; top: 18%; background: var(--sky-d); border-radius: 50%; }
.final .confetti.c10 { right: 11%; top: 24%; background: var(--lilac-d); --r: 24deg; animation-delay: -2s; }
.final .confetti.c11 { left: 22%; top: 50%; width: 12px; height: 12px; background: var(--butter-d); border-radius: 50%; animation-delay: -4s; }
.final-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.final-copy .sub { text-wrap: balance; }
.final-copy .cta-row { justify-content: center; margin-top: 10px; }

/* Thank-you page: one state at a time. thanks.js sets data-state from the API;
   until then "checking", and without JavaScript the plain thank-you. */
.thanks .th-state { display: none; flex-direction: column; align-items: center; gap: 22px; }
.no-js .thanks .th-state[data-for="fallback"],
.js .thanks:not([data-state]) .th-state[data-for="checking"],
.thanks[data-state="paid"] .th-state[data-for="paid"],
.thanks[data-state="processing"] .th-state[data-for="processing"],
.thanks[data-state="unpaid"] .th-state[data-for="unpaid"],
.thanks[data-state="fallback"] .th-state[data-for="fallback"] { display: flex; }
.thanks .th-order { display: none; padding: 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.62); font-weight: 600; }
.thanks[data-plan="lifetime"] .th-order[data-plan="lifetime"],
.thanks[data-plan="early-access"] .th-order[data-plan="early-access"] { display: block; }
.thanks .th-buyer { font-weight: 700; }

.crowd {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 190px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  overflow: hidden;
  border-radius: 0 0 var(--r-slab) var(--r-slab);
}
.crowd-cell { position: relative; flex: none; height: 100%; }
.crowd-cell .stage { position: absolute; bottom: 0; transform-origin: 100% 100%; pointer-events: none; }
.crowd-cell .stage.o-stage { overflow: visible; }
/* A crowd Orbit in someone's hand leaves the row (which clips it) for this layer. */
.crowd-air { position: fixed; inset: 0; z-index: 90; overflow: hidden; pointer-events: none; }
.crowd-air .stage { position: absolute; overflow: visible; pointer-events: none; }

/* --- Privacy, terms, support ------------------------------------------- */

.slab.legal-head { padding-block: 148px 60px; }
@media (max-width: 760px) {
  .slab.legal-head { padding-block: 116px 44px; }
  .legal-body { padding-block: 40px 64px; }
}
.legal-top { --container: 760px; display: flex; flex-direction: column; gap: 18px; }
.legal-top .h2 { font-size: clamp(38px, 4.4vw, 56px); }
.legal-date { color: var(--ink-2); }
.legal { --container: 760px; }
.legal-body { padding-block: 56px 88px; }
.legal-sec + .legal-sec { margin-top: 40px; }
.legal-sec h2 { font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; }
.legal-sec p { margin-top: 12px; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.legal-sec a,
.legal-date a,
.thanks .meta a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* A fact only the owner can give, still to be filled in (tools/build-i18n.mjs, LEGAL). */
.ph { padding: 1px 6px; border-radius: 6px; background: var(--butter); color: var(--ink); font-weight: 600; }
.legal-more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }

/* --- Footer ------------------------------------------------------------ */

.footer { padding: 56px 0 40px; }
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 32px;
}
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.foot-brand p { font-size: 14.5px; color: var(--ink-3); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px; }
.foot-links a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}
.foot-links a:hover { background: #fff; color: var(--ink); }
.foot-langs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 2px; margin-inline: -11px; }
.foot-langs a {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}
.foot-langs a:hover { background: #fff; color: var(--ink); }
.foot-langs a[aria-current] { background: var(--butter-2); color: var(--ink); font-weight: 600; }
.foot-copy { grid-column: 1 / -1; padding-top: 18px; border-top: 2px dashed rgba(29, 34, 32, 0.1); font-size: 13.5px; color: var(--ink-3); }

/* --- The corner buddy (lives in the corner of this page) ---------------- */

.buddy.o-stage {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 65;
  overflow: hidden;
  pointer-events: none;
  transform-origin: 0 0;
}
.buddy .o-hit { pointer-events: none; }
.buddy .o-hit[data-on="1"] { pointer-events: auto; }
.buddy[hidden] { display: none; }

/* --- Reveal on scroll ---------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(22px) scale(0.98); }
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out) calc(var(--d, 0) * 80ms), transform 0.9s var(--spring-soft) calc(var(--d, 0) * 80ms);
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1340px) {
  .ch { gap: 7px; padding-right: 12px; font-size: 13px; }
  .ch-n { width: 28px; height: 28px; font-size: 13px; }
  .ch-list { gap: 5px; }
}

/* Narrow two-column hero: chips show their number, the caption names them. */
@media (min-width: 1041px) and (max-width: 1180px) {
  .ch { width: 62px; padding: 0; gap: 0; justify-content: center; }
  .ch-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 36px; }
  .display { font-size: clamp(40px, 4.6vw, 56px); }
}

@media (max-width: 1040px) {
  .hero { padding-top: 118px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-copy .display { max-width: 12em; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-copy .cta-row { justify-content: center; }
  .meta-pre { justify-content: center; text-align: center; }
  .hero-demo { max-width: 760px; width: 100%; margin-inline: auto; }

  .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 36px; }
  .tile-a, .tile-d { grid-column: span 12; }
  .tile-b, .tile-c, .tile-e, .tile-f { grid-column: span 6; }
  .tile-b .tile-vis, .tile-c .tile-vis { height: 392px; }
  .tile-b, .tile-c { margin-top: 60px; }
  .perks { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .closet { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-side { position: static; }
}

@media (max-width: 880px) {
  .plans { grid-template-columns: minmax(0, 460px); gap: 96px; }
  .keys { padding: 16px 16px 60px; }
  .kc { min-width: 46px; height: 46px; }
  .kc-w { min-width: 66px; }
  .kc-space { width: 96px; }
}

@media (max-width: 760px) {
  .slab { padding-block: 84px; }
  .hero { margin-top: 0; padding: 104px 0 36px; border-radius: 0 0 var(--r-slab) var(--r-slab); }
  .hero-copy { gap: 18px; }
  .display { font-size: clamp(38px, 10.6vw, 46px); line-height: 1.02; }
  .lead { font-size: 16.5px; }
  .hero-copy .cta-row { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-copy .btn-lg { width: 100%; }
  .hero-demo { gap: 12px; }
  .sticker-live { left: -4px; top: -14px; }
  .screen { padding: 6px; border-radius: 22px; }
  .screen-fit { border-radius: 17px; }
  .chapters { justify-content: flex-start; }
  .ch-list { gap: 5px; }
  .ch { width: 62px; padding: 0; gap: 0; justify-content: center; }
  .ch-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .confetti.c2, .confetti.c3, .confetti.c5 { display: none; }
  .ch-caption { font-size: 14px; text-align: left; padding-inline: 2px; }

  .h2 { font-size: clamp(34px, 9.4vw, 42px); }
  .sub { font-size: 16.5px; }
  .steps { margin-top: 52px; gap: 64px; }
  .step-num { left: -4px; }
  .peek-step { --ps: 0.74; }
  .peek-plan { --ps: 0.86; }
  .peek-ask { --ps: 0.76; }
  .tile-b { margin-top: 62px; }
  .tile-c { margin-top: 0; }
  .confetti { display: none; }
  .final .blob.b3 { display: none; }
  .final-copy .cta-row { flex-direction: column; align-items: stretch; width: 100%; }
  .final-copy .btn-lg { width: 100%; }
  .tile-d .term-card { display: none; }
  .tabs button { flex: 1 1 0; padding: 0 4px; font-size: 13.5px; }
  .features { padding-block: 92px 84px; }
  .bento { margin-top: 44px; gap: 16px; }
  .tile-a, .tile-b, .tile-c, .tile-d, .tile-e, .tile-f { grid-column: span 12; }
  .tile-vis, .tile-b .tile-vis, .tile-c .tile-vis, .tile-d .tile-vis { height: 360px; }
  .tile-e .tile-vis, .tile-f .tile-vis { height: 300px; }
  .tile-a .tile-vis { height: 372px; }
  .board { top: 16px; right: 16px; transform: none; grid-template-columns: 1fr; gap: 12px; }
  .board .handled ul { display: none; }
  .board .handled .col-label::after { content: attr(data-items); margin-inline-start: 4px; font-weight: 500; color: var(--ink-3); }
  .board-col.handled { order: 2; }
  .term-card { width: auto; right: 16px; }
  .tile-d .term-card .tc-body p:nth-child(2),
  .tile-d .term-card .tc-body p:nth-child(3) { display: none; }
  .vbubble { right: 84px; bottom: 50px; }

  .looks { padding-block: 84px 64px; }
  .closet { margin-top: 40px; gap: 14px; }
  .fitting { min-height: 470px; border-radius: 28px; }
  .fitting-bg { border-radius: 20px; inset: 8px; background:
    radial-gradient(70% 48% at 50% 100%, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0) 72%),
    var(--tint); }
  .fit-closet { inset: 8px; border-radius: 20px; }
  .fitting-copy { max-width: none; align-items: center; text-align: center; padding: 30px 20px 0; }
  .look-name { font-size: 50px; }
  .tabs { align-self: stretch; }
  .rack { padding: 12px; border-radius: 28px; }
  .grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: 82px;
    overflow-x: auto;
    padding: 6px 4px 10px;
    margin: -6px -4px 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .grid::-webkit-scrollbar { display: none; }
  .look-tile { scroll-snap-align: start; }

  .pricing { padding-block: 92px 80px; }
  .plans { margin-top: 56px; }
  .plan { padding: 28px 20px 22px; border-radius: 30px; }
  .price .amt { font-size: 64px; }
  .faq { padding-block: 84px; }
  .faq-list summary { padding: 16px 12px 16px 18px; font-size: 16px; }
  .faq-list details p { padding: 0 18px 20px; font-size: 15px; }
  .ask { margin-top: 74px; }
  .final { min-height: 0; padding-block: 88px 168px; }
  .crowd { height: 150px; }
  .footer { padding-top: 40px; }
  .foot { grid-template-columns: 1fr; }
  .foot-links { margin-left: -13px; }
}

@media (max-width: 420px) {
  .btn-lg { height: 56px; padding: 0 22px; font-size: 16px; }
  .perk { padding: 18px 16px; }
}

/* --- Motion preferences --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .confetti { animation: none !important; }
}
.is-reduced .reveal,
.is-shot .reveal { opacity: 1 !important; transform: none !important; }
.is-reduced .squiggle use,
.is-shot .squiggle use { stroke-dashoffset: 0 !important; animation: none !important; }
.is-shot .confetti,
.is-shot .live-dot::after { animation: none !important; }

/* --- Right-to-left pages (Arabic, Urdu) ---------------------------------
   The layout mirrors, and so do the Orbits (the engine's `mirror`): they
   live in the bottom LEFT corner, so whatever sat beside them trades sides.
   Keyboards, prices and code stay left-to-right. */

[dir="rtl"] .skip { left: auto; right: 16px; }
[dir="rtl"] .eyebrow { padding: 0 12px 0 14px; }
[dir="rtl"] .look-tile:hover { transform: translateY(-3px) rotate(2deg); }
[dir="rtl"] .btn .arr,
[dir="rtl"] .round svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arr { transform: translateX(-3px) scaleX(-1); }
[dir="rtl"] .sticker { transform: rotate(5deg); }
[dir="rtl"] .sticker-live { left: auto; right: -14px; }
[dir="rtl"] .sticker-launch { left: auto; right: 24px; }

/* Hero demo: the windows already trade sides (inset-inline-start). */
[dir="rtl"] .ch { padding: 0 7px 0 14px; }
[dir="rtl"] .ch-fill { transform-origin: 100% 50%; }
[dir="rtl"] .mb-r { margin-left: 0; margin-right: auto; }
[dir="rtl"] .desk-shape.s1 { left: auto; right: -70px; }
[dir="rtl"] .desk-shape.s2 { right: auto; left: 120px; transform: rotate(-18deg); }
[dir="rtl"] .dkeys { left: auto; right: 26px; }
[dir="rtl"] .hero-m .dkeys { right: auto; left: 16px; }
[dir="rtl"] .dbubble { right: auto; left: 96px; border-radius: 22px 22px 22px 6px; transform-origin: 0 100%; }
[dir="rtl"] .hero-m .dbubble { left: 80px; }
[dir="rtl"] .dbubble .rec { margin-right: 0; margin-left: 4px; }
[dir="rtl"] .dsparks { right: auto; left: 18px; }
[dir="rtl"] .caret { margin-left: 0; margin-right: 1px; }

/* Cards on Orbit's skin. */
[dir="rtl"] .pg-opt { text-align: right; padding: 8px 8px 8px 14px; }
[dir="rtl"] .pg-opt .pg-okmark,
[dir="rtl"] .pg-pv-act .pg-n2 { margin-left: 0; margin-right: auto; }
[dir="rtl"] .pg-k,
[dir="rtl"] .o-btn .pg-k { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .o-btn .pg-ok { margin-left: 0; margin-right: 7px; }
[dir="rtl"] .pg-fb { padding: 5px 15px 5px 5px; }
[dir="rtl"] .pg-fb .o-send svg { transform: scaleX(-1); }
[dir="rtl"] .o-content[data-variant^="pgMini"] .pg-opt { padding: 6px 6px 6px 11px; }
[dir="rtl"] .o-content[data-variant^="pgMini"] .pg-k { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .o-content[data-variant^="pgMini"] .pg-fb { padding: 3px 11px 3px 3px; }

/* Orbit's stages are anchored in the bottom-left corner. */
[dir="rtl"] .fit > .stage { right: auto; left: 0; transform-origin: 0 100%; }
[dir="rtl"] .peek > .stage,
[dir="rtl"] .look-tile .stage,
[dir="rtl"] .crowd-cell .stage { transform-origin: 0 100%; }
[dir="rtl"] .peek-step { right: auto; left: 12px; }
[dir="rtl"] .peek-tile { right: auto; left: 22px; }
[dir="rtl"] .peek-plan { right: auto; left: 24px; }
[dir="rtl"] .peek-ask { right: auto; left: 16px; }

/* How it works. */
[dir="rtl"] .step-num { left: auto; right: -10px; transform: rotate(8deg); }
[dir="rtl"] .mini-win { left: -6px; right: 22px; border-radius: 0 16px 0 0; }
[dir="rtl"] .mw-home { right: auto; left: 18px; border-radius: 24px 24px 24px 18px; }
[dir="rtl"] .plugs { left: auto; right: 16px; }
[dir="rtl"] .plugs li { padding: 0 4px 0 8px; }
[dir="rtl"] .plugs li.on { transform: translateX(-4px); }
[dir="rtl"] .plugs .sw { margin-left: 0; margin-right: auto; }
[dir="rtl"] .plugs .sw::after { left: auto; right: 2px; }
[dir="rtl"] .plugs li.on .sw::after { transform: translateX(-12px); }
[dir="rtl"] .todo { left: auto; right: 18px; }
[dir="rtl"] .todo li { padding: 0 8px 0 12px; }

/* Feature tiles. */
[dir="rtl"] .hint { left: auto; right: 14px; }
[dir="rtl"] .board { left: 140px; right: 18px; }
[dir="rtl"] .col-label { margin: 2px 2px 3px 0; }
[dir="rtl"] .handled em { margin-left: 0; margin-right: auto; }
[dir="rtl"] .need { padding: 8px 11px 8px 38px; text-align: right; }
[dir="rtl"] .need-tick { right: auto; left: 10px; }
[dir="rtl"] .talk { left: auto; right: 16px; padding: 0 7px 0 12px; }
[dir="rtl"] .vbubble { right: auto; left: 92px; border-radius: 18px 18px 18px 5px; transform-origin: 0 100%; }
[dir="rtl"] .term-card { left: auto; right: 16px; }
[dir="rtl"] .keys { padding: 16px 16px 16px 120px; }
[dir="rtl"] .key-row { direction: ltr; }
[dir="rtl"] .spin-copy { left: auto; right: 22px; }

/* Looks. */
[dir="rtl"] .fitting-copy { padding: 56px 56px 40px 0; }
[dir="rtl"] .fitting-bg {
  background:
    radial-gradient(34% 62% at 27% 100%, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(46% 60% at 92% 0%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%),
    var(--tint);
}

/* Pricing, FAQ, footer. */
[dir="rtl"] .plan { background: radial-gradient(80% 60% at 90% 0%, var(--tint-2) 0%, transparent 70%), var(--tint); }
[dir="rtl"] .faq-list summary { padding: 18px 24px 18px 16px; }
[dir="rtl"] .faq-list details p { padding: 0 24px 22px 64px; }

@media (max-width: 1340px) {
  [dir="rtl"] .ch { padding-right: 7px; padding-left: 12px; }
}
@media (min-width: 1041px) and (max-width: 1180px) {
  [dir="rtl"] .ch { padding: 0; }
}
@media (max-width: 760px) {
  [dir="rtl"] .sticker-live { left: auto; right: -4px; }
  [dir="rtl"] .ch { padding: 0; }
  [dir="rtl"] .ch-caption { text-align: right; }
  [dir="rtl"] .step-num { left: auto; right: -4px; }
  [dir="rtl"] .board { left: 16px; right: 18px; }
  [dir="rtl"] .vbubble { left: 84px; }
  [dir="rtl"] .fitting-copy { padding: 30px 20px 0; }
  [dir="rtl"] .fitting-bg {
    background:
      radial-gradient(70% 48% at 50% 100%, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0) 72%),
      var(--tint);
  }
  [dir="rtl"] .faq-list summary { padding: 16px 18px 16px 12px; }
  [dir="rtl"] .faq-list details p { padding: 0 18px 20px; }
  [dir="rtl"] .foot-links { margin-left: 0; margin-right: -13px; }
}

/* Decorative confetti mirrors too, so it never lands on the copy. */
[dir="rtl"] .confetti.c2 { left: auto; right: 41%; }
[dir="rtl"] .confetti.c3 { right: auto; left: 4%; }
[dir="rtl"] .confetti.c4 { left: auto; right: 38%; }
[dir="rtl"] .confetti.c5 { right: auto; left: 47%; }
[dir="rtl"] .hero .blob.b1 { left: auto; right: -180px; }
[dir="rtl"] .hero .blob.b2 { right: auto; left: -120px; }
[dir="rtl"] .looks .confetti.c6 { left: auto; right: 6%; }
[dir="rtl"] .looks .confetti.c7 { right: auto; left: 8%; }
[dir="rtl"] .looks .confetti.c8 { right: auto; left: 30%; }
[dir="rtl"] .final .confetti.c9 { left: auto; right: 9%; }
[dir="rtl"] .final .confetti.c10 { right: auto; left: 11%; }
[dir="rtl"] .final .confetti.c11 { left: auto; right: 22%; }

/* --- Scripts: sizes and line heights ----------------------------------- */
/* Tall marks above and below the line (Arabic, Devanagari, Bengali) and
   square CJK glyphs need more room than Latin display type. */
:root:is(:lang(ja), :lang(zh)) .display { font-size: clamp(36px, 3.4vw, 52px); line-height: 1.2; }
:root:is(:lang(ja), :lang(zh)) :is(.h2, .display-2) { line-height: 1.18; }
:root:is(:lang(hi), :lang(bn)) :is(.display, .h2, .display-2) { line-height: 1.24; }
:root:is(:lang(hi), :lang(bn)) .display { font-size: clamp(36px, 3.6vw, 54px); }
:root:is(:lang(ar), :lang(ur)) :is(.display, .h2, .display-2) { line-height: 1.32; }
:root:is(:lang(ar), :lang(ur)) .display { font-size: clamp(38px, 3.7vw, 56px); }
:root:is(:lang(ja), :lang(zh), :lang(hi), :lang(bn), :lang(ar), :lang(ur)) :is(.look-name, .spin-name) { line-height: 1.25; }
:root:lang(ru) .display { font-size: clamp(38px, 3.6vw, 54px); }
@media (max-width: 760px) {
  :root:is(:lang(ja), :lang(zh)) .display { font-size: clamp(30px, 8.4vw, 38px); }
  :root:is(:lang(ja), :lang(zh)) .display-2 { font-size: clamp(36px, 10vw, 44px); }
  :root:is(:lang(hi), :lang(bn), :lang(ar), :lang(ur), :lang(ru)) .display { font-size: clamp(32px, 8.8vw, 40px); }
}

/* Very narrow phones: the nav keeps brand, language and button on one line. */
@media (max-width: 380px) {
  .nav { padding-inline: 10px; }
  .nav-pill { gap: 4px; padding-inline: 10px 6px; }
  .brand { gap: 7px; padding-inline-end: 0; }
  .lang-btn { padding-inline: 8px; }
  .lang-code { display: none; }
  .nav .btn-sm { padding: 0 14px; }
  .nav-cta .arr { display: none; }
}
@media (max-width: 880px) {
  [dir="rtl"] .keys { padding: 16px 16px 60px; }
}
@media (max-width: 340px) {
  .chapters { gap: 6px; }
  .ch-list { gap: 4px; }
  .ch { width: 52px; }
  .ch-play { width: 40px; height: 40px; }
}
