/* ==========================================================================
   myOOTD marketing site — tokens mirror constants/AppTheme.ts + login screen
   ========================================================================== */

:root {
  /* Cream stage (login gradient) */
  --cream-hi: #FAF8F4;
  --cream-mid: #F3EFE8;
  --cream-lo: #E9E4DC;

  /* Leather-brown brand gradient (BrandLockup / tour titles) */
  --brown-hi: #6E5C4F;
  --brown-mid: #564639;
  --brown-lo: #3C3027;

  /* Taupe ink system (Colors.text / textMuted / textLight) */
  --ink: #5F5247;
  --ink-strong: #3C3027;
  --ink-muted: #76695E;
  --ink-light: rgba(95, 82, 71, 0.84);

  /* Primary CTA gradient (login primaryBtn) */
  --btn-hi: #6C5C4E;
  --btn-lo: #483830;

  /* Surfaces */
  --glass: rgba(255, 252, 248, 0.68);
  --glass-muted: rgba(255, 252, 248, 0.48);
  --hairline: rgba(0, 0, 0, 0.10);
  --hairline-strong: rgba(0, 0, 0, 0.14);
  --plate: #FAFAFC;

  /* Outfit stage plates (tour stageBg values) */
  --stage-dinner: #CCCECB;
  --stage-rainy: #C3C5C2;
  --stage-beach: #E4E6E5;
  --stage-mix: #E5E6E3;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-full: 999px;

  --shadow-soft: 0 4px 10px rgba(44, 31, 22, 0.07);
  --shadow-card: 0 14px 34px rgba(44, 31, 22, 0.12);
  --shadow-btn: 0 8px 16px rgba(44, 31, 22, 0.28);

  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-hand: "Caveat", cursive;

  /* Spring-ish easings (mirror the tour's Easing.out(back/cubic)) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.45, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream-hi) 0%, var(--cream-mid) 46%, var(--cream-lo) 100%) fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

#how,
#features,
#reviews,
#about,
#download {
  scroll-margin-top: 104px;
}

/* ---------- type ---------- */

.brand-grad {
  background: linear-gradient(128deg, var(--brown-hi) 0%, var(--brown-mid) 50%, var(--brown-lo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.display {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.lede {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-light);
}

.hand-note {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink-muted);
  transform: rotate(-4deg);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--btn-hi), var(--btn-lo) 80%);
  color: var(--cream-hi);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(44, 31, 22, 0.34); }
.btn-primary:active { transform: translateY(0); }

.btn-cream {
  background: var(--cream-hi);
  color: var(--ink-strong);
  box-shadow: 0 10px 24px rgba(20, 12, 6, 0.35);
}

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

.btn-ghost {
  height: 46px;
  padding: 0 20px;
  background: var(--glass-muted);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.75); }

.btn .apple-mark { flex: 0 0 auto; }

/* ---------- nav (floating glass pill, echoes the app tab bar) ---------- */

.nav {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  margin-inline: auto;
  z-index: 50;
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
  padding: 0 12px 0 22px;
  border-radius: 38px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(44, 31, 22, 0.10);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.nav-brand { display: inline-flex; flex: 0 0 auto; }

/*
 * BrandLockup, web edition. The app aligns "my" + logo + "TD" so both words
 * share one baseline and the logo's bottom edge rests on that same baseline
 * (BrandLockup.tsx: text marginBottoms −6/−12 vs logo marginBottom +12 at
 * logoSize 118 ⇒ all three meet at the text baseline). Flexbox gives us that
 * exactly with `align-items: baseline` — an image's baseline is its bottom
 * edge — so no font-metric fudging is needed and it can never drift.
 * Horizontal offsets keep the app's proportions (gap ≈ 0.017·L before the
 * logo, TD tucked 0.051·L underneath it).
 */
.lockup {
  --logo-size: 38px;
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  white-space: nowrap;
}

.lockup .lk-my {
  position: relative;
  z-index: 1;
  font-size: calc(var(--logo-size) * 0.4915);
  font-weight: 500;
  line-height: 1;
  margin-right: calc(var(--logo-size) * 0.017);
}

.lockup .lk-logo {
  position: relative;
  z-index: 2;
  align-self: baseline;
  width: var(--logo-size);
  height: var(--logo-size);
  object-fit: contain;
  /* nudge the visual bottom of the hanger artwork onto the baseline */
  transform: translateY(calc(var(--logo-size) * 0.04));
}

.lockup .lk-td {
  position: relative;
  z-index: 1;
  font-size: calc(var(--logo-size) * 0.644);
  font-weight: 800;
  line-height: 1;
  margin-left: calc(var(--logo-size) * -0.051);
}

.lockup-lg { --logo-size: 58px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
}

.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink-strong); }

