/* Visage Landing — strict TZ build */
:root {
  --white: #FFFFFF;
  --ink: #2A0213;
  --plum: #7F164C;
  --mag: #E52889;
  --pink: #ED5BBF;
  --deep: #23010F;
  --overlay: rgba(41, 3, 25, 0.30);
  --tint: #FBEAF3;
  --text-muted-light: #6A4657;
  --text-muted-dark: rgba(255, 255, 255, 0.72);
  --glass-bg: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.18);
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1200px;
  --gradient-pill: linear-gradient(90deg, var(--plum) 0%, var(--mag) 100%);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: 'Satoshi', -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 24px;
}

@media (min-width: 1024px) {
  .container { padding-inline: 48px; }
}

/* Typography */
.h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.h3 {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 14px;
}

.accent {
  font-weight: 700;
  font-style: italic;
  color: var(--plum);
}

.accent--light { color: var(--white); }

.body-text {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.6;
}

.body-text--muted { color: var(--text-muted-light); }

.hero__copy .body-text--muted { max-width: 460px; }
.body-text--on-dark { color: var(--text-muted-dark); }

/* Sections */
.section-light {
  background: linear-gradient(180deg, var(--white) 0%, var(--tint) 100%);
}

.section-light--intro {
  padding-block: 56px 32px;
  background: linear-gradient(180deg, var(--tint) 0%, var(--white) 100%);
}

@media (min-width: 1024px) {
  .section-light--intro { padding-block: 96px 48px; }
}

.section-head--center { text-align: center; }

.section-head__sub {
  max-width: 620px;
  margin-inline: auto;
}

/* Glow */
.glow {
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.glow::before {
  content: '';
  position: absolute;
  inset: -60px;
  background: url('../img/bg.png') center / cover no-repeat;
  filter: blur(30px);
  transform: scale(1.1);
  z-index: 0;
}

.glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 1;
}

.glow > .container,
.glow > .feature-block__inner {
  position: relative;
  z-index: 2;
}

.glow--drift::before {
  animation: bgDrift 60s ease-in-out infinite alternate;
}

.glow--pulse::before {
  animation: bgDrift 60s ease-in-out infinite alternate, glowPulse 8s ease-in-out infinite;
}

@keyframes bgDrift {
  0% { background-position: 40% 50%; }
  100% { background-position: 60% 40%; }
}

@keyframes glowPulse {
  0%, 100% { filter: blur(30px) brightness(1); }
  50% { filter: blur(30px) brightness(1.1); }
}

.section-glow { padding-block: 72px; }

@media (min-width: 1024px) {
  .section-glow { padding-block: 120px; }
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius);
}

/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 100% 120% at 15% 50%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 55%),
    var(--gradient-pill);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 6px 20px -4px rgba(229, 40, 137, 0.45);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-pill:hover {
  box-shadow: 0 10px 32px -4px rgba(229, 40, 137, 0.55);
  transform: scale(1.03);
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.app-store-badge img { width: 160px; height: auto; display: block; }
.app-store-badge--lg img { width: 200px; }

.app-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -6px rgba(229, 40, 137, 0.5);
}

/* Logo */
.logo { display: inline-flex; align-items: center; }
.logo__img { height: 36px; width: auto; }

@media (min-width: 1024px) {
  .logo__img { height: 40px; }
}

.footer .logo__img--white {
  filter: brightness(0) invert(1);
}

/* Nav */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0.5px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.nav-bar.scrolled,
.nav-bar.is-open {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(42, 2, 19, 0.08);
}

.nav-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 16px;
}

.nav-bar__links {
  display: none;
  gap: 32px;
  margin-left: auto;
  margin-right: 24px;
}

.nav-bar__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-bar__links a:hover { opacity: 1; }

.nav-bar__burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.burger-icon,
.burger-icon::before,
.burger-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.burger-icon::before,
.burger-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.burger-icon::before { top: -7px; }
.burger-icon::after { top: 7px; }

.nav-bar.is-open .burger-icon { background: transparent; }
.nav-bar.is-open .burger-icon::before { top: 0; transform: rotate(45deg); }
.nav-bar.is-open .burger-icon::after { top: 0; transform: rotate(-45deg); }

