:root {
    --brand:      #EC610E;
    --brand-dark: #C14800;
    --brand-light:#FFE1CE;
    --bg:         #FFFFFF;
    --bg-2:       #F9F6F3;
    --bg-3:       #F2EDE8;
    --text:       #1A1410;
    --text-2:     #5C4A3A;
    --text-3:     #9E8575;
    --border:     #E8DDD5;
    --success:    #2D7A4F;
    --danger:     #C0392B;
    --info:       #1A5F8A;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background-color: var(--bg-2);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

h1, h2, h3 {
    font-family: 'Kantumruy Pro', serif;
    margin-bottom: 1rem;
}

/* HERO */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--brand-light), #fff);
    border-radius: 32px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.main-title {
    font-size: 2.5rem;
    line-height: 1.2;
}

.main-title span {
    color: var(--brand);
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-2);
}

/* EEAT BANNER */
.eeat-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border);
    font-size: 0.9rem;
    color: var(--text-2);
}

.eeat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.eeat-icon {
    font-size: 1.1rem;
}

/* CARDS */
.card {
    background: #fff;
    padding: 2rem;
    border-radius: 24px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

h2 {
    font-size: 1.5rem;
    color: var(--brand-dark);
    border-bottom: 2px solid var(--brand-light);
    display: inline-block;
    padding-bottom: 0.3rem;
    margin-bottom: 1.5rem;
}

/* DIAGNOSTIC */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-2);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.diagnostic-result {
    display: none;
    padding: 1.5rem;
    background: var(--bg-3);
    border-radius: 16px;
}

.diagnostic-result.active {
    display: block;
    animation: fadeIn 0.4s;
}

/* TRAFFIC GRID */
.traffic-grid {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.grid-header {
    background: var(--bg-3);
    padding: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.level-cell, .content-cell, .reason-cell {
    background: #fff;
    padding: 1rem;
    font-size: 0.9rem;
}

.level-cell {
    font-weight: 800;
    text-align: center;
}

.avoid { color: var(--danger); }
.limit { color: var(--brand); }
.safe { color: var(--success); }

/* PANTRY GRID */
.pantry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.pantry-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-2);
    border-radius: 20px;
}

.pantry-item .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* MYTHS */
.myth-box {
    background: #fff;
    border-left: 5px solid var(--brand);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.myth { color: var(--danger); margin-bottom: 0.5rem; }
.reality { color: var(--success); }

/* TIMELINE */
.timeline {
    margin: 2rem 0;
    position: relative;
    padding-left: 2rem;
    border-left: 2px dashed var(--brand-light);
}

.time-point {
    margin-bottom: 1.5rem;
    position: relative;
}

.time-point::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    background: var(--brand);
    border-radius: 50%;
}

.day {
    font-weight: 700;
    color: var(--brand-dark);
    display: block;
}

/* SCORECARD */
.quiz-step {
    margin-bottom: 2rem;
}

.quiz-step h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-2);
}

.quiz-step label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.quiz-step label:hover {
    background: var(--bg-2);
}

.calculate-btn {
    display: block;
    width: 100%;
    padding: 1.2rem;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.calculate-btn:active {
    transform: scale(0.98);
}

.result-box {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
}

.result-box.hidden { display: none; }

.result-box.safe-zone { background: #E8F5E9; border: 1px solid #C8E6C9; color: var(--success); }
.result-box.danger-zone { background: #FFF3E0; border: 1px solid #FFE0B2; color: #E65100; }
.result-box.eruption-zone { background: #FFEBEE; border: 1px solid #FFCDD2; color: var(--danger); }

.action-plan {
    margin-top: 1rem;
    text-align: left;
    font-size: 0.95rem;
}

/* SWAP TABLE */
.swap-table {
    width: 100%;
    border-collapse: collapse;
}

.swap-table th, .swap-table td {
    padding: 1rem;
    border: 1px solid var(--border);
    text-align: left;
}

.swap-table th {
    background: var(--bg-3);
    font-weight: 700;
}

/* LEAD MAGNET */
.lead-magnet {
    text-align: center;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: #fff;
}

.lead-magnet h2 {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.cta-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: #fff;
    color: var(--brand);
    text-decoration: none;
    border-radius: 99px;
    font-weight: 800;
    transition: transform 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
}

.main-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-3);
    font-size: 0.8rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .traffic-grid {
        grid-template-columns: 1fr;
    }
    .grid-header { display: none; }
    .level-cell { text-align: left; border-bottom: none; }
    .main-title { font-size: 1.8rem; }
}