/* ============================================================
   CALCULATOR PAGE STYLES — calculator.html
   ============================================================ */

.page {
  padding: 9rem 4rem 6rem;
  max-width: 860px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--ochre);
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.intro {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── STEP PILLS ───────────────────────────────────────────── */

.steps {
  display: flex;
  gap: 0;
  margin-bottom: 3rem;
  border: 1px solid var(--border);
}

.step-pill {
  flex: 1;
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, color 0.2s;
}

.step-pill:last-child { border-right: none; }
.step-pill.active { background: var(--ink); color: var(--paper); }
.step-pill.done { background: var(--highlight); color: var(--ink); }

.step-num {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.72rem;
}

/* ── PANELS ───────────────────────────────────────────────── */

.panel { display: none; }
.panel.active { display: block; }

/* ── ROLE SELECTION ───────────────────────────────────────── */

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.role-card {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
}

.role-card:last-child { border-right: none; }
.role-card:hover { background: rgba(13,13,13,0.03); }
.role-card.selected { background: var(--ink); }
.role-card.selected .role-title,
.role-card.selected .role-rate { color: var(--paper); }
.role-card.selected .role-examples,
.role-card.selected .role-salary { color: rgba(245,243,238,0.45); }
.role-card.selected .role-rate { color: var(--highlight); }

.role-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.role-examples { font-size: 0.75rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.5; }
.role-salary { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.2rem; margin-top: auto; }

.role-rate {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

/* ── TASK LIST ────────────────────────────────────────────── */

.task-list { border: 1px solid var(--border); margin-bottom: 2rem; }

.task-row {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: opacity 0.2s;
}

.task-row:last-child { border-bottom: none; }

.task-left { display: flex; align-items: center; gap: 1rem; }

.task-name { font-size: 0.9rem; font-weight: 400; color: var(--muted); transition: color 0.2s, font-weight 0.2s; }
.task-row.has-value .task-name { color: var(--ink); font-weight: 500; }

.task-sub { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

.task-right { display: flex; align-items: center; gap: 0.75rem; min-width: 190px; }
.task-right input[type=range] { display: none; }

/* ── CUSTOM SLIDER ────────────────────────────────────────── */

.custom-slider {
  flex: 1;
  height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  user-select: none;
  padding: 0 9px;
}

.slider-track {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
}

.slider-fill { height: 100%; background: var(--ink); border-radius: 2px; pointer-events: none; }

.slider-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--border);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  pointer-events: none;
}

.task-row.has-value .slider-thumb { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.custom-slider:hover .slider-thumb { border-color: var(--ink); }
.custom-slider:active .slider-thumb,
.custom-slider.dragging .slider-thumb { transform: translate(-50%, -50%) scale(1.2); }

.task-hrs {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 56px;
  text-align: right;
  transition: color 0.2s;
}

.task-row.has-value .task-hrs { color: var(--ink); }

/* ── RESULTS ──────────────────────────────────────────────── */

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

.result-card { padding: 2rem 1.5rem; border-right: 1px solid var(--border); }
.result-card:last-child { border-right: none; }

.result-label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }

.result-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.35rem;
  line-height: 1;
}

.result-sub { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

.result-card.highlight-card { background: var(--ink); }
.result-card.highlight-card .result-label { color: rgba(245,243,238,0.4); }
.result-card.highlight-card .result-value { color: var(--highlight); }
.result-card.highlight-card .result-sub { color: rgba(245,243,238,0.5); }

/* ── TASK BREAKDOWN ───────────────────────────────────────── */

.task-breakdown { border: 1px solid var(--border); margin-bottom: 1.75rem; }

.breakdown-header {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.breakdown-row:last-child { border-bottom: none; }
.breakdown-name { color: var(--ink); }
.breakdown-right { display: flex; align-items: center; gap: 1rem; }
.breakdown-cost { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--ink); }
.breakdown-hrs { color: var(--muted); font-size: 0.78rem; }

/* ── INSIGHT BOX ──────────────────────────────────────────── */

.insight-box {
  padding: 1.5rem 2rem;
  border: 1px solid rgba(200,240,74,0.5);
  margin-bottom: 2rem;
  background: rgba(200,240,74,0.07);
}

.insight-box p { font-size: 0.9rem; font-weight: 300; color: var(--ink); line-height: 1.8; }
.insight-box strong { font-weight: 500; }

/* ── BUTTON ROW ───────────────────────────────────────────── */

.btn-ghost-sm {
  font-size: 0.85rem;
  color: var(--muted);
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: 2px;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: color 0.2s;
  font-family: 'Jost', sans-serif;
}
.btn-ghost-sm:hover { color: var(--ink); }

.btn-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.disclaimer { font-size: 0.72rem; color: var(--muted); margin-top: 1rem; line-height: 1.6; }

footer { margin-top: 4rem; }

/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .page { padding: 7rem 1.5rem 4rem; }
  .role-grid { grid-template-columns: 1fr; }
  .role-card { border-right: none; border-bottom: 1px solid var(--border); }
  .role-card:last-child { border-bottom: none; }
  .results-grid { grid-template-columns: 1fr; }
  .result-card { border-right: none; border-bottom: 1px solid var(--border); }
  .result-card:last-child { border-bottom: none; }
  .task-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .steps { flex-direction: column; }
  .step-pill { border-right: none; border-bottom: 1px solid var(--border); }
  .step-pill:last-child { border-bottom: none; }
}
