/* =====================================================
   homepage.css — Busy Family landing page styles
   Additive only. Loaded after busyfamily.css.
   All selectors are prefixed .hp- or .home- so they
   never collide with blog/shared busyfamily.css rules.
   ===================================================== */

/* =====================================================
   Tokens (homepage-scoped overrides)
   ===================================================== */
:root {
  --hp-warm-bg:       #fdf8f4;
  --hp-warm-bg-alt:   #f7f1eb;
  --hp-warm-bg-deep:  #f0e9e0;
  --hp-navy:          #1e3a5f;
  --hp-navy-muted:    #2f4f82;
  --hp-accent:        #4a9ee2;
  --hp-accent-dark:   #2d7ec4;
  --hp-text:          #1e3a5f;
  --hp-text-secondary:#4a607a;
  --hp-radius-card:   20px;
  --hp-radius-pill:   999px;
  --hp-radius-chip:   8px;
  --hp-shadow-card:   0 2px 16px rgba(30,58,95,0.08);
  --hp-section-gap:   5rem;
}

/* =====================================================
   Base overrides scoped to homepage body
   ===================================================== */
body {
  background-color: var(--hp-warm-bg);
}

/* =====================================================
   Header — homepage variant
   ===================================================== */
.hp-header {
  background-color: var(--hp-warm-bg);
  border-bottom: 1px solid rgba(30,58,95,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hp-header .header-inner {
  padding: 0.5rem 0;
  gap: 1.5rem;
}

.hp-header .logo {
  height: 80px;
}

.hp-header .nav-link {
  color: var(--hp-navy-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.hp-header .nav-link:hover {
  color: var(--hp-accent-dark);
}

/* Sign in: softer pill for homepage */
.hp-header .nav-signin {
  background: transparent;
  color: var(--hp-navy);
  border: 1.5px solid rgba(30,58,95,0.25);
  box-shadow: none;
  font-weight: 500;
  padding: 0.45rem 1.2rem;
  border-radius: var(--hp-radius-pill);
  transition: background 0.2s, border-color 0.2s;
}

.hp-header .nav-signin:hover,
.hp-header .nav-signin:focus-visible {
  background: rgba(30,58,95,0.06);
  border-color: rgba(30,58,95,0.4);
  color: var(--hp-navy);
}

/* Early access nav CTA */
.hp-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.2rem;
  border-radius: var(--hp-radius-pill);
  background: var(--hp-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}

.hp-nav-cta:hover {
  background: var(--hp-accent-dark);
  color: #fff;
}

/* =====================================================
   Shared section wrapper
   ===================================================== */
.hp-section {
  padding: var(--hp-section-gap) 0;
}

.hp-section-alt {
  background-color: var(--hp-warm-bg-alt);
}

.hp-section-deep {
  background-color: var(--hp-warm-bg-deep);
}

.hp-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hp-accent);
  margin-bottom: 0.75rem;
}

.hp-h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--hp-navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hp-h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--hp-navy);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.hp-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--hp-text-secondary);
  margin-bottom: 1.5rem;
}

/* =====================================================
   Hero
   ===================================================== */
.hp-hero {
  background-color: var(--hp-warm-bg);
  padding: 4rem 0 3rem;
  overflow: hidden;
}

.hp-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hp-hero-text {
  flex: 1 1 auto;
}

.hp-hero-headline {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  color: var(--hp-navy);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hp-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--hp-text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Primary CTA */
.hp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: var(--hp-radius-pill);
  background: var(--hp-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  min-height: 52px;
}

.hp-btn-primary:hover {
  background: var(--hp-accent-dark);
  transform: translateY(-1px);
  color: #fff;
}

/* Ghost/secondary link */
.hp-link-secondary {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--hp-navy-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.hp-link-secondary:hover {
  color: var(--hp-accent-dark);
  border-bottom-color: var(--hp-accent-dark);
}

/* Hero image panel */
.hp-hero-visual {
  flex: 1 1 auto;
  position: relative;
}

.hp-hero-img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  object-position: center right;
  aspect-ratio: 4 / 3;
  display: block;
}

/* Overlay chips on hero image */
.hp-hero-chips {
  position: absolute;
  bottom: 1.25rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.hp-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hp-navy);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(30,58,95,0.08);
  width: fit-content;
}

.hp-hero-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hp-accent);
  flex-shrink: 0;
}

