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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: "Nunito", sans-serif;
  background: linear-gradient(180deg, #f4fbff, #e6f1ff 40%, #f0f7ff 100%);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Without backdrop-filter (older Android WebView, some Firefox configs) a
   70%-transparent nav sits unreadable over scrolling content — fall back to a
   near-opaque solid. */
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .nav,
  .nav.nav-compact .nav-links {
    background: rgba(255, 255, 255, 0.97);
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
  color: #083463;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-right {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: #083463;
}

.nav-links a {
  color: #083463;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a:hover {
  color: #1b6fd8;
}

.nav-cta-desktop {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-cta-mobile {
  display: none;
}

.btn-ghost-nav {
  padding: 10px 22px;
  border-radius: 25px;
  border: 1.5px solid rgba(27, 111, 216, 0.35);
  color: #0d4fa8;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition:
    background 0.2s,
    border-color 0.2s;
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-ghost-nav:hover {
  background: rgba(27, 111, 216, 0.08);
  border-color: #1b6fd8;
}

.nav-cta {
  background: linear-gradient(135deg, #1b6fd8, #0d4fa8);
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 15px rgba(27, 111, 216, 0.3);
  display: inline-block;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  box-shadow: 0 6px 20px rgba(27, 111, 216, 0.4);
  color: white;
}

.nav-cta--white-text {
  color: white;
}

.icon-inline {
  margin-right: 6px;
}

/* Nav "compact" (hamburger) mode: applied by JS the instant the logo,
   links and buttons no longer fit on one line, instead of a guessed
   fixed breakpoint. Mirrors the small-screen nav rules below so it works
   at any width, not just under 768px. */
.nav.nav-compact .nav-toggle {
  display: flex;
}

.nav.nav-compact .nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.nav.nav-compact.menu-open .nav-links {
  display: flex;
}

.nav.nav-compact .nav-links > a {
  padding: 14px 25px;
  border-bottom: 1px solid rgba(8, 52, 99, 0.06);
  white-space: normal;
}

.nav.nav-compact .nav-cta-desktop {
  display: none;
}

.nav.nav-compact .nav-cta-mobile {
  display: flex;
  gap: 10px;
  padding: 16px 25px 20px;
}

.nav.nav-compact .nav-cta-mobile .btn-ghost-nav,
.nav.nav-compact .nav-cta-mobile .nav-cta {
  flex: 1;
  text-align: center;
  padding: 10px 18px;
  font-size: 14px;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 70px 50px 80px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  color: #d63031;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(252, 182, 159, 0.3);
}

.hero h1 {
  font-size: 56px;
  font-weight: 900;
  color: #083463;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-highlight {
  background: linear-gradient(135deg, #1b6fd8, #0d4fa8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: #6b7c93;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Hero CTA cluster — one dominant button, one quiet link. Deliberately NOT
   two boxed buttons: account creation is the single ask this page makes. */
.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, #1b6fd8, #0d4fa8);
  color: white;
  padding: 18px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  box-shadow: 0 8px 25px rgba(27, 111, 216, 0.4);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(27, 111, 216, 0.5);
}

.btn-link {
  color: #0d4fa8;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
}

.btn-link:hover {
  border-bottom-color: #0d4fa8;
}

.hero-free-note {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  color: #1aa179;
}

.hero-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Real product screenshots ─────────────────────────────────────────────
   Shared frame for every in-app screenshot on this page. The screenshots
   already carry the app's ice-blue background, so the frame is just a
   rounded white edge + soft shadow to lift them off the page. */
.app-shot {
  margin: 0;
  max-width: 100%;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(200, 215, 235, 0.9);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(8, 52, 99, 0.16);
}

.app-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px;
}

.app-shot--hero {
  width: 100%;
  max-width: 500px;
  animation: float 6s ease-in-out infinite;
}

/* Portrait phone screenshots (~1:2.05). Width is derived from the viewport
   height so the whole frame plus its step heading fits on one screen instead
   of overflowing on short laptop/phone viewports. 330px is the space reserved
   for the section title, step heading + copy and (on mobile) the carousel
   controls; 0.488 is the image width/height ratio; 18px is frame padding +
   border. Capped at 300px on tall screens, floored at 190px on very short. */
.app-shot--tall {
  --shot-reserved: 330px;
  width: clamp(
    190px,
    calc((100vh - var(--shot-reserved)) * 0.488 + 18px),
    300px
  );
  width: clamp(
    190px,
    calc((100svh - var(--shot-reserved)) * 0.488 + 18px),
    300px
  );
  max-width: 100%;
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .app-shot--hero {
    animation: none;
  }
}

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

/* Trust Strip */
.trust-strip {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 50px 10px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #083463;
  font-size: 15px;
}

.trust-item i {
  font-size: 18px;
  color: #1b6fd8;
}

@media (max-width: 768px) {
  .trust-strip {
    padding: 0 24px 10px;
    gap: 20px;
  }
}

/* Section header (shared) */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 900;
  color: #083463;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 18px;
  color: #6b7c93;
  max-width: 640px;
  margin: 0 auto;
}

/* How It Works Section — moved up: explaining the product comes before
   selling it. Step 1 absorbs the import-method chips so there's no separate
   "Add Recipes" section duplicating the same information further down. */
.how-it-works {
  padding: 80px 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.step {
  display: flex;
  align-items: center;
  gap: 40px;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.step:nth-child(even) {
  flex-direction: row-reverse;
}

.step-number {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1b6fd8, #0d4fa8);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 8px 25px rgba(27, 111, 216, 0.4);
}

.step-content h3 {
  font-size: 26px;
  font-weight: 800;
  color: #083463;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 16px;
  color: #6b7c93;
  line-height: 1.6;
}

.step-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.step-method-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e8f1fd, #d0e4fb);
  color: #0d4fa8;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 20px;
}

.step-method-chip i {
  font-size: 15px;
}

.step-method-chip.featured {
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  color: #c0392b;
}

/* ── "See it in the app" showcase ───────────────────────────────────────── */
.showcase {
  max-width: 1150px;
  margin: 0 auto;
  padding: 30px 50px 70px;
}

.showcase-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 70px;
}

.showcase-row:last-child {
  margin-bottom: 0;
}

.showcase-row--reverse {
  flex-direction: row-reverse;
}

.showcase-copy {
  flex: 1;
  min-width: 280px;
}

.showcase-row .app-shot {
  flex: 1;
  min-width: 0;
}

.showcase-eyebrow {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #e8f1fd, #d0e4fb);
  color: #0d4fa8;
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.showcase-copy h3 {
  font-size: 30px;
  font-weight: 900;
  color: #083463;
  line-height: 1.25;
  margin-bottom: 14px;
}

.showcase-copy > p {
  font-size: 17px;
  color: #6b7c93;
  line-height: 1.6;
  margin-bottom: 20px;
}

.showcase-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 700;
  color: #083463;
}

.showcase-points i {
  color: #1aa179;
  margin-top: 3px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .showcase {
    padding: 10px 25px 40px;
  }

  .showcase-row,
  .showcase-row--reverse {
    flex-direction: column;
    gap: 28px;
    margin-bottom: 50px;
  }

  .showcase-copy {
    text-align: center;
  }

  .showcase-points {
    max-width: 340px;
    margin: 0 auto;
  }

  .showcase-copy h3 {
    font-size: 25px;
  }
}

/* ── Shopping-list three-step sequence ──────────────────────────────────────
   Wide screens: a 3-up grid. Narrow screens: the same three steps become a
   scroll-snap carousel (native swipe), and index.js adds `.is-carousel` to
   reveal the arrows + dots and keep them in sync. */
.shoplist {
  max-width: 1150px;
  margin: 0 auto;
  padding: 40px 50px 80px;
}

.shoplist-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.shoplist-step {
  display: flex;
  flex-direction: column;
}

.shoplist-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.shoplist-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b6fd8, #0d4fa8);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(27, 111, 216, 0.35);
}

.shoplist-head h3 {
  font-size: 20px;
  font-weight: 800;
  color: #083463;
}

.shoplist-step > p {
  font-size: 15px;
  color: #6b7c93;
  line-height: 1.55;
  margin-bottom: 18px;
  min-height: 3.4em;
}

/* Carousel controls: hidden until index.js turns the carousel on. */
.shoplist-nav {
  display: none;
}

@media (max-width: 860px) {
  .shoplist {
    padding: 20px 25px 50px;
  }

  .shoplist-steps {
    grid-template-columns: none;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .shoplist-steps::-webkit-scrollbar {
    display: none;
  }

  .shoplist-step {
    flex: 0 0 100%;
    scroll-snap-align: center;
    padding: 4px 6px 0;
  }

  .shoplist-step > p {
    min-height: 0;
  }

  /* Carousel: title is smaller, but the arrows/dots row is added. */
  .shoplist-step .app-shot--tall {
    --shot-reserved: 310px;
  }

  .shoplist-carousel.is-carousel .shoplist-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 22px;
  }

  .shoplist-arrow {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(27, 111, 216, 0.35);
    background: #fff;
    color: #0d4fa8;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
      background 0.15s ease,
      border-color 0.15s ease,
      opacity 0.15s ease;
  }

  .shoplist-arrow:hover:not(:disabled) {
    background: rgba(27, 111, 216, 0.08);
    border-color: #1b6fd8;
  }

  .shoplist-arrow:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .shoplist-dots {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .shoplist-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(27, 111, 216, 0.25);
    cursor: pointer;
    transition:
      background 0.15s ease,
      transform 0.15s ease;
  }

  .shoplist-dot.is-active {
    background: #1b6fd8;
    transform: scale(1.25);
  }
}

/* Features Section */
.features {
  padding: 80px 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  height: 64px;
  width: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #dbeafe, #93c5fd);
  box-shadow: 0 4px 14px rgba(27, 111, 216, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #0d4fa8;
  margin: 0 auto 20px;
}

.feature-card h3 {
  font-size: 24px;
  font-weight: 800;
  color: #083463;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 16px;
  color: #6b7c93;
  line-height: 1.6;
}

/* Families Section */
.families-section {
  padding: 80px 50px;
  background: linear-gradient(135deg, #083463, #1b6fd8);
  color: white;
}

.families-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.families-copy {
  flex: 1;
  min-width: 280px;
}

.families-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.families-title {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 18px;
  line-height: 1.2;
}

.families-title-highlight {
  font-style: normal;
  color: #93c5fd;
}

.families-lead {
  font-size: 18px;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 30px;
}

.families-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}

.families-feature-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.families-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  margin-bottom: 10px;
}

.families-feature-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.families-feature-card span {
  font-size: 13px;
  opacity: 0.8;
}

.families-cta {
  display: inline-block;
  background: white;
  color: #1b6fd8;
  padding: 16px 40px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.families-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25);
}

/* Second CSS-only mockup — shared calendar with cook assignments, so Family
   Mode is shown (not just described) without any fabricated screenshot. */
.families-visual {
  flex: 1;
  min-width: 260px;
  display: flex;
  justify-content: center;
}

.family-mock {
  width: 280px;
  background: white;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.fm-header {
  font-weight: 900;
  font-size: 14px;
  color: #083463;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f4f8fd;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.fm-meal {
  font-weight: 700;
  font-size: 13px;
  color: #083463;
}

.fm-cook {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, #1b6fd8, #0d4fa8);
  border-radius: 999px;
  padding: 4px 10px;
  flex-shrink: 0;
}

.fm-vote {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  color: #c0392b;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .families-inner {
    flex-direction: column;
    text-align: center;
  }

  .families-lead {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Discover Section */
.discover-section {
  padding: 80px 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.discover-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  color: #c0392b;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(252, 182, 159, 0.3);
}

.discover-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.discover-card {
  background: white;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.discover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.discover-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #dbeafe, #93c5fd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #0d4fa8;
  margin-bottom: 16px;
}

.discover-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #083463;
  margin-bottom: 10px;
}

.discover-soon-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef1f5;
  color: #6b7c93;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.discover-card p {
  font-size: 15px;
  color: #6b7c93;
  line-height: 1.6;
}

.discover-actions-center {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .discover-section {
    padding: 50px 25px;
  }
}

/* FAQ Section */
.faq-section {
  padding: 60px 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(8, 52, 99, 0.07);
  border: 1px solid rgba(200, 215, 235, 0.5);
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px;
  font-size: 18px;
  font-weight: 800;
  color: #083463;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  background: rgba(27, 111, 216, 0.04);
}

.faq-question:focus-visible {
  outline: 2px solid #1b6fd8;
  outline-offset: -2px;
}

.faq-chevron {
  flex-shrink: 0;
  color: #1b6fd8;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  font-size: 15px;
  color: #6b7c93;
  line-height: 1.65;
  margin: 0;
  padding: 0 28px 26px;
}

.faq-item p a {
  color: #1b6fd8;
  font-weight: 700;
  text-decoration: none;
}

.faq-item p a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .faq-section {
    padding: 40px 25px;
  }
}

