/* ==========================================================
   FMNT FAMILY LANDING V5
   Consistent with the FMNT blue homepage
   ========================================================== */


/* ==========================================================
   1. Design Tokens
   ========================================================== */

:root {
    --navy-950: #071a35;
    --navy-900: #0c2245;
    --navy-800: #102a56;
    --navy-700: #163a72;

    --blue-600: #2563a6;
    --blue-500: #347bc1;
    --blue-200: #cfe1f3;
    --blue-100: #eaf2fb;
    --blue-050: #f5f9fd;

    --gold-500: #c69a4a;
    --gold-200: #ead4a6;

    --white: #ffffff;
    --off-white: #f8fafc;
    --surface: #ffffff;

    --text: #24364d;
    --text-muted: #66758a;
    --border: rgba(16, 42, 86, 0.14);

    --shadow-sm: 0 10px 28px rgba(7, 26, 53, 0.08);
    --shadow-md: 0 18px 50px rgba(7, 26, 53, 0.13);
    --shadow-lg: 0 28px 85px rgba(7, 26, 53, 0.2);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;

    --container: 1180px;
}


/* ==========================================================
   2. Global
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--off-white);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--white);
    color: var(--navy-900);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--blue-600);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 780px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading h2,
.create-intro h2,
.support-section h2,
.professional-strip h2 {
    margin: 0;
    color: var(--navy-900);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.15rem, 3.8vw, 3.5rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.section-heading > p:last-child {
    color: var(--text-muted);
    font-size: 1.04rem;
}


/* ==========================================================
   3. Header
   ========================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.header-inner {
    width: min(calc(100% - 40px), var(--container));
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand img {
    width: 214px;
    height: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    color: var(--navy-800);
    font-size: 0.92rem;
    font-weight: 750;
    text-decoration: none;
}

.header-nav a:hover,
.header-nav a:focus-visible {
    color: var(--blue-600);
}

.header-nav .nav-login {
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--navy-800);
    color: var(--white);
    box-shadow: 0 8px 22px rgba(16, 42, 86, 0.2);
}

.header-nav .nav-login:hover {
    background: var(--blue-600);
    color: var(--white);
}


/* ==========================================================
   4. Buttons
   ========================================================== */

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 23px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--white);
    color: var(--navy-900);
    box-shadow: 0 12px 30px rgba(7, 26, 53, 0.22);
}

.button-secondary {
    background: var(--white);
    color: var(--navy-800);
    border-color: rgba(16, 42, 86, 0.22);
}

.button-light {
    background: var(--white);
    color: var(--navy-900);
}

.button-outline-light {
    background: rgba(255, 255, 255, 0.09);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
}

.button-outline-light:hover {
    background: rgba(255, 255, 255, 0.18);
}


/* ==========================================================
   5. Hero
   ========================================================== */

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            115deg,
            rgba(7, 26, 53, 0.97) 0%,
            rgba(16, 42, 86, 0.93) 48%,
            rgba(22, 58, 114, 0.8) 100%
        ),
        url("/images/dashboard-bg.jpg") center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(52, 123, 193, 0.32),
            transparent 34%
        ),
        radial-gradient(
            circle at 88% 12%,
            rgba(198, 154, 74, 0.16),
            transparent 24%
        );
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
    padding: 78px 0 84px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
    align-items: center;
    gap: 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.84rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.hero-copy .eyebrow {
    color: var(--gold-200);
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hero-lead {
    max-width: 680px;
    margin: 27px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 32px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
}

.hero-points li::before {
    content: "\2713";
    margin-right: 8px;
    color: var(--gold-200);
    font-weight: 900;
}

.hero-summary {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

.summary-preview {
    padding: 22px 22px 0;
}

.summary-screen {
    position: relative;
    padding: 22px;
    border-radius: 18px 18px 0 0;
    background: var(--navy-900);
    text-align: center;
}

.summary-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 850;
}

.summary-picture {
    overflow: hidden;
    margin: 18px auto 17px;
    border: 7px solid var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.summary-screen strong,
.summary-screen > span:last-child {
    display: block;
}

.summary-screen strong {
    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 500;
}

.summary-screen > span:last-child {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
}

.summary-progress {
    height: 7px;
    background: rgba(16, 42, 86, 0.12);
}

.summary-progress span {
    display: block;
    width: 67%;
    height: 100%;
    background: var(--gold-500);
}

.summary-copy {
    padding: 22px 24px 10px;
}

.summary-copy strong {
    display: block;
    color: var(--navy-900);
    font-size: 1.04rem;
}

.summary-copy p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.summary-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border);
}

