/* The Elimination Project — shared styles */
/* Design system lifted from donbarger.com family (CFO, Told, Study) */

:root {
    --ink:          #1B365D;
    --ink-deep:     #122543;
    --accent:       #487A7B;
    --accent-light: rgba(72,122,123,0.10);
    --accent-mid:   rgba(72,122,123,0.25);
    --muted:        #707372;
    --prompt:       #B2B4B2;
    --imb-red:      #B83A4B;
    --imb-teal:     #009681;
    --imb-orange:   #E87722;
    --imb-yellow:   #F3D54E;
    --bg:           #F7F8FA;
    --white:        #FFFFFF;
    --border:       #DDE1E7;
    --text:         #384757;
    --shadow-sm:    0 1px 3px rgba(27,54,93,0.08);
    --shadow-md:    0 4px 12px rgba(27,54,93,0.12);
    --shadow-lg:    0 8px 24px rgba(27,54,93,0.15);
    --radius:       10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.25;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── Navigation ─── */
.nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    line-height: 1;
}
.nav-logo { height: 36px; width: auto; }
.nav-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    color: var(--ink);
    font-size: 0.88rem;
    letter-spacing: 0;
    line-height: 1;
}
.nav-title .nav-sub {
    color: var(--imb-orange);
    font-weight: 700;
}
.nav-links {
    margin-left: auto;
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.nav-toggle {
    display: none;
    margin-left: auto;
    flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px;
    background: none; border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle:focus-visible { outline: 3px solid var(--accent-mid); outline-offset: 2px; }
.nav-links a {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Nunito Sans', sans-serif;
    transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--ink);
}

/* ─── Hero ─── */
.hero {
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-deep) 100%);
    color: var(--white);
    padding: 4.5rem 0 4rem 0;
    text-align: center;
}
.hero h1 {
    color: var(--white);
    font-size: 2.75rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}
.hero-eyebrow {
    color: var(--imb-orange);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.88);
    max-width: 680px;
    margin: 0 auto 1.8rem auto;
}
.hero-cta {
    display: inline-block;
    background: var(--imb-orange);
    color: var(--white);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius);
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow-md);
}
.hero-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}
.hero-cta.secondary {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.4);
    margin-left: 0.6rem;
    box-shadow: none;
}
.hero-cta.secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.7);
}

/* ─── Sections ─── */
.section {
    padding: 4rem 0;
}
.section-alt { background: var(--white); }
.section-label {
    color: var(--imb-orange);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.section-title {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}
.section-intro {
    font-size: 1.05rem;
    max-width: 680px;
    margin-bottom: 2.2rem;
    color: var(--muted);
}

/* ─── Cards ─── */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover {
    box-shadow: var(--shadow-md);
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}
.card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

/* ─── Stats strip ─── */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    margin: 2rem 0 0 0;
    box-shadow: var(--shadow-sm);
}
.stat .stat-num {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--ink);
    line-height: 1;
}
.stat .stat-label {
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-top: 0.3rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* ─── Form ─── */
.form-grid {
    display: grid;
    gap: 1.1rem;
    max-width: 680px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
.form-field label {
    display: block;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ink);
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}
.form-field .hint {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.3rem;
    line-height: 1.5;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    transition: border 0.15s, box-shadow 0.15s;
}
/* Checkboxes and radios keep their natural size; width:100% above would stretch
   them across the row and push their label off-screen. */
.form-field input[type="checkbox"],
.form-field input[type="radio"] {
    width: auto;
    padding: 0;
    flex: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.form-field textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
.form-field.required label::after {
    content: ' *';
    color: var(--imb-red);
}

.btn {
    display: inline-block;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
    text-decoration: none;
}
.btn-primary {
    background: var(--imb-orange);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: #d66b1d;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}
.btn-secondary {
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--bg);
    border-color: var(--accent);
    color: var(--ink);
}
.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent-mid);
}
.btn-ghost:hover {
    background: var(--accent-light);
    color: var(--ink);
}

