/* ============================================
   APEXOS — DISCOVERY CALL SCRIPT PAGE
   ============================================ */

.discovery-page {
  min-height: 100vh;
  background: var(--black);
  padding-bottom: 0;
}

/* --- Hero --- */
.discovery-hero {
  position: relative;
  padding: 100px 48px 80px;
  text-align: center;
  overflow: hidden;
}

.discovery-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,166,35,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.discovery-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.discovery-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 0 4px;
}

.discovery-meta {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.discovery-print-btn {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--amber);
  border: 1px solid var(--amber-border);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.discovery-print-btn:hover {
  background: var(--amber-dim);
  color: #ffffff;
}

.discovery-tag {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 24px;
}

.discovery-headline {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 20px;
}

.discovery-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 40px;
}

/* --- Jump Nav --- */
.jump-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto;
  max-width: 720px;
}

.jump-chip {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.jump-chip:hover {
  border-color: var(--amber-border);
  color: var(--amber);
  background: var(--amber-dim);
}

/* --- Script Section Grid --- */
.script-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 48px 80px;
}

/* --- Script Card --- */
.script-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  scroll-margin-top: 24px;
}

.script-card-header {
  background: var(--amber-dim);
  border-bottom: 1px solid var(--amber-border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.script-num-badge {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
  background: rgba(245,166,35,0.12);
  border: 1px solid var(--amber-border);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.script-pain-label {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
  min-width: 120px;
}

/* --- Pain badges (color-coded) --- */
.pain-badge {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.pain-badge.pricing {
  background: rgba(245, 166, 35, 0.12);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.pain-badge.ux {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.pain-badge.lockin {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.pain-badge.workflow {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

/* --- Script section --- */
.script-section {
  padding: 24px 24px 0;
}

.script-section:last-child {
  padding-bottom: 0;
}

.script-section-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.script-section-time {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: none;
}

/* --- Script body (opening hook / transition / deflection answer) --- */
.script-body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  padding: 20px 22px;
  background: var(--black-2);
  color: var(--text-muted);
  margin: 0 0 0;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* --- Merge field highlight (shared visual language) --- */
.merge-field {
  color: var(--amber);
  background: var(--amber-dim);
  padding: 1px 4px;
  border-radius: 3px;
  font-style: normal;
}

/* --- Discovery Q rows --- */
.q-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.q-row:first-child {
  border-top: none;
  padding-top: 4px;
}

.q-num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.q-text {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.55;
  margin-bottom: 8px;
}

.q-probe {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.q-probe-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-right: 6px;
}

.q-cluster {
  display: flex;
  gap: 6px;
}

/* --- Deflection blocks --- */
.deflect-block {
  position: relative;
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.deflect-block:last-child {
  margin-bottom: 0;
}

.deflect-q {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 10px;
  line-height: 1.4;
}

.deflect-a {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  color: var(--text-muted);
  margin: 0;
  padding-right: 70px;
}

/* --- Footer row (copy button) --- */
.script-card-footer {
  padding: 14px 24px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.15s, background 0.2s, color 0.2s;
  position: absolute;
  bottom: 12px;
  right: 12px;
}

.copy-btn:hover { opacity: 0.85; }

.copy-btn.copied {
  background: var(--green);
  color: var(--black);
  opacity: 1;
}

.copy-btn.small {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 10px;
  padding: 6px 12px;
  letter-spacing: 0.08em;
}

/* When copy-btn is inside a script-card-footer (not absolute positioning) */
.script-card-footer .copy-btn {
  position: static;
}

/* --- Print Styles --- */
@media print {
  .discovery-hero::before { display: none; }
  .discovery-print-btn,
  .copy-btn,
  .jump-nav { display: none !important; }
  .script-card { break-inside: avoid; page-break-inside: avoid; }
  body, .discovery-page { background: #ffffff !important; color: #000000 !important; }
  .script-card,
  .script-card-header,
  .script-body,
  .deflect-block,
  .q-row { background: #ffffff !important; color: #000000 !important; border-color: #cccccc !important; }
  .discovery-headline,
  .q-text,
  .deflect-q,
  .script-num-badge,
  .pain-badge { color: #000000 !important; }
  .site-footer { display: none !important; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .discovery-hero { padding: 72px 24px 60px; }
  .discovery-top-bar { flex-direction: column; gap: 12px; align-items: flex-start; }
  .script-grid { padding: 0 20px 60px; gap: 32px; }
  .script-card-header { padding: 14px 16px; gap: 10px; }
  .script-pain-label { font-size: 14px; min-width: 0; }
  .script-section { padding: 20px 16px 0; }
  .script-body { padding: 16px; font-size: 13px; }
  .script-card-footer { padding: 12px 16px 16px; }
  .q-row { grid-template-columns: 36px 1fr; gap: 10px; }
  .q-num { font-size: 12px; }
  .deflect-block { padding: 14px 14px 50px; }
  .deflect-a { padding-right: 0; font-size: 13px; }
  .copy-btn.small { bottom: 10px; right: 10px; }
  .jump-chip { font-size: 11px; padding: 8px 14px; }
}
