/* JL Heating & Air — Fire/Ice Design System */

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-elev: #1c1c1c;
  --border: #2a2a2a;
  --border-hot: #F07030;
  --border-cold: #3A8FC9;
  --fire: #F07030;
  --fire-dim: #c25824;
  --ice: #3A8FC9;
  --ice-dim: #2b6b96;
  --text: #f5f5f5;
  --text-dim: #a8a8a8;
  --text-muted: #6a6a6a;
  --success: #3ccb7f;
  --danger: #e04c4c;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-fire: 0 0 24px rgba(240, 112, 48, 0.25);
  --shadow-ice: 0 0 24px rgba(58, 143, 201, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(240,112,48,0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(58,143,201,0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

a { color: var(--ice); text-decoration: none; }
a:hover { color: var(--fire); }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 18px 40px;
}

.container-wide { max-width: 1100px; }

/* Header / brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--fire) 0%, var(--ice) 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: #0a0a0a;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.brand-name { font-weight: 700; font-size: 17px; letter-spacing: 0.2px; }
.brand-tag { font-size: 12px; color: var(--text-dim); margin-top: 1px; }

/* Typography */
h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 8px; }
h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
p.lede { color: var(--text-dim); font-size: 15px; margin-bottom: 20px; }
.muted { color: var(--text-muted); font-size: 13px; }
.dim { color: var(--text-dim); }

/* Tiles — dashboard */
.tile-grid { display: grid; gap: 14px; margin-bottom: 22px; }

.tile {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  color: var(--text);
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.2s ease;
}

.tile:active { transform: scale(0.98); }

.tile-fire { border-color: rgba(240,112,48,0.35); }
.tile-fire:hover { border-color: var(--fire); box-shadow: var(--shadow-fire); color: var(--text); }
.tile-ice { border-color: rgba(58,143,201,0.35); }
.tile-ice:hover { border-color: var(--ice); box-shadow: var(--shadow-ice); color: var(--text); }
.tile-neutral:hover { border-color: #444; color: var(--text); }

.tile-title { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.tile-sub { color: var(--text-dim); font-size: 14px; margin-top: 4px; }
.tile-emoji { font-size: 28px; }

/* Stats bar */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
}
.stat-val { font-size: 22px; font-weight: 800; color: var(--fire); }
.stat-label { font-size: 11px; color: var(--text-dim); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.5px; }

@media (max-width: 500px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Forms */
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=date], select, textarea {
  width: 100%;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.12s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ice);
  box-shadow: 0 0 0 3px rgba(58,143,201,0.15);
}

textarea { resize: vertical; min-height: 80px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }

.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-pill {
  flex: 1;
  min-width: 80px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  transition: all 0.12s ease;
}
.radio-pill input { display: none; }
.radio-pill.active { border-color: var(--fire); background: rgba(240,112,48,0.1); color: var(--fire); }

.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-block;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s ease, filter 0.1s ease;
  text-align: center;
  letter-spacing: 0.2px;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-fire {
  background: linear-gradient(135deg, var(--fire) 0%, var(--fire-dim) 100%);
  color: #0a0a0a;
  box-shadow: var(--shadow-fire);
}
.btn-ice {
  background: linear-gradient(135deg, var(--ice) 0%, var(--ice-dim) 100%);
  color: #0a0a0a;
  box-shadow: var(--shadow-ice);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--fire); color: var(--fire); }

.btn-lg { padding: 20px; font-size: 18px; }
.btn-sm { padding: 10px 14px; font-size: 14px; width: auto; }

.btn-stack > * { margin-bottom: 12px; }
.btn-stack > *:last-child { margin-bottom: 0; }

/* Plan tier cards */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex; flex-direction: column;
}

.tier.featured {
  border-color: var(--fire);
  box-shadow: var(--shadow-fire);
  transform: translateY(-4px);
}

.tier-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--fire);
  color: #0a0a0a;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.tier-name { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.tier-price { font-size: 34px; font-weight: 800; color: var(--fire); margin: 8px 0 4px; }
.tier-price small { font-size: 14px; color: var(--text-dim); font-weight: 500; }
.tier-credit { font-size: 13px; color: var(--ice); margin-bottom: 14px; font-weight: 600; }

.tier-benefits {
  list-style: none;
  margin-bottom: 16px;
  flex-grow: 1;
}
.tier-benefits li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dim);
  position: relative;
  padding-left: 22px;
}
.tier-benefits li:last-child { border-bottom: none; }
.tier-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--fire);
  font-weight: 800;
}

.tier-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  width: 100%;
  margin-top: 6px;
}

.tier-expanded { display: none; }
.tier.open .tier-expanded { display: block; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--bg-elev);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.5px;
}
tbody tr:hover { background: rgba(58,143,201,0.05); }
tbody tr:last-child td { border-bottom: none; }

.tbl-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

/* Toasts */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elev);
  border: 1px solid var(--fire);
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 1000;
  animation: toastIn 0.2s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Copy box */
.copy-box {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-dim);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  line-height: 1.5;
}

/* Hero (customer pages) */
.hero {
  text-align: center;
  padding: 40px 16px 32px;
  background:
    radial-gradient(500px 300px at 50% 0%, rgba(240,112,48,0.15), transparent 70%),
    radial-gradient(500px 300px at 50% 100%, rgba(58,143,201,0.12), transparent 70%);
  border-radius: var(--radius);
  margin-bottom: 28px;
  border: 1px solid var(--border);
}
.hero h1 {
  font-size: 32px;
  background: linear-gradient(90deg, var(--fire), var(--ice));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { color: var(--text-dim); max-width: 460px; margin: 10px auto 0; font-size: 15px; }

/* Footer */
.footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.footer strong { color: var(--text-dim); }
.footer a.call {
  display: inline-block;
  margin: 10px 0;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--fire);
  border-radius: var(--radius);
  color: var(--fire);
  font-weight: 700;
  font-size: 18px;
}

/* Utility spacing */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }

.divider { height: 1px; background: var(--border); margin: 22px 0; }

/* Back link */
.back-link {
  display: inline-block;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 12px;
}
.back-link:hover { color: var(--fire); }

/* Savings / comparison */
.savings {
  background: var(--bg-card);
  border: 1px solid var(--border-cold);
  border-radius: var(--radius);
  padding: 22px;
  margin: 28px 0;
  text-align: center;
}
.savings h3 { color: var(--ice); margin-bottom: 10px; }
.savings-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 15px;
}
.savings-row:last-child { border: none; font-weight: 700; color: var(--fire); }

/* Checkbox */
.chk { display: inline-flex; align-items: center; gap: 6px; }
.chk input { transform: scale(1.2); accent-color: var(--fire); }

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  align-items: end;
}
.filter-bar .field { margin: 0; flex: 1; min-width: 140px; }
