/* Talentvisa, premium calculator experience.
 * Multi-step wizard with live score panel, animated charts,
 * cost comparison, and conversion-focused result page.
 */

/* ================ ROOT TOKENS ================ */
.tv-calc-root {
  --calc-bg: #07091a;
  --calc-bg-2: #0d1129;
  --calc-bg-3: #131744;
  --calc-fg: #f3f4ff;
  --calc-fg-soft: #b8b9d0;
  --calc-fg-muted: #7a7d99;
  --calc-line: rgba(255,255,255,0.08);
  --calc-line-strong: rgba(255,255,255,0.15);
  --calc-accent: #d4a544;
  --calc-accent-2: #6e8aff;
  --calc-accent-3: #2bc48a;
  --calc-danger: #ff6b6b;
  --calc-amber: #ffb547;
  --calc-shadow-lg: 0 32px 80px -24px rgba(0,0,0,0.8);
  --calc-shadow-md: 0 16px 40px -16px rgba(0,0,0,0.6);
  --calc-radius: 16px;
  --calc-radius-sm: 10px;

  background: var(--calc-bg);
  color: var(--calc-fg);
  font-family: var(--tv-font-body, 'Inter', system-ui, sans-serif);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated mesh background */
.tv-calc-root::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(800px 600px at 80% -10%, rgba(110,138,255,0.18) 0%, transparent 60%),
    radial-gradient(700px 500px at 0% 60%, rgba(212,165,68,0.10) 0%, transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(43,196,138,0.08) 0%, transparent 60%);
  animation: meshFloat 30s ease-in-out infinite alternate;
}
@keyframes meshFloat {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(40px, -30px); }
}
.tv-calc-root::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 80%);
}

/* ================ SHELL ================ */
.tv-calc-wrap { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 32px 24px 96px; }
.tv-calc-topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 56px; }
.tv-calc-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--calc-fg); font-family: var(--tv-font-display, 'Noto Serif', serif); font-size: 22px; font-weight: 600; }
.tv-calc-brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--calc-accent); box-shadow: 0 0 16px var(--calc-accent); animation: pulse 2s infinite; }
.tv-calc-brand span { color: var(--calc-accent); }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: 0.4; transform: scale(0.85);} }
.tv-calc-trust { display: flex; gap: 16px; align-items: center; font-size: 12px; color: var(--calc-fg-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.tv-calc-trust strong { color: var(--calc-fg); letter-spacing: 0; text-transform: none; font-size: 13px; font-family: var(--tv-font-display, serif); }
.tv-calc-trust .verify {
  background: rgba(212,165,68,0.12); color: var(--calc-accent);
  border: 1px solid rgba(212,165,68,0.4); padding: 6px 12px; border-radius: 999px;
  font-size: 11px; cursor: pointer; transition: all 0.2s;
}
.tv-calc-trust .verify:hover { background: var(--calc-accent); color: #000; }

/* ================ HEADLINE ================ */
.tv-calc-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.tv-calc-eyebrow { display: inline-block; font-family: var(--tv-font-label, monospace); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--calc-accent); padding: 8px 16px; border: 1px solid rgba(212,165,68,0.3); border-radius: 999px; margin-bottom: 24px; }
.tv-calc-h1 { font-family: var(--tv-font-display, 'Noto Serif', serif); font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1.0; letter-spacing: -0.02em; margin: 0 0 20px; }
.tv-calc-h1 em { font-style: italic; color: var(--calc-accent); }
.tv-calc-sub { font-size: 18px; color: var(--calc-fg-soft); max-width: 56ch; margin: 0 auto; line-height: 1.6; }

/* ================ LAYOUT (wizard + score panel) ================ */
.tv-calc-grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start;
}
@media (max-width: 980px) { .tv-calc-grid { grid-template-columns: 1fr; } }

/* ============ WIZARD ============ */
.tv-calc-wizard {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%),
    var(--calc-bg-2);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius);
  padding: 40px;
  box-shadow: var(--calc-shadow-lg);
  position: relative;
  overflow: hidden;
}
.tv-calc-wizard::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 50% 0%, rgba(110,138,255,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.tv-calc-progress {
  display: flex; gap: 8px; margin-bottom: 32px; position: relative; z-index: 1;
}
.tv-calc-progress-dot {
  flex: 1; height: 6px; border-radius: 999px;
  background: var(--calc-line);
  transition: background 0.4s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.tv-calc-progress-dot.is-active {
  background: linear-gradient(90deg, var(--calc-accent) 0%, var(--calc-accent-2) 100%);
  box-shadow: 0 0 12px rgba(212,165,68,0.4);
}
.tv-calc-progress-dot.is-done {
  background: var(--calc-accent-3);
}
.tv-calc-progress-dot.is-active::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%);} 100% { transform: translateX(100%);} }

