/*
 * 2026-11-30: the Z Builder page (/z-builder). Rides on public-pass.css (the
 * light system) and adds only what this page draws: the editor on the first
 * screen, the design tiles, the WordPress comparison and the plan chips.
 * Phone first (360 wide), widened at 600 and 900. No gradients, no washes
 * behind words; white words on colored fills; tap targets 44px or more.
 * Every class starts with zbp- so nothing else on the site is touched.
 */

/* ---- The first screen ---------------------------------------------------- */

.zbp-hero .zp-kicker { margin-bottom: 14px; }
.zbp-hero .zp-under-tap a { font-weight: 750; }
.zbp-stage { position: relative; display: flex; justify-content: center; padding: 6px 0 0; }

.zbp-editor {
    width: 100%;
    max-width: 520px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--zp-line);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 30px 60px -18px rgba(15, 23, 42, 0.28), 0 18px 36px -20px rgba(1, 170, 222, 0.35);
    overflow: hidden;
    text-align: left;
}
.zbp-editor__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 12px;
    background: #0f172a;
}
.zbp-dot { width: 9px; height: 9px; border-radius: 999px; background: #334155; flex: 0 0 auto; }
.zbp-editor__addr {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #1e293b;
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.zbp-editor__publish {
    flex: 0 0 auto;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--zp-fill);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
}
.zbp-editor__body { display: grid; grid-template-columns: 44px 1fr; min-height: 250px; }
.zbp-rail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; background: #f4f8fb; border-right: 1px solid var(--zp-line); }
.zbp-rail__item {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5b6b80;
    font-size: 0.95rem;
    background: #ffffff;
    border: 1px solid var(--zp-line);
}
.zbp-rail__item.is-on { background: var(--zp-fill); border-color: var(--zp-fill); color: #ffffff; }

.zbp-canvas { padding: 12px; background: #ffffff; display: grid; gap: 10px; align-content: start; }
.zbp-site__nav { display: flex; align-items: center; gap: 8px; }
.zbp-site__nav > span { height: 6px; width: 30px; border-radius: 999px; background: #e3eaf0; }
.zbp-site__nav > span.zbp-site__logo { width: 22px; height: 22px; border-radius: 7px; background: #ca4d1b; margin-right: auto; }
.zbp-site__hero {
    position: relative;
    display: grid;
    gap: 8px;
    justify-items: start;
    padding: 18px 16px 16px;
    border-radius: 12px;
    background: #f4ecdf;
}
.zbp-site__hero.is-picked { outline: 2px solid var(--zp-blue); outline-offset: 2px; }
.zbp-site__tag {
    position: absolute;
    top: -12px;
    left: 10px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--zp-fill);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.zbp-site__h { font-size: 1.15rem; font-weight: 850; letter-spacing: -0.03em; line-height: 1.1; color: #3b1d0e; }
.zbp-site__line { display: block; width: 86%; height: 6px; border-radius: 999px; background: #e2d3bd; }
.zbp-site__line--short { width: 58%; }
.zbp-site__btn {
    margin-top: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #9f3a12;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
}
.zbp-cursor {
    position: absolute;
    right: 18%;
    bottom: 12px;
    color: #0f172a;
    font-size: 1.25rem;
    filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.3));
    transform: rotate(-8deg);
}
.zbp-site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.zbp-site__cards > span { height: 44px; border-radius: 10px; background: #f4f8fb; border: 1px solid var(--zp-line); }

/* ---- The design tiles ---------------------------------------------------- */

/* On a phone the tiles are a row you swipe, the next one peeking in, so six designs
   never make a page of their own. From 600 wide they are a grid. */
.zbp-tiles {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 14px;
    margin: 0 calc(var(--zp-gutter) * -1);
    padding: 4px var(--zp-gutter) 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--zp-gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.zbp-tiles > .zbp-tile { scroll-snap-align: start; }
.zbp-tile {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--zp-line);
    border-radius: var(--zp-radius);
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.zbp-tile:hover, .zbp-tile:focus-visible { transform: translateY(-2px); box-shadow: var(--zp-shadow); }
.zbp-tile:focus-visible { outline: 3px solid var(--zp-blue); outline-offset: 2px; }
.zbp-tile__body { display: flex; flex-direction: column; padding: 16px 20px 18px; }
.zbp-tile__name { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; color: var(--zp-ink); }
.zbp-tile__line { margin-top: 4px; color: var(--zp-muted); font-size: 0.98rem; line-height: 1.45; }
.zbp-tile__go { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; color: var(--zp-blue-ink); font-weight: 750; font-size: 0.98rem; }

/* The drawn mini site: a nav line and one motif in the design's own colors. */
.zbp-art {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--zbp-bg);
    overflow: hidden;
    border-bottom: 1px solid var(--zp-line);
}
.zbp-art__nav { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; gap: 8px; align-items: center; }
.zbp-art__nav > span { height: 6px; width: 28px; border-radius: 999px; background: var(--zbp-p); opacity: 0.85; }
.zbp-art__nav > span:first-child { width: 18px; height: 18px; border-radius: 6px; background: var(--zbp-a); opacity: 1; margin-right: auto; }
.zbp-art__m { position: absolute; inset: 40px 0 0 0; display: block; }
.zbp-art__m > span { position: absolute; display: block; }

/* Game shop: a board with a track of spaces and a die. */
.zbp-art--board .zbp-art__m > span:nth-child(1) { left: 50%; top: 50%; width: 62%; aspect-ratio: 1.7; transform: translate(-50%, -55%); border: 10px dashed var(--zbp-a); border-radius: 10px; background: var(--zbp-p); }
.zbp-art--board .zbp-art__m > span:nth-child(2) { left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, -62%) rotate(12deg); border-radius: 8px; background: #ffffff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35); }
.zbp-art--board .zbp-art__m > span:nth-child(3) { left: 50%; top: 50%; width: 7px; height: 7px; transform: translate(-50%, -260%); border-radius: 999px; background: var(--zbp-bg); }
.zbp-art--board .zbp-art__m > span:nth-child(4) { left: 50%; top: 50%; width: 7px; height: 7px; transform: translate(-50%, 0); border-radius: 999px; background: var(--zbp-bg); }
.zbp-art--board .zbp-art__m > span:nth-child(5) { left: 12%; bottom: 14%; width: 16px; height: 22px; border-radius: 8px 8px 3px 3px; background: #ffffff; }
.zbp-art--board .zbp-art__m > span:nth-child(6) { right: 12%; bottom: 14%; width: 16px; height: 22px; border-radius: 8px 8px 3px 3px; background: var(--zbp-a); }

/* Donut shop: a glazed donut that is a clock. */
.zbp-art--donut .zbp-art__m > span:nth-child(1) { left: 50%; top: 46%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 999px; border: 22px solid var(--zbp-p); background: var(--zbp-bg); box-shadow: 0 0 0 6px #e8b98a; }
.zbp-art--donut .zbp-art__m > span:nth-child(2) { left: 50%; top: 46%; width: 4px; height: 18%; transform: translate(-50%, -100%); border-radius: 4px; background: #ffffff; }
.zbp-art--donut .zbp-art__m > span:nth-child(3) { left: 50%; top: 46%; width: 4px; height: 12%; transform-origin: 50% 0; transform: translate(-50%, 0) rotate(-120deg); border-radius: 4px; background: #ffffff; }
.zbp-art--donut .zbp-art__m > span:nth-child(4) { left: 38%; top: 24%; width: 10px; height: 4px; border-radius: 4px; background: #ffffff; transform: rotate(30deg); }
.zbp-art--donut .zbp-art__m > span:nth-child(5) { right: 37%; top: 30%; width: 10px; height: 4px; border-radius: 4px; background: var(--zbp-a); transform: rotate(-40deg); }
.zbp-art--donut .zbp-art__m > span:nth-child(6) { left: 41%; bottom: 30%; width: 10px; height: 4px; border-radius: 4px; background: #f6d55c; transform: rotate(70deg); }

/* Auto body shop: a blueprint car in white line with red pencil marks. */
.zbp-art--blueprint { background-color: var(--zbp-bg); }
.zbp-art--blueprint .zbp-art__m { outline: 1px solid rgba(255, 255, 255, 0.10); outline-offset: -12px; }
.zbp-art--blueprint .zbp-art__m > span:nth-child(1) { left: 18%; right: 18%; top: 36%; height: 26%; border: 2px solid #ffffff; border-radius: 30px 46px 10px 10px; }
.zbp-art--blueprint .zbp-art__m > span:nth-child(2) { left: 32%; right: 36%; top: 20%; height: 20%; border: 2px solid #ffffff; border-bottom: 0; border-radius: 26px 30px 0 0; }
.zbp-art--blueprint .zbp-art__m > span:nth-child(3) { left: 26%; top: 54%; width: 34px; height: 34px; border: 2px solid #ffffff; border-radius: 999px; background: var(--zbp-bg); }
.zbp-art--blueprint .zbp-art__m > span:nth-child(4) { right: 26%; top: 54%; width: 34px; height: 34px; border: 2px solid #ffffff; border-radius: 999px; background: var(--zbp-bg); }
.zbp-art--blueprint .zbp-art__m > span:nth-child(5) { right: 20%; top: 30%; width: 38px; height: 26px; border: 3px solid var(--zbp-a); border-radius: 999px; transform: rotate(-12deg); }
.zbp-art--blueprint .zbp-art__m > span:nth-child(6) { left: 14%; bottom: 12%; width: 40%; height: 2px; background: var(--zbp-p); box-shadow: 0 -8px 0 rgba(255, 255, 255, 0.25); }

/* Bowling alley: the overhead scoreboard. */
.zbp-art--score .zbp-art__m > span { top: 26%; width: 13%; aspect-ratio: 1; border: 3px solid var(--zbp-p); border-radius: 6px; background: rgba(255, 255, 255, 0.04); }
.zbp-art--score .zbp-art__m > span:nth-child(1) { left: 8%; }
.zbp-art--score .zbp-art__m > span:nth-child(2) { left: 22.5%; background: var(--zbp-a); border-color: var(--zbp-a); }
.zbp-art--score .zbp-art__m > span:nth-child(3) { left: 37%; }
.zbp-art--score .zbp-art__m > span:nth-child(4) { left: 51.5%; }
.zbp-art--score .zbp-art__m > span:nth-child(5) { left: 66%; background: var(--zbp-a); border-color: var(--zbp-a); }
.zbp-art--score .zbp-art__m > span:nth-child(6) { left: 80.5%; }
.zbp-art--score .zbp-art__m::after { content: ''; position: absolute; left: 8%; right: 6.5%; bottom: 20%; height: 10px; border-radius: 999px; background: var(--zbp-p); opacity: 0.6; }

/* Print shop: a press sheet with crop marks and a color bar. */
.zbp-art--press .zbp-art__m > span:nth-child(1) { left: 22%; right: 22%; top: 12%; bottom: 26%; border: 1.5px dashed var(--zbp-p); border-radius: 2px; }
.zbp-art--press .zbp-art__m > span:nth-child(2) { left: 14%; top: 6%; width: 18px; height: 18px; border-left: 2px solid #0f172a; border-top: 2px solid #0f172a; }
.zbp-art--press .zbp-art__m > span:nth-child(3) { right: 14%; top: 6%; width: 18px; height: 18px; border-right: 2px solid #0f172a; border-top: 2px solid #0f172a; }
.zbp-art--press .zbp-art__m > span:nth-child(4) { left: 30%; top: 28%; width: 30%; height: 12px; border-radius: 999px; background: #0f172a; }
.zbp-art--press .zbp-art__m > span:nth-child(5) { left: 30%; top: 46%; width: 40%; height: 7px; border-radius: 999px; background: #cbd5e1; }
.zbp-art--press .zbp-art__m > span:nth-child(6) { left: 50%; bottom: 8%; width: 200px; height: 14px; margin-left: -100px; border-radius: 3px; background: #fff200; border-left: 50px solid #00aeef; border-right: 50px solid #0f172a; }
.zbp-art--press .zbp-art__m > span:nth-child(6)::after { content: ''; position: absolute; left: 0; top: 0; width: 50px; height: 100%; background: var(--zbp-a); }

/* Bakery: a scored loaf on a board. */
.zbp-art--loaf .zbp-art__m > span:nth-child(1) { left: 50%; top: 44%; width: 56%; height: 44%; transform: translate(-50%, -50%); border-radius: 50% 50% 44% 44% / 66% 66% 34% 34%; background: var(--zbp-a); box-shadow: inset 0 -12px 0 rgba(0, 0, 0, 0.10); }
.zbp-art--loaf .zbp-art__m > span:nth-child(2) { left: 36%; top: 34%; width: 12%; height: 5px; border-radius: 5px; background: var(--zbp-p); transform: rotate(-24deg); }
.zbp-art--loaf .zbp-art__m > span:nth-child(3) { left: 46%; top: 32%; width: 12%; height: 5px; border-radius: 5px; background: var(--zbp-p); transform: rotate(-24deg); }
.zbp-art--loaf .zbp-art__m > span:nth-child(4) { left: 56%; top: 34%; width: 12%; height: 5px; border-radius: 5px; background: var(--zbp-p); transform: rotate(-24deg); }
.zbp-art--loaf .zbp-art__m > span:nth-child(5) { left: 16%; right: 16%; bottom: 14%; height: 12px; border-radius: 999px; background: var(--zbp-p); }
.zbp-art--loaf .zbp-art__m > span:nth-child(6) { right: 10%; top: 10%; width: 22px; height: 22px; border-radius: 999px; background: #ffffff; box-shadow: 0 0 0 4px var(--zbp-a); }

/* ---- Bringing an old site over ------------------------------------------- */

.zbp-promise {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
    padding: 16px 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1.5px solid var(--zp-blue);
    color: var(--zp-ink);
    font-weight: 650;
    font-size: 1.02rem;
    line-height: 1.5;
}
.zbp-promise i { color: var(--zp-blue-ink); font-size: 1.3rem; line-height: 1.2; flex: 0 0 auto; }
.zbp-pills { margin-top: 24px; }

/* ---- The WordPress comparison -------------------------------------------- */

.zbp-vs { max-width: 980px; margin: 0 auto; display: grid; gap: 12px; }
.zbp-vs__head { display: none; }
.zbp-vs__row {
    display: grid;
    gap: 10px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--zp-line);
    border-radius: var(--zp-radius);
}
.zbp-vs__row > .zbp-vs__topic { font-weight: 850; font-size: 1.12rem; letter-spacing: -0.02em; color: var(--zp-ink); }
.zbp-vs__them, .zbp-vs__us { display: block; font-size: 0.98rem; line-height: 1.45; padding: 12px 14px; border-radius: 14px; }
.zbp-vs__them { background: var(--zp-soft); color: var(--zp-ink-2); }
.zbp-vs__us { background: var(--zp-blue-soft); color: var(--zp-ink); font-weight: 650; }
.zbp-vs__us i { color: var(--zp-blue-ink); }
.zbp-vs__who { display: block; margin-bottom: 3px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em; color: var(--zp-muted); }
.zbp-vs__us .zbp-vs__who { color: var(--zp-blue-ink); }
.zbp-fair { max-width: 640px; margin: 24px auto 0; text-align: center; color: var(--zp-muted); font-size: 1rem; line-height: 1.5; }

/* ---- Who gets it --------------------------------------------------------- */

.zbp-plans { list-style: none; margin: 0 auto 28px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.zbp-plans li {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--zp-line);
    font-size: 1rem;
}
.zbp-plans b { color: var(--zp-ink); font-weight: 800; }
.zbp-plans span { color: var(--zp-muted); font-weight: 600; }

/* ---- Wider screens ------------------------------------------------------- */

@media (min-width: 600px) {
    .zbp-tiles { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
}

@media (min-width: 900px) {
    .zbp-editor__body { grid-template-columns: 54px 1fr; min-height: 320px; }
    .zbp-rail__item { width: 36px; height: 36px; font-size: 1.05rem; }
    .zbp-canvas { padding: 18px; gap: 14px; }
    .zbp-site__hero { padding: 26px 22px 22px; }
    .zbp-site__h { font-size: 1.5rem; }
    .zbp-site__cards > span { height: 60px; }
    .zbp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
    .zbp-vs__head {
        display: grid;
        grid-template-columns: 180px 1fr 1fr;
        gap: 14px;
        padding: 0 18px;
        font-weight: 800;
        font-size: 0.95rem;
        color: var(--zp-muted);
    }
    .zbp-vs__head .zbp-vs__us { background: none; padding: 0 14px; color: var(--zp-blue-ink); font-weight: 800; }
    .zbp-vs__head > span:nth-child(2) { padding: 0 14px; }
    .zbp-vs__row { grid-template-columns: 180px 1fr 1fr; align-items: stretch; gap: 14px; }
    .zbp-vs__them, .zbp-vs__us { display: flex; align-items: center; }
    .zbp-vs__us i { margin-right: 6px; }
    .zbp-vs__row > .zbp-vs__topic { align-self: center; }
    .zbp-vs__who { display: none; }
}

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