/* Desktop hero layout */
@media (min-width: 768px) {
  .hp-hero {
    padding: 5rem 0 4rem;
  }

  .hp-hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
  }

  .hp-hero-text {
    flex: 0 0 48%;
    max-width: 520px;
  }

  .hp-hero-visual {
    flex: 0 0 48%;
    max-width: 560px;
  }

  .hp-hero-img {
    aspect-ratio: 16 / 10;
    object-position: center right;
  }
}

/* =====================================================
   Signal chips section (#3)
   ===================================================== */
.hp-signals {
  background: var(--hp-navy);
  padding: 4rem 0;
}

.hp-signals-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hp-signals .hp-h2 {
  color: #fff;
}

.hp-signals .hp-body {
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hp-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 2rem;
}

.hp-signal-chip {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: var(--hp-radius-chip);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.15);
}

/* =====================================================
   Assistant / Memory section (#4)
   ===================================================== */
.hp-assistant-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: flex-start;
}

.hp-assistant-text {
  flex: 1 1 auto;
}

.hp-assistant-card-wrap {
  flex: 1 1 auto;
  width: 100%;
}

/* Chat conversation card */
.hp-convo {
  background: #fff;
  border-radius: var(--hp-radius-card);
  box-shadow: var(--hp-shadow-card);
  padding: 1.5rem;
  max-width: 420px;
  border: 1px solid rgba(30,58,95,0.06);
}

.hp-convo-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hp-navy-muted);
}

.hp-convo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf6e;
  flex-shrink: 0;
}

.hp-msg {
  margin-bottom: 0.9rem;
  display: flex;
  flex-direction: column;
}

.hp-msg-user {
  align-items: flex-end;
}

.hp-msg-bubble {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 90%;
}

.hp-msg-user .hp-msg-bubble {
  background: var(--hp-accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.hp-msg-bf .hp-msg-bubble {
  background: var(--hp-warm-bg-alt);
  color: var(--hp-navy);
  border-bottom-left-radius: 4px;
}

.hp-msg-sender {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--hp-text-secondary);
  margin-bottom: 0.25rem;
}

.hp-msg-user .hp-msg-sender {
  align-self: flex-end;
}

@media (min-width: 768px) {
  .hp-assistant-inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .hp-assistant-text {
    flex: 0 0 50%;
  }

  .hp-assistant-card-wrap {
    flex: 0 0 44%;
  }
}

/* =====================================================
   Smart Family Layer intro (#5)
   ===================================================== */
.hp-smart-layer {
  background-color: var(--hp-warm-bg-alt);
  padding: var(--hp-section-gap) 0;
}

.hp-smart-layer-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.hp-pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .hp-pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hp-pillar-card {
  background: #fff;
  border-radius: var(--hp-radius-card);
  padding: 2rem 1.75rem;
  border: 1px solid rgba(30,58,95,0.07);
}

.hp-pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--hp-warm-bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.hp-pillar-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--hp-accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hp-navy);
  margin-bottom: 0.5rem;
}

.hp-pillar-body {
  font-size: 0.92rem;
  color: var(--hp-text-secondary);
  line-height: 1.6;
}

/* =====================================================
   Feature sections (Smart Alerts / Rules / Reminders)
   ===================================================== */
.hp-feature {
  padding: var(--hp-section-gap) 0;
}

.hp-feature-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: flex-start;
}

.hp-feature-text {
  flex: 1 1 auto;
}

.hp-feature-visual {
  flex: 1 1 auto;
  width: 100%;
}

.hp-feature-img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
}

/* Product artifact card */
.hp-artifact {
  background: #fff;
  border-radius: var(--hp-radius-card);
  box-shadow: var(--hp-shadow-card);
  padding: 1.5rem;
  border: 1px solid rgba(30,58,95,0.07);
  margin-top: 1.75rem;
}

.hp-artifact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--hp-accent);
  margin-bottom: 0.6rem;
}

.hp-artifact-body {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--hp-navy);
}

.hp-artifact-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--hp-text-secondary);
}

.hp-artifact-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hp-accent);
  flex-shrink: 0;
}

/* Comparison card (Smart Reminders) */
.hp-compare {
  background: #fff;
  border-radius: var(--hp-radius-card);
  box-shadow: var(--hp-shadow-card);
  border: 1px solid rgba(30,58,95,0.07);
  overflow: hidden;
  margin-top: 1.75rem;
}

.hp-compare-row {
  display: flex;
  flex-direction: column;
}

@media (min-width: 480px) {
  .hp-compare-row {
    flex-direction: row;
  }
}

