/* ============================================================
   Libbi — libbibaby.com
   Shared design system for the marketing site + legal pages.
   Night-sky palette inherited from the app; warm Fraunces serif
   for display, Hanken Grotesk for body.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-deep:      #0a0720;
  --bg-card:      #1b1532;
  --bg-card-2:    #221a3d;
  --accent-rose:  #ff8fb8;
  --accent-lav:   #b383ff;
  --text-primary: #e8dcff;
  --text-muted:   #9b8ec4;
  --border:       rgba(179, 131, 255, 0.18);
  --border-glow:  rgba(255, 143, 184, 0.35);
  --radius:       18px;
  --radius-sm:    12px;
  --maxw:         1080px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: radial-gradient(ellipse at 50% -10%, #241a44 0%, #120d2c 45%, #0a0720 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Drifting starfield */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  background-image:
    radial-gradient(circle, rgba(232, 220, 255, 0.55) 1px, transparent 1px),
    radial-gradient(circle, rgba(232, 220, 255, 0.30) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 143, 184, 0.45) 1px, transparent 1px);
  background-size: 340px 340px, 190px 190px, 250px 250px;
  background-position: 0 0, 80px 120px, 160px 40px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: drift 200s linear infinite;
}
@keyframes drift { to { transform: translate(60px, 80px); } }

a { color: var(--accent-rose); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-lav); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 7, 32, 0.55);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-primary); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-rose);
  background: rgba(255, 143, 184, 0.10);
  border: 1px solid var(--border-glow);
  padding: 7px 14px;
  border-radius: 999px;
}
.pill::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-rose);
  box-shadow: 0 0 8px var(--accent-rose);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (max-width: 720px) { .nav-links a:not(.pill) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary {
  color: #1a0f2e;
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-lav));
  box-shadow: 0 10px 30px -8px rgba(255, 143, 184, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(255, 143, 184, 0.6); color: #1a0f2e; }
.btn-ghost {
  color: var(--text-primary);
  background: rgba(232, 220, 255, 0.06);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(232, 220, 255, 0.12); color: var(--text-primary); }

/* "Coming soon" store badge (non-interactive) */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 14px;
  background: rgba(232, 220, 255, 0.05);
  border: 1px solid var(--border);
  cursor: default;
}
.store-badge svg { width: 26px; height: 26px; fill: var(--text-primary); flex: none; }
.store-badge .sb-top { font-size: 11px; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.store-badge .sb-main { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text-primary); line-height: 1.1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 84px 0 96px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-lav);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--accent-rose), var(--accent-lav));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 30em;
  margin-bottom: 34px;
}
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.hero-note strong { color: var(--accent-rose); font-weight: 600; }

/* Staggered entrance */
.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.31s; } .d4 { animation-delay: 0.44s; } .d5 { animation-delay: 0.57s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Phone mockup ---------- */
.phone-stage { display: flex; justify-content: center; position: relative; }
.phone-stage::after {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 143, 184, 0.28), transparent 65%);
  filter: blur(20px);
  z-index: -1;
}
.phone {
  width: 270px;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(165deg, #2a2050, #15102e);
  border: 1px solid rgba(232, 220, 255, 0.14);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(232, 220, 255, 0.1);
}
.phone-screen {
  border-radius: 30px;
  background: radial-gradient(ellipse at 50% 0%, #20183f 0%, #0c0824 70%);
  padding: 30px 22px 26px;
  height: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.phone-eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-top: 8px; }
.phone-title { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin: 6px 0 26px; }
.orb {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 143, 184, 0.55), rgba(179, 131, 255, 0.12) 60%, transparent 72%);
  display: grid; place-items: center;
  margin-bottom: 28px;
  animation: pulse 2.6s ease-in-out infinite;
}
.orb svg { width: 46px; height: 46px; fill: var(--text-primary); }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

