/* Substitutr v2: AI visibility product. Clean, resume.io-inspired look:
   lots of white, navy ink, one confident blue, soft grey-blue sections. */

:root {
    --sx-ink: #1e2532;
    --sx-ink-2: #495163;
    --sx-muted: #7a8399;
    --sx-line: #e3e7f0;
    --sx-line-2: #d0d6e3;
    --sx-surface: #eff2f9;
    --sx-surface-2: #f7f9fc;
    --sx-white: #ffffff;
    --sx-blue: #1a91f0;
    --sx-blue-hover: #1170cd;
    --sx-blue-soft: #e7f4fe;
    --sx-blue-ink: #0f5fa6;
    --sx-green: #12a875;
    --sx-green-soft: #e3f6ef;
    --sx-orange: #e8890c;
    --sx-orange-soft: #fdf1e1;
    --sx-red: #e5484d;
    --sx-red-soft: #fdecec;
    --sx-radius: 8px;
    --sx-radius-lg: 14px;
    --sx-shadow: 0 1px 2px rgba(30, 37, 50, .06), 0 8px 24px rgba(30, 37, 50, .08);
    --sx-shadow-lg: 0 2px 6px rgba(30, 37, 50, .06), 0 24px 60px rgba(30, 37, 50, .14);
    --sx-font: "Figtree", "Segoe UI", Arial, Helvetica, sans-serif;
    --sx-max: 1180px;
}

body.tw-body,
body {
    font-family: var(--sx-font);
    color: var(--sx-ink);
    background: var(--sx-white);
    -webkit-font-smoothing: antialiased;
}

.sx * {
    box-sizing: border-box;
}

.sx {
    font-family: var(--sx-font);
    color: var(--sx-ink);
    line-height: 1.5;
}

.sx h1, .sx h2, .sx h3, .sx h4 {
    font-family: var(--sx-font);
    color: var(--sx-ink);
    margin: 0;
    letter-spacing: -0.01em;
}

.sx p {
    margin: 0;
}

.sx a {
    color: inherit;
}

.sx-container {
    max-width: var(--sx-max);
    margin: 0 auto;
    padding: 0 24px;
}

.sx-narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.sx-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--sx-line);
    font-family: var(--sx-font);
}

.sx-header__inner {
    max-width: var(--sx-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.sx-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--sx-ink);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.sx-logo img {
    width: 30px;
    height: 30px;
}

.sx-logo span b {
    color: var(--sx-blue);
    font-weight: 700;
}

.sx-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
}

.sx-nav a {
    color: var(--sx-ink-2);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0;
}

.sx-nav a:hover, .sx-nav a[aria-current="page"] {
    color: var(--sx-blue);
}

.sx-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sx-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--sx-radius);
    border: 1px solid var(--sx-line);
    background: var(--sx-white);
    color: var(--sx-ink-2);
    cursor: pointer;
}

.sx-icon-btn:hover {
    border-color: var(--sx-line-2);
    color: var(--sx-ink);
}

.sx-icon-btn svg {
    width: 18px;
    height: 18px;
}

.sx-menu-btn {
    display: none;
}

.sx-mobile-nav {
    display: none;
}

@media (max-width: 900px) {
    .sx-nav, .sx-header__actions .sx-btn {
        display: none;
    }

    .sx-menu-btn {
        display: inline-flex;
    }

    .sx-header__inner {
        justify-content: space-between;
        gap: 12px;
    }

    .sx-mobile-nav.is-open {
        display: grid;
        gap: 4px;
        padding: 8px 24px 20px;
        border-top: 1px solid var(--sx-line);
        background: var(--sx-white);
    }

    .sx-mobile-nav a {
        padding: 12px 0;
        font-weight: 500;
        color: var(--sx-ink);
        text-decoration: none;
        border-bottom: 1px solid var(--sx-line);
    }

    .sx-mobile-nav .sx-btn {
        margin-top: 12px;
        color: #fff;
        border-bottom: 0;
    }
}

/* ---------- Buttons & inputs ---------- */
.sx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: var(--sx-radius);
    border: 1px solid transparent;
    font-family: var(--sx-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .05s;
    white-space: nowrap;
}

.sx-btn:active {
    transform: translateY(1px);
}

.sx-btn--primary {
    background: var(--sx-blue);
    color: #fff !important;
}

.sx-btn--primary:hover {
    background: var(--sx-blue-hover);
}

.sx-btn--ghost {
    background: var(--sx-white);
    color: var(--sx-ink) !important;
    border-color: var(--sx-line-2);
}

.sx-btn--ghost:hover {
    border-color: var(--sx-blue);
    color: var(--sx-blue) !important;
}

.sx-btn--white {
    background: #fff;
    color: var(--sx-blue) !important;
}

.sx-btn--white:hover {
    background: var(--sx-blue-soft);
}

.sx-btn--sm {
    min-height: 40px;
    padding: 0 16px;
    font-size: 15px;
}

.sx-btn--lg {
    min-height: 56px;
    padding: 0 32px;
    font-size: 17px;
}

.sx-btn--block {
    width: 100%;
}

.sx-btn[disabled] {
    opacity: .6;
    cursor: progress;
}

.sx-field {
    display: grid;
    gap: 6px;
}

.sx-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--sx-ink);
}

.sx-field .sx-hint {
    font-size: 13px;
    color: var(--sx-muted);
}

.sx-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--sx-line-2);
    border-radius: var(--sx-radius);
    background: var(--sx-surface-2);
    font-family: var(--sx-font);
    font-size: 16px;
    color: var(--sx-ink);
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.sx-input::placeholder {
    color: #a3abbd;
}

.sx-input:focus {
    outline: none;
    border-color: var(--sx-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 145, 240, .14);
}

.sx-input.is-invalid {
    border-color: var(--sx-red);
}

.sx-error {
    font-size: 13px;
    color: var(--sx-red);
}

.sx-alert {
    padding: 14px 16px;
    border-radius: var(--sx-radius);
    font-size: 15px;
}

.sx-alert--error {
    background: var(--sx-red-soft);
    color: #9b1c1f;
}

.sx-alert--info {
    background: var(--sx-blue-soft);
    color: var(--sx-blue-ink);
}

.sx-alert--warn {
    background: var(--sx-orange-soft);
    color: #8a4b00;
}

.sx-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Type helpers ---------- */
.sx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sx-blue);
    text-transform: none;
    letter-spacing: 0;
}

.sx-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--sx-blue-soft);
    color: var(--sx-blue-ink);
    font-size: 14px;
    font-weight: 600;
}

.sx-pill i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sx-green);
    display: inline-block;
}