.nav-bar__mobile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 24px 24px;
  border-bottom: 0.5px solid rgba(42, 2, 19, 0.08);
  background: rgba(255, 255, 255, 0.97);
}

.nav-bar__mobile a {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.nav-bar__mobile[hidden] { display: none; }

@media (min-width: 768px) {
  .nav-bar__links { display: flex; }
  .nav-bar__burger { display: none; }
}

/* Hero */
.hero {
  min-height: calc(92vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-block: 40px 56px;
}

.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 0.85fr;
    gap: 48px;
  }
}

.hero__cta { margin-top: 28px; }

.hero__visual { position: relative; }

/* Before/After slider */
.ba-slider {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(127, 22, 76, 0.45);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}

.ba-slider__layer { position: absolute; inset: 0; }

.ba-slider__after { z-index: 1; }

.ba-slider__before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

.ba-slider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
}

.ba-slider__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--white);
  transform: translateX(-50%);
}

.ba-slider__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.ba-slider__knob::before,
.ba-slider__knob::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
}

.ba-slider__knob::before {
  border-width: 4px 5px 4px 0;
  border-color: transparent rgba(42, 2, 19, 0.45) transparent transparent;
}

.ba-slider__knob::after {
  border-width: 4px 0 4px 5px;
  border-color: transparent transparent transparent rgba(42, 2, 19, 0.45);
}

.callout {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
  border-radius: 999px;
  background:
    radial-gradient(ellipse 100% 120% at 15% 50%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 55%),
    var(--gradient-pill);
  box-shadow: 0 4px 14px rgba(127, 22, 76, 0.4);
}

.callout__icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.95;
}

.ba-slider__callouts {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.callout--retouch { top: 12%; left: 10px; }
.callout--hair { top: 12%; right: 10px; }
.callout--sculpt { bottom: 12%; left: 10px; }
.callout--makeup { bottom: 12%; right: 10px; }

@media (max-width: 639px) {
  .callout {
    padding: 5px 9px 5px 7px;
    font-size: 9px;
    gap: 4px;
  }

  .callout__icon {
    width: 10px;
    height: 10px;
  }

  .callout--retouch { top: 10%; left: 8px; }
  .callout--hair { top: 10%; right: 8px; }
  .callout--sculpt { bottom: 10%; left: 8px; }
  .callout--makeup { bottom: 10%; right: 8px; }
}

/* Placeholders */
.ph {
  width: 100%;
  height: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #F5D4E8, #EDB8DC);
  border-radius: inherit;
  position: relative;
  overflow: hidden;
}

.ph span {
  font-size: 11px;
  font-weight: 500;
  color: rgba(106, 70, 87, 0.45);
  text-align: center;
  padding: 8px;
  position: relative;
  z-index: 1;
}

.ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(229, 40, 137, 0.04) 10px, rgba(229, 40, 137, 0.04) 20px);
}

.ph--portrait { aspect-ratio: 4 / 5; min-height: unset; }
.ph--profile { aspect-ratio: 3 / 4; min-height: unset; }
.ph--square { aspect-ratio: 1; min-height: unset; }
.ph--scene { aspect-ratio: 4 / 3; min-height: unset; }
.ph--filter { aspect-ratio: 3 / 4; min-height: unset; }
.ph--hair { aspect-ratio: 3 / 4; min-height: unset; }
.ph--skin { aspect-ratio: 4 / 3; min-height: unset; }

