/* ===================================================================
   MyLifeInLines — Warm Mystical Redesign
   Mobile-first • Cream/Indigo/Gold palette
   =================================================================== */

/* --- Design Tokens --- */
:root {
  --bg-primary: #faf7f2;
  --bg-card: #ffffff;
  --bg-surface: #f3efe8;
  --bg-dark: #1a1a2e;
  --text-main: #1a1a2e;
  --text-body: #4a4a5a;
  --text-muted: #7a7a8a;
  --accent-gold: #c8922a;
  --accent-gold-light: #e8a820;
  --accent-indigo: #2d1b69;
  --accent-indigo-light: #4a3a8a;
  --ring: #e8e0d4;
  --ring-light: #f0ebe3;
  --max: 1120px;
  --r: 16px;
  --shadow-sm: 0 2px 8px rgba(26,26,46,.06);
  --shadow-md: 0 4px 20px rgba(26,26,46,.08);
  --shadow-lg: 0 8px 32px rgba(26,26,46,.12);
  --gold-gradient: linear-gradient(135deg, #c8922a 0%, #e8a820 50%, #daa530 100%);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
  background: var(--bg-primary);
  color: var(--text-main);
  font-family: 'DM Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans Devanagari', 'Noto Sans Gujarati', 'Noto Sans Telugu', 'Noto Sans Tamil', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block }
a { color: inherit; text-decoration: none }
button { font-family: inherit }

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

/* --- Header / Nav --- */
header {
  background: rgba(250,247,242,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ring);
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; align-items: center; min-height: 64px; gap: 12px; justify-content: space-between }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0 }
.brand img { width: 40px; height: 40px; border-radius: 10px }
.brand strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; color: var(--text-main); font-size: 1.05rem }

.header-actions { display: flex; align-items: center; gap: 16px }
.lang-select {
  background: var(--bg-card);
  border: 1px solid var(--ring);
  color: var(--text-main);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: .9rem;
}
.lang-select option { background: var(--bg-card); color: var(--text-main) }
.lang-select:focus { outline: 2px solid var(--accent-gold); outline-offset: 2px }

/* Nav links */
header nav { display: flex; gap: 8px; align-items: center }
.nav a.btn {
  padding: 9px 14px;
  border: 1px solid var(--ring);
  border-radius: 10px;
  transition: all .2s;
  display: inline-block;
  font-size: .92rem;
  color: var(--text-body);
}
.nav a.btn:hover { background: var(--bg-surface); color: var(--text-main) }

/* Mobile hamburger */
.menu-toggle { display: none; appearance: none; background: transparent; border: 1px solid var(--ring); border-radius: 10px; padding: 8px; line-height: 0 }
.menu-toggle:focus { outline: 2px solid var(--accent-gold); outline-offset: 2px }
.menu-icon { width: 22px; height: 22px; display: block; position: relative }
.menu-icon::before, .menu-icon::after, .menu-icon span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: var(--text-main); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease, bottom .25s ease;
}
.menu-icon::before { top: 4px }
.menu-icon span { top: 10px }
.menu-icon::after { bottom: 4px }