.sx-h1 {
    font-size: clamp(38px, 5.2vw, 60px);
    line-height: 1.07;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.sx-h2 {
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sx-h3 {
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.sx-lede {
    font-size: clamp(18px, 1.6vw, 20px);
    color: var(--sx-ink-2);
    line-height: 1.55;
}

.sx-muted {
    color: var(--sx-muted);
}

.sx-accent {
    color: var(--sx-blue);
}

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

/* ---------- Sections ---------- */
.sx-section {
    padding: 96px 0;
}

.sx-section--tight {
    padding: 64px 0;
}

.sx-section--surface {
    background: var(--sx-surface);
}

.sx-section__head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
    display: grid;
    gap: 16px;
}

/* ---------- Hero ---------- */
.sx-hero {
    position: relative;
    padding: 72px 0 88px;
    background: linear-gradient(180deg, #fff 0%, #f5f8fd 100%);
    overflow: hidden;
}

.sx-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: 64px;
    align-items: center;
}

.sx-hero__copy {
    display: grid;
    gap: 24px;
    align-content: start;
}

.sx-hero__assistants {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
    color: var(--sx-ink-2);
    font-size: 15px;
}

.sx-hero__assistants span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.sx-dot {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.sx-dot--chatgpt {
    background: #10a37f;
}

.sx-dot--claude {
    background: #d97757;
}

.sx-dot--perplexity {
    background: #20808d;
}

@media (max-width: 960px) {
    .sx-hero {
        padding: 40px 0 64px;
    }

    .sx-hero__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* ---------- Check form card ---------- */
.sx-form-card {
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius-lg);
    box-shadow: var(--sx-shadow);
    padding: 24px;
    display: grid;
    gap: 16px;
}

.sx-form-card__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sx-form-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.sx-form-card__note {
    font-size: 13px;
    color: var(--sx-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 560px) {
    .sx-form-card {
        padding: 18px;
    }

    .sx-form-card__row {
        grid-template-columns: 1fr;
    }

    .sx-form-card__foot .sx-btn {
        width: 100%;
    }
}

/* ---------- Report preview (hero visual) ---------- */
.sx-preview {
    position: relative;
}

.sx-preview__card {
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: 18px;
    box-shadow: var(--sx-shadow-lg);
    padding: 28px;
    display: grid;
    gap: 22px;
    transform: rotate(1.2deg);
}

.sx-preview__top {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sx-preview__app {
    display: grid;
    gap: 4px;
}

.sx-preview__app b {
    font-size: 20px;
}

.sx-preview__floating {
    position: absolute;
    left: -28px;
    bottom: -26px;
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: 12px;
    box-shadow: var(--sx-shadow);
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    transform: rotate(-2deg);
    font-size: 14px;
    max-width: 280px;
}

.sx-preview__floating b {
    display: block;
    font-size: 15px;
}

@media (max-width: 960px) {
    .sx-preview__floating {
        left: 12px;
    }

    .sx-preview__card {
        transform: none;
    }
}

/* ---------- Score ring ---------- */
.sx-ring {
    --size: 112px;
    --pct: 0;
    --color: var(--sx-blue);
    position: relative;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: conic-gradient(var(--color) calc(var(--pct) * 1%), var(--sx-surface) 0);
    display: grid;
    place-items: center;
    flex: none;
}

.sx-ring::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: #fff;
}

.sx-ring__value {
    position: relative;
    display: grid;
    justify-items: center;
    line-height: 1;
}

.sx-ring__value b {
    font-size: calc(var(--size) * .3);
    font-weight: 700;
}

.sx-ring__value small {
    font-size: 12px;
    color: var(--sx-muted);
    margin-top: 4px;
}

.sx-ring--lg {
    --size: 168px;
}

.sx-ring--sm {
    --size: 72px;
}

.sx-ring--sm::before {
    inset: 7px;
}

.sx-grade {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.sx-grade--strong {
    background: var(--sx-green-soft);
    color: #0b7a54;
}

.sx-grade--visible {
    background: var(--sx-blue-soft);
    color: var(--sx-blue-ink);
}

.sx-grade--weak {
    background: var(--sx-orange-soft);
    color: #8a4b00;
}

.sx-grade--invisible {
    background: var(--sx-red-soft);
    color: #9b1c1f;
}

/* ---------- Bars ---------- */
.sx-bars {
    display: grid;
    gap: 14px;
}

.sx-bar {
    display: grid;
    grid-template-columns: 120px 1fr 64px;
    gap: 12px;
    align-items: center;
    font-size: 15px;
}

.sx-bar__name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.sx-bar__track {
    height: 10px;
    border-radius: 999px;
    background: var(--sx-surface);
    overflow: hidden;
}

.sx-bar__fill {
    height: 100%;
    border-radius: 999px;
    background: var(--sx-blue);
    min-width: 4px;
}

.sx-bar__fill--muted {
    background: #b8c1d4;
}

.sx-bar__value {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--sx-ink-2);
    font-weight: 600;
}

@media (max-width: 480px) {
    .sx-bar {
        grid-template-columns: 96px 1fr 52px;
    }
}

/* ---------- Steps ---------- */
.sx-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sx-step {
    background: #fff;
    border-radius: var(--sx-radius-lg);
    padding: 32px;
    border: 1px solid var(--sx-line);
    display: grid;
    gap: 14px;
    align-content: start;
}

.sx-step__num {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--sx-blue-soft);
    color: var(--sx-blue);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 18px;
}

.sx-step p {
    color: var(--sx-ink-2);
}

@media (max-width: 860px) {
    .sx-steps {
        grid-template-columns: 1fr;
    }
}

/* ---------- Split feature ---------- */
.sx-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.sx-split__copy {
    display: grid;
    gap: 20px;
}

.sx-checklist {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    gap: 14px;
}

.sx-checklist li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    color: var(--sx-ink-2);
    font-size: 17px;
}

.sx-checklist li::before {
    content: "";
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--sx-green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312a875' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}

.sx-checklist li b {
    color: var(--sx-ink);
}

@media (max-width: 900px) {
    .sx-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ---------- Cards ---------- */
.sx-card {
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius-lg);
    padding: 28px;
}

.sx-card--shadow {
    box-shadow: var(--sx-shadow);
    border-color: transparent;
}

.sx-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sx-card__title small {
    font-size: 14px;
    color: var(--sx-muted);
    font-weight: 500;
}

.sx-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.sx-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 860px) {
    .sx-grid-2, .sx-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ---------- Pricing ---------- */
.sx-pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.sx-plan {
    position: relative;
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius-lg);
    padding: 28px 24px;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 14px;
}

.sx-plan--featured {
    border: 2px solid var(--sx-blue);
    box-shadow: var(--sx-shadow-lg);
}

.sx-plan__badge {
    position: absolute;
    top: -13px;
    left: 24px;
    background: var(--sx-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
}

.sx-plan__name {
    font-size: 17px;
    font-weight: 700;
}

.sx-plan__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.sx-plan__price b {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sx-plan__price span {
    color: var(--sx-muted);
    font-size: 15px;
}

.sx-plan__desc {
    color: var(--sx-ink-2);
    font-size: 15px;
}

.sx-plan ul {
    list-style: none;
    padding: 0;
    margin: 4px 0 8px;
    display: grid;
    gap: 10px;
    align-content: start;
}

.sx-plan li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    font-size: 15px;
    color: var(--sx-ink-2);
}

.sx-plan li::before {
    content: "✓";
    color: var(--sx-green);
    font-weight: 700;
}

.sx-plan form {
    margin: 0;
}

@media (max-width: 860px) {
    .sx-pricing {
        grid-template-columns: 1fr;
    }
}

/* ---------- FAQ ---------- */
.sx-faq {
    display: grid;
    gap: 12px;
}

.sx-faq details {
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius);
    padding: 0 24px;
}

.sx-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 0;
    font-weight: 600;
    font-size: 17px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

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

.sx-faq summary::after {
    content: "+";
    color: var(--sx-blue);
    font-size: 22px;
    line-height: 1;
    font-weight: 500;
}

.sx-faq details[open] summary::after {
    content: "–";
}

.sx-faq details p {
    padding: 0 0 20px;
    color: var(--sx-ink-2);
}

/* ---------- CTA band ---------- */
.sx-cta-band {
    background: var(--sx-blue);
    color: #fff;
    border-radius: 20px;
    padding: 56px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}

.sx-cta-band h2 {
    color: #fff;
}

.sx-cta-band p {
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
    margin-top: 10px;
}

@media (max-width: 760px) {
    .sx-cta-band {
        grid-template-columns: 1fr;
        padding: 36px 24px;
    }
}

/* ---------- Results page ---------- */
.sx-result-head {
    padding: 48px 0 32px;
    background: linear-gradient(180deg, #fff, var(--sx-surface-2));
    border-bottom: 1px solid var(--sx-line);
}

.sx-result-head__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.sx-result-app {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sx-favicon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--sx-line);
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: none;
}

.sx-favicon img {
    width: 28px;
    height: 28px;
}

.sx-result-app h1 {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
}

.sx-result-app a {
    color: var(--sx-muted);
    font-size: 15px;
    text-decoration: none;
}

.sx-result-body {
    padding: 40px 0 96px;
    background: var(--sx-surface-2);
}

.sx-result-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.sx-result-main {
    display: grid;
    gap: 24px;
}

.sx-result-aside {
    display: grid;
    gap: 24px;
    position: sticky;
    top: 92px;
}

@media (max-width: 1000px) {
    .sx-result-layout {
        grid-template-columns: 1fr;
    }

    .sx-result-aside {
        position: static;
    }
}

.sx-score-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: center;
}

.sx-score-card__text {
    display: grid;
    gap: 10px;
}

.sx-score-card__text h2 {
    font-size: 26px;
    line-height: 1.25;
}

@media (max-width: 600px) {
    .sx-score-card {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

.sx-comp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.sx-comp-list li {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--sx-line);
    font-size: 16px;
}

.sx-comp-list li:last-child {
    border-bottom: 0;
}

.sx-comp-list .sx-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--sx-surface);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--sx-ink-2);
}

