/* FaceGrade AI — v3 */

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

:root {
  --bg: #08080C;
  --surface: #111118;
  --card: #16161F;
  --accent: #8B8BFA;
  --accent-dim: rgba(139, 139, 250, 0.12);
  --warn: #E2A83E;
  --text: #F0F0F4;
  --text-mid: #8E8E9A;
  --text-dim: #55555F;
  --border: rgba(255, 255, 255, 0.05);
  --border-light: rgba(255, 255, 255, 0.08);
  --font-display: 'Clash Display', sans-serif;
  --font-body: 'Switzer', sans-serif;
  --radius-phone: 42px;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}


a {
  color: var(--accent);
  text-decoration: none;
}

/* ——————————————————————————————————
   Page layout — vertically centered
   —————————————————————————————————— */
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 48px 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: 1080px;
  width: 100%;
}

/* ——————————————————————————————————
   Hero copy — left side
   —————————————————————————————————— */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 22px;
}

.hero-punch {
  display: block;
  font-weight: 700;
  color: var(--text);
  font-style: italic;
  opacity: 0.6;
}

.subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-mid);
  line-height: 1.6;
  letter-spacing: 0.005em;
  margin-bottom: 38px;
  max-width: 380px;
}

.desktop-br {
  display: none;
}

@media (min-width: 769px) {
  .desktop-br {
    display: inline;
  }
}

.cta-button {
  display: inline-block;
  padding: 14px 40px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-bottom: 14px;
}

.cta-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.app-store-link {
  display: inline-block;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.app-store-link:hover {
  opacity: 0.8;
}

.app-store-link img {
  height: 36px;
  display: block;
}

/* ——————————————————————————————————
   Phone mockup — right side
   —————————————————————————————————— */
.phone-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Radial glow behind phone */
.phone-glow {
  position: absolute;
  width: 340px;
  height: 420px;
  background: radial-gradient(ellipse at center,
    rgba(139, 139, 250, 0.08) 0%,
    rgba(139, 139, 250, 0.03) 40%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.phone-bezel {
  position: relative;
  z-index: 1;
  width: 280px;
  background: #0C0C12;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-phone);
  padding: 14px 12px 18px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.phone-bezel:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 20px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

/* Notch */
.phone-notch {
  width: 100px;
  height: 28px;
  background: #0C0C12;
  border-radius: 0 0 18px 18px;
  margin: -14px auto 10px;
  position: relative;
  z-index: 2;
}

/* Screen area */
.phone-screen {
  background: var(--surface);
  border-radius: 28px;
  padding: 24px 18px 20px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

/* ——————————————————————————————————
   Score card (inside phone)
   —————————————————————————————————— */
.score-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.score-main {
  text-align: center;
  margin-bottom: 4px;
}

.score-number {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}

.score-verdict {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  width: 100%;
  text-align: center;
}

/* Score breakdown */
.score-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bar-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-mid);
}

.bar-val {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.bar-val.warn {
  color: var(--warn);
}

.score-potential {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.score-potential strong {
  color: var(--accent);
  font-weight: 700;
}


/* ——————————————————————————————————
   Footer
   —————————————————————————————————— */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-dim);
  background: linear-gradient(to top, var(--bg) 60%, transparent);
  pointer-events: none;
}

.disclaimer {
  font-size: 0.68rem;
  color: var(--text-dim);
  opacity: 0.5;
  margin-top: 12px;
  line-height: 1.4;
}

.footer * {
  pointer-events: auto;
}

.footer-brand {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-mid);
}

/* ——————————————————————————————————
   Responsive
   —————————————————————————————————— */
@media (max-width: 768px) {
  .page {
    padding: 72px 24px 112px;
    align-items: flex-start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    justify-items: center;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
  }

  .subtitle {
    max-width: 320px;
    margin-bottom: 32px;
  }

  .phone-bezel {
    width: 260px;
  }

  .phone-glow {
    width: 280px;
    height: 360px;
  }

  .phone-screen {
    min-height: 340px;
    padding: 20px 16px 18px;
  }

  .score-number {
    font-size: 3rem;
  }

  .footer {
    padding: 16px 24px;
  }
}

@media (max-width: 380px) {
  .phone-bezel {
    width: 240px;
  }

  .score-number {
    font-size: 2.6rem;
  }

  .bar-name {
    width: 52px;
    font-size: 0.66rem;
  }

  .bar-val {
    font-size: 0.66rem;
  }
}

/* ——————————————————————————————————
   Legal pages (shared with /privacy, /terms)
   —————————————————————————————————— */
.legal-page {
  padding: 120px 24px 80px;
  min-height: 100vh;
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 48px;
}

.legal-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-nav-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.legal-nav-back {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.legal-nav-back:hover {
  color: var(--text);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--accent);
}
