@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@100..900&family=Instrument+Serif:ital@0;1&display=swap');

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

html {
    scroll-behavior: smooth;
}

/* ── DARK MODE (default) ── */
:root,
[data-theme="dark"] {
    --bg: linear-gradient(135deg, #0f0f0f, #1c1c1e, #2d1f1f);
    --navbar-bg: rgba(15, 15, 15, 0.7);
    --text: #f5f5f4;
    --text-secondary: #a8a29e;
    --text-accent: #fca5a5;
    --hero-p: rgba(168, 162, 158, 0.9);
    --card-bg: rgba(239, 68, 68, 0.07);
    --card-border: rgba(239, 68, 68, 0.15);
    --card-border-hover: rgba(239, 68, 68, 0.3);
    --input-bg: rgba(15, 15, 15, 0.7);
    --input-border: rgba(239, 68, 68, 0.15);
    --input-focus: #ef4444;
    --btn-bg: #b91c1c;
    --btn-hover: #dc2626;
    --btn-glow: rgba(239, 68, 68, 0.3);
    --slider-track: rgba(239, 68, 68, 0.15);
    --slider-thumb: #b91c1c;
    --progress-track: rgba(15, 15, 15, 0.6);
    --progress-fill: linear-gradient(to right, #ef4444, #fb923c);
    --heading-color: #fef2f2;
    --percentage-color: #f87171;
    --report-card-bg: rgba(239, 68, 68, 0.06);
    --report-h3: #f87171;
    --report-h4: #fef2f2;
    --report-p: #a8a29e;
    --glow1: #ef4444;
    --glow2: #fb923c;
    --nav-hover: #f87171;
    --section-h2: #f5f5f4;
    --section-p: #fca5a5;
    --toggle-icon: "🌙";
}

/* ── LIGHT MODE (Frost) ── */
[data-theme="light"] {
    --bg: linear-gradient(135deg, #f8fafc, #f1f5f9, #e2e8f0);
    --navbar-bg: rgba(255, 255, 255, 0.8);
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-accent: #6366f1;
    --hero-p: #64748b;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: #e2e8f0;
    --card-border-hover: #c7d2fe;
    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
    --input-focus: #6366f1;
    --btn-bg: #6366f1;
    --btn-hover: #4f46e5;
    --btn-glow: rgba(99, 102, 241, 0.3);
    --slider-track: #e2e8f0;
    --slider-thumb: #6366f1;
    --progress-track: #e2e8f0;
    --progress-fill: linear-gradient(to right, #6366f1, #06b6d4);
    --heading-color: #1e293b;
    --percentage-color: #6366f1;
    --report-card-bg: rgba(255, 255, 255, 0.9);
    --report-h3: #4f46e5;
    --report-h4: #1e293b;
    --report-p: #64748b;
    --glow1: #a5b4fc;
    --glow2: #67e8f9;
    --nav-hover: #4f46e5;
    --section-h2: #1e293b;
    --section-p: #64748b;
    --toggle-icon: "☀️";
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Archivo', sans-serif;
    transition: background 0.4s ease, color 0.3s ease;
}

/* ── NAVBAR ── */
.navbar {
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(14px);
    transition: background 0.4s ease;
}

.logo {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-family: 'Instrument Serif', serif;
    font-size: 1.3rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 200;
    letter-spacing: -0.5px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--nav-hover);
}

/* ── THEME TOGGLE ── */
#themeToggle {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

#themeToggle:hover {
    border-color: var(--input-focus);
}

#loginBtn, #logoutBtn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    padding: 0.4rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text);
    transition: 0.3s;
    outline: none;
}

#loginBtn:hover, #logoutBtn:hover {
    border-color: var(--input-focus);
    background: var(--btn-bg);
    color: white;
}

/* ── HERO ── */
.hero {
    color: var(--text);
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-family: 'Instrument Serif' !important;
    font-size: 4.5rem;
    font-weight: 500;
    letter-spacing: -2px;
    color: var(--text);
}

.hero p {
    color: var(--hero-p);
    font-size: 1.5rem;
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.7;
}