.sx-comp-list .sx-you {
    background: var(--sx-blue-soft);
    margin: 0 -12px;
    padding: 12px;
    border-radius: 8px;
    border-bottom-color: transparent;
}

.sx-comp-list .sx-you .sx-rank {
    background: var(--sx-blue);
    color: #fff;
}

.sx-locked {
    position: relative;
}

.sx-locked__blur {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    opacity: .7;
}

.sx-locked__overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .92) 45%);
    border-radius: var(--sx-radius-lg);
}

.sx-locked__box {
    text-align: center;
    display: grid;
    gap: 12px;
    justify-items: center;
    max-width: 380px;
}

.sx-lock-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--sx-blue);
    color: #fff;
    display: grid;
    place-items: center;
}

.sx-qa {
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius);
    background: #fff;
}

.sx-qa + .sx-qa {
    margin-top: 12px;
}

.sx-qa > summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

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

.sx-qa__chips {
    display: flex;
    gap: 6px;
    flex: none;
}

.sx-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: var(--sx-surface);
    color: var(--sx-ink-2);
}

.sx-chip--yes {
    background: var(--sx-green-soft);
    color: #0b7a54;
}

.sx-chip--no {
    background: var(--sx-red-soft);
    color: #9b1c1f;
}

.sx-chip--err {
    background: var(--sx-orange-soft);
    color: #8a4b00;
}

.sx-qa__body {
    padding: 0 20px 20px;
    display: grid;
    gap: 16px;
}

.sx-answer {
    border-top: 1px solid var(--sx-line);
    padding-top: 16px;
    display: grid;
    gap: 10px;
}

.sx-answer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sx-answer__text {
    white-space: pre-wrap;
    font-size: 15px;
    color: var(--sx-ink-2);
    max-height: 320px;
    overflow: auto;
    background: var(--sx-surface-2);
    border-radius: 8px;
    padding: 14px 16px;
}

.sx-answer__recs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sx-tag {
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--sx-surface);
    font-size: 13px;
    color: var(--sx-ink-2);
}

.sx-tag--you {
    background: var(--sx-blue);
    color: #fff;
    font-weight: 600;
}

.sx-progress {
    display: grid;
    gap: 24px;
    justify-items: center;
    text-align: center;
    padding: 56px 32px;
}

.sx-progress__bar {
    width: 100%;
    max-width: 480px;
    height: 12px;
    background: var(--sx-surface);
    border-radius: 999px;
    overflow: hidden;
}

.sx-progress__fill {
    height: 100%;
    width: 4%;
    background: var(--sx-blue);
    border-radius: 999px;
    transition: width .6s ease;
}

.sx-progress__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    text-align: left;
}

.sx-progress__steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sx-muted);
    font-size: 15px;
}

.sx-progress__steps li::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--sx-line-2);
    flex: none;
}

.sx-progress__steps li.is-active {
    color: var(--sx-ink);
    font-weight: 600;
}

.sx-progress__steps li.is-active::before {
    border-color: var(--sx-blue);
    border-top-color: transparent;
    animation: sx-spin .8s linear infinite;
}

.sx-progress__steps li.is-done {
    color: var(--sx-ink-2);
}

.sx-progress__steps li.is-done::before {
    background: var(--sx-green);
    border-color: var(--sx-green);
}

@keyframes sx-spin {
    to {
        transform: rotate(360deg);
    }
}

.sx-upsell {
    display: grid;
    gap: 14px;
}

.sx-upsell__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.sx-upsell__price b {
    font-size: 34px;
    font-weight: 700;
}

.sx-upsell__price span {
    color: var(--sx-muted);
}

.sx-upsell ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.sx-upsell li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    font-size: 15px;
    color: var(--sx-ink-2);
}

