/* ============================================
   SECTION BLOCKS (inc/section-blocks.php, inc/blocks/sections/*)
   Built on the theme's section, label, and button styles. Each section carries
   .sx-light or .sx-dark from its Background field, and components adapt to it.
   ============================================ */

/* Shared */
.sx-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.sx-buttons--center {
    justify-content: center;
    margin-top: 40px;
}

.sx-link-row {
    margin-top: 48px;
    text-align: center;
}

.sx-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    color: var(--pocket-brand-blue);
}

.sx-dark .sx-link {
    color: var(--pocket-yellow);
}

.sx-link svg,
.sx-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.sx-link:hover svg,
.sx-card__link:hover svg {
    transform: translateX(3px);
}

.sx-light a:not(.btn):not(.sx-link):not(.sx-card__link):not(.service-card) {
    color: var(--pocket-brand-blue);
}

.sx-dark a:not(.btn):not(.sx-link):not(.sx-card__link) {
    color: var(--pocket-interactive-blue);
}

.sx-note {
    text-align: center;
    margin-top: 32px;
    color: var(--pocket-text-muted);
}

.sx-dark .sx-note {
    color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------
   Page intro
   -------------------------------------------- */
.sx-intro {
    position: relative;
    padding: 180px 0 100px;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(32, 62, 169, 0.35), transparent),
        radial-gradient(ellipse 50% 40% at 85% 70%, rgba(255, 214, 10, 0.06), transparent),
        var(--pocket-dark);
}

.sx-intro__content {
    max-width: 820px;
}

.sx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pocket-yellow);
    margin-bottom: 24px;
}

.sx-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pocket-yellow);
}

.sx-intro__title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.sx-intro__highlight {
    display: block;
    color: var(--pocket-interactive-blue);
}

.sx-intro__text {
    font-size: 1.1875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    max-width: 680px;
    margin-bottom: 40px;
}

/* --------------------------------------------
   Tile grid and callout
   -------------------------------------------- */
.sx-tiles {
    display: grid;
    grid-template-columns: repeat(var(--sx-cols, 4), 1fr);
    gap: 24px;
}

.sx-tile {
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    background: var(--pocket-light);
    border: 1px solid var(--pocket-border);
}

.sx-tile h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.sx-tile p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--pocket-text-muted);
}

.sx-dark .sx-tile {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.sx-dark .sx-tile p {
    color: rgba(255, 255, 255, 0.65);
}

.sx-embed {
    margin-top: 40px;
}

.sx-callout {
    margin: 48px auto 0;
    max-width: 820px;
    padding: 32px 36px;
    border-radius: var(--radius-lg);
    background: rgba(32, 62, 169, 0.05);
    border-left: 4px solid var(--pocket-brand-blue);
}

.sx-callout h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.sx-callout p {
    line-height: 1.7;
    color: #343a40;
}

.sx-callout__aside {
    margin-top: 12px;
    font-size: 0.9375rem;
}

.sx-callout code,
.sx-prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(32, 62, 169, 0.1);
}

.sx-dark .sx-callout {
    background: rgba(76, 155, 245, 0.08);
    border-left-color: var(--pocket-interactive-blue);
}

.sx-dark .sx-callout p {
    color: rgba(255, 255, 255, 0.75);
}

/* --------------------------------------------
   Steps
   -------------------------------------------- */
.sx-steps {
    list-style: none;
    counter-reset: sx-step;
    display: grid;
    grid-template-columns: repeat(var(--sx-cols, 4), 1fr);
    gap: 20px;
}

.sx-step {
    counter-increment: sx-step;
    padding: 30px 24px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sx-step::before {
    content: counter(sx-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    border-radius: 50%;
    font-weight: 700;
    color: var(--pocket-dark);
    background: var(--pocket-yellow);
    box-shadow: 0 0 20px rgba(255, 214, 10, 0.3);
}

/* Same yellow, blue, white rhythm as the hero */
.sx-step:nth-child(3n+2)::before { background: var(--pocket-interactive-blue); box-shadow: 0 0 20px rgba(76, 155, 245, 0.3); }
.sx-step:nth-child(3n)::before { background: #fff; box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }

.sx-step h3 {
    font-size: 1.1875rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.sx-step p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.68);
}

.sx-light .sx-step {
    background: var(--pocket-light);
    border-color: var(--pocket-border);
}

.sx-light .sx-step p {
    color: var(--pocket-text-muted);
}

.sx-light .sx-step:nth-child(3n)::before {
    background: var(--pocket-brand-blue);
    color: #fff;
}

/* --------------------------------------------
   Cards
   -------------------------------------------- */
.sx-cards {
    display: grid;
    grid-template-columns: repeat(var(--sx-cols, 3), 1fr);
    gap: 32px;
}

.sx-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-normal);
}