.hero button {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 14px;
    background: var(--btn-bg);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.hero button:hover {
    transform: translateY(-4px);
    background: var(--btn-hover);
    box-shadow: 0 10px 30px var(--btn-glow);
}




/* ── CALCULATOR SECTION ── */
.calculator-section {
    scroll-margin-top: -40px;
    padding: 6rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.calculator-section h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 4rem;
    font-weight: 400;
    color: var(--section-h2);
}

.calculator-section p {
    color: var(--section-p);
}

/* ── CALCULATOR CARD ── */
.calculator-card {
    width: 100%;
    scroll-margin-top: 100px;
    max-width: 700px;
    padding: 2rem;
    border-radius: 24px;
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.input-group label {
    margin-bottom: 0.7rem;
    font-weight: 500;
    color: var(--text-accent);
    font-size: 1.3rem;
}

/* ── HIDE INPUT SPINNERS ── */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

.input-control-wrap {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
}

.input-control-wrap input {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--input-border);
    border-radius: 16px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.ctrl-btn {
    width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text);
    border-radius: 16px;
    transition: 0.2s;
    user-select: none;
}

.ctrl-btn:hover {
    background: var(--btn-bg);
    border-color: var(--btn-bg);
    color: white;
    box-shadow: 0 4px 12px var(--btn-glow);
}

.ctrl-btn:active {
    transform: scale(0.95);
}

.input-group input::placeholder {
    color: var(--text-secondary);
}

.input-group input:focus {
    border: 1px solid var(--input-focus);
    box-shadow: 0 0 20px var(--btn-glow);
}

#calculateBtn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 14px;
    background: var(--btn-bg);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 1rem;
}

#calculateBtn:hover {
    background: var(--btn-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--btn-glow);
}

#resetBtn {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 0.8rem;
}

#resetBtn:hover {
    border-color: var(--input-focus);
    color: var(--text);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.03);
}

#resetBtn:active {
    transform: scale(0.98);
}

/* ── SLIDER ── */
.slider-container {
    display: flex;
    margin-top: 0.5rem;
    align-items: center;
    gap: 1rem;
}

#targetPercentage {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: var(--slider-track);
    outline: none;
    cursor: pointer;
}

#targetPercentage::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--slider-thumb);
    cursor: pointer;
    transition: 0.2s;
}

#targetPercentage::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

#sliderValue {
    min-width: 70px;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    background: var(--btn-bg);
    color: white;
    font-weight: 700;
    text-align: center;
}

/* ── PRESETS ── */
.preset-container {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.8rem;
    width: 100%;
}

.preset-btn {
    flex: 1;
    padding: 0.5rem 0.2rem;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    outline: none;
}

.preset-btn:hover,
.preset-btn.active {
    background: var(--btn-bg);
    border-color: var(--btn-bg);
    color: white;
    box-shadow: 0 4px 12px var(--btn-glow);
}

.preset-btn:active {
    transform: scale(0.95);
}

/* ── RESULTS ── */
#results {
    width: 100%;
    max-width: 700px;
    margin: 3rem auto 0;
    scroll-margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--card-border);
}

/* ── PROGRESS ── */
.progress-card {
    width: 100%;
    padding: 0 0 1.5rem 0;
    background: transparent;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--heading-color);
}

#percentageText {
    font-size: 2rem;
    font-weight: 800;
    color: var(--percentage-color);
}

.progress-bar {
    width: 100%;
    height: 22px;
    background: var(--progress-track);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--progress-fill);
    border-radius: 999px;
    transition: 0.5s;
}

/* ── DASHBOARD CARDS ── */
#dashboardCards {
    width: 100%;
    font-family: 'Archivo' !important;
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.dashboard-card {
    min-height: 130px;
    padding: 1.2rem 1.5rem;
    border-radius: 28px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.3s;
}

.dashboard-card:last-child {
    grid-column: 1 / -1;
}

.dashboard-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-border-hover);
}

.dashboard-card h4 {
    color: var(--text-accent);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-card h2 {
    font-family: 'Archivo' !important;
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.dashboard-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ── REPORT BTN ── */
#reportBtn {
    display: none;
    margin-top: 2rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 18px;
    background: var(--btn-bg);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

#reportBtn:hover {
    background: var(--btn-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--btn-glow);
}

/* ── DETAILED REPORT ── */
#detailedReport {
    width: 100%;
    scroll-margin-top: 40px;
    padding: 4rem 2rem 6rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.report-card {
    width: 100%;
    max-width: 1000px;
    padding: 3rem;
    border-radius: 32px;
    background: var(--report-card-bg);
    backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
}

.report-card h3 {
    color: var(--report-h3);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.report-item {
    margin-bottom: 2rem;
}

.report-item h4 {
    color: var(--report-h4);
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
}

.report-item p {
    color: var(--report-p);
    line-height: 1.8;
    font-size: 1rem;
}

/* ── COLORS ── */
.green {
    color: #22c55e;
}

.red {
    color: #ef4444;
}

.blue {
    color: var(--percentage-color);
}

.yellow {
    color: #facc15;
}

/* ── ANIMATIONS ── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ── INSIGHTS ── */
#reportContent {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}



.insight-card {
    font-family: 'Archivo', sans-serif;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: 0.3s;
}

.insight-card:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-3px);
}

