/* ═══════════════════════════════════════════
   WHITEPAPER GREY — whitepapergrey.com
   v3
   Aesthetic: Forensic editorial. Grey-dominant.
   Fonts: Cormorant Garamond (display) + Karla (body)
   ═══════════════════════════════════════════ */

:root {
    --paper:       #F4F1EC;
    --paper-alt:   #EDEAE4;
    --charcoal:    #2A2825;
    --ink:         #1C1A18;
    --mid:         #6B6560;
    --soft:        #9B958E;
    --rule:        #D4D0CA;
    --card:        #FFFFFF;
    --accent:      #8B7355;
    --accent-hover:#6D5A43;
    --error:       #B5443A;
    --on-dark:     #D4D0CA;
    --on-dark-dim: #8A857F;
    --dark-bg:     #2A2825;
    --dark-card:   #353230;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 17px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    color: var(--charcoal);
    background: var(--paper);
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--accent-hover); }

/* ── LAYOUT ── */
.section-inner,
.hero-inner,
.footer-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4.5rem 0;
    border-top: 1px solid var(--rule);
}

.section-heading {
    font-size: 1.8rem;
    letter-spacing: 0.01em;
    margin-bottom: 1.8rem;
    color: var(--charcoal);
}

/* ── HERO ── */
.hero {
    padding: 6rem 0 5rem;
    text-align: center;
    background: var(--paper);
}

.hero-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.brand-disc {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    display: block;
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1.05;
    margin: 0;
}

.hero-title-white {
    color: var(--charcoal);
}

.hero-title-grey {
    color: var(--soft);
    font-style: italic;
}

.hero-subtitle {
    font-family: 'Karla', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mid);
    margin-bottom: 2rem;
}

.hero-rule {
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto 2rem;
}

/* v3: tagline upgraded — 50% larger, weight 600, italic retained */
.hero-tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.875rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1.4;
    color: var(--mid);
    max-width: 700px;
    margin: 0 auto;
}

/* ── PIPELINE ── */
.pipeline {
    background: var(--paper-alt);
}

/* v3: Verification Pipeline heading — centered, 40% larger */
.pipeline-heading {
    text-align: center;
    font-size: 2.52rem;
    margin-bottom: 2.2rem;
}

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pipeline-card {
    background: var(--card);
    border: 1px solid var(--rule);
    padding: 2rem 1.6rem;
}

.pipeline-label {
    font-family: 'Karla', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.pipeline-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--charcoal);
}

.pipeline-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--mid);
}

/* ── MICA ── */
.mica {
    background: var(--dark-bg);
    color: var(--on-dark);
    border-top-color: var(--dark-card);
}

.mica .section-heading {
    color: var(--on-dark);
}

.mica-badge {
    display: inline-block;
    font-family: 'Karla', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.25rem 0.8rem;
    margin-bottom: 1.2rem;
}

/* v3: max-width removed — extends to section-inner edges to align with datapoints below */
.mica-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--on-dark-dim);
    margin-bottom: 2rem;
}

/* v3: emphasized phrase matches title color */
.mica-emphasis {
    color: var(--on-dark);
    font-weight: 500;
}

.mica-datapoints {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mica-point {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    border-bottom: 1px solid var(--dark-card);
    padding-bottom: 0.8rem;
}

.mica-point-label {
    font-family: 'Karla', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--on-dark);
    flex-shrink: 0;
}

.mica-point-value {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--on-dark-dim);
    text-align: right;
}

/* ── OFFERINGS TABLE ── */
.offerings {
    background: var(--paper);
}

.offerings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.offerings-table th {
    font-family: 'Karla', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--soft);
    text-align: left;
    padding: 0 1rem 0.8rem 0;
    border-bottom: 2px solid var(--charcoal);
}

.offerings-table td {
    padding: 1rem 1rem 1rem 0;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
    color: var(--mid);
}

.offerings-table td:first-child {
    font-weight: 500;
    color: var(--charcoal);
    min-width: 200px;
}

