/* MyFaceShape — premium landing (matches app design tokens) */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #f8f7ff;
  --bg-2: #f1f0f7;
  --surface: #ffffff;
  --text: #0a0a0f;
  --text-muted: #6b7380;
  --text-soft: #9ca3af;
  --accent: #7c3aed;
  --accent-2: #c026d3;
  --accent-glow: rgba(124, 58, 237, 0.35);
  --magenta-wash: rgba(192, 38, 211, 0.08);
  --purple-wash: rgba(124, 58, 237, 0.1);
  --border: rgba(10, 10, 15, 0.08);
  --border-strong: rgba(10, 10, 15, 0.12);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --max: 1180px;
  --font: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px rgba(10, 10, 15, 0.04);
  --shadow: 0 20px 50px rgba(10, 10, 15, 0.08);
  --shadow-lg: 0 40px 80px rgba(124, 58, 237, 0.15);
  --gradient: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%);
  --gradient-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(192, 38, 211, 0.08));
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 90% -10%, var(--purple-wash), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 20%, var(--magenta-wash), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(124, 58, 237, 0.06), transparent 60%),
    var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #6d28d9; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
}

.site-header > .container,
.site-header .container.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover { color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.nav-links {
  display: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
  background: rgba(10, 10, 15, 0.04);
  text-decoration: none;
}

.nav-links .btn-primary {
  color: #fff;
  margin-left: 0.35rem;
  padding: 0.6rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.nav-links .btn-primary:hover {
  color: #fff;
  background: var(--gradient);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--text);
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(248, 247, 255, 0.96);
  backdrop-filter: blur(12px);
  padding: 5rem 2rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a:not(.btn) {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.mobile-nav .btn-primary {
  color: #fff;
  margin-top: 1rem;
  width: 100%;
  border-bottom: none;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover { color: #fff; box-shadow: 0 12px 32px var(--accent-glow); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
}

.btn-sm { padding: 0.65rem 1.15rem; font-size: 0.875rem; }

/* ── Store badges ── */
.store-badges { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

.store-badge-img {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge-img:hover {
  transform: translateY(-2px);
  text-decoration: none;
  opacity: 0.92;
}

.store-badge-img img {
  height: 50px;
  width: auto;
  max-width: none;
  display: block;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

.hero .store-badges {
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.hero .store-badge-img img {
  height: 50px;
}

@media (min-width: 480px) {
  .store-badge-img img { height: 54px; }
  .hero .store-badge-img img { height: 58px; }
  .cta-card .store-badge-img img { height: 58px; }
}

@media (min-width: 768px) {
  .hero .store-badge-img img { height: 62px; }
  .cta-card .store-badge-img img { height: 62px; }
}

.cta-card .store-badges {
  justify-content: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.15rem;
  border-radius: 14px;
  background: var(--text);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}

.store-badge:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.store-badge strong { display: block; font-size: 1rem; font-weight: 600; }

/* ── Hero ── */
.hero {
  padding: 2rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-content { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 999px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

.hero h1 {
  font-size: clamp(2.35rem, 6vw, 3.75rem);
  line-height: 1.05;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.trust-pill {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

/* Screenshots — no device frame, just the app UI */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.phone-glow {
  position: absolute;
  width: 65%;
  height: 55%;
  top: 22%;
  left: 17%;
  background: var(--gradient);
  filter: blur(70px);
  opacity: 0.28;
  border-radius: 50%;
  pointer-events: none;
}

.phone-frame {
  position: relative;
  width: min(100%, 300px);
  padding: 6px;
  background: linear-gradient(160deg, #25252d 0%, #0a0a0f 100%);
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1272 / 2800;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.screenshot {
  width: min(100%, 280px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* ── Sections ── */
section { padding: 5rem 0; }

.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.15;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.6;
}

/* ── Bento features ── */
.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.bento-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  box-shadow: var(--shadow-sm);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(124, 58, 237, 0.2);
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.bento-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bento-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.bento-card.featured {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

.bento-card.featured p { color: rgba(255, 255, 255, 0.85); }
.bento-card.featured .bento-icon { background: rgba(255, 255, 255, 0.2); }

/* ── Steps ── */
.steps-grid {
  display: grid;
  gap: 1.25rem;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.step-card:hover { box-shadow: var(--shadow); }

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-card h3 { margin: 0 0 0.35rem; font-size: 1.1rem; font-weight: 600; }
.step-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ── Screenshot showcase ── */
.showcase-wrap {
  position: relative;
  margin: 0 -1.25rem;
  padding: 0 1.25rem;
}

.showcase-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.showcase-track::-webkit-scrollbar { display: none; }

.showcase-item {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: center;
}

.showcase-item .phone-frame {
  width: 100%;
}

.showcase-item figcaption {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.85rem;
}

/* ── Use cases ── */
.use-grid {
  display: grid;
  gap: 1rem;
}

.use-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.use-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.use-item p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ── Guides ── */
.guide-grid {
  display: grid;
  gap: 1rem;
}

.guide-card {
  display: block;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-sm);
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(124, 58, 237, 0.25);
  text-decoration: none;
  color: var(--text);
}

.guide-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.guide-card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; font-weight: 600; }
.guide-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.faq details[open] { border-color: rgba(124, 58, 237, 0.25); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  padding: 1.15rem 1.35rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq .faq-body {
  padding: 0 1.35rem 1.15rem;
  border-top: 1px solid var(--border);
}

.faq p { color: var(--text-muted); margin: 1rem 0 0; font-size: 0.95rem; }
.faq .learn-more { font-size: 0.9rem; font-weight: 600; margin-top: 0.75rem; display: inline-block; }

/* ── CTA band ── */
.cta-band {
  padding: 4rem 0;
  margin: 2rem 0 0;
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: 3rem 2rem;
  border-radius: var(--radius-xl);
  background: var(--gradient);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 0%, rgba(255,255,255,0.2), transparent 50%);
  pointer-events: none;
}

.cta-card .cta-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cta-card h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.cta-card p {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  opacity: 0.9;
  font-size: 1.05rem;
}

/* ── Footer ── */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-grid h4 {
  color: var(--text);
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: var(--text-muted); font-size: 0.95rem; text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }

.footer-tagline { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.75rem; max-width: 22rem; line-height: 1.6; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.85rem;
}

/* ── Article pages ── */
body.article-page { background: var(--bg); }
body.article-page::before { opacity: 0.6; }

.article {
  padding: 2rem 0 4rem;
  max-width: 680px;
}

.article h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.article .meta { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.9rem; }
.article h2 { margin-top: 2.5rem; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.article h3 { margin-top: 1.5rem; font-size: 1.1rem; font-weight: 600; }
.article p, .article li { color: var(--text-muted); line-height: 1.65; }
.article ul, .article ol { padding-left: 1.25rem; }

.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumbs a { color: var(--text-muted); }
.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* ── Mobile CTA ── */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 90;
  box-shadow: 0 -8px 32px rgba(10, 10, 15, 0.08);
}

.mobile-cta .btn { width: 100%; }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .use-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2rem; }
  .phone-frame { width: min(100%, 320px); }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento-card.span-2 { grid-column: span 2; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .showcase-item { flex: 0 0 220px; }
  .cta-card { padding: 4rem 3rem; }
}

@media (min-width: 1024px) {
  .hero { padding: 3rem 0 5rem; }
  .showcase-wrap { margin: 0; padding: 0; }
  .showcase-track {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
  }
  .showcase-item { flex: 0 0 calc(20% - 1rem); }
}

@media (max-width: 767px) {
  .mobile-cta.visible { display: block; }
  body.has-mobile-cta { padding-bottom: 5rem; }
  .site-header .container { border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .bento-card:hover, .guide-card:hover { transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