.tv-calc-step { display: none; position: relative; z-index: 1; }
.tv-calc-step.is-active { display: block; animation: stepIn 0.4s cubic-bezier(.4,0,.2,1); }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.tv-calc-step-num { font-family: var(--tv-font-label, monospace); font-size: 11px; letter-spacing: 0.2em; color: var(--calc-fg-muted); text-transform: uppercase; }
.tv-calc-step h2 { font-family: var(--tv-font-display, serif); font-size: clamp(24px, 3vw, 32px); font-weight: 600; margin: 8px 0 8px; line-height: 1.2; }
.tv-calc-step .help { font-size: 14px; color: var(--calc-fg-soft); margin: 0 0 32px; line-height: 1.6; }

/* Sector cards */
.tv-calc-sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .tv-calc-sectors { grid-template-columns: repeat(2, 1fr); } }
.tv-calc-sector {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius-sm);
  padding: 18px 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  text-align: left;
  color: inherit;
}
.tv-calc-sector::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--calc-radius-sm);
  background: linear-gradient(135deg, var(--bg, var(--calc-accent)) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.tv-calc-sector:hover { transform: translateY(-2px); border-color: var(--calc-line-strong); }
.tv-calc-sector:hover::before { opacity: 0.15; }
.tv-calc-sector.is-selected { border-color: var(--calc-accent); background: rgba(212,165,68,0.08); transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(212,165,68,0.4); }
.tv-calc-sector.is-selected::after {
  content: '✓';
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--calc-accent); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  animation: pop 0.3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.tv-calc-sector .icon { font-size: 24px; margin-bottom: 8px; display: block; }
.tv-calc-sector .name { font-family: var(--tv-font-display, serif); font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.tv-calc-sector .endorser { font-size: 11px; color: var(--calc-fg-muted); letter-spacing: 0.05em; }

/* Sliders */
.tv-calc-slider-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-bottom: 24px; }
.tv-calc-slider-label { font-size: 14px; color: var(--calc-fg); font-weight: 500; }
.tv-calc-slider-val {
  font-family: var(--tv-font-label, monospace); font-size: 14px;
  color: var(--calc-accent); font-weight: 700;
  background: rgba(212,165,68,0.12); padding: 6px 12px; border-radius: 8px;
  min-width: 80px; text-align: center;
}
.tv-calc-slider {
  width: 100%; height: 6px; -webkit-appearance: none; appearance: none;
  background: var(--calc-line); border-radius: 999px; outline: none;
  cursor: pointer;
}
.tv-calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--calc-accent) 0%, var(--calc-accent-2) 100%);
  cursor: pointer; border: 3px solid var(--calc-bg-2);
  box-shadow: 0 0 0 1px var(--calc-accent), 0 4px 12px rgba(212,165,68,0.4);
  transition: transform 0.2s;
}
.tv-calc-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.tv-calc-slider::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--calc-accent) 0%, var(--calc-accent-2) 100%);
  cursor: pointer; border: 3px solid var(--calc-bg-2);
  box-shadow: 0 0 0 1px var(--calc-accent), 0 4px 12px rgba(212,165,68,0.4);
}
.tv-calc-slider-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tv-calc-slider-track-wrap { position: relative; padding: 8px 0; }
.tv-calc-slider-ticks { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--calc-fg-muted); font-family: var(--tv-font-label, monospace); }