.nav .btn { min-height: 46px; padding: 10px 20px; font-size: 15px; }

/* ==========================================================================
   Outfit stages — shared geometry.

   Mirrors the tour's FloatingItem system: garment cut-outs are positioned
   from the CARD's center at fractions of the card's size (FLOAT_POSITIONS),
   and sized as fractions of the card width. `.card-anchor` is exactly the
   card's box; `.float-layer` overlays it; each `.float-slot` gets
   --fx/--fy (center offset) and --fw (width) as fractions. Because
   everything is card-relative, pieces scale with the card and can never
   collide with copy outside the stage.
   ========================================================================== */

.stage {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.card-anchor {
  position: relative;
  width: var(--card-w, 292px);
  aspect-ratio: var(--card-aspect, 9 / 16);
}

.fit-card {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: var(--stage-dinner);
}

.fit-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* Every scene's garment cut-outs collapse to the card's center by default
   and only the ACTIVE layer's pieces fly out to their spread position —
   the same choreography for the hero carousel and the "Style" feature mock,
   so switching looks always reads as pieces flying in/out, never a flat
   crossfade. Matches the tour's FloatingItem spread math (40% start scale,
   ease-out fly to full position). */
.float-slot {
  position: absolute;
  left: calc(50% + var(--fx, 0) * 40%);
  top: calc(50% + var(--fy, 0) * 40%);
  width: calc(var(--fw, 0.52) * 100%);
  aspect-ratio: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
}

.float-layer.active .float-slot {
  left: calc(50% + var(--fx, 0) * 100%);
  top: calc(50% + var(--fy, 0) * 100%);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition:
    left 0.6s var(--ease-out),
    top 0.6s var(--ease-out),
    transform 0.6s var(--ease-out),
    opacity 0.4s ease;
  transition-delay: var(--fly-delay, 0s);
}

/* retract quickly, no stagger, so the next look has a clear stage */
.js .float-layer:not(.active) .float-slot {
  transition: left 0.35s ease-in, top 0.35s ease-in, transform 0.35s ease-in, opacity 0.25s ease;
  transition-delay: 0s;
}

html:not(.js) .float-layer:first-of-type .float-slot {
  left: calc(50% + var(--fx, 0) * 100%);
  top: calc(50% + var(--fy, 0) * 100%);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.float-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(44, 31, 22, 0.18));
  animation: bob var(--bob-duration, 3.4s) ease-in-out var(--bob-delay, 0s) infinite alternate;
}

@keyframes bob {
  from { transform: translateY(-3px) rotate(-1deg); }
  to   { transform: translateY(3px) rotate(1deg); }
}

.occasion-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: var(--r-full);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-strong);
  white-space: nowrap;
}

/* ---------- hero ---------- */

.hero {
  padding: 148px 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 64px;
}

.hero > * { min-width: 0; }

.hero-copy .eyebrow { margin-bottom: 18px; }

.hero-copy h1 {
  font-size: clamp(42px, 5.6vw, 66px);
  margin-bottom: 22px;
}

