@import url("./tokens.css");
@import url("./components.css");

/* Background — warm paper with subtle Indian motif dots */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 10% 8%, rgba(79, 53, 210, 0.09) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 5%, rgba(255, 107, 53, 0.10) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 95%, rgba(255, 209, 102, 0.07) 0%, transparent 50%),
    var(--color-bg);
}

/* Decorative dot grid — subtle rangoli-inspired texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(79,53,210,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* ─── Nav ─────────────────────────────────────── */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.25rem;
  gap: var(--space-md);
}

.logo { display: flex; align-items: center; }
.logo img { height: 38px; width: auto; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-actions a {
  color: var(--color-text-light);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.nav-actions a:hover { background: rgba(79, 53, 210, 0.06); color: var(--color-primary); }

/* ─── Hero ────────────────────────────────────── */
.hero {
  padding-block: 5rem 3rem;
  text-align: left;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-top: var(--space-md);
}

.hero-copy .badge { margin-bottom: 1.25rem; }

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--color-text);
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--color-primary);
}

.hero-copy p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-muted);
  max-width: 480px;
  margin: 0 0 var(--space-md);
}

.cta-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ─── Hero Visual / Chat Card ─────────────────── */
.hero-visual {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.07);
  pointer-events: none;
}

.visual-label {
  font-size: 0.7rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
}

.visual-chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
}

.visual-chat > div {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

/* Parent (mom) messages: left-aligned */
.visual-chat > div.msg-parent { flex-direction: row; }
/* Child messages: right-aligned */
.visual-chat > div.msg-child { flex-direction: row-reverse; }

.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(79, 53, 210, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin: 0;
}

.avatar.kid { background: var(--color-accent-soft); }

.bubble {
  background: rgba(79, 53, 210, 0.06);
  padding: 0.65rem 0.9rem;
  border-radius: 4px 16px 16px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
  border: 1px solid rgba(79, 53, 210, 0.08);
}

.bubble.kid {
  background: var(--color-accent-soft);
  border-radius: 16px 4px 16px 16px;
  border-color: rgba(255, 107, 53, 0.12);
}

.visual-foot {
  font-size: 0.78rem;
  color: var(--color-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

/* ─── Metrics ─────────────────────────────────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.metric {
  text-align: center;
  padding: 1.25rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.metric h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.2rem;
  color: var(--color-primary);
  font-weight: 700;
}

.metric p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.4;
}

/* ─── Section variations ──────────────────────── */
.section-accent {
  background: #1A1310;
  color: white;
}

.section-accent h2,
.section-accent h3,
.section-accent p,
.section-accent li { color: inherit; }

.section-accent .card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  box-shadow: none;
}

.section-highlight { background: #FFFFFF; }

/* ─── Section headings ────────────────────────── */
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--space-md);
}

/* ─── Pills ───────────────────────────────────── */
.pill-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  background: rgba(79, 53, 210, 0.07);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
  font-weight: 600;
  font-size: 0.875rem;
}

/* ─── Waitlist form ───────────────────────────── */
.waitlist {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 520px;
}

.waitlist label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.waitlist input,
.waitlist textarea {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  background: white;
  transition: border-color 0.15s;
}

.waitlist input:focus,
.waitlist textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.waitlist textarea { resize: vertical; }

.form-hint {
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* ─── Sample card ─────────────────────────────── */
.sample-card blockquote {
  margin: var(--space-md) 0;
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-style: italic;
  line-height: 1.5;
  color: var(--color-text);
}

.sample-label, .sample-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sample-translation {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

/* ─── Dashboard mock ──────────────────────────── */
.dashboard-mock ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dashboard-mock li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.dashboard-mock span {
  font-weight: 400;
  color: var(--color-muted);
}

/* ─── Testimonials ────────────────────────────── */
.testimonial-card {
  text-align: center;
}

.testimonial-card .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.testimonial-card .author { font-weight: 700; margin-bottom: 0; }
.testimonial-card .meta { color: var(--color-muted); font-size: 0.875rem; }

/* ─── Feature cards ───────────────────────────── */
.feature-card { position: relative; }
.card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: block;
  line-height: 1;
}

/* ─── FAQ ─────────────────────────────────────── */
.faqs .card { min-height: auto; }
.faqs .card h3 { font-size: 0.95rem; }
.faqs .card p { font-size: 0.9rem; color: var(--color-muted); margin: 0; }

/* ─── Logo row ────────────────────────────────── */
.logo-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: var(--space-sm);
  font-size: 0.82rem;
  color: var(--color-muted);
}

.logo-row span {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(26, 19, 16, 0.05);
}

/* ─── Step list ───────────────────────────────── */
.list-step {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list-step li {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-primary);
  background: white;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-card);
  font-weight: 500;
  font-size: 0.9rem;
}

/* ─── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .hero { padding-block: 3rem 2rem; text-align: center; }
  .hero-copy p { max-width: 100%; }
  .cta-group { justify-content: center; }

  .metrics { grid-template-columns: 1fr 1fr; }

  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .nav-actions { width: 100%; }
}

@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr; }
}
