/* Bricolage Grotesque (OFL) + Inter */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/layr/fonts/BricolageGrotesque-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/layr/fonts/BricolageGrotesque-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/layr/fonts/BricolageGrotesque-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/layr/fonts/BricolageGrotesque-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/layr/fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --layr-obsidian: #2a2a2a;
  --layr-obsidian-72: rgb(42 42 42 / 72%);
  --layr-obsidian-58: rgb(42 42 42 / 58%);
  --layr-obsidian-40: rgb(42 42 42 / 40%);
  --layr-obsidian-30: rgb(42 42 42 / 30%);
  --layr-obsidian-18: rgb(42 42 42 / 18%);
  --layr-obsidian-10: rgb(42 42 42 / 10%);
  --layr-obsidian-06: rgb(42 42 42 / 6%);
  --layr-seashell: #ffffff;
  --layr-canvas: #f6f5f4;
  --layr-white: #ffffff;
  --layr-white-72: rgb(255 255 255 / 72%);
  --layr-denim: #5e83ae;
  --layr-denim-14: rgb(94 131 174 / 14%);
  --layr-radius-control: 9999px;
  --layr-radius-surface: 14px;
  --layr-radius-phone: 36px;
  --layr-max-width: 1120px;
  --layr-pad: clamp(20px, 4vw, 40px);
  /* Header rail: logo left edge ↔ CTA right edge */
  --layr-rail-width: min(100% - (var(--layr-pad) * 2), var(--layr-max-width));
  /* Chrome widths so body content sits between logo end and CTA start */
  --layr-brand-w: 72px;
  --layr-cta-w: 164px;
  --layr-content-gutter: 8px;
  --layr-content-width: calc(
    var(--layr-rail-width) - var(--layr-brand-w) - var(--layr-cta-w) -
      (var(--layr-content-gutter) * 2)
  );
  --layr-content-offset: calc(
    (100% - var(--layr-rail-width)) / 2 + var(--layr-brand-w) +
      var(--layr-content-gutter)
  );
  --layr-font-display: "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
  --layr-font-body: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--layr-obsidian);
  background: var(--layr-seashell);
  font-family: var(--layr-font-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--layr-seashell);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  /* clip avoids creating a scroll container that breaks position: sticky */
  overflow-x: clip;
  background: var(--layr-seashell);
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: var(--layr-radius-control);
  color: var(--layr-seashell);
  background: var(--layr-obsidian);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
}

.site-header-inner {
  display: flex;
  width: var(--layr-rail-width);
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--layr-obsidian);
  font-family: var(--layr-font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 26px;
}

.brand-inverse {
  color: var(--layr-seashell);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--layr-radius-control);
  color: var(--layr-seashell);
  background: var(--layr-obsidian);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.header-cta:hover {
  opacity: 0.88;
}

.header-cta:focus-visible {
  outline: 3px solid var(--layr-denim);
  outline-offset: 3px;
}

/* ——— Hero ——— */
.hero {
  display: grid;
  justify-items: center;
  width: var(--layr-content-width);
  margin: 28px auto 0 var(--layr-content-offset);
  text-align: center;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--layr-font-display);
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

/* Mobile-only pill under the centered logo (unused; email input is the CTA) */
.hero-cta {
  display: none;
}

.hero-signup {
  /* Keep hero input visually tighter than the headline block */
  width: 100%;
  max-width: 430px;
  margin-top: 28px;
}

.hero-signup-message {
  min-height: 1.2em;
  margin: 10px 0 0;
  color: var(--layr-obsidian-58);
  font-size: 14px;
  letter-spacing: -0.01em;
}

.hero-signup-message[data-state='error'] {
  color: #9b3b3b;
}

.hero-signup-message[data-state='success'] {
  color: var(--layr-denim);
}

