/* Mirr — AI Wardrobe · landing site
   Palette + type mirror Mirr/Mirr/Theme.swift */

:root {
  --canvas: #f8f8f5;
  --surface: #ffffff;
  --ink: #2f302f;
  --muted: #8f908c;
  --line: #e8e8e3;
  --chip: #edede7;
  --shadow-card: 0 1px 2px rgba(30, 30, 25, 0.04), 0 14px 40px -18px rgba(30, 30, 25, 0.16);
  --shadow-float: 0 2px 4px rgba(30, 30, 25, 0.05), 0 24px 60px -24px rgba(30, 30, 25, 0.28);
  --radius-card: 24px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

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

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--chip);
  border-radius: 999px;
  padding: 7px 14px;
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 44px); margin: 16px 0 12px; }
.section-head p { color: var(--muted); font-size: 17px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 0 26px;
  height: 52px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }

@media (max-width: 400px) {
  .btn { font-size: 13.5px; padding: 0 20px; height: 48px; }
  .btn-sm { height: 40px; padding: 0 16px; font-size: 13px; }
}

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-outline:hover { background: var(--surface); }

.btn-chip { background: var(--chip); color: var(--ink); height: 46px; font-size: 14px; }
.btn-chip:hover { background: #e4e4dd; }

.btn-sm { height: 40px; padding: 0 18px; font-size: 13.5px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 248, 245, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .app-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(30, 30, 25, 0.06);
}
.brand .wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.brand .tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 2px;
}
@media (max-width: 560px) { .brand .tag { display: none; } }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a.nav-link:hover { color: var(--ink); }
@media (max-width: 720px) { .site-nav a.nav-link { display: none; } }

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

.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
}

.hero h1 { font-size: clamp(42px, 6.4vw, 68px); margin: 20px 0 18px; }
.hero h1 em { font-style: italic; font-weight: 500; }

.hero .lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 30em;
  margin-bottom: 28px;
}

.hero .context-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 26px;
}

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

.hero .fineprint {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* device shots: real device frames with transparent background */

.phone-zone { position: relative; width: fit-content; margin-inline: auto; }

.device-shot {
  display: block;
  height: auto;
  filter: drop-shadow(0 2px 3px rgba(30, 30, 25, 0.08)) drop-shadow(0 32px 56px rgba(30, 30, 25, 0.26));
}
.hero-shot { width: min(330px, 84vw); }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}
.float-chip svg { flex: none; }
.float-chip.credits { top: 17%; right: -78px; }
.float-chip .sub { color: var(--muted); font-weight: 500; }
@media (max-width: 640px) { .float-chip.credits { display: none; } }

/* ---------- steps ---------- */

.steps { padding: 56px 0 8px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
}
.step-card .num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--chip);
  margin-bottom: 18px;
}
.step-card h3 { font-size: 22px; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 15px; }

/* ---------- features ---------- */

.features { padding: 72px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--chip);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transform: rotate(-4deg);
}
.feature-card h3 { font-size: 20px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ---------- showcase ---------- */

.showcase { padding: 24px 0 72px; }

.shot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(300px, 74vw);
  gap: 28px;
  overflow-x: auto;
  padding: 8px 24px 28px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shot-strip::-webkit-scrollbar { display: none; }
@media (min-width: 1160px) {
  .shot-strip {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: stretch;
    overflow-x: visible;
    max-width: 1280px;
    margin-inline: auto;
    scroll-snap-type: none;
    padding: 8px 24px 28px;
  }
}

.shot { scroll-snap-align: center; text-align: center; }
.shot .device-shot { width: 100%; }
.shot figcaption {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}
.shot figcaption span {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- video ---------- */

.video-section { padding: 0 0 88px; }
.video-frame {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
}
.video-frame video {
  width: 100%;
  border-radius: 42px;
  border: 9px solid var(--ink);
  box-shadow: var(--shadow-float);
  background: var(--canvas);
  aspect-ratio: 640 / 1392;
  object-fit: cover;
}

/* ---------- faq ---------- */

.faq { padding: 0 0 88px; }
.faq-list { max-width: 760px; }

.faq details {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 22px 26px;
  margin-bottom: 14px;
}
.faq details[open] { padding-bottom: 8px; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .toggle {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--chip);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.faq details[open] summary .toggle { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 15px; padding-top: 12px; max-width: 58em; }

/* ---------- cta band ---------- */

.cta {
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  padding: 72px 32px;
  text-align: center;
  margin-bottom: 88px;
}
.cta h2 { font-size: clamp(30px, 4.6vw, 48px); max-width: 16em; margin: 0 auto 14px; }
.cta h2 em { font-style: italic; font-weight: 500; }
.cta p { color: rgba(255, 255, 255, 0.64); margin-bottom: 30px; font-size: 16px; }
.cta .btn { background: #fff; color: var(--ink); }
.cta .fineprint { color: rgba(255, 255, 255, 0.5); margin-top: 16px; font-size: 13px; }

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

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .app-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(30, 30, 25, 0.06);
}
.footer-brand .wordmark { font-family: var(--serif); font-weight: 700; font-size: 20px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); }
.site-footer .copyright {
  font-size: 12.5px;
  color: var(--muted);
}

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

.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 32px;
}
.legal .back:hover { color: var(--ink); }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 44px; }
.legal h2 {
  font-size: 21px;
  margin: 36px 0 10px;
}
.legal p, .legal li { color: #55564f; font-size: 15.5px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--ink); font-weight: 600; }
.legal .contact-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 24px 26px;
  margin-top: 40px;
}
