/* ==========================================================================
   The Equitable Standard — charter + certification + FAQ (static site)
   Same design language as WorkSigned / Equitable Corporation.
   Two small-text tiers only:
     --fs-body  (17px)  card body, faq, lead
     --fs-small (14.5px) fine print: eyebrow, footer, summary hints
   ========================================================================== */
:root {
    --bg: #0b0d12;
    --bg-elev: #12151d;
    --bg-elev-2: #171b25;
    --border: #232838;
    --border-strong: #2f3648;

    --text: #f4f6fb;
    --text-muted: #a7afc0;
    --text-faint: #6f7789;

    --accent: #5b8cff;
    --accent-2: #34d3a6;
    --accent-soft: rgba(91, 140, 255, 0.14);
    --grad: linear-gradient(100deg, #5b8cff 0%, #34d3a6 100%);

    /* Two small-text tiers (the only two small sizes) */
    --fs-body: 17px;
    --fs-small: 14.5px;

    --radius: 16px;
    --maxw: 1120px;
    --maxw-narrow: 820px;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: var(--fs-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
body::before {
    content: "";
    position: fixed; top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(circle, rgba(91,140,255,0.16) 0%, rgba(52,211,166,0.05) 45%, transparent 70%);
    z-index: 0; pointer-events: none;
}

/* ===== LAYOUT ===== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: var(--maxw-narrow); }

/* ===== TOP BAR ===== */
#topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11,13,18,0.72);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.topbar-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
#logo {
    font-size: 19px; font-weight: 800; letter-spacing: -0.4px;
    display: inline-flex; align-items: center; gap: 8px;
}
#logo:hover { text-decoration: none; }
.logo-mark {
    display: inline-grid; place-items: center;
    width: 26px; height: 26px; border-radius: 8px;
    background: var(--grad); color: #0b0d12; font-size: 15px; font-weight: 900;
}
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a {
    font-size: var(--fs-small); font-weight: 500; color: var(--text-muted);
    transition: color 0.2s;
}
.topnav a:hover { color: var(--text); }

/* ===== HERO ===== */
.hero { position: relative; z-index: 1; text-align: center; padding: 96px 0 76px; }
.eyebrow {
    display: inline-block;
    font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.4px;
    color: var(--accent-2);
    background: rgba(52,211,166,0.12); border: 1px solid rgba(52,211,166,0.3);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 26px;
}
.hero h1 {
    font-size: clamp(38px, 6vw, 76px);
    font-weight: 800; line-height: 1.02; letter-spacing: -2px; margin-bottom: 26px;
}
.grad {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hero .sub {
    font-size: clamp(17px, 2.2vw, 21px);
    color: var(--text-muted);
    max-width: 760px; margin: 0 auto; line-height: 1.65;
}
.hero .sub strong { color: var(--text); font-weight: 600; }

/* ===== SECTIONS ===== */
.section { position: relative; z-index: 1; padding: 80px 0; border-top: 1px solid var(--border); }
.section-alt { background: var(--bg-elev); }
.section-title {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800; letter-spacing: -1px;
    text-align: center; margin-bottom: 16px;
}
.section-lead {
    font-size: var(--fs-body); color: var(--text-muted);
    max-width: 640px; margin: 0 auto 48px; text-align: center;
}
.section-lead strong { color: var(--text); font-weight: 600; }

/* ===== CHARTER CARDS ===== */
.cards {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 22px; max-width: 1000px; margin: 0 auto;
}
.card {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 28px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.card h3 {
    font-size: 20px; font-weight: 700; letter-spacing: -0.3px;
    margin-bottom: 14px; color: var(--text);
}
.card .problem {
    font-size: var(--fs-body); color: var(--text-muted);
    margin-bottom: 12px;
}
.card .solution {
    font-size: var(--fs-body); color: var(--text-muted);
    border-left: 3px solid var(--accent);
    padding-left: 14px;
}
.card .solution strong { color: var(--accent-2); font-weight: 700; }

/* ===== CERTIFICATION ===== */
.cert-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 22px; margin-bottom: 36px;
}
.cert-item {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
}
.cert-item h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.cert-item p { font-size: var(--fs-body); color: var(--text-muted); }
.cert-cta { text-align: center; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: 999px;
    font-size: var(--fs-body); font-weight: 600; border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s, border-color 0.2s;
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }

/* ===== FAQ (details/summary accordion) ===== */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin: 0 auto; }
.faq-item {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 12px);
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 22px;
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--text);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 22px; font-weight: 400;
    color: var(--accent);
    transition: transform 0.2s;
}
.faq-item[open] summary { background: rgba(91,140,255,0.06); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
    padding: 0 22px 20px 22px;
    font-size: var(--fs-body);
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
#footer { border-top: 1px solid var(--border); padding: 28px 0; position: relative; z-index: 1; }
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}
#foot-brand { font-size: 16px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.foot-copy { font-size: var(--fs-small); color: var(--text-faint); }
.foot-copy a { color: var(--text-muted); }
.foot-copy a:hover { color: var(--text); }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.cards .reveal:nth-child(2n) { transition-delay: 0.1s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .cards { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 640px) {
    .topbar-inner { padding: 0 18px; }
    .topnav a:not(:last-child) { display: none; }
    .hero { padding: 72px 0 56px; }
    .section { padding: 60px 0; }
    .container { padding: 0 18px; }
    .footer-inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
