/* Wardrobe AI — editorial marketing site
   Tokens mirror apps/mobile/lib/design-tokens.ts (light scheme). */

/* ---------- tokens ---------- */
:root {
  --bg: #F9F9F6;          /* alabaster base */
  --surface: #FFFEFA;     /* off-white card */
  --raised: #F1EEE7;      /* raised surface */
  --accent: #8A6F5A;      /* warm taupe — primary CTA only */
  --accent-2: #6F7B80;    /* brushed steel — minor cool detail */
  --ink: #1A1A1A;         /* primary text */
  --ink-2: #6F6A60;       /* secondary text */
  --hairline: #DED8CF;    /* borders */
  --shadow: rgba(26, 26, 26, 0.12);
  --overlay: rgba(26, 26, 26, 0.07);

  --radius-card: 16px;
  --radius-control: 12px;
  --radius-pill: 999px;
  --gutter: 24px;
  --maxw: 1080px;

  --shadow-card: 0 12px 28px var(--shadow);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1A1A;
    --surface: #242321;
    --raised: #2C2A27;
    --accent: #BFA58D;
    --accent-2: #97A3A7;
    --ink: #F4F1EA;
    --ink-2: #B8B1A6;
    --hairline: #3B3935;
    --shadow: rgba(0, 0, 0, 0.32);
    --overlay: rgba(249, 249, 246, 0.08);
    --shadow-card: 0 12px 28px var(--shadow);
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 23px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: 80px; }
.hairline-top { border-top: 1px solid var(--hairline); }

/* ---------- typography ---------- */
.display {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.headline {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 32px);
  line-height: 1.15;
}
.title {
  font-size: 20px;
  line-height: 27px;
  font-weight: 600;
}
.lead {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
}
.muted { color: var(--ink-2); }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand .mark { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-2); font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 600px) { .nav-links .nav-hide { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding-inline: 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.16,1,0.3,1), opacity 180ms;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #FFFEFA; }
.btn-primary:hover { opacity: 0.92; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { background: var(--overlay); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
/* grid/flex children default to min-width:auto, which lets non-wrapping
   content (the CTA row) push the column past the viewport. Pin to 0. */
.hero-copy, .hero-visual { min-width: 0; }
.hero-copy .display { margin-top: 18px; }
.hero-copy .lead { margin-top: 18px; max-width: 30ch; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--ink-2); }

/* before -> after visual */
.showcase {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.frame {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.frame .frame-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 14px 16px 0;
}
.frame .frame-body {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 16px;
}
.frame.after { background: var(--raised); }
.swatch-stack { display: grid; gap: 10px; width: 70%; }
.swatch { height: 26px; border-radius: 8px; background: var(--raised); }
.frame.after .swatch:nth-child(1) { background: #C9BCAE; }
.frame.after .swatch:nth-child(2) { background: #9AA4A0; }
.frame.after .swatch:nth-child(3) { background: #7E7165; }
.arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFEFA;
  display: grid; place-items: center;
  box-shadow: var(--shadow-card);
  font-size: 18px;
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.card .step-no {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--accent);
  font-weight: 600;
}
.card .title { margin-top: 12px; }
.card p { margin-top: 8px; color: var(--ink-2); }

/* ---------- closing cta ---------- */
.cta-band { text-align: center; }
.cta-band .headline { max-width: 18ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin-top: 28px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding-block: 40px; }
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a, .site-footer .copyright { font-size: 13px; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }

/* ---------- legal / prose pages ---------- */
.doc { padding-block: 56px 96px; }
.prose { max-width: 720px; }
.prose .display { font-size: clamp(30px, 5vw, 40px); }
.prose .updated { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.prose h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 10px;
}
.prose h3 { font-size: 16px; font-weight: 600; margin-top: 24px; margin-bottom: 6px; }
.prose p { margin-top: 12px; color: var(--ink); line-height: 1.6; }
.prose ul { margin-top: 12px; padding-left: 20px; color: var(--ink); line-height: 1.6; }
.prose li { margin-top: 6px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose .callout {
  margin-top: 24px;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  font-size: 14px;
  color: var(--ink-2);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
}
.prose th, .prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.prose th { font-weight: 600; color: var(--ink); }
.prose td { color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .section { padding-block: 56px; }
  .hero-grid { grid-template-columns: 1fr; }
  .showcase { max-width: 420px; }
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
