/* Habiness — landing page styles
   Faithfully rebuilt from the locked mockup:
   habiness/docs/superpowers/landing-page-v3-mockup-wip.html (2026-07-30)
   Real screenshots swap in for the mockup's placeholder phone boxes;
   copy follows the wife's latest review notes (2026-08-28) on top of that. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #fdf9f0;
  font-family: 'Raleway', sans-serif;
  color: #171515;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.wm { font-family: 'Playfair Display', Georgia, serif; }
.wm b { font-weight: 700; font-style: normal; }
.wm i { font-weight: 400; font-style: italic; }
.heading { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-style: normal; }

/* ── STICKY NAV (hidden until scroll past hero) ── */
#sticky-nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(253,249,240,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding: 12px 32px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(107,92,78,0.08);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
#sticky-nav.visible { transform: translateY(0); }
#sticky-nav .nav-logo { font-size: 17px; }
#sticky-nav .nav-links { display: flex; gap: 28px; }
#sticky-nav .nav-links a {
  font-size: 12px; color: rgba(23,21,21,0.55); text-decoration: none;
  letter-spacing: 0.3px; transition: color 0.15s;
}
#sticky-nav .nav-links a:hover { color: #171515; }

/* ── FROST PILL ── */
#frost-pill {
  position: fixed;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 48px); max-width: 700px;
  background: rgba(253,249,240,0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 22px;
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 100;
  box-shadow: 0 6px 28px rgba(107,92,78,0.13);
  transition: opacity 0.3s, transform 0.3s;
}
#frost-pill.hidden { opacity: 0; transform: translateX(-50%) translateY(12px); pointer-events: none; }
#frost-pill .pill-logo { font-size: 16px; }
#frost-pill .pill-btns { display: flex; gap: 8px; }
.pill-btn {
  background: linear-gradient(135deg, #ffc89f 0%, #a1dafc 100%);
  color: #171515;
  border-radius: 12px;
  padding: 9px 18px;
  font-size: 11px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
  min-width: 130px; justify-content: center;
  text-decoration: none;
}
.store-icon { width: 14px; height: 14px; flex-shrink: 0; }

.section-label {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(23,21,21,0.35); margin-bottom: 20px; text-align: center;
  font-weight: 600;
}

/* ── 1. HERO ── */
#hero {
  min-height: 100vh;
  background: linear-gradient(170deg, #ffc89f 0%, #a1dafc 42%, #fdf9f0 72%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 40px 20px;
}
#hero .hero-wordmark { font-size: 60px; margin-bottom: 20px; letter-spacing: -1.5px; }
#hero .hero-headline {
  font-size: 32px; max-width: 620px; line-height: 1.25;
  margin-bottom: 14px;
}
#hero .hero-subtitle {
  font-size: 16px; color: #171515; max-width: 480px;
  line-height: 1.6; margin-bottom: 56px;
}

/* Fanned phone group — centre phone larger, sides smaller + softened for depth.
   Tops kept level (not offset like the mockup's translateY(16px)) per explicit
   request that the side phones not sit lower than the centre one. */
.phones-fan {
  position: relative;
  height: 500px;
  width: 100%;
  max-width: 820px;
}
.phones-fan img {
  position: absolute;
  top: 0; left: 50%;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.14)) drop-shadow(0 4px 16px rgba(0,0,0,0.08));
}
.phone-center-main {
  width: 320px;
  z-index: 2;
  transform: translateX(-50%);
}
.phone-side {
  width: 260px;
  z-index: 1;
}
.phone-left  { transform: translateX(-104%) rotate(-12deg); }
.phone-right { transform: translateX(-4%) rotate(12deg); }

