:root {
  --bg: #FAFAF7;
  --bg-warm: #F3EEE5;
  --surface: #FFFFFF;
  --ink: #0F0E0C;
  --text: #1A1A1A;
  --muted: #6B6359;
  --line: #E8E3DC;
  --line-strong: #DAD3C8;
  --gold: #C8A04A;
  --gold-deep: #A6843A;
  --gold-tint: rgba(200, 160, 74, 0.12);
  --shadow-sm: 0 8px 24px rgba(20, 16, 12, 0.05);
  --shadow-md: 0 18px 44px rgba(20, 16, 12, 0.09);
  --shadow-lg: 0 40px 90px rgba(20, 16, 12, 0.18);
  --radius: 18px;
  --radius-lg: 24px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter Tight', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; color: var(--muted); line-height: 1.62; }
img { display: block; }

h1, h2, h3 { margin: 0; color: var(--ink); }

h1, h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: 0.98; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.02; }

::selection { background: var(--gold-tint); color: var(--ink); }

/* ---------- Shell ---------- */
.site-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.site-header, .site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.site-header {
  position: sticky; top: 14px; z-index: 30;
  min-height: 62px; padding: 8px 8px 8px 4px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(250, 250, 247, 0.82);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  box-shadow: var(--shadow-sm);
}

.brand { display: grid; align-items: center; min-width: 110px; padding-left: 16px; }
.brand img { width: 78px; height: auto; }
.footer-brand img { width: 104px; height: auto; opacity: 0.9; }

.site-nav, .footer-links {
  display: flex; flex-wrap: wrap; gap: 6px;
  color: var(--muted); font-size: 0.92rem; font-weight: 600;
}

.site-nav a { padding: 10px 14px; border-radius: 999px; transition: color 160ms ease, background 160ms ease; }
.site-nav a:hover { color: var(--ink); background: var(--gold-tint); }

.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 116px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--ink); color: #FFFFFF; font-size: 0.9rem; font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}
.nav-cta:hover { transform: translateY(-1px); background: #000; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }

.eyebrow, .hero-badge {
  color: var(--gold-deep); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
}

.section-head {
  display: grid; justify-items: center; gap: 14px;
  max-width: 34ch; margin: 0 auto 52px; text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  display: grid; justify-items: center; gap: 22px;
  padding-top: 64px; padding-bottom: 26px; text-align: center;
}

.hero-copy { display: grid; gap: 22px; justify-items: center; max-width: 900px; }

.hero-badge {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 16px;
  border: 1px solid rgba(200, 160, 74, 0.32); border-radius: 999px; background: var(--gold-tint);
  animation: fadeUp 700ms var(--ease) both;
}

.hero-logo {
  width: min(208px, 52vw); height: auto; margin: 2px 0;
  animation: fadeUp 740ms 40ms var(--ease) both;
}

.hero h1 { max-width: 15ch; animation: fadeUp 760ms 80ms var(--ease) both; }
.hero h1 em { font-style: italic; color: var(--gold-deep); }

.lede {
  max-width: 50ch; font-size: 1.2rem; line-height: 1.55; color: #4A4138;
  animation: fadeUp 800ms 160ms var(--ease) both;
}

.hero-actions { margin-top: 4px; animation: fadeUp 840ms 240ms var(--ease) both; }

.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 8px;
  color: var(--muted); font-size: 0.85rem; font-weight: 600;
  animation: fadeUp 880ms 320ms var(--ease) both;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--ink); color: #FFFFFF; box-shadow: 0 14px 30px rgba(15, 14, 12, 0.2); }
