/* ============================================
   ProbioLens — bespoke marketing styling
   Scoped to `.pl-page` (the marketing body wrapper from
   _layouts/app-probiolens.html). Teal-jade, microbiome-clean identity.
   Colors reuse the shared per-app theme tokens (see app-themes.css) so the
   body, app header, and nav stay in one palette. Loaded only on the ProbioLens
   marketing page.
   ============================================ */

/* Page wash — soft teal tints. */
.pl-page {
  --app-page-bg:
    linear-gradient(180deg, rgba(240, 250, 248, 0.98) 0%, rgba(226, 244, 241, 0.95) 28%, rgba(240, 250, 248, 0.96) 58%, rgba(240, 250, 248, 0.98) 100%);
}

/* Hero on a clean white surface so it reads distinctly from the tinted bands
   below it, matching the white-hero treatment every other app's marketing page
   uses. The shell is centered at a max width, so a full-bleed ::before paints
   the band edge to edge, including the left/right gutters. */
.pl-page .marketing-hero-shell {
  isolation: isolate;
}

.pl-page .marketing-hero-shell::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -72px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #FFFFFF;
  z-index: -1;
}

/* Pre-launch "Coming soon" hero treatment: the app icon stacked above a pill
   badge, both themed with the app's own accent tokens. This is the one static
   pre-launch marker on the page (the App Store badges handle the rest via
   subpage.js). */
.pl-page .marketing-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 32px auto 40px;
}

.pl-page .marketing-coming-soon img {
  border-radius: 28px;
  box-shadow: var(--app-card-shadow);
}

.pl-page .marketing-coming-soon-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--app-accent-soft);
  color: var(--app-accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pl-page h1:first-child {
  font-size: clamp(32px, 4.6vw, 36px);
  line-height: 1.12;
  margin-bottom: 18px;
  background: linear-gradient(120deg, var(--app-accent) 0%, var(--app-accent-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Lead subhead: the bold sentence immediately after the title. */
.pl-page h1:first-child + p {
  max-width: 640px;
  margin: 0 auto 24px;
  font-size: 18px;
  line-height: 1.65;
  text-align: center;
  color: var(--color-text-strong);
}

.pl-page h2 + ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-left: 0;
  list-style: none;
}

.pl-page h2 + ul li {
  margin-bottom: 0;
  padding: 22px 24px;
  border: 1px solid var(--app-accent-soft);
  border-radius: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FAF8 100%);
  box-shadow: 0 18px 42px rgba(15, 92, 86, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

/* Section headings get a hairline accent rule above them. */
.pl-page h2 {
  padding-top: 20px;
  border-top: 2px solid var(--app-accent-soft);
  color: var(--app-accent-strong);
}

.pl-page h3 {
  color: var(--app-accent-strong);
}

.pl-page strong {
  color: var(--app-accent-strong);
}

.pl-page ul li::marker {
  color: var(--app-accent);
}

.pl-page ol {
  padding-left: 0;
  list-style: none;
  counter-reset: pl-step;
}

.pl-page ol > li {
  position: relative;
  margin-bottom: 16px;
  padding: 18px 24px 18px 70px;
  counter-increment: pl-step;
  border: 1px solid var(--app-accent-soft);
  border-radius: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FAF8 100%);
  box-shadow: 0 18px 42px rgba(15, 92, 86, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.pl-page ol > li::before {
  content: counter(pl-step);
  position: absolute;
  inset-inline-start: 20px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--app-accent) 0%, var(--app-accent-strong) 100%);
  color: #FFFFFF;
  font-weight: 700;
}

/* Meta-note under the hero download badge: tighten space above, add room below
   before the first band. */
.pl-page .marketing-cta-row {
  gap: 4px;
  margin-bottom: 28px;
}

@media (hover: hover) and (pointer: fine) {
  .pl-page h2 + ul li:hover,
  .pl-page ol > li:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 92, 86, 0.16);
    box-shadow: 0 22px 48px rgba(15, 92, 86, 0.1);
  }
}

@media (max-width: 768px) {
  .pl-page h1:first-child {
    font-size: 28px;
  }

  .pl-page h2 + ul {
    grid-template-columns: 1fr;
  }

  .pl-page .marketing-cta-panel {
    clip-path: inset(-56px -100vw 0 -100vw);
  }
}

/* Shared marketing modules: clean teal surfaces, brighter teal chips. */
.pl-page .marketing-chip {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(226, 244, 241, 0.9) 100%);
}

.pl-page h2.marketing-section-title,
.pl-page .marketing-cta-panel h2 {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 0;
  border-bottom: 0;
}

.pl-page .marketing-cta-panel h2,
.pl-page .marketing-cta-panel h3,
.pl-page .marketing-cta-panel p {
  color: inherit;
}

.pl-page .marketing-stat-value {
  background: linear-gradient(135deg, var(--app-accent) 0%, var(--app-accent-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pl-page .marketing-band {
  background:
    radial-gradient(circle at 84% 16%, rgba(46, 155, 147, 0.16) 0%, transparent 24%),
    linear-gradient(180deg, rgba(226, 244, 241, 0.96) 0%, rgba(240, 250, 248, 0.94) 58%, rgba(255, 255, 255, 0.98) 100%);
}

/* "Who it serves" (plain band) on solid white to set it apart from the
   tinted .marketing-band sections. */
.pl-page .marketing-band--plain {
  background: #FFFFFF;
}

.pl-page .marketing-band::after {
  background: rgba(15, 92, 86, 0.08);
}

.pl-page .marketing-card,
.pl-page .marketing-step,
.pl-page .marketing-price-card,
.pl-page .marketing-story-card {
  border-color: rgba(15, 92, 86, 0.1);
}

.pl-page .marketing-card--featured {
  border-color: rgba(15, 92, 86, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.84) 100%);
}

.pl-page .marketing-price-card.is-featured {
  background: linear-gradient(160deg, rgba(46, 155, 147, 0.16) 0%, rgba(255, 255, 255, 0.96) 76%);
}

/* CTA box keeps a teal→deep-teal gradient; the area around it reads white via a
   large box-shadow (clipped so it does not bleed into the footer). */
.pl-page .marketing-cta-panel {
  background: linear-gradient(145deg, rgba(15, 92, 86, 0.98) 0%, rgba(46, 155, 147, 0.9) 100%);
  box-shadow:
    0 32px 88px rgba(3, 7, 18, 0.18),
    0 0 0 100vw #FFFFFF;
  clip-path: inset(-72px -100vw 0 -100vw);
}

/* CTA link pills: light fill with dark accent text, overriding the base
   white-on-dark style used on the gradient panel. */
.pl-page .marketing-cta-panel .marketing-inline-link {
  border-color: rgba(15, 92, 86, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--app-accent-strong);
  text-decoration: none;
}

.pl-page .marketing-cta-panel .marketing-inline-link:not(.marketing-inline-link--static):hover {
  border-color: rgba(15, 92, 86, 0.28);
  background: #FFFFFF;
}