.hero-copy .lede { max-width: 46ch; margin-bottom: 32px; }

.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-note .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-muted); }

.hero-stage {
  justify-self: center;
  width: 100%;
  max-width: 560px;
  min-height: 640px;
  --card-w: min(292px, 58%);
}

/* The hero owns five complete outfit scenes. Only the active scene's photo
   may be painted; the garment cut-outs use the same collapse-at-center →
   fly-out system as the "Style" feature mock (below), so switching looks
   reads as pieces flying in/out, not a flat crossfade. */
.hero-stage .look-photo {
  opacity: 0;
  transform: translateX(104%);
  will-change: transform;
}

.hero-stage .look-photo.active {
  z-index: 1;
  animation: look-card-in 0.68s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-stage .look-photo.exiting {
  z-index: 2;
  animation: look-card-out 0.68s cubic-bezier(0.4, 0, 0.2, 1) both;
}

html:not(.js) .hero-stage .look-photo:first-child { opacity: 1; }

.hero-stage .occasion-pill {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  gap: 8px;
}

.hero-pill .op-label { margin-left: 8px; }

/* The app gives every styled scene a handwritten magazine annotation. The
   website uses the same treatment in both rotating fit showcases. */
.scene-scribble {
  pointer-events: none;
  color: var(--ink-muted);
}

.scene-scribble .scribble-label {
  display: inline-block;
  transition: opacity 0.18s ease, transform 0.28s var(--ease-out);
}

.scene-scribble.is-drawing .scribble-label {
  animation: scribble-label-in 0.38s var(--ease-out) both;
}

.scene-scribble svg path {
  stroke-dasharray: 92;
  stroke-dashoffset: 0;
}

.scene-scribble.is-drawing svg path {
  animation: scribble-draw 0.58s var(--ease-out) 0.08s both;
}

@keyframes scribble-label-in {
  from { opacity: 0; transform: translateY(4px) rotate(-2deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes scribble-draw {
  from { stroke-dashoffset: 92; }
  to { stroke-dashoffset: 0; }
}

/* ---------- occasion marquee ---------- */

.marquee {
  margin: 36px 0 0;
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee .occasion-pill { position: static; gap: 8px; }

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

/* ---------- sections ---------- */

.section { padding: 96px 0 0; }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 16px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- how it works ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.step-card {
  background: var(--glass);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-full);
  background: linear-gradient(120deg, var(--btn-hi), var(--btn-lo));
  color: var(--cream-hi);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 18px;
}

.step-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-strong); margin-bottom: 10px; }
.step-card p { font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--ink-light); }

/* ---------- feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding: 72px 0;
}

.feature > * { min-width: 0; }

.feature + .feature { border-top: 1px solid var(--hairline); }

/* nth-of-type (not nth-child) so the alternating zigzag counts only the
   <article> siblings — a preceding .section-head would otherwise shift parity */
.feature:nth-of-type(even) .feature-visual { order: -1; }

.feature-copy .eyebrow { margin-bottom: 14px; }
.feature-copy h3 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 16px; }
.feature-copy p { font-size: 16px; font-weight: 500; line-height: 1.65; color: var(--ink-light); max-width: 44ch; }

.feature-visual {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
}

/* mockup shells share the glass plate look */
.mock {
  width: 100%;
  max-width: min(460px, 100%);
  min-width: 0;
  background: var(--glass);
  border: 1px solid var(--hairline-strong);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mock-head .mh-label { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: var(--ink-muted); text-transform: uppercase; }
.mock-head .mh-title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-strong); margin-top: 3px; }

.count-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--hairline);
  border-radius: var(--r-full);
  padding: 7px 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- feature 1 — camera roll (snap-in loop) ---------- */