.hero-sub {
  margin: 18px 0 0;
  color: var(--layr-obsidian-72);
  font-family: var(--layr-font-body);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.hero:not(.is-reduced-motion) h1,
.hero:not(.is-reduced-motion) .hero-cta,
.hero:not(.is-reduced-motion) .hero-signup,
.hero:not(.is-reduced-motion) .hero-signup-message,
.hero:not(.is-reduced-motion) .hero-sub,
.hero:not(.is-reduced-motion) .hero-stage {
  opacity: 0;
  transform: translateY(22px);
}

.hero.is-intro h1 {
  animation: hero-fade-up 900ms cubic-bezier(0.16, 1, 0.3, 1) 80ms forwards;
}

.hero.is-intro .hero-cta,
.hero.is-intro .hero-signup {
  animation: hero-fade-up 900ms cubic-bezier(0.16, 1, 0.3, 1) 180ms forwards;
}

.hero.is-intro .hero-signup-message {
  animation: hero-fade-up 900ms cubic-bezier(0.16, 1, 0.3, 1) 220ms forwards;
}

.hero.is-intro .hero-sub {
  animation: hero-fade-up 900ms cubic-bezier(0.16, 1, 0.3, 1) 280ms forwards;
}

.hero.is-intro .hero-stage {
  animation: hero-fade-up 1100ms cubic-bezier(0.16, 1, 0.3, 1) 720ms forwards;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Video behind glass phone — stays inside the shared content column */
.hero-stage {
  --hero-phone-w: 430px;
  --hero-video-w: calc(var(--hero-phone-w) * 1.1);
  --hero-stage-h: min(980px, 118vw);
  position: relative;
  width: 100%;
  max-width: 100%;
  height: var(--hero-stage-h);
  margin-top: 40px;
  overflow: hidden;
  background: var(--layr-seashell);
}

.hero-media {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  /* Match phone frame ratio so it fills the glass like the preferred crop */
  width: var(--hero-video-w);
  aspect-ratio: 697 / 1416;
  height: auto;
  transform: translate(-50%, -50%);
  /* Soft feather — sides dissolve grey/white edge into the page */
  -webkit-mask-image:
    radial-gradient(
      ellipse 84% 68% at 50% 48%,
      #000 0%,
      #000 40%,
      rgb(0 0 0 / 72%) 58%,
      rgb(0 0 0 / 22%) 74%,
      transparent 90%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 22%,
      #000 100%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      #000 12%,
      #000 88%,
      transparent 100%
    );
  mask-image:
    radial-gradient(
      ellipse 84% 68% at 50% 48%,
      #000 0%,
      #000 40%,
      rgb(0 0 0 / 72%) 58%,
      rgb(0 0 0 / 22%) 74%,
      transparent 90%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 22%,
      #000 100%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      #000 12%,
      #000 88%,
      transparent 100%
    );
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  background: transparent;
}

.hero-fade {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.hero-fade-top,
.hero-fade-btm {
  left: 50%;
  width: min(1600px, 140%);
  transform: translateX(-50%);
}

.hero-fade-top {
  top: 0;
  height: 30%;
  background: linear-gradient(180deg, #fff 0%, #fff 42%, rgb(255 255 255 / 55%) 68%, rgb(255 255 255 / 0%) 100%);
}

.hero-fade-btm {
  bottom: 0;
  height: 32%;
  background: linear-gradient(0deg, #fff 0%, #fff 40%, rgb(255 255 255 / 0%) 100%);
}

.hero-fade-side {
  top: 0;
  width: min(22vw, 240px);
  height: 100%;
}

.hero-fade-left {
  left: 0;
  background: linear-gradient(90deg, #fff 0%, #fff 40%, rgb(255 255 255 / 55%) 68%, rgb(255 255 255 / 0%) 100%);
}

.hero-fade-right {
  right: 0;
  background: linear-gradient(270deg, #fff 0%, #fff 40%, rgb(255 255 255 / 55%) 68%, rgb(255 255 255 / 0%) 100%);
}

.iphone15pro {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: var(--hero-phone-w);
  aspect-ratio: 697 / 1416;
  border-radius: 60px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 28px 50px rgb(0 0 0 / 22%));
  pointer-events: none;
}

.iphone15pro-frame {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  user-select: none;
}

.dynamic-island {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 50%;
  width: 72px;
  height: 22px;
  border-radius: var(--layr-radius-control);
  background: var(--layr-obsidian);
  transform: translateX(-50%);
}

/* ——— Story (scroll text reveal) ——— */
.story {
  width: 100%;
  margin: 80px auto 0;
}

.story-track {
  position: relative;
  height: 180vh;
}

.story-sticky {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  width: var(--layr-content-width);
  min-height: 100vh;
  margin: 0 auto 0 var(--layr-content-offset);
  padding-block: 48px;
}

.story-copy {
  width: min(100%, 720px);
  text-align: left;
}

.story-copy h2 {
  max-width: 14ch;
  margin-bottom: 28px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.story-copy p {
  max-width: 34ch;
  margin: 0 0 18px;
  color: var(--layr-obsidian-72);
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.03em;
  line-height: 1.45;
}

.reveal-word {
  display: inline;
  color: inherit;
  opacity: calc(0.16 + (var(--reveal, 0) * 0.84));
  will-change: opacity;
}

.story-copy h2 .reveal-word {
  color: var(--layr-obsidian);
}

.story-logo {
  display: inline-block;
  width: auto;
  height: 0.72em;
  margin-right: 0.12em;
  vertical-align: -0.08em;
}

.story-copy p .reveal-word {
  color: var(--layr-obsidian-72);
}

/* Soft Lovi-style inline glyphs — blurred pastel SVG, not chips */
.story-thingy {
  display: inline-grid;
  place-items: center;
  width: 1.2em;
  height: 1.2em;
  margin: 0 0.12em;
  vertical-align: -0.18em;
  transform: translateY(0.02em);
}

.story-thingy svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter:
    drop-shadow(0 0 6px rgb(94 131 174 / 28%))
    drop-shadow(0 2px 10px rgb(42 42 42 / 8%));
}

.reveal-word .story-thingy {
  opacity: calc(0.35 + (var(--reveal, 0) * 0.65));
}

.inline-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px 4px;
  border-radius: var(--layr-radius-control);
  color: var(--layr-obsidian);
  font-size: 0.82em;
  font-weight: 600;
  vertical-align: baseline;
}

.chip-denim {
  background: var(--layr-denim-14);
  color: var(--layr-denim);
}

.chip-obsidian {
  background: var(--layr-obsidian);
  color: var(--layr-seashell);
}

.chip-soft {
  background: var(--layr-obsidian-10);
}

.phone-shell {
  position: relative;
  width: min(100%, 260px);
  overflow: hidden;
  border: 7px solid var(--layr-obsidian);
  border-radius: var(--layr-radius-phone);
  background: var(--layr-obsidian);
}

.phone-shell img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--layr-radius-phone) - 8px);
}

.phone-shell-lg {
  width: min(100%, 300px);
}

.story.is-reduced-motion .reveal-word {
  opacity: 1;
}

/* ——— Closet scan (Lovi-style 3-phone fan) ——— */
.closet-scan {
  width: 100%;
  margin-top: 40px;
}

.closet-scan-track {
  position: relative;
  height: 260vh;
}

.closet-scan-sticky {
  position: sticky;
  top: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 28px;
  width: var(--layr-content-width);
  min-height: 100vh;
  margin: 0 auto 0 var(--layr-content-offset);
  padding-block: 80px 32px;
  overflow: visible;
}

.closet-stage {
  --closet-spread: 0;
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 860px);
  height: clamp(380px, 58vh, 540px);
  margin-inline: auto;
  overflow: visible;
  perspective: 1400px;
}

.closet-phone {
  position: absolute;
  top: 50%;
  left: 50%;
  will-change: transform, opacity, filter;
}

.closet-phone-center {
  z-index: 3;
  width: min(42%, 236px);
  transform: translate(-50%, -50%) scale(calc(0.96 + (var(--closet-spread) * 0.04)));
  filter: drop-shadow(0 24px 36px rgb(0 0 0 / calc(0.14 + (var(--closet-spread) * 0.08))));
}

.closet-phone-left,
.closet-phone-right {
  z-index: 2;
  width: min(36%, 200px);
  opacity: calc(0.15 + (var(--closet-spread) * 0.85));
  filter: drop-shadow(0 16px 26px rgb(0 0 0 / calc(0.08 + (var(--closet-spread) * 0.08))));
}

/* Start stacked behind center; fan out on scroll */
.closet-phone-left {
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--closet-spread) * -210px))
    translateY(calc(var(--closet-spread) * 20px))
    rotate(calc(var(--closet-spread) * -10deg))
    scale(calc(0.9 + (var(--closet-spread) * 0.04)));
}

.closet-phone-right {
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--closet-spread) * 210px))
    translateY(calc(var(--closet-spread) * 20px))
    rotate(calc(var(--closet-spread) * 10deg))
    scale(calc(0.9 + (var(--closet-spread) * 0.04)));
}

.phone-shell-scan {
  width: 100%;
  overflow: hidden;
  box-shadow: none;
}

