/* RSDF pitch — Use cases page (adapted from GUARD's use-cases.css) */

/* ============== Scene block ============== */
.scene {
  padding: 72px 0;
}
.scene--alt { background: var(--bg-cream); }
.scene--last {
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg) 100%);
}

.scene__inner {
  max-width: 880px;
  margin: 0 auto;
}

.scene__step-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-pill);
  background: white;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 18px;
  box-shadow: var(--surface-shadow);
}
.scene__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-heading);
}

/* Type badge — VARIABLE / RANGE / STRUCTURE / TABLE / LONG TEXT */
.scene__type {
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scene__type--variable { background: var(--brand-soft);  color: var(--brand); }
.scene__type--range    { background: var(--accent-soft); color: var(--accent); }
.scene__type--struct   { background: var(--teal-soft);   color: var(--teal); }
.scene__type--table    { background: var(--green-soft);  color: var(--green); }
.scene__type--text     { background: var(--rose-soft);   color: var(--rose); }

.scene__inner h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 14px;
}
.scene__inner .actor {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.scene__inner .actor::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.scene__inner p {
  font-size: 17px;
  margin: 0 0 14px;
  color: var(--text-muted);
}

/* ============== Parameter setup facts box ============== */
.attempt {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 20px;
  margin: 16px 0 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  font-size: 14px;
}
@media (max-width: 600px) {
  .attempt { grid-template-columns: 1fr; }
}
.attempt__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.attempt__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}
.attempt__value {
  color: var(--text);
  font-weight: 500;
}
.attempt__value code {
  font-family: "Courier New", monospace;
  background: var(--bg-cream);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--brand-deep);
  border: 1px solid var(--line);
}

/* ============== Code call panel (dark, monospace) ============== */
.code-call {
  background: #0f172a;
  border-radius: var(--radius-m);
  padding: 16px 18px 14px;
  margin: 22px 0 0;
  font-family: "Courier New", monospace;
  font-size: 13.5px;
  line-height: 1.6;
  color: #e2e8f0;
  position: relative;
  overflow-x: auto;
  white-space: pre;
}
.code-call::before {
  content: "ABAP CALL";
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #64748b;
}
.code-call .kw   { color: #c4b5fd; }
.code-call .api  { color: #93c5fd; }
.code-call .lit  { color: #fde68a; }
.code-call .com  { color: #64748b; font-style: italic; }
.code-call .num  { color: #fca5a5; }
.code-call .var  { color: #f9fafb; }
.code-call .punct{ color: #94a3b8; }

/* ============== Returned value panel (warm yellow — RSDF value-cell colour) ============== */
.code-return {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-m);
  padding: 16px 18px 14px;
  margin: 12px 0 18px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  position: relative;
}
.code-return::before {
  content: "RSDF RETURNS";
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #b45309;
}
.code-return table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 0;
  font-size: 13px;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #fde68a;
}
.code-return th,
.code-return td {
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid #fde68a;
}
.code-return th {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: #fef3c7;
}
.code-return tr:last-child td { border-bottom: none; }
.code-return .ret-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 4px 0 6px;
}
.code-return pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Courier New", monospace;
  font-size: 13.5px;
  color: var(--text);
}
.code-return .badge-ok {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  padding: 2px 10px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============== Param chips row (Area, ID, Parameter, Type) ============== */
.rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.rule-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rule-chip__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
}
.rule-chip__value {
  font-family: "Courier New", monospace;
  font-weight: 700;
  color: var(--text);
}

/* ============== "Behind the scenes" disclosure ============== */
.behind {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  padding: 0;
  font-size: 14px;
  overflow: hidden;
}
.behind summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.behind summary::-webkit-details-marker { display: none; }
.behind summary::before {
  content: "▸";
  color: var(--text-subtle);
  transition: transform 0.18s;
  font-size: 12px;
}
.behind[open] summary::before {
  transform: rotate(90deg);
}
.behind__body {
  padding: 0 16px 14px 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-cream);
}
.behind__body ol {
  margin: 12px 0;
  padding-left: 20px;
  color: var(--text-muted);
}
.behind__body ol li {
  margin-bottom: 8px;
  line-height: 1.55;
}
.behind__body code,
.behind__body pre {
  font-family: "Courier New", monospace;
  background: white;
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--brand-deep);
}
.behind__body pre {
  display: block;
  padding: 10px 12px;
  margin: 6px 0;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.5;
}

/* ============== Recap CTA ============== */
.recap {
  background: linear-gradient(135deg, var(--brand) 0%, #6d28d9 100%);
  border-radius: var(--radius-l);
  padding: 56px 48px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.recap::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto auto;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.recap h2 { color: white; margin: 0 0 16px; }
.recap p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  max-width: 60ch;
  margin: 0 auto 28px;
}
.recap .btn--primary {
  background: white;
  color: var(--brand);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.recap .btn--primary:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}
.recap .btn--ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}
.recap .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: white;
}
