/**
 * findi360 homepage Batch 4 — Data Dare feature + Learning in Action.
 */

/* ── Data Dare homepage feature (Tone B+) ── */
.fi-home-dd {
    position: relative;
    overflow: clip;
    padding: 0;
}

.fi-home-dd__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 60% at 100% 20%, rgba(217, 154, 22, var(--fd-deco-gold-opacity)) 0%, transparent 55%),
        radial-gradient(ellipse 55% 50% at 0% 90%, rgba(243, 232, 207, 0.4) 0%, transparent 50%);
}

.fi-home-dd__waves {
    position: absolute;
    inset: 12% 0 8% auto;
    width: min(42%, 420px);
    pointer-events: none;
    background:
        linear-gradient(135deg, transparent 40%, rgba(217, 154, 22, 0.06) 40%, transparent 70%),
        repeating-linear-gradient(
            -18deg,
            transparent,
            transparent 18px,
            rgba(168, 106, 0, 0.045) 18px,
            rgba(168, 106, 0, 0.045) 19px
        );
    mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
}

.fi-home-dd__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: var(--fd-grid-dd-feature);
    gap: var(--fd-space-6, 24px);
    align-items: start;
    width: 100%;
    min-width: 0;
}

.fi-home-dd__head-copy {
    max-width: var(--fd-measure-prose, 40rem);
}

.fi-home-dd__head .fi-home-dd__logo {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 72px;
    height: auto;
    object-fit: contain;
    object-position: left center;
    margin-bottom: var(--fd-space-3, 12px);
}

