/* =====================================================
   index.css — Home page (index.html) specific styles
===================================================== */

/* =====================================================
   EXTRA BUTTON VARIANTS (home page only)
===================================================== */
.btn-pink          { background: var(--pink); color: #fff; }
.btn-white         { background: #fff; color: var(--green); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.45);
}

/* =====================================================
   SECTION CURVE-TOP COLORS (home page sections)
===================================================== */
.s-problem  .curve-top::after { background: var(--cream); }
.s-garden   .curve-top::after { background: var(--green-light); }
.s-tools    .curve-top::after { background: var(--cream); }
.s-social   .curve-top::after { background: var(--yellow); }
.s-cta      .curve-top::after { background: var(--dark-green); }
footer      .curve-top::after { background: var(--darkest); }
.s-hiw-teaser .curve-top::after { background: #fff; }

/* =====================================================
   FLOATING BADGE DECORATIONS
   Animated emoji/icon squares that appear in hero sections
===================================================== */
.badge {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 10px rgba(0,0,0,.2);
  pointer-events: none;
  user-select: none;
  font-size: 20px;
  width: 40px; height: 40px;
  border-radius: 8px;
}
@media (min-width: 768px) {
  .badge { width: 80px; height: 80px; border-radius: 24px; font-size: 40px; }
}
@media (min-width: 1400px) {
  .badge { width: 128px; height: 128px; border-radius: 32px; font-size: 64px; }
}

/* Badge color variants */
.badge-white  { background: #fff; }
.badge-pink   { background: var(--pink); }
.badge-green  { background: var(--green); }
.badge-yellow { background: var(--yellow); }

/* Entrance animation: start offset, fade and translate up */
.badge {
  opacity: 0;
  transform: translate(-50%,-50%) translateY(60px);
  transition: opacity .9s ease, transform .9s ease;
}
.badge.visible {
  opacity: 1;
  transform: translate(-50%,-50%) translateY(0);
}

/* Gentle bob after appearing */
.badge.visible           { animation: badge-bob 6s ease-in-out infinite; }
.badge.visible.delay-1   { animation-delay: .5s; }
.badge.visible.delay-2   { animation-delay: 1.1s; }
.badge.visible.delay-3   { animation-delay: 1.7s; }

@keyframes badge-bob {
  0%, 100% { transform: translate(-50%,-50%) translateY(0); }
  50%       { transform: translate(-50%,-50%) translateY(-10px); }
}

/* =====================================================
   HERO SPLASH — giant Bloom wordmark opening section
===================================================== */
.hero-splash {
  background: var(--cream);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 24px 260px;
  position: relative;
  overflow: hidden;
}

.hero-splash-title {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(7rem, 22vw, 22rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  animation: splash-in 1s cubic-bezier(.16,1,.3,1) both;
}

@keyframes splash-in {
  from { opacity: 0; transform: translateY(40px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.hero-splash-sub {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  color: rgba(45,45,45,.72);
  max-width: 36ch;
  line-height: 1.55;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  animation: splash-in .9s .15s cubic-bezier(.16,1,.3,1) both;
}

/* Cycling word in hero sub */
.cycling-word {
  display: inline-block;
  position: relative;
  color: var(--green);
  font-weight: 800;
  min-width: 1ch;
}
.cycling-word.fade-out { animation: word-out .25s ease forwards; }
.cycling-word.fade-in  { animation: word-in .35s cubic-bezier(.16,1,.3,1) forwards; }

@keyframes word-out {
  to { opacity: 0; transform: translateY(-8px); }
}
@keyframes word-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.hero-splash .btn {
  position: relative;
  z-index: 1;
  animation: splash-in .9s .28s cubic-bezier(.16,1,.3,1) both;
}

/* Bird decoration — sits top-right */
.hero-bird {
  position: absolute;
  top: 6%; right: 8%;
  width: clamp(48px, 7vw, 100px);
  z-index: 2;
  animation: bird-bob 4s ease-in-out infinite;
}
@keyframes bird-bob {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}

/* Landscape illustration at the base of the hero */
.hero-landscape {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 260px;
  pointer-events: none;
  z-index: 0;
}
.hero-landscape svg { width: 100%; height: 100%; display: block; }

/* Badge positions in hero-splash */
.hero-splash .badge-1 { top: 22%; left: 5%;  }
.hero-splash .badge-2 { top: 14%; right: 18%; }
.hero-splash .badge-3 { bottom: 30%; left: 4%; }
.hero-splash .badge-4 { bottom: 28%; right: 6%; }

/* =====================================================
   DESCRIPTION SECTION (yellow bg, headline + phone)
===================================================== */
.s-desc {
  background: var(--yellow);
  padding: 6rem 24px 7rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
@media (min-width: 1400px) { .s-desc { padding: 8rem 80px 9rem; } }

.hero-inner {
  max-width: 1840px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
  }
}

.hero-copy { flex: 1; padding: 2rem 1rem; }

.s-desc h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: var(--tracking);
  line-height: 1.1;
  margin-bottom: 1rem;
  max-width: 16ch;
}
@media (min-width: 768px)  { .s-desc h1 { font-size: 52px; } }
@media (min-width: 1024px) { .s-desc h1 { font-size: 68px; } }
@media (min-width: 1400px) { .s-desc h1 { font-size: 84px; } }

.hero-sub {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(45,45,45,.75);
  max-width: 44ch;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .hero-sub { font-size: 22px; } }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Phone frame mockup */
.hero-phone {
  flex-shrink: 0;
  width: min(220px, 55vw);
  align-self: flex-end;
}
@media (min-width: 900px)  { .hero-phone { width: min(260px, 28vw); align-self: center; } }
@media (min-width: 1400px) { .hero-phone { width: min(320px, 24vw); } }

.phone-frame {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 2.5rem;
  background: rgba(255,255,255,.55);
  border: 2px dashed var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(45,45,45,.18), 0 0 0 8px rgba(255,255,255,.3);
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 52px; height: 5px;
  background: rgba(155,194,100,.4);
  border-radius: 100px;
}

/* Badge positions in s-desc */
.s-desc .badge-1 { top: 20%; left: 6%;   }
.s-desc .badge-2 { top: 15%; right: 8%;  }
.s-desc .badge-3 { bottom: 22%; left: 3%; }
.s-desc .badge-4 { bottom: 18%; right: 5%; }

/* =====================================================
   PROBLEM SECTION (cream background)
===================================================== */
.s-problem { background: var(--cream); padding: 6rem 0; }

.problem-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
}

.s-problem h2 { margin-bottom: 1.5rem; }
.s-problem p {
  line-height: var(--lh-body);
  color: rgba(45,45,45,.8);
  margin-bottom: 1.25rem;
}
.s-problem p:last-child { margin-bottom: 0; }

/* Yellow highlight quote card */
.highlight-card {
  background: var(--yellow);
  border-radius: var(--r-card);
  padding: 2rem;
}
.highlight-card p {
  font-weight: 800;
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: var(--dark);
  margin: 0;
}
@media (min-width: 768px) { .highlight-card p { font-size: 20px; } }

/* Inline callout emphasis */
.s-problem em {
  background: rgba(45,45,45,.06);
  font-style: italic;
  padding: 0 .15em;
}

/* =====================================================
   HOW IT WORKS TEASER SECTION
===================================================== */
.s-hiw-teaser { background: #fff; padding: 6rem 0; }

.hiw-teaser-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: flex-start;
}
@media (min-width: 900px) {
  .hiw-teaser-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
  }
}

.hiw-teaser-copy { flex: 1; }
.hiw-teaser-copy h2 { margin-bottom: 1rem; }

.hiw-teaser-sub {
  color: rgba(45,45,45,.75);
  max-width: 44ch;
  margin-bottom: 2rem;
  line-height: var(--lh-body);
}

.hiw-teaser-icons { flex-shrink: 0; }

.hiw-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: .75rem;
}
@media (min-width: 768px) { .hiw-icon-grid { grid-template-columns: repeat(3, 80px); } }

.hiw-icon-grid img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 2px solid rgba(155,194,100,.35);
  border-radius: 1rem;
  padding: 6px;
  background: #fff;
  transition: transform .2s ease, border-color .2s ease;
}
@media (min-width: 768px) { .hiw-icon-grid img { width: 80px; height: 80px; } }
.hiw-icon-grid img:hover { transform: translateY(-3px); border-color: var(--green); }

/* =====================================================
   SOCIAL PROOF / TESTIMONIALS (yellow background)
===================================================== */
.s-social { background: var(--yellow); padding: 7rem 0 10rem; }
.s-social h2 { margin-bottom: 2rem; }

.t-grid { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .t-grid { flex-direction: row; } }

/* White cards on yellow */
.t-card {
  flex: 1;
  background: #fff;
  border-radius: var(--r-card);
  padding: 2rem;
  position: relative;
}
.t-quote {
  position: absolute;
  top: .5rem; left: 1.25rem;
  font-size: 64px;
  font-weight: 800;
  color: var(--green-light);
  line-height: 1;
  user-select: none;
}
.t-text {
  font-size: 14px;
  line-height: 1.7;
  font-style: italic;
  padding-top: 2.5rem;
  color: var(--dark);
}
@media (min-width: 768px) { .t-text { font-size: 18px; } }
.t-author {
  display: block;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  color: var(--green-mid);
  margin-top: 1rem;
  letter-spacing: var(--tracking);
}

/* =====================================================
   CTA / CLOSING SECTION (dark green)
===================================================== */
.s-cta {
  background: var(--dark-green);
  padding: 7rem 0;
  color: #fff;
}

.cta-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
  max-width: 72ch;
  margin: 0 auto;
}

.s-cta h2  { color: #fff; margin-bottom: 1.25rem; }
.s-cta p   { line-height: var(--lh-body); color: rgba(255,255,255,.75); margin-bottom: 1.25rem; }
.s-cta p:last-of-type { margin-bottom: 0; }
.s-cta em  { background: rgba(255,255,255,.1); font-style: italic; padding: 0 .15em; }

.cta-action { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }

/* Extracted from inline style */
.cta-label {
  color: rgba(255,255,255,.6);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* App store pill buttons */
.store-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .875rem 1.75rem;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: var(--tracking);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.store-btn:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.store-btn svg   { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }

/* =====================================================
   HOME-ONLY TOOL STYLES
===================================================== */

/* Numbered badge for tool cards (not used in HTML yet, reserved) */
.tool-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .875rem;
  flex-shrink: 0;
}

/* App screenshot strip placeholder */
.tools-strip {
  width: 100%;
  aspect-ratio: 16 / 5;
}
