/* Responsive polish for the EDD Prime Invest landing page.
   This file is loaded after the inline Framer-inspired styles in index.html. */

:root {
    --page-pad: 24px;
    --fs-hero: 56px;
    --fs-hero-sub: 17px;
    --fs-section-title: 38px;
    --fs-section-copy: 18px;
    --fs-statement: 40px;
    --fs-mega: 54px;
    --fs-strategy-title: 38px;
    --fs-big-copy: 22px;
    --fs-card-title: 16.5px;
    --fs-body: 14.5px;
    --fs-small: 13.5px;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-size: 15px;
    line-height: 1.58;
}

.container,
.nav {
    width: min(1184px, calc(100% - (var(--page-pad) * 2)));
}

.hero {
    min-height: 760px;
    padding-top: 132px;
    background: #000;
    isolation: isolate;
}

.hero::before,
.hero::after {
    display: none;
}

.hero-logo {
    width: min(280px, 68vw);
    filter: none;
    animation: none;
}

.hero .hero-logo {
    filter: none;
    box-shadow: none;
}

.hero h1,
.mega-heading {
    font-size: var(--fs-hero);
    line-height: 1.04;
    max-width: 940px;
    font-weight: 650;
}

.hero h1 {
    font-size: calc(var(--fs-hero) * .86);
    max-width: 760px;
}

.hero p {
    width: min(680px, 100%);
    margin-top: 14px;
    font-size: var(--fs-hero-sub);
    line-height: 1.55;
}

.section-head .container {
    min-height: 160px;
    gap: 28px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.section-head h2,
.section-head h3 {
    font-size: var(--fs-section-title);
    line-height: 1.08;
    font-weight: 650;
}

.section-head p {
    font-size: var(--fs-section-copy);
    line-height: 1.42;
}

.feature-card {
    min-height: 220px;
    padding-top: 24px;
    padding-bottom: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, 0));
}

.feature-card h3 {
    font-size: var(--fs-card-title);
    line-height: 1.32;
    font-weight: 650;
}

.feature-card p,
.team-about p {
    font-size: var(--fs-body);
    line-height: 1.55;
}

.statement {
    min-height: 360px;
    padding: 58px 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(255, 187, 0, .12), transparent 44%),
        #25252a;
}

.statement p {
    font-size: var(--fs-statement);
    line-height: 1.12;
    font-weight: 650;
    max-width: 860px;
}

.statement > p {
    font-size: calc(var(--fs-statement) * .6);
    line-height: 1.18;
}

.statement div > p {
    font-size: calc(var(--fs-statement) * .6);
    line-height: 1.18;
}

.statement > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.statement div > .button {
    display: inline-flex;
    width: auto;
    margin-top: 0;
}

.strategy {
    min-height: auto;
    padding: 74px 0;
    background: #000;
}

.strategy .strategy-panel::before {
    display: none;
}

.strategy .strategy-panel,
.strategy .big-copy {
    background: #000;
}

.strategy-panel {
    min-height: 560px;
}

.strategy .mega-heading {
    font-size: calc(var(--fs-mega) * .6);
    top: 72px;
    opacity: .9;
}

.strategy-title {
    position: absolute;
    top: 16px;
    left: 50%;
    z-index: 4;
    width: max-content;
    max-width: calc(100% - 32px);
    margin: 0;
    font-size: var(--fs-strategy-title);
    line-height: 1.08;
    transform: translateX(-50%);
}

.strategy-image {
    position: absolute;
    top: 48%;
    left: 50%;
    z-index: 3;
    width: min(320px, 36vw);
    max-height: 250px;
    object-fit: contain;
    transform: translate(-50%, -50%);
}

.strategy-content {
    min-height: 560px;
    padding: 150px 32px 64px;
}

.strategy-note {
    font-size: var(--fs-body);
    line-height: 1.52;
}

.strategy-note:nth-child(2),
.strategy-note:nth-child(4) {
    grid-column: 2;
    justify-self: end;
}

.strategy-note:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
}

.strategy-note:nth-child(4) {
    grid-row: 2;
    align-self: start;
}

.big-copy {
    font-size: var(--fs-body);
    line-height: 1.52;
    padding-top: 44px;
    padding-bottom: 44px;
    display: flex;
    justify-content: center;
    text-align: center;
    max-width: min(760px, calc(100% - (var(--page-pad) * 2)));
}

.team-about h3 {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 650;
}

summary,
details p,
.footer nav,
.footer .contact {
    font-size: var(--fs-small);
}

.topbar {
    background: rgba(0, 0, 0, .68);
}

.nav {
    min-height: 68px;
}

.brand img {
    width: 40px;
    height: 40px;
}

.brand span {
    color: var(--gold);
    font-size: 13px;
    letter-spacing: .06em;
}

