:root {
  --brand-start: #8E33BA;
  --brand-end: #E9008C;
  --bg: #F5F7FF;
  --surface: #FFFFFF;
  --border: #E6E6EE;
  --text: #17151F;
  --text-2: #6B6B78;
  --gold: #FFC107;
  --radius: 20px;
  --grad: linear-gradient(135deg, var(--brand-start), var(--brand-end));
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 247, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand .dot {
  width: 30px; height: 30px; border-radius: 10px; background: var(--grad);
  display: inline-block;
}
.nav a { color: var(--text-2); font-weight: 600; margin-left: 22px; font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-end); background: rgba(233, 0, 140, 0.08); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(17px, 2.4vw, 21px); color: var(--text-2); max-width: 620px; margin: 20px auto 0; }
.cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
}
.btn-primary { background: var(--grad); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn:hover { text-decoration: none; transform: translateY(-1px); transition: transform .15s; }
.age-note { margin-top: 18px; font-size: 13px; color: var(--text-2); }

/* Phone mockups */
.shots { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; padding: 30px 0 70px; }
.phone {
  width: 240px; height: 480px; border-radius: 38px; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 30px 60px -20px rgba(142, 51, 186, 0.30);
  padding: 14px; overflow: hidden; position: relative;
}
.phone .screen { width: 100%; height: 100%; border-radius: 26px; background: var(--bg); overflow: hidden; }
.phone .topbar { height: 52px; background: var(--grad); display: flex; align-items: center; padding: 0 16px; color: #fff; font-weight: 800; }
.phone .body { padding: 12px; }

.avatar { border-radius: 50%; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; flex: none; }
.avatar.v2 { background: linear-gradient(135deg, #00B4D8, #9B59B6); }
.avatar.v3 { background: linear-gradient(135deg, #FF7A59, #E9008C); }
.avatar.v4 { background: linear-gradient(135deg, #2BB673, #00B4D8); }

/* discover grid */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pcard { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px; text-align: center; }
.pcard .avatar { width: 46px; height: 46px; font-size: 18px; margin: 0 auto 8px; }
.pcard .nm { font-size: 12px; font-weight: 700; }
.pcard .mt { font-size: 10px; color: var(--text-2); }
.pcard .pill { margin-top: 8px; font-size: 10px; font-weight: 700; color: #fff; background: var(--grad); border-radius: 999px; padding: 4px 0; }

/* chat */
.chatrow { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 10px; }
.chatrow .avatar { width: 30px; height: 30px; font-size: 12px; }
.bubble { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 8px 12px; font-size: 12px; max-width: 70%; }
.bubble.me { background: var(--grad); color: #fff; border: 0; margin-left: auto; }

/* Features */
.features { padding: 20px 0 80px; }
.features h2 { text-align: center; font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; margin-bottom: 8px; }
.features .sub { text-align: center; color: var(--text-2); margin-bottom: 40px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.fcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.fcard .ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(142,51,186,0.10); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.fcard h3 { font-size: 18px; margin-bottom: 6px; }
.fcard p { color: var(--text-2); font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--surface); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer .links a { color: var(--text-2); font-weight: 600; margin-right: 20px; font-size: 14px; }
.site-footer .links a:hover { color: var(--text); }
.site-footer .copy { color: var(--text-2); font-size: 13px; }

/* Legal / content pages */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.02em; margin-bottom: 6px; }
.doc .updated { color: var(--text-2); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 20px; margin: 30px 0 8px; }
.doc p, .doc li { color: #2b2933; font-size: 16px; }
.doc ul { margin: 8px 0 8px 22px; }
.doc li { margin-bottom: 6px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin-top: 18px; }
.back { display: inline-block; margin-bottom: 24px; font-weight: 600; }

/* Never allow a stray element to cause a horizontal scroll on small screens. */
html, body { max-width: 100%; overflow-x: hidden; }
img, .phone { max-width: 100%; }

/* ---------- Mobile (phones) ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }

  /* Header: tighten so the brand + 3 links fit on a phone without overflowing. */
  .site-header .wrap { height: 56px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand .dot { width: 26px; height: 26px; border-radius: 9px; }
  .nav a { margin-left: 14px; font-size: 14px; }

  /* Hero */
  .hero { padding: 44px 0 24px; }
  .eyebrow { margin-bottom: 16px; }
  .hero p { font-size: 17px; }
  .cta { gap: 10px; }
  .btn { padding: 13px 22px; font-size: 15px; }

  /* App-preview mockups: scale to the viewport and stack neatly. */
  .shots { gap: 16px; padding: 18px 0 48px; }
  .phone { width: min(240px, 86vw); height: auto; aspect-ratio: 240 / 480; padding: 12px; }

  /* Feature cards: single column with a touch less padding. */
  .features { padding: 8px 0 56px; }
  .fcard { padding: 22px; }

  /* Footer: stack the links above the copyright. */
  .site-footer { padding: 32px 0; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-footer .links a { margin-right: 16px; }

  /* Legal / content pages */
  .doc { padding: 36px 0 56px; }
  .doc p, .doc li { font-size: 15.5px; }
  .card { padding: 18px 20px; }
}

/* ---------- Very small phones ---------- */
@media (max-width: 380px) {
  .brand { font-size: 16px; }
  .nav a { margin-left: 11px; font-size: 13px; }
}