.camera-roll { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.roll-slot {
  position: relative;
  min-width: 0;
  aspect-ratio: 13 / 14;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.4);
  border: 1.5px dashed rgba(0, 0, 0, 0.14);
  display: grid;
  place-items: center;
  padding: 10px;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.roll-slot .roll-plus {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  font-size: 22px;
  font-weight: 500;
  transition: opacity 0.25s ease;
}

.roll-slot img {
  max-height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* filled state — pop in like the tour's snap-to-thumbnail beat */
.js .snap-scene .roll-slot img {
  opacity: 0;
  transform: scale(0.55);
  transition: transform 0.55s var(--ease-back), opacity 0.3s ease;
}

.roll-slot.filled {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.roll-slot.filled .roll-plus { opacity: 0; }

.js .snap-scene .roll-slot.filled img {
  opacity: 1;
  transform: scale(1);
}

/* ---------- feature 2 — closet grid (staggered pop + tag reveal) ---------- */

.closet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/*
 * Matches app/feature-tour.tsx's closetTile styles exactly: the tile is a
 * translucent card with an 8px inset; the photo sits on its OWN light plate
 * (closetTileImageStage) rather than floating loose against the tile
 * background — that plate is what visually separates "the picture" from
 * "the label" below it. The web version previously skipped the plate, so
 * the image had no frame and the label read as touching/overlapping it.
 */
.closet-tile {
  min-width: 0;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-rows: 90px minmax(58px, auto);
}

.js .closet-scene .closet-tile {
  opacity: 0;
  transform: translateY(18px) scale(0.9);
  transition: transform 0.5s var(--ease-back), opacity 0.3s ease;
  transition-delay: var(--pop-delay, 0s);
}

.js .closet-scene .closet-tile.pop {
  opacity: 1;
  transform: none;
}

.closet-tile .ct-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  height: auto;
  overflow: hidden;
  background: rgba(242, 243, 246, 0.86);
  border-radius: var(--r-md);
}
.closet-tile .ct-stage img {
  position: absolute;
  inset: 9px;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  max-width: none;
  max-height: none;
  object-fit: contain;
}
.closet-tile .ct-meta {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 58px;
  padding: 8px 5px 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.closet-tile .ct-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-strong);
  overflow-wrap: anywhere;
  min-height: 2.4em;
}
.closet-tile .ct-tag {
  display: inline-block;
  margin-top: auto;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--hairline);
  border-radius: var(--r-full);
  padding: 2px 6px;
}

.js .closet-scene .ct-tag {
  opacity: 0;
  transform: translateY(6px);
  transition: transform 0.28s ease-out, opacity 0.24s ease;
  transition-delay: calc(var(--pop-delay, 0s) + 0.24s);
}

.js .closet-scene .closet-tile.pop .ct-tag {
  opacity: 1;
  transform: none;
}

/* ---------- feature 3 — style carousel (tour "generate" scene) ---------- */

