* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background: #f4f7fb;
    color: #101828;
}
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(circle at top right, #dbe8ff, transparent 30%), linear-gradient(135deg, #03247d, #0243cc 60%, #cc0001);
}
.hero-card, .form-card {
    width: 100%;
    max-width: 920px;
    background: #fff;
    border-radius: 28px;
    padding: 46px;
    box-shadow: 0 24px 80px rgba(0,0,0,.18);
}
.hero-card h1, .form-card h1, .result-header h1 {
    margin: 14px 0;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.08;
    color: #03247d;
}
.hero-card p, .result-header p {
    font-size: 18px;
    line-height: 1.7;
    color: #475467;
    max-width: 760px;
}
.badge, .step {
    display: inline-block;
    background: #fff1f1;
    color: #cc0001;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}
.btn {
    display: inline-block;
    border: 0;
    background: #cc0001;
    color: #fff;
    padding: 15px 24px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
}
.btn:hover { opacity: .92; }
.btn.secondary { background: #03247d; }
.btn.full { width: 100%; margin-top: 22px; }
.page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}
.top-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}
.percent {
    background: #03247d;
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 800;
}
.progress {
    width: 100%;
    height: 12px;
    background: #e4e7ec;
    border-radius: 999px;
    overflow: hidden;
    margin: 10px 0 30px;
}
.progress div {
    height: 100%;
    background: linear-gradient(90deg, #cc0001, #0243cc);
}
h2 {
    font-size: 28px;
    margin: 0 0 8px;
    color: #101828;
}
.hint { color: #667085; margin-top: 0; }
.options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}
.option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 2px solid #e4e7ec;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    font-weight: 600;
    background: #fff;
}
.option:hover { border-color: #0243cc; background: #f8fbff; }
.option input { margin-top: 4px; transform: scale(1.2); }
.other-label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
}
textarea {
    width: 100%;
    min-height: 100px;
    padding: 16px;
    border: 2px solid #e4e7ec;
    border-radius: 16px;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
}
.result-wrap { padding: 28px; }
.result-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 24px;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.canvas {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr 1fr .9fr;
    gap: 12px;
    min-height: 720px;
}
.box {
    background: #fff;
    border: 2px solid #d0d5dd;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(16,24,40,.06);
}
.box h3 {
    margin: 0 0 12px;
    color: #03247d;
    font-size: 18px;
    border-bottom: 4px solid #cc0001;
    padding-bottom: 8px;
}
.box ul { padding-left: 20px; margin: 0; }
.box li { margin-bottom: 8px; line-height: 1.45; font-size: 14px; }
.tall { grid-row: span 2; }
.kp { grid-column: 1; }
.ka { grid-column: 2; grid-row: 1; }
.kr { grid-column: 2; grid-row: 2; }
.vp { grid-column: 3; }
.cr { grid-column: 4; grid-row: 1; }
.ch { grid-column: 4; grid-row: 2; }
.cs { grid-column: 5; }
.cost { grid-column: 1 / span 2; grid-row: 3; }
.revenue { grid-column: 3 / span 3; grid-row: 3; }
.empty { color: #98a2b3; }
@media (max-width: 900px) {
    .hero-card, .form-card { padding: 28px; }
    .options { grid-template-columns: 1fr; }
    .result-header { flex-direction: column; align-items: flex-start; }
    .canvas { display: block; min-height: 0; }
    .box { margin-bottom: 12px; }
}
@media print {
    body { background: #fff; }
    .no-print { display: none; }
    .result-wrap { padding: 0; }
    .canvas { gap: 6px; min-height: auto; }
    .box { box-shadow: none; border-radius: 8px; padding: 10px; }
    .box h3 { font-size: 13px; }
    .box li { font-size: 10px; }
}
