/* ============================================
   Bloom — landing page styles
   Mirrors the iOS app's bioluminescent night aesthetic
   ============================================ */

:root {
  --bg-deep: #050B1A;
  --bg-primary: #0A1628;
  --bg-surface: #1A2942;
  --bg-elevated: #243454;

  --text-primary: #E8F4F8;
  --text-secondary: #A8C0CF;
  --text-muted: #7A9AAB;
  --text-soft: #5A7A8B;

  --pink: #F472B6;
  --pink-glow: #F9A8D4;
  --violet: #A78BFA;
  --violet-glow: #C4B5FD;
  --cyan: #4FD1C5;
  --cyan-glow: #7FE9DD;
  --coral: #FB923C;
  --coral-glow: #FDBA74;
  --mint: #34D399;
  --mint-glow: #6EE7B7;
  --lime: #A3E635;
  --silver: #B4C5E4;

  --max-w: 1200px;
  --section-gap: 120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* ---------- Particle dust + aurora wash ---------- */
.dust {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, var(--violet-glow) 0.5px, transparent 1px),
    radial-gradient(circle at 87% 24%, var(--pink-glow) 0.4px, transparent 1px),
    radial-gradient(circle at 35% 56%, var(--cyan-glow) 0.5px, transparent 1px),
    radial-gradient(circle at 65% 78%, var(--coral-glow) 0.4px, transparent 1px),
    radial-gradient(circle at 22% 88%, var(--mint-glow) 0.5px, transparent 1px),
    radial-gradient(circle at 78% 12%, var(--violet-glow) 0.4px, transparent 1px),
    radial-gradient(circle at 50% 42%, var(--pink-glow) 0.4px, transparent 1px),
    radial-gradient(circle at 92% 62%, var(--cyan-glow) 0.5px, transparent 1px);
  background-size: 800px 800px, 1200px 1200px, 600px 600px, 1000px 1000px,
                   900px 900px, 700px 700px, 1100px 1100px, 850px 850px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto 0;
  height: 70vh;
  background:
    radial-gradient(ellipse at 30% 10%, rgba(167, 139, 250, 0.18), transparent 60%),
    radial-gradient(ellipse at 70% 20%, rgba(244, 114, 182, 0.14), transparent 65%),
    radial-gradient(ellipse at 50% 0%, rgba(46, 229, 199, 0.10), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- Navigation ---------- */
.nav {
  padding: 32px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.wordmark-bloom {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow.center { text-align: center; }

.hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: -2.5px;
  margin: 18px 0 24px;
  color: var(--text-primary);
}
.hero-title em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -1px;
  text-align: center;
  margin: 16px 0 20px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
  line-height: 1.6;
}
.section-sub.muted {
  color: var(--text-muted);
  margin-top: 14px;
  font-size: 15px;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max-w);
  margin: 60px auto var(--section-gap);
  padding: 0 40px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.6;
}

/* ---------- Email form (primary CTA) ---------- */
.email-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin-bottom: 14px;
}
.email-form input[type=email] {
  flex: 1;
  padding: 16px 20px;
  background: rgba(36, 52, 84, 0.5);
  border: 1px solid rgba(122, 154, 171, 0.3);
  border-radius: 999px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.email-form input[type=email]::placeholder { color: var(--text-muted); }
.email-form input[type=email]:focus {
  border-color: var(--pink-glow);
  background: rgba(36, 52, 84, 0.7);
}
.email-form button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 26px;
  background: var(--pink-glow);
  color: var(--bg-deep);
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 28px rgba(244, 114, 182, 0.32);
}
.email-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(244, 114, 182, 0.55);
}
.apple-logo {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero-status {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

/* ---------- Phone mockup with cycling screenshots ---------- */
.phone-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.phone-glow {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(244, 114, 182, 0.30), transparent 60%),
    radial-gradient(circle at 30% 70%, rgba(167, 139, 250, 0.25), transparent 65%),
    radial-gradient(circle at 70% 70%, rgba(46, 229, 199, 0.20), transparent 65%);
  filter: blur(60px);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: clamp(260px, 32vw, 340px);
  aspect-ratio: 360 / 780;
  border-radius: 48px;
  padding: 12px;
  background: linear-gradient(180deg, #1A2032 0%, #0E1421 100%);
  border: 1px solid rgba(122, 154, 171, 0.25);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.15) inset,
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(244, 114, 182, 0.15);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Crossfade animation: each image gets 5s slot in 25s total cycle.
   Image fades in 0-1s, holds 1-4s, fades out 4-5s.
   Successive images delayed 5s each so fade-in/fade-out overlap = crossfade. */
.phone-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: phoneCycle 25s infinite ease-in-out;
}
.phone-shot-1 { animation-delay: 0s; }
.phone-shot-2 { animation-delay: 5s; }
.phone-shot-3 { animation-delay: 10s; }
.phone-shot-4 { animation-delay: 15s; }
.phone-shot-5 { animation-delay: 20s; }

@keyframes phoneCycle {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  20%  { opacity: 1; }
  24%  { opacity: 0; }
  100% { opacity: 0; }
}

.phone-captions {
  position: relative;
  margin-top: 28px;
  height: 26px;
  width: 100%;
}
.phone-caption {
  position: absolute;
  inset: 0;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  opacity: 0;
  animation: phoneCycle 25s infinite ease-in-out;
}
.phone-caption-1 { animation-delay: 0s; }
.phone-caption-2 { animation-delay: 5s; }
.phone-caption-3 { animation-delay: 10s; }
.phone-caption-4 { animation-delay: 15s; }
.phone-caption-5 { animation-delay: 20s; }

/* ---------- The loop (3 cards) ---------- */
.loop {
  max-width: var(--max-w);
  margin: 0 auto var(--section-gap);
  padding: 0 40px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.card {
  background: rgba(26, 41, 66, 0.55);
  border: 1px solid rgba(36, 52, 84, 0.6);
  border-radius: 24px;
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover {
  border-color: rgba(244, 114, 182, 0.4);
  transform: translateY(-4px);
}
.card-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 32px;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Breath library ---------- */
.breaths {
  max-width: var(--max-w);
  margin: 0 auto var(--section-gap);
  padding: 0 40px;
}
.breath-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.breath-group {
  background: rgba(26, 41, 66, 0.45);
  border: 1px solid rgba(36, 52, 84, 0.5);
  border-radius: 20px;
  padding: 24px 22px;
}
.breath-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.breath-eyebrow.calm { color: var(--violet-glow); }
.breath-eyebrow.center-color { color: var(--cyan-glow); }
.breath-eyebrow.energy { color: var(--coral-glow); }
.breath-eyebrow.custom-color { color: var(--silver); }

.breath-group ul { list-style: none; }
.breath-group li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-primary);
  border-top: 1px solid rgba(36, 52, 84, 0.4);
}
.breath-group li:first-child { border-top: none; }
.breath-group li em {
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  color: var(--text-muted);
  font-size: 13px;
  margin-left: 4px;
}

.bdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.bdot-violet { background: var(--violet-glow); color: var(--violet-glow); }
.bdot-mint   { background: var(--mint-glow);   color: var(--mint-glow); }
.bdot-pink   { background: var(--pink-glow);   color: var(--pink-glow); }
.bdot-cyan   { background: var(--cyan-glow);   color: var(--cyan-glow); }
.bdot-coral  { background: var(--coral-glow);  color: var(--coral-glow); }
.bdot-lime   { background: var(--lime);        color: var(--lime); }
.bdot-silver { background: var(--silver);      color: var(--silver); }

.breath-custom li { font-size: 13px; color: var(--text-secondary); }

/* ---------- Garden grid ---------- */
.garden {
  max-width: var(--max-w);
  margin: 0 auto var(--section-gap);
  padding: 0 40px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.4s;
}
.grid img:hover { transform: scale(1.04); }

/* ---------- Comparison table ---------- */
.compare {
  max-width: var(--max-w);
  margin: 0 auto var(--section-gap);
  padding: 0 40px;
}
.compare-table-wrap {
  margin-top: 40px;
  border-radius: 24px;
  background: rgba(26, 41, 66, 0.45);
  border: 1px solid rgba(36, 52, 84, 0.5);
  overflow: hidden;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare-table th,
.compare-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid rgba(36, 52, 84, 0.5);
  vertical-align: middle;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table thead th {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(10, 22, 40, 0.5);
}
.compare-table .feature-col {
  width: 30%;
  color: var(--text-secondary);
  font-weight: 500;
}
.compare-table .brand-col {
  width: 35%;
  text-align: left;
}
.compare-table tbody td.bloom-col {
  background: rgba(244, 114, 182, 0.06);
  border-left: 1px solid rgba(244, 114, 182, 0.2);
  border-right: 1px solid rgba(244, 114, 182, 0.2);
}
.compare-table thead th.bloom-col {
  background: rgba(244, 114, 182, 0.10);
  border-left: 1px solid rgba(244, 114, 182, 0.3);
  border-right: 1px solid rgba(244, 114, 182, 0.3);
  text-align: left;
}
.compare-table thead th.bloom-col .brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.3px;
  text-transform: none;
  color: var(--pink-glow);
  font-weight: 500;
}
.compare-table tbody td.feature-col {
  color: var(--text-primary);
  font-weight: 500;
}
.check {
  color: var(--mint-glow);
  font-weight: 500;
  font-size: 14px;
}
.check.unique {
  color: var(--pink-glow);
  font-weight: 600;
}
.dim { color: var(--text-muted); font-size: 14px; line-height: 1.4; }

.compare-footnote {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Gift / share section ---------- */
.gift {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto var(--section-gap);
  padding: 0 40px;
}
.gift-content .eyebrow,
.gift-content .section-title,
.gift-content .section-sub {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.gift-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gift-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 24px;
  filter: drop-shadow(0 20px 60px rgba(251, 146, 60, 0.25));
}

/* ---------- About ---------- */
.about {
  max-width: 760px;
  margin: 0 auto var(--section-gap);
  padding: 0 40px;
  text-align: center;
}
.about-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(36, 52, 84, 0.5);
  padding: 60px 40px 40px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
.footer-brand .wordmark-bloom { font-size: 32px; }
.footer-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 8px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-copy {
  grid-column: 1 / -1;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(36, 52, 84, 0.3);
  color: var(--text-soft);
  font-size: 13px;
}

/* ============================================
   Responsive — tablet (≤960px)
   ============================================ */
@media (max-width: 960px) {
  :root { --section-gap: 90px; }

  .hero, .gift {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .email-form { margin-left: auto; margin-right: auto; }

  .gift-content .eyebrow,
  .gift-content .section-title,
  .gift-content .section-sub { text-align: center; }

  .cards { grid-template-columns: 1fr; gap: 16px; }
  .breath-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   Responsive — mobile (≤600px)
   Tightened spacing + alignment for iPhone
   ============================================ */
@media (max-width: 600px) {
  :root { --section-gap: 56px; }

  .nav { padding: 18px 20px; }
  .wordmark-bloom { font-size: 24px; }

  /* Hero — centered on mobile for visual balance with phone below */
  .hero {
    margin: 16px auto 36px;
    padding: 0 24px;
    gap: 32px;
    text-align: center;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero-title {
    margin: 12px 0 14px;
    font-size: 44px;
    letter-spacing: -1.5px;
  }
  .hero-sub {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
  }
  .email-form {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: none;
  }
  .email-form button { padding: 14px; justify-content: center; }

  /* Phone: center it, slightly larger so screenshots are readable */
  .phone-wrap { padding: 0; width: 100%; }
  .phone { width: min(280px, 75vw); }
  .phone-captions { margin-top: 16px; height: 22px; }
  .phone-caption { font-size: 16px; }

  /* Section padding */
  .loop, .breaths, .garden, .compare, .gift, .about, .footer-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Section heads — keep centered on mobile for aesthetic balance */
  .section-title {
    font-size: 28px;
    letter-spacing: -0.6px;
    margin: 8px 0 10px;
  }
  .section-sub {
    margin-bottom: 24px;
    font-size: 15px;
  }
  .section-sub.muted { font-size: 14px; }

  /* Loop cards — tighter overall */
  .cards { gap: 10px; margin-top: 20px; }
  .card { padding: 22px 22px; border-radius: 18px; }
  .card-num { font-size: 22px; margin-bottom: 6px; }
  .card h3 { font-size: 26px; margin-bottom: 8px; }
  .card p { font-size: 14px; line-height: 1.55; }

  /* Breath library — single column, tighter */
  .breath-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .breath-group { padding: 20px 18px; }
  .breath-eyebrow { font-size: 22px; margin-bottom: 10px; }
  .breath-group li { padding: 8px 0; font-size: 13px; }

  /* Garden grid — 2 columns, smaller gap */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }

  /* Compare table — convert each row to a stacked card on mobile */
  .compare-table-wrap {
    margin-top: 20px;
    border: none;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }
  .compare-table { display: block; }
  .compare-table thead { display: none; }
  .compare-table tbody { display: block; }
  .compare-table tr {
    display: block;
    background: rgba(26, 41, 66, 0.55);
    border: 1px solid rgba(36, 52, 84, 0.5);
    border-radius: 16px;
    margin-bottom: 12px;
    padding: 14px 16px;
  }
  .compare-table td {
    display: block;
    padding: 0;
    border: none;
    background: none;
  }
  .compare-table td.feature-col {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
  }
  .compare-table td.bloom-col {
    background: none;
    border: none;
    color: var(--pink-glow);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
  }
  .compare-table td.bloom-col::before {
    content: 'Bloom — ';
    color: var(--text-soft);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.4px;
  }
  .compare-table td.others-col {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
  }
  .compare-table td.others-col::before {
    content: 'Others — ';
    color: var(--text-soft);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.4px;
  }
  .check.unique { font-size: 14px; }
  .compare-footnote { margin-top: 16px; font-size: 12px; }

  /* Comparison table — convert to stacked cards on mobile */
  .compare-table-wrap {
    border: none;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }
  .compare-table { display: block; }
  .compare-table thead { display: none; }
  .compare-table tbody { display: block; }
  .compare-table tr {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 0;
    background: rgba(26, 41, 66, 0.45);
    border: 1px solid rgba(36, 52, 84, 0.5);
    border-radius: 16px;
    margin-bottom: 12px;
    padding: 4px;
  }
  .compare-table td {
    padding: 12px 8px;
    border: none;
    font-size: 13px;
  }
  .compare-table .feature-col { font-weight: 500; color: var(--text-primary); padding-left: 12px; }
  .compare-table tbody td.bloom-col {
    background: rgba(244, 114, 182, 0.10);
    border-radius: 10px;
    border-left: none;
    border-right: none;
  }
  .check.unique { font-size: 11px; }
  .compare-footnote { font-size: 12px; padding: 0 4px; }

  /* Gift section — center on mobile for visual balance */
  .gift { gap: 28px; margin-bottom: 56px; }
  .gift-content .eyebrow,
  .gift-content .section-title,
  .gift-content .section-sub { text-align: center; }
  .gift-image { max-width: 280px; }

  /* About */
  .about-body { font-size: 15px; margin-bottom: 14px; }

  /* Footer */
  footer { padding: 40px 20px 28px; margin-top: 40px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-links { align-items: flex-start; gap: 8px; }
  .footer-copy { margin-top: 18px; padding-top: 16px; }
}

/* ---------- Small phones (≤380px) ---------- */
@media (max-width: 380px) {
  .hero-title { font-size: 38px; }
  .section-title { font-size: 24px; }
}
