/* ============================================================
   bloom-shared.css — Bloom Design System
   Single source of truth for all pages on thaliabloom.com
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ---- Base ---- */
body.bloom-page {
  font-family: 'Inter', system-ui, sans-serif;
  background: #0f0a1a;
  color: #e8e0f0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Background glow ---- */
.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(ellipse 900px 500px at 10% -5%, rgba(242,167,179,0.18), transparent 60%),
    radial-gradient(ellipse 900px 540px at 90% -2%, rgba(167,139,250,0.16), transparent 58%),
    radial-gradient(ellipse 600px 400px at 50% 100%, rgba(242,167,179,0.06), transparent 50%),
    linear-gradient(180deg, #1a0f2e 0%, #0f0a1a 40%);
}

/* ---- Shell ---- */
.shell { width: min(1080px, calc(100% - 2.5rem)); margin: 0 auto; }

/* ---- Nav ---- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,10,26,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(242,167,179,0.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-size: 1.1rem; font-weight: 800; color: #fff; text-decoration: none; }
.logo span { background: linear-gradient(135deg, #F2A7B3, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: 0.88rem; color: rgba(232,224,240,0.6); }
.nav-links a { text-decoration: none; transition: color 0.2s; color: rgba(232,224,240,0.6); }
.nav-links a:hover { color: #F2A7B3; }
.nav-cta {
  padding: 0.45rem 1rem; border-radius: 999px; font-weight: 600;
  background: linear-gradient(135deg, #ec7a92, #a78bfa); color: #fff !important;
  text-decoration: none; font-size: 0.85rem; transition: all 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(236,122,146,0.3); }

/* ---- Mobile toggle ---- */
.mobile-toggle { display: none; background: none; border: none; color: #e8e0f0; cursor: pointer; padding: 0.5rem; }
.mobile-toggle svg { width: 24px; height: 24px; }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 49;
  background: rgba(15,10,26,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(242,167,179,0.1); padding: 1rem 1.5rem 1.5rem;
  flex-direction: column; gap: 0.8rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: 0.6rem 0; font-size: 1rem; color: rgba(232,224,240,0.7);
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn { text-align: center; margin-top: 0.5rem; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid rgba(255,255,255,0.05); padding: 2rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: rgba(232,224,240,0.3); flex-wrap: wrap; gap: 1rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { text-decoration: none; color: rgba(232,224,240,0.3); transition: color 0.2s; }
.footer-links a:hover { color: #F2A7B3; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: all 0.2s; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #ec7a92, #a78bfa); color: #fff;
  box-shadow: 0 12px 32px rgba(236,122,146,0.25); border: none;
}
.btn-primary:hover { box-shadow: 0 16px 40px rgba(236,122,146,0.35); }
.btn-ghost {
  border: 1px solid rgba(242,167,179,0.25); color: rgba(232,224,240,0.8);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: rgba(242,167,179,0.5); }

/* ---- Cards ---- */
.card {
  border: 1px solid rgba(242,167,179,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
  padding: 2rem;
  transition: all 0.3s ease;
}
.card:hover {
  border-color: rgba(242,167,179,0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(242,167,179,0.06);
}

/* ---- Sections ---- */
section { padding: 4.5rem 0; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; color: #fff;
  letter-spacing: -0.02em;
}
.section-head p { margin-top: 0.6rem; color: rgba(232,224,240,0.45); font-size: 1.05rem; }

/* ---- Pill ---- */
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  color: #F2A7B3; background: rgba(242,167,179,0.08); border: 1px solid rgba(242,167,179,0.15);
  margin-bottom: 1.5rem;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: #F2A7B3; animation: bloom-pulse 2s ease-in-out infinite; }
@keyframes bloom-pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ---- Gradient text helper ---- */
.gradient-text {
  background: linear-gradient(135deg, #F2A7B3, #ec7a92, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ---- Page hero (for subpages) ---- */
.page-hero {
  padding: 5rem 0 3rem; text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
  line-height: 1.1; letter-spacing: -0.03em; color: #fff;
  margin-bottom: 0.8rem;
}
.page-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #F2A7B3, #ec7a92, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero p {
  font-size: 1.05rem; line-height: 1.6; color: rgba(232,224,240,0.55);
  max-width: 560px; margin: 0 auto;
}

/* ---- Hero (homepage) ---- */
.hero {
  padding: 7rem 0 5rem; text-align: center; position: relative;
}
.hero::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(242,167,179,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900;
  line-height: 1.05; letter-spacing: -0.03em; color: #fff;
  max-width: 800px; margin: 0 auto;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #F2A7B3, #ec7a92, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  margin: 1.2rem auto 0; max-width: 560px;
  font-size: 1.1rem; line-height: 1.6; color: rgba(232,224,240,0.55);
}
.hero-ctas { margin-top: 2rem; display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

/* ---- Problem grid ---- */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.problem-grid h3 { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 0.6rem; }
.problem-grid p { color: rgba(232,224,240,0.55); line-height: 1.6; font-size: 0.95rem; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { text-align: center; }
.step-num {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 1.2rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ec7a92, #a78bfa); color: #fff;
  font-size: 1.3rem; font-weight: 800;
}
.step h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.step p { color: rgba(232,224,240,0.5); line-height: 1.6; font-size: 0.9rem; }

/* ---- Team ---- */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.team-card { text-align: center; }
.team-card .emoji { font-size: 2.2rem; margin-bottom: 0.6rem; }
.team-card h3 { font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.team-card p { font-size: 0.78rem; color: rgba(232,224,240,0.45); line-height: 1.5; }

/* ---- Pricing tiers ---- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tier { position: relative; }
.tier-featured {
  border-color: rgba(242,167,179,0.4);
  box-shadow: 0 0 60px rgba(242,167,179,0.08);
}
.tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 0.25rem 0.9rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700;
  background: linear-gradient(135deg, #F2A7B3, #a78bfa); color: #fff;
  white-space: nowrap;
}
.tier-name { font-size: 0.9rem; font-weight: 700; color: #F2A7B3; }
.tier-price { font-size: 1.8rem; font-weight: 900; color: #fff; margin: 0.5rem 0 0.2rem; }
.tier-price span { font-size: 0.9rem; font-weight: 500; color: rgba(232,224,240,0.4); }
.tier-desc { font-size: 0.85rem; color: rgba(232,224,240,0.45); margin-bottom: 1.2rem; }
.tier ul { list-style: none; margin-bottom: 1.5rem; }
.tier li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.85rem; color: rgba(232,224,240,0.65); padding: 0.35rem 0;
}
.tier li::before { content: '✓'; color: #F2A7B3; font-weight: 700; flex-shrink: 0; }
.tier .btn { width: 100%; }

/* ---- Human bridge ---- */
.bridge { max-width: 800px; margin: 0 auto; }
.bridge h2 { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.bridge h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #F2A7B3, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.bridge p { color: rgba(232,224,240,0.5); line-height: 1.7; font-size: 0.95rem; }
.bridge p + p { margin-top: 0.8rem; }

/* ---- Stats ---- */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center;
}
.stat-value {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900;
  background: linear-gradient(135deg, #F2A7B3, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { margin-top: 0.3rem; font-size: 0.8rem; color: rgba(232,224,240,0.4); }

/* ---- Final CTA ---- */
.final-cta { text-align: center; padding: 5rem 0; }
.final-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: #fff; margin-bottom: 0.8rem;
}
.final-cta h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #F2A7B3, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.final-cta p { color: rgba(232,224,240,0.45); font-size: 1.1rem; margin-bottom: 2rem; }

/* ---- FAQ Accordion ---- */
.faq-section { padding: 4.5rem 0; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border: 1px solid rgba(242,167,179,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(242,167,179,0.25); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem; font-weight: 600; color: #fff;
  transition: color 0.2s;
}
.faq-question:hover { color: #F2A7B3; }
.faq-chevron {
  flex-shrink: 0; width: 20px; height: 20px;
  transition: transform 0.3s ease;
  color: rgba(242,167,179,0.6);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}
.faq-answer p {
  font-size: 0.93rem; line-height: 1.7;
  color: rgba(232,224,240,0.55);
}

/* ---- Contact Form ---- */
.contact-form-wrap { max-width: 560px; margin: 0 auto; }
.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
  margin-top: 1.5rem;
}
.form-field {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.form-field label {
  font-size: 0.85rem; font-weight: 600; color: rgba(232,224,240,0.7);
}
.form-field input,
.form-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(242,167,179,0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem; color: #e8e0f0;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(232,224,240,0.25); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(242,167,179,0.4);
  background: rgba(255,255,255,0.06);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-success {
  display: none; text-align: center; padding: 2rem;
  border: 1px solid rgba(242,167,179,0.2);
  border-radius: 14px; background: rgba(242,167,179,0.05);
}
.form-success h3 { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.form-success p { color: rgba(232,224,240,0.55); font-size: 0.93rem; }
.form-fallback { margin-top: 1rem; font-size: 0.85rem; color: rgba(232,224,240,0.35); text-align: center; }
.form-fallback a { color: #F2A7B3; text-decoration: none; }
.form-fallback a:hover { text-decoration: underline; }

/* ---- Prose / content pages ---- */
.prose {
  max-width: 720px; margin: 0 auto;
  color: rgba(232,224,240,0.7);
  line-height: 1.75;
}
.prose h1, .prose h2, .prose h3, .prose h4 { color: #fff; font-weight: 800; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.02em; }
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.1rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: #F2A7B3; text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: #fff; font-weight: 700; }
.prose hr { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 2rem 0; }

/* ---- Scroll animations ---- */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .shell { width: calc(100% - 2rem); }
  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.95rem; margin-top: 0.8rem; }
  .hero-ctas { flex-direction: column; gap: 0.6rem; }
  .hero-ctas .btn { width: 100%; }
  .problem-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .steps { grid-template-columns: 1fr; gap: 1.2rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .tier-grid { grid-template-columns: 1fr; gap: 1rem; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  section { padding: 2.5rem 0; }
  .faq-section { padding: 2.5rem 0; }
  .section-head { margin-bottom: 1.8rem; }
  .section-head h2 { font-size: 1.5rem; }
  .card { padding: 1.4rem; }
  .bridge h2 { font-size: 1.3rem; }
  .final-cta { padding: 3rem 0; }
  .final-cta h2 { font-size: 1.6rem; }
  .pill { font-size: 0.72rem; margin-bottom: 1rem; }
  .nav-inner { height: 56px; }
  .mobile-menu { top: 56px; }
  .page-hero { padding: 3rem 0 2rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .btn { font-size: 0.9rem; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.7rem; }
  .team-grid { grid-template-columns: 1fr; }
}