.wave { width: 100%; height: 56px; margin-bottom: 26px; }
.wave path {
  fill: none;
  stroke: url(#waveGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 3s ease-in-out infinite;
}
@keyframes draw { 0% { stroke-dashoffset: 600; } 55%, 100% { stroke-dashoffset: 0; } }

.scrubber { width: 100%; height: 4px; border-radius: 2px; background: rgba(232, 220, 255, 0.14); margin-bottom: 8px; position: relative; }
.scrubber::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 38%; border-radius: 2px; background: linear-gradient(90deg, var(--accent-rose), var(--accent-lav)); }
.timestamps { width: 100%; display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-bottom: 24px; }
.phone-controls { display: flex; align-items: center; gap: 26px; color: var(--text-primary); }
.phone-controls .play { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-rose), var(--accent-lav)); display: grid; place-items: center; }
.phone-controls .play svg { width: 22px; height: 22px; fill: #1a0f2e; }
.phone-controls .ctl svg { width: 26px; height: 26px; fill: var(--text-muted); }

/* ---------- Section scaffolding ---------- */
section { position: relative; z-index: 1; }
.section { padding: 92px 0; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.section-head p { color: var(--text-muted); font-size: 18px; margin-top: 16px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding: 32px 26px; background: linear-gradient(165deg, var(--bg-card), rgba(27, 21, 50, 0.4)); border: 1px solid var(--border); border-radius: var(--radius); }
.step .num { font-family: var(--font-display); font-style: italic; font-size: 40px; color: var(--accent-rose); opacity: 0.6; line-height: 1; margin-bottom: 16px; }
.step h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15.5px; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  padding: 30px 26px;
  background: rgba(27, 21, 50, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-glow); background: rgba(34, 26, 61, 0.7); }
.feature .ic {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(179, 131, 255, 0.12);
  margin-bottom: 18px;
}
.feature .ic svg { width: 24px; height: 24px; stroke: var(--accent-rose); fill: none; stroke-width: 1.7; }
.feature h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 15.5px; }

/* ---------- Premium / pricing ---------- */
.premium { background: linear-gradient(180deg, transparent, rgba(27, 21, 50, 0.5), transparent); }
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 24px; justify-content: center; margin-bottom: 48px; }
.price-card {
  position: relative;
  padding: 34px 30px;
  background: linear-gradient(165deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.price-card.featured { border-color: var(--border-glow); box-shadow: 0 24px 60px -28px rgba(255, 143, 184, 0.4); }
.price-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #1a0f2e; background: linear-gradient(135deg, var(--accent-rose), var(--accent-lav)); padding: 5px 14px; border-radius: 999px; }
.price-card .plan { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.price-card .amount { font-family: var(--font-display); font-size: 50px; font-weight: 600; line-height: 1; }
.price-card .amount span { font-family: var(--font-body); font-size: 17px; font-weight: 500; color: var(--text-muted); }
.price-card .sub { font-size: 14px; color: var(--accent-rose); margin-top: 10px; }
.price-card .trial { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.perks { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.perk { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.perk svg { width: 20px; height: 20px; flex: none; margin-top: 3px; stroke: var(--accent-lav); fill: none; stroke-width: 2; }
.perk strong { font-weight: 600; color: var(--text-primary); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(27, 21, 50, 0.45);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-body); font-size: 26px; font-weight: 400; color: var(--accent-rose); transition: transform 0.25s ease; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--text-muted); font-size: 16px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 90px 0; }
.cta-band h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4.6vw, 50px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 18px; }
.cta-band p { color: var(--text-muted); font-size: 18px; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
}
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer .brand { font-size: 20px; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { color: var(--text-muted); font-size: 15px; }
.foot-links a:hover { color: var(--text-primary); }
.foot-copy { width: 100%; text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ---------- Legal pages ---------- */
.legal { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; padding: 64px 24px 90px; }
.legal h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; margin-bottom: 10px; }
.legal .meta { color: var(--text-muted); font-size: 15px; margin-bottom: 48px; }
.legal h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--accent-lav); margin-top: 48px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.legal h3 { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-top: 28px; margin-bottom: 10px; }
.legal p { margin-bottom: 16px; }
.legal ul, .legal ol { margin: 0 0 16px 24px; }
.legal li { margin-bottom: 6px; }
.legal code { background: rgba(179, 131, 255, 0.14); padding: 1px 6px; border-radius: 5px; font-size: 0.9em; }
.table-wrap { overflow-x: auto; margin-bottom: 24px; }
.legal table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius-sm); overflow: hidden; font-size: 14.5px; }
.legal th { background: rgba(179, 131, 255, 0.15); color: var(--accent-lav); font-weight: 600; text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.legal td { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal tr:last-child td { border-bottom: none; }
.callout { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent-rose); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 24px; font-size: 15.5px; }
.caps-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 24px; font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero { padding: 56px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .steps, .features { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .pricing { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .wave path { stroke-dashoffset: 0; }
}
