/* ============ Quote demo specific ============ */

.hero-compact { padding: 56px 0 48px; }
.hero-compact .hero-title { font-size: clamp(34px, 5vw, 50px); }
.hero-compact .hero-sub { font-size: clamp(15px, 1.6vw, 17px); }

.container-narrow {
  max-width: 800px;
}

/* ----- Step card ----- */
.step-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 24px;
  animation: fade-up var(--dur) var(--ease);
}
@media (min-width: 720px) {
  .step-card { padding: 36px; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.step-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--blue-100);
  color: var(--navy-700);
  margin-bottom: 14px;
}
.step-tag-success {
  background: var(--success-bg);
  color: var(--success);
}
.step-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin: 0 0 6px;
}
.step-sub {
  color: var(--ink-500);
  margin: 0 0 22px;
}
.step-fine {
  font-size: 12px;
  color: var(--ink-500);
  margin: 12px 0 0;
  line-height: 1.55;
}
.step-fine a { color: var(--blue-500); }
.step-error {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
}

.btn-icon { font-size: 18px; }

/* ----- Map ----- */
.map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a1827;
  border: 1px solid var(--line);
  margin-bottom: 18px;
  aspect-ratio: 16 / 11;
}
.map {
  position: absolute;
  inset: 0;
  background: #0a1827;
}
.leaflet-container { background: #0a1827; }
.leaflet-control-attribution { font-size: 9px; opacity: 0.55; }

/* radar pulse over confirm map */
.map-pulse {
  position: absolute;
  left: 50%; top: 50%;
  width: 28px; height: 28px;
  margin-left: -14px; margin-top: -14px;
  pointer-events: none;
  z-index: 401;
}
.map-pulse::before, .map-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--blue-500);
  animation: ping 1.8s var(--ease) infinite;
}
.map-pulse::after { animation-delay: 0.9s; }
.map-pulse::before { background: rgba(46, 134, 224, 0.4); }
@keyframes ping {
  0%   { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* analysing — scan line + overlay */
.map-wrap.scanning .map {
  filter: contrast(1.05) saturate(1.1);
}
.scan-line {
  position: absolute;
  left: 0; right: 0; top: -2%;
  height: 4%;
  background:
    linear-gradient(180deg, rgba(46, 134, 224, 0) 0%, rgba(46, 134, 224, 0.85) 50%, rgba(46, 134, 224, 0) 100%);
  filter: blur(2px);
  pointer-events: none;
  animation: scan 2.6s linear infinite;
  z-index: 402;
  box-shadow: 0 0 24px rgba(46, 134, 224, 0.7);
}
@keyframes scan {
  0%   { top: -4%; }
  100% { top: 100%; }
}
.overlay {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 403;
}
.overlay rect, .overlay polygon, .overlay circle {
  fill: rgba(46, 134, 224, 0.10);
  stroke: var(--blue-500);
  stroke-width: 0.4;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  animation: pop 400ms var(--ease) forwards;
}
.overlay .label {
  fill: var(--blue-300);
  stroke: none;
  font-size: 2.4px;
  font-weight: 800;
  font-family: var(--font);
  opacity: 0;
  animation: pop 400ms var(--ease) forwards;
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

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

/* ----- Service tiles ----- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.service-tile {
  appearance: none; border: 1px solid var(--line); background: var(--paper);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-height: 110px;
  justify-content: center;
}
.service-tile:hover {
  border-color: var(--blue-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.service-emoji { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.service-name { font-weight: 800; color: var(--navy-900); font-size: 14px; }
.service-meta { font-size: 11px; color: var(--ink-500); }

/* ----- AI log ----- */
.ai-log {
  list-style: none;
  padding: 16px;
  margin: 0;
  background: var(--navy-900);
  color: #cfe5ff;
  border-radius: var(--radius);
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ai-log li {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(-6px);
  animation: log-in 280ms var(--ease) forwards;
}
@keyframes log-in {
  to { opacity: 1; transform: translateX(0); }
}
.ai-log li::before {
  content: '›';
  color: var(--blue-400);
  font-weight: 700;
}
.ai-log li.is-done::before { content: '✓'; color: var(--success); }
.ai-log li.is-spinner::before {
  content: '';
  width: 12px; height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--blue-400);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- Result ----- */
.step-card-result {
  border: 2px solid var(--blue-500);
  box-shadow: 0 8px 30px rgba(46, 134, 224, 0.2);
}
.quote-result-big {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
@media (min-width: 600px) {
  .quote-result-big { grid-template-columns: 1.4fr 1fr; align-items: center; }
}
.quote-result-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-500);
}
.quote-result-amount {
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 900;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 6px;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.quote-result-note { font-size: 13px; color: var(--ink-500); }

.result-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0a1827;
  border: 1px solid var(--line);
}
.result-img {
  position: absolute;
  inset: 0;
  background: #0a1827;
}

.breakdown {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
}
.breakdown-row:last-child { border-bottom: 0; padding-bottom: 0; }
.breakdown-row:first-child { padding-top: 0; }
.breakdown-key {
  color: var(--ink-700);
}
.breakdown-key strong { color: var(--navy-900); display: block; }
.breakdown-key small { color: var(--ink-500); font-size: 12px; }
.breakdown-val {
  font-weight: 800;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.result-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.trust-mini {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  color: var(--ink-500);
  font-weight: 600;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ----- Tech grid ----- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.tech-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.tech-num {
  width: 36px; height: 36px;
  background: var(--blue-100);
  color: var(--navy-700);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 10px;
}
.tech-tile h3 {
  font-size: 15px;
  color: var(--navy-900);
  margin: 0 0 6px;
}
.tech-tile p {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0;
}
.tech-tile code {
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}
