/* Home page */

.home-h2 { font-size: clamp(32px, 4.2vw, 56px); }

/* Hero ------------------------------------------------------------------- */

.home-hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); overflow-x: clip; }
.home-hero__title { font-size: clamp(42px, 6.4vw, 88px); line-height: 0.95; letter-spacing: -0.035em; margin: 24px 0; }

.pill-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin: 0;
    padding: 8px 14px 8px 10px; border-radius: 999px;
    background: var(--lime-mist); color: var(--purple-deep);
    font-size: 14px; font-weight: 600;
}

.trust { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* Store mockup. Sized with container query units so it scales as one piece. */
.mock { position: relative; padding-bottom: 8%; }
.mock__browser {
    container-type: inline-size; position: relative; aspect-ratio: 16 / 11; overflow: hidden;
    border-radius: 18px; background: #fff; border: 1px solid rgba(20, 11, 51, 0.08);
    box-shadow: 0 40px 80px -30px rgba(42, 23, 115, 0.45);
}
.mock__bar { height: 7cqw; background: #EEEBF6; display: flex; align-items: center; gap: 1.2cqw; padding: 0 2.5cqw; }
.mock__bar > i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: var(--lavender); }
.mock__bar > span {
    margin-left: 2cqw; height: 4cqw; flex: 0 1 50%; border-radius: 999px; background: #fff;
    display: flex; align-items: center; padding: 0 2cqw; font: 500 1.9cqw var(--font-body); color: var(--muted);
}
.mock__layer {
    position: absolute; top: 7cqw; left: 0; right: 0; bottom: 0; padding: 3cqw;
    display: grid; grid-template-rows: auto 1fr auto; gap: 2.5cqw;
    opacity: 0; transition: opacity 0.4s ease-out;
}
.mock__wf > div:not(.mock__row), .mock__wf .mock__row > div { border: 0.3cqw dashed #8C7DD6; border-radius: 1.4cqw; }
.mock__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqw; }

.mock__top { height: 4cqw; display: flex; align-items: center; justify-content: space-between; }
.mock__brand { font: 800 2.8cqw var(--font-display); color: oklch(0.36 0.07 150); letter-spacing: -0.02em; }
.mock__menu { display: flex; gap: 2.5cqw; font-size: 1.8cqw; font-weight: 500; color: var(--ink-soft); }
.mock__banner {
    border-radius: 1.6cqw; background: oklch(0.36 0.07 150); padding: 3.5cqw;
    display: flex; flex-direction: column; justify-content: center; gap: 1.6cqw;
}
.mock__banner span:first-child { font: 800 4.8cqw/1 var(--font-display); color: #fff; letter-spacing: -0.03em; max-width: 60%; }
.mock__banner span:last-child {
    align-self: flex-start; padding: 1.2cqw 2.6cqw; border-radius: 999px;
    background: oklch(0.9 0.08 90); font-size: 1.8cqw; font-weight: 700; color: var(--ink);
}
.mock__product { display: flex; flex-direction: column; gap: 0.8cqw; }
.mock__product > div { opacity: 0; transition: opacity 0.4s ease-out var(--delay); }
.mock__product > div:first-child { height: 13cqw; border-radius: 1.4cqw; background: repeating-linear-gradient(135deg, #EFEBE2 0 1cqw, #F7F4EE 1cqw 2cqw); }
.mock__product > div:nth-child(2) { font-size: 1.6cqw; font-weight: 600; }
.mock__product > div:nth-child(3) { font-size: 1.6cqw; color: var(--muted); }

.mock__phone {
    container-type: inline-size;
    position: absolute; right: -2%; bottom: 0; width: 27%; aspect-ratio: 9 / 18.5;
    border-radius: 12% / 6%; background: var(--ink); padding: 2%;
    box-shadow: 0 30px 60px -10px rgba(20, 11, 51, 0.45);
}
.mock__phone > div {
    width: 100%; height: 100%; border-radius: 10% / 5%; background: #fff; overflow: hidden;
    display: flex; flex-direction: column; gap: 4.6cqw; padding: 11cqw 6.4cqw 6.4cqw;
}
.mock__fade-design, .mock__fade-prod { opacity: 0; transition: opacity 0.4s; }
.mock__phone-brand { font: 800 9cqw var(--font-display); color: oklch(0.36 0.07 150); }
.mock__phone-hero { flex: 1; border-radius: 7cqw; background: oklch(0.36 0.07 150); }
.mock__phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5cqw; }
.mock__phone-grid > div { aspect-ratio: 1; border-radius: 5cqw; background: repeating-linear-gradient(135deg, #EFEBE2 0 3cqw, #F7F4EE 3cqw 6cqw); }
.mock__phone-btn { height: 16cqw; border-radius: 999px; background: var(--ink); display: grid; place-items: center; color: #fff; font-size: 7cqw; font-weight: 700; }

.mock__toast {
    position: absolute; left: 4%; bottom: 2%;
    display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
    border-radius: 999px; background: var(--ink); color: #fff;
    box-shadow: 0 20px 40px rgba(20, 11, 51, 0.35);
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}
.mock__toast > span:first-child { width: 32px; height: 32px; border-radius: 50%; background: var(--sprout); display: grid; place-items: center; color: var(--ink); font-weight: 800; }
.mock__toast > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.mock__toast strong { font-size: 15px; }
.mock__toast small { font-size: 13px; color: var(--lavender); }

.mock__status {
    position: absolute; top: -16px; left: 20px;
    display: flex; align-items: center; gap: 8px; padding: 8px 14px;
    border-radius: 999px; background: #fff; border: 1px solid var(--rule);
    font-size: 13px; font-weight: 600; color: var(--purple-deep);
    box-shadow: 0 8px 20px rgba(20, 11, 51, 0.08);
}
.mock__status-dots { display: flex; gap: 3px; }
.mock__status-dots > i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background-color 0.3s; }
.mock__status-dots > i.on { background: var(--green); }

/* Phase states */
.mock[data-phase="0"] .mock__wf { opacity: 1; }
.mock:not([data-phase="0"]) .mock__design,
.mock:not([data-phase="0"]) .mock__fade-design { opacity: 1; }
.mock[data-phase="2"] .mock__product > div, .mock[data-phase="3"] .mock__product > div,
.mock[data-phase="2"] .mock__fade-prod, .mock[data-phase="3"] .mock__fade-prod { opacity: 1; }
.mock[data-phase="3"] .mock__toast { opacity: 1; transform: none; }

/* Pick your path --------------------------------------------------------- */

.paths { align-items: center; }
.path {
    display: flex; flex-direction: column; gap: 18px; padding: 32px 28px; border-radius: 24px;
    background: #fff; border: 1.5px solid var(--rule); color: var(--ink); text-decoration: none;
}
.path:hover { border-color: var(--purple); color: var(--ink); }
.path__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.path__kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); }
.path__title { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.path__facts { display: flex; gap: 24px; font-size: 15px; color: var(--muted); }
.path__facts strong { color: var(--ink); }
.path__link { font-weight: 700; color: var(--purple); }

.path--featured {
    padding: 44px 32px; border-radius: 28px; border: 0;
    background: var(--purple); color: #fff; box-shadow: 0 30px 60px -20px rgba(70, 46, 172, 0.55);
}
.path--featured:hover { color: #fff; }
.path--featured .path__kicker { color: var(--sprout); }
.path--featured .path__title { font-size: 32px; line-height: 1.08; }
.path--featured .path__facts { color: var(--lavender-light); }
.path--featured .path__facts strong { color: #fff; }

/* Speed story ------------------------------------------------------------ */

.speed { display: flex; flex-direction: column; gap: 28px; margin-bottom: 64px; }
.speed__label { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 10px; color: var(--lavender-light); }
.speed__label--pea { font-weight: 700; color: #fff; }
.speed__label--pea span:first-child { color: var(--sprout); }
.speed__track { height: 44px; border-radius: 999px; background: rgba(190, 179, 228, 0.15); overflow: hidden; }
.speed__bar { height: 100%; width: 0; border-radius: 999px; }
.speed__bar--agency { background: var(--lavender); transition: width 1.2s var(--ease); }
.speed__bar--pea { background: var(--sprout); transition: width 0.6s var(--ease) 0.3s; }
.speed.is-on .speed__bar--agency { width: 100%; }
.speed.is-on .speed__bar--pea { width: 25%; }

/* Timeline --------------------------------------------------------------- */

.tl { position: relative; }
.tl__track { position: absolute; left: 22px; right: 22px; top: 21px; height: 3px; background: var(--line); border-radius: 3px; }
.tl__fill { height: 100%; width: 0; background: var(--green); border-radius: 3px; transition: width 0.35s ease-out; }
.tl__steps { position: relative; display: flex; justify-content: space-between; gap: 4px; }
.tl__step {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    background: none; border: 0; padding: 0; min-width: 44px; cursor: pointer; color: var(--ink);
}
.tl__num {
    width: 44px; height: 44px; border-radius: 50%;
    background: #fff; border: 3px solid var(--lavender); color: var(--purple);
    display: grid; place-items: center; font-weight: 700; font-size: 14px;
    transition: all 0.25s ease-out;
}
.tl__step.is-done .tl__num { background: var(--green); border-color: var(--green); color: var(--ink); }
.tl__step.is-active .tl__num { background: var(--purple); border-color: var(--purple); color: #fff; }
.tl__day { font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; max-width: 9em; }
.tl__panel {
    margin-top: 32px; border-radius: 24px; background: var(--lime-mist); padding: clamp(24px, 4vw, 40px);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px 40px; align-items: center;
}
.tl__panel-day { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); }
.tl__panel-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.02em; margin-top: 6px; }
.tl__panel p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }

.tl__intro { margin-bottom: 44px; }
.tl__item { display: contents; } /* desktop: the buttons sit straight in the row */
.tl__card { display: none; }

/* Phones: a vertical stepper. Each number sits beside a grey card with that step's details; the steps up to
   the selected one fill green from left to right, one after another like a loading bar (home.js staggers
   them with --delay, and moves the selection on as you scroll past a step). Only the numbers are buttons. */
@media (max-width: 599px) {
    .tl__intro { margin-bottom: 28px; }
    .tl__track, .tl__day, .tl__panel { display: none; }
    .tl__steps { flex-direction: column; gap: 12px; }
    .tl__item { --delay: 0s; position: relative; display: flex; gap: 14px; }
    /* Connector between the numbers */
    .tl__item:not(:last-child)::before {
        content: ""; position: absolute; left: 20px; top: 44px; bottom: -12px; width: 3px; background: var(--line);
    }
    .tl__step { align-self: flex-start; position: relative; }
    .tl__num, .tl__step.is-active .tl__num {
        flex-shrink: 0; background: #fff; border-color: var(--field); color: var(--muted);
        transition-delay: calc(var(--delay) + 0.2s); /* changes as its card's fill passes the halfway mark */
    }
    .tl__item.is-on .tl__num { background: var(--green); border-color: var(--green); color: var(--ink); }
    .tl__card {
        position: relative; isolation: isolate; overflow: hidden; flex: 1; min-width: 0;
        display: flex; flex-direction: column; gap: 4px;
        border-radius: 18px; padding: 16px 18px; background: #EEEDF1;
    }
    .tl__card::before {
        content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lime-mist);
        transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease) var(--delay);
    }
    .tl__item.is-on .tl__card::before { transform: scaleX(1); }
    .tl__item.is-active .tl__card { box-shadow: inset 0 0 0 2px var(--green); }
    .tl__card-day { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
    .tl__item.is-on .tl__card-day { color: var(--purple); }
    .tl__card-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
    .tl__card-body { font-size: 15px; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
}

/* Results ---------------------------------------------------------------- */

.stat { border-radius: 24px; padding: 28px; background: #fff; border: 1.5px solid var(--rule); }
.stat__big { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 5vw, 64px); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 12px; font-size: 16px; color: var(--muted); }
.stat--purple { background: var(--purple); border-color: var(--purple); color: #fff; }
.stat--purple .stat__label { color: var(--lavender-light); }
.stat--mist { background: var(--lime-mist); border-color: var(--lime-mist); }
.stat--mist .stat__label { color: var(--ink-soft); }

/* Work ------------------------------------------------------------------- */

.work-card {
    display: flex; flex-direction: column; gap: 16px; padding: 14px 14px 22px;
    border-radius: 24px; background: #fff; color: var(--ink); text-decoration: none;
}
.work-card:hover { color: var(--ink); box-shadow: 0 24px 50px -20px rgba(42, 23, 115, 0.35); }
.work-card__foot { padding: 0 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.work-card__name { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.work-card__kind { font-size: 14px; color: var(--muted); margin-top: 2px; }
.work-card__arrow { width: 44px; height: 44px; border-radius: 50%; background: var(--lime-mist); display: grid; place-items: center; font-weight: 700; color: var(--purple-deep); }
.work-card__shot { aspect-ratio: 16 / 10; }
/* Cropped from the top left, where sites keep their logo, when a card is squarer than the screenshot (phones). */
img.work-card__shot { display: block; width: 100%; height: auto; object-fit: cover; object-position: left top; border-radius: 14px; }

/* The featured (first) project spans the whole row, so the rest fill even rows; from tablets up its screenshot sits
   beside its name. */
.work-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 760px) {
    .work-grid > :first-child { display: grid; grid-template-columns: 3fr 2fr; align-items: center; gap: 32px; padding: 14px 32px 14px 14px; }
    .work-grid > :first-child .work-card__name { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
    .work-grid > :first-child .work-card__kind { font-size: 16px; margin-top: 6px; }
}

/* Phones: a compact grid, so all the work fits on about one screen. A last project that would otherwise sit alone in
   its row gets the full width, like the featured one. */
@media (max-width: 599px) {
    .work-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .work-card { gap: 8px; padding: 8px 8px 12px; border-radius: 16px; }
    .work-grid > :not(:first-child) .work-card__shot { aspect-ratio: 4 / 3; font-size: 11px; }
    .work-grid > :last-child:nth-child(even) { grid-column: 1 / -1; }
    .work-grid > :last-child:nth-child(even) .work-card__shot { aspect-ratio: 16 / 10; }
    .work-card__foot { padding: 0 4px; }
    .work-card__name { font-size: 16px; line-height: 1.2; }
    .work-card__kind { font-size: 12px; }
    .work-card__arrow { display: none; }
    #work .section-head { margin-bottom: 20px; }
}

/* Growth teaser ---------------------------------------------------------- */

.service-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--lime-mist); display: grid; place-items: center; }
.service-icon::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--purple); }

/* Pricing preview -------------------------------------------------------- */

.price-card { background: #fff; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.price-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price-card__head h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.price-card__price { font-family: var(--font-display); font-weight: 800; font-size: 48px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-card__price small { font: 600 16px var(--font-body); letter-spacing: 0; color: var(--muted); }
.price-card__note { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.price-card__body { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.price-card a { font-weight: 700; }
.price-card--purple { background: var(--purple); color: #fff; }
.price-card--purple .price-card__note, .price-card--purple .price-card__body { color: var(--lavender-light); }
.price-card--purple a { color: var(--sprout); }
.price-card--purple a:hover { color: var(--lime-mist); }

/* FAQ -------------------------------------------------------------------- */

@media (min-width: 900px) {
    .faq-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}
