/* ===== MERA — simple & clean ===== */
:root {
  --ink: #0a0a0a;
  --gray: #6b7280;
  --line: #ececec;
  --soft: #f7f7f7;
  --white: #ffffff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { width: min(1100px, 90%); margin: 0 auto; }
.container-narrow { width: min(680px, 90%); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-family: inherit; font-weight: 700;
  padding: 15px 28px; border-radius: 999px; transition: background 0.2s, transform 0.2s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #222; transform: translateY(-1px); }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.95rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
}
.nav.scrolled { border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--gray); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}
.hero-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.2rem);
  letter-spacing: -0.04em;
}
.hero-sub {
  color: var(--gray);
  font-size: 1.15rem;
  max-width: 30ch;
  margin: 22px 0 32px;
  font-weight: 500;
  line-height: 1.5;
}
.app-note {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray);
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.store-badge {
  display: inline-flex;
  transition: transform 0.2s, opacity 0.2s;
}
.store-badge:hover { transform: translateY(-2px); opacity: 0.9; }
.store-badge img { height: 40px; width: auto; display: block; }
.app-fine {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--gray);
  font-weight: 500;
}

/* Hero visuals: photo + arrow + phone (same height) */
.hero-cards {
  --hero-h: 480px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.hero-photo-card {
  width: calc(var(--hero-h) * 9 / 16);
  height: var(--hero-h);
  flex: none;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}
.hero-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-arrow {
  flex: none;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  opacity: 0.7;
}
.phone {
  width: calc(var(--hero-h) * 9 / 19.5);
  height: var(--hero-h);
  flex: none;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 7px solid #111;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.phone-top {
  height: 26px;
  flex: none;
  position: relative;
  background: #fff;
}
.phone-top::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 16px;
  background: #111;
  border-radius: 0 0 10px 10px;
}
.phone-app {
  flex: 1;
  min-height: 0;
  padding: 4px 6px 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.outfit-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
}
.outfit {
  border-radius: 14px;
  overflow: hidden;
  min-height: 0;
  background: #f3f3f3;
}
.outfit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Sections */
.section { padding: 88px 0; }
.section-soft {
  background: var(--soft);
  border-radius: 40px 40px 0 0;
}
.section-head { text-align: center; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }

/* Soft handoff from white hero into the why section */
#why {
  margin-top: 8px;
  padding-top: 100px;
}

/* Steps — no cards, just clean columns */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step { text-align: left; }
.step-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--gray); font-size: 1rem; }

/* Benefits */
.benefit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0;
}
.benefit.reverse .benefit-text { order: 2; }
.benefit-text h3 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 12px;
}
.benefit-text p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 36ch;
}
.outfit-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}
.outfit-cards img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 18px;
}
.benefit-photo {
  border-radius: 24px;
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}
.benefit-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}
/* Product close-up — full camera + clip, no crop */
.benefit-photo.benefit-photo--product {
  aspect-ratio: 1 / 1;
  background: #e8e8e8;
  display: grid;
  place-items: center;
  padding: 56px;
}
.benefit-photo.benefit-photo--product img {
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
}

/* Reviews */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review {
  background: var(--soft);
  border-radius: 18px;
  padding: 28px;
}
.review p {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.review cite {
  color: var(--gray);
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
}

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0 4px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--gray);
  font-size: 1.4rem;
  font-weight: 400;
}
.faq details[open] summary::after { content: '–'; }
.faq details p {
  color: var(--gray);
  padding: 0 0 20px;
  max-width: 56ch;
}

/* CTA */
.cta {
  padding: 100px 0;
  background: var(--soft);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.cta-photo {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.cta-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.cta-inner h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.cta-inner p {
  color: var(--gray);
  font-size: 1.15rem;
  margin: 14px 0 28px;
  max-width: 32ch;
}
.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 14px;
  max-width: 420px;
  position: relative;
}
.waitlist-form input.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  flex: none;
}
.waitlist-form input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 15px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.waitlist-form input:focus { border-color: var(--ink); }
.waitlist-form .btn { flex: 0 0 auto; }
.waitlist-form .btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.waitlist-success,
.waitlist-error {
  margin-top: 12px;
  font-weight: 700;
  color: var(--ink);
}
.waitlist-form.is-done { display: none; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--gray); font-weight: 600; font-size: 0.9rem; }
.footer-copy { color: var(--gray); font-size: 0.9rem; }

/* Reveal */
.reveal.in { animation: fadeUp 0.55s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal.in { animation: none; }
}

/* Sign-in gate */
.login-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--soft);
}
html.authed .login-gate { display: none; }
html:not(.authed) .site { display: none; }
html:not(.authed) body { overflow: hidden; }

.login-card { width: min(400px, 100%); }
.login-brand {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.login-card h1 {
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}
.login-lead {
  color: var(--gray);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.5;
  margin-bottom: 28px;
}
.login-card label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.login-card input {
  width: 100%;
  margin-bottom: 16px;
  padding: 15px 18px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  outline: none;
}
.login-card input:focus { border-color: var(--ink); }
.login-error {
  margin: -4px 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #b42318;
}
.login-card .btn { width: 100%; margin-top: 4px; }
.login-card .btn:disabled { opacity: 0.7; cursor: progress; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .store-badges { justify-content: center; }
  .hero-cards { --hero-h: 400px; justify-content: center; }
  .steps, .reviews { grid-template-columns: 1fr; gap: 28px; }
  .benefit { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .benefit.reverse .benefit-text { order: 0; }
  .benefit-text p { margin-left: auto; margin-right: auto; }
  .cta-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .cta-inner p { margin-left: auto; margin-right: auto; }
  .cta-photo { max-width: 360px; margin: 0 auto; }
  .waitlist-form { margin-left: auto; margin-right: auto; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .hero-cards {
    --hero-h: 300px;
    gap: 8px;
  }
  .phone { border-width: 5px; border-radius: 26px; }
  .hero-photo-card { border-radius: 18px; }
  .hero-arrow { font-size: 1.15rem; }
  .phone-app { padding: 2px 4px 8px; }
  .outfit { border-radius: 8px; }
  .outfit-grid { gap: 4px; }
}