.offerings-table .price {
    font-family: 'Karla', sans-serif;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    min-width: 70px;
}

.offerings-table th:last-child,
.offerings-table td:last-child {
    white-space: nowrap;
    color: var(--soft);
}

/* ── RESOURCES ── */
.resources {
    background: var(--paper-alt);
}

.resources-note {
    font-size: 0.85rem;
    color: var(--soft);
    margin-bottom: 2rem;
    font-style: italic;
}

.resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* v3: tighter padding now that icon+title share a row */
.resource-card {
    background: var(--card);
    border: 1px solid var(--rule);
    padding: 1.5rem 1.5rem;
}

/* v3: header row puts icon inline with title */
.resource-header {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.resource-icon {
    font-size: 1.2rem;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
}

.resource-title {
    font-size: 1.1rem;
    margin: 0;
    color: var(--charcoal);
}

.resource-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--mid);
}

/* ── AGENTS ── */
.agents {
    background: var(--paper);
}

.agents-body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--mid);
    max-width: 640px;
}

/* v3: link styling — matches existing accent color, underline-on-hover for affordance */
.agents-link {
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.agents-link:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

/* ── HUMANS / EMAIL CAPTURE ── */
.humans {
    background: var(--paper-alt);
}

.humans-body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--mid);
    margin-bottom: 2rem;
}

.email-capture {
    max-width: 440px;
}

.email-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.8rem;
}

.email-form {
    display: flex;
    gap: 0;
}

.email-input {
    flex: 1;
    font-family: 'Karla', sans-serif;
    font-size: 0.88rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--rule);
    border-right: none;
    background: var(--card);
    color: var(--charcoal);
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}

.email-input:focus {
    border-color: var(--accent);
}

.email-input::placeholder {
    color: var(--soft);
}

.email-button {
    font-family: 'Karla', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.7rem 1.4rem;
    background: var(--accent);
    color: #FFF;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.email-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.email-button:disabled {
    background: var(--soft);
    border-color: var(--soft);
    cursor: not-allowed;
}

.signup-message {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    min-height: 1.2em;
    color: var(--mid);
}

.signup-message.is-success {
    color: var(--accent);
    font-weight: 500;
}

.signup-message.is-error {
    color: var(--error);
}

/* ── FOOTER ── */
.footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--rule);
    background: var(--paper);
}

.footer-inner {
    display: flex;
    align-items: center;
}

.footer-x {
    color: var(--accent);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 1rem;
}

.footer-x:hover {
    color: var(--accent-hover);
}

.footer-tagline {
    font-family: 'Karla', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--soft);
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.footer-spacer {
    width: 30px;
    flex-shrink: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
    html { font-size: 15px; }

    .hero-title { font-size: 2.8rem; }

    /* v3: tagline mobile size — readable but not overwhelming */
    .hero-tagline { font-size: 1.4rem; }

    /* v3: pipeline heading mobile size */
    .pipeline-heading { font-size: 2rem; }

    .hero-title-row {
        gap: 1rem;
    }

    .brand-disc {
        width: 64px;
        height: 64px;
    }

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

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

    /* Hide SLA column on narrow viewports — Service / Price / Pipeline only */
    .offerings-table th:last-child,
    .offerings-table td:last-child {
        display: none;
    }

    .mica-point {
        flex-direction: column;
        gap: 0.2rem;
        align-items: flex-start;
    }

    .mica-point-value {
        text-align: left;
    }

    .section { padding: 3rem 0; }
    .hero { padding: 4rem 0 3rem; }
}

/* ── ANIMATION: subtle fade-in on load ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title-row { animation: fadeUp 0.6s ease-out 0.1s both; }
.hero-subtitle  { animation: fadeUp 0.6s ease-out 0.3s both; }
.hero-rule      { animation: fadeUp 0.6s ease-out 0.45s both; }
.hero-tagline   { animation: fadeUp 0.6s ease-out 0.55s both; }