.button-primary:hover { background: #000; box-shadow: 0 20px 42px rgba(15, 14, 12, 0.26); }

/* ---------- Living Lookbook ---------- */
.lookbook-section { padding-top: 40px; }

.lookbook-hint {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 30px;
  padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  color: var(--ink); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
}
.spark { display: inline-block; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.lookbook-hint .spark { animation: twinkle 2.8s ease-in-out infinite; }

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

.look-card {
  position: relative; display: block; width: 100%; margin: 0; padding: 0;
  appearance: none; -webkit-appearance: none; font: inherit; color: inherit; text-align: left;
  aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: #ECE7DF; box-shadow: var(--shadow-md);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 420ms var(--ease), box-shadow 420ms var(--ease);
}
.look-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.look-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.look-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0; transform: scale(1.045);
  transition: opacity 420ms ease, transform 900ms var(--ease);
}
.look-card img.is-active { opacity: 1; transform: scale(1); }

/* gold shimmer sweep on restyle */
.look-card::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 246, 222, 0.55) 48%, rgba(200,160,74,0.18) 54%, transparent 70%);
  transform: translateX(-130%); opacity: 0;
}
.look-card.is-swapping::after { animation: sweep 720ms var(--ease); }

/* index numeral */
.look-index {
  position: absolute; top: 14px; left: 18px; z-index: 4;
  font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600;
  color: #FFFFFF; letter-spacing: 0.04em; text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

/* hover/focus restyle chip */
.look-cta {
  position: absolute; top: 50%; left: 50%; z-index: 4;
  transform: translate(-50%, -50%) scale(0.92);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(15,14,12,0.22); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 240ms ease, transform 360ms var(--ease);
  pointer-events: none;
}
.look-card:hover .look-cta,
.look-card:focus-visible .look-cta { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* caption bar */
.look-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 52px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(15, 14, 12, 0.66));
  color: #FFFFFF;
}
.look-meta .look-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.82; }
.look-meta .look-count { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; line-height: 1; }
.look-meta .look-count b { font-weight: 600; }
.look-meta .look-count span { opacity: 0.6; font-size: 1.05rem; }

/* progress pips */
.look-pips { display: flex; gap: 5px; }
.look-pips i { width: 16px; height: 3px; border-radius: 999px; background: rgba(255,255,255,0.35); transition: background 300ms ease; }
.look-pips i.on { background: var(--gold); }

/* ---------- How it works (dark panel) ---------- */
.lookbook-tagline {
  margin-top: 46px; text-align: center;
  font-family: 'Cormorant Garamond', serif; font-weight: 500; font-style: italic;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; color: var(--ink);
}
.lookbook-tagline em { font-style: italic; color: var(--gold-deep); }

.steps-panel {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1.5px solid var(--gold); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink);
  background-image: radial-gradient(120% 150% at 0% 0%, rgba(200, 160, 74, 0.16), transparent 46%);
  box-shadow: var(--shadow-lg);
}

.lookbook-section .section-head { max-width: 100%; }
.lookbook-section .section-head h2 { white-space: nowrap; }
@media (max-width: 520px) { .lookbook-section .section-head h2 { white-space: normal; } }
.hero .lede { max-width: none; white-space: nowrap; }
@media (max-width: 820px) { .hero .lede { white-space: normal; max-width: 50ch; } }
.step { position: relative; display: grid; gap: 20px; padding: 62px 44px; }
.step + .step { border-left: 1px solid rgba(250, 246, 236, 0.1); }
.step-num {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: 3.6rem; line-height: 1; color: var(--gold);
}
.step-body h3 {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: 1.95rem; color: #FAF6EC; margin-bottom: 8px;
}
.step-body p { color: rgba(250, 246, 236, 0.64); font-size: 1rem; }