.insight-card-title {
    font-family: 'Archivo', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.insight-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: -0.4rem;
    margin-bottom: 0.2rem;
}


/* what-if */
.whatif-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.whatif-label {
    font-family: 'Archivo', sans-serif;
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.sim-range {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 999px;
    background: var(--slider-track);
    outline: none;
    cursor: pointer;
}

.sim-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--btn-bg);
    cursor: pointer;
}

.whatif-val {
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    min-width: 24px;
    text-align: center;
}

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

.scenario {
    border-radius: 20px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.scenario.miss {
    background: rgba(239, 68, 68, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.scenario.attend {
    background: rgba(34, 197, 94, 0.07);
    border: 1px solid rgba(34, 197, 94, 0.18);
}

.scenario-icon {
    font-size: 1.4rem;
}

.scenario-label {
    font-family: 'Archivo', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.scenario-pct {
    font-family: 'Archivo', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.scenario-bar-wrap {
    height: 6px;
    background: var(--progress-track);
    border-radius: 999px;
    overflow: hidden;
}

.scenario-bar {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.miss-bar {
    background: #ef4444;
}

.attend-bar {
    background: #22c55e;
}

.scenario-note {
    font-family: 'Archivo', sans-serif;
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* gap card */
.gap-bar-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.gap-bar-label {
    display: flex;
    justify-content: space-between;
    font-family: 'Archivo', sans-serif;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.gap-bar-label span:last-child {
    font-weight: 700;
    color: var(--text);
}

.gap-track {
    height: 12px;
    background: var(--progress-track);
    border-radius: 999px;
    overflow: visible;
    position: relative;
}

.gap-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s ease;
}

.gap-target-line {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 2px;
    background: var(--text);
    opacity: 0.4;
    border-radius: 999px;
}

.classes-needed-box {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.2rem;
    background: var(--progress-track);
    border-radius: 20px;
    margin-top: 0.2rem;
}

.classes-num {
    font-family: 'Archivo', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    min-width: 3rem;
}

.classes-txt {
    font-family: 'Archivo', sans-serif;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}




#results {
    display: none;
}

#results.show {
    display: flex;
}

#detailedReport {
    display: none;
}

#detailedReport.show {
    display: flex;
}

/* ── ABOUT OVERLAY ── */
#aboutOverlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#aboutOverlay.open {
    opacity: 1;
    pointer-events: auto;
}

.about-overlay-inner {
    width: 100%;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

#aboutOverlay.open .about-overlay-inner {
    transform: translateY(0);
}

#aboutClose {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: 0.2s;
}

#aboutClose:hover {
    background: rgba(255, 255, 255, 0.2);
}

.neo-card {
    background: #fefce8;
    border: 3px solid #111;
    max-height: 80vh;
    overflow-y: auto;
}

.neo-topbar {
    background: #111;
    padding: 0.65rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.neo-topbar-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1rem;
    color: #fefce8;
}

.neo-page-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.neo-body {
    display: grid;
    grid-template-columns: 190px 1fr;
}

.neo-left {
    border-right: 3px solid #111;
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.neo-avatar {
    width: 110px;
    height: 110px;
    border: 3px solid #111;
    box-shadow: 5px 5px 0 #111;
    object-fit: cover;
    display: block;
}

.neo-name-block {
    text-align: center;
}

.neo-name {
    font-size: 1rem;
    font-weight: 900;
    color: #111;
}

.neo-role {
    font-size: 0.62rem;
    font-weight: 700;
    color: #78716c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 3px;
}

.neo-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.neo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid #111;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 3px 3px 0 #111;
    transition: 0.15s;
}

.neo-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #111;
}

.neo-linkedin {
    background: #dbeafe;
    color: #1d4ed8;
}

.neo-github {
    background: #f3f4f6;
    color: #111;
}

.neo-instagram {
    background: #fce7f3;
    color: #be185d;
}

.neo-youtube {
    background: #fee2e2;
    color: #dc2626;
}

.neo-email {
    background: #fef9c3;
    color: #854d0e;
}

.neo-whatsapp {
    background: #dcfce7;
    color: #16a34a;
}

