/* =============================================================
   HelloFamily — Landing Page Styles
   Palette pulled from assets/logo-icon.png + logo-horizontal.png
   ============================================================= */

:root {
  /* Brand colors — sampled directly from assets/logo-icon.png and
     assets/logo-horizontal.png so the site matches the logo exactly. */
  --color-teal: #1b767d;
  --color-teal-dark: #08515c;
  --color-coral: #f2704a;
  --color-coral-dark: #d4562f;
  --color-amber: #fdb740;

  /* Backgrounds */
  --color-bg: #fdf8f1;
  --color-bg-alt: #f5ede1;
  --color-card: #ffffff;

  /* Text */
  --color-text: #223434;
  --color-text-muted: #5b6b6c;
  --color-text-on-dark: #fdf8f1;

  /* Effects */
  --shadow-soft: 0 8px 24px rgba(28, 110, 114, 0.10);
  --shadow-card: 0 4px 16px rgba(28, 52, 52, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --max-width: 1160px;
}

/* =============================================================
   RESET & BASE
   ============================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  overflow-x: hidden;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================
   TYPOGRAPHY
   ============================================================= */

.section-heading {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--color-teal-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-heading.centered {
  text-align: center;
}

.section-subheading {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--color-coral-dark);
  margin-bottom: 16px;
}

.section-text {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 640px;
}

.section-text.centered {
  margin: 0 auto 32px;
  text-align: center;
}

.centered-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =============================================================
   BUTTONS
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 3px;
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--color-coral);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background-color: var(--color-coral-dark);
  transform: translateY(-2px);
}

.btn-large {
  font-size: 1.15rem;
  padding: 16px 32px;
}

.btn-nav {
  padding: 10px 22px;
  font-size: 0.95rem;
}

/* =============================================================
   HEADER / NAVIGATION
   ============================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(253, 248, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28, 110, 114, 0.08);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-teal-dark);
}

.logo-accent {
  color: var(--color-coral);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-teal);
  border-bottom-color: var(--color-amber);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 2px;
}

.nav-toggle-bar {
  width: 26px;
  height: 3px;
  background-color: var(--color-teal-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* =============================================================
   HERO
   ============================================================= */

.hero {
  padding: 72px 0 96px;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--color-teal-dark);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

/* =============================================================
   PHONE MOCKUP (code-built placeholder)
   ============================================================= */

.phone-mockup {
  width: 280px;
  background-color: var(--color-teal-dark);
  border-radius: 40px;
  padding: 14px;
  box-shadow: var(--shadow-soft), 0 20px 50px rgba(18, 75, 78, 0.25);
  position: relative;
  animation: float 5s ease-in-out infinite;
}

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

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background-color: var(--color-teal-dark);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  background-color: var(--color-card);
  border-radius: 28px;
  padding: 40px 20px 24px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.phone-screen-app {
  padding-top: 32px;
  gap: 20px;
}

.preview-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.mock-status-card {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 18px;
}

.mock-status-card-muted {
  background-color: var(--color-bg);
}

.mock-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.mock-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  margin-bottom: 6px;
}

.mock-sub {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.mock-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.mock-badge-success {
  background-color: rgba(28, 110, 114, 0.12);
  color: var(--color-teal);
}

.dashboard-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: auto;
}

.question-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.question-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.answer-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.answer-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background-color: var(--color-bg-alt);
  color: var(--color-text-muted);
}

.answer-pill-selected {
  background-color: var(--color-amber);
  color: var(--color-teal-dark);
}

/* =============================================================
   GENERIC CARD
   ============================================================= */

.card {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  margin-bottom: 10px;
}

.card-text {
  font-size: 1.02rem;
  color: var(--color-text-muted);
}

/* =============================================================
   SECTIONS (shared)
   ============================================================= */

.section {
  padding: 88px 0;
}

.how-it-works {
  background-color: var(--color-bg);
}

.benefits {
  background-color: var(--color-bg-alt);
}

.checkin-preview {
  background-color: var(--color-bg);
}

.dashboard-preview {
  background-color: var(--color-bg-alt);
}

/* =============================================================
   STEPS GRID
   ============================================================= */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.step-card {
  position: relative;
  text-align: center;
}

.step-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-amber);
  background-color: rgba(244, 169, 64, 0.14);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.icon-badge svg {
  width: 26px;
  height: 26px;
}

.icon-badge-teal {
  background-color: rgba(27, 118, 125, 0.14);
  color: var(--color-teal);
}

.icon-badge-coral {
  background-color: rgba(242, 112, 74, 0.14);
  color: var(--color-coral);
}

.icon-badge-amber {
  background-color: rgba(253, 183, 64, 0.22);
  color: var(--color-amber);
}

/* =============================================================
   BENEFITS GRID
   ============================================================= */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.benefit-card {
  text-align: center;
}

/* =============================================================
   PREVIEW SECTIONS (check-in / dashboard)
   ============================================================= */

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.preview-grid-reverse .preview-content {
  order: 1;
}

.preview-grid-reverse .preview-visual {
  order: 2;
}

.preview-visual {
  display: flex;
  justify-content: center;
}

/* =============================================================
   FINAL CTA
   ============================================================= */

.final-cta {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  text-align: center;
}

.final-cta .section-text {
  margin-bottom: 32px;
}

/* =============================================================
   FOOTER
   ============================================================= */

.site-footer {
  background-color: var(--color-teal-dark);
  color: var(--color-text-on-dark);
  padding: 56px 0 32px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(253, 248, 241, 0.15);
}

.footer-brand .logo-text,
.footer-brand .logo-accent {
  color: var(--color-text-on-dark);
}

.footer-brand .logo-accent {
  color: var(--color-amber);
}

.footer-tagline {
  margin-top: 12px;
  color: rgba(253, 248, 241, 0.75);
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-weight: 600;
  color: rgba(253, 248, 241, 0.85);
  transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--color-amber);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-copyright {
  font-size: 0.9rem;
  color: rgba(253, 248, 241, 0.65);
}

.footer-disclaimer {
  font-size: 0.85rem;
  color: rgba(253, 248, 241, 0.55);
  max-width: 640px;
  line-height: 1.5;
}

/* =============================================================
   RESPONSIVE — TABLET
   ============================================================= */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .steps-grid,
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }

  .preview-grid,
  .preview-grid-reverse .preview-content,
  .preview-grid-reverse .preview-visual {
    order: initial;
  }

  .preview-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .preview-content .section-text {
    margin-left: auto;
    margin-right: auto;
  }
}

/* =============================================================
   RESPONSIVE — NAV (hamburger menu)
   Switches to the mobile menu earlier than the layout breakpoints
   below so the nav links never wrap or overlap the logo.
   ============================================================= */

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(28, 110, 114, 0.1);
    box-shadow: var(--shadow-card);

    /* Hidden by default on mobile */
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.3s ease;
  }

  .nav-menu.is-open {
    max-height: 320px;
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .nav-link {
    padding: 10px 4px;
  }

  .btn-nav {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================================
   RESPONSIVE — MOBILE
   ============================================================= */

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .steps-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .phone-mockup {
    width: 240px;
  }

  .phone-screen {
    min-height: 360px;
  }
}
