/* FeD public site stylesheet: version 01 visual fix.
 * Loaded directly from wwwroot to avoid scoped-CSS bundle/cache problems.
 * Rules are restricted to the FeD commercial page classes.
 */

/* Public layout */
.fed-public-site {
    --fed-public-blue: #1769a6;
    --fed-public-navy: #10263e;
    --fed-public-green: #64b246;
    --fed-public-muted: #5d7084;
    --fed-public-border: #dfe8ee;
    min-height: 100vh;
    color: var(--fed-public-navy);
    background: #ffffff;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

.fed-public-site, .fed-public-site * { box-sizing: border-box; }
.fed-public-site a { text-decoration: none; }
.fed-public-container { width: min(1170px, calc(100% - 40px)); margin: 0 auto; }
.fed-public-main { width: 100%; min-width: 0; }

.fed-skip-link { position: absolute; left: -10000px; top: auto; z-index: 150; }
.fed-skip-link:focus { position: fixed; top: 6px; left: 6px; padding: 10px 16px; color: #fff; background: #10263e; border-radius: 8px; }

.fed-public-header {
    position: sticky; top: 0; z-index: 80;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid #e5edf2;
    backdrop-filter: blur(16px);
}
.fed-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.fed-public-brand { display: inline-flex; align-items: center; gap: 11px; color: #10263e; flex: 0 0 auto; }
.fed-public-brand img { display: block; width: 50px; height: 52px; object-fit: contain; }
.fed-brand-name { display: grid; font-size: 23px; line-height: 1; font-weight: 850; letter-spacing: -.035em; }
.fed-brand-name small { margin-top: 5px; font-size: 10px; line-height: 1.2; font-weight: 650; letter-spacing: .015em; }
.fed-public-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.fed-public-nav a { color: #3a5065; font-size: 13px; font-weight: 700; white-space: nowrap; }
.fed-public-nav a:hover, .fed-public-footer a:hover { color: var(--fed-public-blue); }
.fed-public-nav a.fed-public-access { padding: 11px 17px; border-radius: 10px; color: white; background: var(--fed-public-blue); }
.fed-public-nav a.fed-public-access:hover { color: white; background: #115587; }
.fed-mobile-menu { display: none; position: relative; }
.fed-mobile-menu summary { list-style: none; cursor: pointer; padding: 10px 13px; border: 1px solid var(--fed-public-border); border-radius: 10px; font-weight: 750; }
.fed-mobile-menu summary::-webkit-details-marker { display: none; }
.fed-mobile-menu nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(285px, calc(100vw - 30px)); display: grid; gap: 4px; background: white; border: 1px solid var(--fed-public-border); border-radius: 14px; padding: 9px; box-shadow: 0 16px 38px rgba(15, 36, 57, .13); }
.fed-mobile-menu nav a { display: block; color: #253b52; padding: 11px 12px; border-radius: 8px; font-size: 13px; font-weight: 650; }
.fed-mobile-menu nav a:hover { background: #edf5fa; }

.fed-public-footer { background: #10263e; color: #e6f0f7; padding: 33px 0; }
.fed-public-footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.fed-public-footer strong { font-size: 15px; }
.fed-public-footer p { font-size: 13px; color: #d3e0eb; margin: 9px 0; }
.fed-public-footer small { font-size: 12px; color: #a9bed0; }
.fed-public-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.fed-public-footer nav a { font-size: 13px; color: #e6f0f7; font-weight: 650; }

@media (max-width: 1000px) {
    .fed-public-nav { gap: 12px; }
    .fed-public-nav a { font-size: 12px; }
}
@media (max-width: 840px) {
    .fed-public-nav { display: none; }
    .fed-mobile-menu { display: block; }
    .fed-header-inner { min-height: 68px; }
}
@media (max-width: 650px) {
    .fed-public-container { width: min(100% - 28px, 1170px); }
    .fed-public-footer-inner { flex-direction: column; gap: 20px; }
    .fed-public-footer nav { gap: 12px 20px; }
}


/* Commercial landing page */
.fed-marketing {
    --blue: #1769a6;
    --navy: #10263e;
    --green: #64b246;
    --ink: #172b40;
    --muted: #52697e;
    --border: #e1eaf0;
    color: var(--ink);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
.fed-marketing, .fed-marketing * { box-sizing: border-box; }
.fed-marketing-container { width: min(1170px, calc(100% - 40px)); margin: 0 auto; }
.fed-marketing h1, .fed-marketing h2, .fed-marketing h3 { margin: 0; color: #10263e; font-weight: 820; letter-spacing: -.035em; }
.fed-marketing p { color: var(--muted); line-height: 1.7; }
.fed-marketing a { text-decoration: none; }
.fed-marketing .fed-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: #1769a6; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.fed-marketing .fed-section { padding: 86px 0; scroll-margin-top: 85px; }
.fed-section-heading { max-width: 720px; margin: 0 auto 38px; text-align: center; }
.fed-section-heading h2 { margin-top: 11px; font-size: clamp(29px, 4.3vw, 42px); line-height: 1.18; }
.fed-section-heading p { margin: 14px auto 0; font-size: 16px; }

.fed-hero { overflow: hidden; background: radial-gradient(circle at 90% 17%, rgba(100, 178, 70, .11), transparent 30%), linear-gradient(125deg, #f7fafc 1%, #eaf4f9 100%); }
.fed-hero-grid { min-height: 600px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 35px; padding: 52px 0; }
.fed-hero-copy { padding: 20px 0; }
.fed-hero-copy h1 { margin-top: 21px; font-size: clamp(38px, 4.4vw, 62px); line-height: 1.12; }
.fed-hero-copy h1 span { color: var(--blue); }
.fed-hero-copy > p { max-width: 610px; margin: 24px 0 0; font-size: clamp(16px, 1.3vw, 18px); }
.fed-hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 30px 0 26px; }
.fed-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; font-weight: 780; }
.fed-btn-primary { color: white !important; background: #1769a6; box-shadow: 0 9px 22px rgba(23, 105, 166, .18); }
.fed-btn-primary:hover { background: #125581; }
.fed-btn-outline { color: #1769a6 !important; border-color: #bad5e7; background: #fff; }
.fed-btn-outline:hover { border-color: #1769a6; }
.fed-hero-points { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.fed-hero-points span { display: inline-flex; align-items: center; gap: 7px; color: #426176; font-size: 12px; font-weight: 720; }
.fed-hero-points i { color: #319160; font-size: 15px; }
.fed-hero-visual { min-height: 545px; position: relative; display: flex; justify-content: center; align-items: center; }
.fed-phone { width: clamp(172px, 17vw, 222px); overflow: hidden; border: 6px solid #1a2d41; border-radius: 30px; background: #fff; box-shadow: 0 25px 65px rgba(13, 40, 64, .22); }
.fed-phone img { display: block; width: 100%; height: auto; }
.fed-phone-front { position: absolute; z-index: 2; left: 10%; top: 6%; transform: rotate(-6deg); }
.fed-phone-back { position: absolute; z-index: 1; right: 5%; top: 11%; transform: rotate(7deg); }
.fed-phone-note { position: absolute; z-index: 3; bottom: 3%; right: 1%; width: max-content; max-width: 90%; display: flex; align-items: center; gap: 7px; padding: 12px 13px; font-size: 11px; font-weight: 760; color: #236c4c; border-radius: 10px; border: 1px solid #d2eadd; background: #fff; box-shadow: 0 9px 22px rgba(12, 42, 62, .12); }

.fed-benefits-section { background: white; }
.fed-benefits-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.fed-benefit-card { padding: 25px 21px; border: 1px solid var(--border); border-radius: 19px; background: #fff; box-shadow: 0 10px 24px rgba(22, 58, 77, .035); }
.fed-benefit-card:hover { border-color: #c9dce9; }
.fed-benefit-icon { display: inline-flex; justify-content: center; align-items: center; width: 46px; height: 46px; border-radius: 14px; background: #eaf5fb; color: #1769a6; font-size: 22px; }
.fed-benefit-card:nth-child(4n+3) .fed-benefit-icon { background: #eef8e9; color: #488d34; }
.fed-benefit-card h3 { margin-top: 16px; font-size: 17px; line-height: 1.35; }
.fed-benefit-card p { margin: 10px 0 0; font-size: 13px; }

.fed-app-section { background: #f5f8fb; }
.fed-app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fed-app-card { margin: 0; overflow: hidden; border: 1px solid #e0e7ee; border-radius: 20px; background: #fff; box-shadow: 0 13px 32px rgba(19, 49, 76, .05); }
.fed-app-image { height: 400px; overflow: hidden; padding: 18px 20px 0; display: flex; align-items: flex-start; justify-content: center; background: linear-gradient(180deg, #eaf4fa 0%, #fafcfe 100%); }
.fed-app-image img { display: block; width: auto; max-width: 100%; height: auto; max-height: 540px; border: 4px solid #23364a; border-radius: 20px 20px 0 0; box-shadow: 0 12px 24px rgba(27, 57, 78, .12); }
.fed-app-card figcaption { display: grid; gap: 6px; padding: 17px 18px 20px; }
.fed-app-card figcaption strong { color: #10263e; font-size: 16px; }
.fed-app-card figcaption span { color: #52697e; font-size: 13px; line-height: 1.45; }
.fed-image-footnote { margin: 18px 0 0; text-align: center; font-size: 12px; }

.fed-ai-section { background: #102b45; }
.fed-split-section { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.fed-ai-section h2 { color: #fff; font-size: clamp(31px, 3.8vw, 44px); margin-top: 17px; }
.fed-ai-section p { color: #d7e5f1; font-size: 16px; margin: 20px 0 0; }
.fed-ai-section .fed-eyebrow-light { color: #b3e5a6; }
.fed-ai-section .fed-ai-caution { font-size: 13px; color: #bad1df; border-left: 3px solid #64b246; padding-left: 15px; }
.fed-ai-mini-cards { display: grid; gap: 13px; }
.fed-ai-mini-cards > div { display: grid; grid-template-columns: 40px 1fr; gap: 4px 15px; align-items: center; padding: 20px; border: 1px solid #31516a; border-radius: 16px; background: #1b3c56; }
.fed-ai-mini-cards i { grid-row: span 2; color: #a1d78b; font-size: 26px; }
.fed-ai-mini-cards strong { color: #fff; font-size: 16px; }
.fed-ai-mini-cards span { color: #c9dbe9; line-height: 1.5; font-size: 13px; }

.fed-steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fed-steps-grid article { border-top: 3px solid #daeaf4; padding: 20px 7px 0; }
.fed-steps-grid article > span { display: inline-block; color: #1769a6; font-size: 17px; font-weight: 850; }
.fed-steps-grid h3 { margin-top: 11px; font-size: 19px; }
.fed-steps-grid p { margin: 11px 0 0; font-size: 14px; }

.fed-justice-section { background: #f5f9f6; }
.fed-justice-section h2 { margin-top: 12px; font-size: clamp(30px, 3.7vw, 42px); }
.fed-justice-section p { font-size: 15px; margin: 19px 0 0; }
.fed-justice-section .fed-legal-note { border-left: 3px solid #64b246; padding-left: 15px; font-size: 13px; }
.fed-justice-card { background: #fff; padding: 35px; border-radius: 22px; border: 1px solid #dbe9e0; box-shadow: 0 12px 32px rgba(21, 61, 51, .06); }
.fed-justice-card > i { display: inline-grid; place-items: center; width: 58px; height: 58px; color: #1769a6; background: #eaf4fb; border-radius: 18px; font-size: 28px; }
.fed-justice-card h3 { font-size: 22px; margin-top: 20px; }
.fed-justice-card ul { padding: 0 0 0 20px; margin: 20px 0; }
.fed-justice-card li { color: #3d5366; margin-bottom: 10px; font-size: 14px; }
.fed-justice-card p { font-size: 12px; border-top: 1px solid #e4ece8; padding-top: 14px; }

.fed-faq-wrap { max-width: 840px; }
.fed-faq-section details { margin-bottom: 12px; border: 1px solid #e2eaf0; border-radius: 13px; background: #fff; padding: 0 20px; }
.fed-faq-section summary { cursor: pointer; padding: 20px 0; font-size: 15px; font-weight: 770; color: #10263e; }
.fed-faq-section details[open] summary { color: #1769a6; }
.fed-faq-section details p { margin: 0 0 20px; font-size: 14px; }
.fed-bottom-section { padding: 18px 0 70px; scroll-margin-top: 85px; }
.fed-bottom-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 36px 40px; background: #eaf4f9; border-radius: 22px; }
.fed-bottom-card h2 { margin-top: 9px; font-size: 30px; }
.fed-bottom-card p { max-width: 700px; margin: 10px 0; font-size: 14px; }
.fed-bottom-card small { color: #5d7084; font-size: 12px; }
.fed-bottom-card .fed-btn { flex: 0 0 auto; }

@media (max-width: 1150px) {
    .fed-hero-grid { grid-template-columns: 1.03fr .97fr; }
    .fed-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fed-hero-visual { min-height: 440px; }
    .fed-phone { width: clamp(158px, 19vw, 217px); }
}
@media (max-width: 860px) {
    .fed-hero-grid { grid-template-columns: 1fr; padding: 45px 0 25px; }
    .fed-hero-copy { text-align: center; }
    .fed-hero-copy > p { margin-left: auto; margin-right: auto; }
    .fed-hero-actions, .fed-hero-points { justify-content: center; }
    .fed-hero-visual { width: min(530px, 100%); margin: 0 auto; min-height: 460px; }
    .fed-phone { width: 185px; }
    .fed-split-section { grid-template-columns: 1fr; gap: 35px; }
    .fed-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fed-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fed-bottom-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 550px) {
    .fed-marketing-container { width: min(100% - 28px, 1170px); }
    .fed-marketing .fed-section { padding: 58px 0; }
    .fed-hero-copy h1 { font-size: clamp(31px, 9.5vw, 42px); }
    .fed-hero-grid { gap: 10px; }
    .fed-hero-copy > p { font-size: 15px; }
    .fed-hero-actions { margin-top: 23px; }
    .fed-hero-actions .fed-btn { width: 100%; }
    .fed-hero-visual { min-height: 392px; }
    .fed-phone { width: min(42%, 158px); border-width: 4px; border-radius: 23px; }
    .fed-phone-front { left: 7%; top: 5%; }
    .fed-phone-back { right: 6%; top: 8%; }
    .fed-phone-note { bottom: 0; right: 0; left: 0; margin: auto; font-size: 10px; }
    .fed-benefits-grid { grid-template-columns: 1fr; gap: 13px; }
    .fed-benefit-card { padding: 20px; }
    .fed-app-grid { gap: 12px; }
    .fed-app-image { height: 248px; padding: 11px 9px 0; }
    .fed-app-card figcaption { padding: 12px; }
    .fed-app-card figcaption strong { font-size: 13px; }
    .fed-app-card figcaption span { font-size: 11px; }
    .fed-steps-grid { gap: 20px 14px; }
    .fed-steps-grid h3 { font-size: 16px; }
    .fed-steps-grid p { font-size: 12px; }
    .fed-justice-card { padding: 24px; }
    .fed-bottom-card { padding: 24px; }
    .fed-bottom-card h2 { font-size: 25px; }
    .fed-bottom-card .fed-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .fed-marketing *, .fed-marketing *::before, .fed-marketing *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