.sx-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--pocket-interactive-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.sx-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(76, 155, 245, 0.3);
    transform: translateY(-4px);
}

.sx-card:hover::before {
    transform: scaleX(1);
}

.sx-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(76, 155, 245, 0.1);
    color: var(--pocket-interactive-blue);
}

.sx-card__icon svg {
    width: 28px;
    height: 28px;
}

.sx-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.sx-card__for {
    font-size: 0.875rem;
    color: var(--pocket-yellow);
    margin-bottom: 12px;
}

.sx-card__text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 12px;
}

.sx-card__text strong {
    color: #fff;
}

.sx-card__note {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 12px;
}

.sx-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--pocket-yellow);
    text-decoration: none;
}

.sx-card__link:hover {
    color: #fff;
}

.sx-light .sx-card {
    background: var(--pocket-light);
    border-color: var(--pocket-border);
}

.sx-light .sx-card:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
}

.sx-light .sx-card__for { color: #8a6d00; }
.sx-light .sx-card__text { color: var(--pocket-text-muted); }
.sx-light .sx-card__text strong { color: var(--pocket-dark); }
.sx-light .sx-card__note { color: var(--pocket-text-muted); }
.sx-light .sx-card__link { color: var(--pocket-brand-blue); }
.sx-light .sx-card__link:hover { color: var(--pocket-dark); }

/* --------------------------------------------
   Feature list
   -------------------------------------------- */
.sx-features {
    display: grid;
    grid-template-columns: repeat(var(--sx-cols, 3), 1fr);
    gap: 48px;
}

.sx-feature__num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 16px;
    color: var(--pocket-brand-blue);
    opacity: 0.25;
}

.sx-feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.sx-feature p {
    line-height: 1.7;
    color: var(--pocket-text-muted);
}

.sx-dark .sx-feature__num {
    color: var(--pocket-interactive-blue);
    opacity: 0.5;
}

.sx-dark .sx-feature p {
    color: rgba(255, 255, 255, 0.65);
}

/* --------------------------------------------
   Call-to-action band
   -------------------------------------------- */
.sx-cta {
    padding: 80px 0;
    background:
        radial-gradient(ellipse 50% 90% at 100% 50%, rgba(76, 155, 245, 0.18), transparent),
        radial-gradient(ellipse 40% 80% at 0% 100%, rgba(32, 62, 169, 0.3), transparent),
        var(--pocket-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sx-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.sx-cta__copy {
    max-width: 680px;
}

.sx-cta__title {
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
}

.sx-cta__text {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.sx-cta__actions {
    flex-direction: column;
    flex-shrink: 0;
    gap: 12px;
}

.sx-cta--center {
    padding: 100px 0;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 80% at 50% 120%, rgba(32, 62, 169, 0.4), transparent),
        var(--pocket-dark);
}

.sx-cta--center .sx-cta__inner {
    flex-direction: column;
    gap: 36px;
}

.sx-cta--center .sx-cta__copy {
    max-width: 720px;
}

.sx-cta--center .sx-cta__title {
    font-size: clamp(2rem, 4vw, 3rem);
}

.sx-cta--center .sx-cta__actions {
    flex-direction: row;
    justify-content: center;
}

/* --------------------------------------------
   FAQ
   -------------------------------------------- */
.sx-faq {
    max-width: 820px;
    margin: 0 auto;
}

.sx-faq__item {
    border-bottom: 1px solid var(--pocket-border);
}

.sx-faq__item summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 40px 22px 0;
    font-size: 1.0625rem;
    font-weight: 600;
    position: relative;
}

.sx-faq__item summary::-webkit-details-marker {
    display: none;
}

.sx-faq__item summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--pocket-brand-blue);
}

.sx-faq__item[open] summary::after {
    content: '–';
}

.sx-faq__item p {
    padding: 0 0 22px;
    line-height: 1.7;
    color: #495057;
}

.sx-faq__item a {
    font-weight: 500;
    white-space: nowrap;
}

.sx-dark .sx-faq__item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.sx-dark .sx-faq__item summary::after {
    color: var(--pocket-yellow);
}

.sx-dark .sx-faq__item p {
    color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------
   Prose and live-value tables
   -------------------------------------------- */
.sx-prose {
    max-width: 820px;
    margin: 0 auto;
}

.sx-prose p {
    line-height: 1.75;
    color: #343a40;
    margin-bottom: 18px;
}

.sx-dark .sx-prose p {
    color: rgba(255, 255, 255, 0.75);
}

.sx-table-wrap {
    max-width: 820px;
    margin: 8px auto 32px;
    overflow-x: auto;
}

.sx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9875rem;
}