.phone-shell-scan > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.2;
  object-fit: cover;
  object-position: top center;
}

.scan-screen {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 9 / 19.2;
  background: #1a1f1c;
}

.scan-screen > img,
.scan-screen > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 0;
}

.scan-chrome {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18% 14% 16%;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 28%) 0%, transparent 28%, transparent 68%, rgb(0 0 0 / 42%) 100%);
}

.scan-bracket {
  position: absolute;
  inset: 22% 16%;
  border: 1.5px solid rgb(255 255 255 / 0%);
  border-radius: 8px;
}

.scan-bracket::before,
.scan-bracket::after {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2.5px solid #fff;
  content: "";
}

.scan-bracket::before {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 6px;
}

.scan-bracket::after {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 6px;
}

.scan-chrome::before,
.scan-chrome::after {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2.5px solid #fff;
  content: "";
}

.scan-chrome::before {
  bottom: 28%;
  left: 16%;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 6px;
}

.scan-chrome::after {
  right: 16%;
  bottom: 28%;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 6px;
}

.scan-shutter {
  position: absolute;
  bottom: 11%;
  left: 50%;
  width: 48px;
  height: 48px;
  border: 3px solid #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 3px rgb(0 0 0 / 25%);
  background: rgb(255 255 255 / 88%);
}

.scan-chrome p {
  position: absolute;
  bottom: 22%;
  left: 50%;
  width: max-content;
  max-width: 86%;
  margin: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 8px rgb(0 0 0 / 45%);
  transform: translateX(-50%);
}

.closet-scan-copy {
  width: min(100%, 560px);
  text-align: center;
}