.hp-compare-col {
  flex: 1;
  padding: 1.25rem 1.5rem;
}

.hp-compare-col + .hp-compare-col {
  border-top: 1px solid rgba(30,58,95,0.08);
}

@media (min-width: 480px) {
  .hp-compare-col + .hp-compare-col {
    border-top: none;
    border-left: 1px solid rgba(30,58,95,0.08);
  }
}

.hp-compare-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hp-compare-old .hp-compare-label {
  color: var(--hp-text-secondary);
}

.hp-compare-new {
  background: var(--hp-warm-bg);
}

.hp-compare-new .hp-compare-label {
  color: var(--hp-accent);
}

.hp-compare-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--hp-navy);
}

/* Desktop feature alternating layout */
@media (min-width: 768px) {
  .hp-feature-inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .hp-feature-text {
    flex: 0 0 48%;
  }

  .hp-feature-visual {
    flex: 0 0 46%;
  }

  /* Alternate: image first */
  .hp-feature-inner.hp-feature-flip {
    flex-direction: row-reverse;
  }
}

/* =====================================================
   Broad family life section (#9)
   ===================================================== */
.hp-life-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 600px) {
  .hp-life-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hp-life-card {
  background: #fff;
  border-radius: var(--hp-radius-card);
  padding: 1.75rem;
  border: 1px solid rgba(30,58,95,0.07);
}

.hp-life-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--hp-navy);
  margin-bottom: 0.4rem;
}

.hp-life-card-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--hp-text-secondary);
}

/* =====================================================
   Trust section (#10)
   ===================================================== */
.hp-trust-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: flex-start;
}

.hp-trust-text {
  flex: 1 1 auto;
}

.hp-trust-visual {
  flex: 1 1 auto;
  width: 100%;
}

.hp-trust-img {
  width: 100%;
  max-width: 340px;
  border-radius: var(--hp-radius-card);
  border: 1px solid rgba(30,58,95,0.08);
  display: block;
}

.hp-trust-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hp-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--hp-text-secondary);
  line-height: 1.55;
}

.hp-trust-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(74,158,226,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.hp-trust-check::after {
  content: '';
  width: 7px;
  height: 4.5px;
  border-left: 1.8px solid var(--hp-accent);
  border-bottom: 1.8px solid var(--hp-accent);
  transform: rotate(-45deg) translateY(-1px);
}

@media (min-width: 768px) {
  .hp-trust-inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .hp-trust-text {
    flex: 0 0 50%;
  }

  .hp-trust-visual {
    flex: 0 0 44%;
    display: flex;
    justify-content: center;
  }

  .hp-trust-img {
    max-width: 380px;
  }
}

/* =====================================================
   Early access / invite form (#11)
   ===================================================== */
.hp-invite {
  background: var(--hp-navy);
  padding: var(--hp-section-gap) 0;
}

.hp-invite-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.hp-invite .hp-h2 {
  color: #fff;
}

.hp-invite .hp-body {
  color: rgba(255,255,255,0.75);
}

.hp-invite-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.hp-invite-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.35rem;
}

.hp-invite-form input[type="text"],
.hp-invite-form input[type="email"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.hp-invite-form input[type="text"]::placeholder,
.hp-invite-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.35);
}

.hp-invite-form input[type="text"]:focus,
.hp-invite-form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.5);
}

.hp-invite-submit {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: var(--hp-radius-pill);
  background: var(--hp-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  font-family: inherit;
  min-height: 52px;
  transition: background 0.2s;
}

.hp-invite-submit:hover {
  background: var(--hp-accent-dark);
}

.hp-invite-success {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.hp-error-message {
  font-size: 0.82rem;
  color: #ffb3b3;
  margin-top: 0.25rem;
  display: none;
}

/* =====================================================
   Footer — homepage warm variant
   ===================================================== */
.hp-footer {
  background: var(--hp-warm-bg-deep);
  padding: 2rem 0;
}

.hp-footer .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.hp-footer .footer-text {
  font-size: 0.85rem;
  color: var(--hp-text-secondary);
}

.hp-footer .footer-links a {
  color: var(--hp-text-secondary);
}

.hp-footer .footer-links a:hover {
  color: var(--hp-navy);
}

/* =====================================================
   Back-to-top — reuse existing class but safe
   ===================================================== */
.hp-back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hp-accent);
  color: #fff;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* =====================================================
   Reduced motion
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .hp-btn-primary,
  .hp-hero-img,
  .hp-feature-img {
    transition: none;
    transform: none;
  }
}