.sx-upsell li::before {
    content: "✓";
    color: var(--sx-green);
    font-weight: 700;
}

.sx-link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--sx-blue);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.sx-link-btn:hover {
    text-decoration: underline;
}

.sx-share {
    display: grid;
    gap: 12px;
}

.sx-share__row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sx-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    background: var(--sx-surface);
    border-radius: 8px;
    padding: 10px 12px;
    word-break: break-all;
    color: var(--sx-ink-2);
}

.sx-fix {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--sx-line);
}

.sx-fix:last-child {
    border-bottom: 0;
}

.sx-fix__num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--sx-blue-soft);
    color: var(--sx-blue);
    display: grid;
    place-items: center;
    font-weight: 700;
}

.sx-fix h3 {
    font-size: 17px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.sx-fix p {
    color: var(--sx-ink-2);
    margin-top: 6px;
    font-size: 15px;
}

.sx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.sx-table th {
    text-align: left;
    font-size: 13px;
    color: var(--sx-muted);
    font-weight: 600;
    padding: 10px 8px;
    border-bottom: 1px solid var(--sx-line);
}

.sx-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--sx-line);
    color: var(--sx-ink-2);
}

.sx-table tr:last-child td {
    border-bottom: 0;
}

.sx-table td.sx-num, .sx-table th.sx-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.sx-banner {
    background: var(--sx-orange-soft);
    color: #8a4b00;
    font-size: 14px;
    padding: 10px 24px;
    text-align: center;
}

/* ---------- Footer ---------- */
.sx-footer {
    background: var(--sx-ink);
    color: #c9cfdc;
    font-family: var(--sx-font);
}

.sx-footer__inner {
    max-width: var(--sx-max);
    margin: 0 auto;
    padding: 64px 24px 40px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
}

.sx-footer .sx-logo {
    color: #fff;
}

.sx-footer p {
    margin: 14px 0 0;
    font-size: 15px;
    max-width: 320px;
    line-height: 1.6;
}

.sx-footer h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
}

.sx-footer nav {
    display: grid;
    gap: 10px;
}

.sx-footer nav a {
    color: #c9cfdc;
    text-decoration: none;
    font-size: 15px;
}

.sx-footer nav a:hover {
    color: #fff;
}

.sx-footer__meta {
    max-width: var(--sx-max);
    margin: 0 auto;
    padding: 20px 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 14px;
    color: #8f98ab;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 860px) {
    .sx-footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .sx-footer__brand {
        grid-column: 1 / -1;
    }
}

/* ---------- Admin ---------- */
.sx-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sx-stat {
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius);
    padding: 18px 20px;
}