.closet-scan-copy h2 {
  margin-bottom: 14px;
  font-family: var(--layr-font-display);
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.closet-scan-copy p {
  margin: 0;
  color: var(--layr-obsidian-72);
  font-size: clamp(16px, 2vw, 18px);
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.tag-marquee {
  width: 100%;
  margin-inline: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tag-marquee-track {
  display: flex;
  width: max-content;
  gap: 10px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  animation: tag-marquee 28s linear infinite;
}

.tag-marquee-track li {
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--layr-obsidian-10);
  border-radius: var(--layr-radius-control);
  background: var(--layr-seashell);
  color: var(--layr-obsidian-72);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

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

.closet-scan.is-reduced-motion .closet-stage {
  --closet-spread: 1;
}

.closet-scan.is-reduced-motion .tag-marquee-track {
  animation: none;
  flex-wrap: wrap;
  justify-content: center;
  width: min(100%, 640px);
  margin-inline: auto;
}

.closet-scan.is-reduced-motion .tag-marquee {
  mask-image: none;
  -webkit-mask-image: none;
  width: 100%;
  margin-inline: 0;
}

/* ——— Wardrobe insights (stack → fan → dress) ——— */
.wardrobe-insights {
  display: grid;
  gap: clamp(80px, 11vw, 132px);
  width: 100%;
  margin: 120px auto 0;
}

.insight-panel {
  display: grid;
  gap: 32px;
  justify-items: center;
  width: var(--layr-content-width);
  margin: 0 auto 0 var(--layr-content-offset);
}

.outfit-build {
  gap: 0;
}

.outfit-build-track {
  position: relative;
  width: 100%;
  height: 420vh;
}

.outfit-build-sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  justify-items: center;
  gap: clamp(12px, 2.4vh, 28px);
  width: 100%;
  height: 100vh;
  padding: clamp(72px, 10vh, 96px) 0 clamp(20px, 3vh, 36px);
  box-sizing: border-box;
  overflow: hidden;
}

.outfit-build-copy {
  position: relative;
  z-index: 3;
  width: min(100%, 560px);
  pointer-events: none;
}

.outfit-choreo {
  --progress: 0;
  position: relative;
  width: min(100%, 960px);
  height: min(68vh, 580px);
  align-self: center;
}

.outfit-items {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.outfit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(42vw, 220px);
  margin: 0;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  will-change: transform, opacity, filter;
  filter: drop-shadow(0 18px 28px rgb(42 42 42 / 14%));
}

.outfit-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.outfit-stage {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(38vw, 280px);
  aspect-ratio: 938 / 1677;
  overflow: visible;
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.94);
  filter: drop-shadow(0 22px 36px rgb(42 42 42 / 16%));
  will-change: transform, opacity;
}

.outfit-model {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.outfit-model-base {
  position: relative;
  transition: opacity 360ms ease;
}

.outfit-stage.is-dressed .outfit-model-base {
  opacity: 0;
}

.outfit-model-dressed {
  position: absolute;
  inset: 0;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transform: scale(1.06);
  filter: blur(3px);
  transition:
    opacity 480ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 560ms cubic-bezier(0.22, 1.35, 0.36, 1),
    filter 420ms ease;
}

.outfit-stage.is-dressed .outfit-model-dressed {
  opacity: 1;
  transform: scale(1);
  filter: none;
}

.outfit-impact {
  position: absolute;
  inset: 18% 12% 28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 70%) 0%, transparent 68%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.outfit-stage.is-dressing .outfit-impact {
  animation: outfit-impact 700ms cubic-bezier(0.16, 1, 0.3, 1) 40ms both;
}

.wardrobe-insights.is-reduced-motion .outfit-item,
.wardrobe-insights.is-reduced-motion .outfit-stage {
  opacity: 1 !important;
  filter: none !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.wardrobe-insights.is-reduced-motion .outfit-item {
  display: none;
}

.wardrobe-insights.is-reduced-motion .outfit-stage {
  opacity: 1 !important;
  transform: translate(-50%, -46%) scale(1) !important;
}

.wardrobe-insights.is-reduced-motion .outfit-model-dressed {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.insight-copy {
  width: min(100%, 560px);
  text-align: center;
}

.insight-copy h2 {
  margin: 0;
  font-family: var(--layr-font-display);
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.insight-panel-track {
  gap: 40px;
}

.style-swipe {
  gap: 28px;
}

.style-swipe-stage {
  --phone-w: min(42vw, 248px);
  --phone-h: calc(var(--phone-w) * 19.4 / 9);
  --style-item: var(--phone-w);
  --style-gap: clamp(28px, 5vw, 52px);
  position: relative;
  width: 100%;
  max-width: 100%;
  height: calc(var(--phone-h) + 40px);
  margin-inline: 0;
  overflow: hidden;
}

.style-swipe-scroller {
  position: absolute;
  inset: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc(50% - (var(--phone-w) / 2));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x;
}

.style-swipe-scroller::-webkit-scrollbar {
  display: none;
}

.style-swipe-scroller.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.style-swipe-rail {
  display: flex;
  align-items: stretch;
  gap: var(--style-gap);
  width: max-content;
  height: 100%;
  padding-inline: calc(50% - (var(--phone-w) / 2));
  box-sizing: content-box;
}

.style-look {
  position: relative;
  flex: none;
  width: var(--style-item);
  height: 100%;
  margin: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  opacity: 0.5;
  transition: opacity 320ms ease;
}

.style-look.is-active {
  opacity: 1;
}

.style-look img {
  position: absolute;
  left: 50%;
  bottom: 8%;
  display: block;
  width: auto;
  max-width: 78%;
  height: 80%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 28px rgb(42 42 42 / 14%));
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.style-phone-frame {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: var(--phone-w);
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 28px 44px rgb(0 0 0 / 18%));
}

.style-phone-shell {
  width: 100%;
  background: transparent;
  overflow: visible;
}

.style-phone-window {
  width: 100%;
  height: var(--phone-h);
  aspect-ratio: auto;
  border-radius: calc(var(--layr-radius-phone) - 8px);
  background: transparent;
}

@keyframes outfit-impact {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  35% {
    opacity: 0.85;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.wardrobe-insights.is-reduced-motion .style-swipe-rail {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .outfit-model-dressed,
  .outfit-item,
  .outfit-stage,
  .outfit-impact,
  .style-look {
    transition: none;
    animation: none;
  }
}

/* ——— Feature bands ——— */
.feature-band,
.feature-band-alt,
.bento,
.assistant,
.love,
.steps,
.decide,
.faq {
  width: var(--layr-content-width);
  margin-left: var(--layr-content-offset);
  margin-right: auto;
}

.feature-band {
  margin-top: 128px;
  text-align: center;
}

.feature-copy {
  width: min(100%, 560px);
  margin-inline: auto;
}

.feature-copy h2,
.assistant-intro h2,
.love h2,
.steps-intro h2,
.decide h2,
.faq h2,
.join-inner h2,
.story-copy h2 {
  margin-bottom: 16px;
  font-family: var(--layr-font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h3,
.faq-item summary,
.decide-card-title,
.bento-copy h3,
.love-quote,
.steps-list h3,
.assistant-points h3 {
  font-family: var(--layr-font-display);
}

.feature-copy p,
.steps-intro p,
.join-sub {
  margin: 0;
  color: var(--layr-obsidian-72);
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.feature-visual {
  position: relative;
  display: grid;
  justify-items: center;
  margin-top: 48px;
}

.feature-visual-wide {
  margin-top: 40px;
}

.feature-photo {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 24px;
  background: var(--layr-canvas);
}

.tag-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: min(100%, 640px);
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tag-rail li {
  padding: 8px 14px;
  border: 1px solid var(--layr-obsidian-10);
  border-radius: var(--layr-radius-control);
  background: var(--layr-seashell);
  color: var(--layr-obsidian-72);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Magic UI–style bento grid */
.bento {
  margin-top: 72px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(24rem, auto);
  gap: 16px;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 24rem;
  overflow: hidden;
  border: 1px solid var(--layr-obsidian-10);
  border-radius: var(--layr-radius-surface);
  background: var(--layr-canvas);
  isolation: isolate;
}

.bento-span-1 {
  grid-column: span 1;
}

.bento-span-2 {
  grid-column: span 2;
}

.bento-bg {
  position: absolute;
  inset: 0 0 0;
  z-index: 0;
  pointer-events: none;
}

.bento-bg-phone {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 24px;
  mask-image: linear-gradient(to bottom, #000 58%, transparent 92%);
}

.bento-bg-phone .phone-shell {
  width: min(48%, 210px);
}

.bento-span-2 .bento-bg-phone .phone-shell {
  width: min(34%, 220px);
}

.bento-bg-photo {
  mask-image: linear-gradient(to bottom, #000 52%, transparent 90%);
}

.bento-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.bento-body {
  position: relative;
  z-index: 2;
  padding: 48px 22px 20px;
  background: linear-gradient(
    to top,
    var(--layr-canvas) 0%,
    var(--layr-canvas) 42%,
    rgb(246 245 244 / 0%) 100%
  );
}

.bento-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-copy h3 {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.bento-copy p {
  margin: 0;
  max-width: 42ch;
  color: var(--layr-obsidian-58);
  font-size: 14px;
  line-height: 1.45;
}

.bento-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--layr-obsidian);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  opacity: 1;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease;
}

.bento-cta svg {
  flex-shrink: 0;
}

.bento-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: transparent;
  transition: background 300ms ease;
}

@media (hover: hover) and (min-width: 901px) {
  .bento-grid[data-pointer] {
    cursor: none;
  }

  .bento-grid[data-pointer] .bento-cta {
    cursor: none;
  }

  .bento-card:hover .bento-copy {
    transform: translateY(-40px);
  }

  .bento-cta {
    position: absolute;
    left: 20px;
    bottom: 20px;
    margin-top: 0;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
  }

  .bento-card:hover .bento-cta {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .bento-card:hover .bento-veil {
    background: rgb(42 42 42 / 3%);
  }
}

/* Magic UI–style pointer */
.layr-pointer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--layr-obsidian);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition:
    opacity 160ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, left, top;
}

.layr-pointer.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.layr-pointer svg {
  display: block;
  width: 24px;
  height: 24px;
  rotate: -70deg;
  fill: currentColor;
  stroke: var(--layr-seashell);
  stroke-width: 1;
}

.feature-band-alt {
  margin-top: 112px;
}

/* React Bits CurvedInput */
.curved-input {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.curved-input__surface {
  display: block;
  width: 100%;
}

.curved-input__svg {
  display: block;
  overflow: visible;
  width: 100%;
  height: auto;
  cursor: text;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.curved-input__svg text {
  font-family: var(--layr-font-body);
}

.curved-input__ring {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.curved-input--focused .curved-input__ring {
  opacity: 0.28;
}

.curved-input__button {
  cursor: pointer;
  outline: none;
}

.curved-input__button-bg {
  transition:
    filter 0.2s ease,
    opacity 0.2s ease;
}

.curved-input__button:hover .curved-input__button-bg {
  filter: brightness(1.12);
}

.curved-input__button:active .curved-input__button-bg {
  filter: brightness(0.94);
}

.curved-input__button:focus-visible .curved-input__button-bg {
  filter: brightness(1.18);
}

.curved-input__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;
  pointer-events: none;
  outline: none;
}

.hero-signup.is-cta-focus .curved-input__svg {
  animation: hero-cta-pulse 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hero-cta-pulse {
  0% {
    filter: drop-shadow(0 0 0 rgb(94 131 174 / 0%));
  }
  40% {
    filter: drop-shadow(0 8px 24px rgb(94 131 174 / 28%));
  }
  100% {
    filter: drop-shadow(0 0 0 rgb(94 131 174 / 0%));
  }
}

/* ——— Assistant ——— */
.assistant {
  margin-top: 140px;
}

.assistant-intro {
  text-align: center;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--layr-denim);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-meta {
  margin-bottom: 8px !important;
  color: var(--layr-denim);
  font-size: 13px;
  font-weight: 600;
}

.assistant-scene {
  position: relative;
  width: min(100%, 860px);
  margin: 48px auto 0;
  padding: 8px 0 0;
  isolation: isolate;
}

.assistant-scene::before {
  content: "";
  position: absolute;
  inset: -4% -14% 8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 36% at 18% 28%, rgb(94 131 174 / 22%), transparent 70%),
    radial-gradient(ellipse 48% 40% at 82% 42%, rgb(94 131 174 / 16%), transparent 72%),
    radial-gradient(ellipse 38% 32% at 48% 78%, rgb(94 131 174 / 12%), transparent 70%);
  filter: blur(28px);
}

.assistant-scene > * {
  position: relative;
  z-index: 1;
}

.assistant-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 22px;
}

.assistant-row-user {
  justify-content: flex-end;
}

.assistant-card {
  position: relative;
  width: fit-content;
  max-width: min(92%, 560px);
  padding: 16px 18px;
  border: 1px solid var(--layr-obsidian-10);
  border-radius: var(--layr-radius-surface);
  background: var(--layr-seashell);
}

.assistant-card p {
  margin: 0;
  color: var(--layr-obsidian);
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.42;
}

.assistant-card-mood {
  width: min(100%, 420px);
}

.assistant-card-products {
  width: 100%;
  max-width: none;
  margin-bottom: 22px;
  padding: 20px;
  background: var(--layr-obsidian-06);
}

.assistant-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.assistant-product-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--layr-obsidian-10);
  border-radius: var(--layr-radius-surface);
  background: var(--layr-seashell);
}

.assistant-product-card strong {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: var(--layr-radius-control);
  color: var(--layr-denim);
  background: var(--layr-denim-14);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.assistant-product-card .backlight {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 148px;
  isolation: isolate;
}

.assistant-product-card .backlight::before {
  content: "";
  position: absolute;
  inset: 8% 2%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgb(94 131 174 / 38%) 0%,
    rgb(94 131 174 / 16%) 40%,
    transparent 68%
  );
  filter: blur(20px);
  pointer-events: none;
}

.assistant-product-card .backlight img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 148px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgb(94 131 174 / 28%))
    drop-shadow(0 12px 20px rgb(94 131 174 / 16%));
}

.assistant-product-card h4 {
  margin: 0;
  font-family: var(--layr-font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.assistant-product-card p {
  margin: 0;
  color: var(--layr-obsidian-58);
  font-size: 13px;
}

.assistant-mood {
  margin-top: 14px;
}

.assistant-mood input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 10px;
  border-radius: var(--layr-radius-control);
  background: linear-gradient(
    90deg,
    var(--layr-obsidian-10) 0%,
    var(--layr-denim-14) 50%,
    var(--layr-denim) 100%
  );
  outline: none;
}

.assistant-mood input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border: 2px solid var(--layr-denim);
  border-radius: 999px;
  background: var(--layr-seashell);
  box-shadow: 0 4px 12px rgb(42 42 42 / 12%);
}

.assistant-mood input[type="range"]::-moz-range-track {
  height: 10px;
  border: 0;
  border-radius: var(--layr-radius-control);
  background: linear-gradient(
    90deg,
    var(--layr-obsidian-10) 0%,
    var(--layr-denim-14) 50%,
    var(--layr-denim) 100%
  );
}

.assistant-mood input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 2px solid var(--layr-denim);
  border-radius: 999px;
  background: var(--layr-seashell);
  box-shadow: 0 4px 12px rgb(42 42 42 / 12%);
}

.assistant-mood-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--layr-obsidian-58);
  font-size: 13px;
}

.assistant-mood-labels span.is-active {
  color: var(--layr-denim);
  font-weight: 600;
}

.assistant-cta-row {
  display: grid;
  gap: 12px;
  justify-content: end;
  margin-top: 8px;
}

.assistant-pill {
  display: inline-flex;
  min-height: 52px;
  min-width: 280px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 22px;
  border-radius: var(--layr-radius-control);
  color: var(--layr-seashell);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--layr-obsidian);
}

.assistant-pill::after {
  content: "↗";
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--layr-obsidian);
  background: var(--layr-seashell);
  font-size: 16px;
  font-weight: 700;
}

.assistant-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--layr-seashell);
  border-radius: 999px;
  overflow: hidden;
}