/* CTA Section */
.cta-section {
  padding: 90px 50px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 48px;
  font-weight: 900;
  color: #083463;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 20px;
  color: #6b7c93;
  margin-bottom: 40px;
}

.cta-section .hero-free-note {
  margin-top: 20px;
}

/* Sticky bottom CTA (mobile only, toggled by scroll position) */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(8, 52, 99, 0.1);
    box-shadow: 0 -3px 18px rgba(8, 52, 99, 0.12);
    z-index: 90;
    text-align: center;
    transform: translateY(120%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-sticky-cta.visible {
    transform: translateY(0);
  }

  /* Contained, calm version of the primary button: matches the page's
     full-width button pattern (.demo-submit) and keeps its glow from
     clipping against the viewport edge. */
  .mobile-sticky-cta .btn-primary {
    display: block;
    width: 100%;
    padding: 15px 24px;
    font-size: 16px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(13, 79, 168, 0.3);
  }

  .mobile-sticky-cta .btn-primary:hover {
    transform: none;
    box-shadow: 0 6px 16px rgba(13, 79, 168, 0.3);
  }
}

/* Nearly-opaque already, but drop all transparency where blur is unsupported. */
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .mobile-sticky-cta {
    background: #fff;
  }
}

/* Footer */
.footer {
  background: rgba(8, 52, 99, 0.95);
  color: white;
  padding: 60px 50px 30px;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-brand-link img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-brand-link span {
  font-size: 19px;
  font-weight: 900;
  color: white;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-heart {
  height: 1.1em;
  width: 1.1em;
  object-fit: contain;
  vertical-align: -0.2em;
  margin: 0 4px;
}

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

@media (max-width: 800px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* Clear the fixed mobile CTA so it never hides the last footer line. */
@media (max-width: 768px) {
  .footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    padding: 12px 18px;
  }

  .nav-logo {
    font-size: 20px;
  }

  .nav-logo img {
    width: 32px;
    height: 32px;
  }

  .nav-right {
    gap: 12px;
  }

  .nav-cta {
    padding: 9px 18px;
    font-size: 14px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  }

  .nav.menu-open .nav-links {
    display: flex;
  }

  .nav-links > a {
    padding: 14px 25px;
    border-bottom: 1px solid rgba(8, 52, 99, 0.06);
  }

  .nav-cta-desktop {
    display: none;
  }

  .nav-cta-mobile {
    display: flex;
    gap: 10px;
    padding: 16px 25px 20px;
  }

  .nav-cta-mobile .btn-ghost-nav,
  .nav-cta-mobile .nav-cta {
    flex: 1;
    text-align: center;
    padding: 10px 18px;
    font-size: 14px;
  }

  .hero {
    flex-direction: column;
    padding: 36px 25px 50px;
    text-align: center;
    gap: 40px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-buttons {
    align-items: center;
  }

  .how-it-works {
    padding: 50px 25px;
  }

  .step {
    flex-direction: column !important;
    text-align: center;
    padding: 30px 24px;
  }

  .step-methods {
    justify-content: center;
  }

  .features {
    padding: 50px 25px;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .families-section {
    padding: 50px 25px;
  }

  .families-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-section {
    padding: 60px 25px;
  }

  .cta-section h2 {
    font-size: 34px;
  }
}

@media (max-width: 420px) {
  .families-grid {
    grid-template-columns: 1fr;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── No-signup demo ─────────────────────────────────────────────────────── */
.demo {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 20px;
}
.demo-card {
  background: #fff;
  border: 1px solid #cfe0f2;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 44px rgba(8, 52, 99, 0.12);
}

/* Method chooser — two selectable cards, Photo first. */
.demo-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.demo-method {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 16px;
  border: 1.5px solid #cfe0f2;
  border-radius: 14px;
  background: #f7fbff;
  color: #083463;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}
.demo-method:hover {
  border-color: #9cc4e8;
}
.demo-method:focus-visible {
  outline: 2px solid #0d4fa8;
  outline-offset: 2px;
}
.demo-method.is-active {
  border-color: #0d4fa8;
  background: #eaf2fb;
  box-shadow: 0 0 0 3px rgba(13, 79, 168, 0.12);
}
.demo-method i {
  font-size: 18px;
  color: #0d4fa8;
}
.demo-method-label {
  font-weight: 800;
  font-size: 16px;
}
.demo-method-hint {
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7f92;
  line-height: 1.4;
}

/* Panels */
.demo-panel {
  margin-top: 18px;
}
.demo-panel.is-hidden {
  display: none;
}

/* Photo drop-zone */
.demo-dropzone {
  display: block;
  position: relative;
  border: 2px dashed #b9d3ec;
  border-radius: 14px;
  background: #f7fbff;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.demo-dropzone:hover,
.demo-dropzone.is-dragover {
  border-color: #0d4fa8;
  background: #eaf2fb;
}
/* Tighter once a photo is in — the thumbnail carries the size. */
.demo-dropzone:has(.demo-dropzone-preview:not(.is-hidden)) {
  padding: 14px;
}
.demo-dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.demo-dropzone-empty i {
  font-size: 28px;
  color: #7fb2e5;
}
.demo-dropzone-title {
  font-weight: 800;
  color: #083463;
  font-size: 15px;
}
.demo-dropzone-sub {
  font-size: 13px;
  color: #6b7f92;
  font-weight: 600;
}
.demo-dropzone-preview {
  display: inline-flex;
  position: relative;
}
.demo-dropzone-preview.is-hidden,
.demo-dropzone-empty.is-hidden {
  display: none;
}
.demo-dropzone-preview img {
  max-height: 200px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #cfe0f2;
}
.demo-photo-clear {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #083463;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Link input + examples */
.demo-input {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  border: 1px solid #b9d3ec;
  border-radius: 10px;
  background: #fff;
}
.demo-input:focus-visible {
  outline: 2px solid #0d4fa8;
  outline-offset: 1px;
}
.demo-examples {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.demo-examples-label {
  font-size: 13px;
  font-weight: 700;
  color: #6b7f92;
}
.demo-chip {
  border: 1px solid #b9d3ec;
  background: #f2f8ff;
  color: #0d4fa8;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.demo-chip:hover {
  background: #eaf2fb;
}

.demo-submit {
  margin-top: 22px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #1b6fd8, #0d4fa8);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(13, 79, 168, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.demo-submit i {
  font-size: 15px;
}
.demo-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(13, 79, 168, 0.36);
}
.demo-submit:focus-visible {
  outline: 2px solid #0d4fa8;
  outline-offset: 2px;
}
.demo-card :disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.demo-status {
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
  min-height: 1.2em;
  text-align: center;
}
.demo-status.is-working {
  color: #0d4fa8;
}
.demo-status.is-working::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 8px;
  vertical-align: -1px;
  border: 2px solid #cfe0f2;
  border-top-color: #0d4fa8;
  border-radius: 50%;
  animation: demo-spin 0.8s linear infinite;
}
@keyframes demo-spin {
  to {
    transform: rotate(360deg);
  }
}
.demo-status.is-error {
  color: #c0392b;
}

/* Result */
.demo-result {
  margin-top: 22px;
  border-top: 1px solid #e3eef9;
  padding-top: 20px;
}
.demo-result.is-hidden {
  display: none;
}
.demo-result-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1aa179;
  background: #e8f7f0;
  border-radius: 999px;
  padding: 4px 10px;
}
.demo-result-name {
  margin-top: 10px;
  font-size: 23px;
  font-weight: 900;
  color: #083463;
}
.demo-result-meta {
  margin-top: 4px;
  color: #6b7f92;
  font-weight: 700;
  font-size: 13px;
}
.demo-result-cols {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  margin-top: 18px;
}
.demo-result-cols h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0d4fa8;
  margin-bottom: 8px;
}
.demo-result-cols ul,
.demo-result-cols ol {
  padding-left: 20px;
  color: #21323f;
  line-height: 1.55;
}
.demo-result-cols li {
  margin-bottom: 4px;
}
.demo-result-more {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #6b7f92;
}
.demo-result-cta {
  display: inline-block;
  margin-top: 22px;
}

@media (max-width: 620px) {
  .demo {
    padding: 50px 18px 10px;
  }
  .demo-card {
    padding: 20px;
  }
  .demo-methods {
    grid-template-columns: 1fr;
  }
  .demo-result-cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── Not-ready email capture — deliberately a slim strip ─────────────────── */
.notify {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 24px 64px;
}
.notify-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  flex-wrap: wrap;
  background: #eef5ff;
  border: 1px solid #d7e6f7;
  border-radius: 16px;
  padding: 22px 26px;
}
.notify-copy {
  flex: 1 1 260px;
  min-width: 220px;
}
.notify-title {
  font-weight: 800;
  color: #083463;
  font-size: 17px;
}
.notify-sub {
  margin-top: 3px;
  color: #5a728b;
  font-size: 13.5px;
  line-height: 1.45;
}
.notify-form {
  display: flex;
  gap: 8px;
  flex: 0 1 auto;
}
.notify-input {
  width: 220px;
  max-width: 100%;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  border: 1px solid #b9d3ec;
  border-radius: 9px;
  background: #fff;
}
.notify-input:focus-visible {
  outline: 2px solid #0d4fa8;
  outline-offset: 1px;
}
.notify-btn {
  padding: 10px 18px;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: #0d4fa8;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
}
.notify-btn:hover {
  background: #0a3f87;
}
.notify-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.notify-status {
  margin-top: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  min-height: 1em;
}
.notify-status.is-ok {
  color: #1aa179;
}
.notify-status.is-error {
  color: #c0392b;
}

@media (max-width: 620px) {
  .notify {
    padding: 6px 18px 52px;
  }
  .notify-card {
    padding: 20px;
  }
  .notify-form {
    width: 100%;
  }
  .notify-input {
    flex: 1;
    width: auto;
  }
}