.ph--after { background: linear-gradient(145deg, #F0B8D8, #E8A0CC); }
.ph--accent { background: linear-gradient(145deg, #E8A0CC, #E090C0); }
.ph--red { background: linear-gradient(145deg, #F0B0B8, #E090A0); }
.ph--blue { background: linear-gradient(145deg, #B0C8F0, #90A8E0); }
.ph--clean { background: linear-gradient(145deg, #D0D8E8, #B8C8D8); }
.ph--vintage { background: linear-gradient(145deg, #E0D0B0, #D0C0A0); }
.ph--cinematic { background: linear-gradient(145deg, #B0C8D8, #90A8C0); }
.ph--film { background: linear-gradient(145deg, #D8C8B0, #C8B090); }
.ph--mono { background: linear-gradient(145deg, #C0C0C0, #A0A0A0); }

.glow .ph {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 0.5px solid rgba(255, 255, 255, 0.12);
}

.glow .ph span { color: rgba(255, 255, 255, 0.35); }
.glow .ph--after { background: linear-gradient(145deg, rgba(237, 91, 191, 0.22), rgba(229, 40, 137, 0.12)); }

/* Feature blocks */
.feature-block {
  padding-block: 72px;
}

@media (min-width: 1024px) {
  .feature-block { padding-block: 120px; }
}

.feature-block.section-light {
  background: linear-gradient(180deg, var(--white) 0%, var(--tint) 100%);
}

.feature-block--editor {
  background: var(--deep);
  color: var(--white);
}

.feature-block--editor .h3 {
  color: var(--white);
}

.feature-block--editor .skin-compare__stage {
  box-shadow:
    0 24px 64px -12px rgba(0, 0, 0, 0.55),
    0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

.feature-block--editor .skin-compare__hint {
  color: var(--text-muted-dark);
}

.feature-row,
.feature-block__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .feature-row,
  .feature-block__inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }

  .feature-block__inner--reverse .feature-block__text { order: 2; }
  .feature-block__inner--reverse .feature-block__visual { order: 1; }
}

.feature-block__text {
  max-width: 460px;
}

.feature-block__inner--reverse .feature-block__text {
  margin-left: auto;
}

.feature-block__inner--reverse .makeup-grid {
  margin-right: auto;
  margin-left: 0;
}

.feature-block__inner--reverse .hair-studio {
  margin-right: auto;
  margin-left: 0;
  width: 100%;
}

.feature-block__visual {
  width: 100%;
  min-width: 0;
}

/* Side by side (3.6) */
.side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  width: 100%;
}

.side-by-side figure {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
}

.side-by-side .ph {
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: unset;
}

.side-by-side__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px -12px rgba(127, 22, 76, 0.2);
}

.side-by-side--eraser {
  width: 100%;
  max-width: 100%;
}

/* Skin compare 3.1 — after main + circular before thumb */
.skin-compare {
  width: 100%;
  max-width: 520px;
}

.skin-compare__stage {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  background: #1a000c;
}

.skin-compare__layers {
  position: absolute;
  inset: 0;
  transition: transform 0.55s var(--ease);
}

.skin-compare.is-before .skin-compare__layers,
.skin-compare.is-zooming .skin-compare__layers {
  transform: scale(1.05);
}

.skin-compare__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: opacity 0.5s var(--ease);
}

.skin-compare__photo--after { opacity: 1; }
.skin-compare__photo--before { opacity: 0; }

.skin-compare.is-before .skin-compare__photo--after { opacity: 0; }
.skin-compare.is-before .skin-compare__photo--before { opacity: 1; }

.skin-compare__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(35, 1, 15, 0.55) 0%, transparent 38%);
  pointer-events: none;
  z-index: 2;
}

.skin-compare__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  pointer-events: none;
}

.skin-compare__state-label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 3;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  pointer-events: none;
}

.skin-compare__thumb {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 5;
  width: 116px;
  height: 116px;
  padding: 0;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.skin-compare__thumb-ring {
  display: none;
}

.skin-compare__thumb:hover,
.skin-compare__thumb:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 10px 32px rgba(229, 40, 137, 0.35);
}

.skin-compare__thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  transition: opacity 0.35s var(--ease);
}

.skin-compare__thumb-img--before {
  opacity: 1;
  object-position: center 18%;
  transform: scale(2.35);
  transform-origin: center 22%;
}

.skin-compare__thumb-img--after {
  opacity: 0;
  object-position: center 18%;
  transform: scale(2.35);
  transform-origin: center 22%;
}

.skin-compare.is-before .skin-compare__thumb-img--before { opacity: 0; }
.skin-compare.is-before .skin-compare__thumb-img--after { opacity: 1; }

.skin-compare__thumb-tag {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(35, 1, 15, 0.78);
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.skin-compare.is-zooming .skin-compare__thumb {
  transform: scale(1.12);
}

.skin-compare__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted-light);
  transition: opacity 0.3s var(--ease);
}

.skin-compare__hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.skin-compare__hint-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* Split compare — unified before/after */
.split-compare {
  width: 100%;
  max-width: 520px;
}

.split-compare--portrait .split-compare__stage {
  aspect-ratio: 4 / 5;
}

.split-compare--portrait .split-compare__img {
  object-position: center center;
}

.split-compare__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 56px -16px rgba(127, 22, 76, 0.28);
  cursor: pointer;
  user-select: none;
  background: #f5eef2;
}

.split-compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  transition: clip-path 0.4s var(--ease);
}

.split-compare.is-split .split-compare__img--before {
  clip-path: inset(0 50% 0 0);
}

.split-compare.is-split .split-compare__img--after {
  clip-path: inset(0 0 0 50%);
}

.split-compare.is-before .split-compare__img--before {
  clip-path: inset(0 0 0 0);
}

.split-compare.is-before .split-compare__img--after {
  clip-path: inset(0 0 0 100%);
}

.split-compare.is-after .split-compare__img--before {
  clip-path: inset(0 100% 0 0);
}

.split-compare.is-after .split-compare__img--after {
  clip-path: inset(0 0 0 0);
}

.split-compare__shade {
  position: absolute;
  bottom: 0;
  height: 42%;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.35s var(--ease);
}

.split-compare__shade--before {
  left: 0;
  width: 50%;
  background: linear-gradient(0deg, rgba(35, 1, 15, 0.72) 0%, transparent 100%);
}

.split-compare__shade--after {
  right: 0;
  width: 50%;
  background: linear-gradient(0deg, rgba(35, 1, 15, 0.72) 0%, transparent 100%);
}

.split-compare.is-before .split-compare__shade--before,
.split-compare.is-after .split-compare__shade--after {
  width: 100%;
}

.split-compare.is-before .split-compare__shade--after,
.split-compare.is-after .split-compare__shade--before {
  opacity: 0;
}

.split-compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--white);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.split-compare.is-before .split-compare__divider,
.split-compare.is-after .split-compare__divider {
  opacity: 0;
}

.split-compare__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  pointer-events: none;
}

.split-compare__label {
  position: absolute;
  bottom: 16px;
  z-index: 3;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.split-compare__label--before { left: 16px; }
.split-compare__label--after { right: 16px; }

.split-compare.is-before .split-compare__label--after,
.split-compare.is-after .split-compare__label--before {
  opacity: 0;
}

.split-compare__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted-light);
  transition: opacity 0.3s var(--ease);
}

.split-compare__hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.split-compare__hint-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.side-by-side figcaption {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted-light);
  flex-shrink: 0;
}

.glow .side-by-side figcaption { color: var(--text-muted-dark); }

/* Makeup grid 2×2 (3.3) */
.makeup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 440px;
}

.makeup-grid__tile {
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.makeup-grid .tile {
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: unset;
  overflow: hidden;
  border-radius: var(--radius);
}

.makeup-grid .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.makeup-grid figcaption {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted-dark);
  flex-shrink: 0;
}

/* Hair studio (3.4) — interactive try-on */
.hair-studio {
  width: 100%;
  max-width: 480px;
}

.hair-studio__preview {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(42, 2, 19, 0.14);
  margin-bottom: 12px;
}

.hair-studio__slides {
  position: absolute;
  inset: 0;
}

.hair-studio__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hair-studio__slide.is-active {
  opacity: 1;
}

.hair-studio__hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0.5px solid rgba(42, 2, 19, 0.1);
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(42, 2, 19, 0.1);
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  z-index: 2;
}