.assistant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assistant-avatar-ai {
  color: var(--layr-seashell);
  background: var(--layr-denim);
  font-family: var(--layr-font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.assistant-avatar-user {
  background: var(--layr-canvas);
}

.assistant-avatar-user img {
  object-position: center 12%;
}

.assistant-cta-row .assistant-pill:nth-child(2) {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 280ms ease;
}

.assistant-scene:hover .assistant-cta-row .assistant-pill:nth-child(2),
.assistant-scene.is-engaged .assistant-cta-row .assistant-pill:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .assistant-product-card .backlight::before,
  .assistant-scene::before {
    display: none;
  }

  .assistant-product-card .backlight img,
  .decide-card-glow {
    filter: none;
  }

  .card-spotlight::before {
    display: none;
  }

  .assistant-cta-row .assistant-pill:nth-child(2) {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* ——— Love / problems ——— */
.love {
  margin-top: 140px;
  text-align: center;
}

.love-marquee {
  --gap: 12px;
  --duration: 42s;
  position: relative;
  width: 100%;
  margin: 48px 0 0;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.love-marquee-track {
  display: flex;
  width: max-content;
  gap: var(--gap);
  animation: love-marquee var(--duration) linear infinite;
}

.love-marquee:hover .love-marquee-track {
  animation-play-state: paused;
}

.love-marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: var(--gap);
}

.love-card {
  flex: 0 0 auto;
  width: min(320px, 78vw);
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--layr-obsidian-10);
  border-radius: 20px;
  background: var(--layr-seashell);
  text-align: left;
}

.love-quote {
  margin-bottom: 28px;
  font-family: var(--layr-font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.love-card > p:last-child {
  margin: 0;
  color: var(--layr-obsidian-72);
  font-size: 14px;
  line-height: 1.5;
}

@keyframes love-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - (var(--gap) / 2)));
  }
}

