/* =============================================================================
   feature-plus.css — RestioX marketing site
   -----------------------------------------------------------------------------
   Shared EXTENSION component library for the feature / product pages.
   Everything here is namespaced `.fx-*` and is deliberately additive: this file
   never redefines, extends or overrides any `.fp-*` class from style.css.
   Load it alongside style.css (via $page_css) on any page that needs bento
   grids, tool grids, timelines, comparison tables, FAQ accordions, device
   mockups, code samples or mid-page CTA bands.

   Design tokens are copied verbatim from the `.fp-*` block so the two
   vocabularies are visually continuous:
     purple #6f42c1 / #9333ea / #9b5cff - ink #0f172a - muted #6b7280
     card radius 20px - shadow 0 20px 50px rgba(0,0,0,.05)
     hover translateY(-8px) + 0 30px 70px rgba(111,66,193,.12)

   Constraints honoured throughout:
     - mobile-first, zero horizontal overflow at 375px
     - every interactive element has a 2px #6f42c1 :focus-visible outline
     - tap targets >= 44px
     - all motion disabled under prefers-reduced-motion: reduce
     - NO CSS nesting and NO :has() — must run on older Safari

   Companion script: assets/js/fx-enhance.js (FAQ accordion + metric count-up).
   ============================================================================= */


/* -----------------------------------------------------------------------------
   0. Typographic helpers (mirror .fp-label / .fp-section-title / .fp-body-text)
   -------------------------------------------------------------------------- */
.fx-eyebrow {
    display: block;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6f42c1;
    margin-bottom: 14px;
}

.fx-h2 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 18px;
}
.fx-h2 span {
    background: linear-gradient(90deg, #6f42c1, #9333ea);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fx-lead {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.75;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .fx-h2 { font-size: 36px; }
}


/* -----------------------------------------------------------------------------
   1. Utility grids — .fx-grid-2 / .fx-grid-3 / .fx-grid-4
   -------------------------------------------------------------------------- */
.fx-grid-2,
.fx-grid-3,
.fx-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 576px) {
    .fx-grid-2,
    .fx-grid-3,
    .fx-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .fx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    .fx-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* -----------------------------------------------------------------------------
   2. Bento grid — .fx-bento > .fx-bento-item (--wide / --tall)
   -------------------------------------------------------------------------- */
.fx-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fx-bento-item {
    display: block;
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,.05);
    border: 1px solid rgba(111,66,193,.06);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    /* Own stacking context so the decorative wash below can sit at z-index -1:
       above the card background, behind every child including bare text. */
    isolation: isolate;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.fx-bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(111,66,193,.12);
    border-color: rgba(111,66,193,.18);
}

/* Decorative corner wash */
.fx-bento-item::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111,66,193,.10) 0%, rgba(147,51,234,0) 70%);
    pointer-events: none;
    z-index: -1;
}

.fx-bento-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(111,66,193,.1), rgba(155,92,255,.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.fx-bento-icon i { font-size: 26px; color: #6f42c1; }

.fx-bento-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.35;
    position: relative;
    z-index: 1;
}
.fx-bento-text {
    font-size: 14px;
    line-height: 1.65;
    color: #6b7280;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Two columns from 768px, three from 992px. Spans are declared only inside the
   media queries, so below 768px the grid is a clean single stack and the
   --wide / --tall modifiers are inert. */
@media (min-width: 768px) {
    .fx-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fx-bento-item--wide { grid-column: span 2; }
    .fx-bento-item--tall { grid-row: span 2; }
}
@media (min-width: 992px) {
    .fx-bento {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: minmax(170px, auto);
    }
    .fx-bento-item { padding: 32px 28px; }
}


/* -----------------------------------------------------------------------------
   3. Tool grid — dense capability tiles (built for the 18 AI tools)
   -------------------------------------------------------------------------- */
.fx-tool-grid {
    display: grid;
    /* auto-fit minmax(240px, 1fr). The min() guard stops a fixed 240px track
       from forcing horizontal scroll inside narrow parents at 375px. */
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fx-tool {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid rgba(111,66,193,.10);
    border-radius: 16px;
    padding: 18px;
    min-height: 44px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(0,0,0,.04);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.fx-tool:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(111,66,193,.12);
    border-color: rgba(111,66,193,.28);
}

.fx-tool-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(111,66,193,.1), rgba(155,92,255,.15));
    display: flex;
    align-items: center;
    justify-content: center;
}
.fx-tool-icon i { font-size: 21px; color: #6f42c1; }

.fx-tool-body { min-width: 0; }

.fx-tool-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 2px 0 5px;
    line-height: 1.3;
    overflow-wrap: break-word;
}
.fx-tool-desc {
    display: block;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
    overflow-wrap: break-word;
}


/* -----------------------------------------------------------------------------
   4. Integration logos — .fx-logos > .fx-logo
   -------------------------------------------------------------------------- */
.fx-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fx-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.06);
    border-radius: 16px;
    padding: 16px 18px;
    min-height: 76px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(0,0,0,.04);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.fx-logo:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(111,66,193,.12);
    border-color: rgba(111,66,193,.22);
}

