/* Tenfold launch site. Tokens from docs/site/BRIEF.md. */
:root {
  --bg: #fbf6f1;
  --bg-alt: #f3e7df;
  --card: #ffffff;
  --ink: #2a201c;
  --ink-muted: #6b5c55;
  --rose: #b8495f;
  --rose-deep: #7e2238;
  --on-rose: #ffffff;
  --blush: #f6dee3;
  --line: #e6d9d1;
  --low: #8a5a00;
  --low-soft: #fbeccc;
  --out: #b3261e;
  --out-soft: #fbe3e0;
  --ok: #2e7d5b;
  --nail-bed: #f2c9bf;
  --shadow: 0 1px 2px rgb(42 32 28 / 0.06), 0 8px 24px rgb(126 34 56 / 0.08);
  --shadow-lift:
    0 4px 12px rgb(42 32 28 / 0.08), 0 24px 60px rgb(126 34 56 / 0.16);

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --rhythm: clamp(80px, 12vw, 160px);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1816;
    --bg-alt: #241e1b;
    --card: #2a2421;
    --ink: #f4ece7;
    --ink-muted: #bbaea6;
    --rose: #f0a3b3;
    --rose-deep: #f5bccb;
    --on-rose: #2b1a1f;
    --blush: #4a2e36;
    --line: #3f3531;
    --low: #f2c262;
    --low-soft: #3d3018;
    --out: #ff9a92;
    --out-soft: #46221f;
    --ok: #8ed6b0;
    --nail-bed: #d9a79a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.3);
    --shadow-lift: 0 4px 12px rgb(0 0 0 / 0.35), 0 24px 60px rgb(0 0 0 / 0.45);
  }
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-x: clip;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--rose-deep);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: var(--rose);
}

a:hover {
  color: var(--rose-deep);
}

:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 2px;
}

svg {
  display: block;
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--card);
  transform: translateY(-200%);
}

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

