/* AI Ops Insight - Strategy Memo Aesthetic */

:root {
    --bg-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --accent-slate: #4a5d6e;
    --border-light: #e0e0e0;
    --max-width: 680px;
}

body.ai-ops-page {
    background-color: var(--bg-color);
    background-image: none;
    /* Override homepage background */
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    padding: 80px 20px;
    margin: 0 auto;
    max-width: var(--max-width);
    text-shadow: none;
    /* Remove homepage shadow */
}

/* Strategy Memo Typography */
h1,
h2,
h3 {
    font-family: "Georgia", serif;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 1.6rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.2rem;
    color: var(--accent-slate);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.intro-text {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
}

/* Sections */
section {
    margin-bottom: 4rem;
}

header {
    margin-bottom: 5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
    margin-top: -40px;
    padding-top: 40px;
}

header h1 {
    margin-top: 1rem;
}

.maturity-visual {
    margin: 4rem 0;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
}

.maturity-visual::before {
    content: "";
    position: absolute;
    left: 4.25rem;
    top: 2rem;
    bottom: 2rem;
    width: 2px;
    background: #f0f0f0;
    z-index: 0;
}

.maturity-step {
    display: flex;
    gap: 2.5rem;
    padding: 2.5rem;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

.maturity-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--text-primary);
}

.maturity-step.active {
    border: 2px solid var(--text-primary);
    background: #fafafa;
}

.maturity-step.active::before {
    content: "CURRENT";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    opacity: 0.6;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: "Georgia", serif;
    color: #eee;
    line-height: 0.7;
    min-width: 1.2ch;
    background: #fff;
    padding: 0.5rem 0;
    z-index: 2;
}

.maturity-step.active .step-number {
    color: var(--text-primary);
    opacity: 1;
}

.maturity-step .step-content h3 {
    margin-top: 0;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.step-content p {
    margin-bottom: 0;
    font-size: 1rem;
}

@media (max-width: 600px) {
    .maturity-step {
        flex-direction: column;
        gap: 1rem;
        margin-left: 0 !important;
    }

    .step-number {
        font-size: 1.5rem;
    }
}

.filtering {
    background-color: #f9f9f9;
    padding: 2rem;
    border: 1px solid var(--border-light);
}

.cta-section {
    text-align: center;
    border-top: 1px solid var(--border-light);
    padding-top: 3rem;
    margin-top: 5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: var(--text-primary);
    color: #fff;
}

.meta {
    font-size: 0.9rem;
    color: var(--accent-slate);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Homepage Integration Styles */
#ai-ops-preview {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
}

#ai-ops-preview h2 {
    font-size: 1.2rem;
    margin-top: 0;
    color: #fff;
    font-family: inherit;
}

#ai-ops-preview p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

#ai-ops-preview a {
    font-weight: bold;
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: #fff;
    padding: 2.5rem;
    border: 1px solid var(--text-primary);
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-content h3 {
    margin-top: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}