.style-mock { overflow: clip; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.pill-row .occasion-pill {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 13px;
  transition: opacity 0.3s ease;
}

.js .style-scene .pill-row .occasion-pill:not(.active) { opacity: 0.5; }

.pill-row .op-label {
  display: inline-block;
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: max-width 0.4s var(--ease-out), opacity 0.3s ease, margin-left 0.4s var(--ease-out);
}

.pill-row .occasion-pill.active .op-label {
  max-width: 150px;
  margin-left: 7px;
  opacity: 1;
}

/* no-JS / pre-JS: show the first look's label */
html:not(.js) .pill-row .occasion-pill:first-child .op-label {
  max-width: none;
  margin-left: 7px;
  opacity: 1;
}

/* Same 9:16 card as the hero (and the app) — a shorter box was cropping the
   look photos wrong and squeezing FLOAT_POSITIONS' vertical spread until the
   garment cut-outs overlapped each other. */
.styled-stage {
  position: relative;
  padding: 22px 0 14px;
  --card-w: min(220px, 52%);
  min-height: 470px;
}

/* stacked look photos crossfade inside the one card */
.styled-stage .fit-card { background: var(--stage-rainy); }

.styled-stage .look-photo {
  opacity: 0;
  transform: translateX(104%);
  will-change: transform;
}

.styled-stage .look-photo.active {
  z-index: 1;
  animation: look-card-in 0.68s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.styled-stage .look-photo.exiting {
  z-index: 2;
  animation: look-card-out 0.68s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes look-card-in {
  from { opacity: 1; transform: translateX(104%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes look-card-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 1; transform: translateX(-104%); }
}

html:not(.js) .styled-stage .look-photo:first-child { opacity: 1; }

/*
 * Scribble annotation — shared by the hero and the "Style" mock. It lives
 * INSIDE .card-anchor (a sibling of .float-layer), so it can use the exact
 * same card-relative --nx/--ny fractions as a float-slot. Each `show()` in
 * site.js points it at whichever garment piece sits lowest in the active
 * look (a real item, not a fixed screen corner) and mirrors the arrow to
 * whichever side keeps it pointing inward rather than off the card.
 */
.scene-scribble {
  position: absolute;
  z-index: 5;
  left: 86%;
  top: 84%;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 2px;
  width: max-content;
  pointer-events: none;
  color: var(--ink-muted);
}

.scene-scribble svg {
  width: 64px;
  height: 50px;
  flex: 0 0 auto;
  overflow: visible;
}

.hero-annotation .hand-note { font-size: 22px; }
.style-annotation .hand-note { font-size: 17px; }

/* ---------- feature 4 — week planner (staggered slide-in + day cycle) ---------- */

.agenda { display: grid; gap: 10px; }

.agenda-row {
  display: grid;
  grid-template-columns: 52px 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-md);
  padding: 10px 14px 10px 12px;
  box-shadow: var(--shadow-soft);
  transition: background 0.35s ease, transform 0.35s var(--ease-out), border-color 0.35s ease;
}

.js .plan-scene .agenda-row {
  opacity: 0;
  transform: translateX(26px);
  transition: transform 0.55s var(--ease-out), opacity 0.35s ease,
    background 0.35s ease, border-color 0.35s ease;
  transition-delay: var(--row-delay, 0s);
}

.js .plan-scene .agenda-row.in {
  opacity: 1;
  transform: none;
}

/* cycling "today" highlight */
.agenda-row.now {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(95, 82, 71, 0.22);
}

.js .plan-scene .agenda-row.in.now { transform: scale(1.02); }

.agenda-date { text-align: center; }
.agenda-date .ad-day { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: var(--ink-muted); }
.agenda-date .ad-num { font-size: 20px; font-weight: 800; color: var(--ink-strong); letter-spacing: -0.02em; }

.agenda-look {
  width: 64px;
  height: 64px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.agenda-look img { max-height: 58px; object-fit: contain; }

.agenda-label { min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--ink-strong); overflow-wrap: anywhere; }

/* ---------- feature 5 — auto ootd (generate sequence) ---------- */

.auto-card { display: grid; gap: 14px; }

.auto-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.auto-meta-right { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px; min-width: 0; }

.auto-title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-strong); }

.tag-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--cream-hi);
  background: linear-gradient(120deg, var(--btn-hi), var(--btn-lo));
  border-radius: var(--r-full);
  padding: 6px 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-strong);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--hairline);
  border-radius: var(--r-full);
  padding: 8px 14px;
  max-width: 100%;
}

.auto-time { font-size: 13px; font-weight: 700; color: var(--ink-muted); white-space: nowrap; }

.auto-days { display: flex; gap: 8px; }

.auto-day {
  flex: 1;
  display: grid;
  place-items: center;
  height: 38px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--hairline);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-muted);
}

.auto-day.on {
  background: linear-gradient(120deg, var(--btn-hi), var(--btn-lo));
  border-color: transparent;
  color: var(--cream-hi);
}

.auto-stage {
  position: relative;
  border-radius: var(--r-lg);
  background: rgba(120, 110, 100, 0.10);
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: hidden;
  min-height: 200px;
}