.hair-studio__hint.is-hidden {
  opacity: 0;
}

.hair-studio__hint-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hair-studio__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.hair-studio__thumb {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--tint);
  opacity: 0.7;
  box-shadow: 0 2px 10px rgba(42, 2, 19, 0.10);
  transition: opacity 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.hair-studio__thumb.is-active {
  opacity: 1;
  box-shadow: 0 8px 24px rgba(42, 2, 19, 0.22);
}

.hair-studio__thumb:focus-visible {
  outline: 2px solid var(--mag);
  outline-offset: 2px;
}

.hair-studio__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hair-studio__slide {
    transition: none;
  }

  .hair-studio__thumb {
    transition: none;
  }
}

/* Filters carousel (3.5) */
.filters-carousel {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.filters-carousel__track {
  display: flex;
  width: max-content;
  animation: filtersScroll 32s linear infinite;
  will-change: transform;
}

.filters-carousel__group {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

.filters-carousel__slide {
  flex: 0 0 auto;
  width: clamp(160px, 44vw, 220px);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.35);
}

@media (min-width: 1024px) {
  .filters-carousel__slide {
    width: clamp(220px, 20vw, 280px);
  }
}

.filters-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes filtersScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .filters-carousel__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    gap: 12px;
  }

  .filters-carousel__group[aria-hidden="true"] {
    display: none;
  }

  .filters-carousel__group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .filters-carousel {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .filters-carousel__slide {
    width: 100%;
  }
}

