/* =============================================================================
   ABOUT — page-specific styles
   CR: fysh-about-2026-06-24
   Global tokens (.container, :root vars, .btn) loaded by head.php shared sheets.
============================================================================= */

/* ── Hero band ────────────────────────────────────────────────────────────── */

.about-hero {
    background: var(--navy);
    color: var(--white);
    padding: 4.5rem 0 3.5rem;
}

.about-hero__inner {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.about-hero__content { flex: 1; min-width: 0; }

.about-hero__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.about-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.about-hero__sub {
    font-size: 1.025rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.72);
    max-width: 520px;
    margin-bottom: 2rem;
}

.about-hero__ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.about-hero__stats {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-hero__stat {
    text-align: center;
    padding: 1.75rem 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.about-hero__stat:last-child { border-bottom: none; }

.about-hero__stat-val {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.about-hero__stat-lbl {
    display: block;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.48);
    margin-top: 0.35rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ── Shared section structure ─────────────────────────────────────────────── */

.about-section { padding: 5rem 0; }
.about-section--white { background: var(--white); }
.about-section--cream { background: #F8F5F0; }
.about-section--navy  { background: var(--navy); }

.about-section__hdr {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.about-section__hdr h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.about-section__hdr p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
}

.about-section__hdr--white h2 { color: var(--white); }
.about-section__hdr--white p  { color: rgba(255,255,255,0.58); }

/* ── What is FYSH — two column ────────────────────────────────────────────── */

.about-what {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-what__text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.25rem;
}

.about-what__text p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--slate);
    margin-bottom: 1rem;
}

.about-what__text p:last-child { margin-bottom: 0; }

.about-access-card {
    background: #F8F5F0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 2rem;
}

.about-access-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.about-access-card > p {
    font-size: 0.875rem;
    color: var(--slate);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.about-access-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.8rem;
}

.about-access-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.865rem;
    color: var(--slate);
    line-height: 1.55;
}

.about-access-list li svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--blue);
}

/* ── Workflow timeline (How FYSH Works)
   CR: fysh-about-workflow-2026-07-02
   Namespace: fw-
   ─────────────────────────────────────────────────────────────────────────── */

/* Legend */
.fw-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.fw-leg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

.fw-leg__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fw-leg--vendor   .fw-leg__dot { background: var(--gold); }
.fw-leg--buyer    .fw-leg__dot { background: var(--blue-lt); }
.fw-leg--platform .fw-leg__dot { background: rgba(255,255,255,0.25); }

/* ── Track (the whole list) ── */

.fw-track {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Static spine — subtle background line */
.fw-track::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 22px;
    bottom: 22px;
    width: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
}

/* Animated spine — gold-to-blue fill, scaleY 0→1 on scroll */
.fw-track::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 22px;
    bottom: 22px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), var(--blue-lt));
    border-radius: 2px;
    transform-origin: top center;
    transform: scaleY(0);
    transition: transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fw-track.fw-track--active::after { transform: scaleY(1); }

/* ── Individual step row ── */

.fw-step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0 1.5rem;
    align-items: flex-start;
    padding-bottom: 2.75rem;
    position: relative;
}

.fw-step:last-child { padding-bottom: 0; }

/* ── Node circle ── */

.fw-node {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    /* Ring that blends with section bg */
    box-shadow: 0 0 0 5px var(--navy), 0 0 0 7px rgba(255,255,255,0.12);
    transition: box-shadow 0.3s var(--ease);
}

.fw-step:hover .fw-node {
    box-shadow: 0 0 0 5px var(--navy), 0 0 0 8px rgba(255,255,255,0.28);
}