/* Evidence counters */
.tv-calc-evidence { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 720px) { .tv-calc-evidence { grid-template-columns: 1fr; } }
.tv-calc-counter {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius-sm);
  padding: 14px 16px;
  transition: border-color 0.2s, background 0.2s;
}
.tv-calc-counter:hover { border-color: var(--calc-line-strong); background: rgba(255,255,255,0.05); }
.tv-calc-counter.is-set { border-color: rgba(212,165,68,0.4); background: rgba(212,165,68,0.06); }
.tv-calc-counter .label { flex: 1; }
.tv-calc-counter .name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.tv-calc-counter .desc { font-size: 11px; color: var(--calc-fg-muted); }
.tv-calc-counter .controls { display: flex; align-items: center; gap: 8px; }
.tv-calc-counter button {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255,255,255,0.08); color: var(--calc-fg);
  border: 1px solid var(--calc-line); cursor: pointer;
  font-size: 16px; font-weight: 700; line-height: 1;
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.tv-calc-counter button:hover { background: var(--calc-accent); color: #000; border-color: var(--calc-accent); }
.tv-calc-counter button:active { transform: scale(0.92); }
.tv-calc-counter button:disabled { opacity: 0.3; cursor: not-allowed; }
.tv-calc-counter .val {
  font-family: var(--tv-font-label, monospace); font-size: 16px; font-weight: 700;
  min-width: 28px; text-align: center; color: var(--calc-accent);
}

/* Choice tiles */
.tv-calc-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 720px) { .tv-calc-choices { grid-template-columns: 1fr; } }
.tv-calc-choice {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius-sm);
  padding: 14px 16px; cursor: pointer; text-align: left;
  color: inherit; transition: all 0.2s;
  font-size: 14px; line-height: 1.4;
}
.tv-calc-choice:hover { border-color: var(--calc-line-strong); background: rgba(255,255,255,0.05); }
.tv-calc-choice.is-selected { border-color: var(--calc-accent); background: rgba(212,165,68,0.08); box-shadow: 0 4px 12px -4px rgba(212,165,68,0.3); }
.tv-calc-choice strong { display: block; font-weight: 600; margin-bottom: 2px; font-size: 14px; }
.tv-calc-choice span { color: var(--calc-fg-muted); font-size: 12px; }

/* Wizard nav */
.tv-calc-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--calc-line); }
.tv-calc-btn {
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 12px 20px; border-radius: 999px; cursor: pointer; transition: all 0.2s;
  border: 1px solid transparent;
}
.tv-calc-btn-primary {
  background: linear-gradient(135deg, var(--calc-accent) 0%, var(--calc-amber) 100%);
  color: #1a1410; border-color: transparent;
  padding: 14px 28px; font-size: 15px;
  box-shadow: 0 8px 24px -8px rgba(212,165,68,0.5);
}
.tv-calc-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(212,165,68,0.7); }
.tv-calc-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.tv-calc-btn-ghost {
  background: transparent; color: var(--calc-fg-soft);
  border-color: var(--calc-line);
}
.tv-calc-btn-ghost:hover { color: var(--calc-fg); border-color: var(--calc-line-strong); }
.tv-calc-btn-ghost:disabled { opacity: 0.3; cursor: not-allowed; }