/* ——— Steps ——— */
.steps {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
  margin-top: 140px;
}

.steps-intro {
  position: sticky;
  top: 96px;
}

.steps-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--layr-obsidian-10);
  border-radius: 20px;
  background: var(--layr-obsidian-06);
}

.step-num {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: var(--layr-radius-control);
  color: var(--layr-seashell);
  background: var(--layr-obsidian);
  font-size: 13px;
  font-weight: 700;
}

.steps-list h3 {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.steps-list p {
  margin: 0;
  color: var(--layr-obsidian-72);
  font-size: 14px;
  line-height: 1.5;
}

/* ——— Decide ——— */
.decide {
  margin-top: 140px;
  text-align: center;
}

.decide-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.decide-card {
  display: block;
  text-decoration: none;
}

.decide-card-glow {
  display: block;
  filter: url(#layr-backlight);
}

.decide-card-panel {
  display: grid;
  place-content: center;
  min-height: 112px;
  padding: 28px 24px;
  border: 1px solid var(--layr-obsidian-10);
  border-radius: 20px;
  background:
    linear-gradient(180deg, var(--layr-denim-14), transparent 58%),
    var(--layr-seashell);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 180ms ease;
}

.decide-card:hover .decide-card-panel {
  border-color: var(--layr-obsidian-30);
  background:
    linear-gradient(180deg, rgb(94 131 174 / 22%), transparent 60%),
    var(--layr-seashell);
  transform: translateY(-2px);
}

.decide-card-title {
  display: block;
  color: var(--layr-obsidian);
  font-family: var(--layr-font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* ——— FAQ ——— */
.faq {
  margin-top: 140px;
}

.faq h2 {
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 10px;
  width: min(100%, 720px);
  margin: 40px auto 0;
}

.faq-item {
  border: 1px solid var(--layr-obsidian-10);
  border-radius: 18px;
  background: var(--layr-seashell);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 24px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  float: right;
  color: var(--layr-obsidian-40);
  content: "+";
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer {
  padding: 0 24px 22px;
}

.faq-answer p {
  margin: 0;
  color: var(--layr-obsidian-72);
  font-size: 15px;
  line-height: 1.6;
}

/* ——— Clarity (sticky pull-up under bento) ——— */
.clarity {
  width: 100%;
  margin: 0;
  background: var(--layr-seashell);
}

.clarity-track {
  position: relative;
  height: 280vh;
}

.clarity-sticky {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  width: var(--layr-content-width);
  min-height: 100vh;
  margin: 0 auto 0 var(--layr-content-offset);
  padding-block: 48px;
  overflow: visible;
}

.clarity-copy {
  max-width: 11.5em;
  margin: 0;
  font-family: var(--layr-font-display);
  font-size: clamp(40px, 6.2vw, 72px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: var(--layr-obsidian);
  text-align: left;
  will-change: transform, opacity;
  transform: translate3d(0, 48vh, 0);
  opacity: 0;
}

.clarity-logo {
  display: inline-block;
  width: auto;
  height: 0.72em;
  margin-right: 0.12em;
  vertical-align: -0.08em;
}

.clarity.is-reduced-motion .clarity-copy {
  transform: none;
  opacity: 1;
  will-change: auto;
}

/* ——— Join CTA ——— */
.join {
  margin-top: 140px;
}

.join-inner {
  position: relative;
  width: var(--layr-content-width);
  margin: 0 auto 0 var(--layr-content-offset);
  padding: clamp(48px, 8vw, 88px) clamp(24px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 28px;
  color: var(--layr-seashell);
  background: var(--layr-obsidian);
  text-align: center;
}

.card-spotlight {
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(255, 255, 255, 0.25);
}

.card-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mouse-x) var(--mouse-y),
    var(--spotlight-color),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.card-spotlight:hover::before,
.card-spotlight:focus-within::before {
  opacity: 0.6;
}

.join-inner > * {
  position: relative;
  z-index: 1;
}

.join-inner h2 {
  color: var(--layr-seashell);
}

.join-kicker {
  margin: 0 0 10px;
  color: var(--layr-seashell);
  font-family: var(--layr-font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.join-sub {
  color: var(--layr-white-72);
}

.signup-form,
.join-signup {
  width: min(100%, 430px);
  margin: 36px auto 0;
}

.signup-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 56px;
  border-radius: var(--layr-radius-control);
  background: var(--layr-seashell);
}

.signup-control:focus-within {
  outline: 3px solid rgb(255 255 255 / 28%);
  outline-offset: 3px;
}

.signup-control input[type="email"] {
  min-width: 0;
  padding: 14px 22px;
  border: 0;
  border-radius: var(--layr-radius-control);
  outline: 0;
  color: var(--layr-obsidian);
  background: transparent;
  font-size: 16px;
  line-height: 1.4;
}

.signup-control input::placeholder {
  color: var(--layr-obsidian-58);
  opacity: 1;
}

.signup-control button {
  min-width: 200px;
  padding: 14px 22px;
  border: 0;
  border-radius: var(--layr-radius-control);
  color: var(--layr-seashell);
  background: var(--layr-denim);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.signup-control button:hover {
  opacity: 0.9;
}

.signup-control button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.form-note,
.form-message {
  margin: 12px 0 0;
  color: var(--layr-white-72);
  font-size: 13px;
  line-height: 1.5;
}

.form-message {
  min-height: 20px;
  color: var(--layr-seashell);
  font-weight: 600;
}

.form-message[data-state="error"] {
  color: #ffb4b4;
}

.form-message[data-state="success"] {
  color: #b8e0c8;
}

/* ——— Footer (Lóvi-style) ——— */
.site-footer {
  margin-top: 96px;
  padding: 72px 0 36px;
  color: var(--layr-obsidian);
  background: var(--layr-seashell);
  border-top: 1px solid var(--layr-obsidian-06);
}

.footer-social {
  width: var(--layr-content-width);
  margin: 0 0 72px var(--layr-content-offset);
}

.footer-social-copy {
  max-width: 11.5em;
  margin: 0;
  font-family: var(--layr-font-display);
  font-size: clamp(36px, 5.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
}

.footer-social-label {
  color: inherit;
}

.footer-social-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 0.58em;
  height: 0.58em;
  color: var(--layr-obsidian);
  transition: transform 180ms ease, color 180ms ease;
}

.footer-social-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: var(--layr-denim);
}

.footer-social-link:hover .footer-social-icon,
.footer-social-link:focus-visible .footer-social-icon {
  color: var(--layr-denim);
  transform: translateY(-2px);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 28px;
  padding: 0 18px;
  border-radius: var(--layr-radius-control);
  color: var(--layr-seashell);
  background: var(--layr-obsidian);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.footer-cta:hover {
  opacity: 0.88;
}

.footer-cta:focus-visible {
  outline: 3px solid var(--layr-denim);
  outline-offset: 3px;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  width: var(--layr-content-width);
  margin: 0 auto 0 var(--layr-content-offset);
  padding-top: 28px;
  border-top: 1px solid var(--layr-obsidian-10);
}

.footer-bar-start,
.footer-bar-end {
  display: flex;
  align-items: center;
  gap: 16px 20px;
  flex-wrap: wrap;
}

.footer-copy,
.footer-note {
  margin: 0;
  color: var(--layr-obsidian-40);
  font-size: 13px;
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.footer-links a {
  color: var(--layr-obsidian-40);
  font-size: 13px;
  text-decoration: none;
  text-underline-offset: 3px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--layr-obsidian);
  text-decoration: underline;
}

.footer-note {
  color: var(--layr-obsidian);
  font-weight: 500;
}

.footer-note [data-highlighter] {
  position: relative;
  display: inline-block;
  background: transparent;
}

/* ——— Legal pages (preserved) ——— */
.legal-page {
  background: var(--layr-obsidian-06);
}

.legal-header {
  border-bottom: 1px solid var(--layr-obsidian-10);
  background: var(--layr-seashell);
}

.legal-header-inner {
  display: flex;
  width: min(calc(100% - 40px), 880px);
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.legal-nav a {
  color: var(--layr-obsidian-72);
  font-size: 14px;
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  color: var(--layr-obsidian);
  font-weight: 700;
}

.legal-nav a:hover,
.legal-nav a:focus-visible,
.legal-document a:hover,
.legal-document a:focus-visible {
  color: var(--layr-obsidian);
  text-decoration: underline;
  text-decoration-color: var(--layr-denim);
  text-decoration-thickness: 2px;
}

.legal-main {
  width: min(calc(100% - 40px), 880px);
  margin: 32px auto 72px;
}

.legal-document {
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid var(--layr-obsidian-10);
  border-radius: var(--layr-radius-surface);
  background: var(--layr-seashell);
}

.legal-eyebrow {
  margin-bottom: 14px;
  color: var(--layr-obsidian-72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-document h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(42px, 7vw, 68px);
  text-align: left;
}

.legal-updated {
  margin: 18px 0 0;
  color: var(--layr-obsidian-72);
  font-size: 14px;
}

.legal-summary {
  margin: 40px 0 0;
  padding: 22px;
  border-left: 4px solid var(--layr-denim);
  border-radius: 0 var(--layr-radius-surface) var(--layr-radius-surface) 0;
  background: var(--layr-obsidian-06);
  color: var(--layr-obsidian-72);
  font-size: 16px;
  line-height: 1.65;
}

.legal-document section {
  padding-top: 42px;
}

.legal-document h2 {
  margin-bottom: 14px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.legal-document h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  line-height: 1.4;
}

.legal-document p,
.legal-document li {
  color: var(--layr-obsidian-72);
  font-size: 15px;
  line-height: 1.72;
}

.legal-document p {
  margin-bottom: 14px;
}

.legal-document ul,
.legal-document ol {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-document a {
  color: var(--layr-obsidian);
  font-weight: 650;
  text-underline-offset: 3px;
}

.legal-contact {
  margin-top: 42px;
  padding: 24px;
  border-radius: var(--layr-radius-surface);
  color: var(--layr-seashell);
  background: var(--layr-obsidian);
}

.legal-contact h2,
.legal-contact p,
.legal-contact a {
  color: var(--layr-seashell);
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

.legal-footer {
  padding: 32px 20px;
  color: var(--layr-white-72);
  background: var(--layr-obsidian);
  font-size: 13px;
  text-align: center;
}

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

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .story-sticky {
    min-height: 100svh;
    padding-block: 32px;
  }

  .story-copy h2,
  .story-copy p {
    max-width: none;
  }

  .closet-scan-track {
    height: 220vh;
  }

  .closet-stage {
    width: min(100%, 420px);
    height: clamp(300px, 48vh, 420px);
  }

  .closet-phone {
    width: min(46%, 168px);
  }

  .closet-phone-left {
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--closet-spread) * -120px))
      scale(calc(1 - (var(--closet-spread) * 0.1)))
      rotate(calc(var(--closet-spread) * 2deg));
  }

  .closet-phone-right {
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--closet-spread) * 120px))
      scale(calc(1 - (var(--closet-spread) * 0.1)))
      rotate(calc(var(--closet-spread) * -2deg));
  }

  .closet-center {
    width: min(58%, 220px);
  }

  .bento-grid,
  .assistant-points {
    grid-template-columns: 1fr 1fr;
  }

  .bento-span-1,
  .bento-span-2 {
    grid-column: span 1;
  }

  .bento-grid {
    grid-auto-rows: minmax(20rem, auto);
  }

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

  .steps-intro {
    position: static;
  }
}

@media (max-width: 700px) {
  /* Keep a practical header layout on phones */
  :root {
    --layr-brand-w: 0px;
    --layr-cta-w: 0px;
    --layr-content-gutter: 0px;
  }

  .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: linear-gradient(
      180deg,
      #fff 0%,
      rgb(255 255 255 / 96%) 62%,
      rgb(255 255 255 / 0%) 100%
    );
    pointer-events: none;
  }

  .site-header-inner {
    justify-content: center;
    min-height: 52px;
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: 14px;
  }

  .brand {
    pointer-events: auto;
  }

  .brand img {
    height: 34px;
  }

  .header-cta {
    display: none;
  }

  #main {
    padding-top: 64px;
  }

  .hero {
    margin-top: 8px;
  }

  .hero h1 {
    font-size: clamp(32px, 8.8vw, 44px);
    padding: 0 12px;
    line-height: 1.02;
  }

  .hero-signup {
    width: min(100%, 360px);
    max-width: 100%;
    margin-top: 24px;
  }

  .hero-sub {
    margin-top: 16px;
    font-size: clamp(15px, 4vw, 18px);
    padding: 0 16px;
    line-height: 1.35;
  }

  .hero-stage {
    /* Keep full phone + bezel inside the viewport with breathing room */
    --hero-phone-w: min(252px, calc(100vw - 64px));
    --hero-video-w: calc(var(--hero-phone-w) * 1.04);
    --hero-stage-h: min(680px, calc(var(--hero-phone-w) * 2.1));
    margin-top: 28px;
  }

  .hero-fade-side {
    width: min(12vw, 48px);
  }

  .hero-fade-top {
    height: 18%;
    background: linear-gradient(
      180deg,
      #fff 0%,
      rgb(255 255 255 / 70%) 45%,
      rgb(255 255 255 / 0%) 100%
    );
  }

  .hero-fade-btm {
    height: 24%;
  }

  .iphone15pro {
    border-radius: 42px;
  }

  .hero-media {
    -webkit-mask-image:
      radial-gradient(
        ellipse 92% 78% at 50% 48%,
        #000 0%,
        #000 52%,
        rgb(0 0 0 / 80%) 72%,
        transparent 96%
      ),
      linear-gradient(to bottom, transparent 0%, #000 14%, #000 100%),
      linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image:
      radial-gradient(
        ellipse 92% 78% at 50% 48%,
        #000 0%,
        #000 52%,
        rgb(0 0 0 / 80%) 72%,
        transparent 96%
      ),
      linear-gradient(to bottom, transparent 0%, #000 14%, #000 100%),
      linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  }

  .story {
    margin-top: 28px;
  }

  .story-track {
    height: 128vh;
  }

  .story-sticky {
    padding-block: 18px;
  }

  .closet-scan-sticky {
    gap: 20px;
    padding-block: 36px 16px;
  }

  .closet-scan-track {
    height: 176vh;
  }

  .closet-stage {
    width: 100%;
    height: clamp(320px, 52vh, 420px);
  }

  .closet-phone-center {
    width: min(52%, 196px);
  }

  .closet-phone-left,
  .closet-phone-right {
    width: min(44%, 168px);
  }

  .closet-phone-left {
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--closet-spread) * -108px))
      translateY(calc(var(--closet-spread) * 16px))
      rotate(calc(var(--closet-spread) * -8deg))
      scale(calc(0.88 + (var(--closet-spread) * 0.04)));
  }

  .closet-phone-right {
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--closet-spread) * 108px))
      translateY(calc(var(--closet-spread) * 16px))
      rotate(calc(var(--closet-spread) * 8deg))
      scale(calc(0.88 + (var(--closet-spread) * 0.04)));
  }

  .scan-chrome p {
    font-size: 10px;
  }

  .scan-shutter {
    width: 40px;
    height: 40px;
  }

  .wardrobe-insights {
    gap: 52px;
    margin-top: 52px;
  }

  .outfit-build-track {
    height: 320vh;
  }

  .outfit-build-sticky {
    padding-top: clamp(64px, 9vh, 84px);
    gap: 10px;
  }

  .outfit-choreo {
    height: min(62vh, 480px);
  }

  .outfit-item {
    width: min(48vw, 170px);
  }

  .outfit-stage {
    width: min(48vw, 220px);
    border-radius: 24px;
  }

  .insight-copy h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .style-swipe-stage {
    --phone-w: min(48vw, 210px);
  }

  .feature-band,
  .feature-band-alt,
  .assistant,
  .love,
  .steps,
  .decide,
  .faq {
    margin-top: 72px;
  }

  .bento-grid,
  .assistant-products,
  .decide-actions {
    grid-template-columns: 1fr;
  }

  .bento-span-1,
  .bento-span-2 {
    grid-column: span 1;
  }

  .bento-grid {
    grid-auto-rows: minmax(18rem, auto);
  }

  .bento-bg-phone .phone-shell,
  .bento-span-2 .bento-bg-phone .phone-shell {
    width: min(42%, 180px);
  }

  .bento-body {
    padding: 18px;
  }

  .assistant-scene {
    width: min(100%, 620px);
  }

  .assistant-row {
    gap: 10px;
    margin-bottom: 16px;
  }

  .assistant-card {
    max-width: calc(100% - 54px);
  }

  .assistant-card-products {
    max-width: none;
  }

  .assistant-product-card .backlight {
    min-height: 132px;
  }

  .assistant-product-card .backlight img {
    height: 132px;
  }

  .assistant-cta-row {
    justify-content: stretch;
  }

  .assistant-pill {
    min-width: 0;
    width: 100%;
  }

  .assistant-avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .bento-card {
    min-height: 280px;
  }

  .clarity-track {
    height: 120vh;
  }

  .clarity-sticky {
    align-content: start;
    place-items: start;
    min-height: 100svh;
    padding-block: min(22vh, 160px) 48px;
  }

  .clarity-copy {
    max-width: none;
    font-size: clamp(34px, 9vw, 48px);
    transform: translate3d(0, 22vh, 0);
  }

  .signup-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: transparent;
  }

  .signup-control:focus-within {
    outline: 0;
  }

  .signup-control input[type="email"],
  .signup-control button {
    width: 100%;
    min-height: 54px;
  }

  .signup-control input[type="email"] {
    border-radius: var(--layr-radius-control);
    background: var(--layr-seashell);
  }

  .signup-control button {
    min-width: 0;
  }

  .footer-social {
    margin-bottom: 32px;
  }

  .footer-social-copy {
    max-width: none;
    font-size: clamp(30px, 8.4vw, 40px);
  }

  .footer-bar,
  .footer-bar-start,
  .footer-bar-end {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bar-end {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .join-inner {
    padding: clamp(36px, 8vw, 56px) clamp(18px, 5vw, 28px);
    border-radius: 22px;
  }

  .join {
    margin-top: 88px;
  }

  .site-footer {
    margin-top: 72px;
    padding: 56px 0 28px;
  }
}

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

  .header-cta,
  .signup-control button {
    animation: none;
    transition: none;
  }

  .hero h1,
  .hero-sub,
  .hero-stage,
  .tag-marquee-track,
  .love-marquee-track {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .bento-copy,
  .bento-cta,
  .bento-veil,
  .layr-pointer {
    transition: none !important;
  }

  .bento-card:hover .bento-copy {
    transform: none;
  }

  .clarity-copy {
    opacity: 1 !important;
    transform: none !important;
  }

  .layr-pointer {
    display: none;
  }
}