/* ── Reusable 3-column trio layout (Intro) ── */
.trio-section { padding: 30px 40px 110px; }
.trio-inner {
  max-width: 1060px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
}
.trio-col { text-align: center; }
.trio-heading { font-size: 27px; line-height: 1.25; margin-bottom: 14px; text-wrap: balance; }
.trio-body { font-size: 17px; color: #171515; line-height: 1.65; }

/* ── 2. INTRO ── */
#intro { background: #fdf9f0; }

/* ── 3. FEATURES ── */
#features { background: #f6f1e6; padding: 50px 40px 60px; }
#features .inner { max-width: 1060px; margin: 0 auto; }
#features h2 { font-size: 38px; margin-bottom: 64px; text-align: center; line-height: 1.3; }
.feature-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; margin-bottom: 48px;
}
.feature-block:last-child { margin-bottom: 0; }
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feat-text h3 { font-size: 26px; margin-bottom: 14px; line-height: 1.3; }
.feat-text .feat-num {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(23,21,21,0.3); margin-bottom: 12px; font-weight: 600;
}
.feat-text p { font-size: 18px; color: #171515; line-height: 1.75; }
.feat-phone {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* ── 5. USPs ── */
#usps { background: #f6f1e6; padding: 50px 40px 60px; }
#usps .inner { max-width: 1060px; margin: 0 auto; }
.usps-heading { font-size: 36px; text-align: center; margin-bottom: 48px; }
.usps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.usp-card {
  background: rgba(255,255,255,0.5); border-radius: 20px;
  padding: 28px 26px; border: 1px solid rgba(255,255,255,0.7);
}
.usp-card .usp-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.usp-card .usp-desc { font-size: 16px; color: #171515; line-height: 1.7; }

/* ── 6. TESTIMONIALS ── */
#testimonials { background: #fdf9f0; padding: 50px 40px 110px; text-align: center; }
#testimonials .inner { max-width: 1060px; margin: 0 auto; }
#testimonials h2 { font-size: 34px; margin-bottom: 52px; }
.testimonial-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card {
  background: linear-gradient(160deg, rgba(255,200,159,0.20), rgba(253,249,240,0.95));
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 18px;
  padding: 24px 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.testimonial-quote-mark {
  font-family: Georgia, serif; font-size: 26px;
  color: rgba(23,21,21,0.22); line-height: 1; margin-bottom: 8px;
}
.testimonial-quote {
  font-family: 'Raleway', sans-serif;
  font-style: normal; font-weight: 400;
  font-size: 15.5px; line-height: 1.6; color: #171515;
  margin-bottom: 14px;
  flex-grow: 1;
}
.testimonial-name { font-size: 12px; color: rgba(23,21,21,0.5); }

/* ── 7. PRICING (placeholder — format not yet decided) ── */
#pricing { background: #f6f1e6; padding: 110px 40px; text-align: center; }
.pricing-placeholder {
  max-width: 640px; margin: 0 auto;
  border: 1px dashed rgba(23,21,21,0.22); border-radius: 20px;
  padding: 64px 40px;
  color: rgba(23,21,21,0.4);
}
.pricing-placeholder .heading { font-size: 20px; color: rgba(23,21,21,0.55); margin-bottom: 10px; }
.pricing-placeholder p { font-size: 13.5px; line-height: 1.6; }

/* ── DOWNLOAD CTA ── */
#cta {
  background: linear-gradient(170deg, #ffc89f 0%, #a1dafc 50%, #fdf9f0 90%);
  text-align: center; padding: 120px 40px 100px;
}
#cta .cta-inner { max-width: 560px; margin: 0 auto; }
#cta .cta-wordmark { font-size: 54px; margin-bottom: 18px; }
#cta .cta-tagline {
  font-family: 'Playfair Display', Georgia, serif; font-style: italic;
  font-size: 20px; color: rgba(23,21,21,0.6); margin-bottom: 44px; line-height: 1.65;
}
#cta .cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
#cta .cta-btn {
  background: #171515; color: #fdf9f0;
  border-radius: 16px; padding: 15px 30px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; gap: 8px; min-width: 180px; justify-content: center;
  text-decoration: none;
}

/* ── FOOTER ── */
footer {
  background: #fdf9f0;
  border-top: 1px solid rgba(23,21,21,0.07);
  padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
footer .footer-logo { font-size: 15px; color: rgba(23,21,21,0.5); }
footer .footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
footer .footer-links a {
  font-size: 12px; color: rgba(23,21,21,0.4); text-decoration: none;
  transition: color 0.15s;
}
footer .footer-links a:hover { color: #171515; }
footer .footer-copy { font-size: 12px; color: rgba(23,21,21,0.3); }

/* ── Responsive ── */
@media (max-width: 860px) {
  #sticky-nav .nav-links { display: none; }
  .trio-inner { grid-template-columns: 1fr; gap: 32px; }
  .feature-block,
  .feature-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 28px;
  }
  .feature-block.reverse { display: flex; flex-direction: column-reverse; }
  .usps-grid { grid-template-columns: 1fr; }
  .testimonial-row { grid-template-columns: 1fr; }
  .phones-fan { height: 340px; }
  .phone-center-main { width: 190px; }
  .phone-side { width: 155px; }
  .phone-left  { transform: translateX(-98%) rotate(-10deg); }
  .phone-right { transform: translateX(-2%) rotate(10deg); }
}