.sx-table th,
.sx-table td {
    text-align: left;
    padding: 16px 18px;
    border-bottom: 1px solid var(--pocket-border);
    vertical-align: top;
}

.sx-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pocket-text-muted);
}

.sx-table__value {
    font-weight: 700;
    font-size: 1.125rem;
    white-space: nowrap;
    color: var(--pocket-brand-blue);
}

.sx-table__row--hl td {
    background: rgba(255, 214, 10, 0.12);
}

.sx-dark .sx-table th,
.sx-dark .sx-table td {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.sx-dark .sx-table th {
    color: rgba(255, 255, 255, 0.5);
}

.sx-dark .sx-table td {
    color: rgba(255, 255, 255, 0.75);
}

.sx-dark .sx-table__value {
    color: var(--pocket-yellow);
}

.sx-dark .sx-table__row--hl td {
    background: rgba(255, 214, 10, 0.08);
}

.sx-fineprint {
    max-width: 820px;
    margin: 0 auto;
    font-size: 0.8125rem;
    color: var(--pocket-text-muted);
}

.sx-fineprint--center {
    text-align: center;
}

.sx-dark .sx-fineprint {
    color: rgba(255, 255, 255, 0.45);
}

.sx-pokt {
    margin-top: 40px;
    text-align: center;
}

.sx-pokt .sx-buttons--center {
    margin-top: 16px;
}

/* --------------------------------------------
   Services showcase
   -------------------------------------------- */
.showcase__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* One row of category chips that scrolls sideways; new categories extend the row */
.showcase__bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 4px 64px 4px 4px;
    margin: 0 -4px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent);
}

.showcase__bar::-webkit-scrollbar {
    display: none;
}

.showcase__tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 9px 18px;
    border-radius: 100px;
    border: 1px solid var(--pocket-border);
    background: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    color: #495057;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.showcase__tab:hover {
    border-color: var(--pocket-brand-blue);
    color: var(--pocket-brand-blue);
}

/* Selected and focused chip styles, and which panel shows, are printed per block by the template */
.showcase__panel {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--pocket-border);
    background: var(--pocket-light);
    text-decoration: none;
    color: var(--pocket-dark);
    transition: all var(--transition-normal);
}

.service-card:hover {
    background: #fff;
    border-color: rgba(32, 62, 169, 0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.service-card__category {
    align-self: flex-start;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a6d00;
    background: rgba(255, 214, 10, 0.2);
    padding: 3px 9px;
    border-radius: 100px;
}

.service-card__name {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
}

.service-card__desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--pocket-text-muted);
    flex: 1;
}

.service-card__try {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pocket-brand-blue);
}

.service-card__try svg {
    width: 14px;
    height: 14px;
}

/* --------------------------------------------
   Contrast (WCAG AA): the theme's muted grey falls just short of 4.5:1
   on the light-grey card backgrounds, so text on cards uses a darker grey
   -------------------------------------------- */
.sx-tile p,
.service-card__desc,
.sx-light .sx-step p,
.sx-light .sx-card__text,
.sx-light .sx-card__note {
    color: #565e66;
}

.service-card__category,
.sx-light .sx-card__for {
    color: #6b5400;
}

.sx-card__note {
    color: rgba(255, 255, 255, 0.6);
}

.sx-feature__num {
    opacity: 1;
    color: #7f8fd0;
}

.sx-dark .sx-feature__num {
    opacity: 1;
    color: #5b86c4;
}

/* --------------------------------------------
   Responsive
   -------------------------------------------- */
@media (max-width: 1100px) {
    .sx-steps {
        grid-template-columns: repeat(min(var(--sx-cols, 4), 3), 1fr);
    }

    .showcase__panel {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .sx-tiles {
        grid-template-columns: repeat(min(var(--sx-cols, 4), 2), 1fr);
    }

    .sx-cards,
    .sx-features {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .sx-features {
        gap: 36px;
    }

    .sx-cta--split .sx-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .sx-cta--split .sx-cta__actions {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .sx-intro {
        padding: 140px 0 72px;
    }

    .sx-tiles,
    .sx-steps {
        grid-template-columns: 1fr;
    }

    .showcase__panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .sx-buttons,
    .sx-cta__actions,
    .sx-cta--center .sx-cta__actions {
        flex-direction: column;
        width: 100%;
    }

    .sx-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .sx-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .showcase__panel {
        grid-template-columns: 1fr;
    }
}