/* Rounded square holding an icon or a 2-letter monogram */
.fx-logo-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(111,66,193,.1), rgba(155,92,255,.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #6f42c1;
    overflow: hidden;
}
.fx-logo-mark i { font-size: 23px; color: #6f42c1; }
.fx-logo-mark img { max-width: 62%; max-height: 62%; display: block; }

.fx-logo-body { min-width: 0; }

.fx-logo-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0;
    overflow-wrap: break-word;
}
.fx-logo-tag {
    display: block;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin: 3px 0 0;
    overflow-wrap: break-word;
}


/* -----------------------------------------------------------------------------
   5. Split section — .fx-split > .fx-split-copy + .fx-split-media
   -------------------------------------------------------------------------- */
.fx-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: center;
}
.fx-split-copy  { min-width: 0; }
.fx-split-media { min-width: 0; position: relative; }
.fx-split-media img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(111,66,193,.15);
}

@media (min-width: 992px) {
    .fx-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 56px;
    }
    /* Flip visual/copy order on desktop only — the stacked mobile order always
       stays copy-first so the page still reads top to bottom. */
    .fx-split--rev .fx-split-copy  { order: 2; }
    .fx-split--rev .fx-split-media { order: 1; }
}


/* -----------------------------------------------------------------------------
   6. Vertical process timeline — .fx-timeline > .fx-tl-item
   -------------------------------------------------------------------------- */
.fx-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fx-tl-item {
    position: relative;
    padding: 0 0 30px 56px;
}
.fx-tl-item:last-child { padding-bottom: 0; }

/* Connecting rule: drawn per item, from just under its own dot down to the
   next dot. The last item never draws one, so the rule can never overflow
   past the final dot. */
.fx-tl-item::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: -4px;
    width: 2px;
    background: linear-gradient(180deg, rgba(111,66,193,.35), rgba(147,51,234,.12));
    border-radius: 2px;
}
.fx-tl-item:last-child::before { display: none; }

.fx-tl-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6f42c1, #9b5cff);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(111,66,193,.28);
    z-index: 1;
}
.fx-tl-dot i { font-size: 19px; color: #fff; }

.fx-tl-body { min-width: 0; padding-top: 4px; }
.fx-tl-body h3,
.fx-tl-body h4,
.fx-tl-body h5 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.35;
}
.fx-tl-body p {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0 0 10px;
}
.fx-tl-body p:last-child { margin-bottom: 0; }

.fx-tl-time {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #6f42c1;
    margin-bottom: 6px;
}

@media (min-width: 768px) {
    .fx-tl-item { padding-left: 64px; padding-bottom: 36px; }
    .fx-tl-body h3,
    .fx-tl-body h4,
    .fx-tl-body h5 { font-size: 18px; }
    .fx-tl-body p { font-size: 15px; }
}


/* -----------------------------------------------------------------------------
   7. Comparison table — .fx-compare-scroll > .fx-compare
   -------------------------------------------------------------------------- */
.fx-compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.05);
    border: 1px solid rgba(111,66,193,.08);
    max-width: 100%;
}

.fx-compare {
    width: 100%;
    min-width: 620px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    color: #374151;
    margin: 0;
}

.fx-compare caption {
    caption-side: top;
    text-align: left;
    padding: 18px 20px 0;
    font-size: 13px;
    color: #6b7280;
}

.fx-compare th,
.fx-compare td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #f1ecfb;
}

.fx-compare thead th {
    background: #faf7ff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #6f42c1;
    white-space: nowrap;
}

.fx-compare tbody th {
    font-weight: 700;
    color: #0f172a;
}

.fx-compare tbody tr:last-child th,
.fx-compare tbody tr:last-child td { border-bottom: 0; }