.flash {
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}
.flash.ok { background: rgba(0,150,129,0.08); color: #006b5c; border: 1px solid rgba(0,150,129,0.25); }
.flash.err { background: rgba(184,58,75,0.08); color: #8e2535; border: 1px solid rgba(184,58,75,0.25); }

/* ─── Tags / pills ─── */
.pill {
    display: inline-block;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent);
}
.pill.eliminated { background: rgba(0,150,129,0.12); color: #006b5c; }
.pill.modified   { background: rgba(232,119,34,0.15); color: #a85311; }
.pill.consolidated { background: rgba(27,54,93,0.10); color: var(--ink); }
.pill.kept       { background: rgba(112,115,114,0.15); color: var(--muted); }
.pill.deferred   { background: rgba(243,213,78,0.3); color: #6b5700; }
.pill.pending    { background: rgba(243,213,78,0.3); color: #6b5700; }
.pill.under_review { background: rgba(72,122,123,0.15); color: var(--accent); }

/* ─── Burden / decision cards ─── */
.item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.item:hover {
    border-color: var(--accent-mid);
    box-shadow: var(--shadow-md);
}
.item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.item-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ink);
    line-height: 1.3;
}
.item-meta {
    font-size: 0.83rem;
    color: var(--muted);
    margin-top: 0.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.item-meta .dot::before { content: '·'; margin-right: 0.6rem; color: var(--prompt); }
.item-desc { font-size: 0.96rem; margin-top: 0.4rem; color: var(--text); }
.item-sub {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--border);
}
.item-sub h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.3rem;
    font-weight: 700;
}
.item-sub p { margin-bottom: 0.7rem; font-size: 0.94rem; }
.item-sub p:last-child { margin-bottom: 0; }

/* ─── Footer ─── */
.footer {
    background: var(--ink-deep);
    color: rgba(255,255,255,0.7);
    padding: 2.2rem 0;
    text-align: center;
    margin-top: 4rem;
    font-size: 0.9rem;
}
.footer-inner img { height: 24px; margin-bottom: 0.7rem; }
.footer-inner a { color: var(--imb-orange); }
.footer-inner a:hover { color: var(--white); }

/* ─── Utilities ─── */

/* ─── Principles (Simplify + Smart Brevity) ─── */
details.how { margin-top: 1rem; border: 1px solid var(--border); border-radius: 8px; padding: 0.8rem 1rem; background: var(--white); }
details.how summary { cursor: pointer; font-family: 'Nunito Sans', sans-serif; font-weight: 700; color: var(--ink); font-size: 0.9rem; }
details.how[open] summary { margin-bottom: 0.6rem; }
details.how p { margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text); }
details.how ul, details.how ol { margin: 0.3rem 0 0.6rem 1.2rem; font-size: 0.9rem; }

.book-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.book-card {
    display: flex; gap: 1.1rem; align-items: flex-start;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.1rem; box-shadow: var(--shadow-sm); color: var(--text);
    transition: box-shadow 0.15s, transform 0.15s;
}
.book-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--text); }
.book-card img { width: 78px; height: auto; border-radius: 4px; box-shadow: var(--shadow-md); flex-shrink: 0; }
.book-card h3 { font-size: 1.1rem; color: var(--ink); margin-bottom: 0.25rem; }
.book-card .book-role { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--imb-orange); margin-bottom: 0.35rem; }
.book-card p { font-size: 0.92rem; margin-bottom: 0.4rem; }
.book-card .go { font-weight: 700; color: var(--accent); font-size: 0.9rem; }

.principle .quote {
    margin: 0.8rem 0; padding-left: 0.9rem; border-left: 3px solid var(--imb-yellow);
    font-style: italic; color: var(--ink); font-size: 0.95rem;
}
.principle .source { font-size: 0.85rem; font-weight: 700; }
.principle .source a { color: var(--accent); }
.principle .source a:hover { color: var(--ink); }

.callout {
    border: 1px solid var(--accent-mid); background: var(--accent-light);
    border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.2rem 0; font-size: 0.94rem;
}
.callout h4 { color: var(--ink); font-size: 0.98rem; margin-bottom: 0.4rem; }
.callout p { margin-bottom: 0.4rem; }
.callout p:last-child { margin-bottom: 0; }
.callout ol, .callout ul { margin: 0.2rem 0 0.5rem 1.2rem; }
.callout a { font-weight: 700; }

.brevity-core { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.brevity-core .step { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.brevity-core .step .label { font-family: 'Nunito Sans', sans-serif; font-weight: 800; color: var(--imb-orange); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.brevity-core .step p { font-size: 0.92rem; margin-top: 0.35rem; }

.options-table { width: 100%; border-collapse: collapse; margin-top: 0.8rem; font-size: 0.93rem; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.options-table th, .options-table td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.options-table th { background: var(--ink); color: var(--white); font-family: 'Nunito Sans', sans-serif; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.options-table tr:last-child td { border-bottom: 0; }

.lens-intro { font-size: 0.9rem; font-weight: 700; color: var(--ink); background: var(--accent-light); border-radius: 6px; padding: 0.6rem 0.8rem; }

.footer-books { font-size: 0.85rem; opacity: 0.85; }

.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}

/* ─── Responsive ─── */
@media (max-width: 720px) {
    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 2rem; }
    .section { padding: 2.8rem 0; }
    .section-title { font-size: 1.6rem; }
    .form-row { grid-template-columns: 1fr; }
    .nav-inner { gap: 0.8rem; flex-wrap: wrap; }
    .nav-toggle { display: flex; }
    .nav-links { display: none; }
    .nav.open .nav-links {
        display: flex; flex-direction: column; gap: 0;
        width: 100%; margin: 0.4rem 0 0; padding-top: 0.4rem; border-top: 1px solid var(--border);
    }
    .nav.open .nav-links a { display: block; padding: 0.75rem 0.2rem; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
    .nav.open .nav-links li:last-child a { border-bottom: 0; }
    .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .page { padding: 0 1.2rem; }
    .hero-cta.secondary { margin-left: 0; margin-top: 0.5rem; display: inline-block; }
}