/* ---------- Closing CTA ---------- */
.closing-cta {
  display: grid; justify-items: center; gap: 22px; padding: 96px 32px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: radial-gradient(130% 130% at 50% 0%, var(--gold-tint), transparent 60%), var(--surface);
  box-shadow: var(--shadow-sm); text-align: center;
}
.closing-cta h2 { max-width: 18ch; }
.closing-cta h2 em { font-style: italic; color: var(--gold-deep); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 28px; padding-top: 30px; border-top: 1px solid var(--line); }
.footer-links a { padding: 6px 4px; transition: color 160ms ease; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Legal / support pages ---------- */
.legal-shell .site-header { position: static; }

.legal-page {
  display: grid; gap: 16px; max-width: 74ch; margin: 0 auto;
  padding: 48px 40px 60px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.legal-page h1 { font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.02; }
.legal-page h2 { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: clamp(1.45rem, 2.4vw, 2rem); }
.legal-page p { font-size: 1.02rem; color: var(--muted); }
.legal-page a { color: var(--gold-deep); border-bottom: 1px solid rgba(200, 160, 74, 0.45); transition: border-color 160ms ease; }
.legal-page a:hover { border-color: var(--gold-deep); }
.legal-intro { max-width: 60ch; font-size: 1.14rem; color: var(--text); }

.support-page { min-height: 52svh; align-content: center; justify-items: center; max-width: 560px; text-align: center; }
.simple-contact h1 { max-width: 16ch; }
.page-icon { width: 86px; height: 86px; border-radius: 22px; box-shadow: var(--shadow-md); }

/* ---------- Reset / confirm panels ---------- */
.reset-page { display: grid; place-items: center; min-height: 64svh; padding: 64px 0 80px; }
.reset-panel { display: grid; justify-items: center; gap: 14px; width: min(100%, 520px); text-align: center; }
.reset-panel h1 { max-width: 12ch; font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1.0; }
.reset-panel .legal-intro { max-width: 40ch; margin-top: 2px; font-size: 1.06rem; color: var(--muted); }
.reset-icon { width: 72px; height: 72px; border-radius: 20px; box-shadow: var(--shadow-sm); }

.reset-card {
  display: grid; gap: 16px; width: min(100%, 432px); margin-top: 18px; padding: 28px 26px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md);
}
.reset-card label { display: grid; gap: 8px; color: var(--ink); font-size: 0.88rem; font-weight: 700; text-align: left; }
.reset-card input {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--line-strong);
  border-radius: 14px; background: #FFFFFF; color: var(--text); font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.reset-card input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.reset-submit { width: 100%; border: 0; cursor: pointer; margin-top: 2px; }
.reset-message { min-height: 24px; text-align: center; font-weight: 600; color: var(--muted); }
.reset-message[data-tone='error'] { color: #A32121; }
.reset-message[data-tone='success'] { color: #1D6A3A; }

.confirm-panel h1 { max-width: 12ch; }
.confirm-card {
  display: grid; justify-items: center; gap: 14px; width: min(100%, 432px); margin-top: 16px; padding: 28px 26px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md);
}
.confirm-card p { font-size: 0.95rem; }
.confirm-button { width: 100%; }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease); will-change: opacity, transform;
}
.js [data-reveal].in-view { opacity: 1; transform: none; }
.js [data-reveal][data-reveal-delay='1'] { transition-delay: 90ms; }
.js [data-reveal][data-reveal-delay='2'] { transition-delay: 180ms; }
.js [data-reveal][data-reveal-delay='3'] { transition-delay: 270ms; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sweep { 0% { transform: translateX(-130%); opacity: 0; } 26% { opacity: 1; } 100% { transform: translateX(130%); opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: 0.6; transform: rotate(45deg) scale(0.9); } 50% { opacity: 1; transform: rotate(45deg) scale(1.08); } }

/* ---------- Spacing tighten + panel ---------- */
.lookbook-section { padding-bottom: 30px; }
.lookbook-tagline { margin-top: 30px; }
.steps { padding-top: 60px; }
.steps .section-head { margin-bottom: 40px; }
.step { padding: 50px 40px; }
.step-num { font-size: 3.1rem; }

/* animated "how it works" panel */
.steps-panel { position: relative; }
.steps-line { position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 5; background: rgba(250, 246, 236, 0.1); }
.steps-line i {
  display: block; height: 100%; transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  box-shadow: 0 0 14px rgba(200, 160, 74, 0.6);
}
.steps-panel.in-view .steps-line i { animation: drawLine 1200ms 200ms var(--ease) forwards; }

.steps-panel .step { z-index: 2; opacity: 0; transform: translateY(20px); }
.steps-panel.in-view .step { animation: fadeUp 720ms var(--ease) forwards; animation-delay: var(--delay, 0s); }

.step-num { display: inline-block; transition: transform 360ms var(--ease), text-shadow 360ms ease; }
.step { transition: background 320ms ease; }
.step:hover { background: rgba(255, 255, 255, 0.04); }
.step:hover .step-num { transform: translateY(-4px); text-shadow: 0 0 28px rgba(200, 160, 74, 0.6); }

.steps-panel::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.06) 50%, transparent 58%);
  transform: translateX(-110%); animation: panelSheen 7.5s 1.6s ease-in-out infinite;
}

