/* /features/ only (public/features.html, partials/_fx_*.html). */

.fx-page {
    --fx-nav: 64px;
    --fx-jump: 49px;
    --fx-accent: #1e1b4b;
    --fx-ink: #14131a;
    --fx-text: #5c574f;
    --fx-quiet: #6a645a;
    --fx-rule: #e2ded4;
    --fx-panel: #ffffff;
    background-color: #f7f5f0;
}
.dark .fx-page {
    --fx-accent: #cdc8f5;
    --fx-ink: #f7f5f0;
    --fx-text: #cdc7ba;
    --fx-quiet: #a39d92;
    --fx-rule: #3f3c40;
    --fx-panel: rgba(31, 30, 36, 0.5);
    background-color: var(--site-dark, #100f17);
}
.fx-page [id],
.fx-page [data-fx-stage] { scroll-margin-top: calc(var(--fx-nav) + var(--fx-jump) + 16px); }
.fx-alias { display: block; height: 0; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* In-page jump bar: sticks under the site's fixed nav. */
.fx-jump {
    position: sticky;
    top: var(--fx-nav);
    z-index: 40;
    background-color: rgba(247, 245, 240, 0.94);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--fx-rule);
}
.dark .fx-jump { background-color: rgba(16, 15, 23, 0.94); }
.fx-jump-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.fx-jump-list::-webkit-scrollbar { display: none; }
.fx-jump-list a {
    position: relative;
    display: block;
    padding: 0.875rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    white-space: nowrap;
    color: var(--fx-text);
    transition: color 0.15s ease;
}
.fx-jump-list a:hover { color: var(--fx-ink); }
.fx-jump-list a[aria-current="true"] { color: var(--fx-ink); }
.fx-jump-list a[aria-current="true"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background-color: var(--fx-accent);
}
.fx-jump-list a:focus-visible { outline: 2px solid var(--fx-accent); outline-offset: 2px; border-radius: 2px; }
@media (max-width: 479px) {
    /* The bar scrolls sideways here: fade its right edge so a cut label reads as more. */
    .fx-jump-list {
        justify-content: flex-start;
        gap: 1.125rem;
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
    }
    .fx-jump-list a { font-size: 0.8125rem; }
}

/* A group: eyebrow, one promise, one line, then its blocks. The homepage's
   band rhythm (72px, 128px from md); every other group on grey. */
.fx-group { padding: 72px 0; }
@media (min-width: 768px) { .fx-group { padding: 8rem 0; } }
/* Right under the jump bar the first group starts as the FAQ's does. */
.fx-jump + .fx-group { padding-top: 3rem; }
@media (min-width: 768px) { .fx-jump + .fx-group { padding-top: 4rem; } }
.fx-group--muted { background-color: #efece5; }
.dark .fx-group--muted { background-color: var(--site-dark-band, #1a1922); }
/* The heading spans the column like every section heading; the text under it
   keeps the measure. */
.fx-head { margin-bottom: 3rem; }
.fx-head > :not(h2) { max-width: 46rem; }
@media (min-width: 1024px) { .fx-head { margin-bottom: 4rem; } }
.fx-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e1b4b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
/* On dark the eyebrow is a muted paper tone: lavender is kept for links. */
.dark .fx-eyebrow { color: #a39d92; }
/* "Optional", as on the homepage pillar. */
.fx-tag {
    border-radius: 9999px;
    background-color: #e2ded4;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #3f3c40;
}
.dark .fx-tag { background-color: rgba(255, 255, 255, 0.1); color: #cdc7ba; }

/* A block: the proof beside its rows. Media first in the DOM (first on phones). */
.fx-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.fx-block + .fx-block,
.fx-block + .fx-panel { margin-top: 3.5rem; }
@media (min-width: 1024px) {
    .fx-block { align-items: start; column-gap: 5rem; }
    .fx-block + .fx-block,
    .fx-block + .fx-panel { margin-top: 5rem; }
    .fx-block--phone { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
    .fx-block--native { grid-template-columns: minmax(0, var(--fx-w)) minmax(0, 1fr); column-gap: 4.5rem; }
    .fx-block--wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: 4rem; }
    .fx-block--flip.fx-block--phone { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
    .fx-block--flip.fx-block--native { grid-template-columns: minmax(0, 1fr) minmax(0, var(--fx-w)); }
    .fx-block--flip.fx-block--wide { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
    .fx-block--flip .fx-media { order: 2; }
    .fx-block--phone .fx-copy { padding-top: 2rem; }
    /* The media column runs the block's full height, so the proof can stick
       beside the rows instead of leaving a hole under itself. */
    .fx-media { align-self: stretch; }
    [data-fx-stage] {
        position: sticky;
        top: calc(var(--fx-nav) + var(--fx-jump) + 24px);
        align-self: start;
    }
}
/* Your dashboard: from md the rows sit as a grid above one screen at the
   band's width, where a 1136px capture reads at its own size. On phones the
   screen comes first, as in every other block. */
@media (min-width: 768px) { .fx-block--stack .fx-copy { order: -1; } }
@media (min-width: 1024px) {
    .fx-block--stack { row-gap: 2rem; }
    .fx-block--stack .fx-rows--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0.75rem; }
}
/* Proofs never wider than they were recorded: a phone clip reads 1:1 at 340px. */
.fx-block--phone .fx-stage { max-width: 340px; margin: 0 auto; }
.fx-block--native .fx-stage { max-width: var(--fx-w); margin: 0 auto; }
/* The email card of the homepage hero, at the width of its column here. */
.fx-email .hero-email-card { width: 100%; max-width: none; }
/* The takeover drawn in HTML: as tall as the dashboard capture beside it allows. */
@media (min-width: 768px) { .fx-team-chat > div { height: 520px; } }
@media (min-width: 1024px) { .fx-block--phone .fx-stage { max-width: none; } }
.fx-copy { min-width: 0; }
.fx-block-title {
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--fx-ink);
}
.fx-lead { margin-top: 0.5rem; margin-bottom: 2rem; font-size: 1rem; line-height: 1.6; color: var(--fx-text); max-width: 40rem; }

/* A row: title, one sentence, where it stops. The text sits on the column's
   edge; a hovered or active row's card (::before) bleeds into the gutter, so
   it never moves the text. The same white card on either band. */
.fx-rows { display: grid; gap: 0.5rem; }
@media (min-width: 768px) {
    .fx-rows--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; row-gap: 1.25rem; }
}
.fx-row {
    position: relative;
    isolation: isolate;
    padding: 0.75rem 0;
}
.fx-row::before {
    content: "";
    position: absolute;
    inset: 0 -0.5rem;
    z-index: -1;
    border-radius: 6px;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
@media (min-width: 640px) { .fx-row::before { inset: 0 -0.75rem; } }
.fx-row--switch { cursor: pointer; }
.fx-row--switch:hover::before { background-color: rgba(255, 255, 255, 0.6); }
.fx-row.is-active::before { background-color: #fff; box-shadow: 0 0 0 1px var(--fx-rule); }
.dark .fx-row--switch:hover::before { background-color: rgba(255, 255, 255, 0.05); }
.dark .fx-row.is-active::before { background-color: rgba(255, 255, 255, 0.06); box-shadow: none; }
.fx-title {
    font-family: var(--display);
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--fx-ink);
}
.fx-title button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.fx-title button:focus-visible { outline: 2px solid var(--fx-accent); outline-offset: 3px; border-radius: 2px; }
.fx-row.is-active .fx-title { color: #1e1b4b; }
.dark .fx-row.is-active .fx-title { color: #ffffff; }
/* The one marker of a row that switches the proof: a play or image chip. */
.fx-cue {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background-color: rgba(30, 27, 75, 0.08);
    color: #1e1b4b;
    font-size: 9px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.fx-cue .fa-play { margin-left: 1px; }
.dark .fx-cue { background-color: rgba(255, 255, 255, 0.08); color: #cdc7ba; }
.fx-row.is-active .fx-cue { background-color: #1e1b4b; color: #fff; }
.dark .fx-row.is-active .fx-cue { background-color: #f4f1ea; color: #1e1b4b; }
.fx-body {
    margin-top: 0.375rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--fx-text);
    text-wrap: pretty;
}
.fx-stop {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #5c574f;
    text-wrap: pretty;
}
.dark .fx-stop { color: #a39d92; }
.fx-stop-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #5c574f;
}
.dark .fx-stop-label { color: #a39d92; }
.fx-links { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.fx-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e1b4b;
    text-decoration: none;
}
.fx-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fx-links a i { font-size: 0.75rem; }
.dark .fx-links a { color: #cdc8f5; }
.fx-block-link { margin-top: 1.5rem; }
.fx-try { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.55; text-wrap: pretty; }
.fx-try-label { color: #5c574f; }
.dark .fx-try-label { color: #a39d92; }
.fx-try a {
    font-weight: 600;
    color: #1e1b4b;
    text-decoration: underline;
    text-decoration-color: rgba(30, 27, 75, 0.35);
    text-underline-offset: 3px;
}
.fx-try a:hover { text-decoration-color: currentColor; }
.dark .fx-try a { color: #cdc8f5; text-decoration-color: rgba(205, 200, 245, 0.4); }
.fx-pair { margin-top: 1rem; display: grid; gap: 0.75rem; max-width: 30rem; }
.fx-pair figcaption { margin-top: 0.375rem; }
.fx-pair figcaption p { font-size: 0.875rem; font-weight: 500; }

/* A row switch fades the new proof in. */
@media (prefers-reduced-motion: no-preference) {
    [data-fx-pane] { animation: fxIn 0.18s ease-out; }
}
@keyframes fxIn {
    from { opacity: 0; transform: translateY(4px); }
}

/* "Ways shoppers ask": three rows, the title in a column of its own. */
.fx-strip { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--fx-rule); }
.fx-strip-title {
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fx-quiet);
    margin-bottom: 0.75rem;
}
.fx-strip-items { display: grid; gap: 0.25rem; }
@media (min-width: 640px) {
    .fx-strip .fx-row {
        display: grid;
        grid-template-columns: 180px minmax(0, 1fr);
        column-gap: 1.5rem;
        max-width: none;
    }
    .fx-strip .fx-row > :not(.fx-title) { grid-column: 2; }
    .fx-strip .fx-row > .fx-body { margin-top: 0; }
}
.fx-strip .fx-title { font-size: 1rem; }
.fx-strip .fx-body { font-size: 0.875rem; line-height: 1.6; }

/* Set up: the homepage's tiles. */
.fx-tile {
    border: 1px solid var(--fx-rule);
    border-radius: 10px;
    background-color: #fff;
    padding: 1.5rem;
}
.dark .fx-tile { background-color: transparent; }
.fx-tile .fx-links { margin-top: 1rem; }

/* Store rules: a text panel (no proof of its own). */
.fx-panel {
    display: grid;
    gap: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--fx-rule);
    border-radius: 10px;
    background-color: var(--fx-panel);
}
.fx-group--muted .fx-panel { background-color: #fff; }
.dark .fx-group--muted .fx-panel { background-color: rgba(16, 15, 23, 0.6); }
@media (min-width: 640px) { .fx-panel { padding: 2rem; } }
@media (min-width: 1024px) {
    .fx-panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 5rem; padding: 2.75rem 3rem; }
}
.fx-panel .fx-lead { margin-bottom: 0; }
.fx-points { display: grid; gap: 0.75rem; }
.fx-points li { display: flex; gap: 0.75rem; font-size: 1rem; line-height: 1.55; color: var(--fx-text); }
.fx-points i { margin-top: 0.3rem; font-size: 0.75rem; color: #1e1b4b; }
.dark .fx-points i { color: #cdc7ba; }
.fx-panel .fx-stop { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--fx-rule); }