/* ============ SCORE PANEL ============ */
.tv-calc-score-panel {
  background:
    radial-gradient(400px 200px at 50% 0%, rgba(212,165,68,0.16) 0%, transparent 70%),
    var(--calc-bg-2);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius);
  padding: 32px 28px;
  box-shadow: var(--calc-shadow-lg);
  position: sticky; top: 24px;
}
@media (max-width: 980px) { .tv-calc-score-panel { position: static; } }

.tv-calc-score-eyebrow { font-family: var(--tv-font-label, monospace); font-size: 10px; letter-spacing: 0.25em; color: var(--calc-fg-muted); text-transform: uppercase; }
.tv-calc-score-title { font-family: var(--tv-font-display, serif); font-size: 18px; font-weight: 600; margin: 4px 0 24px; }

.tv-calc-score-circle {
  position: relative; width: 200px; height: 200px; margin: 0 auto 24px;
}
.tv-calc-score-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tv-calc-score-circle-bg { fill: none; stroke: var(--calc-line); stroke-width: 12; }
.tv-calc-score-circle-fg {
  fill: none; stroke: url(#scoreGrad); stroke-width: 12; stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(.4,0,.2,1);
}
.tv-calc-score-circle .num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--tv-font-display, serif);
  font-size: 56px; font-weight: 700; line-height: 1; color: var(--calc-fg);
  letter-spacing: -0.03em;
}
.tv-calc-score-circle .num small { font-size: 14px; color: var(--calc-fg-muted); margin-top: 6px; font-family: var(--tv-font-label, monospace); letter-spacing: 0.1em; }

.tv-calc-verdict-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-family: var(--tv-font-label, monospace); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  margin: 0 auto; transition: background 0.4s, color 0.4s;
}
.tv-calc-verdict-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.tv-calc-verdict-pill.tone-strong { background: rgba(43,196,138,0.16); color: var(--calc-accent-3); }
.tv-calc-verdict-pill.tone-promise { background: rgba(255,181,71,0.16); color: var(--calc-amber); }
.tv-calc-verdict-pill.tone-early { background: rgba(255,107,107,0.16); color: var(--calc-danger); }
.tv-calc-verdict-pill.tone-empty { background: rgba(255,255,255,0.06); color: var(--calc-fg-muted); }

.tv-calc-verdict-wrap { text-align: center; }

.tv-calc-meta { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--calc-line); display: grid; gap: 8px; }
.tv-calc-meta-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.tv-calc-meta-row .k { color: var(--calc-fg-muted); }
.tv-calc-meta-row .v { font-weight: 600; color: var(--calc-fg); font-family: var(--tv-font-label, monospace); font-size: 13px; }

/* ============ RESULT PAGE ============ */
.tv-calc-result { display: none; animation: stepIn 0.6s cubic-bezier(.4,0,.2,1); }
.tv-calc-result.is-active { display: block; }

