/* Overlift landing + legal pages — theme matched to the app (src/shared/config/theme.ts) */

@font-face {
  font-family: 'Bebas Neue';
  src: url('fonts/BebasNeue.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #000000;
  --surface: #1c1f24;
  --surface-alt: #262b33;
  --accent: #b7d457;
  --accent-dim: #93ab41;
  --on-accent: #000000;
  --text: #fef9f5;
  --text-dim: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.4);
  --border: rgba(183, 212, 87, 0.14);
  --radius: 16px;
  --radius-lg: 24px;
  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}

.logo::first-letter {
  color: var(--accent);
}

nav a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 24px;
  font-size: 15px;
}

nav a:hover {
  color: var(--text);
}

nav a.cta {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Buttons / badges ---------- */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: #000;
  text-decoration: none;
  padding: 12px 22px 12px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.appstore:hover {
  transform: translateY(-2px);
}

.appstore svg {
  width: 26px;
  height: 26px;
}

.appstore .lines {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.appstore .lines small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
}

.appstore .lines span {
  font-size: 18px;
  font-weight: 700;
}

.pill {
  display: inline-block;
  font-family: var(--display);
  letter-spacing: 0.06em;
  font-size: 15px;
  color: var(--accent);
  border: 1px solid var(--border);
  background: rgba(183, 212, 87, 0.06);
  border-radius: 999px;
  padding: 7px 16px 5px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 20px 0 20px;
}

.hero h1 .hl {
  color: var(--accent);
}

.hero p.sub {
  font-size: 20px;
  color: var(--text-dim);
  max-width: 460px;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-cta .note {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-phone {
  display: flex;
  justify-content: center;
}

/* let grid tracks shrink below content min-width so text wraps to the viewport */
.hero-copy,
.hero-phone,
.pillar-text,
.pillar-media {
  min-width: 0;
}

/* ---------- iPhone frame ---------- */
.phone {
  position: relative;
  width: 300px;
  max-width: 78vw;
  aspect-ratio: 1179 / 2400;
  background: #0a0a0a;
  border-radius: 46px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #2a2d33,
    0 30px 70px -20px rgba(0, 0, 0, 0.9),
    0 0 60px -10px rgba(183, 212, 87, 0.12);
}

.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
}

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

.phone .notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

.phone.empty .screen {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone.empty .screen span {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 0 20px;
}

/* ---------- Pillars ---------- */
.pillars {
  padding: 40px 0 20px;
}

.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.pillar:nth-child(even) .pillar-text {
  order: 2;
}

.pillar-text .kicker {
  font-family: var(--display);
  letter-spacing: 0.12em;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 10px;
}

.pillar-text h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.pillar-text p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 440px;
}

.pillar-media {
  display: flex;
  justify-content: center;
}

/* ---------- Gallery ---------- */
.gallery {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.gallery h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.gallery p.lead {
  color: var(--text-dim);
  margin-bottom: 40px;
}

.gallery-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  justify-content: flex-start;
}

.gallery-row .phone {
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: center;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 88px 24px;
  margin: 48px 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(183, 212, 87, 0.14), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
}

.cta-band h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0.02em;
  line-height: 0.96;
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--text-dim);
  margin-bottom: 28px;
}

.cta-band .appstore {
  background: var(--accent);
  color: var(--on-accent);
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 32px 0 56px;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
}

footer.site a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 18px;
}

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

/* ---------- Legal / support docs ---------- */
main.doc {
  padding: 48px 0 72px;
  max-width: 760px;
  margin: 0 auto;
}

main.doc h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 44px;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

main.doc .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

main.doc h2 {
  font-size: 20px;
  margin: 30px 0 10px;
  color: var(--text);
}

main.doc p,
main.doc li {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 10px;
}

main.doc ul {
  padding-left: 22px;
}

main.doc a {
  color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 56px;
  }
  .hero h1 {
    font-size: clamp(34px, 9vw, 60px);
  }
  .hero p.sub {
    margin-left: auto;
    margin-right: auto;
    max-width: 320px;
  }
  .pillar-text h2 {
    font-size: clamp(32px, 9vw, 48px);
  }
  .pillar-text p {
    max-width: 320px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .hero-phone {
    order: -1;
  }
  .pillar {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .pillar:nth-child(even) .pillar-text {
    order: 0;
  }
  .pillar-text p {
    margin-left: auto;
    margin-right: auto;
  }
  nav {
    display: none;
  }
  .cta-band {
    padding: 60px 20px;
  }
  .cta-band h2 {
    font-size: clamp(26px, 7vw, 42px);
  }
  footer.site .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  footer.site a {
    margin-left: 0;
    margin-right: 18px;
  }
}