.fi-home-dd__title {
    margin: 0;
    font-family: var(--fd-font-heading, 'Inter', system-ui, sans-serif);
    font-size: var(--fd-text-h1);
    font-weight: var(--fd-font-weight-heading, 800);
    line-height: var(--fd-line-height-heading, 1.12);
    letter-spacing: var(--fd-letter-tight, -0.03em);
    color: var(--fd-text-strong, var(--fd-black, #0e0e0e));
}

.fi-home-dd__title-accent {
    color: var(--fd-accent-deep, var(--fd-gold-deep, #a86a00));
}

.fi-home-dd__body {
    margin: 0;
    max-width: var(--fd-measure-prose, 40rem);
    font-size: var(--fd-text-body);
    line-height: var(--fd-line-height-body, 1.6);
    color: var(--fd-muted-text, #6f6a62);
}

.fi-home-dd__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fd-space-3, 12px);
    margin-top: 0;
}

.fi-home-dd__cards {
    display: flex;
    flex-direction: column;
    gap: var(--fd-space-3, 12px);
    min-width: 0;
    align-self: stretch;
    width: 100%;
}

.fi-home-dd__card {
    display: grid;
    grid-template-columns: var(--fd-slot-card-thumb, 88px) minmax(0, 1fr) auto;
    gap: var(--fd-space-3, 12px);
    align-items: center;
    min-height: 4.75rem;
    padding: var(--fd-space-4, 16px);
    border-radius: var(--fd-radius-md, 16px);
    border: 1px solid rgba(217, 154, 22, 0.14);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: var(--fd-shadow-sm, 0 4px 14px rgba(40, 30, 10, 0.045));
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--fd-duration, 200ms) var(--fd-ease), border-color var(--fd-duration, 200ms) var(--fd-ease);
}

.fi-home-dd__card.is-static {
    cursor: default;
    grid-template-columns: var(--fd-slot-card-thumb, 88px) minmax(0, 1fr);
}

@media (hover: hover) and (pointer: fine) {
    a.fi-home-dd__card:hover {
        border-color: rgba(217, 154, 22, 0.28);
        box-shadow: var(--fd-shadow-md, 0 12px 32px rgba(40, 30, 10, 0.075));
    }

    a.fi-home-dd__card:hover .fi-home-dd__chevron {
        background: rgba(217, 154, 22, 0.14);
        border-color: rgba(217, 154, 22, 0.24);
    }
}

.fi-home-dd__card-media {
    width: var(--fd-slot-card-thumb, 88px);
    aspect-ratio: var(--fd-slot-card-ratio, 4 / 3);
    flex-shrink: 0;
    border-radius: var(--fd-radius-sm, 10px);
    overflow: hidden;
    background: var(--fd-bg-secondary, #f5eedc);
    display: grid;
    place-items: center;
}

.fi-home-dd__thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fi-home-dd__thumb-fallback {
    font-size: var(--fd-text-eyebrow);
    font-weight: var(--fd-font-weight-heading, 800);
    letter-spacing: var(--fd-letter-eyebrow, 0.08em);
    color: var(--fd-accent-deep, var(--fd-gold-deep, #a86a00));
}

.fi-home-dd__industry {
    display: inline-block;
    font-size: var(--fd-text-eyebrow);
    font-weight: var(--fd-font-weight-subheading, 700);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--fd-accent-deep, var(--fd-gold-deep, #a86a00));
}

.fi-home-dd__code {
    margin: 0.15rem 0 0;
    font-size: var(--fd-text-caption);
    font-weight: var(--fd-font-weight-subheading, 700);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    color: var(--fd-text-primary, var(--fd-charcoal, #202020));
}

.fi-home-dd__name {
    margin: 0.1rem 0 0;
    font-size: var(--fd-text-body-lg);
    font-weight: var(--fd-font-weight-subheading, 700);
    line-height: 1.3;
    color: var(--fd-text-strong, var(--fd-black, #0e0e0e));
}

.fi-home-dd__meta {
    margin: 0.3rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    font-size: var(--fd-text-body-sm);
    line-height: 1.4;
    color: var(--fd-muted-text, #6f6a62);
}

.fi-home-dd__chevron {
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    color: var(--fd-gold-deep, #a86a00);
    background: rgba(217, 154, 22, 0.08);
    border: 1px solid rgba(217, 154, 22, 0.16);
}

.fi-home-dd__empty {
    margin: 0;
    padding: var(--fd-space-4, 16px);
    border-radius: var(--fd-radius-md, 16px);
    border: 1px dashed var(--fd-soft-border);
    background: rgba(255, 255, 255, 0.45);
    color: var(--fd-muted-text, #6f6a62);
    font-size: var(--fd-text-body-sm);
    line-height: 1.5;
}

.fi-home-dd__breath {
    display: none;
}

/* ── Learning in Action (Tone A) ── */
.fi-lia {
    padding: 0;
}

.fi-lia__head {
    margin-bottom: 0;
}

.fi-lia__head-copy {
    max-width: var(--fd-measure-lead, 48rem);
}

.fi-lia__title {
    margin: 0;
    font-family: var(--fd-font-heading, 'Inter', system-ui, sans-serif);
    font-size: var(--fd-text-h2);
    font-weight: var(--fd-font-weight-heading, 800);
    letter-spacing: var(--fd-letter-tight, -0.02em);
    color: var(--fd-text-strong, var(--fd-black, #0e0e0e));
}

.fi-lia__support {
    margin: var(--fd-space-sm, 8px) 0 0;
    color: var(--fd-muted-text, #6f6a62);
    font-size: var(--fd-text-body);
    line-height: 1.5;
}

.fi-lia__grid--editorial {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--fd-space-4, 16px);
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.fi-lia__block {
    display: flex;
    flex-direction: column;
    gap: var(--fd-space-3, 12px);
    min-height: 8.75rem;
    padding: var(--fd-space-5, 20px);
    border-radius: var(--fd-radius-md, 16px);
    border: 1px solid var(--fd-soft-border, rgba(32, 32, 32, 0.075));
    background: rgba(255, 255, 255, 0.62);
    box-shadow: var(--fd-shadow-sm, 0 4px 14px rgba(40, 30, 10, 0.04));
}

.fi-lia__block--lead {
    border-color: rgba(217, 154, 22, 0.22);
    background: rgba(255, 255, 255, 0.78);
    min-height: 9.5rem;
}

.fi-lia__block-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--fd-space-3, 12px);
    min-width: 0;
}

.fi-lia__glyph {
    display: inline-block;
    width: var(--fd-slot-lia-glyph, 2.5rem);
    height: var(--fd-slot-lia-glyph, 2.5rem);
    flex-shrink: 0;
    border-radius: var(--fd-radius-sm, 10px);
    background: linear-gradient(135deg, rgba(217, 154, 22, 0.18), rgba(245, 238, 220, 0.55));
    border: 1px solid rgba(217, 154, 22, 0.12);
}

.fi-lia__media--inline {
    width: var(--fd-slot-lia-inline, 96px);
    aspect-ratio: var(--fd-slot-card-ratio, 4 / 3);
    flex-shrink: 0;
    border-radius: var(--fd-radius-sm, 10px);
    overflow: hidden;
    background: var(--fd-bg-secondary, #f5eedc);
}

.fi-lia__media--inline img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fi-lia__grid {
    display: grid;
    grid-template-columns: var(--fd-grid-editorial);
    gap: var(--fd-grid-gap, var(--fd-space-5, 20px));
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.fi-lia__editorial-flag {
    margin: 0;
    font-size: var(--fd-text-eyebrow);
    font-weight: var(--fd-font-weight-subheading, 700);
    letter-spacing: var(--fd-letter-eyebrow, 0.08em);
    text-transform: uppercase;
    color: var(--fd-accent-deep, var(--fd-gold-deep, #a86a00));
    text-align: right;
}

.fi-lia__metric {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
}

.fi-lia__metric strong {
    font-size: var(--fd-text-h1);
    font-weight: var(--fd-font-weight-heading, 800);
    line-height: 1;
    color: var(--fd-text-strong, var(--fd-black, #0e0e0e));
}

.fi-lia__metric span {
    font-size: var(--fd-text-caption);
    color: var(--fd-muted-text, #6f6a62);
}

.fi-lia__metric--compact strong {
    font-size: var(--fd-text-h3);
}

.fi-lia__module-title {
    margin: 0;
    font-size: var(--fd-text-h4);
    font-weight: var(--fd-font-weight-heading, 800);
    line-height: 1.25;
    color: var(--fd-text-primary, var(--fd-charcoal, #202020));
}

.fi-lia__block--lead .fi-lia__module-title {
    font-size: var(--fd-text-h3);
}

.fi-lia__module-body {
    margin: 0;
    flex: 1 1 auto;
    font-size: var(--fd-text-body-sm);
    line-height: 1.55;
    color: var(--fd-muted-text, #6f6a62);
}

.fi-lia__cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: var(--fd-touch-min, 44px);
    margin-top: auto;
    padding: 0 var(--fd-space-4, 16px);
    font-size: var(--fd-text-label);
    font-weight: var(--fd-font-weight-semibold, 600);
    color: var(--fd-accent-deep, var(--fd-gold-deep, #a86a00));
    text-decoration: none;
    border-radius: var(--fd-radius-sm, 10px);
    border: 1px solid rgba(217, 154, 22, 0.18);
    background: rgba(255, 255, 255, 0.45);
    transition: background-color var(--fd-duration, 200ms) var(--fd-ease), border-color var(--fd-duration, 200ms) var(--fd-ease);
}

@media (hover: hover) and (pointer: fine) {
    .fi-lia__cta:hover {
        background: rgba(217, 154, 22, 0.08);
        border-color: rgba(217, 154, 22, 0.24);
    }
}

.fi-lia__empty.fd-state {
    padding: var(--fd-space-4);
    max-width: 100%;
}

.fi-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1023px) {
    .fi-home-dd__layout {
        grid-template-columns: 1fr;
        gap: var(--fd-space-5, 20px);
    }

    .fi-home-dd__breath,
    .fi-home-dd__waves {
        display: none;
    }

    .fi-lia__grid--editorial {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--fd-space-3, 12px);
    }

    .fi-lia__block,
    .fi-lia__block--lead {
        min-height: 8rem;
    }
}

@media (max-width: 767px) {
    .fi-lia__grid--editorial {
        grid-template-columns: 1fr;
    }

    .fi-lia__block-top {
        align-items: center;
    }

    .fi-lia__editorial-flag,
    .fi-lia__metric {
        text-align: left;
        align-items: flex-start;
        margin-left: 0;
    }
    .fi-home-dd__card.is-static {
        grid-template-columns: var(--fd-slot-card-thumb, 72px) minmax(0, 1fr) auto;
    }

    .fi-home-dd__logo {
        max-width: 160px;
        max-height: 64px;
    }
}

@media (max-width: 639px) {
    .fi-home-dd__card,
    .fi-home-dd__card.is-static {
        grid-template-columns: var(--fd-slot-card-thumb, 72px) minmax(0, 1fr);
        align-items: flex-start;
    }

    .fi-home-dd__chevron {
        display: none;
    }

    .fi-home-dd__card-media {
        width: var(--fd-slot-card-thumb, 72px);
    }

    .fi-lia__grid--editorial {
        grid-template-columns: 1fr;
    }

    .fi-lia__block,
    .fi-lia__block--lead {
        min-height: 0;
    }

    .fi-lia__cta {
        align-self: stretch;
        justify-content: center;
        width: 100%;
    }

    .fi-home-dd__actions {
        flex-direction: column;
    }

    .fi-home-dd__actions .fd-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fi-home-dd__card {
        transition: none;
    }
}

/* ── S03 rebuilt to the homepage mockup, 11 Sep 2026: badge + copy on the left,
   three dataset cards in one row on the right. Overrides the rules above. ── */
.fi-home-dd__layout {
    grid-template-columns: minmax(0, 0.40fr) minmax(0, 0.60fr);
    align-items: center;
    gap: var(--fd-space-8, 40px);
}
.fi-home-dd__head {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    gap: var(--fd-space-5, 20px);
    align-items: center;
}
.fi-home-dd__badge-wrap { min-width: 0; }
.fi-home-dd__badge {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 22px rgba(17, 17, 17, 0.18));
}
.fi-home-dd__head .fi-eyebrow { margin-bottom: 6px; }
.fi-home-dd__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.fi-home-dd__link {
    font-weight: 600;
    color: var(--fd-charcoal, #111);
    text-decoration: none;
}
.fi-home-dd__link:hover { color: var(--fd-gold, #d4a017); text-decoration: underline; text-underline-offset: 3px; }

.fi-home-dd__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--fd-space-4, 16px);
    align-self: center;
}
.fi-home-dd__card,
.fi-home-dd__card.is-static {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: var(--fd-space-4, 16px);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(212, 160, 23, 0.16);
    border-radius: var(--fd-radius-md, 16px);
}
a.fi-home-dd__card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(40, 30, 10, 0.10); border-color: rgba(212, 160, 23, 0.4); }
.fi-home-dd__card-top { display: flex; align-items: center; gap: 10px; }
.fi-home-dd__card-media {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #e7e2da;
    box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.28);
}
.fi-home-dd__thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.fi-home-dd__card-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fi-home-dd__industry { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #a67c0a; font-weight: 700; }
.fi-home-dd__code { margin: 0; font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; font-size: 0.78rem; color: #6b6257; }
.fi-home-dd__name { margin: 2px 0 0; font-weight: 700; font-size: 1.02rem; line-height: 1.3; color: var(--fd-charcoal, #111); }
.fi-home-dd__rows { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.86rem; color: #6b6257; }
.fi-home-dd__rows-icon {
    width: 12px; height: 14px; border-radius: 3px;
    border: 1.5px solid #a67c0a; border-top-width: 3px; box-sizing: border-box; opacity: 0.8;
}
.fi-home-dd__level { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.fi-home-dd__level-name { font-size: 0.8rem; font-weight: 600; color: var(--fd-charcoal, #111); }
.fi-home-dd__level-bar { display: inline-flex; gap: 3px; }
.fi-home-dd__level-bar i { display: block; width: 14px; height: 6px; border-radius: 2px; background: rgba(212, 160, 23, 0.18); }
.fi-home-dd__level-bar i.is-on { background: var(--fd-gold, #d4a017); }
.fi-home-dd__chevron { display: none; }

@media (max-width: 1279px) and (min-width: 1024px) {
    .fi-home-dd__head { grid-template-columns: 140px minmax(0, 1fr); }
}
@media (max-width: 1023px) {
    .fi-home-dd__layout { grid-template-columns: 1fr; }
    .fi-home-dd__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .fi-home-dd__head { grid-template-columns: 1fr; justify-items: start; }
    .fi-home-dd__badge-wrap { max-width: 180px; }
    .fi-home-dd__cards { grid-template-columns: 1fr; }
}

/* ── S05 rebuilt to the homepage mockup, 11 Sep 2026: four equal illustrated cards. ── */
.fi-lia__grid--four {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--fd-space-4, 16px);
    align-items: stretch;
}
.fi-lia__grid--four .fi-lia__block {
    gap: 10px;
    padding: 14px 14px 18px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(212, 160, 23, 0.14);
}
.fi-lia__art {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(212, 160, 23, 0.06);
    margin-bottom: 4px;
}
.fi-lia__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fi-lia__grid--four .fi-lia__module-title { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.fi-lia__grid--four .fi-lia__module-body { margin: 0; font-size: 0.9rem; line-height: 1.5; color: #6b6257; }
.fi-lia__grid--four .fi-lia__metric { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.fi-lia__grid--four .fi-lia__metric strong { font-size: 1.25rem; color: var(--fd-charcoal, #111); }
.fi-lia__grid--four .fi-lia__metric span { font-size: 0.8rem; color: #6b6257; }
.fi-lia__grid--four .fi-lia__cta { margin-top: auto; font-weight: 600; color: #a67c0a; text-decoration: none; }
.fi-lia__grid--four .fi-lia__cta:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) { .fi-lia__grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .fi-lia__grid--four { grid-template-columns: 1fr; } }

/* ── S03 sizing pass, 11 Sep 2026 (prototype approved): 28 px heading, 44/56 split, badge 186 px pulled left, lighter cards. ── */
.fi-home-dd__layout { grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr); }
.fi-home-dd__head { grid-template-columns: 186px minmax(0, 1fr); margin-left: -28px; }
.fi-home-dd__head .fi-eyebrow { font-size: 0.75rem; letter-spacing: 0.12em; margin-bottom: 6px; }
.fi-home-dd__title { font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 10px; }
.fi-home-dd__body { font-size: 0.9375rem; line-height: 1.55; margin-bottom: 4px; }
.fi-home-dd__actions { gap: 10px; }
.fi-home-dd__actions .fd-btn { font-size: 0.9rem; padding: 11px 18px; }
.fi-home-dd__link { font-size: 0.9rem; }
.fi-home-dd__card, .fi-home-dd__card.is-static { gap: 8px; padding: 14px; }
.fi-home-dd__card-media { flex-basis: 48px; width: 48px; height: 48px; border-radius: 9px; }
.fi-home-dd__industry { font-size: 0.69rem; }
.fi-home-dd__code { font-size: 0.75rem; }
.fi-home-dd__name { font-size: 0.9375rem; }
.fi-home-dd__rows { font-size: 0.82rem; }
.fi-home-dd__level-name { font-size: 0.78rem; }
@media (max-width: 1279px) and (min-width: 1024px) {
    .fi-home-dd__head { grid-template-columns: 150px minmax(0, 1fr); margin-left: 0; }
}
@media (max-width: 1023px) {
    .fi-home-dd__head { margin-left: 0; }
}