.auto-stage img { max-height: 240px; object-fit: contain; }

/* the look "auto-generates" a beat after the card settles (AutomationScene) */
.js .auto-scene .auto-stage img {
  opacity: 0;
  transform: scale(0.9);
  transition: transform 0.6s var(--ease-out), opacity 0.5s ease;
}

.js .auto-scene.generated .auto-stage img {
  opacity: 1;
  transform: none;
}

/* shimmer sweep while "generating" */
.auto-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 252, 248, 0.55) 50%, transparent 70%);
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.js .auto-scene.generating .auto-stage::after {
  opacity: 1;
  animation: shimmer 1.1s ease-in-out infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

.ready-badge {
  justify-self: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--hairline);
  border-radius: var(--r-full);
  padding: 9px 18px;
  box-shadow: var(--shadow-soft);
}

.js .auto-scene .ready-badge {
  opacity: 0;
  transform: translateY(6px);
  transition: transform 0.4s var(--ease-out), opacity 0.35s ease;
}

.js .auto-scene.ready .ready-badge {
  opacity: 1;
  transform: none;
}

/* ---------- reviews ---------- */

.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.review-card {
  background: var(--glass);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-xl);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stars { display: flex; gap: 3px; color: var(--brown-mid); }
.stars svg { width: 15px; height: 15px; }

.review-card blockquote {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  flex: 1;
}

.reviewer { display: flex; align-items: center; gap: 10px; }

.reviewer .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brown-hi), var(--brown-lo));
  color: var(--cream-hi);
  font-size: 13px;
  font-weight: 800;
}

.reviewer .rv-name { font-size: 14px; font-weight: 700; color: var(--ink-strong); }
.reviewer .rv-meta { font-size: 12px; font-weight: 600; color: var(--ink-muted); }

.reviews-note {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
}

/* ---------- about ---------- */

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  background: var(--glass);
  border: 1px solid var(--hairline-strong);
  border-radius: 32px;
  padding: clamp(32px, 5vw, 64px);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.3;
  color: var(--ink-strong);
}

.about-copy p { font-size: 16px; font-weight: 500; line-height: 1.7; color: var(--ink-light); }
.about-copy p + p { margin-top: 16px; }

/* ---------- download band ---------- */

.cta-band {
  position: relative;
  margin-top: 96px;
  border-radius: 40px 40px 0 0;
  background: linear-gradient(135deg, var(--brown-hi) 0%, var(--brown-mid) 45%, var(--brown-lo) 100%);
  color: var(--cream-hi);
  padding: clamp(64px, 9vw, 110px) 0 clamp(56px, 8vw, 96px);
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 250, 243, 0.14), transparent 70%);
  pointer-events: none;
}

.cta-band .eyebrow { color: rgba(250, 248, 244, 0.55); margin-bottom: 18px; }

.cta-band h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.cta-band .lede { color: rgba(250, 248, 244, 0.75); max-width: 52ch; margin: 0 auto 36px; }

.cta-band .hero-note { justify-content: center; color: rgba(250, 248, 244, 0.6); }
.cta-band .hero-note .dot { background: rgba(250, 248, 244, 0.6); }

/* ---------- footer ---------- */

.footer {
  background: var(--brown-lo);
  color: rgba(250, 248, 244, 0.7);
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 248, 244, 0.14);
}

.footer-brand {
  display: inline-flex;
  padding: 10px 16px 12px;
  border-radius: var(--r-full);
  background: rgba(255, 252, 248, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.footer-tag { margin-top: 14px; font-size: 14px; font-weight: 500; line-height: 1.6; max-width: 30ch; }

.footer h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.45);
  margin-bottom: 16px;
}

.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { font-size: 14.5px; font-weight: 600; color: rgba(250, 248, 244, 0.75); transition: color 0.15s ease; }
.footer ul a:hover { color: var(--cream-hi); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  font-size: 13px;
  font-weight: 500;
}

