:root { --primary: #E84A1F; --primary-dark: #c73d17; --text-dark: #1a1a2e; --text-light: #5c5c6e; --line: #ece7e2; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Inter, system-ui, sans-serif; color: var(--text-dark); background: #f6f4f1; }
nav {
    position: sticky; top: 0; z-index: 10;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-brand { font-family: "Playfair Display", Georgia, serif; font-size: 1.6rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important; padding: 0.7rem 1.3rem; border-radius: 50px;
}
.hero { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem 1.5rem; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.75rem; font-weight: 700; color: var(--primary); }
h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.2; margin: 0.7rem 0 1rem; }
.lead { color: var(--text-light); line-height: 1.75; font-size: 1.08rem; }
.points { display: grid; gap: 0.85rem; max-width: 960px; margin: 0 auto 1.75rem; padding: 0 1.25rem; }
@media (min-width: 800px) { .points { grid-template-columns: repeat(3, 1fr); } }
.point { background: #fff; border-radius: 16px; padding: 1.15rem 1.2rem; box-shadow: 0 8px 28px rgba(26,26,46,0.05); text-align: left; }
.point strong { display: block; font-size: 0.95rem; margin-bottom: 0.35rem; }
.point span { color: var(--text-light); font-size: 0.92rem; line-height: 1.55; }
.panel {
    max-width: 760px; margin: 0 auto; background: #fff; border-radius: 20px;
    padding: 1.6rem; box-shadow: 0 12px 40px rgba(26,26,46,0.06);
}
.drop {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
    min-height: 170px; border: 1.5px dashed rgba(232,74,31,0.45); border-radius: 16px;
    background: #fff8f5; color: var(--primary); cursor: pointer; text-align: center; padding: 1.4rem;
}
.drop.drag { background: #ffefe8; border-color: var(--primary); }
.drop strong { font-size: 1.05rem; }
.drop em { font-style: normal; color: var(--text-light); font-size: 0.9rem; font-weight: 500; }
.actions { display: grid; gap: 0.85rem; margin-top: 1rem; }
@media (min-width: 640px) { .actions { grid-template-columns: 1fr 1fr; align-items: end; } }
label { font-weight: 600; font-size: 0.9rem; }
select, .go {
    width: 100%; font: inherit; border-radius: 999px; padding: 0.85rem 1.1rem; font-weight: 700;
}
select { border: 1px solid var(--line); background: #fff; margin-top: 0.4rem; cursor: pointer; }
.go { border: 0; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; cursor: pointer; }
.go:disabled { opacity: 0.4; cursor: not-allowed; }
.file-meta { margin-top: 0.85rem; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; }
.file-meta span { display: block; font-weight: 500; color: var(--text-light); font-size: 0.85rem; margin-top: 0.2rem; }
#sheetWrap { margin-top: 0.85rem; }
.error { color: #b42318; font-weight: 600; margin: 0.9rem auto 0; max-width: 760px; padding: 0 1.25rem; }
.notice { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; padding: 0.85rem 1rem; border-radius: 12px; margin: 1rem 0; }
main { padding: 0 1.25rem 5rem; }
#result { display: none; max-width: 1100px; margin: 2rem auto 0; }
.result-head { margin-bottom: 0.5rem; }
.result-head h2 { font-family: "Playfair Display", Georgia, serif; font-size: 2rem; margin: 0.35rem 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; margin: 1.25rem 0; }
.kpi { background: #fff; border-radius: 16px; padding: 1rem; box-shadow: 0 8px 28px rgba(26,26,46,0.06); }
.kpi span { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); }
.kpi strong { display: block; margin-top: 0.4rem; font-size: 1.35rem; }
.charts { display: grid; gap: 1rem; }
@media (min-width: 860px) { .charts { grid-template-columns: 1fr 1fr; } }
.chart { background: #fff; border-radius: 16px; padding: 1.25rem; box-shadow: 0 8px 28px rgba(26,26,46,0.06); }
.chart h3 { font-family: "Playfair Display", Georgia, serif; font-size: 1.25rem; margin-bottom: 1rem; }
.bar-row { margin-bottom: 0.7rem; }
.bar-row div:first-child { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.25rem; }
.track { height: 10px; background: #efeae4; border-radius: 999px; overflow: hidden; }
.fill { height: 100%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; color: var(--text-light); padding-bottom: 0.4rem; }
td { border-top: 1px solid #eee; padding: 0.45rem 0; }
.notes { background: #1a1a2e; color: #fff; border-radius: 16px; padding: 1.4rem; margin-top: 1rem; }
.notes h3 { font-family: "Playfair Display", Georgia, serif; margin-bottom: 0.6rem; }
.notes li { margin: 0.35rem 0 0.35rem 1rem; color: rgba(255,255,255,0.88); }
