/* Interactive sales demo — drops into index/broker/buyer/seller landing pages */

.sd-section {
  padding: clamp(48px, 8vw, 120px) 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(201,162,39,.08), transparent 60%), var(--bg, #060610);
  position: relative;
  overflow: hidden;
}
.sd-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border, #1e1e3a) 1px, transparent 1px),
    linear-gradient(90deg, var(--border, #1e1e3a) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 50% at 50% 30%, black, transparent 75%);
  opacity: .18;
  pointer-events: none;
}
.sd-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }

.sd-header { text-align: center; margin-bottom: 40px; }
.sd-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--gold-dim, rgba(201,162,39,.12));
  border: 1px solid var(--gold, #c9a227);
  color: var(--gold-light, #e6c84c);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.sd-eyebrow__dot { width: 8px; height: 8px; background: var(--gold, #c9a227); border-radius: 50%; animation: sd-pulse 1.8s ease-in-out infinite; }
@keyframes sd-pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

.sd-title {
  font-family: var(--font-display, Georgia), serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  margin: 18px auto 12px;
  max-width: 880px;
  line-height: 1.1;
  color: var(--text, #eaeaf2);
}
.sd-title em { color: var(--gold, #c9a227); font-style: normal; }
.sd-sub {
  color: var(--text-secondary, #9a9abb);
  font-size: clamp(16px, 1.3vw, 18px);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Tabs */
.sd-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: var(--bg-card, #0f0f1f);
  border: 1px solid var(--border, #1e1e3a);
  border-radius: 999px;
  margin: 32px auto 24px;
}
.sd-wrap-tabs { text-align: center; }
.sd-tab {
  background: transparent; border: none; color: var(--text-secondary, #9a9abb);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s;
}
.sd-tab:hover { color: var(--text, #eaeaf2); }
.sd-tab.sd-tab--active {
  background: var(--gold, #c9a227);
  color: #060610;
  box-shadow: 0 4px 14px rgba(201,162,39,.25);
}
.sd-tab__icon { font-size: 15px; }

/* Panel */
.sd-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent), var(--bg-card, #0f0f1f);
  border: 1px solid var(--border, #1e1e3a);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 36px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.4);
}

.sd-view { display: none; }
.sd-view.sd-view--active { display: block; animation: sd-fade .35s ease; }
@keyframes sd-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Ask Mike demo ────────────────────────────────────── */
.sd-mike-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; }
@media (max-width: 860px) { .sd-mike-grid { grid-template-columns: 1fr; } }

.sd-mike-side { display: flex; flex-direction: column; gap: 14px; }
.sd-mike-side h3 { font-family: var(--font-display); font-size: 18px; margin: 0; color: var(--text, #eaeaf2); }
.sd-mike-side p { font-size: 13px; color: var(--text-secondary, #9a9abb); margin: 0; line-height: 1.55; }
.sd-preset {
  background: var(--bg-surface, #141428);
  border: 1px solid var(--border-light, #2a2a4a);
  color: var(--text, #eaeaf2);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px; font-family: inherit;
  cursor: pointer; text-align: left;
  line-height: 1.45;
  transition: all .15s;
}
.sd-preset:hover:not(:disabled) {
  border-color: var(--gold, #c9a227);
  transform: translateX(4px);
  color: var(--gold-light, #e6c84c);
}
.sd-preset:disabled { opacity: .45; cursor: not-allowed; }
.sd-preset::before {
  content: '?';
  display: inline-block;
  width: 18px; height: 18px; line-height: 17px;
  text-align: center;
  border: 1px solid var(--gold, #c9a227);
  border-radius: 50%;
  color: var(--gold, #c9a227);
  font-size: 11px; font-weight: 700;
  margin-right: 10px;
}

.sd-chat {
  background: var(--bg, #060610);
  border: 1px solid var(--border, #1e1e3a);
  border-radius: 14px;
  min-height: 360px;
  max-height: 480px;
  overflow-y: auto;
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.sd-chat-empty {
  margin: auto;
  text-align: center;
  color: var(--text-dim, #6d6d8f);
  font-size: 13px;
  line-height: 1.6;
  padding: 32px 16px;
}
.sd-chat-empty strong { color: var(--text, #eaeaf2); display: block; margin-bottom: 8px; font-size: 14px; }

.sd-msg {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 90%;
  white-space: pre-wrap;
}
.sd-msg--user {
  align-self: flex-end;
  background: var(--gold-dim, rgba(201,162,39,.12));
  border: 1px solid var(--gold, #c9a227);
  color: var(--text, #eaeaf2);
}
.sd-msg--ai {
  align-self: flex-start;
  background: var(--bg-surface, #141428);
  border: 1px solid var(--border-light, #2a2a4a);
  color: var(--text, #eaeaf2);
}

.sd-typing {
  display: inline-flex; gap: 4px; align-items: center; padding: 2px 0;
}
.sd-typing__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold, #c9a227);
  animation: sd-bounce 1.1s ease-in-out infinite;
}
.sd-typing__dot:nth-child(2) { animation-delay: .18s; }
.sd-typing__dot:nth-child(3) { animation-delay: .36s; }
@keyframes sd-bounce { 0%,80%,100% { opacity: .3; transform: scale(.85); } 40% { opacity: 1; transform: scale(1.1); } }

.sd-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sd-src-chip {
  font-size: 11px;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-light, #2a2a4a);
  color: var(--text-secondary, #9a9abb);
  background: transparent;
  cursor: default;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.sd-src-chip::after { content: '→'; opacity: .5; }
.sd-msg-actions {
  display: flex; gap: 6px; align-self: flex-start; margin-top: 2px;
}
.sd-play-btn {
  background: var(--bg-surface); border: 1px solid var(--border-light);
  color: var(--text-secondary); padding: 4px 12px;
  border-radius: 999px; font-size: 11px; font-family: inherit;
  cursor: not-allowed; letter-spacing: .02em;
}
.sd-play-btn::before { content: '▶ '; }
.sd-play-btn-note { font-size: 10px; color: var(--text-dim); align-self: center; margin-left: 2px; }

/* ── Pre-Valuation calc ───────────────────────────────── */
.sd-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 760px) { .sd-calc-grid { grid-template-columns: 1fr; } }

.sd-calc-inputs { display: flex; flex-direction: column; gap: 16px; }
.sd-field label { display:block; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 600; letter-spacing: .02em; }
.sd-field select, .sd-field input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
}
.sd-field input:focus, .sd-field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }

.sd-result-card {
  padding: 24px;
  background: linear-gradient(160deg, rgba(201,162,39,.15), transparent 70%), var(--bg-surface);
  border: 1px solid var(--gold);
  border-radius: 16px;
  text-align: center;
}
.sd-result-label { font-size: 11px; color: var(--gold); letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.sd-result-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  color: var(--gold-light);
  margin: 10px 0 8px;
  min-height: 1.2em;
  line-height: 1.1;
}
.sd-result-method { font-size: 12px; color: var(--text-secondary); }
.sd-result-disclaimer {
  margin-top: 18px; padding: 12px 14px;
  background: var(--bg); border: 1px dashed var(--border-light);
  border-radius: 10px;
  font-size: 11px; color: var(--text-dim); line-height: 1.55;
}

/* ── Commission / deal calc ───────────────────────────── */
.sd-comm-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
@media (max-width: 760px) { .sd-comm-grid { grid-template-columns: 1fr; } }

.sd-slider-row { display: flex; flex-direction: column; gap: 6px; }
.sd-slider-row .sd-label-row {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-secondary);
  font-weight: 600; letter-spacing: .02em;
}
.sd-slider-row .sd-val {
  color: var(--gold-light); font-family: var(--font-display); font-size: 15px;
}
.sd-slider-row input[type=range] {
  -webkit-appearance: none;
  width: 100%; height: 6px;
  background: var(--bg-surface);
  border-radius: 999px;
  outline: none;
}
.sd-slider-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(201,162,39,.4);
}
.sd-slider-row input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.sd-num-big {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: var(--gold-light);
  margin: 4px 0 8px;
  line-height: 1.05;
}
.sd-num-small {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
}
.sd-breakdown {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
  gap: 10px; margin-top: 16px;
}
.sd-break-cell {
  padding: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  text-align: center;
}
.sd-break-cell__num { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); }
.sd-break-cell__lbl { font-size: 10px; color: var(--text-dim); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }

/* CTA bar beneath panel */
.sd-cta {
  text-align: center;
  margin-top: 28px;
  font-size: 14px; color: var(--text-secondary);
}
.sd-cta a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