@media (max-width: 639px) {
  .makeup-grid {
    max-width: none;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .skin-compare__thumb {
    width: 96px;
    height: 96px;
    bottom: 12px;
    right: 12px;
  }
}

/* CTA */
.cta-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-block__sub { max-width: 560px; }

/* Footer */
.footer {
  background: var(--deep);
  color: var(--white);
  padding-block: 48px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }
  .footer__copy { width: 100%; text-align: center; }
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.footer__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted-dark);
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--white); }

.footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* Reveal */
.reveal,
.reveal-x {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.reveal-x { transform: translateX(40px); }

.reveal.in,
.reveal-x.in { opacity: 1; transform: none; }

[data-magnetic] { display: inline-flex; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-x { opacity: 1; transform: none; transition: none; }
  .glow--drift::before,
  .glow--pulse::before { animation: none; }
  .btn-pill:hover,
  .app-store-badge:hover { transform: none; }
  .split-compare__img { transition: none; }
  .skin-compare__photo,
  .skin-compare__layers,
  .skin-compare__thumb,
  .skin-compare__thumb-ring,
  .skin-compare__thumb-img { transition: none; }
}

@media (max-width: 639px) {
  .app-store-badge,
  .app-store-badge img { width: 100%; max-width: 280px; }
}

/* Support page */
.page-support {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.support {
  flex: 1;
  padding: calc(var(--nav-h) + 48px) 0 80px;
  background: linear-gradient(180deg, var(--white) 0%, var(--tint) 100%);
}

.support__container {
  max-width: 560px;
}

.support__header {
  margin-bottom: 36px;
}

.support__intro {
  margin-top: 12px;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.support-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-form__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.support-form__req {
  color: var(--mag);
}

.support-form__input {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(42, 2, 19, 0.12);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.support-form__input::placeholder {
  color: rgba(106, 70, 87, 0.55);
}

.support-form__input:focus {
  outline: none;
  border-color: rgba(229, 40, 137, 0.45);
  box-shadow: 0 0 0 3px rgba(229, 40, 137, 0.12);
}

.support-form__textarea {
  resize: vertical;
  min-height: 140px;
}

.support-form__submit {
  align-self: flex-start;
  margin-top: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.support__success {
  text-align: left;
  padding: 24px 0;
}

.support__success .body-text {
  margin-top: 12px;
}

.nav-bar__links a[aria-current="page"] {
  opacity: 1;
  color: var(--mag);
}

/* Legal pages */
.page-legal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal {
  flex: 1;
  padding: calc(var(--nav-h) + 48px) 0 80px;
  background: linear-gradient(180deg, var(--white) 0%, var(--tint) 100%);
}

.legal__container {
  max-width: 960px;
}

.legal__header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(42, 2, 19, 0.08);
}

.legal__updated {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-muted-light);
}

.legal__content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.legal__content > * + * {
  margin-top: 1em;
}

.legal__content h2 {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 500;
  line-height: 1.25;
  margin-top: 2.25em;
  margin-bottom: 0.5em;
  letter-spacing: -0.01em;
}

.legal__content h3 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 1.5em;
  margin-bottom: 0.35em;
  color: var(--plum);
}

.legal__content ul {
  padding-left: 1.25em;
  list-style: disc;
}

.legal__content ul li + li {
  margin-top: 0.5em;
}

.legal__content a {
  color: var(--mag);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.legal__content a:hover {
  color: var(--plum);
}

.legal__contact {
  list-style: none;
  padding-left: 0;
}

.footer__nav a[aria-current="page"] {
  color: var(--white);
}