.fw-node--vendor   { background: #182F52; color: var(--gold);  border: 2px solid var(--gold); }
.fw-node--buyer    { background: var(--blue); color: var(--white); border: 2px solid var(--blue-lt); }
.fw-node--platform { background: #0F2340; color: rgba(255,255,255,0.55); border: 2px solid rgba(255,255,255,0.18); }
.fw-node--gold     { background: var(--gold); color: var(--navy); border: 2px solid var(--gold-lt); }

/* ── Card ── */

.fw-card {
    grid-column: 2;
    grid-row: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.5rem 1.5rem;
    position: relative;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
                opacity 0.55s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    /* Entry state */
    opacity: 0;
    transform: translateY(18px);
    /* Internal layout: role full-width row 1, icon+title share row 2, body row 3 */
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.65rem;
}

.fw-card--visible {
    opacity: 1;
    transform: translateY(0);
}

.fw-card:hover {
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* Climax card (step 7 — "Conversation continues") */
.fw-card--climax {
    background: rgba(201,168,76,0.1);
    border-color: rgba(201,168,76,0.3);
}

.fw-card--climax:hover {
    border-color: rgba(201,168,76,0.55);
    box-shadow: 0 8px 32px rgba(201,168,76,0.12);
}

/* ── Card internals ── */

.fw-role {
    display: inline-block;
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    margin-bottom: 0.8rem;
}

.fw-role--vendor   { background: rgba(201,168,76,0.15); color: var(--gold); }
.fw-role--buyer    { background: rgba(74,158,224,0.15); color: var(--blue-lt); }
.fw-role--platform { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.45); }
.fw-role--both     { background: rgba(201,168,76,0.18); color: var(--gold-lt); }

.fw-icon {
    display: block;
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    font-size: 1.35rem;
    line-height: 1;
    color: rgba(255,255,255,0.2);
    margin-bottom: 0;
}

.fw-card--climax .fw-icon { color: rgba(201,168,76,0.5); }

.fw-title {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    font-family: var(--font-display);
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 0;
}

.fw-body {
    grid-column: 1 / -1;
    grid-row: 3;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.52);
    line-height: 1.72;
    margin: 0.7rem 0 0;
}

/* ── Credit packs ─────────────────────────────────────────────────────────── */

.credit-packs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 780px;
    margin: 0 auto 2.5rem;
}

.credit-pack {
    position: relative;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem 2rem;
    text-align: center;
    transition: border-color var(--ease), box-shadow var(--ease);
}

.credit-pack:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
}

.credit-pack--featured {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(30,91,168,0.09);
}

.credit-pack__pill {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 13px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.credit-pack__pill--gold {
    background: var(--gold);
    color: var(--navy);
}

.credit-pack__credits {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.credit-pack__price {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.credit-pack__rate {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 1.1rem;
}

.credit-pack__desc {
    font-size: 0.84rem;
    color: var(--slate);
    line-height: 1.6;
    margin: 0;
}

/* ── Pricing notes ────────────────────────────────────────────────────────── */

.pricing-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.pricing-notes li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.865rem;
    color: var(--slate);
    font-weight: 500;
}

.pricing-notes li svg { color: var(--blue); flex-shrink: 0; }

/* ── Security grid ────────────────────────────────────────────────────────── */

.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.security-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: background var(--ease), border-color var(--ease);
}

.security-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(201,168,76,0.3);
}

.security-item__icon {
    width: 42px;
    height: 42px;
    background: rgba(201,168,76,0.14);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.security-item__title {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.security-item__text {
    font-size: 0.8rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

.about-security__gdpr {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
}

.about-security__gdpr a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Legal / validity row ─────────────────────────────────────────────────── */

.about-legal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 860px;
    margin: 0 auto;
}

.about-legal__item h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.6rem;
}

.about-legal__item p {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--slate);
}

.about-legal__item a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── CTA band ─────────────────────────────────────────────────────────────── */

