:root {
  --bg: #FFFFFF;
  --bg-product: #FAF7F2;
  --card: #ffffff;
  --surface-soft: #FAF7F2;
  --gold: #E0A800;
  --gold-deep: #B98C00;
  --gold-soft: rgba(224, 168, 0, 0.18);
  --gold-softer: rgba(224, 168, 0, 0.10);
  --purple: #2E2A3B;
  --purple-deep: #2e2a3b;
  --ink: #1f1b2c;
  --text-dim: rgba(31, 27, 44, 0.72);
  --text-faint: rgba(31, 27, 44, 0.5);
  --border-subtle: rgba(31, 27, 44, 0.06);
  --border-strong: rgba(31, 27, 44, 0.12);
  --warm-stone: #eceae3;
  --warm-stone-2: #dedbd2;
  --danger: #c93c20;
  --font-display: "Satoshi", "Inter", system-ui, sans-serif;
  --font-display-solid: "Satoshi", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ------- Global responsive guards ------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  max-width: 100%;
  overflow-x: hidden; /* fallback */
  overflow-x: clip;   /* preserves position: sticky on descendants */
}
img, picture, video, svg { max-width: 100%; height: auto; }
body { -webkit-tap-highlight-color: transparent; }

/* ------- a11y: skip link + sr-only ------- */
.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: var(--purple-deep);
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--purple-deep);
  outline-offset: 2px;
}

/* ------- global focus ring ------- */
:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

/* Spotlight Glow removed in v2 refresh — white surface, no yellow wash. */
.spotlight::after { content: none; }
.hero-beam { display: none; }

/* Subtle noise grain */
.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 1;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.10  0 0 0 0 0.17  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ------- Pill / badge ------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--gold-soft);
  border: 1px solid rgba(224, 168, 0, 0.45);
  border-radius: 999px;
  color: var(--gold-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.pill-quiet {
  background: rgba(31, 27, 44, 0.04);
  border-color: rgba(31, 27, 44, 0.14);
  color: var(--gold-deep);
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(224, 168, 0, 0.7);
  animation: pill-pulse 2.4s ease-in-out infinite;
}
@keyframes pill-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.9); }
}

/* ------- Gold headline emphasis ------- */
.gold-text {
  color: var(--gold-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ============================================================
   Hero visual — stacked floating outfit cards
   Shown on every breakpoint; sized down on mobile/tablet.
   ============================================================ */
.hero-visual {
  display: block;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  overflow: visible;
}
@media (min-width: 1024px) {
  .hero-visual { max-width: none; }
}

.hv-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 620px;
}

/* Tighter sizing on phones / tablets so the visual doesn't dominate the fold */
@media (max-width: 1023px) {
  .hv-frame { max-height: 460px; }
  .hv-chat {
    left: 0;
    max-width: 220px;
    padding: 8px 12px;
  }
  .hv-chat-text { font-size: 11.5px; }
  .hv-tag { font-size: 9px; padding: 4px 7px; }
}
@media (max-width: 1023px) and (min-width: 641px) {
  .hero-visual { max-width: 520px; }
  .hv-frame { max-height: 540px; }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .hv-frame { max-height: 560px; }
  .hv-chat { left: 0; max-width: 240px; }
}

/* Radial glow behind the stack */
.hv-glow {
  position: absolute;
  inset: -8%;
  background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(224, 168, 0, 0.30) 0%, transparent 65%);
  filter: blur(4px);
  pointer-events: none;
  z-index: 0;
}

.hv-card {
  position: absolute;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--card);
  box-shadow:
    0 30px 60px -20px rgba(31, 27, 44, 0.25),
    0 0 0 1px rgba(31, 27, 44, 0.04) inset;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}
.hv-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
}

