/* ═══════════════════════════════════════════════
   Lavya AI — Website Stylesheet
   Palette matched to mobile app (theme.dart)
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* App palette (from theme.dart) */
  --lightest: #DFD2D5;
  --light-muted: #ABAAC0;
  --medium: #8090B0;
  --dark-muted: #646F89;
  --darkest: #373E4F;

  --bg: #F5F0F1;
  --surface: #FFFFFF;
  --surface-variant: #F0EAEC;

  --success: #5B8A72;
  --warning: #B89B6A;
  --error: #B06B6B;

  /* Functional tokens */
  --text: var(--darkest);
  --text-secondary: var(--dark-muted);
  --text-muted: var(--light-muted);
  --border: #E5DFE1;
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1080px;
  --shadow-sm: 0 1px 4px rgba(55,62,79,.06);
  --shadow: 0 2px 12px rgba(55,62,79,.07);
  --shadow-lg: 0 8px 32px rgba(55,62,79,.10);

  /* Brand font */
  --font-brand: 'Dancing Script', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--medium); text-decoration: none; transition: color .2s; }
a:hover { color: var(--darkest); }
img { max-width: 100%; height: auto; display: block; }

/* ── Navigation ───────────────────────────────── */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.92);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.nav-brand-text {
  font-family: var(--font-brand);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--darkest);
  letter-spacing: .5px;
}
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: .875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--surface-variant); color: var(--darkest); }
.nav-links a.active { background: var(--surface-variant); color: var(--darkest); font-weight: 600; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle svg { width: 24px; height: 24px; color: var(--darkest); }

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 16px 16px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; }
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--surface-variant) 0%, var(--bg) 40%, var(--surface) 100%);
  padding: 56px 24px 48px;
  text-align: center;
}
.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}
.hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-lg);
}
.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 12px;
  color: var(--darkest);
}
.hero h1 em {
  font-style: normal;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--medium);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.store-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-badges a { display: inline-block; transition: transform .2s, opacity .15s; }
.store-badges a:hover { transform: translateY(-2px); opacity: .88; }
.store-badges img { height: 44px; }

/* ── Value Props (compact strip) ──────────────── */
.value-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
}
.value-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.value-item { padding: 0 8px; }
.value-icon { font-size: 1.5rem; margin-bottom: 6px; }
.value-item h3 {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--darkest);
}
.value-item p {
  font-size: .78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

@media (max-width: 640px) {
  .value-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ── Section helpers ──────────────────────────── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 36px;
}
.section-header h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-header p {
  color: var(--text-secondary);
  font-size: .95rem;
  max-width: 520px;
  margin: 0 auto;
}
.section-alt { background: var(--surface); }

/* ── Features grid ────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s, box-shadow .2s;
}
.section-alt .feature-card {
  background: var(--bg);
  border-color: transparent;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: .85rem;
  line-height: 1.55;
}

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

/* ── How-it-works (numbered steps + screenshots) ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step::before { display: none !important; content: none !important; }
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--darkest);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.step h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.step p {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}
.step-screenshot {
  width: 200px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(55,62,79,.12);
  margin-top: auto;
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 40px; max-width: 400px; margin: 0 auto; }
  .step-screenshot { width: 220px; }
}

/* ── Social / Instagram ───────────────────────── */
.social-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}
.social-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.social-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.ig-handle,
.yt-handle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 28px;
  border-radius: 50px;
  transition: transform .2s, box-shadow .2s;
}
.ig-handle {
  background: linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #F77737 100%);
}
.ig-handle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(225,48,108,.3);
  color: #fff;
}
.yt-handle {
  background: #FF0000;
}
.yt-handle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,0,0,.3);
  color: #fff;
}
.ig-handle svg,
.yt-handle svg { width: 20px; height: 20px; fill: currentColor; }

/* ── Blog preview ─────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.blog-card-img {
  height: 140px;
  background: var(--surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-tag {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--medium);
  margin-bottom: 8px;
}
.blog-card h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.35;
}
.blog-card p {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}
.blog-card-footer {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 12px;
}

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

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--darkest);
}
.view-all:hover { color: var(--medium); }

/* ── CTA banner ───────────────────────────────── */
.cta {
  background: var(--darkest);
  color: #fff;
  text-align: center;
  padding: 48px 24px;
}
.cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.cta p {
  opacity: .75;
  margin-bottom: 24px;
  font-size: .95rem;
}
.cta .store-badges img { filter: brightness(1.05); }

/* ── Legal pages ──────────────────────────────── */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}
.legal h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.legal .meta {
  color: var(--text-secondary);
  font-size: .875rem;
  margin-bottom: 36px;
}
.legal h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.legal h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 6px;
}
.legal p, .legal li {
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 10px;
}
.legal ul { padding-left: 24px; margin-bottom: 14px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }
.legal hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* ── Blog article ─────────────────────────────── */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}
.article-header {
  margin-bottom: 32px;
}
.article-header .tag {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--medium);
  margin-bottom: 8px;
}
.article-header h1 {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}
.article-header .meta {
  color: var(--text-muted);
  font-size: .85rem;
}
.article-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 12px;
}
.article-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 8px;
}
.article-body p {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.article-body li {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 6px;
}
.article-body blockquote {
  border-left: 3px solid var(--medium);
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--surface-variant);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-body blockquote p {
  color: var(--darkest);
  font-style: italic;
  margin-bottom: 0;
}
.article-cta {
  margin-top: 40px;
  padding: 28px;
  background: var(--surface-variant);
  border-radius: var(--radius);
  text-align: center;
}
.article-cta h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.article-cta p {
  color: var(--text-secondary);
  font-size: .88rem;
  margin-bottom: 16px;
}

/* ── Footer ───────────────────────────────────── */
.footer {
  margin-top: auto;
  background: var(--darkest);
  color: rgba(255,255,255,.6);
  padding: 32px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
}
.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.footer-links a { color: rgba(255,255,255,.6); font-size: .82rem; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .78rem; width: 100%; text-align: center; margin-top: 8px; }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── Utility ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--darkest); color: #fff; }
.btn-primary:hover { box-shadow: var(--shadow-lg); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--darkest); color: var(--darkest); }
.btn-outline:hover { background: var(--darkest); color: #fff; }

/* ── Article back-link ─────────────────────────── */
.back-link {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 24px 0;
}
.back-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color .2s;
}
.back-link a:hover { color: var(--darkest); }
.back-link svg { width: 16px; height: 16px; }

/* ── Read next ────────────────────────────────── */
.read-next {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.read-next h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.read-next-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 540px) {
  .read-next-grid { grid-template-columns: 1fr; }
}

/* ── Responsive hero ──────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 40px 20px 36px; }
  .hero h1 { font-size: 1.7rem; }
  .hero h1 em { font-size: 1.9rem; }
  .hero-sub { font-size: .95rem; }
  .hero-icon { width: 64px; height: 64px; border-radius: 16px; }
  .section { padding: 40px 20px; }
  .section-header h2 { font-size: 1.4rem; }
}