@media (max-width: 860px) {
  .menu-toggle { display: inline-block }
  header nav {
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(250,247,242,.98);
    border-bottom: 1px solid var(--ring);
    display: grid; grid-template-columns: 1fr;
    gap: 8px; padding: 12px 20px 18px;
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  header.nav-open nav { transform: translateY(0); opacity: 1; pointer-events: auto }
  .nav a.btn { width: 100%; text-align: center }
  header.nav-open .menu-icon::before { top: 10px; transform: rotate(45deg) }
  header.nav-open .menu-icon span { opacity: 0 }
  header.nav-open .menu-icon::after { bottom: auto; top: 10px; transform: rotate(-45deg) }
}

/* ===== HERO ===== */
.hero { padding: 56px 0 40px }
.hero-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.hero-text { order: 1 }
.hero-image { order: 2; display: flex; justify-content: center }
.hero-image img {
  max-width: 340px; width: 100%;
  border-radius: 24px;
  filter: drop-shadow(0 12px 32px rgba(45,27,105,.15));
}

.eyebrow {
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: .18em;
  font-size: .75rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.12;
  color: var(--text-main);
  margin-bottom: 12px;
}
h1 .gold { color: var(--accent-gold) }

.lead { color: var(--text-body); max-width: 52ch; font-size: 1.02rem; line-height: 1.65 }

/* Social proof face pile */
.social-proof {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 6px;
  flex-wrap: wrap;
}
.face-pile { display: flex }
.face-pile span {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  color: #fff;
  margin-left: -8px;
}
.face-pile span:first-child { margin-left: 0 }
.face-pile .fp1 { background: #5b4fa0 }
.face-pile .fp2 { background: #c8922a }
.face-pile .fp3 { background: #2d8a6e }
.face-pile .fp4 { background: #a04f7a }
.face-pile .fp5 { background: #6a7a9a }
.proof-text { font-size: .88rem; color: var(--text-body) }
.proof-text .stars { color: #e8a820; letter-spacing: 1px }

/* CTA */
.cta-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap }
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-gradient);
  color: #fff; padding: 14px 24px; border-radius: 14px;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 4px 16px rgba(200,146,42,.3);
  transition: transform .2s, box-shadow .2s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(200,146,42,.4) }
.ghost {
  background: transparent;
  color: var(--accent-indigo);
  border: 1.5px solid var(--accent-indigo);
  box-shadow: none;
  font-weight: 600;
}
.ghost:hover { background: rgba(45,27,105,.06); box-shadow: none; transform: none }

/* ===== TRUST BAR ===== */
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px }
.trust {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-body);
  font-size: .82rem;
  background: var(--bg-surface);
  border: 1px solid var(--ring-light);
}
.trust svg { width: 16px; height: 16px; flex-shrink: 0 }

/* ===== SECTIONS ===== */
section { padding: 60px 0; border-top: 1px solid var(--ring-light) }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3.2vw, 34px);
  margin-bottom: 8px;
  color: var(--text-main);
}
.section-subtitle { color: var(--text-body); max-width: 56ch; margin-bottom: 24px }
.muted { color: var(--text-muted) }

/* ===== HOW IT WORKS ===== */
.steps { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px }
.step {
  background: var(--bg-card);
  border: 1px solid var(--ring);
  border-radius: var(--r);
  padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px) }
.step-number {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #fff; font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.step-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover }
.step h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 4px }
.step .muted { font-size: .92rem; line-height: 1.5 }

/* ===== SOCIAL PROOF COUNTER ===== */
.counter-section {
  background: var(--accent-indigo);
  border-top: none; color: #fff; text-align: center;
  box-shadow: 0 -8px 32px rgba(200,146,42,.1), 0 8px 32px rgba(200,146,42,.1);
}
.counter-section .section-title { color: #fff }
.counter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px }
.counter-item h3 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 42px); color: var(--accent-gold-light) }
.counter-item p { color: rgba(255,255,255,.88); font-size: .92rem; margin-top: 4px; font-weight: 500 }

/* ===== READING PREVIEW ===== */
.preview-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--r);
  padding: 28px;
  max-width: 560px;
  margin: 24px auto 0;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.6);
  position: relative;
  overflow: hidden;
}
.preview-card::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(transparent, var(--bg-card));
  pointer-events: none;
}
.preview-label {
  display: inline-block;
  background: var(--gold-gradient);
  color: #fff; font-weight: 700; font-size: .75rem;
  padding: 4px 10px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 12px;
}
.preview-lines { color: var(--text-body); font-size: .95rem; line-height: 1.7 }
.preview-lines .blur { filter: blur(4px); user-select: none }

