/*
 * The Marketing Examples page (lib/native/pages/marketing-examples.ts).
 * Part 1: the old page's own CSS for the classes kept, carried without
 * !important; the business names' goal line is a span in the tab button
 * now (it was an h5), and the cards' hidden starting state is set only
 * while the tabs script animates them (.z-rise). Part 2: structure.
 * Measured sizes, spacing and type: gen/marketing-examples.css, loaded after.
 */

/* ---- Part 1: carried from the old page ---- */
.scroll-wrapper { display: flex; align-items: center; justify-content: center; position: relative; }
.image-stack { position: relative; width: 1200px; height: 600px; }
.scroll-img { position: absolute; top: 55%; transform: translateY(-50%); transition: transform 0.25s ease-out; border-radius: 12px; }
.scroll-middle { left: 55%; transform: translate(-50%, -50%); z-index: 1; width: 500px; top: 60%; }
.scroll-left { left: 0px; z-index: 2; width: 590px; }
.scroll-right { right: -50px; z-index: 2; width: 430px; }

.containers { display:flex; gap:40px; padding:20px; }
.left-tabs { width:380px; }
.left-card { background: #fff; padding:25px; border-radius:18px; margin-bottom:20px; cursor:pointer; transition:all 0.3s ease; border:1px solid #EDE8FF; }
.left-card:hover { transform:translateY(-4px); box-shadow:0 12px 25px rgba(0,0,0,0.06); border:1px solid #5B21B6; }
.left-card.active { background: #EDE8FF; box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.10); border:1px solid #5B21B6; }
.small-title { font-size:16px; font-weight:600; color:#5B21B6; margin-bottom:8px; display:block; }
.left-card .z-ex__goal { font-size:20px; font-weight:500; color:#202020; line-height:1.5; margin-bottom:15px; }
.card-link { text-align: right; }
.right-content { flex:1; background: #1E0A3C; padding:0px; border-radius: 10px; border: 1px solid #DCDCDC; max-height: 830px; overflow: auto; }
.content-box { display:none; }
.content-box.active { display:block; }
.top-tabs { background:#1E0A3C; border-bottom: 1px solid rgba(255, 255, 255, 0.09); padding:12px 40px; border-radius:10px 10px 0px 0px; position: sticky; top: 0; z-index: 9; }
.top-tabs button { padding:8px 20px; border:none; background:rgba(255, 255, 255, 0.05); border-radius:5px; cursor:pointer; transition:0.3s; font-weight:700; font-size: 12px; color: rgba(255, 255, 255, 0.55); text-transform: capitalize; }
.top-tabs button.active { background:#5B21B6; color:#fff; }
.content-inner-sec { padding:35px; }
.inner-content { display:none; }
.inner-content.active { display:block; }
.grid { display:grid; gap:20px; }
.grid.cols-3 { grid-template-columns:repeat(3,1fr); }
.grid.cols-2 { grid-template-columns:repeat(2,1fr); padding: 0 70px; }
.grid.cols-1 { grid-template-columns:1fr; padding: 0 20px; }
.card img { width:100%; border-radius:5px; display:block; }
.card.z-rise { opacity:0; transform:translateY(30px); transition:all 0.6s ease; }
.card.z-rise.show { opacity:1; transform:translateY(0); }
/* The logo link, not only its image, hides where the old image hid, so no
 * nameless, invisible link is left in the tab order (deep QA round 1). */
.in-imgs { float: right; position: relative; top: 3px; width: 95px; }
.in-imgs img { display: block; width: 100%; height: auto; }
@media(max-width:768px) { .grid { grid-template-columns:1fr; max-width: 350px; margin: 0 auto; } }
@media(max-width:768px) { .top-tabs { flex-wrap:wrap;gap: 5px;width: auto;margin-bottom: 5px; padding: 10px; } }
@media(max-width:768px) { .top-tabs button { flex:1; text-align:center; padding:9px 6px; margin: 4px 0px;width: 49%; } }
@media(max-width:768px) { .right-content { padding:0px; max-height: inherit; margin:0px; } }
@media(max-width:768px) { .grid.cols-1 { grid-template-columns: 1fr; padding: 0 30px; } }
@media(max-width:768px) { .grid.cols-2 { grid-template-columns: 1fr; padding: 0 30px; } }
@media(max-width:768px) { .grid.cols-3 { grid-template-columns: 1fr; padding: 0 30px; } }
@media(max-width:768px) { .left-card { min-width: auto; margin-bottom: 8px;padding: 10px; border-radius: 10px; background:#fff; } }
@media(max-width:768px) { .left-card .z-ex__goal { display:none; } }
@media(max-width:768px) { .containers { flex-direction:column; padding:0px; gap: 10px; } }
@media(max-width:768px) { .left-tabs { width:100%;display: inline; gap:10px; overflow-x: scroll; padding: 0px 5px 5px 5px; } }
@media(max-width:768px) { .in-imgs { display:none; } }
@media(max-width:768px) { .content-inner-sec { padding: 15px; } }
@media(max-width:768px) { .grid.cols-3 { padding:0px; } }
@media(max-width:768px) { .grid.cols-2 { padding:0px; } }
@media(max-width:768px) { .grid.cols-1 { padding:0px; max-width: inherit; } }
@media(max-width:768px) { .card-link { display:none; } }
@media(max-width:768px) { .small-title { margin-bottom:0px; color:#505050; font-weight:400; } }
@media(max-width:768px) { .active .small-title { font-weight:500; } }
@media(max-width:768px) { .left-card.active .small-title { color: #744BC4; font-weight: 600; } }
@media(max-width:768px) { .left-card:hover { background: linear-gradient(180deg, #FFF 0%, #E2D4FC 100%); } }
@media (min-width:769px) and (max-width:1024px) { .left-tabs { width: 220px; } }
@media (min-width:769px) and (max-width:1024px) { .left-card { padding: 15px; } }
@media (min-width:769px) and (max-width:1024px) { .left-card .z-ex__goal { margin-bottom: 10px; } }
@media (min-width:769px) and (max-width:1024px) { .right-content { padding: 20px; max-height: inherit; margin: 5px; } }
@media (min-width:769px) and (max-width:1024px) { .grid.cols-1 { grid-template-columns:repeat(1,1fr); padding: 0 20px; } }
@media (min-width:769px) and (max-width:1024px) { .grid.cols-2 { grid-template-columns:repeat(2,1fr); padding: 0 20px; } }
@media (min-width:769px) and (max-width:1024px) { .grid.cols-3 { grid-template-columns:repeat(2,1fr); padding: 0 20px; } }
@media (min-width:769px) and (max-width:1024px) { .top-tabs { flex-wrap:wrap;gap: 10px;width: auto;margin-bottom: 0px; padding: 10px 20px; } }
@media (min-width:769px) and (max-width:1024px) { .in-imgs { display:none; } }
@media (min-width:769px) and (max-width:1024px) { .right-content { padding: 0px; } }
@media (min-width:769px) and (max-width:1024px) { .content-inner-sec { padding: 15px; } }
@media (min-width:769px) and (max-width:1024px) { .containers { gap: 20px; padding: 0px; } }
@media (min-width:769px) and (max-width:1024px) { .top-tabs button { margin: 3px 0px; padding: 10px 12px; width: 48%; } }
@media (min-width:1025px) and (max-width:1280px) { .left-tabs { width: 250px; } }
@media (min-width:1025px) and (max-width:1280px) { .left-card { padding: 15px; } }
@media (min-width:1025px) and (max-width:1280px) { .left-card .z-ex__goal { margin-bottom: 10px; } }
@media (min-width:1025px) and (max-width:1280px) { .right-content { padding: 20px; max-height: inherit; margin: 5px; } }
@media (min-width:1025px) and (max-width:1280px) { .grid.cols-1 { grid-template-columns:repeat(1,1fr); padding: 0 20px; } }
@media (min-width:1025px) and (max-width:1280px) { .grid.cols-2 { grid-template-columns:repeat(2,1fr); padding: 0 20px; } }
@media (min-width:1025px) and (max-width:1280px) { .grid.cols-3 { grid-template-columns:repeat(2,1fr); padding: 0 20px; } }
@media (min-width:1025px) and (max-width:1280px) { .top-tabs { flex-wrap:wrap;gap: 10px;width: auto;margin-bottom:0px; padding: 12px; } }
@media (min-width:1025px) and (max-width:1280px) { .in-imgs { display:none; } }
@media (min-width:1025px) and (max-width:1280px) { .right-content { padding: 0px; } }
@media (min-width:1025px) and (max-width:1280px) { .content-inner-sec { padding: 15px; } }
@media (min-width:1025px) and (max-width:1280px) { .containers { gap: 20px; padding: 0px; } }
@media (min-width:1281px) and (max-width:1366px) { .left-tabs { width: 270px; } }
@media (min-width:1281px) and (max-width:1366px) { .left-card { padding: 15px; } }
@media (min-width:1281px) and (max-width:1366px) { .left-card .z-ex__goal { margin-bottom: 10px; } }
@media (min-width:1281px) and (max-width:1366px) { .right-content { padding: 20px; max-height: inherit; margin: 5px; } }
@media (min-width:1281px) and (max-width:1366px) { .grid.cols-1 { grid-template-columns:repeat(1,1fr); padding: 0 20px; } }
@media (min-width:1281px) and (max-width:1366px) { .grid.cols-2 { grid-template-columns:repeat(2,1fr); padding: 0 20px; } }
@media (min-width:1281px) and (max-width:1366px) { .grid.cols-3 { grid-template-columns:repeat(2,1fr); padding: 0 20px; } }
@media (min-width:1281px) and (max-width:1366px) { .top-tabs { flex-wrap:wrap;gap: 10px;width: auto;margin-bottom: 20px; } }
@media (min-width:1281px) and (max-width:1366px) { .in-imgs { display:none; } }
@media (min-width:1281px) and (max-width:1366px) { .right-content { padding: 0px; } }
@media (min-width:1281px) and (max-width:1366px) { .content-inner-sec { padding: 15px; } }

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

/* Dark sections. */
.z-ehero,
.z-egoals { color: #fff; }

/* Hero buttons: Elementor's grow on hover. */
/* The old buttons sat in the 30px-inset column, so they stack below 534px
 * (30px apart, 20px at 390px and below) and sit side by side, 20px apart, above. */
.z-ehero__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 20px; padding: 0 30px; }
@media (max-width: 390px) { .z-ehero__buttons { row-gap: 20px; } }
.z-ehero__btn { display: inline-block; text-decoration: none; transition: transform 0.3s; }
/* Both hero buttons in the site font (the old "How Zylo works" alone was set
 * in Inter, a one-off). */
.z-ehero__btn { font-family: Geologica, sans-serif; }
.z-ehero__btn:hover { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .z-ehero__btn { transition: none; } }

/* The business tabs are buttons now (they were divs): no button look of their own. */
.z-page--examples .left-card {
  display: block;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
}
.z-page--examples .left-card .z-ex__goal { display: block; }
.z-page--examples .card-link { display: block; }
.z-page--examples .card-link img { display: inline-block; }
@media (max-width: 768px) {
  .z-page--examples .left-card .z-ex__goal,
  .z-page--examples .card-link { display: none; }
}
/* The channel tab list wraps the buttons without a box of its own, so they
 * flow in the bar as before, beside the logo. */
.z-ex__channels { display: contents; }
.z-page--examples .top-tabs button { font-family: inherit; line-height: inherit; }
@media (prefers-reduced-motion: reduce) {
  .z-page--examples .left-card,
  .z-page--examples .top-tabs button { transition: none; }
  .z-page--examples .left-card:hover { transform: none; }
}

/* Goals: three cards side by side from 770px, stacked below. Side by side
 * they share the tallest card's height (Element Pack's height match); stacked,
 * each keeps its own, as on the old page. */
.z-egoals__col { min-width: 0; }
@media (min-width: 770px) {
  .z-page--examples .z-egoals__row { align-items: stretch; }
  .z-egoals__col { display: flex; flex-direction: column; }
  .z-egoals__card { flex: 1 1 auto; }
}

/* The scan button reads "Build your marketing" (owner, 2026-11-03), longer than the old
 * "Start free trial" its measured 235px (phones 231x60px) was cut for: as wide as its words,
 * never narrower than before, and on a phone too narrow for one line, two lines that are not clipped. */
.z-page--examples .z-ehero__btn.z-ehero__btn--trial { width: auto; min-width: 235px; white-space: nowrap; }
@media (max-width: 767px) { .z-page--examples .z-ehero__btn.z-ehero__btn--trial { min-width: 231px; max-width: 100%; height: auto; min-height: 60px; padding: 16px 20px; white-space: normal; } }

/* The "Salon" film, after the examples (owner, 2026-11-06), laid out like
 * the pricing page's film: the player (film.css) and the film's three
 * questions answered for people who never press play; the page's closing
 * scan box follows, so no button of its own. */
/* It sits inside the examples' section (one background), whose own spacing
 * closes it below. Spacing (owner, 2026-11-06): a modest gap after the
 * examples, the heading and line close to the video, and more room under
 * the video than over it, since its shadow takes some of that room. */
.z-efilm { padding: clamp(32px, 4vw, 56px) 0 0; }
.z-efilm__wrap { width: min(1120px, 100% - 2 * var(--z-edge)); margin: 0 auto; }
.z-efilm__h2 { text-align: center; margin: 0 0 12px; }
.z-efilm__lead { font-size: 17px; line-height: 1.6; color: var(--z-text); text-align: center; max-width: 40em; margin: 0 auto 28px; }
.z-efilm__lines { list-style: none; margin: 44px auto 0; padding: 0; max-width: 1000px; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .z-efilm__lines { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.z-efilm__line { background: #fff; border-radius: 12px; padding: 18px 20px; margin: 0; }
.z-efilm__asked { font-size: 16px; line-height: 1.45; font-style: italic; color: #5d536d; margin: 0 0 8px; }
.z-efilm__answer { font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--z-ink); margin: 0; }

/* Phones: smaller hero buttons, stacked 12px apart and the same width
 * (post-migration audit item 3, 2026-11-06: "reduce the button size in
 * mobile view"). They were 60px tall with a wide gap from the old theme. */
@media (max-width: 767px) {
  .z-page--examples .z-ehero__buttons { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .z-page--examples .z-ehero__btn.z-ehero__btn--trial,
  .z-page--examples .z-ehero__btn.z-ehero__btn--how { width: 240px; max-width: 100%; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 12px 18px; font-size: 14px; font-weight: 700; line-height: 20px; white-space: normal; }
}