.tv-calc-result-hero {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(212,165,68,0.25) 0%, transparent 60%),
    linear-gradient(180deg, var(--calc-bg-3) 0%, var(--calc-bg-2) 100%);
  border: 1px solid var(--calc-line-strong);
  border-radius: var(--calc-radius);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--calc-shadow-lg);
}
.tv-calc-result-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.tv-calc-result-hero > * { position: relative; z-index: 1; }
.tv-calc-result-hero .pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--tv-font-label, monospace); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  background: rgba(212,165,68,0.16); color: var(--calc-accent);
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(212,165,68,0.3);
  margin-bottom: 24px;
}
.tv-calc-result-hero h2 {
  font-family: var(--tv-font-display, serif); font-size: clamp(40px, 6vw, 80px);
  font-weight: 700; line-height: 1.0; letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.tv-calc-result-hero h2 em { font-style: italic; color: var(--calc-accent); }
.tv-calc-result-hero p.lead { font-size: 18px; color: var(--calc-fg-soft); max-width: 56ch; margin: 0 auto 32px; line-height: 1.6; }

.tv-calc-result-score-display {
  display: inline-grid; grid-template-columns: auto auto; gap: 32px; align-items: center;
  margin-bottom: 24px;
}
.tv-calc-result-bigscore { display: flex; flex-direction: column; align-items: flex-start; }
.tv-calc-result-bigscore .num {
  font-family: var(--tv-font-display, serif); font-size: clamp(80px, 12vw, 160px); font-weight: 700;
  line-height: 1; letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--calc-accent) 0%, var(--calc-amber) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tv-calc-result-bigscore .out { font-size: 16px; color: var(--calc-fg-muted); margin-top: -8px; font-family: var(--tv-font-label, monospace); letter-spacing: 0.15em; text-transform: uppercase; }
.tv-calc-result-verdict-block { text-align: left; }
.tv-calc-result-verdict-block h3 { font-family: var(--tv-font-display, serif); font-size: clamp(24px, 3vw, 36px); margin: 0 0 8px; line-height: 1.1; font-weight: 600; }
.tv-calc-result-verdict-block p { color: var(--calc-fg-soft); font-size: 15px; max-width: 36ch; margin: 0; }

.tv-calc-result-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* Honest fee breakdown (no "savings" framing) */
.tv-calc-cost-section {
  margin-top: 56px;
  background: var(--calc-bg-2);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius);
  padding: 40px;
  box-shadow: var(--calc-shadow-md);
}
.tv-calc-cost-head { text-align: center; margin-bottom: 32px; max-width: 720px; margin-left: auto; margin-right: auto; }
.tv-calc-cost-head h3 { font-family: var(--tv-font-display, serif); font-size: clamp(24px, 3vw, 36px); margin: 0 0 12px; line-height: 1.2; }
.tv-calc-cost-head h3 em { font-style: italic; color: var(--calc-accent); }
.tv-calc-cost-head p { color: var(--calc-fg-soft); font-size: 14px; line-height: 1.6; margin: 0; }

.tv-calc-fee-grid {
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius-sm);
  padding: 8px;
}
.tv-calc-fee-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 16px; align-items: center;
  padding: 18px 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.tv-calc-fee-row.tv-calc-fee-gov     { border-color: rgba(110,138,255,0.25); background: rgba(110,138,255,0.05); }
.tv-calc-fee-row.tv-calc-fee-solicitor { border-color: rgba(212,165,68,0.25); background: rgba(212,165,68,0.05); }
.tv-calc-fee-row.tv-calc-fee-refund  { border-color: rgba(43,196,138,0.25); background: rgba(43,196,138,0.05); }
.tv-calc-fee-row.tv-calc-fee-total   { border-color: var(--calc-line-strong); background: rgba(255,255,255,0.05); margin-top: 4px; }
.tv-calc-fee-label strong {
  display: block;
  font-family: var(--tv-font-display, serif); font-size: 16px; font-weight: 600;
  margin-bottom: 4px; color: var(--calc-fg);
}
.tv-calc-fee-label span {
  font-size: 13px; color: var(--calc-fg-soft); line-height: 1.5;
  display: block; max-width: 56ch;
}
.tv-calc-fee-value {
  font-family: var(--tv-font-display, serif);
  font-size: 26px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--calc-fg); white-space: nowrap;
  text-align: right;
}
.tv-calc-fee-value small {
  display: block;
  font-family: var(--tv-font-label, monospace);
  font-size: 10px; font-weight: 400;
  color: var(--calc-fg-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 2px;
}
.tv-calc-fee-row.tv-calc-fee-gov .tv-calc-fee-value     { color: var(--calc-accent-2); }
.tv-calc-fee-row.tv-calc-fee-solicitor .tv-calc-fee-value { color: var(--calc-accent); }
.tv-calc-fee-row.tv-calc-fee-refund .tv-calc-fee-value  { color: var(--calc-accent-3); }
.tv-calc-fee-row.tv-calc-fee-total .tv-calc-fee-value   { font-size: 32px; }

.tv-calc-fee-detail {
  list-style: none; padding: 0 20px 8px 20px; margin: -4px 0 0 0;
  display: grid; gap: 6px;
}
.tv-calc-fee-detail li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 12px; color: var(--calc-fg-muted);
  padding: 4px 0;
  font-family: var(--tv-font-label, monospace);
}
.tv-calc-fee-detail li span:last-child { font-weight: 600; color: var(--calc-fg-soft); }