.sx-stat b {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

.sx-stat span {
    color: var(--sx-muted);
    font-size: 14px;
}

@media (max-width: 760px) {
    .sx-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media print {
    .sx-header, .sx-footer, .sx-result-aside, .sx-no-print {
        display: none !important;
    }

    .sx-result-layout {
        grid-template-columns: 1fr;
    }

    .sx-qa {
        break-inside: avoid;
    }

    .sx-qa:not([open]) > .sx-qa__body {
        display: grid;
    }
}

/* ---------- One-input domain form (homepage hero) ---------- */
/* Keep the domain box clear of the sticky header when scrolled to. */
#check { scroll-margin-top: 140px; }
.sx-domain-form { display: flex; align-items: stretch; background: #fff; border: 1px solid var(--sx-line-2); border-radius: 10px; box-shadow: var(--sx-shadow); overflow: hidden; max-width: 620px; }
.sx-domain-form:focus-within { border-color: var(--sx-blue); box-shadow: 0 0 0 4px rgba(26,145,240,.14), var(--sx-shadow); }
.sx-domain-form__input { flex: 1; min-width: 0; height: 60px; border: 0; padding: 0 20px; font-family: var(--sx-font); font-size: 17px; color: var(--sx-ink); background: transparent; }
.sx-domain-form__input:focus { outline: none; }
.sx-domain-form__input::placeholder { color: #a3abbd; }
.sx-domain-form__btn { border-radius: 0; min-height: 60px; padding: 0 28px; font-size: 17px; }
@media (max-width: 520px) {
  .sx-domain-form { flex-direction: column; }
  .sx-domain-form__input { flex: none; height: 56px; padding: 0 16px; font-size: 16px; text-overflow: ellipsis; }
  .sx-domain-form__btn { width: 100%; min-height: 56px; }
}
.sx-last-checked { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: var(--sx-ink-2); margin-top: -8px; }
.sx-last-checked span { font-weight: 500; }
.sx-last-checked a { color: var(--sx-blue); text-decoration: none; font-weight: 500; }
.sx-last-checked a:hover { text-decoration: underline; }
.sx-example-card { display: flex; align-items: center; gap: 14px; max-width: 460px; padding: 14px 18px; background: #fff; border: 1px solid var(--sx-line); border-radius: 12px; box-shadow: 0 1px 2px rgba(30,37,50,.05), 0 6px 18px rgba(30,37,50,.06); text-decoration: none; color: var(--sx-ink); transition: border-color .15s, transform .15s; }
.sx-example-card:hover { border-color: var(--sx-blue); transform: translateY(-1px); }
.sx-example-card__text { display: grid; flex: 1; line-height: 1.3; }
.sx-example-card__text b { font-size: 16px; }
.sx-example-card__text span { font-size: 13px; color: var(--sx-muted); }
.sx-example-card__cta { color: var(--sx-blue); font-weight: 600; font-size: 15px; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sx-comp-list .sx-you-row { background: var(--sx-blue-soft); border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.sx-dot--gemini { background: linear-gradient(135deg, #4285f4 0%, #9b72cb 60%, #d96570 100%); }

/* ---------- Public AI visibility pages: breadcrumbs, related sites, directory pager ---------- */
.sx-crumbs {
    margin-bottom: 16px;
}

.sx-related__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 4px 24px;
}

.sx-related__list li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--sx-line);
}

.sx-related__list li .sx-muted {
    grid-column: 1;
    font-size: 13px;
}

.sx-related__list li b {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
}

.sx-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.sx-pager a,
.sx-pager span {
    padding: 6px 12px;
    border: 1px solid var(--sx-line);
    border-radius: 8px;
    text-decoration: none;
}

.sx-pager span[aria-current] {
    background: var(--sx-blue);
    border-color: var(--sx-blue);
    color: #fff;
}

/* ---------- App directory: explore, categories, category and app pages ---------- */
.sx-crumbs .breadcrumb li {
    font-size: 14px;
    color: var(--sx-muted);
}

.sx-crumbs .breadcrumb li a {
    color: var(--sx-ink-2);
    opacity: 1;
}

.sx-crumbs .breadcrumb li a:hover {
    color: var(--sx-blue);
}

.sx-crumbs .breadcrumb li:not(:first-child)::before {
    content: "›";
    color: var(--sx-line-2);
}

.sx-dir-hero {
    padding: 40px 0 56px;
    background: linear-gradient(180deg, #fff 0%, #f5f8fd 100%);
    border-bottom: 1px solid var(--sx-line);
}

.sx-dir-hero__grid {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.sx-dir-hero__copy {
    display: grid;
    gap: 16px;
    max-width: 720px;
}

.sx-dir-title {
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.sx-dir-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.sx-dir-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sx-dir-stats li {
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius-lg);
    padding: 14px 20px;
    min-width: 128px;
    display: grid;
    gap: 2px;
}

.sx-dir-stats b {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sx-dir-stats span {
    font-size: 14px;
    color: var(--sx-muted);
}

.sx-dir-section {
    padding: 64px 0;
}

.sx-dir-section--surface {
    background: var(--sx-surface);
}

.sx-dir-section--soft {
    background: var(--sx-surface-2);
}

.sx-dir-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.sx-dir-head__copy {
    display: grid;
    gap: 8px;
    max-width: 640px;
}

.sx-dir-head h2 {
    font-size: clamp(26px, 2.8vw, 34px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sx-text-link {
    color: var(--sx-blue) !important;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
}

.sx-text-link:hover {
    color: var(--sx-blue-hover) !important;
    text-decoration: underline;
}

/* Chip links (categories, subcategories) */
.sx-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sx-chip-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--sx-line);
    border-radius: 999px;
    background: #fff;
    color: var(--sx-ink) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}

.sx-chip-link small {
    font-size: 13px;
    color: var(--sx-muted);
}

.sx-chip-link:hover {
    border-color: var(--sx-blue);
    color: var(--sx-blue) !important;
    background: var(--sx-blue-soft);
}

/* App logo */
.sx-app-logo {
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: 12px;
    border: 1px solid var(--sx-line);
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.sx-app-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sx-app-logo--sm {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.sx-app-logo--lg {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    box-shadow: var(--sx-shadow);
    border-color: transparent;
}

/* Small signals: score and Trustpilot */
.sx-signals {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    font-size: 14px;
    color: var(--sx-muted);
}

.sx-signals b {
    color: var(--sx-ink);
    font-weight: 700;
}

.sx-signals a {
    color: inherit;
    text-decoration: none;
}

.sx-signals a:hover {
    color: var(--sx-blue);
}

.sx-star {
    color: #00b67a;
}

/* Ranked app rows */
.sx-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.sx-app-row {
    display: grid;
    grid-template-columns: 40px 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius-lg);
    transition: border-color .15s, box-shadow .15s;
}

.sx-app-row:hover {
    border-color: var(--sx-line-2);
    box-shadow: var(--sx-shadow);
}

.sx-app-row__rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--sx-blue-soft);
    color: var(--sx-blue-ink);
    font-weight: 700;
    font-size: 15px;
}

.sx-app-row__main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.sx-app-row__name {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
}

.sx-app-row__name a,
.sx-app-card__name a {
    text-decoration: none;
}

.sx-app-row__name a:hover,
.sx-app-card__name a:hover {
    color: var(--sx-blue);
}

.sx-app-row__tagline {
    color: var(--sx-ink-2);
    font-size: 15px;
}

.sx-app-row__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.sx-tag--new {
    background: var(--sx-green-soft);
    color: #0b7a54;
    font-weight: 600;
}

.sx-app-row__side {
    display: grid;
    justify-items: end;
    gap: 12px;
}

.sx-app-row__buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (max-width: 760px) {
    .sx-app-row {
        grid-template-columns: 56px minmax(0, 1fr);
        align-items: start;
        gap: 14px 16px;
        padding: 18px;
        position: relative;
    }

    .sx-app-row__rank {
        position: absolute;
        top: -10px;
        left: -6px;
        width: 30px;
        height: 30px;
        font-size: 13px;
        background: var(--sx-blue);
        color: #fff;
        box-shadow: 0 0 0 3px #fff;
    }

    .sx-app-row__side {
        grid-column: 1 / -1;
        justify-items: start;
        grid-template-columns: 1fr auto;
        align-items: center;
        width: 100%;
    }
}

/* App cards grid */
.sx-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.sx-app-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius-lg);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.sx-app-card:hover {
    border-color: var(--sx-line-2);
    box-shadow: var(--sx-shadow);
    transform: translateY(-2px);
}

.sx-app-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sx-app-card__name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.sx-app-card__cat {
    font-size: 14px;
    color: var(--sx-muted);
}

.sx-app-card__tagline {
    color: var(--sx-ink-2);
    font-size: 15px;
    flex: 1;
}

.sx-app-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--sx-line);
}

/* Category cards and tiles */
.sx-filter {
    display: grid;
    gap: 8px;
    max-width: 520px;
    margin-bottom: 28px;
}

.sx-filter .sx-input {
    background: #fff;
}

.sx-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.sx-cat-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius-lg);
    transition: border-color .15s, box-shadow .15s;
}

.sx-cat-card:hover {
    border-color: var(--sx-line-2);
    box-shadow: var(--sx-shadow);
}

.sx-cat-card[hidden] {
    display: none;
}

.sx-cat-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.sx-cat-card h2 {
    font-size: 21px;
    font-weight: 700;
}

.sx-cat-card h2 a {
    text-decoration: none;
}

.sx-cat-card h2 a:hover {
    color: var(--sx-blue);
}

.sx-cat-card__copy {
    color: var(--sx-ink-2);
    font-size: 15px;
}

.sx-cat-card__foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--sx-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--sx-muted);
}

.sx-count {
    flex: none;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--sx-blue-soft);
    color: var(--sx-blue-ink);
    font-size: 13px;
    font-weight: 600;
}

.sx-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.sx-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}

.sx-tile:hover {
    border-color: var(--sx-blue);
    box-shadow: var(--sx-shadow);
}

.sx-tile b {
    font-size: 16px;
}

.sx-tile span {
    font-size: 14px;
    color: var(--sx-muted);
    white-space: nowrap;
}

.sx-empty {
    padding: 48px 24px;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--sx-line-2);
    border-radius: var(--sx-radius-lg);
    display: grid;
    gap: 8px;
    justify-items: center;
}

@media (max-width: 760px) {
    .sx-cat-grid {
        grid-template-columns: 1fr;
    }

    .sx-dir-section {
        padding: 48px 0;
    }
}

/* Segmented sort control */
.sx-seg {
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: 10px;
}

.sx-seg button {
    border: 0;
    background: transparent;
    font-family: var(--sx-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--sx-ink-2);
    padding: 8px 14px;
    border-radius: 7px;
    cursor: pointer;
}

.sx-seg button:hover {
    color: var(--sx-ink);
}

.sx-seg button[aria-pressed="true"] {
    background: var(--sx-blue);
    color: #fff;
}

