/* ZivoHealth marketing — Google Store header + Apple-style sections */
:root {
  --zivo-brand-red: #e30412;
  --zivo-brand-red-hover: #c00310;
  --zivo-brand-red-soft: #f5f5f7;
  --zivo-accent-muted: #5c6578;
  --zivo-ink: #2a3548;
  --zivo-ink-muted: #5c6578;
  --zivo-surface: #ffffff;
  --zivo-canvas-soft: #f5f5f7;
  --zivo-border: #e5e7eb;
  --zivo-card-shadow: 0 4px 24px rgba(42, 53, 72, 0.07);
  --zivo-card-shadow-hover: 0 16px 48px rgba(42, 53, 72, 0.11);
  --zivo-radius-md: 12px;
  --zivo-radius-lg: 20px;
  --zivo-radius-xl: 28px;
  --zivo-max-width: 1200px;
  --zivo-header-pill-height: 68px;
  --zivo-sticky-cta-height: 4.5rem;
}

body.landing-page {
  color: var(--zivo-ink);
  background: var(--zivo-surface);
  padding-bottom: var(--zivo-sticky-cta-height);
}

.landing-main {
  flex: 1;
}

/* —— Google Store–style header: full-width bar at top, floating pill on scroll —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 0 2rem;
  background: #ffffff;
  border-bottom: 1px solid var(--zivo-border);
  box-sizing: border-box;
  transition: padding 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.site-header-shell {
  max-width: var(--zivo-max-width);
  margin: 0 auto;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0.4rem 0;
  transition:
    border-radius 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    padding 0.25s ease;
}

.site-header.is-scrolled {
  padding: 0.75rem 1.25rem;
  background: transparent;
  border-bottom-color: transparent;
}

.site-header.is-scrolled .site-header-shell {
  background: #ffffff;
  border-radius: 999px;
  box-shadow:
    0 1px 2px rgba(42, 53, 72, 0.06),
    0 4px 16px rgba(42, 53, 72, 0.08);
  padding: 0.4rem 1rem 0.4rem 1.25rem;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--zivo-header-pill-height);
}

.site-header .header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  line-height: 0;
  flex-shrink: 0;
}

.site-header .header-logo-img {
  height: calc(var(--zivo-logo-height) - 4px);
  width: auto;
  display: block;
  object-fit: contain;
  object-position: center center;
  /* Logo asset has extra padding below the wordmark */
  transform: translateY(6px);
}