/* Risk box */
.tv-calc-risk-box {
  margin-top: 24px;
  background: rgba(255,107,107,0.06);
  border: 1px solid rgba(255,107,107,0.3);
  border-radius: var(--calc-radius-sm);
  padding: 20px 24px;
}
.tv-calc-risk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tv-calc-risk-head strong { font-family: var(--tv-font-display, serif); font-size: 16px; color: var(--calc-danger); font-weight: 700; }
.tv-calc-risk-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--calc-danger); color: var(--calc-danger);
  font-weight: 700; font-size: 14px;
}
.tv-calc-risk-box p { font-size: 13px; color: var(--calc-fg-soft); line-height: 1.6; margin: 0; }
.tv-calc-risk-box p strong { color: var(--calc-fg); }

@media (max-width: 720px) {
  .tv-calc-fee-row { grid-template-columns: 1fr; gap: 8px; }
  .tv-calc-fee-value { text-align: left; font-size: 22px; }
  .tv-calc-fee-row.tv-calc-fee-total .tv-calc-fee-value { font-size: 26px; }
}

/* Recommended tier */
.tv-calc-recommend {
  margin-top: 56px;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(110,138,255,0.16) 0%, transparent 70%),
    var(--calc-bg-2);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--calc-shadow-md);
}
.tv-calc-recommend .pill {
  display: inline-block; font-family: var(--tv-font-label, monospace); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  background: rgba(110,138,255,0.16); color: var(--calc-accent-2);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(110,138,255,0.3);
  margin-bottom: 12px;
}
.tv-calc-recommend h3 { font-family: var(--tv-font-display, serif); font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; line-height: 1.1; font-weight: 600; }
.tv-calc-recommend h3 em { font-style: italic; color: var(--calc-accent); }
.tv-calc-recommend p { color: var(--calc-fg-soft); font-size: 15px; max-width: 56ch; margin: 0 auto 24px; line-height: 1.6; }

/* Tier cards */
.tv-calc-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 920px) { .tv-calc-tiers { grid-template-columns: 1fr; } }
.tv-calc-tier {
  background: var(--calc-bg-3);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius-sm);
  padding: 24px; text-align: left;
  position: relative;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.tv-calc-tier:hover { transform: translateY(-4px); border-color: var(--calc-line-strong); box-shadow: var(--calc-shadow-md); }