/* App detail */
.sx-appdetail {
    /* Map the legacy tokens used by the comment editor and prose styles. */
    --border: var(--sx-line);
    --card: #fff;
    --card-soft: var(--sx-surface-2);
    --surface: #fff;
    --accent: var(--sx-blue);
    --accent-soft-border: rgba(26, 145, 240, .18);
    --pill: var(--sx-blue-soft);
    --text: var(--sx-ink);
    --text-main: var(--sx-ink);
    --muted: var(--sx-muted);
    --muted-strong: var(--sx-ink-2);
    --bg: var(--sx-surface-2);
}

.sx-app-hero {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 28px;
    align-items: start;
}

.sx-app-hero__copy {
    display: grid;
    gap: 10px;
}

.sx a.sx-eyebrow {
    color: var(--sx-blue);
    text-decoration: none;
}

.sx a.sx-eyebrow:hover {
    text-decoration: underline;
}

.sx-app-hero__copy .sx-lede {
    max-width: 640px;
}

.sx-app-hero__actions {
    display: grid;
    gap: 10px;
    min-width: 240px;
}

.sx-votes {
    display: flex;
    gap: 8px;
}

.sx-votes .vote-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    border-radius: var(--sx-radius);
    border: 1px solid var(--sx-line-2);
    background: #fff;
    font-family: var(--sx-font);
    font-size: 15px;
    font-weight: 600;
    color: var(--sx-ink-2);
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}

.sx-votes .vote-btn--up:hover {
    border-color: var(--sx-green);
    color: var(--sx-green);
    background: var(--sx-green-soft);
}

.sx-votes .vote-btn--down:hover {
    border-color: var(--sx-red);
    color: var(--sx-red);
    background: var(--sx-red-soft);
}

.sx-app-stats {
    margin-top: 32px;
}

.sx-app-stats .sx-stat b {
    font-size: 24px;
}

.sx-gallery__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.sx-gallery__controls {
    display: flex;
    gap: 8px;
}

.sx-gallery__viewport {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--sx-line);
    background: var(--sx-surface-2);
}

.sx-gallery__track {
    display: flex;
    transition: transform .35s ease;
    touch-action: pan-y;
}

.sx-gallery__slide {
    min-width: 100%;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
}

.sx-gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sx-gallery__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.sx-gallery__dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--sx-line-2);
    cursor: pointer;
    transition: width .2s, background .2s;
}

.sx-gallery__dots button.is-active {
    width: 24px;
    background: var(--sx-blue);
}

.sx .sx-prose {
    color: var(--sx-ink-2);
    font-size: 17px;
    line-height: 1.7;
}

.sx .sx-prose p,
.sx .sx-prose ul,
.sx .sx-prose ol,
.sx .sx-prose blockquote {
    margin: 0 0 16px;
}

.sx .sx-prose h2,
.sx .sx-prose h3,
.sx .sx-prose h4 {
    color: var(--sx-ink);
    line-height: 1.25;
    font-weight: 700;
    margin: 36px 0 12px;
}

.sx .sx-prose h2 {
    font-size: 26px;
}

.sx .sx-prose h3 {
    font-size: 21px;
    margin-top: 28px;
}

.sx .sx-prose > :first-child,
.sx .sx-prose > :first-child > :first-child {
    margin-top: 0;
}

.sx .sx-prose > :last-child,
.sx .sx-prose > :last-child > :last-child {
    margin-bottom: 0;
}

.sx .sx-prose ul,
.sx .sx-prose ol {
    padding-left: 22px;
    display: grid;
    gap: 8px;
}

.sx .sx-prose ul {
    list-style: disc;
}

.sx .sx-prose ol {
    list-style: decimal;
}

.sx .sx-prose li::marker {
    color: var(--sx-blue);
}

.sx .sx-prose strong {
    color: var(--sx-ink);
}

.sx .sx-prose a {
    color: var(--sx-blue);
}

.sx-side-card {
    display: grid;
    gap: 14px;
}

.sx-side-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sx-side-card__price {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.sx-side-card__score {
    font-size: 34px;
    font-weight: 700;
    color: #00b67a;
    line-height: 1;
}

.sx-cta-card {
    background: var(--sx-blue-soft);
    border-color: transparent;
}

.sx-cta-card p {
    color: var(--sx-ink-2);
    font-size: 15px;
}

.sx-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.sx-plans .sx-plan {
    grid-template-rows: auto auto 1fr;
    padding: 24px 20px;
}

.sx-plans .sx-plan__price b {
    font-size: 30px;
}

.sx-alt-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sx-alt {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--sx-line);
}

.sx-alt:first-child {
    padding-top: 0;
}

.sx-alt:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sx-alt h3 {
    font-size: 16px;
    font-weight: 700;
}

.sx-alt h3 a {
    text-decoration: none;
}

.sx-alt h3 a:hover {
    color: var(--sx-blue);
}

.sx-alt p {
    color: var(--sx-ink-2);
    font-size: 14px;
    margin-top: 2px;
}

.sx-appdetail .comment-form {
    padding: 0;
    border: 0;
    background: transparent;
    gap: 12px;
}

.sx-appdetail .comment-editor {
    color: var(--sx-ink);
    font-size: 16px;
}

.sx-appdetail .comment-list {
    display: grid;
    gap: 0;
    margin-top: 8px;
}

.sx-appdetail .comment {
    padding: 18px 0;
    border-top: 1px solid var(--sx-line);
    background: transparent;
    border-radius: 0;
}

.sx-appdetail .comment__meta {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 6px;
}

.sx-appdetail .comment__author {
    font-weight: 700;
    color: var(--sx-ink);
}

.sx-appdetail .comment__date {
    font-size: 13px;
    color: var(--sx-muted);
}

.sx-appdetail .comment__body {
    color: var(--sx-ink-2);
}

.sx-appdetail .comment__body p + p {
    margin-top: 10px;
}

.sx-appdetail .comment-empty {
    padding: 18px 0 0;
    margin-top: 8px;
    border: 0;
    border-top: 1px solid var(--sx-line);
    border-radius: 0;
    background: transparent;
    text-align: left;
    color: var(--sx-muted);
}

@media (max-width: 900px) {
    .sx-app-hero {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 20px;
    }

    .sx-app-logo--lg {
        width: 72px;
        height: 72px;
    }

    .sx-app-hero__actions {
        grid-column: 1 / -1;
        min-width: 0;
        grid-template-columns: 1fr 1fr;
    }

    .sx-app-hero__actions .sx-votes {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .sx-app-hero__actions {
        grid-template-columns: 1fr;
    }

    .sx-alt {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .sx-alt > :last-child {
        grid-column: 2;
        justify-self: start;
    }
}

/* ---------- Best-of guides (/best-{category}-{year}) ---------- */
.sx-best-hero {
    padding-bottom: 40px;
}

.sx-best-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    align-items: center;
}

.sx-best-hero__copy {
    display: grid;
    gap: 20px;
}

.sx-best-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    font-size: 14px;
    color: var(--sx-muted);
}

