/* FactBurst homepage refinement: lighter, tighter, less bulky. */

.homepage {
    background: #070b18;
}

.home-intro-inner {
    min-height: 500px;
    gap: 48px;
}

.home-intro-copy {
    padding-block: 58px;
}

.home-kicker {
    margin-bottom: 16px;
}

.home-intro-copy h1 {
    max-width: 700px;
    font-size: clamp(46px, 6.4vw, 76px);
    line-height: .96;
}

.home-intro-copy > p {
    max-width: 540px;
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.55;
}

.home-intro-actions {
    margin-top: 26px;
}

.home-primary-action {
    min-height: 48px;
    gap: 14px;
    padding-inline: 18px;
    border-radius: 10px;
}

.home-primary-action span {
    width: 28px;
    height: 28px;
}

.home-intro-art {
    min-height: 330px;
}

.home-art-card-main {
    width: 230px;
    height: 250px;
    right: 14%;
    padding: 24px;
    border-radius: 22px;
}

.home-art-card-main strong {
    margin-top: 14px;
    font-size: 68px;
}

.home-art-stars {
    margin-top: 18px;
}

.home-art-card-mini {
    width: 92px;
    height: 92px;
    left: 8%;
    bottom: 22px;
    border-radius: 17px;
}

.home-art-card-mini strong {
    font-size: 34px;
}

.home-latest {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 30px;
    padding-block: 62px;
}

.home-latest-content h2 {
    margin-top: 9px;
    font-size: clamp(30px, 4vw, 46px);
}

.home-round-action {
    width: 56px;
    height: 56px;
    font-size: 21px;
}

.home-recent {
    padding-block: 62px;
}

.home-section-title {
    margin-bottom: 18px;
}

.home-section-title h2 {
    font-size: clamp(30px, 4vw, 46px);
}

.home-recent-item {
    min-height: 88px;
    padding-block: 12px;
    grid-template-columns: 42px minmax(0, 1fr) 40px;
    gap: 16px;
}

.home-recent-main strong {
    font-size: 18px;
}

.home-proof {
    padding-block: 62px;
}

.home-proof-inner {
    gap: 54px;
}

.home-proof-points {
    gap: 20px;
}

.home-proof-points > div {
    padding-left: 14px;
}

.home-proof-points b {
    margin-bottom: 22px;
}

@media (max-width: 840px) {
    .home-intro-inner {
        gap: 24px;
        padding-block: 48px;
    }

    .home-intro-copy {
        padding-block: 24px 8px;
    }

    .home-intro-art {
        min-height: 270px;
    }

    .home-art-card-main {
        width: 210px;
        height: 225px;
    }

    .home-latest {
        grid-template-columns: 70px 1fr;
        gap: 22px;
        padding-block: 52px;
    }
}

@media (max-width: 620px) {
    .home-intro-inner {
        padding-block: 34px 38px;
    }

    .home-intro-copy {
        padding-block: 18px 8px;
    }

    .home-intro-copy h1 {
        font-size: clamp(42px, 13vw, 58px);
    }

    .home-intro-copy > p {
        margin-top: 16px;
        font-size: 15px;
    }

    .home-intro-actions {
        margin-top: 22px;
    }

    .home-intro-art {
        min-height: 215px;
    }

    .home-art-card-main {
        width: 175px;
        height: 188px;
        padding: 19px;
        border-radius: 18px;
    }

    .home-art-card-main strong {
        font-size: 56px;
    }

    .home-art-card-mini {
        width: 76px;
        height: 76px;
        left: 5%;
        bottom: 14px;
        border-radius: 14px;
    }

    .home-art-card-mini strong {
        font-size: 28px;
    }

    .home-latest {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-block: 46px;
    }

    .home-latest-content h2 {
        font-size: 32px;
    }

    .home-round-action {
        width: 50px;
        height: 50px;
    }

    .home-recent {
        padding-block: 46px;
    }

    .home-recent-item {
        min-height: 82px;
        grid-template-columns: 30px minmax(0, 1fr) 24px;
        gap: 10px;
    }

    .home-recent-main strong {
        font-size: 16px;
    }

    .home-proof {
        padding-block: 48px;
    }
}

/* Homepage layout: compact quiz grid and lightweight benefit strip. */
.home-recent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.home-recent-grid .home-recent-item {
    min-height: 112px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    padding: 16px 14px;
}

.home-recent-grid .home-recent-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, .09);
}

.home-recent-grid .home-recent-item:hover {
    padding-inline: 18px;
}

.home-proof {
    padding-block: 42px;
}

