/*
 * The How It Works page (lib/native/pages/how-it-works.ts). Part 1: the old
 * page's own CSS for the classes kept, carried without !important; card
 * titles are h3 now (they were h5 and h6) and the "Zylo" tags are labels,
 * not "#" links, so those selectors name the new tags. Part 2: structure.
 * Measured sizes, spacing and type: gen/how-it-works.css, loaded after.
 */

/* ---- Part 1: carried from the old page ---- */
.scroll-wrapper { display: flex; align-items: center; justify-content: center; }
.image-stack { position: relative; width: 1200px; height: 600px; }
.scroll-img { position: absolute; top: 50%; transform: translateY(-50%); transition: transform 0.25s ease-out; border-radius: 12px; }
.scroll-middle { left: 50%; transform: translate(-50%, -50%); z-index: 1; width: 860px; top: 50%; margin-top: -20px; }
.scroll-left { left: 10px; z-index: 2; width: 175px; }
.scroll-right { right: -100px; z-index: 2; width: 420px; }
/* 1361 to 1440px the stack sits about 100px from the window's edge: hang out less, so the picture keeps the edge room. */
@media (min-width: 1361px) and (max-width: 1440px) { .scroll-right { right: -60px; } }
.churn-card-main { background-color: rgba(255,255,255,0.92); }
.churn-card-main h3 { font-size: 20px; font-weight: 600; }
.churn-card { text-align:center; }
.churn-card.new { text-align:left; }
.churn-card.new .z-week__tag { padding:5px 17px; color:#5B21B6; background:#EDE8FF; border-radius: 4px; font-weight: 400;font-size: 14px; margin-bottom:20px; display:inline-block; border:1px solid #5B21B6; line-height: 16.5px; border-radius: 100px; }
.churn-card.new img { display: block; float: right; margin-top: 5px; }
.churn-card-main { display: flex; flex-direction: column; justify-content: center; }
.churn-card-main.new { background:#fff; border:1px solid #D3D3D3; padding:35px; }
.churn-card.new p { font-size: 18px; }
.step-card-main.news { padding: 25px; background:#744BC4; color:#fff; }
.step-card-main.news.one { padding:25px 0px 0px 25px; }
.step-card-main.news.twos { padding:25px 25px 0px 25px; }
.step-card-main.news h3 { color:#fff; font-weight:700; line-height: 28px; }
@media screen and (max-width:767px) { .churn-card .main-text h3 { font-size: 18px; } }
@media screen and (max-width:767px) { .churn-card-main.new { padding: 25px; } }
@media screen and (max-width:767px) { .inner-dv { margin-bottom:15px; } }
@media (min-width:768px) and (max-width:1024px) { .churn-card-main.new { padding: 10px; } }
@media (min-width:1025px) and (max-width:1280px) { .churn-card-main.new { padding: 10px; } }
@media (min-width:1281px) and (max-width:1368px) { .churn-card-main.new { padding: 20px; } }
@media (min-width:1369px) and (max-width:1568px) { .churn-card-main.new { padding: 20px; } }
.churn-card-main { background-color: #F6F5F3; padding: 40px; border-radius: 10px; box-shadow: 2px 2px 1px 0 rgba(0, 0, 0, 0.10); }
.step-card-main { padding: 40px; border-radius: 10px; background-color: white; box-shadow: 2px 2px 1px 0 rgba(0, 0, 0, 0.10); position: relative; text-align: left; }
.churn-card-main { background-color: #F6F5F3; padding:32px; border-radius: 10px; box-shadow: 2px 2px 1px 0 rgba(0, 0, 0, 0.10); }
.main-text p { font-size: 16px; color: #0D0418; font-weight: 400;line-height: 28px; margin-bottom: 0px; }

/* ---- Part 2: structure ---- */
/* Shown above 1280px only (the old "hidden on tablet extra and below"), and the reverse. */
.z-page--how .z-nxl { display: none; }
@media (max-width: 1280px) {
  .z-page--how .z-xl { display: none; }
  .z-page--how .z-nxl { display: block; }
}
.z-page--how img { max-width: 100%; height: auto; }
.z-page--how .scroll-img { max-width: none; }

/* Dark sections. */
.z-hhero,
.z-agents,
.z-cover { color: #fff; }
.z-hhero__img img { display: block; width: 100%; }

/* A row of cards placed by measurement: one column, each card given its
 * measured width and left edge; which cards share a row is set per width
 * below, as the old page wrapped them. */
.z-cardrow {
  display: grid;
  grid-template-columns: 100%;
}
.z-cardrow > * { grid-column: 1; min-width: 0; }

/* Get started: five in a row above 1280px, two to a row from 768px, stacked below. */
@media (min-width: 1281px) {
  .z-hsteps__card { grid-row: 1; }
}
@media (min-width: 768px) and (max-width: 1280px) {
  .z-hsteps__card--1, .z-hsteps__card--2 { grid-row: 1; }
  .z-hsteps__card--3, .z-hsteps__card--4 { grid-row: 2; }
  .z-hsteps__card--5 { grid-row: 3; }
}
.z-hsteps__card .main-text img { display: inline-block; }
.z-hsteps__card--5 h3 { color: #fff; }

/* Weekly rhythm: four in a row from 770px, two to a row at 768 and 769px, stacked below. */
@media (min-width: 770px) {
  .z-week__card { grid-row: 1; }
}
@media (min-width: 768px) and (max-width: 769px) {
  .z-week__card--1, .z-week__card--2 { grid-row: 1; }
  .z-week__card--3, .z-week__card--4 { grid-row: 2; }
}
.z-week__track { display: grid; align-items: center; }
.z-week__track > * { grid-area: 1 / 1; }
.z-week__day {
  display: inline-block;
  justify-self: start;
}
/* The labels size to their words (the old buttons did); only their left edge is measured. */
.z-page--how .z-week__track .z-week__day { width: auto; white-space: nowrap; }
.z-week__line img { display: block; }
.z-week__card .inner-dv { display: block; width: 100%; float: left; }
.z-week__card .inner-dv img { float: left; display: block; }
.z-week__card--2 p { display: block; width: 100%; float: left; color: rgba(255, 255, 255, 0.92); }
.z-week__card--2 .main-text > img { margin-top: 20px; }
.z-week__card:not(.z-week__card--2) p { color: #6b50a0; }
.z-week__tag { display: inline-block; }

/* Coverage: side by side from 770px, bottoms lined up; stacked below. */
@media (min-width: 770px) {
  .z-cover__card { grid-row: 1; align-self: end; }
  /* Bottoms lined up, so each top follows from its height: no measured offset. */
  .z-page--how .z-cover__row .z-cover__card { margin-top: 0; }
}
/* Stacked (769px and below) the old cards sat in padded columns, lined up at
 * their bottoms; the gaps between them wandered by a few pixels with the
 * width. These are the typical gaps, read at 13 widths from 360 to 769px,
 * and the last column's padding under the last card. */
@media (max-width: 769px) {
  .z-page--how .z-cover__row .z-cover__card--1 { margin-top: 11px; }
  .z-page--how .z-cover__row .z-cover__card--2 { margin-top: 19px; }
  .z-page--how .z-cover__row .z-cover__card--3 { margin-top: 21px; }
  .z-page--how .z-cover__row .z-cover__card--4 { margin-top: 29px; }
  .z-page--how .z-cover__row { padding-bottom: 21px; }
}
@media (max-width: 390px) {
  .z-page--how .z-cover__row .z-cover__card--1 { margin-top: 5px; }
  .z-page--how .z-cover__row .z-cover__card--2 { margin-top: 16px; }
  .z-page--how .z-cover__row .z-cover__card--3 { margin-top: 19px; }
  .z-page--how .z-cover__row .z-cover__card--4 { margin-top: 21px; }
  .z-page--how .z-cover__row { padding-bottom: 5px; }
}
.z-cover__card img { display: block; }
/* Card 1 has no right padding so its picture runs to the edge; give the
 * heading the same 25px gap on the right as on the left. */
.z-page--how .z-cover__card--1 .step-text { padding-right: 25px; }
/* Just past 770px the four cards are at their narrowest; at 15px the longest
 * words ("entire week") ran into the card edge. */
@media (min-width: 770px) and (max-width: 860px) {
  .z-page--how .z-cover__card .step-text { font-size: 13px; line-height: 22px; }
}

/* Agents: the rule under each name. */
.z-agent__rule { border: 0; margin: 0; }
.z-agent__arrow { display: block; }
.z-agent__shot img { display: block; width: 100%; }

/* The steps line is its own box, as the old image widget's was: inline, its
 * line box set it 3-4px lower and the page below it 5px lower (1281px up). */
.z-hsteps__line img { display: block; }

/* Step 1's scan box: the real box in the card, the same as on every page
 * (owner, 2026-11-06), in place of the drawn "your business name" field. */
.z-hsteps__picker { margin-top: 16px; width: 100%; text-align: left; }
/* The card is narrow (about 160px of box from 768px, where the five cards
 * share one row, and 190px on a 320px phone): the button's words may take
 * two lines, inside the box. */
.z-hsteps__picker [data-zylo-picker] .zp .zp-go { white-space: normal; line-height: 1.25; min-width: 0; flex-shrink: 1; }
@media (min-width: 768px) {
  .z-hsteps__picker [data-zylo-picker] .zp .zp-go { font-size: 14px; padding: 10px 8px; }
}