.fx-compare tbody tr:hover th,
.fx-compare tbody tr:hover td { background: #fbf9ff; }

/* Optional highlight for the RestioX column */
.fx-compare .fx-col-hi { background: rgba(111,66,193,.05); }
.fx-compare thead .fx-col-hi { background: rgba(111,66,193,.10); }

/* Cell states */
.fx-yes { color: #15803d; font-weight: 700; }
.fx-no  { color: #9ca3af; font-weight: 600; }
.fx-yes i { color: #15803d; font-size: 18px; vertical-align: -2px; }
.fx-no  i { color: #c9ccd3; font-size: 18px; vertical-align: -2px; }
/* Glyph fallback when the cell is left completely empty */
.fx-yes:empty::before { content: '\2713'; font-size: 16px; }
.fx-no:empty::before  { content: '\2014'; font-size: 16px; }

/* Sticky first column on desktop so the row label stays visible while the
   comparison columns scroll. Needs an opaque background to cover cells. */
@media (min-width: 768px) {
    .fx-compare th:first-child,
    .fx-compare td:first-child {
        position: -webkit-sticky;
        position: sticky;
        left: 0;
        z-index: 2;
        background: #fff;
        box-shadow: 1px 0 0 0 #f1ecfb;
    }
    .fx-compare thead th:first-child {
        z-index: 3;
        background: #faf7ff;
    }
    .fx-compare tbody tr:hover th:first-child,
    .fx-compare tbody tr:hover td:first-child { background: #fbf9ff; }
}


/* -----------------------------------------------------------------------------
   8. Metrics row — .fx-metrics > .fx-metric
   -------------------------------------------------------------------------- */
.fx-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fx-metric {
    background: #fff;
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,.05);
    border: 1px solid rgba(111,66,193,.06);
    transition: transform .3s ease, box-shadow .3s ease;
}
.fx-metric:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(111,66,193,.12);
}

.fx-metric-num {
    display: block;
    font-size: 38px;
    line-height: 1.1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    -webkit-font-feature-settings: "tnum";
    font-feature-settings: "tnum";
    background: linear-gradient(135deg, #6f42c1, #9b5cff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 8px;
}
.fx-metric-lbl {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

@media (min-width: 768px) {
    .fx-metric-num { font-size: 42px; }
}


/* -----------------------------------------------------------------------------
   9. FAQ accordion — .fx-faq > .fx-faq-item > button.fx-faq-q + .fx-faq-a
   -------------------------------------------------------------------------- */
.fx-faq {
    max-width: 860px;
    margin: 0 auto;
}

.fx-faq-item {
    background: #fff;
    border: 1px solid rgba(111,66,193,.10);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
    margin-bottom: 14px;
    overflow: hidden;
}
.fx-faq-item:last-child { margin-bottom: 0; }

/* The question button should be wrapped in a heading for document outline
   (h3 by default). Neutralise the heading so only the button styles show. */
.fx-faq-item h2,
.fx-faq-item h3,
.fx-faq-item h4,
.fx-faq-item h5 {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.fx-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 56px;
    padding: 18px 20px;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 16px;
    text-align: left;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: #0f172a;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .25s ease, color .25s ease;
}
.fx-faq-q:hover { background: #faf7ff; color: #6f42c1; }
.fx-faq-q[aria-expanded="true"] { color: #6f42c1; }

/* Pure-CSS chevron — no icon-font dependency, so it can never render as a
   blank box if a glyph is missing from the subsetted Phosphor build. */
.fx-faq-q::after {
    content: '';
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-right: 4px;
    border-right: 2px solid #6f42c1;
    border-bottom: 2px solid #6f42c1;
    transform: translateY(-3px) rotate(45deg);
    transform-origin: center;
    transition: transform .3s ease;
}
.fx-faq-q[aria-expanded="true"]::after {
    transform: translateY(2px) rotate(-135deg);
}

.fx-faq-a {
    padding: 0 20px 20px;
    font-size: 15px;
    line-height: 1.75;
    color: #6b7280;
}
.fx-faq-a p { margin: 0 0 12px; }
.fx-faq-a p:last-child { margin-bottom: 0; }
/* Closed state is the native [hidden] attribute; re-assert it because some
   resets set an explicit display on the element type. */
.fx-faq-a[hidden] { display: none; }


/* -----------------------------------------------------------------------------
   10. Phone mockup — .fx-phone > .fx-phone-notch + .fx-phone-screen
   -------------------------------------------------------------------------- */
.fx-phone {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 12px;
    border-radius: 42px;
    background: linear-gradient(160deg, #241245 0%, #150a2c 55%, #2a1550 100%);
    box-shadow: 0 30px 80px rgba(111,66,193,.28), 0 0 0 1px rgba(111,66,193,.18);
    -webkit-user-select: none;
    user-select: none;
}

.fx-phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 104px;
    height: 22px;
    border-radius: 0 0 14px 14px;
    background: #150a2c;
    z-index: 2;
    pointer-events: none;
}

.fx-phone-screen {
    position: relative;
    border-radius: 32px;
    background: #fff;
    overflow: hidden;
    min-height: 500px;
    padding: 42px 14px 18px;
}

@media (min-width: 768px) {
    .fx-phone { max-width: 320px; }
    .fx-phone-screen { min-height: 560px; }
}


/* -----------------------------------------------------------------------------
   11. Kiosk mockup — .fx-kiosk > .fx-kiosk-screen
   -------------------------------------------------------------------------- */
.fx-kiosk {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 26px;
    padding: 16px 16px 34px;
    border-radius: 28px;
    background: linear-gradient(160deg, #2a1550 0%, #150a2c 60%, #241245 100%);
    box-shadow: 0 30px 80px rgba(111,66,193,.26), 0 0 0 1px rgba(111,66,193,.18);
    -webkit-user-select: none;
    user-select: none;
}
/* Pedestal foot */
.fx-kiosk::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    width: 58%;
    height: 14px;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(180deg, #241245, #120823);
    box-shadow: 0 14px 26px rgba(21,10,44,.28);
}

.fx-kiosk-screen {
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    min-height: 540px;
    padding: 18px 16px;
}

@media (min-width: 768px) {
    .fx-kiosk { max-width: 360px; }
    .fx-kiosk-screen { min-height: 640px; }
}


/* -----------------------------------------------------------------------------
   12. Code sample — .fx-code > .fx-code-bar + .fx-code-body
   -------------------------------------------------------------------------- */
.fx-code {
    background: #150e29;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(21,14,41,.35), 0 0 0 1px rgba(111,66,193,.22);
    max-width: 100%;
}

.fx-code-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    background: rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.07);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    color: rgba(255,255,255,.62);
}
.fx-code-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    background: rgba(255,255,255,.22);
}
.fx-code-dot-r { background: #ff5f57; }
.fx-code-dot-y { background: #febc2e; }
.fx-code-dot-g { background: #28c840; }
.fx-code-name  { margin-left: 6px; }

.fx-code-body {
    display: block;
    margin: 0;
    padding: 18px 18px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 12.5px;
    line-height: 1.75;
    color: #e6e1f5;
    white-space: pre;
    -moz-tab-size: 2;
    tab-size: 2;
}
.fx-code-body code {
    font: inherit;
    color: inherit;
    background: none;
    padding: 0;
}
/* Optional hand-written token colours */
.fx-code-body .tok-key { color: #c4a2ff; }
.fx-code-body .tok-str { color: #7ee2a8; }
.fx-code-body .tok-num { color: #ffc46b; }
.fx-code-body .tok-com { color: #8b82a8; font-style: italic; }

@media (min-width: 768px) {
    .fx-code-body { font-size: 13.5px; padding: 22px; }
}


/* -----------------------------------------------------------------------------
   13. Mid-page CTA band — .fx-cta-band > .fx-cta-inner
   -------------------------------------------------------------------------- */
.fx-cta-band {
    position: relative;
    border-radius: 24px;
    padding: 34px 24px;
    background: linear-gradient(135deg, #6f42c1 0%, #9333ea 100%);
    box-shadow: 0 26px 60px rgba(111,66,193,.28);
    overflow: hidden;
}
.fx-cta-band::before {
    content: '';
    position: absolute;
    top: -140px;
    right: -110px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    filter: blur(60px);
    pointer-events: none;
}

.fx-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.fx-cta-copy { min-width: 0; }

.fx-cta-band h2,
.fx-cta-band h3,
.fx-cta-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    margin: 0 0 8px;
}
.fx-cta-band p,
.fx-cta-text {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,.82);
    margin: 0;
    max-width: 62ch;
}

.fx-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 13px 28px;
    border: 0;
    border-radius: 50px;
    background: #fff;
    color: #6f42c1;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(21,10,44,.20);
    transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.fx-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(21,10,44,.28);
    background: #faf7ff;
    color: #6f42c1;
}
.fx-cta-btn i { font-size: 17px; }

@media (min-width: 768px) {
    .fx-cta-band { padding: 42px 44px; }
    .fx-cta-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
    }
    .fx-cta-band h2,
    .fx-cta-band h3,
    .fx-cta-title { font-size: 28px; }
}


/* -----------------------------------------------------------------------------
   14. Pill row — .fx-pill-row > .fx-pill
   -------------------------------------------------------------------------- */
.fx-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fx-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 50px;
    background: rgba(111,66,193,.08);
    border: 1px solid rgba(111,66,193,.14);
    color: #6f42c1;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.fx-pill i { font-size: 15px; }

.fx-pill--green  { background: #f0fdf4; border-color: rgba(21,128,61,.18); color: #15803d; }
.fx-pill--orange { background: #fff7ed; border-color: rgba(194,65,12,.18);  color: #c2410c; }
.fx-pill--plain  { background: #f4f5f7; border-color: rgba(15,23,42,.08);   color: #4b5563; }

/* Interactive pills need a real tap target */
a.fx-pill,
button.fx-pill {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
    cursor: pointer;
    font-family: inherit;
}
a.fx-pill:hover,
button.fx-pill:hover {
    background: rgba(111,66,193,.14);
    border-color: rgba(111,66,193,.30);
    transform: translateY(-2px);
}


/* -----------------------------------------------------------------------------
   15. Callout note — .fx-note (+ .fx-note-icon / .fx-note-body)
   -------------------------------------------------------------------------- */
.fx-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(111,66,193,.20);
    border-left-width: 4px;
    border-radius: 14px;
    background: #faf7ff;
    color: #374151;
    font-size: 14px;
    line-height: 1.7;
}
.fx-note p { margin: 0 0 10px; }
.fx-note p:last-child { margin-bottom: 0; }

.fx-note-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: rgba(111,66,193,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6f42c1;
}
.fx-note-icon i { font-size: 18px; color: inherit; }

.fx-note-body { min-width: 0; }

.fx-note-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.fx-note--ok { border-color: rgba(21,128,61,.25); background: #f0fdf4; }
.fx-note--ok .fx-note-icon { background: rgba(21,128,61,.12); color: #15803d; }

.fx-note--warn { border-color: rgba(194,65,12,.25); background: #fff7ed; }
.fx-note--warn .fx-note-icon { background: rgba(194,65,12,.12); color: #c2410c; }


/* -----------------------------------------------------------------------------
   16. Focus visibility — every interactive fx element, plus links inside them
   -------------------------------------------------------------------------- */
.fx-faq-q:focus-visible,
.fx-compare-scroll:focus-visible,
a.fx-bento-item:focus-visible,
button.fx-bento-item:focus-visible,
a.fx-tool:focus-visible,
button.fx-tool:focus-visible,
a.fx-logo:focus-visible,
a.fx-pill:focus-visible,
button.fx-pill:focus-visible,
.fx-bento-item a:focus-visible,
.fx-bento-item button:focus-visible,
.fx-tool a:focus-visible,
.fx-logo a:focus-visible,
.fx-metric a:focus-visible,
.fx-tl-body a:focus-visible,
.fx-note a:focus-visible,
.fx-faq-a a:focus-visible,
.fx-compare a:focus-visible,
.fx-split-copy a:focus-visible,
.fx-code a:focus-visible {
    outline: 2px solid #6f42c1;
    outline-offset: 3px;
}

/* On the purple CTA band a purple ring would be invisible, so the same 2px
   ring is drawn in white with the identical 3px offset. */
.fx-cta-btn:focus-visible,
.fx-cta-inner a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Fallback for engines that do not support :focus-visible (older Safari):
   keep a ring on :focus, then remove it again wherever :focus-visible IS
   supported and did not match. */
.fx-faq-q:focus,
.fx-cta-btn:focus {
    outline: 2px solid #6f42c1;
    outline-offset: 3px;
}
.fx-cta-btn:focus { outline-color: #ffffff; }

.fx-faq-q:focus:not(:focus-visible),
.fx-cta-btn:focus:not(:focus-visible) {
    outline: none;
}


/* -----------------------------------------------------------------------------
   17. Reduced motion — kill every fx transition, animation and hover shift
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    [class*="fx-"],
    [class*="fx-"]::before,
    [class*="fx-"]::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
    .fx-bento-item:hover,
    .fx-tool:hover,
    .fx-logo:hover,
    .fx-metric:hover,
    .fx-cta-btn:hover,
    a.fx-pill:hover,
    button.fx-pill:hover {
        transform: none !important;
    }
}
