:root {
  --purple: #6A22FF;
  --purple-dark: #3D1A8F;
  --purple-light: #F0EDFF;
  --purple-soft: #FAF8FF;
  --text: #1a1a2e;
  --text-muted: #6b6b80;
  --border: #E6E1F4;
  --bg: #ffffff;
  --max-width: 1100px;
  --safe-top: env(safe-area-inset-top, 0);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =================== NAV =================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  padding: calc(14px + var(--safe-top)) 24px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-brand img { border-radius: 8px; }

.nav-brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text);
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
}

.nav-cta {
  background: var(--purple);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}

.nav-cta:hover { text-decoration: none; opacity: 0.94; }

/* =================== HERO (split layout) =================== */

.hero {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, var(--purple-soft) 0%, #ffffff 100%);
}

.hero-split {
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-left {
  flex: 1 1 0%;
}

.hero-right {
  flex: 0 0 auto;
}

.hero h1 {
  font-size: 50px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 700;
  color: var(--purple-dark);
}

.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 36px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* ---- video play overlay ---- */

.video-wrap {
  position: relative;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.play-btn.hidden {
  display: none;
}

.btn-primary {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  padding: 18px 36px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.btn-primary:hover {
  text-decoration: none;
  opacity: 0.94;
}

.btn-primary:active {
  transform: scale(0.98);
}

.cta-note {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* =================== SHARED SECTION / CARD GRID =================== */

.pain-points,
.use-cases {
  padding: 80px 0;
}

.pain-points h2,
.use-cases h2 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 44px;
  text-align: center;
  font-weight: 700;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 26px 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

/* A subtle quotation mark anchors each card visually, in place of an emoji. */
.card::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  left: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  line-height: 1;
  color: var(--border);
  pointer-events: none;
}

/* The quoted user thought — large, bold, dark. */
.card-quote {
  position: relative;
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}

/* The response line — smaller, muted, with a coloured arrow. */
.card-reply {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

.card-reply .arrow {
  display: inline-block;
  margin-right: 6px;
  color: var(--purple);
  font-weight: 700;
}

/* =================== PAIN POINTS (white background, neutral cards) =================== */

.pain-points {
  background: #ffffff;
}

.card-pain {
  background: #fafafc;
  border-color: #eceaf3;
}

.card-pain:hover {
  box-shadow: 0 6px 20px rgba(20, 20, 40, 0.06);
}

.card-pain::before {
  color: #dcd8e6;
}

/* Pain-point replies feel sharper — slightly darker muted tone. */
.card-pain .card-reply {
  color: #5a5a70;
}
.card-pain .card-reply .arrow {
  color: #9a92b3;
}

/* =================== USE CASES (light purple bg, white cards) =================== */

.use-cases {
  background: var(--purple-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.card-use {
  background: #ffffff;
  border-color: var(--border);
}

.card-use:hover {
  box-shadow: 0 8px 24px rgba(61, 26, 143, 0.08);
}

.card-use::before {
  color: #e0d6fa;
}

.card-use .card-quote {
  color: var(--purple-dark);
}

.card-use .card-reply .arrow {
  color: var(--purple);
}

/* =================== HOW IT WORKS =================== */

.how {
  padding: 80px 0;
  background: var(--purple-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how h2 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  text-align: center;
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 20px 12px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--purple);
  color: #fff;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 600;
}

.step p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.how-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin: 44px auto 0;
  max-width: 540px;
  line-height: 1.55;
}

/* =================== BOTTOM CTA =================== */

.bottom-cta {
  padding: 88px 0 96px;
  text-align: center;
}

.bottom-cta h2 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--purple-dark);
}

.bottom-cta p {
  font-size: 19px;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.bottom-cta .btn-primary {
  margin-bottom: 14px;
}

/* =================== FOOTER =================== */

footer {
  background: #fafafd;
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
}

.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}

.foot-brand img { border-radius: 7px; }

.foot-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.foot-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.foot-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* =================== PRODUCT SHOT (landing page hero follow-up) =================== */

.product-shot {
  padding: 48px 0 72px;
  background: linear-gradient(180deg, #ffffff 0%, var(--purple-soft) 100%);
  text-align: center;
}

.product-shot-caption {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.35;
  color: var(--purple);
  margin: 0 auto 32px;
  max-width: 520px;
  letter-spacing: -0.005em;
}

.phone-frame {
  display: inline-block;
  /* 340px wide → ~604px tall at 9:16, reads as a phone in the split hero */
  max-width: 340px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: translateZ(0);
}

.phone-frame img,
.phone-frame video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  /* Reserve layout space using the video's intrinsic aspect ratio so the
     page doesn't jump while the poster/first frame loads */
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
}

/* =================== LEGAL PAGES (terms, privacy) =================== */

.legal {
  padding: 64px 0 96px;
  background: linear-gradient(180deg, var(--purple-soft) 0%, #ffffff 180px);
}

.legal .container {
  max-width: 760px;
}

.legal h1 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--purple-dark);
}

.legal-meta {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 40px;
}

.legal h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  font-weight: 700;
  color: var(--purple-dark);
}

.legal h2:first-of-type {
  margin-top: 24px;
}

.legal p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 16px;
}

.legal ul {
  margin: 4px 0 20px;
  padding-left: 24px;
}

.legal li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 8px;
}

.legal a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal strong {
  font-weight: 700;
  color: var(--purple-dark);
}

/* =================== MOBILE =================== */

@media (max-width: 720px) {
  .hero {
    padding: 40px 0 48px;
  }
  .hero-split {
    flex-direction: column;
    gap: 36px;
  }
  .hero-left {
    text-align: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    align-items: center;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero-sub {
    font-size: 17px;
  }

  .pain-points,
  .use-cases {
    padding: 56px 0;
  }
  .pain-points h2,
  .use-cases h2,
  .how h2 {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .card {
    padding: 26px 22px 22px;
  }

  .card-quote {
    font-size: 17px;
  }

  .how {
    padding: 56px 0;
  }

  .bottom-cta {
    padding: 64px 0 72px;
  }
  .bottom-cta h2 {
    font-size: 30px;
  }
  .bottom-cta p {
    font-size: 16px;
  }

  .btn-primary {
    padding: 16px 28px;
    font-size: 17px;
  }

  .nav {
    padding: calc(12px + var(--safe-top)) 18px 12px;
  }

  .nav-brand span {
    font-size: 17px;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 14px;
  }

  .nav-cta {
    padding: 9px 14px;
    font-size: 14px;
  }

  .phone-frame {
    /* Mobile: 70vw so a tall 9:16 video doesn't dominate the viewport */
    max-width: 70vw;
    padding: 6px;
    border-radius: 30px;
  }
  .phone-frame img,
  .phone-frame video {
    border-radius: 24px;
  }
  .play-btn {
    width: 64px;
    height: 64px;
  }

  .legal {
    padding: 40px 0 64px;
  }
  .legal h1 {
    font-size: 32px;
  }
  .legal h2 {
    font-size: 19px;
    margin-top: 32px;
  }
  .legal p,
  .legal li {
    font-size: 16px;
  }
}