.wrap {
  width: min(1160px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.muted {
  color: var(--ink-muted);
}

.label,
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow {
  color: var(--rose);
}

.label + h2 {
  margin-top: 14px;
}

.lede {
  max-width: 56ch;
  margin-top: 20px;
  color: var(--ink-muted);
}

.section {
  padding-top: var(--rhythm);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition:
    background-color 160ms var(--ease),
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.btn-primary {
  background: var(--rose);
  color: var(--on-rose);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--rose-deep);
  color: var(--on-rose);
  box-shadow: var(--shadow-lift);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.9375rem;
}

.btn-large {
  min-height: 56px;
  padding: 0 36px;
  font-size: 1.0625rem;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 10px) /
    40% 1px no-repeat;
  transition:
    background-size 220ms var(--ease),
    color 160ms var(--ease);
}

.btn-text:hover {
  color: var(--rose-deep);
  background-size: 100% 1px;
}

.btn-text:active {
  opacity: 0.7;
}

.pill {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 600 0.9375rem var(--font-body);
  cursor: pointer;
  transition:
    border-color 160ms var(--ease),
    background-color 160ms var(--ease),
    transform 120ms var(--ease);
}

.pill:hover {
  border-color: var(--rose);
}

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

.pill:disabled {
  opacity: 0.45;
  cursor: default;
  border-color: var(--line);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(from var(--bg) r g b / 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

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

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

.logo:hover {
  color: var(--ink);
}

.logo:hover .mark {
  transform: rotate(-6deg);
}

.mark {
  transition: transform 200ms var(--ease);
}

.wordmark {
  font: italic 500 1.5rem/1 var(--font-display);
  color: var(--ink);
}

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

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 160ms var(--ease);
}

.nav-links a:hover {
  background: var(--blush);
}

.nav-links a:active {
  opacity: 0.7;
}

@media (max-width: 639px) {
  .nav-links {
    display: none;
  }
}

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

.hero {
  padding-top: clamp(32px, 6vw, 72px);
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy h1 {
  margin-top: 18px;
}

.sub {
  max-width: 34ch;
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 32px;
}

.small-line {
  margin-top: 18px;
  font-size: 0.9375rem;
}

.hero-demo {
  position: relative;
  isolation: isolate;
}

.hero-demo::before {
  content: "";
  position: absolute;
  inset: -18% -14%;
  z-index: -1;
  background: radial-gradient(
    closest-side,
    var(--blush),
    rgb(from var(--blush) r g b / 0.5) 55%,
    transparent
  );
}

.demo-card {
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgb(from var(--card) r g b / 0.72);
  box-shadow: var(--shadow);
}

.brush {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.brush-name {
  color: var(--ink);
  font-weight: 600;
}

.dot {
  flex: none;
  border-radius: 50%;
}

.hands {
  width: 100%;
  height: auto;
  margin-top: 8px;
  overflow: visible;
}

.nail-bed {
  fill: var(--nail-bed);
}

.nail-paint {
  transform-box: fill-box;
  transform-origin: center bottom;
}

.nail-paint.is-bare {
  opacity: 0;
}

.nail-paint.is-painting {
  animation: nail-paint 200ms var(--ease);
}

@keyframes nail-paint {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
}

.finger {
  cursor: pointer;
  outline: none;
}

.finger-hit {
  fill: transparent;
  stroke: transparent;
  stroke-width: 3;
  transition: stroke 160ms var(--ease);
}

.finger:hover .finger-hit {
  stroke: rgb(from var(--rose) r g b / 0.45);
}

.finger:focus-visible .finger-hit {
  stroke: var(--rose);
}

.finger:active .nail-paint {
  opacity: 0.8;
}

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

.chip {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--line);
  transition:
    box-shadow 160ms var(--ease),
    transform 120ms var(--ease);
}

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

.chip:active {
  transform: scale(0.94);
}

.chip[aria-pressed="true"] {
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 5px var(--ink);
}

.chip:focus-visible {
  outline-offset: 7px;
}

.tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition:
    opacity 140ms var(--ease),
    transform 140ms var(--ease);
}

.chip:hover .tip,
.chip:focus-visible .tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.quick-fills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.microcopy {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9375rem;
}

/* ---------- Bottle wall ---------- */

.rail-band {
  margin-top: 48px;
  background: var(--bg-alt);
}

.rail {
  display: flex;
  gap: 14px;
  min-height: 120px;
  padding: 16px var(--gutter) 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 var(--gutter),
    #000 calc(100% - var(--gutter)),
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 var(--gutter),
    #000 calc(100% - var(--gutter)),
    transparent
  );
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail-item {
  flex: none;
  scroll-snap-align: start;
}

.rail-swatch {
  position: relative;
  display: block;
  width: 40px;
  height: 88px;
  border-radius: 12px;
  cursor: default;
  transition: transform 180ms var(--ease);
}

.rail-swatch:hover,
.rail-swatch:focus-visible {
  transform: translateY(-4px);
}

.rail-swatch svg {
  filter: drop-shadow(0 2px 3px rgb(42 32 28 / 0.18));
}

.rail-label {
  position: absolute;
  top: 62px;
  left: 50%;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  box-shadow: var(--shadow);
  transition: opacity 140ms var(--ease);
}

.rail-item:first-child .rail-label {
  left: 0;
  transform: none;
}

.rail-item:last-child .rail-label {
  left: auto;
  right: 0;
  transform: none;
}

.rail-swatch:hover .rail-label,
.rail-swatch:focus-visible .rail-label {
  opacity: 1;
}

@media (min-width: 1100px) {
  .rail {
    display: grid;
    grid-template-columns: repeat(20, 40px);
    justify-content: center;
    gap: 4px 14px;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.stats {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 8vw, 96px);
  margin-top: 40px;
  color: var(--ink-muted);
}

.stats li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.stat-num {
  font: 500 2.5rem/1 var(--font-display);
  color: var(--ink);
}

/* ---------- How it works ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: 56px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 3.5rem;
  right: 12%;
  border-top: 1px solid var(--line);
}

.step {
  position: relative;
}

.step-num {
  display: inline-block;
  padding-right: 14px;
  background: var(--bg);
  font: italic 400 4rem/1 var(--font-display);
  color: var(--rose);
}

.step-art {
  margin-top: 20px;
}

.step h3 {
  margin-top: 20px;
}

.step p {
  margin-top: 8px;
  color: var(--ink-muted);
  max-width: 36ch;
}

/* ---------- Features ---------- */

.feature {
  padding-top: var(--rhythm);
}

.feature-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.feature-flip .feature-grid {
  grid-template-columns: 5fr 7fr;
}

.feature-flip .feature-visual {
  order: 2;
}

.feature-copy p:not(.label) {
  margin-top: 20px;
  color: var(--ink-muted);
  max-width: 44ch;
}

.panel {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.finish-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px 12px;
  padding: clamp(24px, 4vw, 40px) clamp(12px, 2vw, 24px);
  border-radius: 24px;
  background: var(--bg-alt);
}

.finish-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.finish-nail {
  width: 72px;
  height: 110px;
  max-width: 100%;
  filter: drop-shadow(0 4px 8px rgb(42 32 28 / 0.16));
}

.finish-name {
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.finish-kind {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .twinkle {
    animation: twinkle 2.4s ease-in-out infinite;
    animation-delay: calc(var(--d) * -1);
  }
}

.shape-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: radial-gradient(
      circle at 50% 30%,
      var(--blush),
      transparent 60%
    ),
    var(--card);
}

.big-finger {
  width: 200px;
  height: 260px;
}

.big-skin {
  transition:
    fill 200ms var(--ease),
    stroke 200ms var(--ease);
}

.seg-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  max-width: 100%;
}

.seg {
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font: 600 0.9375rem var(--font-body);
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}

.seg:hover {
  color: var(--ink);
}

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

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

.tone {
  display: grid;
  place-items: center;
  padding: 0;
}

.tone-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
}

.tone[aria-pressed="true"] .tone-dot {
  box-shadow:
    0 0 0 2px var(--rose),
    0 0 0 4px var(--on-rose);
}

.look-panel {
  position: relative;
  max-height: 360px;
  overflow: hidden;
}

.look-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(transparent, var(--card));
}

