/* =============================================================
   Zoomi · how-it-works.css — page-specific
   Asset-driven feature showcase: alternating split rows pairing
   short copy with an app screenshot on a soft accent panel,
   plus a final CTA. Self-contained + token-driven only.
   ============================================================= */

.hiw-hero {
  padding: var(--s-3xl) var(--page-gutter) var(--s-2xl);
  text-align: center;
}
.hiw-hero__eyebrow { margin-bottom: var(--s-md); }
.hiw-hero__h1 {
  font-family: var(--font-heading);
  font-size: var(--t-display-sm);
  font-weight: 500;
  letter-spacing: var(--track-heading);
  line-height: var(--lh-tight);
  margin: 0 auto var(--s-md);
  color: var(--zoomi-ink);
  max-width: 22ch;
}
.hiw-hero__sub {
  font-size: var(--t-body-lg);
  color: var(--zoomi-body);
  margin: 0 auto;
  max-width: 56ch;
}

/* =============================================================
   Feature showcase — alternating split rows.
   Copy column + screenshot on a soft accent panel.
   ============================================================= */
.hiw-feature {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--s-2xl) var(--page-gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3xl);
  align-items: center;
}
.hiw-feature--reverse .hiw-feature__copy  { order: 2; }
.hiw-feature--reverse .hiw-feature__media { order: 1; }

.hiw-feature__eyebrow { margin-bottom: var(--s-sm); }
.hiw-feature__title {
  font-family: var(--font-heading);
  font-size: var(--t-headline-lg);
  font-weight: 600;
  letter-spacing: var(--track-heading);
  line-height: var(--lh-snug);
  color: var(--zoomi-ink);
  margin: 0 0 var(--s-md);
}
.hiw-feature__body {
  font-size: var(--t-body-lg);
  color: var(--zoomi-body);
  line-height: var(--lh-body);
  margin: 0 0 var(--s-lg);
  max-width: 46ch;
}
.hiw-feature__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}
.hiw-feature__bullets li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: var(--s-sm);
  font-size: var(--t-body-md);
  color: var(--zoomi-ink);
  line-height: var(--lh-body);
}
.hiw-feature__bullets li::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: var(--r-pill);
  background-color: var(--accent-mint-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

/* Coloured screenshot panel + self-contained phone frame. */
.hiw-feature__media {
  border-radius: var(--r-card);
  padding: var(--s-2xl) var(--s-2xl) 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  min-height: 360px;
}
.hiw-feature__media--peach     { background: var(--accent-peach-soft); }
.hiw-feature__media--buttercup { background: var(--accent-buttercup-soft); }
.hiw-feature__media--blossom   { background: var(--accent-blossom-soft); }
.hiw-feature__media--mint      { background: var(--accent-mint-soft); }
.hiw-feature__media--sky       { background: var(--accent-sky-soft); }

.hiw-phone {
  width: 220px;
  max-width: 70%;
  background: #1a1a1a;
  border-radius: 32px 32px 0 0;
  padding: 6px 6px 0;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 16px 32px -12px rgba(0, 0, 0, 0.35);
}
.hiw-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px 26px 0 0;
}

/* =============================================================
   Final CTA — same flat-ink panel pattern as the FAQ page.
   ============================================================= */
.hiw-cta {
  background: var(--zoomi-ink);
  color: var(--zoomi-cta-text);
  padding: var(--s-4xl) var(--page-gutter);
  text-align: center;
}
.hiw-cta__inner { max-width: 720px; margin: 0 auto; }
.hiw-cta .eyebrow { color: rgba(255, 255, 255, 0.72); }
.hiw-cta__h {
  font-family: var(--font-heading);
  font-size: var(--t-display-sm);
  font-weight: 500;
  letter-spacing: var(--track-heading);
  line-height: var(--lh-tight);
  color: var(--zoomi-cta-text);
  margin: var(--s-md) 0;
}
.hiw-cta__sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--t-body-lg);
  margin: 0 0 var(--s-xl);
}
.hiw-cta__actions {
  display: flex;
  gap: var(--s-md);
  justify-content: center;
  flex-wrap: wrap;
}
.hiw-cta .zoomi-btn--ghost {
  background: rgba(255, 255, 255, 0.10);
  color: var(--zoomi-cta-text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.hiw-cta .zoomi-btn--ghost:hover { background: rgba(255, 255, 255, 0.18); }

@media (max-width: 880px) {
  .hiw-feature {
    grid-template-columns: 1fr;
    gap: var(--s-xl);
    max-width: 520px;
  }
  /* Stack copy above the screenshot regardless of row direction. */
  .hiw-feature__copy,
  .hiw-feature--reverse .hiw-feature__copy  { order: 1; }
  .hiw-feature__media,
  .hiw-feature--reverse .hiw-feature__media { order: 2; }
  .hiw-feature__media { min-height: 0; padding-top: var(--s-xl); }
  .hiw-cta__h { font-size: var(--t-headline-lg); }
}
@media (max-width: 520px) {
  .hiw-hero__h1 { font-size: var(--t-headline-lg); }
  .hiw-feature__title { font-size: var(--t-headline-md); }
}