.neo-right {
    padding: 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.neo-accent-tag {
    display: inline-block;
    background: #111;
    color: #fbbf24;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 3px 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: fit-content;
}

.neo-heading {
    font-family: 'Instrument Serif', serif;
    font-size: 2rem;
    color: #111;
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1.05;
}

.neo-sub {
    font-size: 0.75rem;
    font-weight: 700;
    color: #78716c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: -0.4rem;
}

.neo-divider {
    height: 2px;
    background: repeating-linear-gradient(90deg, #111 0px, #111 8px, transparent 8px, transparent 14px);
}

.neo-bio span {
    font-family: 'Instrument Serif' !important;
    font-weight: 600;
}

.neo-bio {
    font-size: 0.8rem;
    color: #44403c;
    line-height: 1.8;
}

.neo-bio strong {
    font-weight: 900;
    color: #111;
}

.neo-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.neo-tag {
    background: #111;
    color: #fbbf24;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 9px;
}

.neo-pwa-notice {
    background: #eff6ff;
    border: 2px solid #111;
    padding: 0.8rem 1rem;
    box-shadow: 3px 3px 0 #111;
    font-size: 0.75rem;
    color: #1e3a8a;
    line-height: 1.6;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.neo-wa {
    background: #dcfce7;
    border: 2px solid #111;
    padding: 1rem;
    box-shadow: 4px 4px 0 #111;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.neo-wa-title {
    font-size: 0.8rem;
    font-weight: 900;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.neo-wa-desc {
    font-size: 0.72rem;
    color: #4b7a5a;
    line-height: 1.5;
}

.neo-wa-btn {
    display: block;
    padding: 8px 16px;
    background: #111;
    color: #dcfce7;
    border: 2px solid #111;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 3px 3px 0 #16a34a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: 0.15s;
    text-align: center;
    text-decoration: none;
}

.neo-wa-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #16a34a;
}



/* ── MOBILE ── */
@media(max-width:768px) {

    .hero {
        min-height: 75vh;
        padding-top: 5rem;
    }

    .logo {
        font-size: 1rem;
    }

    .classes-num {
        font-size: 2rem;
    }


    .navbar {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        font-size: 1rem;
    }

    #themeToggle {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 4.5rem);
        line-height: 1.1;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .calculator-section {
        padding: 6rem 1rem 4rem;
    }

    body {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .classes-needed-box {
        flex-direction: column;
        text-align: center;
    }

    .calculator-card {
        padding: 1.5rem;
    }

    .preset-container {
        gap: 0.3rem;
    }

    .preset-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.1rem;
    }

    #dashboardCards {
        grid-template-columns: 1fr;
    }

    .dashboard-card:last-child {
        grid-column: auto;
    }

    .dashboard-card h2 {
        font-size: 2rem;
    }

    .progress-info {
        flex-direction: column;
        gap: 1rem;
    }

    .progress-info h3 {
        font-size: 1.5rem;
    }

    #percentageText {
        font-size: 1.5rem;
    }

    .insights-row {
        grid-template-columns: 1fr;
    }

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

    .donut-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .insight-card {
        padding: 1rem;
        border-radius: 20px;
    }

    #reportContent {
        gap: 0.8rem;
    }

    .whatif-controls {
        flex-wrap: wrap;
    }

    .neo-body {
        grid-template-columns: 1fr;
    }

    .neo-left {
        border-right: none;
        border-bottom: 3px solid #111;
    }

    .neo-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .neo-heading {
        font-size: 1.6rem;
    }

    /* Additional mobile optimizations */
    .report-card {
        padding: 1.5rem 1rem;
        border-radius: 24px;
    }

    .input-group label {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    #calculateBtn {
        font-size: 1.1rem;
        padding: 0.8rem;
    }

    #resetBtn {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .dashboard-card {
        border-radius: 20px;
        padding: 1rem;
        min-height: 100px;
    }

    .progress-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .scenario {
        padding: 1rem;
    }
}

/* ── SMALL MOBILE OPTIMIZATIONS ── */
@media(max-width: 480px) {
    .navbar {
        padding: 0.6rem 0.8rem;
    }
    .nav-links a[href="#hero"],
    .nav-links a[href="#calculator"] {
        display: none;
    }
    .nav-links {
        gap: 0.6rem;
    }
    .logo {
        font-size: 1.1rem;
    }
    .ctrl-btn {
        width: 48px;
    }
}



/* enforce Archivo on ALL insight cards */
.insight-card,
.insight-card *,
.insight-card-title,
.whatif-label,
.whatif-val,
.scenario-label,
.scenario-pct,
.scenario-note,
.gap-bar-label,
.classes-num,
.classes-txt {
    font-family: 'Archivo', sans-serif !important;
}