/* ===== TESTIMONIALS ===== */
.carousel { position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg-card); border: 1px solid var(--ring); box-shadow: var(--shadow-sm) }
.carousel-track { display: flex; scroll-behavior: smooth; transition: transform .35s ease }
.slide { flex: 0 0 100%; padding: 28px; display: grid; gap: 12px }
.slide p { font-size: 1.05rem; color: var(--text-body); font-style: italic; line-height: 1.6 }
.slide .who { color: var(--text-muted); font-weight: 600; font-size: .9rem }
.slide .stars-review { color: #e8a820; font-size: .9rem; margin-bottom: 4px }
.carousel-nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none }
.carousel-btn {
  pointer-events: auto;
  background: var(--bg-card);
  border: 1px solid var(--ring);
  color: var(--text-main);
  border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  margin: 10px; font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.carousel-btn:hover { background: var(--bg-surface) }
.carousel-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ring); border: none; cursor: pointer; padding: 0 }
.dot[aria-current="true"] { background: var(--accent-gold); width: 24px }

/* ===== FAQ ACCORDION ===== */
.faq-list { max-width: 700px; margin: 24px auto 0 }
.faq-item { border-bottom: 1px solid var(--ring) }
.faq-q {
  width: 100%; background: none; border: none; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-size: 1.02rem; font-weight: 600;
  color: var(--text-main); text-align: left;
  gap: 12px;
  min-height: 56px;
}
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--accent-gold); transition: transform .2s; flex-shrink: 0 }
.faq-item.open .faq-q::after { transform: rotate(45deg) }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
  color: var(--text-body); font-size: .95rem; line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 18px }

/* ===== BOTTOM CTA ===== */
.cta-wide {
  background: var(--accent-indigo);
  border-radius: 20px; padding: 40px 28px;
  display: grid; grid-template-columns: 1fr; gap: 24px;
  align-items: center; color: #fff; text-align: center;
}
.cta-wide .section-title { color: #fff }
.cta-wide .muted { color: rgba(255,255,255,.75) }
.cta-wide .cta { margin: 0 auto }
.cta-wide .ghost { color: #fff; border-color: rgba(255,255,255,.4) }
.cta-wide .ghost:hover { background: rgba(255,255,255,.1) }

/* ===== DISCLAIMER ===== */
#disclaimer { background: var(--bg-surface); border-top: 1px solid var(--ring-light) }
#disclaimer .muted { max-width: 64ch; font-size: .9rem }

/* ===== FOOTER ===== */
footer { padding: 28px 0; border-top: 1px solid var(--ring); color: var(--text-muted); font-size: .88rem }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap }
.foot .brand img { width: 32px; height: 32px }
.foot a { transition: color .2s }
.foot a:hover { color: var(--accent-gold) }

/* Badge */
.badge { display: inline-block; background: var(--bg-surface); border: 1px solid var(--ring); padding: 4px 8px; border-radius: 999px; color: var(--text-body); font-size: .8rem; margin-right: 6px; margin-top: 6px }

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .steps { grid-template-columns: 1fr 1fr }
  .counter-grid { grid-template-columns: repeat(3, 1fr) }
}

@media (min-width: 860px) {
  .hero-wrap { grid-template-columns: 1.15fr .85fr; gap: 48px }
  .hero-text { order: 1 }
  .hero-image { order: 2; align-self: center }
  .hero-image img { max-width: 400px; border-radius: 28px }
  .hero { padding: 64px 0 48px }
}

@media (min-width: 980px) {
  .steps { grid-template-columns: repeat(4, 1fr) }
  .cta-wide { grid-template-columns: 1.2fr .8fr; text-align: left; padding: 48px 40px }
  .cta-wide .cta { margin: 0 }
}

@media (max-width: 640px) {
  .hero { padding: 36px 0 28px }
  .counter-grid { grid-template-columns: 1fr }
  .counter-item + .counter-item { border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px }
  .foot { flex-direction: column; text-align: center; gap: 10px }
  .faq-q { padding: 22px 0; min-height: 60px }
  .header-actions { gap: 12px }
}

/* Visually hidden helper */
.visually-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