.tv-calc-tier.is-recommended { border-color: var(--calc-accent); box-shadow: 0 16px 40px -16px rgba(212,165,68,0.5); }
.tv-calc-tier.is-recommended::before {
  content: 'recommended for you';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--calc-accent), var(--calc-amber));
  color: #1a1410;
  font-family: var(--tv-font-label, monospace); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 8px 16px -4px rgba(212,165,68,0.5);
}
.tv-calc-tier .name { font-family: var(--tv-font-display, serif); font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.tv-calc-tier .price { font-family: var(--tv-font-display, serif); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--calc-accent); margin: 4px 0 16px; }
.tv-calc-tier .price small { font-size: 12px; color: var(--calc-fg-muted); margin-left: 4px; font-family: var(--tv-font-label, monospace); letter-spacing: 0.1em; }
.tv-calc-tier ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; }
.tv-calc-tier li { font-size: 13px; color: var(--calc-fg-soft); padding-left: 18px; position: relative; line-height: 1.4; }
.tv-calc-tier li::before { content: '→'; position: absolute; left: 0; color: var(--calc-accent); }
.tv-calc-tier .cta {
  display: block; padding: 12px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  text-align: center; text-decoration: none;
  transition: all 0.2s;
}
.tv-calc-tier.is-recommended .cta { background: linear-gradient(135deg, var(--calc-accent), var(--calc-amber)); color: #1a1410; }
.tv-calc-tier:not(.is-recommended) .cta { background: rgba(255,255,255,0.06); color: var(--calc-fg); border: 1px solid var(--calc-line); }
.tv-calc-tier .cta:hover { transform: translateY(-1px); }

/* Timeline */
.tv-calc-timeline {
  margin-top: 56px;
  background: var(--calc-bg-2);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius);
  padding: 40px;
  box-shadow: var(--calc-shadow-md);
}
.tv-calc-timeline h3 { font-family: var(--tv-font-display, serif); font-size: clamp(24px, 3vw, 32px); margin: 0 0 24px; }
.tv-calc-timeline .scale {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0;
  border-top: 2px solid var(--calc-line); padding-top: 8px;
  margin-top: 8px;
}
.tv-calc-timeline .scale > div { font-family: var(--tv-font-label, monospace); font-size: 10px; color: var(--calc-fg-muted); letter-spacing: 0.1em; text-transform: uppercase; text-align: center; padding: 0 4px; position: relative; }
.tv-calc-timeline .scale > div::before { content: ''; position: absolute; top: -10px; left: 50%; width: 1px; height: 8px; background: var(--calc-line); }
.tv-calc-timeline-bars { display: grid; gap: 12px; margin-top: 24px; }
.tv-calc-tbar {
  display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center;
}
.tv-calc-tbar .lab { font-size: 13px; color: var(--calc-fg); }
.tv-calc-tbar .lab small { display: block; color: var(--calc-fg-muted); font-size: 11px; margin-top: 2px; }
.tv-calc-tbar .track { position: relative; height: 32px; background: rgba(255,255,255,0.03); border-radius: 6px; overflow: hidden; }
.tv-calc-tbar .fill {
  position: absolute; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--calc-accent-2) 0%, var(--calc-accent) 100%);
  border-radius: 6px;
  display: flex; align-items: center; padding: 0 12px;
  font-family: var(--tv-font-label, monospace); font-size: 11px; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Email gate after result */
.tv-calc-email-gate {
  margin-top: 56px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(212,165,68,0.12) 0%, rgba(110,138,255,0.08) 100%);
  border: 1px solid rgba(212,165,68,0.3);
  border-radius: var(--calc-radius);
  text-align: center;
  box-shadow: var(--calc-shadow-md);
}
.tv-calc-email-gate h3 { font-family: var(--tv-font-display, serif); font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px; }
.tv-calc-email-gate p { color: var(--calc-fg-soft); margin: 0 0 24px; font-size: 15px; }
.tv-calc-email-gate form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.tv-calc-email-gate input {
  flex: 1; min-width: 200px; padding: 14px 18px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--calc-line);
  color: var(--calc-fg); font-size: 16px; font-family: inherit;
}
.tv-calc-email-gate input:focus { border-color: var(--calc-accent); outline: 2px solid rgba(212,165,68,0.3); outline-offset: 0; }
.tv-calc-email-gate button {
  background: linear-gradient(135deg, var(--calc-accent), var(--calc-amber)); color: #1a1410;
  border: 0; padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tv-calc-email-gate button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(212,165,68,0.5); }

/* Final disclaimer block */
.tv-calc-disclaimer {
  margin-top: 56px;
  padding: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--calc-line);
  border-radius: var(--calc-radius-sm);
  font-size: 12px; color: var(--calc-fg-muted); line-height: 1.6;
  max-width: 820px; margin-left: auto; margin-right: auto;
}
.tv-calc-disclaimer strong { color: var(--calc-fg-soft); }