.sx-best-meta > span:not(.sx-pill) + span:not(.sx-pill)::before {
    content: "·";
    margin-right: 16px;
    color: var(--sx-line-2);
}

.sx-best-top {
    position: relative;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--sx-shadow-lg);
    padding: 32px 28px 28px;
    display: grid;
    gap: 16px;
}

.sx-best-top__ribbon {
    position: absolute;
    top: -14px;
    left: 28px;
    background: var(--sx-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
}

.sx-best-top__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sx-best-top h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.sx-best-top__award {
    font-size: 14px;
    font-weight: 600;
    color: var(--sx-blue);
}

.sx-best-top p {
    color: var(--sx-ink-2);
    font-size: 15px;
}

.sx-best-top__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--sx-line);
}

.sx-best-winners {
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.sx-best-winner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.sx-best-winner:hover {
    border-color: var(--sx-blue);
    box-shadow: var(--sx-shadow);
    transform: translateY(-1px);
}

.sx-best-winner__rank {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--sx-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 3px #f5f8fd;
}

.sx-best-winner__text {
    display: grid;
    gap: 2px;
    min-width: 0;
    line-height: 1.3;
}

.sx-best-winner__text b {
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sx-best-winner__text span {
    font-size: 13px;
    color: var(--sx-muted);
}

/* Sticky on-page nav */
.sx-best-jump {
    position: sticky;
    top: 68px;
    z-index: 30;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--sx-line);
}

.sx-best-jump .sx-container {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sx-best-jump .sx-container::-webkit-scrollbar {
    display: none;
}

.sx-best-jump a {
    flex: none;
    padding: 16px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--sx-ink-2);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.sx-best-jump a:hover {
    color: var(--sx-ink);
}

.sx-best-jump a[aria-current] {
    color: var(--sx-blue);
    border-bottom-color: var(--sx-blue);
}

.sx-best [id] {
    scroll-margin-top: 136px;
}

/* Intro */
.sx-best-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
}

.sx-best-intro .sx-prose {
    max-width: 720px;
}

.sx-best-disclosure {
    display: grid;
    gap: 10px;
    padding: 24px;
    background: var(--sx-surface-2);
    border-color: transparent;
    position: sticky;
    top: 140px;
}

.sx-best-disclosure__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--sx-green-soft);
    color: var(--sx-green);
    display: grid;
    place-items: center;
    font-weight: 700;
}

.sx-best-disclosure p {
    font-size: 14px;
    color: var(--sx-ink-2);
}

/* Comparison table */
.sx-best-table-card {
    padding: 8px 24px;
    overflow-x: auto;
}

.sx-best-table {
    width: 100%;
    border-collapse: collapse;
}

.sx-best-table td {
    vertical-align: middle;
    padding-top: 16px;
    padding-bottom: 16px;
}

.sx-best-table__product {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.sx-best-table__product:hover b {
    color: var(--sx-blue);
}

.sx-best-table__rank {
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 50%;
    background: var(--sx-blue-soft);
    color: var(--sx-blue-ink);
    font-size: 13px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.sx-best-table tbody tr:first-child .sx-best-table__rank {
    background: var(--sx-blue);
    color: #fff;
}

/* Methodology */
.sx-best-method {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
}

.sx-best-method__copy {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 150px;
}

.sx-best-criteria {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    counter-reset: crit;
}

.sx-best-criteria li {
    counter-increment: crit;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 4px 16px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius-lg);
}

.sx-best-criteria li::before {
    content: counter(crit);
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--sx-blue-soft);
    color: var(--sx-blue);
    font-weight: 700;
    font-size: 18px;
    display: grid;
    place-items: center;
}

.sx-best-criteria b {
    font-size: 17px;
}

.sx-best-criteria span {
    color: var(--sx-ink-2);
    font-size: 15px;
}

/* Reviews */
.sx-best-reviews {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 28px;
}

.sx-best-review {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--sx-line);
    overflow: hidden;
}

.sx-best-review__head {
    display: grid;
    grid-template-columns: 48px 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 28px 32px;
    border-bottom: 1px solid var(--sx-line);
}

.sx-best-review__rank {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--sx-blue-soft);
    color: var(--sx-blue-ink);
    font-size: 22px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.sx-best-review:first-child .sx-best-review__rank {
    background: var(--sx-blue);
    color: #fff;
}

.sx-best-review__title {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.sx-best-review__title h3 {
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.sx-best-review__title h3 a {
    text-decoration: none;
}

.sx-best-review__title h3 a:hover {
    color: var(--sx-blue);
}

.sx-best-review__title p {
    color: var(--sx-ink-2);
    font-size: 15px;
}

.sx-best-review__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 36px;
    padding: 32px;
}

.sx-best-review__main {
    display: grid;
    gap: 24px;
    align-content: start;
}

.sx .sx-best-verdict {
    padding: 18px 22px;
    background: var(--sx-blue-soft);
    border-left: 4px solid var(--sx-blue);
    border-radius: 0 12px 12px 0;
    color: var(--sx-ink);
    font-size: 17px;
    line-height: 1.6;
}

.sx-best-verdict strong {
    color: var(--sx-blue-ink);
}

.sx-best-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sx-best-pros,
.sx-best-cons {
    padding: 20px 22px;
    border-radius: 14px;
    display: grid;
    gap: 12px;
    align-content: start;
}

.sx-best-pros {
    background: var(--sx-green-soft);
}

.sx-best-cons {
    background: var(--sx-red-soft);
}

.sx-best-pros > b {
    color: #0b7a54;
}

.sx-best-cons > b {
    color: #9b1c1f;
}

.sx-best-pros ul,
.sx-best-cons ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.sx-best-pros li,
.sx-best-cons li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 8px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--sx-ink);
}

.sx-best-pros li::before {
    content: "✓";
    color: var(--sx-green);
    font-weight: 700;
}

.sx-best-cons li::before {
    content: "–";
    color: var(--sx-red);
    font-weight: 700;
}

.sx .sx-best-review__prose {
    font-size: 16px;
}

.sx-best-review__aside {
    display: grid;
    gap: 18px;
    align-content: start;
}

.sx-shot {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--sx-line);
    background: #fff;
    box-shadow: var(--sx-shadow);
}

.sx-shot__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    background: var(--sx-surface-2);
    border-bottom: 1px solid var(--sx-line);
}

.sx-shot__bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--sx-line-2);
}

.sx-shot__bar span {
    margin-left: 8px;
    flex: 1;
    font-size: 12px;
    color: var(--sx-muted);
    background: #fff;
    border-radius: 6px;
    padding: 3px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Show the whole screenshot at its own shape, never cropped. */
.sx-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.sx-shot--logo {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--sx-blue-soft), var(--sx-surface));
    box-shadow: none;
    border-color: transparent;
}