.nav-links {
    gap: 28px;
    font-size: 13px;
}

.nav-cta,
.button {
    font-size: 13.5px;
    min-height: 42px;
    padding: 11px 17px;
    font-weight: 650;
}

.icon {
    width: 57px;
    height: 57px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-size: 13px;
    background: rgba(8, 7, 14, .86);
}

.icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

details {
    background: rgba(25, 25, 25, .82);
}

summary {
    min-height: 58px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.footer-inner {
    padding-top: 42px;
    padding-bottom: 42px;
}

.footer-logo {
    width: 124px;
}

.footer-inner > div:first-child > p {
    font-size: calc(var(--fs-small) * .9);
}

.credit {
    font-size: calc(var(--fs-small) * .65);
}

@media (max-width: 1180px) {
    :root {
        --page-pad: 20px;
        --fs-hero: 46px;
        --fs-hero-sub: 16.5px;
        --fs-section-title: 32px;
        --fs-section-copy: 17px;
        --fs-statement: 32px;
        --fs-mega: 42px;
        --fs-strategy-title: 32px;
        --fs-big-copy: 20px;
    }

    .nav {
        min-height: 68px;
    }

    .brand {
        min-width: 0;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: 640px;
        padding: 108px var(--page-pad) 30px;
    }

    .hero-logo {
        width: min(230px, 60vw);
        margin-bottom: 18px;
    }

    .light-bands {
        height: 190px;
        margin-top: 48px;
    }

    .light-bands .a {
        top: 126px;
    }

    .light-bands .b {
        top: 136px;
    }

    .light-bands .c {
        top: 146px;
    }

    .section-head .container,
    .team-about,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .section-head .container {
        min-height: 136px;
        gap: 14px;
    }

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

    .feature-card:nth-child(2n) {
        border-right: 0;
    }

    .statement {
        min-height: 300px;
    }

    .strategy-panel,
    .strategy-content {
        min-height: auto;
    }

    .strategy-panel {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 0;
    }

    .strategy-panel::before {
        inset: 78px 24px auto;
        height: 220px;
    }

    .strategy-title {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        max-width: 100%;
        padding: 0 20px;
        transform: none;
        order: 1;
    }

    .strategy .mega-heading {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        margin-top: 10px;
        transform: none;
        order: 2;
    }

    .strategy-image {
        position: relative;
        top: auto;
        left: auto;
        width: min(280px, 58vw);
        max-height: 220px;
        margin: 28px auto 24px;
        transform: none;
        order: 3;
    }

    .strategy-content {
        grid-template-columns: 1fr;
        padding: 0 24px 32px;
        order: 4;
        width: 100%;
    }

    .strategy-note,
    .strategy-note:nth-child(2) {
        width: 100%;
        grid-column: auto;
        grid-row: auto;
        justify-self: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        background: rgba(0, 0, 0, .25);
    }

    .strategy-note:nth-child(4) {
        grid-column: auto;
        grid-row: auto;
        justify-self: stretch;
    }

    .strategy-note:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
        align-self: auto;
    }
}