.hv-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(253, 247, 227, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.hv-card-1 {
  top: 0;
  right: 0;
  width: 62%;
  height: 72%;
  transform: rotate(3deg);
  z-index: 3;
}
.hv-card-2 {
  top: 18%;
  left: 0;
  width: 55%;
  height: 60%;
  transform: rotate(-4deg);
  z-index: 2;
}
.hv-card-3 {
  bottom: 0;
  right: 8%;
  width: 48%;
  height: 48%;
  transform: rotate(5deg);
  z-index: 4;
  border: 2px solid rgba(224, 168, 0, 0.6);
  box-shadow:
    0 30px 60px -20px rgba(31, 27, 44, 0.28),
    0 0 40px -8px rgba(224, 168, 0, 0.40),
    0 0 0 1px rgba(224, 168, 0, 0.20) inset;
}

.hv-frame:hover .hv-card-1 { transform: rotate(3deg) translateY(-4px); }
.hv-frame:hover .hv-card-2 { transform: rotate(-4deg) translateY(-4px); }
.hv-frame:hover .hv-card-3 { transform: rotate(5deg) translateY(-4px) scale(1.02); }

/* Floating chat bubble decoration */
.hv-chat {
  position: absolute;
  left: -6%;
  bottom: 6%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(224, 168, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 14px;
  border-radius: 999px;
  max-width: 280px;
  box-shadow: 0 20px 40px -10px rgba(31, 27, 44, 0.22);
  animation: hv-float 6s ease-in-out infinite;
}
.hv-chat-icon {
  color: var(--gold-deep);
  font-size: 18px !important;
}
.hv-chat-text {
  font-size: 12.5px;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.35;
}
@keyframes hv-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ============================================================
   Try-On showcase section
   ============================================================ */
.tryon-check {
  flex-shrink: 0;
  color: var(--gold-deep);
  background: var(--gold-softer);
  border-radius: 50%;
  padding: 3px;
  font-size: 16px !important;
  margin-top: 2px;
}

.tryon-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.tryon-display {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 50% 30%, #fff7d8 0%, #f5ecc8 55%, #e8dba8 100%);
  border: 1px solid rgba(224, 168, 0, 0.25);
  box-shadow:
    0 40px 80px -30px rgba(31, 27, 44, 0.30),
    0 0 60px -20px rgba(224, 168, 0, 0.30);
}

.tryon-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.tryon-img.is-active {
  opacity: 1;
  transform: scale(1);
}

.tryon-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(224, 168, 0, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, transparent 55%, rgba(31, 27, 44, 0.30) 100%);
  pointer-events: none;
}

.tryon-chip {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}
.tryon-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(224, 168, 0, 0.8);
}

.tryon-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.25rem;
}
.tryon-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(31, 27, 44, 0.18);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.tryon-dot:hover { background: rgba(31, 27, 44, 0.36); }
.tryon-dot.is-active {
  background: var(--gold);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(224, 168, 0, 0.6);
}

/* ============================================================
   Final CTA pill
   ============================================================ */
.cta-pill {
  background: var(--gold);
  color: var(--purple-deep);
  padding: 0.875rem 1.625rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 12px 32px -10px rgba(224, 168, 0, 0.45);
}
.cta-pill:hover {
  background: var(--gold-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(224, 168, 0, 0.55);
}
.cta-pill:active { transform: translateY(0); }

/* ------- Waitlist form ------- */
.waitlist-form { position: relative; }

.wf-input {
  flex: 1;
  height: 48px;
  padding: 0 1rem;
  background: #ffffff;
  border: 1px solid var(--warm-stone-2);
  border-radius: 0.625rem;
  color: var(--ink);
  font-size: 16px; /* prevents iOS zoom */
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.wf-input::placeholder { color: rgba(31, 27, 44, 0.42); }
.wf-input:hover { border-color: rgba(31, 27, 44, 0.25); }
.wf-input:focus {
  border-color: var(--gold-deep);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(224, 168, 0, 0.30);
}
.wf-input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(201, 60, 32, 0.18);
}

.wf-button {
  position: relative;
  height: 48px;
  padding: 0 1.25rem;
  background: var(--gold);
  color: var(--purple-deep);
  border: none;
  border-radius: 0.625rem;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  box-shadow: 0 8px 24px -8px rgba(224, 168, 0, 0.5);
}
.wf-button:hover:not(:disabled) {
  background: var(--gold-deep);
  color: #ffffff;
  box-shadow: 0 10px 28px -6px rgba(224, 168, 0, 0.6);
}
.wf-button:active:not(:disabled) { transform: translateY(1px); }
.wf-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wf-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(46, 42, 59, 0.3);
  border-top-color: var(--purple-deep);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.wf-button[data-loading="true"] .wf-spinner { display: inline-block; }
.wf-button[data-loading="true"] .wf-button-label { opacity: 0.7; }

@keyframes spin { to { transform: rotate(360deg); } }

.wf-error {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.625rem;
  color: var(--danger);
  font-size: 13px;
}
.wf-error-icon { font-size: 16px !important; }

.wf-microcopy {
  margin-top: 0.875rem;
  font-size: 12px;
  color: var(--text-faint);
}

/* Success panel replaces the form */
.wf-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(224, 168, 0, 0.14);
  border: 1px solid rgba(224, 168, 0, 0.35);
  border-radius: 0.75rem;
  color: var(--ink);
  animation: success-fade 0.4s ease;
}
.wf-success-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--purple-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px !important;
  font-weight: 700;
}
.wf-success-text {
  font-size: 14px;
  line-height: 1.5;
}
.wf-success-text strong {
  display: block;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 2px;
}