.sx-shot--logo img {
    width: 96px;
    height: 96px;
    aspect-ratio: auto;
    object-fit: contain;
}

.sx-best-facts {
    margin: 0;
    display: grid;
    border: 1px solid var(--sx-line);
    border-radius: 12px;
}

.sx-best-facts div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
}

.sx-best-facts div + div {
    border-top: 1px solid var(--sx-line);
}

.sx-best-facts dt {
    color: var(--sx-muted);
}

.sx-best-facts dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

.sx-best-review__links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.sx-best .sx-cta-band {
    background: linear-gradient(135deg, var(--sx-blue) 0%, #1170cd 100%);
}

@media (max-width: 1000px) {
    .sx-best-hero__grid,
    .sx-best-intro,
    .sx-best-method,
    .sx-best-review__body {
        grid-template-columns: 1fr;
    }

    .sx-best-hero__grid {
        gap: 40px;
    }

    .sx-best-top {
        max-width: 520px;
    }

    .sx-best-disclosure,
    .sx-best-method__copy {
        position: static;
    }

    .sx-best-method {
        gap: 32px;
    }

    .sx-best-review__aside {
        grid-row: 1;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }

    .sx-best-review__aside .sx-shot {
        grid-row: span 3;
    }
}

@media (max-width: 760px) {
    .sx-best-review__head {
        grid-template-columns: 56px minmax(0, 1fr);
        align-items: start;
        padding: 22px 20px;
        position: relative;
        gap: 14px;
    }

    .sx-best-review__rank {
        position: absolute;
        top: 14px;
        right: 16px;
        width: 34px;
        height: 34px;
        font-size: 15px;
        border-radius: 10px;
    }

    .sx-best-review__title {
        padding-right: 36px;
    }

    .sx-best-review__title h3 {
        font-size: 22px;
    }

    .sx-best-review__visit {
        grid-column: 1 / -1;
    }

    .sx-best-review__body {
        padding: 22px 20px;
        gap: 24px;
    }

    .sx-best-review__aside {
        grid-template-columns: 1fr;
    }

    .sx-best-proscons {
        grid-template-columns: 1fr;
    }

    .sx-best-winners {
        grid-template-columns: 1fr 1fr;
    }

    /* Comparison table becomes stacked cards */
    .sx-best-table-card {
        padding: 0;
        background: transparent;
        border: 0;
        overflow: visible;
    }

    .sx-best-table thead {
        display: none;
    }

    .sx-best-table,
    .sx-best-table tbody,
    .sx-best-table tr,
    .sx-best-table td {
        display: block;
    }

    .sx-best-table tbody {
        display: grid;
        gap: 12px;
    }

    .sx-best-table tr {
        background: #fff;
        border: 1px solid var(--sx-line);
        border-radius: 14px;
        padding: 16px 18px;
    }

    .sx-best-table td,
    .sx-best-table tr:last-child td {
        border: 0;
        padding: 6px 0;
        display: flex;
        justify-content: space-between;
        gap: 16px;
        text-align: right;
    }

    .sx-best-table td[data-label]::before {
        content: attr(data-label);
        color: var(--sx-muted);
        font-size: 14px;
        text-align: left;
    }

    .sx-best-table td:first-child {
        padding-bottom: 12px;
        margin-bottom: 6px;
        border-bottom: 1px solid var(--sx-line);
    }

    .sx-best-table td:first-child::before {
        display: none;
    }

    .sx-best-table td.sx-num {
        justify-content: flex-start;
        padding-top: 10px;
    }
}

@media (max-width: 460px) {
    .sx-best-winners {
        grid-template-columns: 1fr;
    }
}

/* Best-of guides: extra blocks used by the hand-written AI resume builders guide */
.sx-steps--4 {
    grid-template-columns: repeat(4, 1fr);
}

.sx-steps--4 .sx-step {
    padding: 26px;
}

.sx-steps--4 .sx-step__num {
    background: var(--sx-green-soft);
    color: var(--sx-green);
}

.sx-best-pros p,
.sx-best-cons p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--sx-ink);
}

.sx-best-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.sx-best-feature .sx-shot {
    position: sticky;
    top: 150px;
}

.sx-best-feature__copy {
    display: grid;
    gap: 22px;
}

.sx-best-regions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.sx-best-region {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius-lg);
}

.sx-best-region h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
}

.sx-best-region > p {
    color: var(--sx-ink-2);
    font-size: 15px;
}

.sx-best-region .sx-best-facts {
    margin-top: auto;
}

.sx-best-region__cities {
    font-size: 13px;
    color: var(--sx-muted) !important;
}

.sx-best-final {
    display: grid;
    gap: 14px;
    padding: 40px;
}

@media (max-width: 1000px) {
    .sx-steps--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sx-best-feature {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .sx-best-feature .sx-shot {
        position: static;
    }
}

@media (max-width: 560px) {
    .sx-steps--4 {
        grid-template-columns: 1fr;
    }

    .sx-best-regions {
        grid-template-columns: 1fr;
    }

    .sx-best-final {
        padding: 28px 22px;
    }
}

/* ---------- Blog ---------- */
.sx-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.sx-post-card { display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--sx-white); border: 1px solid var(--sx-line); border-radius: var(--sx-radius-lg); }
.sx-post-card h2 a { color: var(--sx-ink); text-decoration: none; }
.sx-post-card h2 a:hover { color: var(--sx-blue); }
.sx-post-meta { font-size: 14px; color: var(--sx-muted); }
.sx-post-hero { padding-bottom: 32px; }
.sx-post-title { font-size: clamp(32px, 5vw, 46px); }
.sx-post-hero .sx-lede { margin-top: 12px; }
.sx-post-hero .sx-post-meta { margin-top: 16px; }
.sx-post-body { padding-top: 40px; padding-bottom: 48px; }
.sx .sx-post-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 8px; }
.sx-post-stats > div { display: grid; gap: 4px; padding: 16px; background: var(--sx-blue-soft); border-radius: var(--sx-radius); }
.sx-post-stats b { font-size: 26px; line-height: 1.1; color: var(--sx-blue-ink); }
.sx-post-stats span { font-size: 14px; line-height: 1.45; color: var(--sx-ink-2); }
@media (max-width: 640px) { .sx .sx-post-stats { grid-template-columns: 1fr; } }
.sx-post-end { display: grid; gap: 40px; padding-bottom: 72px; }
.sx-post-sources ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; list-style: decimal; font-size: 15px; color: var(--sx-ink-2); }
.sx-post-sources a, .sx-post-related a { color: var(--sx-blue); overflow-wrap: anywhere; }
.sx-post-related ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; list-style: disc; }
