/* Same warm dark palette as the app (src/global.css) */
:root {
  --bg: #12100e;
  --surface: #1d1a17;
  --elevated: #29251f;
  --line: #383229;
  --cream: #f4ede3;
  --muted: #a39888;
  --faint: #6f665a;
  --accent: #cdb08a;
  --accent-ink: #1a1510;
  --radius: 20px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Shared bits */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.eyebrow::after { content: ""; width: 48px; height: 1px; background: var(--line); }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 44px); }
.muted { color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 16px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-cream { background: var(--cream); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head p { max-width: 380px; }
section { padding: 96px 0; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(18,16,14,.8); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(56,50,41,.5); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--accent);
}
.logo b { display: block; font-size: 17px; line-height: 1.1; }
.logo small { display: block; font-size: 10px; letter-spacing: .28em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; gap: 32px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--cream); }
.nav .btn { padding: 10px 18px; font-size: 14px; }

/* Hero */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(205,176,138,.16), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 24px; position: relative; }
.hero h1 { font-size: clamp(44px, 6.2vw, 76px); margin: 22px 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 19px; max-width: 440px; }
.hero-cta { margin-top: 34px; }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 18px; border-radius: 16px; min-width: 186px;
  transition: transform .15s ease, border-color .15s ease, opacity .15s ease;
}
.store:hover { transform: translateY(-1px); }
.store span { display: flex; flex-direction: column; font-size: 19px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: .02em; opacity: .75; }
.store-apple { background: var(--cream); color: var(--accent-ink); }
.store-apple:hover { opacity: .92; }
.store-play { background: var(--surface); border: 1px solid var(--line); color: var(--cream); }
.store-play:hover { border-color: var(--accent); }
.hero-meta { display: flex; gap: 28px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.hero-meta strong { display: block; color: var(--cream); font-size: 22px; }
.hero-img { transform: scale(1.3); filter: drop-shadow(0 40px 60px rgba(0,0,0,.55)); }

/* Feature strip */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-top: 24px;
}
.feature { padding: 26px 24px; text-align: center; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature svg { color: var(--accent); margin: 0 auto 10px; }
.feature b { display: block; font-size: 16px; }
.feature span { font-size: 13px; color: var(--muted); }

/* Styles grid */
.styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.style-card { border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 4 / 5; background: var(--surface); }
.style-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.style-card:hover img { transform: scale(1.05); }
.style-card span {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; font-weight: 600;
  background: linear-gradient(transparent, rgba(10,8,6,.85));
}

/* Before / after */
.compare-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.steps { list-style: none; margin-top: 32px; display: grid; gap: 22px; }
.steps li { display: flex; gap: 16px; }
.steps i {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--elevated); color: var(--accent); font-style: normal; font-size: 14px; font-weight: 700;
}
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 15px; }
.compare {
  --pos: 50%;
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--cream); pointer-events: none;
}
.compare .divider::after {
  content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); color: var(--accent-ink); font-size: 18px;
}
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.compare .tag {
  position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(10,8,6,.6); backdrop-filter: blur(6px); pointer-events: none;
}
.tag.l { left: 14px; } .tag.r { right: 14px; }

/* Showcase */
.showcase { text-align: center; }
.showcase h2 { max-width: 640px; margin: 18px auto 14px; }
.showcase p { max-width: 520px; margin: 0 auto; }
.showcase img { margin: 24px auto 0; width: min(100%, 1000px); filter: drop-shadow(0 40px 60px rgba(0,0,0,.55)); }

/* CTA banner */
.banner {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; overflow: hidden;
  background: linear-gradient(120deg, #2a231b, #1d1a17 60%);
  border: 1px solid var(--line); border-radius: 28px;
}
.banner-copy { padding: 56px; }
.banner h2 { margin: 16px 0 14px; }
.banner .stores { margin-top: 26px; }
.banner-media { position: relative; height: 100%; min-height: 340px; }
.banner-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Gradient overlay instead of mask-image: Chrome skips masks on hardware-decoded <video>. */
.banner-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, #1d1a17, transparent 40%); }

/* Footer */
footer { border-top: 1px solid var(--line); background: #0f0d0b; margin-top: 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 40px 0; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 28px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--faint);
}
.footer-links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--cream); }

/* Legal pages */
.doc { max-width: 720px; padding: 72px 24px 40px; margin: 0 auto; }
.doc h1 { font-size: clamp(36px, 5vw, 48px); margin: 18px 0 8px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 20px; margin-top: 8px; }
.doc a { color: var(--accent); }
.draft {
  margin: 28px 0 24px; padding: 14px 18px; border-radius: 14px; font-size: 14px;
  background: var(--surface); border: 1px dashed var(--line); color: var(--muted);
}

/* Mobile */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .hero-img { transform: scale(1.15); margin: 24px 0; }
  .hero-grid, .compare-wrap, .banner { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero p { margin: 0 auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
  .styles { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .banner-copy { padding: 36px 28px; }
  .banner-media { min-height: 300px; }
  .banner-media::after { background: linear-gradient(to bottom, #1d1a17, transparent 40%); }
  .footer-top, .footer-bottom { flex-direction: column; align-items: start; }
}