.look-title {
  font: 500 2rem/1.1 var(--font-display);
  letter-spacing: -0.02em;
}

.legend {
  margin-top: 16px;
}

.legend li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.legend-finger {
  min-width: 9.5em;
  font-weight: 600;
}

.legend-shade {
  color: var(--ink-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-low {
  color: var(--low);
  background: var(--low-soft);
}

.badge-out {
  color: var(--out);
  background: var(--out-soft);
}

.staff-summary {
  font-weight: 600;
}

.staff-list {
  margin-top: 12px;
}

.staff-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.staff-name {
  flex: 1;
  font-weight: 600;
}

.stock-control {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

.stock-option {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font: 600 0.875rem var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}

.stock-option:hover {
  color: var(--ink);
}

.stock-option:active {
  transform: scale(0.96);
}

.stock-option[aria-checked="true"] {
  background: var(--card);
  color: var(--ok);
  box-shadow: var(--shadow);
}

.stock-option[data-stock="low"][aria-checked="true"] {
  background: var(--low-soft);
  color: var(--low);
}

.stock-option[data-stock="out"][aria-checked="true"] {
  background: var(--out);
  color: var(--card);
}

.trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: var(--rhythm);
  text-align: center;
  color: var(--ink-muted);
}

.trust p {
  max-width: 60ch;
}

/* ---------- The real app ---------- */

.device {
  margin-top: 48px;
}

.device-screen {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.device-screen iframe {
  display: block;
  width: 100%;
  height: 680px;
  border: 0;
}

@media (max-width: 479px) {
  .device-screen iframe {
    height: 640px;
  }
}

@media (min-width: 900px) {
  .device {
    position: relative;
    padding: 18px;
    border-radius: 36px;
    background: var(--ink);
    box-shadow: var(--shadow-lift);
    transform: perspective(1600px) rotateX(0);
    transform-origin: 50% 100%;
    transition: transform 600ms var(--ease);
  }

  .device::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink-muted);
    transform: translateY(-50%);
  }

  .device-screen {
    position: relative;
    aspect-ratio: 1180 / 760;
    border: 0;
    border-radius: 18px;
  }

  .device-screen iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1180px;
    height: 760px;
    transform: scale(var(--scale, 0.9525));
    transform-origin: 0 0;
  }
}

.try-links {
  margin-top: 20px;
  text-align: center;
}

.note {
  margin-top: 4px;
  text-align: center;
  font-size: 0.9375rem;
}

/* ---------- Closing ---------- */

.closing {
  position: relative;
  isolation: isolate;
  margin-top: var(--rhythm);
  padding-block: clamp(64px, 10vw, 128px);
  background: var(--bg-alt);
  overflow: hidden;
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse 50% 60% at 50% 50%,
    var(--blush),
    transparent
  );
}

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

.closing-arc {
  width: min(560px, 100%);
  height: auto;
}

.closing h2 {
  margin-top: 16px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 16ch;
}

.closing .btn {
  margin-top: 32px;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px 32px;
  padding-block: 40px;
}

.footer-inner .muted {
  flex: 1;
  font-size: 0.9375rem;
}

.footer-inner > a:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 899px) {
  .hero-grid,
  .feature-grid,
  .feature-flip .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-flip .feature-visual {
    order: 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 639px) {
  .chips {
    display: grid;
    grid-template-columns: repeat(4, 44px);
    justify-content: center;
    gap: 14px 20px;
  }

  .finish-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .staff-row .stock-control {
    flex-basis: 100%;
  }

  .staff-row .stock-option {
    flex: 1;
  }

  .seg-group[aria-label="Nail shape"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 22px;
    width: 100%;
  }

  .quick-fills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

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

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    transition:
      opacity 600ms var(--ease),
      transform 600ms var(--ease);
  }

  .js .reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(16px);
  }

  .js .rail-item {
    transition:
      opacity 400ms var(--ease),
      transform 400ms var(--ease);
    transition-delay: calc(var(--i) * 18ms);
  }

  .js .reveal:not(.is-in) .rail-item {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .js #try:not(.is-in) .device {
    transform: perspective(1600px) rotateX(8deg);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
  }
}
