/* "Platforms and integrations" block: every platform Curious Kaizer sets up in live client builds,
   grouped into the stages of a store's life (design, sell, get paid, deliver, reach, run, automate,
   host and measure). Each stage is a numbered stop on one blue spine; each platform names the build
   that uses it. Boxless rows on the page grid (hairline rules, no cards), monochrome logos from
   Simple Icons, brand blue only for the kicker, key phrase and spine. Wording says "build with",
   never "partner": no partner status is claimed. Markup comes from scratchpad platforms_block.py. */

.ck-platforms { display: block; padding: 64px 20px 8px; background: transparent; }
.ck-platforms-inner { max-width: 1120px; margin: 0 auto; container: ckp / inline-size; }

/* Intro */
.ck-platforms-intro { max-width: 720px; margin: 0 0 34px; }
.ck-platforms-kicker {
    margin: 0 0 10px !important;
    color: #2563eb !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: left !important;
}
html body .ck-platforms-title {
    margin: 0 0 14px !important;
    padding: 0 !important;
    color: #111111 !important;
    font-size: clamp(28px, 3.6vw, 44px) !important;
    font-weight: 300 !important;
    line-height: 1.1 !important;
    letter-spacing: -.035em !important;
    text-align: left !important;
    text-transform: none !important;
}
html body .ck-platforms-title span { color: #2563eb !important; }
.ck-platforms-lede {
    max-width: 640px;
    margin: 0 !important;
    color: #475569 !important;
    font-size: 16.5px !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

/* Stages: a numbered node per stage, joined by one vertical spine. */
.ck-lanes { position: relative; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.ck-lanes > li, .ck-lane-items > li { margin: 0 !important; list-style: none !important; }
.ck-lanes > li::before, .ck-lanes > li::marker, .ck-lane-items > li::marker { content: none; }
.ck-lane-items > li::before { content: none !important; display: none !important; }

.ck-lane { position: relative; display: grid; grid-template-columns: 1fr; row-gap: 16px; padding: 22px 0 24px 50px !important; }
.ck-lane::before {
    content: "" !important;
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #bfdbfe;
    display: block !important;
}
.ck-lane:first-child::before { top: 37px; }
.ck-lane:last-child::before { bottom: auto; height: 37px; }
.ck-lane::after { content: ""; position: absolute; left: 50px; right: 0; bottom: 0; height: 1px; background: rgba(15, 23, 42, .08); }
.ck-lane:last-child::after { content: none; }

.ck-lane-head { position: relative; min-width: 0; }
.ck-lane-n {
    position: absolute;
    left: -50px;
    top: 0;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #fff;
    color: #2563eb;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.ck-lane:hover .ck-lane-n, .ck-lane:focus-within .ck-lane-n { background: #2563eb; border-color: #2563eb; color: #fff; }
html body .ck-lane-title {
    margin: 4px 0 0 !important;
    padding: 0 !important;
    color: #111111 !important;
    font-size: 17.5px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: -.015em !important;
    text-transform: none !important;
    text-align: left !important;
}
html body .ck-lane-title::before, html body .ck-lane-title::after { content: none !important; }
.ck-lane-covers { margin: 3px 0 0 !important; color: #64748b !important; font-size: 13.5px !important; line-height: 1.45 !important; text-align: left !important; }

/* Platforms in a stage */
.ck-lane-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.ck-lane-items > li { display: grid; grid-template-columns: 1fr; row-gap: 8px; align-content: start; padding: 0 !important; }
.ck-platforms-logo { display: flex; align-items: center; width: 28px; height: 28px; color: #334155; }
.ck-platforms-logo img, .ck-platforms-logo svg { display: block; width: 23px; height: 23px; object-fit: contain; opacity: .82; transition: opacity .25s ease; }
.ck-lane-items > li:hover .ck-platforms-logo img, .ck-lane-items > li:hover .ck-platforms-logo svg { opacity: 1; }
/* WooCommerce: the Simple Icons path drawn inline, cropped to the Woo bubble so it reads at icon size. */
.ck-platforms-logo svg.ck-woo { width: 31px; height: 19px; }
.ck-platforms-text { display: block; min-width: 0; }
.ck-platforms-name { display: block; color: #111111; font-size: 15.5px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.ck-platforms-use { display: block; margin-top: 3px; color: #64748b; font-size: 13.5px; line-height: 1.45; }
.ck-platforms-use a { color: inherit !important; text-decoration: underline; text-decoration-color: rgba(37, 99, 235, .35); text-underline-offset: 3px; }
.ck-platforms-use a:hover { color: #2563eb !important; }

.ck-platforms-note {
    margin: 22px 0 0 50px !important;
    color: #94a3b8 !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    text-align: left !important;
}

/* Wide containers: stage name in a left column, its platforms flowing beside it. */
@container ckp (min-width: 720px) {
    .ck-lane { grid-template-columns: minmax(170px, 232px) minmax(0, 1fr); column-gap: 32px; padding: 24px 0 26px 54px !important; }
    .ck-lane::after { left: 54px; }
    .ck-lane-n { left: -54px; }
    .ck-lane-items { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px 28px; }
    .ck-lane-items > li { grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; }
    .ck-platforms-logo { height: 22px; margin-top: 1px; }
    .ck-platforms-note { margin-left: 54px !important; }
    .ck-lane:first-child::before { top: 39px; }
    .ck-lane:last-child::before { height: 39px; }
    .ck-lane-n { top: 0; }
}

/* Inside an article column (service pages, guides): no side padding, smaller title. */
.ck-platforms.is-inline { padding: 8px 0 0; margin: 2.8rem 0 1rem; }
html body .ck-platforms.is-inline .ck-platforms-title { font-size: clamp(24px, 2.8vw, 32px) !important; font-weight: 500 !important; letter-spacing: -.025em !important; line-height: 1.2 !important; }
.ck-platforms.is-inline .ck-platforms-intro { margin-bottom: 22px; }
.ck-platforms.is-inline .ck-platforms-lede { font-size: 16px !important; }

@media (max-width: 767px) {
    .ck-platforms { padding: 44px 16px 4px; }
    .ck-platforms-intro { margin-bottom: 24px; }
    .ck-platforms-lede { font-size: 15.5px !important; }
    .ck-lane { padding: 18px 0 20px 46px !important; row-gap: 14px; }
    .ck-lane::after { left: 46px; }
    .ck-lane-n { left: -46px; width: 29px; height: 29px; font-size: 11px; }
    .ck-lane::before { left: 14px; }
    .ck-lane:first-child::before { top: 33px; }
    .ck-lane:last-child::before { height: 33px; }
    html body .ck-lane-title { margin-top: 3px !important; font-size: 16.5px !important; }
    .ck-lane-covers { font-size: 13px !important; }
    .ck-lane-items { gap: 16px 14px; }
    .ck-platforms-name { font-size: 15px; }
    .ck-platforms-use { font-size: 13px; }
    .ck-platforms-logo svg.ck-woo { width: 29px; height: 18px; }
    .ck-platforms-note { margin-left: 46px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .ck-lane-n, .ck-platforms-logo img, .ck-platforms-logo svg { transition: none; }
}

/* ── Homepage: a bento of the eight stages ─────────────────────────────────────────────────────────
   A blue "one order, eight stops" card lights each stop in turn; every stage is a white card with a
   hairline border, an outlined numeral and logo tiles. js/platforms.js adds the staggered reveal and a
   cursor spotlight; without it everything simply shows. Brand blue stays the only accent. */
.ck-platforms.is-home { padding: 88px 20px 0; }
.ck-platforms.is-home .ck-platforms-inner { max-width: 1180px; }

.cks-head { display: grid; gap: 22px; margin: 0 0 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(15, 23, 42, .1); }
html body .ck-platforms.is-home .ck-platforms-title {
    margin: 0 !important;
    font-size: clamp(36px, 5.4vw, 68px) !important;
    font-weight: 300 !important;
    line-height: 1.02 !important;
    letter-spacing: -.045em !important;
}
html body .ck-platforms.is-home .ck-platforms-title .cks-accent { display: block; }
.ck-platforms.is-home .ck-platforms-kicker { margin-bottom: 18px !important; }
.cks-head-side { display: grid; gap: 14px; align-content: end; }
.cks-count { display: flex; align-items: flex-end; gap: 14px; margin: 0 !important; }
.cks-count b { color: #111111; font-size: clamp(64px, 8vw, 112px); font-weight: 300; line-height: .78; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.cks-count span { max-width: 9.5em; padding-bottom: 2px; color: #111111; font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.ck-platforms.is-home .ck-platforms-lede { max-width: 470px; font-size: 16px !important; }

.cks-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

/* The flow card */
.cks-flow {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 28px 26px 26px;
    border-radius: 24px;
    background-color: #2563eb;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.2px), radial-gradient(120% 70% at 100% 0%, #3b82f6 0%, transparent 60%);
    background-size: 14px 14px, 100% 100%;
    color: #fff;
    box-shadow: 0 30px 60px -36px rgba(37, 99, 235, .7);
}
.cks-flow-k { margin: 0 0 10px !important; color: #fff !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .14em; text-transform: uppercase; text-align: left !important; }
.cks-flow-t { margin: 0 0 26px !important; color: #fff !important; font-size: 22px !important; font-weight: 400 !important; line-height: 1.25 !important; letter-spacing: -.02em; text-align: left !important; max-width: 15em; }
.cks-route { position: relative; display: grid; gap: 0; margin: auto 0 0 !important; padding: 0 !important; list-style: none !important; }
.cks-route::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: rgba(255, 255, 255, .28); border-radius: 2px; }
.cks-route li { position: relative; display: flex; align-items: center; gap: 16px; min-height: 34px; margin: 0 !important; color: #fff; font-size: 15px; font-weight: 500; letter-spacing: -.01em; list-style: none !important; }
.cks-route li::before, .cks-route li::marker { content: none !important; }
.cks-route i { position: relative; z-index: 1; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: #2563eb; animation: cks-stop 8s linear infinite; animation-delay: calc(var(--k) * 1s - 8s); }
.cks-route span { animation: cks-label 8s linear infinite; animation-delay: calc(var(--k) * 1s - 8s); }
@keyframes cks-stop {
    0% { background: #fff; border-color: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .22); }
    11% { background: #fff; border-color: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .22); }
    14%, 100% { background: #2563eb; border-color: rgba(255, 255, 255, .7); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
@keyframes cks-label { 0%, 11% { transform: translateX(4px); } 14%, 100% { transform: none; } }

/* Stage cards */
.cks-card {
    --mx: 50%;
    --my: 0%;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
    padding: 24px 24px 24px;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 24px;
    background: #fff;
    transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.cks-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(360px circle at var(--mx) var(--my), rgba(37, 99, 235, .09), transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
}
.cks-card:hover, .cks-card:focus-within { border-color: rgba(37, 99, 235, .32); transform: translateY(-2px); box-shadow: 0 24px 48px -32px rgba(15, 23, 42, .28); }
.cks-card:hover::before, .cks-card:focus-within::before { opacity: 1; }
.cks-ghost {
    position: absolute;
    right: 18px;
    top: 6px;
    z-index: -1;
    color: transparent;
    -webkit-text-stroke: 1.2px #dbe4f3;
    font-size: 112px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.06em;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    user-select: none;
    transition: -webkit-text-stroke-color .3s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
}
.cks-card:hover .cks-ghost { -webkit-text-stroke-color: #93c5fd; transform: translateY(-4px); }
.cks-card-head { min-width: 0; padding-right: 96px; }
.cks-n { display: block; margin-bottom: 14px; color: #2563eb; font-size: 12px; font-weight: 600; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.cks-n i { color: #94a3b8; font-style: normal; font-weight: 500; }
html body .cks-title {
    margin: 0 !important;
    padding: 0 !important;
    color: #111111 !important;
    font-size: 25px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    letter-spacing: -.03em !important;
    text-transform: none !important;
    text-align: left !important;
}
html body .cks-title::before, html body .cks-title::after { content: none !important; }
.cks-covers { margin: 6px 0 0 !important; color: #64748b !important; font-size: 14px !important; line-height: 1.45 !important; text-align: left !important; }

.cks-items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 22px; margin: auto 0 0 !important; padding: 18px 0 0 !important; border-top: 1px dashed rgba(15, 23, 42, .12); list-style: none !important; }
.cks-items > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.cks-items > li::before, .cks-items > li::marker { content: none !important; display: none !important; }
.cks-logo { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(15, 23, 42, .09); border-radius: 13px; background: #f8fafc; transition: background .3s ease, border-color .3s ease; }
.cks-logo img, .cks-logo svg { display: block; width: 22px; height: 22px; object-fit: contain; }
.cks-logo svg.ck-woo { width: 30px; height: 18px; }
.cks-items > li:hover .cks-logo { background: #eff6ff; border-color: rgba(37, 99, 235, .3); }
.cks-text { display: block; min-width: 0; padding-top: 2px; }
.cks-name { display: block; color: #111111; font-size: 15.5px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.cks-use { display: block; margin-top: 3px; color: #64748b; font-size: 13.5px; line-height: 1.45; }
.cks-use a { color: inherit !important; text-decoration: underline; text-decoration-color: rgba(37, 99, 235, .35); text-underline-offset: 3px; }
.cks-use a:hover { color: #2563eb !important; }
.ck-platforms.is-home .ck-platforms-note { margin: 22px 0 0 !important; }

/* Staggered reveal, only once js/platforms.js has marked the grid. */
.cks-grid.cks-anim > * { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.cks-grid.cks-anim.is-in > * { opacity: 1; transform: none; }
.cks-grid.cks-anim.is-in > .cks-card:hover { transform: translateY(-2px); transition-delay: 0s; }

/* Tablet: two columns, the flow card runs across the top with its stops in a row. */
@container ckp (min-width: 640px) {
    .cks-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 40px; }
    .cks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cks-flow, .cks-s5, .cks-s6, .cks-s7, .cks-s8 { grid-column: 1 / -1; }
    .cks-route { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .cks-route::before { left: 8px; right: 8px; top: 7px; bottom: auto; width: auto; height: 2px; }
    .cks-route li { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 13.5px; }
    .cks-route span { animation-name: cks-label-up; }
    .cks-s5 .cks-items, .cks-s6 .cks-items, .cks-s7 .cks-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cks-s8 .cks-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@keyframes cks-label-up { 0%, 11% { transform: translateY(-2px); } 14%, 100% { transform: none; } }

/* Desktop: a 12-column bento. The flow card stands tall on the left of the first two stages. */
@container ckp (min-width: 1000px) {
    .cks-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
    .cks-flow { grid-column: 1 / span 4; grid-row: 1 / span 2; padding: 32px 30px 30px; }
    .cks-flow-t { font-size: 26px !important; }
    .cks-route { grid-template-columns: minmax(0, 1fr); }
    .cks-route::before { left: 7px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; }
    .cks-route li { flex-direction: row; align-items: center; gap: 16px; min-height: 38px; font-size: 16px; }
    .cks-route span { animation-name: cks-label; }
    .cks-s1, .cks-s2 { grid-column: span 8; }
    .cks-s1 .cks-items, .cks-s2 .cks-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cks-s3, .cks-s4 { grid-column: span 3; }
    .cks-s5 { grid-column: span 6; }
    .cks-s5 .cks-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cks-s3 .cks-ghost, .cks-s4 .cks-ghost { font-size: 104px; right: 16px; }
    .cks-s3 .cks-card-head, .cks-s4 .cks-card-head { padding-right: 70px; }
    .cks-s6 { grid-column: span 8; }
    .cks-s7 { grid-column: span 4; }
    .cks-s7 .cks-items { grid-template-columns: minmax(0, 1fr); }
    .cks-s8 { grid-column: 1 / -1; }
    .cks-s8 .cks-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cks-card { padding: 28px; }
    .cks-ghost { font-size: 132px; right: 22px; }
}

@media (max-width: 767px) {
    .ck-platforms.is-home { padding: 52px 16px 0; }
    .cks-route { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
    .cks-route::before { content: none; }
    .cks-route li { flex-direction: row; align-items: center; gap: 12px; min-height: 32px; font-size: 14.5px; }
    .cks-route span { animation-name: cks-label; }
    .cks-head { margin-bottom: 26px; padding-bottom: 24px; }
    .cks-card { padding: 22px 20px; border-radius: 20px; }
    .cks-flow { padding: 24px 22px; border-radius: 20px; }
    .cks-flow-t { font-size: 20px !important; }
    .cks-ghost { font-size: 92px; right: 14px; }
    html body .cks-title { font-size: 22px !important; }
    .cks-card-head { padding-right: 76px; }
}

@media (prefers-reduced-motion: reduce) {
    .cks-route i, .cks-route span { animation: none; }
    .cks-route li:first-child i { background: #fff; border-color: #fff; }
    .cks-card, .cks-card::before, .cks-ghost, .cks-logo { transition: none; }
    .cks-card:hover { transform: none; }
    .cks-grid.cks-anim > * { opacity: 1; transform: none; transition: none; }
}