.social-row { display: flex; gap: 10px; }

.social-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(250, 248, 244, 0.09);
  border: 1px solid rgba(250, 248, 244, 0.18);
  color: var(--cream-hi);
  transition: background 0.15s ease, transform 0.15s ease;
}

.social-btn:hover { background: rgba(250, 248, 244, 0.2); transform: translateY(-2px); }

/* ---------- legal pages ---------- */

.legal-main { padding: 148px 0 96px; }
.legal-main .page-head { margin-bottom: 48px; }
.legal-main .page-head h1 { font-size: clamp(34px, 4.4vw, 50px); margin-bottom: 14px; }
.legal-main .updated {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.legal-body { max-width: 720px; display: grid; gap: 36px; }

.legal-body section h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 10px;
}

.legal-body section p { font-size: 15px; font-weight: 500; line-height: 1.7; color: var(--ink-light); overflow-wrap: anywhere; }
.legal-body a { font-weight: 700; color: var(--ink); text-decoration: underline; }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .hero { gap: 40px; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 128px; text-align: center; gap: 56px; }
  .hero-copy .lede { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-stage { max-width: 620px; min-height: 600px; }
  .steps { grid-template-columns: 1fr; }
  .feature { grid-template-columns: minmax(0, 1fr); padding: 56px 0; }
  .feature:nth-of-type(even) .feature-visual { order: 0; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .about-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding-top: 80px; }
  .feature { gap: 34px; padding: 52px 0; }
  .mock { padding: 20px; }
  .about-panel { padding: 32px 26px; }
}

@media (max-width: 560px) {
  body { background-attachment: scroll; }
  .wrap { width: calc(100% - 36px); }
  .hero { gap: 26px; padding-top: 116px; padding-bottom: 24px; }
  .hero-stage {
    max-width: 400px;
    min-height: 500px;
    --card-w: min(212px, 56%);
  }
  .hero-stage .occasion-pill { top: 10px; }
  .section { padding-top: 72px; }
  .section-head { margin-bottom: 40px; }
  .feature { padding: 46px 0; }
  .mock { padding: 18px; border-radius: 24px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .camera-roll, .closet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .styled-stage {
    min-height: 360px;
    padding: 14px 0 6px;
    --card-w: min(180px, 56%);
  }
  .scene-scribble {
    left: 64%;
    top: 95%;
  }
  .scene-scribble svg {
    width: 54px;
    height: 42px;
  }
  .style-annotation .hand-note { font-size: 14px; }
  .agenda-row { grid-template-columns: 42px 54px minmax(0, 1fr); gap: 10px; padding: 8px 10px 8px 8px; }
  .agenda-look { width: 54px; height: 54px; }
  .agenda-look img { max-height: 50px; }
  .auto-meta-right { justify-content: flex-start; }
  .auto-days { gap: 5px; }
  .hero-annotation .hand-note { font-size: 15px; }
  .marquee { margin-top: 18px; }
}

@media (max-width: 400px) {
  .nav {
    top: max(10px, env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    height: 60px;
    gap: 8px;
    padding: 0 8px 0 14px;
  }
  .nav .lockup { --logo-size: 34px; }
  .nav .btn { min-height: 42px; padding: 9px 14px; gap: 7px; font-size: 14px; }
  .hero { padding-top: 98px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: min(100%, 280px); }
  .mock-head { align-items: flex-start; gap: 10px; }
  .count-pill { padding: 6px 10px; }
  .auto-days { gap: 4px; }
  .auto-day { height: 34px; font-size: 11px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 330px) {
  .nav .btn {
    width: 42px;
    padding-inline: 0;
    gap: 0;
    font-size: 0;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .float-slot img { animation: none; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn,
  .btn:hover,
  .social-btn,
  .social-btn:hover { transform: none; transition: none; }
}

@media (forced-colors: active) {
  .brand-grad {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
}