/* ============ FEE TRACKER (used on /pricing), honest, no "savings" framing ============ */
.tv-fee-tracker {
  background: #fff;
  border: 1px solid var(--tv-line, #e8e2d6);
  border-radius: 14px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 32px;
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.08);
  animation: trackerIn 0.5s cubic-bezier(.4,0,.2,1);
}
@keyframes trackerIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.tv-fee-tracker-block {
  display: flex; flex-direction: column; gap: 4px;
}
.tv-fee-tracker-block .label {
  font-family: var(--tv-font-label, 'JetBrains Mono', monospace);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tv-fg-muted, #777);
}
.tv-fee-tracker-block .num {
  font-family: var(--tv-font-display, 'Noto Serif', serif);
  font-size: 26px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1;
  color: var(--tv-fg, #1a1a2e);
}
.tv-fee-tracker-block .desc {
  font-size: 12px; color: var(--tv-fg-soft, #555); line-height: 1.4;
}
.tv-fee-tracker-divider {
  font-family: var(--tv-font-display, 'Noto Serif', serif);
  font-size: 32px; font-style: italic; font-weight: 600;
  color: var(--tv-accent, #131644);
  text-align: center;
  width: 28px;
}
@media (max-width: 720px) {
  .tv-fee-tracker { grid-template-columns: 1fr; gap: 12px; padding: 16px 18px; }
  .tv-fee-tracker-divider { display: none; }
  .tv-fee-tracker-block { padding: 12px 0; }
  .tv-fee-tracker-block + .tv-fee-tracker-divider + .tv-fee-tracker-block { border-top: 1px solid var(--tv-line, #e8e2d6); }
}

/* ============ REFUND BADGE ============ */
.tv-refund-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(43,196,138,0.18) 0%, rgba(43,196,138,0.06) 100%);
  border: 1px solid rgba(43,196,138,0.4);
  border-radius: 12px;
  padding: 12px 18px;
  color: inherit;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}
.tv-refund-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(43,196,138,0.4); }
.tv-refund-badge .icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(43,196,138,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.tv-refund-badge .icon::before { content: '£'; color: #2bc48a; font-weight: 700; font-family: var(--tv-font-display, serif); }
.tv-refund-badge .body { line-height: 1.3; }
.tv-refund-badge .body strong { display: block; color: #2bc48a; font-size: 15px; font-weight: 700; }
.tv-refund-badge .body span { font-size: 11px; opacity: 0.75; letter-spacing: 0.05em; }

/* ============ EMPTY STATE ============ */
.tv-calc-step.empty .help { color: var(--calc-fg-muted); }
.tv-calc-error {
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.3);
  color: var(--calc-danger);
  padding: 12px 16px; border-radius: var(--calc-radius-sm);
  font-size: 13px; margin-top: 12px;
  animation: stepIn 0.3s;
}

/* ============ MOBILE TWEAKS ============ */
@media (max-width: 720px) {
  .tv-calc-wrap { padding: 24px 16px 64px; }
  .tv-calc-wizard { padding: 24px; }
  .tv-calc-result-hero { padding: 32px 20px; }
  .tv-calc-result-score-display { grid-template-columns: 1fr; gap: 16px; }
  .tv-calc-result-verdict-block { text-align: center; }
  .tv-calc-cost-section, .tv-calc-recommend, .tv-calc-timeline, .tv-calc-email-gate { padding: 24px; }
  .tv-calc-savings-ribbon { padding: 20px; }
  .tv-calc-tbar { grid-template-columns: 1fr; gap: 4px; }
  .tv-calc-topbar { flex-direction: column; align-items: flex-start; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .tv-calc-root::before, .tv-calc-progress-dot.is-active::after,
  .tv-calc-brand .dot, .tv-calc-step.is-active, .tv-calc-result.is-active,
  .tv-savings-tracker, .tv-calc-error {
    animation: none !important;
  }
  .tv-calc-score-circle-fg { transition: none !important; }
}
