/* Shave Carousel product page: matches the app's cream/brass palette. */
:root {
  color-scheme: light dark;
  --bg: #faf7f0;
  --ink: #1c1917;
  --muted: #78716c;
  --brand: #a67931;
  --brand-dark: #7d5a22;
  --card: #ffffff;
  --border: #e7e0d2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171412;
    --ink: #e7e5e4;
    --muted: #a8a29e;
    --card: #211d1a;
    --border: #3a332c;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 17px/1.6 -apple-system, system-ui, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 1.5rem; text-align: center; margin: 0 0 1.5rem; }
a { color: var(--brand); }
section, footer { max-width: 60rem; margin: 0 auto; padding: 2.5rem 1.25rem; }

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 1.25rem 2.5rem;
  max-width: 60rem;
  margin: 0 auto;
}
.app-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(90, 63, 35, 0.25);
}
.hero h1 { font-size: 2.4rem; margin: 1.2rem 0 0.4rem; }
.tagline {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto;
}
/* Store badges (adaptive: dark badge on light bg, light badge on dark bg) */
.store-badges {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.7rem;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 200px;
  padding: 0.6rem 1.15rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-badge:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22); }
.store-logo { width: 26px; height: 26px; flex: 0 0 auto; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge-text small { font-size: 0.68rem; opacity: 0.85; }
.store-badge-text strong { font-size: 1.05rem; font-weight: 700; }
.cta-note { margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--muted); }

.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.waitlist-done { color: var(--brand); font-weight: 600; }
.waitlist-error { color: #dc2626; font-size: 0.9rem; margin: 0.6rem 0 0; }

/* Beta-access modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(3px);
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  width: 100%;
  max-width: 26rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.9rem 1.5rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}
.modal h2 { font-size: 1.3rem; margin: 0 0 0.6rem; }
.modal .section-sub { max-width: none; margin: 0 0 1.15rem; font-size: 0.95rem; }
.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--border); color: var(--ink); }
.beta-form { display: flex; flex-direction: column; gap: 0.6rem; text-align: left; }
.beta-form input,
.beta-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
}
.beta-form textarea { resize: vertical; min-height: 3.4rem; }
.beta-form button {
  margin-top: 0.2rem;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.beta-form button:hover { background: var(--brand-dark); }

/* Video */
.video video {
  width: 100%;
  max-width: 24rem;
  display: block;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 10px 34px rgba(90, 63, 35, 0.2);
}

/* Screenshots */
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 38rem;
  margin: -1rem auto 1.5rem;
  font-size: 0.95rem;
}
.screen-strip {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-start;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem;
  -webkit-overflow-scrolling: touch;
}
.screen-strip figure {
  flex: 0 0 auto;
  margin: 0;
  width: 240px;
}
.screen-strip img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(90, 63, 35, 0.16);
}
.screen-strip figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}
@media (min-width: 900px) {
  .screen-strip { justify-content: center; flex-wrap: wrap; }
}

/* FAQ */
.faq { max-width: 44rem; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.6rem;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 0.98rem; }
.faq details p { color: var(--muted); font-size: 0.92rem; margin: 0.6rem 0 0; }

/* Features */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.card p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* Footer */
footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}