@media (max-width: 680px) {
    :root {
        --page-pad: 14px;
        --fs-hero: 30px;
        --fs-hero-sub: 14.5px;
        --fs-section-title: 24px;
        --fs-section-copy: 14.5px;
        --fs-statement: 23px;
        --fs-mega: 25px;
        --fs-strategy-title: 24px;
        --fs-big-copy: 17px;
        --fs-card-title: 15.5px;
        --fs-body: 13.8px;
        --fs-small: 13.2px;
    }

    section {
        scroll-margin-top: 72px;
    }

    .topbar {
        background: rgba(0, 0, 0, .86);
    }

    .nav {
        min-height: 58px;
    }

    .brand {
        gap: 9px;
    }

    .brand img {
        width: 32px;
        height: 32px;
    }

    .brand span {
        max-width: 155px;
        font-size: 10.8px;
        line-height: 1.08;
        letter-spacing: .04em;
        white-space: normal;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        min-height: 545px;
        padding-top: 78px;
    }

    .hero-logo {
        width: min(170px, 56vw);
        margin-bottom: 14px;
    }

    .eyebrow {
        margin-bottom: 10px;
        font-size: 10.8px;
        letter-spacing: .1em;
    }

    .hero p {
        margin-top: 10px;
    }

    .hero-actions {
        width: 100%;
        max-width: 360px;
        margin-top: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 11px 14px;
        line-height: 1.2;
    }

.light-bands {
    display: none;
    height: 108px;
    margin-top: 24px;
}

    .light-bands .a {
        top: 68px;
    }

    .light-bands .b {
        top: 76px;
    }

    .light-bands .c {
        top: 84px;
    }

    .section-head .container {
        min-height: 0;
        gap: 10px;
        padding: 24px 14px;
    }

    .card-grid,
    .card-grid.two,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .feature-card:nth-child(2n) {
        min-height: auto;
        padding: 19px 15px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .feature-card:last-child {
        border-bottom: 0;
    }

    .icon {
        width: 51px;
        height: 51px;
        margin-bottom: 14px;
        border-radius: 11px;
        font-size: 12px;
    }

    .icon svg {
        width: 27px;
        height: 27px;
    }

    .statement {
        min-height: auto;
        padding: 66px 0;
    }

    .statement::before {
        top: 34px;
    }

    .statement::after {
        bottom: 34px;
    }

    .statement p {
        width: calc(100% - 32px);
    }

    .strategy {
        padding: 36px 0;
    }

    .strategy-panel::before {
        inset: 58px 12px auto;
        height: 138px;
        border-radius: 12px;
    }

    .strategy .mega-heading {
        line-height: 1;
    }

    .strategy-title {
        padding: 0 16px;
    }

    .strategy-image {
        width: min(220px, 68vw);
        max-height: 170px;
        margin: 20px auto 18px;
    }

    .strategy-content {
        gap: 12px;
        padding: 0 14px 20px;
    }

    .strategy-note,
    .strategy-note:nth-child(2) {
        padding: 12px;
        font-size: var(--fs-body);
    }

    .big-copy {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .team-about {
        gap: 16px;
        padding: 28px 15px 36px;
    }

    .team-about h3 {
        font-size: var(--fs-section-title);
    }

    .faq-wrap {
        padding: 24px 0 38px;
    }

    .faq-grid {
        gap: 10px;
    }

    summary {
        min-height: 52px;
        padding: 15px 14px 15px 44px;
        line-height: 1.25;
    }

    summary::before,
    summary::after {
        left: 16px;
        top: 25px;
    }

    details p {
        padding: 0 14px 16px 44px;
    }

    .footer-inner {
        gap: 24px;
        padding: 32px 15px;
    }

    .footer-logo {
        width: 104px;
    }
}

@media (max-width: 390px) {
    :root {
        --fs-hero: 27px;
        --fs-section-title: 22px;
        --fs-statement: 21px;
        --fs-mega: 23px;
        --fs-strategy-title: 22px;
    }

    .hero {
        min-height: 515px;
    }

    .hero-logo {
        width: min(156px, 54vw);
    }

    .brand span {
        max-width: 132px;
    }
}

@media (max-width: 680px) {
    body {
        overflow-x: hidden;
    }

    .container,
    .nav {
        width: calc(100% - 24px);
    }

    .hero {
        min-height: auto;
        padding: 74px 12px 34px;
    }

    .hero h1 {
        max-width: 330px;
    }

    .hero p {
        max-width: 335px;
    }

    .hero-actions {
        max-width: 310px;
    }

    .section-head .container,
    .card-grid,
    .card-grid.two,
    .team-about,
    .footer-inner {
        border-left-width: 1px;
        border-right-width: 1px;
    }

    .section-head h2,
    .section-head h3 {
        max-width: 100%;
    }

    .feature-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .feature-card h3,
    .feature-card p,
    .section-head p,
    .team-about p,
    .big-copy,
    details p,
    summary {
        overflow-wrap: anywhere;
    }

    .statement {
        padding: 54px 0;
    }

    .statement > div {
        width: 100%;
        gap: 22px;
        padding: 0 14px;
    }

    .statement p,
    .statement > p,
    .statement div > p {
        width: min(100%, 340px);
        max-width: 340px;
    }

    .statement div > .button {
        width: min(100%, 300px);
    }

    .strategy {
        padding: 32px 0;
    }

    .strategy-panel {
        border-left-width: 1px;
        border-right-width: 1px;
    }

    .strategy-title {
        max-width: calc(100% - 24px);
    }

    .strategy .mega-heading {
        max-width: calc(100% - 24px);
        text-align: center;
    }

    .strategy-image {
        width: min(210px, 64vw);
        margin: 18px auto 16px;
    }

    .strategy-content {
        padding: 0 12px 18px;
    }

    .strategy-note,
    .strategy-note:nth-child(2),
    .strategy-note:nth-child(3),
    .strategy-note:nth-child(4) {
        width: 100%;
        grid-column: auto;
        grid-row: auto;
        justify-self: stretch;
        align-self: auto;
    }

    .big-copy {
        padding: 26px 14px;
    }

    .faq-grid {
        width: min(100%, 100%);
    }

    .footer .contact a,
    .footer nav a {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 430px) {
    .brand span {
        max-width: 122px;
    }

    .hero h1 {
        max-width: 300px;
    }

    .hero p {
        max-width: 310px;
    }

    .icon {
        width: 46px;
        height: 46px;
    }

    .icon svg {
        width: 24px;
        height: 24px;
    }

    summary {
        padding-right: 12px;
    }
}