.site-header .header-end {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.site-header .header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header .header-nav a {
  color: var(--zivo-ink-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
  padding: 0.35rem 0;
  transition: color 0.15s ease;
}

.site-header .header-nav a:hover,
.site-header .header-nav a:focus-visible {
  color: var(--zivo-ink);
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.provider-cta-panel {
  min-width: 200px;
  padding: 0.5rem;
}

.provider-cta-panel a {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: var(--zivo-radius-md);
  color: var(--zivo-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background 0.15s ease;
}

.provider-cta-panel a:hover {
  background: var(--zivo-canvas-soft);
}

.site-header .header-cta-btn,
.site-header a.header-cta-btn,
.site-header button.header-cta-btn,
.download-dropdown .header-cta-btn,
.download-dropdown > button.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 2.25rem;
  line-height: 1;
  margin: 0;
  text-decoration: none;
  background: var(--zivo-brand-red);
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s ease;
}

.site-header .header-cta-btn:hover,
.site-header a.header-cta-btn:hover,
.site-header button.header-cta-btn:hover,
.download-dropdown .header-cta-btn:hover,
.download-dropdown > button.header-cta-btn:hover {
  background: var(--zivo-brand-red-hover);
}

.download-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.download-dropdown-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
  min-width: 220px;
  background: var(--zivo-surface);
  border: 1px solid var(--zivo-border);
  border-radius: var(--zivo-radius-lg);
  box-shadow: 0 12px 32px rgba(42, 53, 72, 0.12);
  padding: 1rem;
  z-index: 1100;
}

.download-dropdown.open .download-dropdown-panel {
  display: block;
}

.download-dropdown-panel .zivo-qr-caption {
  font-size: 0.8125rem;
  color: var(--zivo-ink-muted);
  text-align: center;
  margin: 0.5rem 0 0.75rem;
}

.header-menu-toggle {
  display: none;
  background: var(--zivo-canvas-soft);
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 1.125rem;
  cursor: pointer;
  line-height: 1;
  color: var(--zivo-ink);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--zivo-radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--zivo-brand-red);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.8rem 1.65rem;
}

.btn-primary:hover {
  background: var(--zivo-brand-red-hover);
}

.btn-secondary {
  background: var(--zivo-surface);
  color: var(--zivo-brand-red);
  border: 1.5px solid var(--zivo-brand-red);
  border-radius: 999px;
}

.btn-secondary:hover {
  background: rgba(227, 4, 18, 0.06);
}

/* —— Hero —— */
.hero-section {
  background: var(--zivo-surface);
  padding: 3rem 2rem 4rem;
}

.hero-grid {
  max-width: var(--zivo-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--zivo-ink);
}

.hero-copy .hero-sub {
  font-size: 1.0625rem;
  color: var(--zivo-ink-muted);
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.pillar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pillar-chip {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--zivo-canvas-soft);
  border: 1px solid var(--zivo-border);
  color: var(--zivo-ink-muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--zivo-ink-muted);
}

.trust-strip span::before {
  content: "✓ ";
  color: var(--zivo-brand-red);
  font-weight: 700;
}

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

.phone-frame {
  width: min(280px, 100%);
  border-radius: 2.25rem;
  padding: 0.6rem;
  background: linear-gradient(160deg, #e3e3e8 0%, #c8c8d0 100%);
  box-shadow: 0 24px 48px rgba(42, 53, 72, 0.14);
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 1 / 2;
  object-fit: cover;
  object-position: top center;
  border-radius: 1.5rem;
  display: block;
}

.zivo-download-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.zivo-qr-card {
  padding: 1rem;
  border-radius: var(--zivo-radius-lg);
  border: 1px solid var(--zivo-border);
  background: var(--zivo-surface);
}

.zivo-qr-card img {
  width: 160px;
  height: 160px;
  display: block;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 135px;
  height: 40px;
  flex-shrink: 0;
  line-height: 0;
}

.store-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.zivo-qr-block {
  display: none;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1024px) {
  .zivo-qr-block {
    display: flex;
  }
}

/* Download card: show QR on tablet+ */
@media (min-width: 640px) {
  .zivo-qr-block--card {
    display: flex;
  }
}

/* —— Audience pill —— */
.audience-pill-bar {
  position: sticky;
  top: calc(var(--zivo-logo-height) + 1rem);
  z-index: 900;
  display: flex;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--zivo-border);
}

.audience-pill {
  display: inline-flex;
  padding: 0.25rem;
  background: var(--zivo-canvas-soft);
  border-radius: 999px;
  border: 1px solid var(--zivo-border);
}

.audience-pill button {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--zivo-ink-muted);
  cursor: pointer;
}

.audience-pill button.active {
  background: var(--zivo-brand-red);
  color: #fff;
}

/* —— Sections —— */
.landing-section {
  padding: 4rem 2rem;
}

.landing-section.alt {
  background: var(--zivo-canvas-soft);
}

.section-inner {
  max-width: var(--zivo-max-width);
  margin: 0 auto;
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--zivo-ink-muted);
  font-size: 1.0625rem;
  margin: 0;
  line-height: 1.55;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zivo-brand-red);
  margin-bottom: 0.5rem;
}

/* —— Bento —— */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.bento-card {
  grid-column: span 4;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--zivo-border);
  border-radius: var(--zivo-radius-lg);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-section.alt .bento-card {
  background: var(--zivo-surface);
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(227, 4, 18, 0.07);
}

.bento-card.large {
  grid-column: span 4;
}

.bento-card.medium {
  grid-column: span 4;
}

.bento-card.small {
  grid-column: span 3;
}

.bento-card .bento-pillar {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--zivo-ink-muted);
  margin-bottom: 0.5rem;
}

.bento-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.bento-card p {
  font-size: 0.9375rem;
  color: var(--zivo-ink-muted);
  margin: 0;
  line-height: 1.5;
}