@keyframes drawLine { to { transform: scaleX(1); } }
@keyframes panelSheen { 0% { transform: translateX(-110%); } 50%, 100% { transform: translateX(110%); } }

/* ---------- Auth screens (reset / confirm) ---------- */
.auth-page {
  display: grid; place-items: center; min-height: 72svh; padding: 48px 0 72px;
  background: radial-gradient(120% 80% at 50% 0%, var(--gold-tint), transparent 56%);
}
.auth-card {
  position: relative; overflow: hidden;
  width: min(100%, 470px);
  display: grid; justify-items: center; gap: 13px; text-align: center;
  padding: 46px 36px 38px;
  border: 2px solid var(--gold); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.auth-mark { width: 70px; height: 70px; border-radius: 18px; box-shadow: var(--shadow-sm); margin-bottom: 4px; }
.auth-card h1 { font-size: clamp(2.4rem, 5.4vw, 3.3rem); line-height: 1.0; max-width: 14ch; }
.auth-intro { max-width: 38ch; font-size: 1.04rem; color: var(--muted); }
.auth-form { display: grid; gap: 14px; width: 100%; margin-top: 12px; text-align: left; }
.auth-form label { display: grid; gap: 8px; color: var(--ink); font-size: 0.85rem; font-weight: 700; }
.auth-form input {
  width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid var(--line-strong);
  border-radius: 14px; background: #FFFFFF; color: var(--text); font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.auth-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.auth-submit { width: 100%; border: 0; cursor: pointer; margin-top: 6px; }
.auth-fine { font-size: 0.84rem; color: var(--muted); margin-top: 12px; }
.reset-message { min-height: 22px; text-align: center; font-weight: 600; color: var(--muted); }
.reset-message[data-tone='error'] { color: #A32121; }
.reset-message[data-tone='success'] { color: #1D6A3A; }

@media (max-width: 640px) {
  .auth-card { padding: 38px 24px 30px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .section { padding: 78px 0; }
  .lookbook { gap: 16px; }
  .steps-panel { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid rgba(250, 246, 236, 0.1); }
  .step { padding: 44px 34px; }
  .legal-page { padding: 38px 28px 48px; }
}

@media (max-width: 640px) {
  .site-shell { width: min(calc(100% - 24px), var(--max)); }
  .site-footer { align-items: center; flex-direction: column; text-align: center; }
  .site-header { position: static; justify-content: center; gap: 8px; border-radius: 26px; padding: 10px 12px; }
  .site-nav, .footer-links { justify-content: center; gap: 10px; font-size: 0.88rem; }
  .site-nav a { padding: 8px 9px; }
  .brand { min-width: auto; padding-left: 4px; }
  .brand img { width: 66px; }
  .nav-cta { display: none; }

  .section { padding: 60px 0; }
  .hero { padding-top: 40px; }
  .lede { font-size: 1.06rem; }
  .button { width: 100%; }
  .section-head { margin-bottom: 34px; }

  .lookbook { grid-template-columns: 1fr; gap: 18px; max-width: 380px; margin: 0 auto; }
  .closing-cta { padding: 56px 22px; }
  .legal-page { padding: 30px 20px 40px; border-radius: 22px; }

  .look-cta { opacity: 1; transform: translate(-50%, -50%) scale(1); top: auto; bottom: 64px; }
}
