/* COI public marketing homepage — scoped styles (design phase) */

.coi-public-home {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #0a0a19;
    font-family: 'Hanken Grotesk', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.coi-public-home *,
.coi-public-home *::before,
.coi-public-home *::after {
    box-sizing: border-box;
}

.coi-public-home h2 {
    margin-bottom: 0;
}

.coi-home-accent {
    color: #0078ad;
}

.coi-home-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 120px;
    padding-right: 120px;
}

/* Header */
.coi-home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    padding-right: 66px;
    border-bottom: 0.5px solid #0a0a19;
    background: #ffffff;
    flex-shrink: 0;
}

.coi-home-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.coi-home-header__brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.coi-home-header__logo {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
}

.coi-home-header__title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 42px;
    color: #0a0a19;
    white-space: nowrap;
}

.coi-home-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Hero */
.coi-home-hero {
    background: #e6f2f7;
}

.coi-home-hero .coi-home-container {
    width: 100%;
}

.coi-home-hero__inner {
    padding-top: 120px;
    padding-bottom: 120px;
    max-width: 800px;
    width: 100%;
    text-align: left;
}

.coi-home-hero__headline {
    margin: 0 0 24px;
    font-size: 48px;
    font-weight: 700;
    line-height: 100%;
    text-align: left;
}

.coi-home-hero__copy {
    margin: 0 0 40px;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
}

.coi-home-hero__metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
}

.coi-home-hero__metadata li {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.coi-home-metadata-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
}

/* Why section */
.coi-home-why {
    padding-top: 80px;
    padding-bottom: 32px;
}

.coi-home-why__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.coi-home-why__headline {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 110%;
}

.coi-home-why__details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.coi-home-why__block {
    padding-top: 14px;
    border-top: 2px solid #0a0a19;
}

.coi-home-why__block--accent {
    border-top-color: #0078ad;
}

.coi-home-why__label {
    margin: 0 0 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 1.92px;
    text-transform: uppercase;
}

.coi-home-why__label--sentence {
    font-size: 16px;
    font-weight: 700;
    line-height: 21px;
    letter-spacing: 0;
    text-transform: none;
}

.coi-home-why__block--accent .coi-home-why__label {
    color: #0078ad;
}

.coi-home-why__text {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 21px;
}

.coi-home-why__text + .coi-home-why__text {
    margin-top: 12px;
}

/* Platform tools & datasets sections */
.coi-home-section {
    padding-top: 0;
    padding-bottom: 80px;
}

/* Gap between Schedule a demo callout and datasets heading */
.coi-home-datasets {
    padding-top: 80px;
}

.coi-home-section__title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    max-width: 600px;
}

.coi-home-platform__panel {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
    padding-top: 24px;
}

.coi-home-datasets__panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    padding-top: 24px;
}

.coi-home-panel__title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.coi-home-panel__text {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 21px;
}

.coi-home-flourish {
    width: 100%;
    min-width: 0;
}

.coi-home-flourish .flourish-embed {
    width: 100%;
}

.coi-home-image-placeholder {
    width: 100%;
    min-height: 320px;
    background: #c9cbcb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.coi-home-image-placeholder__label {
    font-size: 14px;
    font-weight: 500;
    color: #616364;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coi-home-image-placeholder__icon {
    width: 40px;
    height: 40px;
    opacity: 0.55;
}

/* Audience */
.coi-home-audience {
    padding-bottom: 80px;
}

.coi-home-audience__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding-top: 24px;
}

.coi-home-audience__card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 0;
    min-width: 0;
}

/* Align grey dividers across columns; grow with longer summary copy */
.coi-home-audience__summary {
    margin: 0;
    min-height: 105px;
    font-size: 16px;
    font-weight: 400;
    line-height: 21px;
    width: 100%;
}

.coi-home-audience__audience {
    font-weight: 700;
}

.coi-home-audience__built-for {
    margin-top: 16px;
    width: 100%;
    padding-top: 16px;
    border-top: 0.5px solid #c9cbcb;
    text-align: left;
}

.coi-home-audience__built-for-label {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    text-transform: uppercase;
    color: #0a0a19;
}

.coi-home-audience__built-for-text {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: #616364;
}

/* Public homepage footer — full-bleed like the header */
.coi-public-home .coi-home-footer {
    margin-top: auto;
    margin-left: 0;
    margin-right: 0;
    background: #cce4ef;
    width: 100%;
    max-width: none;
}

.coi-public-home .coi-home-footer::before {
    display: none;
}

.coi-public-home .coi-home-footer .footer-content {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 8px 66px 8px 24px !important;
    min-height: 80px;
    box-sizing: border-box;
}

.coi-public-home .coi-home-footer .footer-copyright,
.coi-public-home .coi-home-footer .footer-link {
    color: #0a0a19;
}

/* Tab bar: left-aligned with spacing (not full-width spread) */
.coi-home-tabs .rhg-tabs__nav.dashboard-header-bar,
.coi-home-tabs .rhg-tabs__nav {
    justify-content: flex-start;
    gap: 32px;
    width: 100%;
}

.coi-home-tabs .rhg-tab {
    padding: 8px;
    flex: 0 0 auto;
    font-size: 16px;
}

.coi-home-tabs .rhg-tab--active {
    border-bottom-color: #0078ad !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .coi-home-container {
        padding-left: 64px;
        padding-right: 64px;
    }

    .coi-home-platform__panel,
    .coi-home-datasets__panel,
    .coi-home-why__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .coi-home-audience__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .coi-home-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .coi-home-header {
        padding-right: 24px;
        padding-left: 0;
    }

    .coi-public-home .coi-home-footer .footer-content {
        padding: 8px 24px !important;
    }

    .coi-home-tabs .rhg-tabs__nav.dashboard-header-bar,
    .coi-home-tabs .rhg-tabs__nav {
        gap: 16px;
    }

    .coi-home-header__title {
        font-size: 20px;
        line-height: 1.2;
    }

    .coi-home-hero__inner {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .coi-home-hero__headline {
        font-size: 36px;
    }

    .coi-home-hero__copy {
        font-size: 18px;
        line-height: 26px;
    }

    .coi-home-section__title,
    .coi-home-why__headline {
        font-size: 28px;
    }

    .coi-home-datasets {
        padding-top: 64px;
    }

    .coi-public-home .homepage-callout {
        flex-direction: column;
        gap: 24px;
        padding: 32px 24px;
    }
}

/* Public terms page */
.coi-public-terms-page {
    flex: 1;
    padding: 64px 0 80px;
}

.coi-public-terms {
    max-width: 900px;
    margin: 0 auto;
}

.coi-public-terms__title {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 600;
    color: #0a0a19;
}

.coi-public-terms__heading {
    margin: 28px 0 12px;
    font-size: 22px;
    font-weight: 600;
    color: #0a0a19;
}

.coi-public-terms p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.6;
    color: #565759;
}

.coi-public-terms ul {
    margin: 0 0 16px;
    padding-left: 1.25rem;
    color: #565759;
}

.coi-public-terms li {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.6;
}

.coi-public-terms a {
    color: #28769e;
    text-decoration: none;
}

.coi-public-terms a:hover {
    text-decoration: underline;
}