.home-proof-inner {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.home-proof-heading h2 {
    font-size: 28px;
    line-height: 1.05;
}

.home-proof-points {
    gap: 0;
}

.home-proof-points > div {
    padding: 4px 20px;
}

.home-proof-points b {
    margin-bottom: 10px;
}

.home-proof-points p {
    margin-top: 6px;
}

@media (max-width: 840px) {
    .home-recent-grid .home-recent-item {
        min-height: 100px;
    }

    .home-proof-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 620px) {
    .home-recent-grid {
        grid-template-columns: 1fr;
    }

    .home-recent-grid .home-recent-item {
        min-height: 84px;
        padding-inline: 0;
    }

    .home-recent-grid .home-recent-item:nth-child(odd) {
        border-right: 0;
    }

    .home-recent-grid .home-recent-item:hover {
        padding-inline: 6px;
    }

    .home-proof {
        padding-block: 40px;
    }

    .home-proof-inner {
        gap: 20px;
    }
}

/* Final homepage clarity pass. */
.home-intro-art {
    min-height: 300px;
}

.home-art-card-mini {
    display: none;
}

.home-art-card-main {
    width: 220px;
    height: 238px;
    right: 12%;
    transform: rotate(2deg);
    border-radius: 20px;
}

.home-art-card-main strong {
    font-size: 64px;
}

.home-latest {
    padding-block: 54px;
}

.home-latest-content {
    position: relative;
    cursor: pointer;
}

.home-latest-content::after {
    content: "PLAY QUIZ";
    display: inline-block;
    margin-top: 18px;
    color: #7edfff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.home-latest-content > a {
    position: absolute;
    right: 0;
    bottom: 0;
}

.home-recent {
    padding-block: 54px;
}

.home-recent-grid .home-recent-item {
    min-height: 100px;
    padding: 14px;
}

.home-recent-main small {
    display: none;
}

.home-recent-main {
    gap: 5px;
}

.home-recent-main strong {
    font-size: 17px;
}

.home-recent-arrow {
    font-size: 19px;
}

.home-proof {
    padding-block: 34px;
}

.home-proof-inner {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 30px;
}

.home-proof-heading h2 {
    margin-top: 8px;
    font-size: 25px;
}

.home-proof-points > div {
    padding: 3px 18px;
}

.home-proof-points strong {
    font-size: 15px;
}

.home-proof-points p {
    font-size: 12px;
}

@media (max-width: 840px) {
    .home-intro-art {
        min-height: 255px;
    }

    .home-art-card-main {
        width: 205px;
        height: 220px;
    }

    .home-proof-inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 620px) {
    .home-intro-art {
        min-height: 200px;
    }

    .home-art-card-main {
        width: 175px;
        height: 188px;
    }

    .home-latest-content > a {
        position: static;
        margin-top: 16px;
    }

    .home-latest-content::after {
        display: none;
    }

    .home-recent-grid .home-recent-item {
        min-height: 78px;
    }

    .home-proof {
        padding-block: 34px;
    }

    .home-proof-points > div {
        padding: 16px 0 16px 14px;
    }
}

/* ===== Light theme homepage overrides ===== */
html[data-theme="light"] .homepage,
html[data-theme="light"] .home-intro,
html[data-theme="light"] .home-proof {
    background: #f4f7fb;
    color: #182438;
}

html[data-theme="light"] .home-intro {
    border-bottom-color: rgba(46,72,108,.12);
}

html[data-theme="light"] .home-intro-copy h1,
html[data-theme="light"] .home-section-title h2,
html[data-theme="light"] .home-latest-content h2,
html[data-theme="light"] .home-proof-heading h2,
html[data-theme="light"] .home-recent-main strong {
    color: #182438;
}

html[data-theme="light"] .home-intro-copy > p,
html[data-theme="light"] .home-proof-points p,
html[data-theme="light"] .home-recent-number,
html[data-theme="light"] .home-recent-arrow {
    color: #53657e;
}

html[data-theme="light"] .home-recent-item {
    color: #182438;
    border-bottom-color: rgba(46,72,108,.13);
}

html[data-theme="light"] .home-recent-grid {
    border-top-color: rgba(46,72,108,.13);
}

html[data-theme="light"] .home-recent-grid .home-recent-item:nth-child(odd) {
    border-right-color: rgba(46,72,108,.13);
}

html[data-theme="light"] .home-art-card-main {
    border-color: rgba(40,110,150,.22);
    background: linear-gradient(150deg,#ffffff,#eaf3fb);
    box-shadow: 20px 26px 60px rgba(40,60,90,.16);
}

html[data-theme="light"] .home-art-card-mini {
    background: #ffffff;
    border-color: rgba(46,72,108,.14);
}

html[data-theme="light"] .home-proof {
    border-top-color: rgba(46,72,108,.10);
    border-bottom-color: rgba(46,72,108,.10);
}

html[data-theme="light"] .home-proof-points > div {
    border-color: rgba(46,72,108,.12);
}


/* Homepage cleanup: remove decorative section/row numbers. */
.home-latest {
  grid-template-columns: 1fr;
}

.home-recent-grid .home-recent-item {
  grid-template-columns: minmax(0, 1fr) 40px;
}

.home-proof-inner {
  grid-template-columns: minmax(0, 1fr);
}

.home-proof-points > div {
  padding-left: 0;
}
