/* Quick-facts grid */
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fact-tile { background: var(--sandstone); border: 1px solid var(--border);
    border-radius: 12px; padding: 26px 16px; text-align: center; }
.fact-tile .fact-num { font-family: "Space Grotesk", sans-serif; font-weight: 700;
    font-size: 28px; color: var(--orange); margin-bottom: 6px; }
.fact-tile .fact-label { font-size: 13px; color: var(--text-2); }

/* Tracker card */
.tracker-card { background: var(--white); border: 1px solid var(--border);
    border-radius: 16px; padding: 28px; box-shadow: 0 8px 30px rgba(26,26,26,.06); }

/* Form controls */
.calc-field { margin-bottom: 0; }
.calc-label { display: block; font-family: "Space Grotesk", sans-serif;
    font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--black); }
.calc-input, .calc-select { width: 100%; font-family: inherit; font-size: 16px;
    padding: 12px 14px; background: var(--white); border: 1px solid var(--border);
    border-radius: 8px; color: var(--black); }
.calc-input:focus, .calc-select:focus { outline: none; border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232,93,31,.12); }
.calc-input-group { display: flex; align-items: stretch; }
.calc-input-group .calc-prefix { display: flex; align-items: center;
    padding: 0 14px; background: var(--sandstone); border: 1px solid var(--border);
    border-right: none; border-radius: 8px 0 0 8px; font-weight: 600; }
.calc-input-group .calc-input { border-radius: 0 8px 8px 0; }
.calc-help { font-size: 13px; color: var(--text-2); margin-top: 6px; }

/* Growth-rate segmented toggle (radios visually hidden) */
.growth-toggle { display: grid; grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.growth-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.growth-toggle label { display: flex; align-items: center; justify-content: center;
    padding: 11px 6px; font-family: "Space Grotesk", sans-serif; font-weight: 600;
    font-size: 13px; cursor: pointer; background: var(--white); color: var(--text-2);
    border-right: 1px solid var(--border); transition: background .15s, color .15s; }
.growth-toggle label:last-of-type { border-right: none; }
.growth-toggle input:checked + label { background: var(--orange); color: #fff; }

/* Threshold meter */
.threshold-meter { height: 38px; background: var(--sandstone);
    border: 1px solid var(--border); border-radius: 999px; overflow: hidden; position: relative; }
.threshold-fill { height: 100%;
    background: linear-gradient(90deg, var(--green) 0%, var(--yellow) 75%, #C0392B 100%);
    transition: width 0.5s ease; }
.threshold-marker { position: absolute; top: 0; width: 3px; height: 100%;
    background: var(--black); left: 75%; }

/* Projection result tiles */
.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.proj-tile { border-radius: 10px; padding: 18px; text-align: center; }
.proj-tile .proj-num { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 22px; }
.proj-tile.proj-hit { background: rgba(46,93,59,.08); border: 1px solid rgba(46,93,59,.2); }
.proj-tile.proj-hit .proj-num { color: var(--green); }
.proj-tile.proj-deadline { background: rgba(192,57,43,.08); border: 1px solid rgba(192,57,43,.2); }
.proj-tile.proj-deadline .proj-num { color: #C0392B; }
.proj-tile .proj-label { font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* Alert — JS rewrites className to alert + alert-danger/warning/info, so define them all */
.alert { border-radius: 10px; padding: 14px 18px; font-size: 14px; }
.alert.d-flex { display: flex; }
.alert.align-items-center { align-items: center; }
.alert i { font-size: 22px; margin-right: 14px; }
.alert-danger { background: rgba(192,57,43,.08); border: 1px solid rgba(192,57,43,.25); }
.alert-warning { background: rgba(216,160,42,.1); border: 1px solid rgba(216,160,42,.3); }
.alert-info { background: rgba(46,93,59,.08); border: 1px solid rgba(46,93,59,.2); }

/* Projection table */
.projection-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.projection-table th { text-align: left; font-family: "Space Grotesk", sans-serif;
    font-weight: 600; padding: 10px 12px; background: var(--sandstone);
    border-bottom: 2px solid var(--border); }
.projection-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.badge { display: inline-block; font-family: "Space Grotesk", sans-serif;
    font-weight: 600; font-size: 11px; padding: 3px 9px; border-radius: 999px; }
.badge.bg-danger { background: rgba(192,57,43,.14); color: #C0392B; }
.badge.bg-success { background: rgba(46,93,59,.14); color: var(--green); }

/* Email capture */
.email-capture { background: var(--sandstone); border: 1px solid var(--border);
    border-radius: 14px; padding: 28px; }
.email-capture h3 { text-align: center; font-size: 19px; margin-bottom: 6px; }
.email-capture-row { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 10px;
    align-items: start; }
.invalid-feedback { display: none; color: #C0392B; font-size: 13px; margin-top: 5px; }
.was-validated .calc-input:invalid { border-color: #C0392B; }
.was-validated .calc-input:invalid ~ .invalid-feedback { display: block; }
.reminder-benefits { display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; margin-top: 18px; text-align: center; font-size: 13px; color: var(--text-2); }

/* Timeline */
.tl-col { display: flex; flex-direction: column; gap: 22px; }
.tl-item { border-left: 3px solid var(--orange); padding-left: 20px; position: relative; }
.tl-item:before { content: ""; position: absolute; left: -9px; top: 4px; width: 14px;
    height: 14px; border-radius: 50%; background: var(--orange); border: 2px solid var(--white); }
.tl-item.urgent { border-left-color: #C0392B; }
.tl-item.urgent:before { background: #C0392B; }
.tl-item h4 { margin: 0 0 4px; font-size: 17px; }
.tl-item p { margin: 0; font-size: 14px; color: var(--text-2); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 880px) {
    .fact-grid { grid-template-columns: 1fr 1fr; }
    .proj-grid, .two-col, .email-capture-row { grid-template-columns: 1fr; }
    .reminder-benefits { grid-template-columns: 1fr; }
}