/* ================================
   TalentUs — Features page
   Loaded by features.html / features-en.html after styles.css and home.css
   (reuses the .home tokens and the .hl-v-* visual cards). Solid colors only.
   ================================ */

/* ---------- Hero ---------- */
.fx-hero {
    padding: calc(76px + clamp(3rem, 2rem + 3vw, 5rem)) 0 clamp(3.5rem, 2.5rem + 3vw, 5rem);
    background: var(--tint);
    border-bottom: 1px solid var(--line);
}

.fx-hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 1rem + 5vw, 5rem);
    align-items: center;
}

.fx-hero h1 {
    font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--ink);
    text-wrap: balance;
}

.fx-hero .h-lead {
    margin: 1.25rem 0 2rem;
}

.fx-hero .h-actions {
    justify-content: flex-start;
}

.fx-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}

.fx-stats b {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.fx-stats span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Overview: one link per area */
.fx-overview {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.fx-ov {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.125rem;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fx-ov:hover {
    border-color: #C7D5E4;
    box-shadow: 0 10px 24px rgba(15, 27, 42, 0.07);
    transform: translateX(3px);
}

.fx-ov-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--primary-subtle);
    color: var(--primary-color);
}

.fx-ov-t b {
    display: block;
    font-size: 0.9375rem;
    color: var(--ink);
}

.fx-ov-t small {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-ov-ar {
    color: var(--text-light);
    transition: color 0.2s ease;
}

.fx-ov:hover .fx-ov-ar {
    color: var(--primary-color);
}

/* ---------- Sticky area navigation ---------- */
.fx-subnav {
    position: sticky;
    top: 58px;
    z-index: 900;
    padding-top: 16px;
    margin-top: -16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.fx-subnav-links {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.fx-subnav-links::-webkit-scrollbar {
    display: none;
}

.fx-subnav-links a {
    position: relative;
    flex-shrink: 0;
    padding: 0.875rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.fx-subnav-links a:hover {
    color: var(--ink);
}

.fx-subnav-links a::after {
    content: "";
    position: absolute;
    left: 0.875rem;
    right: 0.875rem;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: transparent;
}

.fx-subnav-links a.on {
    color: var(--primary-color);
    font-weight: 600;
}

.fx-subnav-links a.on::after {
    background: var(--primary-color);
}

/* ---------- Groups ---------- */
.fx-group {
    padding: clamp(4rem, 3rem + 3vw, 6rem) 0;
    background: var(--bg-white);
    scroll-margin-top: 110px;
}

.fx-group.h-tint {
    background: var(--tint);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.fx-group-head {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 760px;
    margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.fx-group-num {
    flex-shrink: 0;
    padding-top: 0.25rem;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--primary-color);
}

.fx-group-head .h-eyebrow-text {
    margin-bottom: 0.5rem;
}

.fx-group-head h2 {
    font-size: clamp(1.875rem, 1.35rem + 2vw, 2.75rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.fx-group-head p {
    margin-top: 0.75rem;
    font-size: var(--font-lg);
    color: var(--text-secondary);
}

.fx-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Feature panel: copy + visual, alternating sides */
.fx-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
}

.h-tint .fx-feature {
    border-color: #DCE5EE;
}

.fx-rev .fx-copy {
    order: 2;
}

.fx-copy {
    padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
}

.fx-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.fx-tags .hl-kicker {
    margin-bottom: 0;
}

.fx-copy h3 {
    font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.022em;
    color: var(--ink);
}

.fx-copy > p {
    margin: 0.75rem 0 1.5rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.fx-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
}

.fx-list li {
    display: flex;
    gap: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--text-primary);
}

.fx-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
    background: var(--stage);
}

.fx-visual .hl-v-card {
    box-shadow: 0 20px 44px rgba(15, 27, 42, 0.12);
}

/* ---------- Extra visual pieces ---------- */
.fx-v-gap {
    height: 0.75rem;
}

.fx-v-people > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.fx-v-people > div.on {
    border-color: var(--primary-color);
    box-shadow: inset 3px 0 0 var(--primary-color);
}

.fx-av {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary-subtle);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
}

.fx-v-pt b {
    display: block;
    font-size: 0.875rem;
    color: var(--ink);
}

.fx-v-pt small {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.fx-v-pv {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.fx-v-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.fx-v-matrix th {
    padding: 0 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
    text-align: center;
}

.fx-v-matrix td {
    padding: 0.5rem 0;
    border-top: 1px solid #F0F3F7;
    text-align: center;
    color: var(--text-primary);
}

.fx-v-matrix td:first-child {
    text-align: left;
    font-weight: 500;
}

.fx-perm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.fx-perm.y {
    background: #E5F4EC;
    color: #1E6B4E;
}

.fx-perm.n {
    background: #F2F4F7;
    color: #98A2B3;
}

.fx-v-status > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6875rem 0;
    border-bottom: 1px solid #F0F3F7;
}

.fx-v-status > div:last-child {
    border-bottom: 0;
}

.fx-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-color);
}

.fx-dot.wait {
    background: #F79009;
}

.fx-v-st-t {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.hl-tag.gr {
    background: #F2F4F7;
    color: #475467;
}

.fx-v-org {
    text-align: center;
}

.fx-org-top span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: var(--primary-color);
    color: #FFFFFF;
    font-size: 0.8125rem;
    font-weight: 600;
}

.fx-org-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    margin-top: 1.5rem;
    padding-top: 0.875rem;
}

/* Connector: vertical stem + horizontal bar */
.fx-org-row::before {
    content: "";
    position: absolute;
    top: -1.5rem;
    left: 50%;
    width: 2px;
    height: 1.5rem;
    background: #CBD6E2;
}

.fx-org-row::after {
    content: "";
    position: absolute;
    top: 0;
    left: 16.6%;
    right: 16.6%;
    height: 2px;
    background: #CBD6E2;
}

.fx-org-row > div {
    position: relative;
    padding: 0.625rem 0.5rem;
    border-radius: 10px;
    background: var(--tint);
    border: 1px solid var(--line);
}

.fx-org-row > div::before {
    content: "";
    position: absolute;
    top: -0.875rem;
    left: 50%;
    width: 2px;
    height: 0.875rem;
    background: #CBD6E2;
}

.fx-org-row span {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink);
}

.fx-org-row small {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.fx-v-steps {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-top: 0.25rem;
}

.fx-v-steps li {
    position: relative;
    display: flex;
    gap: 0.75rem;
}

.fx-v-steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 18px;
    bottom: -0.875rem;
    width: 2px;
    background: var(--line);
}

.fx-step-dot {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border-radius: 50%;
    border: 2px solid #CBD6E2;
    background: var(--bg-white);
}

.fx-v-steps li.done .fx-step-dot {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.fx-v-steps li.now .fx-step-dot {
    border-color: #F79009;
}

.fx-v-steps b {
    display: block;
    font-size: 0.875rem;
    color: var(--ink);
}

.fx-v-steps small {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.fx-v-courses > div + div {
    margin-top: 0.875rem;
}

.fx-v-c-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.fx-v-c-h b {
    font-size: 0.875rem;
    color: var(--ink);
}

.fx-v-courses .hl-v-meter {
    margin: 0.5rem 0 0;
}

.fx-v-phone .ph-frame {
    width: 232px;
    height: 470px;
    box-shadow: 0 24px 50px rgba(15, 27, 42, 0.2);
}

.fx-v-phone .ph-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.fx-v-phone .ph-qa {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* ---------- Screens ---------- */
.fx-screens .shots {
    max-width: 1120px;
}

/* ---------- Full module list ---------- */
.fx-mods {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.fx-mod {
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid #DCE5EE;
    border-radius: var(--radius-card);
}

.fx-mod-h {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.fx-mod-h .h-cell-icon {
    width: 38px;
    height: 38px;
}

.fx-mod-h .h-cell-icon svg {
    width: 19px;
    height: 19px;
}

.fx-mod h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
}

.fx-mod ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fx-mod li {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.fx-tick {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent-color);
}

/* ---------- Final CTA ---------- */
.fx-cta {
    padding: 0 0 var(--section-y);
    background: var(--tint);
}

.fx-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    background: var(--ink);
    border-radius: 28px;
    color: #FFFFFF;
}

.fx-cta-box h2 {
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.fx-cta-box p {
    margin-top: 0.5rem;
    font-size: var(--font-lg);
    color: #C3CDD8;
}

.fx-cta-box .h-actions {
    flex-shrink: 0;
}

.fx-cta :focus-visible {
    outline-color: #FFFFFF;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .fx-hero .container,
    .fx-feature {
        grid-template-columns: minmax(0, 1fr);
    }

    .fx-rev .fx-copy {
        order: 0;
    }

    .fx-mods {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fx-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .fx-hero {
        padding-top: calc(70px + 2.5rem);
    }

    .fx-subnav {
        top: 54px;
    }

    .fx-list,
    .fx-mods {
        grid-template-columns: minmax(0, 1fr);
    }

    .fx-group-head {
        flex-direction: column;
        gap: 0.5rem;
    }

    .fx-copy,
    .fx-visual {
        padding: 1.5rem;
    }

    .fx-cta-box .h-actions {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .fx-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .fx-stats b {
        font-size: 1.125rem;
    }

    .fx-stats span {
        display: block;
        font-size: 0.75rem;
        line-height: 1.35;
    }

    .fx-v-matrix {
        table-layout: fixed;
    }

    .fx-v-matrix th:first-child,
    .fx-v-matrix td:first-child {
        width: 34%;
    }

    .fx-v-matrix th {
        font-size: 0.5625rem;
        letter-spacing: 0;
    }

    .fx-v-matrix td:first-child {
        font-size: 0.75rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