.summary-meta span {
    padding: 17px 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.summary-meta span + span {
    border-left: 1px solid var(--border);
}

.summary-meta strong {
    display: block;
    color: var(--navy-900);
    font-size: 0.86rem;
}


/* ==========================================================
   6. Process
   ========================================================== */

.process-section {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
    padding: 88px 0 80px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-grid li {
    position: relative;
    padding: 27px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.process-number {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-100);
    color: var(--blue-600);
    font-weight: 900;
}

.process-grid h3 {
    margin: 18px 0 6px;
    color: var(--navy-900);
    font-size: 1.12rem;
}

.process-grid p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}


/* ==========================================================
   7. Create Project Form
   ========================================================== */

.create-section {
    padding: 88px 20px;
    background: linear-gradient(180deg, var(--blue-050), var(--white));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 98px;
}

.create-panel {
    width: min(100%, var(--container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
    gap: 48px;
    align-items: center;
}

.create-intro > p:last-of-type {
    color: var(--text-muted);
    font-size: 1.02rem;
}

.create-intro ul {
    display: grid;
    gap: 10px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.create-intro li {
    color: var(--navy-800);
    font-weight: 700;
}

.create-intro li::before {
    content: "\2713";
    margin-right: 9px;
    color: var(--blue-600);
    font-weight: 900;
}

.create-form {
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.form-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.form-heading span {
    color: var(--navy-900);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
}

.form-heading small {
    color: var(--text-muted);
}

.create-form > label:not(.consent) {
    display: block;
    margin: 18px 0 7px;
    color: var(--navy-900);
    font-size: 0.92rem;
    font-weight: 800;
}

.create-form > input {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid rgba(16, 42, 86, 0.2);
    border-radius: 12px;
    background: var(--white);
    color: var(--text);
}

.create-form > input:focus {
    border-color: var(--blue-500);
    outline: 3px solid rgba(52, 123, 193, 0.14);
}

.field-help {
    margin: 7px 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.consent {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    margin: 23px 0;
    align-items: start;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.consent input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--blue-600);
}

.consent a {
    color: var(--blue-600);
    font-weight: 750;
}

.create-submit {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    background: var(--navy-800);
    color: var(--white);
    font-weight: 850;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        background 0.18s ease;
}

.create-submit:hover {
    background: var(--blue-600);
    transform: translateY(-1px);
}

.form-security {
    margin: 16px 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
}


/* ==========================================================
   8. Support
   ========================================================== */

.support-section {
    width: min(calc(100% - 40px), var(--container));
    margin: 80px auto;
    padding: 36px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: var(--shadow-sm);
}

.support-section h2 {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.support-section p:last-child {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--text-muted);
}


/* ==========================================================
   9. Professional Strip
   ========================================================== */

.professional-strip {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto 88px;
    padding: 46px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(
            125deg,
            rgba(7, 26, 53, 0.98),
            rgba(22, 58, 114, 0.9)
        ),
        url("/images/dashboard-bg.jpg") center / cover no-repeat;
    color: var(--white);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 45px;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.professional-strip .eyebrow {
    color: var(--gold-200);
}

.professional-strip h2 {
    color: var(--white);
    font-size: clamp(2rem, 3.3vw, 3rem);
}

.professional-strip p:last-child {
    max-width: 760px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.75);
}

.professional-actions {
    display: grid;
    gap: 12px;
}


/* ==========================================================
   10. Footer
   ========================================================== */

.site-footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
    padding: 50px 0 34px;
    text-align: center;
}

.footer-brand img {
    width: 210px;
    margin: 0 auto 16px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-inner p {
    max-width: 620px;
    margin: 0 auto 23px;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    margin-bottom: 25px;
}

.footer-inner nav a {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-inner nav a:hover {
    text-decoration: underline;
}

.footer-inner small {
    color: rgba(255, 255, 255, 0.46);
}


/* ==========================================================
   11. Tablet
   ========================================================== */

@media (max-width: 980px) {
    .header-nav > a:not(.nav-login) {
        display: none;
    }

    .hero-inner,
    .create-panel,
    .professional-strip {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        text-align: center;
    }

    .breadcrumb,
    .hero-actions,
    .hero-points {
        justify-content: center;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-summary {
        width: min(570px, 100%);
        margin: 0 auto;
        text-align: left;
    }

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

    .create-panel {
        gap: 36px;
    }

    .create-intro {
        max-width: 700px;
        margin: 0 auto;
        text-align: center;
    }

    .create-intro ul {
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .support-section {
        flex-direction: column;
        text-align: center;
    }

    .professional-strip {
        text-align: center;
    }

    .professional-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================================
   12. Mobile
   ========================================================== */

@media (max-width: 680px) {
    .header-inner {
        width: min(calc(100% - 28px), var(--container));
        min-height: 74px;
    }

    .brand img {
        width: 170px;
    }

    .header-nav .nav-login {
        padding: 9px 12px;
        font-size: 0.82rem;
    }

    .hero-inner,
    .process-section,
    .support-section,
    .professional-strip,
    .footer-inner {
        width: min(calc(100% - 28px), var(--container));
    }

    .hero-inner {
        padding-top: 54px;
        padding-bottom: 62px;
    }

    .hero h1 {
        font-size: clamp(2.55rem, 12vw, 4rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-points {
        display: grid;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        gap: 7px;
        text-align: left;
    }

    .summary-preview {
        padding: 14px 14px 0;
    }

    .summary-screen {
        padding: 16px;
    }

    .summary-meta {
        grid-template-columns: 1fr;
    }

    .summary-meta span + span {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .process-section {
        padding: 64px 0;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .create-section {
        padding: 66px 14px;
    }

    .create-panel {
        grid-template-columns: 1fr;
    }

    .create-form {
        padding: 26px 20px;
    }

    .form-heading {
        display: grid;
        gap: 3px;
    }

    .support-section {
        margin-top: 64px;
        margin-bottom: 64px;
        padding: 30px 22px;
    }

    .support-section .button {
        width: 100%;
    }

    .professional-strip {
        margin-bottom: 64px;
        padding: 34px 24px;
    }

    .professional-actions {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   13. Reduced Motion
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}


/* ==========================================================
   14. Faster Conversion Flow
   ========================================================== */

.hero-compact {
    min-height: 0;
}

.hero-inner-compact {
    padding-top: 50px;
    padding-bottom: 50px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 46px;
}

.hero-compact h1 {
    font-size: clamp(2.55rem, 4.5vw, 4.15rem);
}

.hero-compact .hero-lead {
    max-width: 760px;
    margin-top: 20px;
}

.hero-next-step {
    display: flex;
    min-width: 275px;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.hero-next-step-number {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--gold-200);
    color: var(--navy-950);
    font-weight: 900;
}

.hero-next-step strong,
.hero-next-step span {
    display: block;
}

.hero-next-step strong {
    font-size: 0.95rem;
}

.hero-next-step div > span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.8rem;
}

.create-section-first {
    padding-top: 42px;
}

.builder-progress {
    width: min(100%, var(--container));
    margin: 0 auto 26px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.builder-progress span {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.builder-progress b {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-100);
    color: var(--blue-600);
    font-size: 0.75rem;
}

.builder-progress .active {
    border-color: rgba(37, 99, 166, 0.42);
    background: var(--navy-800);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.builder-progress .active b {
    background: var(--gold-200);
    color: var(--navy-950);
}

.process-section-after {
    padding-top: 74px;
}

@media (max-width: 980px) {
    .hero-inner-compact {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-next-step {
        width: min(430px, 100%);
        min-width: 0;
        margin: 0 auto;
        text-align: left;
    }
}

@media (max-width: 680px) {
    .hero-inner-compact {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .builder-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .create-section-first {
        padding-top: 28px;
    }
}

