@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #14537a;
    --primary-dark: #0a3457;
    --primary-light: #2a6b92;
    --secondary-color: #5a8ca5;
    --accent-color: #d66853;
    --text-color: #333333;
    --text-light: #666666;
    --text-dark: #1a1a1a;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-graph: #f2f6f9;
    --bg-gray: #e9ecef;
    --border-color: #dde4ea;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 5px 12px rgba(0, 0, 0, 0.09);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #e3e5e8;
}

.page-shell {
    width: min(100%, 1240px);
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
    line-height: 1.25;
    font-family: 'Montserrat', sans-serif;
}

p {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e6ebef;
}

.site-header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-kicker {
    margin-bottom: 0.15rem;
    font-size: 0.7rem;
    color: #7c8893;
    text-transform: none;
    letter-spacing: 0;
}

.brand h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: 2rem;
    line-height: 1;
}

nav a {
    color: #24333f;
    font-weight: 600;
    font-size: 0.88rem;
}

.hero {
    padding: 3.4rem 0;
    background: #19597b;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.hero-copy {
    text-align: center;
    padding: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}

.eyebrow {
    display: none;
}

.hero h2 {
    color: var(--text-white);
    font-size: clamp(2rem, 4vw, 3.05rem);
    margin-bottom: 0.6rem;
}

.hero-text {
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.88);
    max-width: 78ch;
}

.hero-buttons {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 4px;
    padding: 0.62rem 1.15rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-transform: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: #1c5c7d;
    color: var(--text-white);
    box-shadow: 0 4px 10px rgba(10, 52, 87, 0.2);
}

.btn-primary:hover {
    background: #134764;
}

.btn-secondary {
    background: #f7f9fb;
    color: #285773;
    border: 1px solid #d4dde4;
}

.btn-secondary:hover {
    background: #eaf0f5;
    color: #204a63;
}

.meta-strip {
    display: none;
}

.methodology-band,
.app-section,
.client-cta {
    padding: 1.8rem 0;
}

.app-section.alt {
    background: #f7f9fb;
    border-top: 1px solid #e6ebef;
    border-bottom: 1px solid #e6ebef;
}

.methodology-shell,
.summary-shell,
.app-card,
.client-interpretation,
.method-box,
.accordion,
.summary-item,
.input-messages {
    background: #ffffff;
    border: 1px solid #dbe2e8;
    border-radius: 6px;
    box-shadow: none;
}

.methodology-shell,
.app-card,
.client-interpretation,
.method-box,
.input-messages {
    padding: 1rem;
}

.methodology-toggle-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.methodology-hint {
    display: none;
}

.methodology-content {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.methodology-content h3 {
    color: var(--primary-dark);
    font-size: 1.08rem;
    margin: 0.85rem 0 0.45rem;
}

.methodology-content ul {
    margin: 0;
    padding-left: 1rem;
}

.section-heading {
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.55rem, 2.5vw, 1.95rem);
    color: #1f2f3b;
    position: relative;
    padding-bottom: 0.45rem;
    margin-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #cfd8df;
}

.section-description {
    margin: 0;
    color: var(--text-light);
    max-width: 80ch;
}

.summary-shell {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
    padding: 1rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.summary-item {
    padding: 1rem;
    text-align: center;
}

.summary-item .label {
    color: #788791;
    font-size: 0.8rem;
    font-weight: 500;
}

.summary-item .value {
    margin-top: 0.3rem;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    color: #1d2d38;
    font-weight: 700;
}

.client-interpretation ul {
    margin: 0.55rem 0 0;
    padding-left: 1rem;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.app-card.full {
    grid-column: 1 / -1;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 0.53rem 0.45rem;
    text-align: left;
}

.data-table th {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    color: var(--text-light);
}

.data-table .numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.data-table .total td {
    font-weight: 700;
    color: var(--primary-dark);
}

.chart-grid {
    display: grid;
    gap: 0.95rem;
}

.chart-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
}

.chart {
    min-height: 300px;
    border: 1px solid rgba(20, 83, 122, 0.22);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #ffffff, #f4f8fb);
}

.chart-wide {
    min-height: 340px;
}

.chart-description {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.input-messages {
    margin-bottom: 1rem;
    border-color: rgba(214, 104, 83, 0.35);
    background: rgba(214, 104, 83, 0.08);
    color: #7b3023;
}

.input-messages h3 {
    margin-bottom: 0.4rem;
}

.input-messages ul {
    margin: 0;
    padding-left: 1rem;
}

.method-box {
    margin-bottom: 1rem;
    border-color: rgba(20, 83, 122, 0.24);
    background: linear-gradient(180deg, rgba(20, 83, 122, 0.06), rgba(255, 255, 255, 0.95));
}

.input-form {
    display: grid;
    gap: 0.75rem;
}

.accordion {
    overflow: hidden;
}

.accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 0.75rem 0.95rem;
    background: rgba(20, 83, 122, 0.1);
    color: var(--primary-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion-body {
    padding: 0.85rem;
    display: grid;
    gap: 0.72rem;
}

.field-group {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    display: grid;
    gap: 0.58rem;
    background: #ffffff;
}

.field-group h4 {
    margin: 0;
    color: var(--primary-dark);
}

.distribution-overview {
    background: linear-gradient(180deg, rgba(20, 83, 122, 0.08), rgba(255, 255, 255, 0.94));
}

.distribution-tag {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    color: var(--primary-dark);
    border: 1px solid rgba(20, 83, 122, 0.32);
    vertical-align: middle;
}

label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #3f4c56;
    font-weight: 600;
}

input[type="number"] {
    width: 100%;
    border: 1px solid #bfccd6;
    border-radius: 8px;
    padding: 0.48rem 0.62rem;
    color: var(--text-dark);
    background: #ffffff;
    font: inherit;
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(20, 83, 122, 0.16);
}

.curve-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.controls-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.corr-grid {
    display: grid;
    grid-template-columns: 1.05fr repeat(4, minmax(120px, 1fr));
    gap: 0.4rem;
    align-items: center;
}

.corr-head {
    font-size: 0.86rem;
    color: var(--text-light);
    font-weight: 700;
}

.corr-cell {
    width: 100%;
    min-height: 37px;
    border: 1px solid #bfccd6;
    border-radius: 8px;
    padding: 0.45rem 0.58rem;
    background: #ffffff;
    font: inherit;
}

.corr-diag {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-dark);
    background: rgba(20, 83, 122, 0.12);
}

.corr-empty {
    border-style: dashed;
    background: rgba(20, 83, 122, 0.05);
}

.client-cta {
    padding-top: 2.4rem;
    padding-bottom: 3rem;
}

.cta-grid {
    background: #1a597a;
    color: var(--text-white);
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
}

.cta-grid h2,
.cta-grid p,
.cta-grid .eyebrow {
    color: var(--text-white);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    justify-content: center;
}

.cta-grid .btn-secondary {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.14);
}

.reveal-up {
    animation: reveal-up 0.6s ease both;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.18s;
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .summary-shell,
    .cta-grid,
    .chart-row,
    .app-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.65rem 0;
    }

    nav a {
        font-size: 0.86rem;
        padding: 0.35rem 0.6rem;
    }

    .hero,
    .methodology-band,
    .app-section,
    .client-cta {
        padding-top: 1.8rem;
        padding-bottom: 1.8rem;
    }

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

    .methodology-toggle-row {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .corr-empty {
        display: none;
    }

    .corr-head {
        margin-top: 0.25rem;
    }
}