@keyframes success-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Inline network-failure message */
.wf-failure {
  margin-top: 0.75rem;
  padding: 0.75rem 0.875rem;
  background: rgba(201, 60, 32, 0.08);
  border: 1px solid rgba(201, 60, 32, 0.30);
  border-radius: 0.625rem;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}
.wf-failure a { color: var(--gold-deep); text-decoration: underline; }

/* ------- Feature cards ------- */
.feature-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.25rem;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  isolation: isolate;
  box-shadow: 0 1px 3px rgba(31, 27, 44, 0.04);
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(224, 168, 0, 0.45);
  background: var(--surface-soft);
  box-shadow: 0 20px 40px -20px rgba(31, 27, 44, 0.22);
}

.feature-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 0.625rem;
  overflow: hidden;
  margin-bottom: 1.125rem;
  background: var(--warm-stone);
}
.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(31, 27, 44, 0.18) 100%);
  pointer-events: none;
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
  transition: transform 0.5s ease, filter 0.3s ease;
}
.feature-card:hover .feature-media img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.feature-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-softer);
  border: 1px solid rgba(224, 168, 0, 0.30);
  margin-bottom: 0.875rem;
}
.feature-icon {
  color: var(--gold-deep);
  font-size: 22px !important;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24 !important;
}
.feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.feature-copy {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* ------- Reduced motion ------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .feature-card:hover { transform: none; }
  .feature-card:hover .feature-media img { transform: none; }
  .spotlight::after { animation: none; }
  .pill-dot { animation: none; }
  .hv-chat { animation: none; }
  .hv-frame:hover .hv-card-1,
  .hv-frame:hover .hv-card-2,
  .hv-frame:hover .hv-card-3 { transform: initial; }
  .tryon-img { transition: opacity 0.001ms ease; }
}

/* ------- Tiny screens: prevent horizontal scroll at 320px ------- */
@media (max-width: 360px) {
  h1 { font-size: 2rem !important; }
  .hero-beam { display: none; }
  .pill { font-size: 9px; padding: 0.3rem 0.7rem; letter-spacing: 0.1em; }
  .wf-button { padding: 0 0.875rem; font-size: 14px; }
  .feature-card { padding: 1rem; }
}

/* ------- Mobile-first refinements (≤ 640px) ------- */
@media (max-width: 640px) {
  .waitlist-form .wf-input,
  .waitlist-form .wf-button { width: 100%; }
  .tryon-stage { max-width: 420px; }
  .tryon-chip { bottom: 12px; left: 12px; padding: 6px 10px; font-size: 11px; }
  .feature-icon-wrap { width: 36px; height: 36px; }
  .feature-title { font-size: 1rem; }
}

/* ------- Tablet (641-1023px): hero visual is hidden, so center & breathe ------- */
@media (min-width: 641px) and (max-width: 1023px) {
  .tryon-stage { max-width: 480px; }
}

/* ------- Short viewports (e.g. landscape phones / small laptops) ------- */
@media (max-height: 720px) and (min-width: 1024px) {
  .hv-frame { max-height: 520px; }
}
@media (max-height: 600px) {
  .spotlight .relative.z-10 { padding-top: 2rem; padding-bottom: 2rem; }
}