.about-cta {
    background: linear-gradient(145deg, var(--navy) 0%, #1A3A6E 100%);
    text-align: center;
    padding: 5.5rem 0;
}

.about-cta__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.about-cta__sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.about-cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Responsive — lg: 900px ───────────────────────────────────────────────── */

@media (max-width: 900px) {
    .about-hero__inner {
        flex-direction: column;
        gap: 2rem;
    }

    .about-hero__stats {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
    }

    .about-hero__stat {
        flex: 1;
        border-bottom: none;
        border-right: 1px solid rgba(255,255,255,0.08);
        padding: 1.25rem 1rem;
    }

    .about-hero__stat:last-child { border-right: none; }

    .about-hero__stat-val { font-size: 1.7rem; }

    .about-what { grid-template-columns: 1fr; gap: 2rem; }

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

/* ── Responsive — md: 720px ───────────────────────────────────────────────── */

@media (max-width: 720px) {
    .about-hero { padding: 3rem 0 2.5rem; }
    .about-section { padding: 3.5rem 0; }

    /* fw- timeline: nothing to collapse — already single-column */

    .credit-packs {
        grid-template-columns: 1fr;
        max-width: 340px;
    }

    .about-legal { grid-template-columns: 1fr; gap: 2rem; }

    .about-cta { padding: 3.5rem 0; }
}

/* ── Responsive — sm: 560px ───────────────────────────────────────────────── */

@media (max-width: 560px) {
    .about-hero__ctas    { flex-direction: column; }
    .about-cta__actions  { flex-direction: column; align-items: center; }
    .security-grid       { grid-template-columns: 1fr; }

    .about-hero__stats   { flex-direction: column; }
    .about-hero__stat    { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .about-hero__stat:last-child { border-bottom: none; }

    .pricing-notes {
        flex-direction: column;
        align-items: flex-start;
        max-width: 260px;
        margin: 0 auto;
    }
}

/* ── Workflow timeline — desktop alternating layout (≥ 721px) ─────────────── */

@media (min-width: 721px) {

    /* Spine repositions to the horizontal centre of the 3-col grid */
    .fw-track::before,
    .fw-track::after {
        left: calc(50% - 1px);
    }

    /* 3-column grid: [card area | node column | card area] */
    .fw-step {
        grid-template-columns: 1fr 80px 1fr;
        gap: 0 2rem;
        align-items: center;
        padding-bottom: 3.25rem;
    }

    /* Node always in the centre column */
    .fw-node {
        grid-column: 2;
        grid-row: 1;
        margin: 0 auto;
        /* Larger node on desktop */
        width: 52px;
        height: 52px;
        font-size: 0.95rem;
        box-shadow: 0 0 0 6px var(--navy), 0 0 0 8px rgba(255,255,255,0.12);
    }

    .fw-step:hover .fw-node {
        box-shadow: 0 0 0 6px var(--navy), 0 0 0 9px rgba(255,255,255,0.28);
    }

    /* Odd steps: card slides in from LEFT */
    .fw-step--left .fw-card {
        grid-column: 1;
        grid-row: 1;
    }

    .fw-step--left .fw-card:not(.fw-card--visible) {
        transform: translateX(-22px);
    }

    .fw-step--left .fw-card.fw-card--visible {
        transform: translateX(0);
    }

    /* Even steps: card slides in from RIGHT */
    .fw-step--right .fw-card {
        grid-column: 3;
        grid-row: 1;
    }

    .fw-step--right .fw-card:not(.fw-card--visible) {
        transform: translateX(22px);
    }

    .fw-step--right .fw-card.fw-card--visible {
        transform: translateX(0);
    }

    /* Climax step gets slightly larger card presence */
    .fw-step--climax .fw-card {
        padding: 1.75rem 1.75rem 1.85rem;
    }

    .fw-step--climax .fw-title { font-size: 1.05rem; }
}

/* ── Workflow timeline — large desktop (≥ 900px) ─────────────────────────── */

@media (min-width: 900px) {
    .fw-step { padding-bottom: 3.75rem; }
    .fw-card { padding: 1.6rem 1.75rem 1.75rem; }
}
