/* assets/css/about.css */
/* CalcHub Editorial About Page Styles (Light & Dark Mode) */

.about-page {
    padding: 1.75rem 0 4.5rem;
    background: var(--bg-page);
    overflow-x: hidden;
}

/* ---------- 1. Mission Split Hero ---------- */
.about-hero {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 50%, #f5f3ff 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 2.25rem;
    box-shadow: 0 20px 45px -18px rgba(79, 70, 229, 0.14);
    overflow: hidden;
}

html.dark .about-hero {
    background: linear-gradient(135deg, #131b2e 0%, #172554 55%, #1e1b4b 100%);
    box-shadow: 0 20px 45px -18px rgba(0, 0, 0, 0.55);
}

.about-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2.25rem;
    align-items: center;
}

.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.95rem;
    border-radius: 9999px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4338ca;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

html.dark .about-eyebrow {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(129, 140, 248, 0.32);
    color: #a5b4fc;
}

.about-hero-title {
    font-size: clamp(2rem, 3.3vw, 2.85rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.about-hero-title span {
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 55%, #0d9488 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html.dark .about-hero-title span {
    background: linear-gradient(135deg, #818cf8 0%, #60a5fa 55%, #2dd4bf 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.about-hero-lead {
    font-size: 1.04rem;
    line-height: 1.68;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 0 1.5rem;
}

.about-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.about-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 1.3rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.about-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(79, 70, 229, 0.55);
}

.about-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.about-btn-secondary:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Right Hero Snapshot Card */
.about-snapshot {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.35rem;
    box-shadow: var(--shadow-md);
}

html.dark .about-snapshot {
    background: rgba(15, 23, 42, 0.72);
}

.about-snapshot-kicker {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    margin-bottom: 0.85rem;
}

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

.about-metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.95rem 1rem;
}

.about-metric-num {
    display: block;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.about-metric-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ---------- 2. Section Headings ---------- */
.about-section {
    margin-bottom: 2.5rem;
}

.about-sec-head {
    max-width: 720px;
    margin-bottom: 1.35rem;
}

.about-sec-kicker {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-primary);
    margin-bottom: 0.3rem;
}

.about-sec-title {
    font-size: 1.6rem;
    font-weight: 850;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 0.45rem;
}

.about-sec-sub {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ---------- 3. Core Platform Pillars (4-Col Grid) ---------- */
.about-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
}

.about-pillar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.45rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.about-pillar-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.95rem;
}

.about-pillar-title {
    font-size: 1.06rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.45rem;
}

.about-pillar-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ---------- 4. Story + Engineering Standards Split ---------- */
.about-standards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
}

.about-story-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.about-story-card h2 {
    font-size: 1.32rem;
    font-weight: 850;
    color: var(--text-primary);
    margin: 0 0 0.85rem;
}

.about-story-card p {
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 0.95rem;
}

.about-story-card p:last-child {
    margin-bottom: 0;
}

.about-check-list {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.72rem;
}

.about-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.91rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.about-check-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

html.dark .about-check-dot {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
}

/* ---------- 5. How CalcHub Builds Accuracy (3-Step Process) ---------- */
.about-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.about-step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.45rem;
    position: relative;
}

.about-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.25rem 0.68rem;
    border-radius: 9999px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

html.dark .about-step-num {
    color: #a5b4fc;
}

.about-step-card h3 {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.45rem;
}

.about-step-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ---------- 6. Ecosystem Coverage Strip ---------- */
.about-domains-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.about-domain-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.05rem 1.15rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.about-domain-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--dom-color, var(--color-primary));
}

.about-domain-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

html.dark .about-domain-icon {
    background: rgba(255, 255, 255, 0.08) !important;
}

.about-domain-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.about-domain-name {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.about-domain-meta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ---------- 7. Disclaimer & Interactive FAQ ---------- */
.about-faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 1.5rem;
    align-items: start;
}

.about-disclaimer-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 18px;
    padding: 1.45rem;
    color: #78350f;
}

html.dark .about-disclaimer-box {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(251, 191, 36, 0.28);
    color: #fde68a;
}

.about-disclaimer-box h3 {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.about-disclaimer-box p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.62;
}

.about-faq-list {
    display: grid;
    gap: 0.75rem;
}

.about-faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
}

.about-faq-q {
    width: 100%;
    border: none;
    background: transparent;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
}

.about-faq-q svg {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.about-faq-item.open .about-faq-q svg {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.about-faq-a {
    display: none;
    padding: 0 1.2rem 1.05rem;
    font-size: 0.89rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.about-faq-item.open .about-faq-a {
    display: block;
}

/* ---------- 8. Bottom CTA ---------- */
.about-bottom-cta {
    border-radius: 22px;
    padding: 2.15rem 2.35rem;
    background: linear-gradient(135deg, #eef2ff 0%, #ecfdf5 100%);
    border: 1px solid #c7d2fe;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

html.dark .about-bottom-cta {
    background: linear-gradient(135deg, #172554 0%, #064e3b 100%);
    border-color: rgba(129, 140, 248, 0.3);
}

.about-bottom-cta h2 {
    margin: 0 0 0.35rem;
    font-size: 1.4rem;
    font-weight: 850;
    color: var(--text-primary);
}

.about-bottom-cta p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.94rem;
}

/* Responsive */
@media (max-width: 1120px) {
    .about-hero-grid,
    .about-faq-layout,
    .about-standards-grid {
        grid-template-columns: 1fr;
    }
    .about-pillars-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .about-domains-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .about-hero,
    .about-story-card,
    .about-bottom-cta {
        padding: 1.35rem;
    }
    .about-pillars-grid,
    .about-steps-grid,
    .about-domains-grid {
        grid-template-columns: 1fr;
    }
}
