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

.fx-page {
    --fx-nav: 64px;
    --fx-jump: 49px;
    --fx-accent: #4f46e5;
    --fx-ink: #111827;
    --fx-text: #4b5563;
    --fx-quiet: #6b7280;
    --fx-rule: #e5e7eb;
    --fx-hair: #f3f4f6;
    --fx-panel: #f9fafb;
    background-color: #fff;
}
.dark .fx-page {
    --fx-accent: #a5b4fc;
    --fx-ink: #f9fafb;
    --fx-text: #d1d5db;
    --fx-quiet: #9ca3af;
    --fx-rule: #374151;
    --fx-hair: #1f2937;
    --fx-panel: rgba(31, 41, 55, 0.5);
    background-color: var(--site-dark, #0b0f1a);
}
.fx-page [id] { 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(255, 255, 255, 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(11, 15, 26, 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-quiet);
    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) {
    .fx-jump-list { justify-content: flex-start; gap: 1.125rem; }
    .fx-jump-list a { font-size: 0.8125rem; }
}

/* A group: eyebrow, one promise, one line, then its blocks. */
.fx-group { padding: 3.5rem 0; border-top: 1px solid var(--fx-hair); }
.fx-jump + .fx-group { border-top: 0; }
@media (min-width: 1024px) { .fx-group { padding: 5.5rem 0; } }
.fx-group--quiet { padding: 4rem 0; }
.fx-head { max-width: 44rem; margin-bottom: 2.5rem; }
@media (min-width: 1024px) { .fx-head { margin-bottom: 3.5rem; } }
.fx-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4f46e5;
    margin-bottom: 1rem;
}
.dark .fx-eyebrow { color: #a5b4fc; }
.fx-h2 {
    font-size: 1.875rem;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fx-ink);
    text-wrap: balance;
}
@media (min-width: 768px) { .fx-h2 { font-size: 2.5rem; } }
.fx-line {
    margin-top: 1rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--fx-text);
    max-width: 38rem;
    text-wrap: pretty;
}

/* 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, 400px) minmax(0, 1fr); }
    .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, 400px); }
    .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;
    }
    /* Set up: the four looks as one strip above the rows; a "top" stage (customer
       emails) the same way, full width. */
    .fx-block--brand,
    .fx-block--top { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
    .fx-block--brand [data-fx-stage],
    .fx-block--top [data-fx-stage] { position: static; }
    .fx-block--top .fx-copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; column-gap: 4rem; align-items: start; }
    .fx-block--top .fx-copy > .fx-block-title,
    .fx-block--top .fx-copy > .fx-lead { grid-column: 1; }
    .fx-block--top .fx-copy > .fx-rows { grid-column: 2; grid-row: 1 / span 3; }
    .fx-block--top .fx-copy > .fx-block-link { grid-column: 1; margin-top: 0; }
    .fx-block--brand .fx-rows--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.fx-block--phone .fx-stage { max-width: 320px; margin: 0 auto; }
@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. Rows sit in a negative gutter,
   so a hovered or active row's tint lines its text up with the block title. */
.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;
    margin: 0 -0.5rem;
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
    max-width: calc(40rem + 1rem);
    transition: background-color 0.15s ease;
}
/* Phones get the narrower gutter, so the tint stays clear of the screen edge. */
@media (min-width: 640px) {
    .fx-row { margin: 0 -0.75rem; padding: 0.75rem; max-width: calc(40rem + 1.5rem); }
}
.fx-row--switch { cursor: pointer; }
.fx-row--switch:hover { background-color: #f9fafb; }
.dark .fx-row--switch:hover { background-color: rgba(255, 255, 255, 0.05); }
.fx-row.is-active { background-color: #f5f5ff; }
.dark .fx-row.is-active { background-color: rgba(99, 102, 241, 0.1); }
.fx-title {
    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 #4f46e5; outline-offset: 3px; border-radius: 2px; }
.fx-row.is-active .fx-title { color: #4338ca; }
.dark .fx-row.is-active .fx-title { color: #c7d2fe; }
/* 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: #eef2ff;
    color: #4f46e5;
    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(99, 102, 241, 0.15); color: #a5b4fc; }
.fx-row.is-active .fx-cue { background-color: #4f46e5; color: #fff; }
.dark .fx-row.is-active .fx-cue { background-color: #6366f1; color: #fff; }
.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: #6b7280;
    text-wrap: pretty;
}
.dark .fx-stop { color: #9ca3af; }
.fx-stop-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}
.dark .fx-stop-label { color: #9ca3af; }
.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: #4338ca;
    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: #a5b4fc; }
.fx-block-link { margin-top: 1.5rem; }
.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-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    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; }

/* 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: 1rem;
    background-color: var(--fx-panel);
}
@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: #4f46e5; }
.dark .fx-points i { color: #a5b4fc; }
.fx-panel .fx-stop { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--fx-rule); }