.section-footnote {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--zivo-ink-muted);
  font-style: italic;
  text-align: center;
}

/* —— Download card —— */
.download-card-section {
  padding-top: 0;
  padding-bottom: 4rem;
}

.download-card {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--zivo-border);
  border-radius: var(--zivo-radius-lg);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.download-card h3 {
  width: 100%;
  text-align: center;
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.download-card .download-card-sub {
  width: 100%;
  text-align: center;
  color: var(--zivo-ink-muted);
  font-size: 0.9375rem;
  margin: 0 0 0.5rem;
}

/* —— Platform bridge —— */
.platform-bridge {
  text-align: center;
}

.platform-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  max-width: 800px;
  margin: 2rem auto 0;
}

.platform-box {
  padding: 1.5rem;
  border-radius: var(--zivo-radius-lg);
  border: 1px solid var(--zivo-border);
  background: #fff;
  text-align: left;
}

.platform-box h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--zivo-brand-red);
}

.platform-box p {
  font-size: 0.875rem;
  color: var(--zivo-ink-muted);
  margin: 0;
}

.platform-arrow {
  font-size: 1.5rem;
  color: var(--zivo-ink-muted);
  font-weight: 700;
}

.platform-messages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.platform-messages h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--zivo-ink);
  margin: 0 0 0.5rem;
}

.platform-messages p {
  font-size: 0.9375rem;
  color: var(--zivo-ink-muted);
  margin: 0;
}

/* —— Provider portal visual —— */
.provider-visual {
  margin-top: 2rem;
  border-radius: var(--zivo-radius-lg);
  border: 1px solid var(--zivo-border);
  background: var(--zivo-canvas-soft);
  padding: 2rem;
  text-align: center;
}

.provider-browser {
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--zivo-radius-md);
  border: 1px solid var(--zivo-border);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.provider-browser-bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  background: #e5e7eb;
}

.provider-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9ca3af;
}

.provider-browser-body {
  padding: 2rem 1.5rem;
  background: #fff;
  min-height: 160px;
  text-align: left;
}

.provider-browser-body h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.provider-browser-body p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--zivo-ink-muted);
}

.provider-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.provider-footnote {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--zivo-ink-muted);
  margin-top: 1rem;
}

/* —— Sticky conversion bar —— */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--zivo-border);
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 16px rgba(42, 53, 72, 0.06);
}

.sticky-cta.visible {
  display: block;
}

.sticky-cta-inner {
  max-width: var(--zivo-max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.sticky-cta-label {
  font-weight: 600;
  font-size: 0.9375rem;
}

.sticky-cta .store-badges {
  margin: 0;
}

.sticky-cta .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* —— Responsive —— */
@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-ctas,
  .pillar-chips,
  .trust-strip {
    justify-content: center;
  }

  .bento-card,
  .bento-card.large,
  .bento-card.medium,
  .bento-card.small {
    grid-column: span 12;
  }

  .platform-diagram {
    grid-template-columns: 1fr;
  }

  .platform-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .platform-messages {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 1rem;
  }

  .site-header-shell {
    padding: 0.5rem 0;
  }

  .site-header.is-scrolled {
    padding: 0.5rem 0.75rem;
  }

  .site-header.is-scrolled .site-header-shell {
    border-radius: 20px;
    padding: 0.5rem 0.75rem;
  }

  .site-header .header-end {
    gap: 0.5rem;
  }

  .site-header .header-nav {
    display: none;
  }

  .site-header .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--zivo-surface);
    border: 1px solid var(--zivo-border);
    border-radius: var(--zivo-radius-lg);
    padding: 1rem 1.25rem;
    gap: 0.75rem;
    box-shadow: 0 12px 32px rgba(42, 53, 72, 0.1);
  }

  .site-header-shell {
    position: relative;
  }

  .header-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .site-header .header-end {
    margin-left: 0;
  }

  .landing-section {
    padding: 3rem 1rem;
  }

  .hero-section {
    padding: 2rem 1rem 3rem;
  }

  body.landing-page {
    padding-bottom: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bento-card {
    transition: none;
  }
}
