/* Colors and font match the app (profiles-js, "cool" theme). */
:root {
  --accent: #3a6ea5;
  --accent-2: #6fa3d4;
  --accent-ink: #2e5884;
  --accent-soft: #e6eef6;
  --ink: #222a35;
  --muted: #5f6a7a;
  --bg: #ffffff;
  --bg-alt: #eef1f5;
  --card: #ffffff;
  --border: #e1e6ee;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #5b8fc7;
    --accent-2: #86b4e2;
    --accent-ink: #a9c7e6;
    --accent-soft: #1f3247;
    --ink: #eef3f9;
    --muted: #93a2b5;
    --bg: #0d141d;
    --bg-alt: #121b26;
    --card: #161f2b;
    --border: #2a3848;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); }
img { max-width: 100%; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: .9rem;
}

.lead {
  margin: 0 0 32px;
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-outline { border: 2px solid var(--accent); color: var(--accent-ink); }
.btn-outline:hover { background: var(--accent); color: #fff; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-buttons.center { justify-content: center; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
  transition: transform .2s, box-shadow .2s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.store-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-btn span { display: flex; flex-direction: column; }
.store-btn small { font-size: .7rem; font-weight: 500; opacity: .85; }
.store-btn.light { background: #fff; color: #000; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero {
  padding: 72px 0 96px;
  background: radial-gradient(circle at 85% 25%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 55%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
}
h1 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero-note { margin: 24px 0 0; color: var(--muted); }
.hero-note a { font-weight: 700; text-decoration: none; }

/* Phone frame around real app screenshots */
.hero-art { position: relative; display: flex; justify-content: center; }
.glow {
  position: absolute;
  inset: 8% 4%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%;
  opacity: .9;
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  padding: 11px;
  border-radius: 48px;
  background: #0b0f16;
  box-shadow: 0 30px 60px rgba(20, 30, 50, .35);
}
.phone-notch {
  position: absolute;
  top: 21px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}
/* The top strip stands in for the status bar, in the app's header color. */
.screen {
  padding-top: 40px;
  border-radius: 38px;
  background: #fefbf6;
  overflow: hidden;
}
.screen img { display: block; width: 100%; height: auto; }

/* Screenshot tour */
.tour { padding-bottom: 72px; }
.tour .section-title { margin-bottom: 40px; }
.shots {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 8px 20px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.shots figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.phone.small { width: 230px; padding: 8px; border-radius: 38px; box-shadow: 0 18px 40px rgba(20,30,50,.22); }
.phone.small .phone-notch { top: 15px; width: 66px; height: 19px; }
.phone.small .screen { padding-top: 30px; border-radius: 31px; }
.shots figcaption { margin-top: 18px; max-width: 230px; color: var(--muted); font-size: .95rem; }
.shots figcaption strong { display: block; color: var(--ink); font-size: 1.05rem; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
}
.section-sub {
  margin: 0 auto 56px;
  max-width: 36em;
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.feature .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.feature .icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); }

/* Leaders */
.leaders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.leaders h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.leaders .lead { margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li {
  position: relative;
  padding: 18px 20px 18px 56px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
}
.checks li strong { color: var(--ink); }
.checks li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #3a6ea5, #6fa3d4);
  color: #fff;
  text-align: center;
}
.cta-icon { border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.2); margin-bottom: 20px; }
.cta h2 { margin: 0 0 8px; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.02em; }
.cta p { margin: 0 0 32px; font-size: 1.15rem; opacity: .92; }
.cta .cta-signin { margin: 24px 0 0; font-size: 1rem; }
.cta .cta-signin a { color: #fff; font-weight: 700; }

/* Legal pages */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 88px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 6px; }
.legal-meta { margin: 0 0 32px; color: var(--muted); font-weight: 600; }
.legal h2 { margin: 40px 0 10px; font-size: 1.35rem; letter-spacing: -0.01em; scroll-margin-top: 88px; }
.legal p, .legal li { color: var(--ink); font-size: 1.05rem; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 1.3em; }
.legal li { margin-bottom: 8px; }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--border); color: var(--muted); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer p { margin: 0; }
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 1060px) {
  .shots { justify-content: flex-start; }
}

@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .leaders { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 800px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-copy .store-buttons { justify-content: center; }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .store-btn { flex: 1 1 100%; justify-content: center; }
  .phone { width: 270px; }
  .phone.small { width: 210px; }
}
