/* After diagnosis result — Before & After growth report */

.ra-page {
  --ra-brand: var(--color-primary, #0f766e);
  --ra-ink: var(--color-text-primary, #0f172a);
  --ra-muted: var(--color-text-muted, #64748b);
  --ra-line: var(--color-border, rgba(15, 118, 110, 0.12));
  --ra-card: #ffffff;
  --ra-success: #059669;
  --ra-warning: #d97706;
  /* Share result-v2 topbar token values so .rv2-brand pill renders here too */
  --rv2-brand: var(--color-primary, #0f766e);
  --rv2-muted: var(--color-text-muted, #64748b);
  --rv2-shadow: var(--color-shadow, 0 8px 24px rgba(15, 23, 42, 0.08));
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.ra-page .rv2-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--color-primary, #0f766e);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  font-size: 15px;
  box-shadow: var(--rv2-shadow);
}

.ra-result-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: -8px 0 20px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--ra-line);
  background: var(--ra-card);
}

.ra-result-type {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ra-brand);
}

.ra-result-phone {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ra-muted);
  font-variant-numeric: tabular-nums;
}

.ra-hero {
  text-align: center;
  padding: 28px 20px;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(15, 118, 110, 0.1) 0%, #fff 55%);
  border: 1px solid var(--ra-line);
  margin-bottom: 20px;
}

.ra-eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ra-brand);
}

.ra-hero-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 6vw, 36px);
  letter-spacing: -0.04em;
  color: var(--ra-ink);
}

.ra-hero-lead {
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--ra-ink);
}

.ra-score-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.ra-score-box {
  flex: 1;
  max-width: 140px;
  padding: 16px 12px;
  border-radius: 18px;
  border: 1px solid var(--ra-line);
  background: #fff;
}

.ra-score-box--after {
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.06);
}

.ra-score-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--ra-muted);
  margin-bottom: 6px;
}

.ra-score-value {
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ra-ink);
}

.ra-score-box--after .ra-score-value {
  color: var(--ra-brand);
}

.ra-score-unit {
  font-size: 14px;
  font-weight: 700;
  color: var(--ra-muted);
}

.ra-score-arrow {
  font-size: 24px;
  color: var(--ra-brand);
  font-weight: 900;
}

.ra-delta-badge {
  display: inline-block;
  margin: 0;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  background: rgba(5, 150, 105, 0.12);
  color: var(--ra-success);
}

.ra-delta-badge[data-tone="down"] {
  background: rgba(217, 119, 6, 0.12);
  color: var(--ra-warning);
}

.ra-delta-badge[data-tone="flat"] {
  background: rgba(100, 116, 139, 0.12);
  color: var(--ra-muted);
}

.ra-card {
  background: var(--ra-card);
  border: 1px solid var(--ra-line);
  border-radius: 20px;
  padding: 22px 20px;
  margin-bottom: 16px;
}

.ra-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ra-card-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.ra-card-icon {
  font-size: 20px;
}

.ra-dim-list {
  display: grid;
  gap: 16px;
}

.ra-dim-row__head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
}

.ra-dim-row__delta.up { color: var(--ra-success); font-style: normal; }
.ra-dim-row__delta.down { color: var(--ra-warning); font-style: normal; }
.ra-dim-row__delta.flat { color: var(--ra-muted); font-style: normal; }

.ra-dim-row__bars {
  position: relative;
  height: 10px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.ra-dim-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 999px;
}

.ra-dim-bar--before {
  background: rgba(100, 116, 139, 0.35);
  z-index: 1;
}

.ra-dim-bar--after {
  background: var(--ra-brand);
  opacity: 0.85;
  z-index: 2;
}

.ra-dim-row__focus {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ra-brand);
  background: rgba(15, 118, 110, 0.08);
  padding: 3px 8px;
  border-radius: 999px;
}

.ra-praise-list,
.ra-guide-list {
  display: grid;
  gap: 12px;
}

.ra-praise-card,
.ra-guide-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--ra-line);
}

.ra-praise-card {
  background: rgba(5, 150, 105, 0.06);
  border-color: rgba(5, 150, 105, 0.18);
}

.ra-guide-card {
  background: rgba(15, 118, 110, 0.05);
}

.ra-coach-label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 900;
  color: var(--ra-brand);
}

.ra-coach-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 700;
  color: var(--ra-ink);
}

.ra-empty-note {
  margin: 0;
  font-size: 14px;
  color: var(--ra-muted);
  font-weight: 700;
}

.ra-guide-type-note {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.06);
  border: 1px dashed rgba(15, 118, 110, 0.3);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 700;
  color: var(--ra-ink);
}

.ra-guide-type-note:empty {
  display: none;
}

.ra-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--stl-accent-light, var(--color-secondary-bg, #ecfdf5));
  color: var(--stl-accent, var(--color-primary, #0f766e));
  border: 1px solid rgba(var(--stl-accent-rgb, var(--color-primary-rgb)), 0.25);
  font-size: inherit;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
  vertical-align: baseline;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ra-type-pill:hover {
  background: var(--stl-accent, var(--color-primary, #0f766e));
  color: #fff;
  border-color: var(--stl-accent, var(--color-primary, #0f766e));
  transform: translateY(-1px);
}

.ra-guide-type-note__link {
  color: var(--ra-brand);
  font-weight: 900;
  text-decoration: underline;
}

.ra-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ra-btn-row-3 .ra-btn {
  flex: 1 1 140px;
}

.ra-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ra-btn-primary {
  background: var(--ra-brand);
  color: #fff;
}

.ra-btn-secondary {
  background: #fff;
  color: var(--ra-ink);
  border: 1px solid var(--ra-line);
}

.ra-btn-kakao {
  background: #fee500;
  color: #191919;
}

.ra-btn-xl {
  min-height: 52px;
  font-size: 16px;
  border-radius: 14px;
}

.ra-btn-lg {
  min-height: 48px;
}

.ra-card--save {
  margin-bottom: 12px;
}

.ra-save-note {
  margin: 12px 0 0;
  padding: 10px 15px;
  background-color: #fff9e6;
  border: 1px solid #ffe0b2;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: bold;
  color: #e65100;
}

.ra-final-cta {
  text-align: center;
  padding: 28px 16px 32px;
  display: grid;
  gap: 18px;
  margin-top: 0;
  justify-items: center;
}

.ra-final-lead {
  margin: 0;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ra-ink);
  font-weight: 800;
}

.ra-final-cta .ra-btn {
  margin: 0;
}

.ra-footer {
  text-align: center;
  padding: 24px 0 8px;
  font-size: 13px;
  color: var(--ra-muted);
  font-weight: 700;
}

.ra-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ra-reveal.is-visible {
  opacity: 1;
  transform: none;
}

body.ra-printing .ra-reveal {
  opacity: 1 !important;
  transform: none !important;
}

@media print {
  body.ra-printing .rv2-topbar,
  body.ra-printing .ra-topbar,
  body.ra-printing .ra-final-cta,
  body.ra-printing .ra-save,
  body.ra-printing .ra-btn-row,
  body.ra-printing .ra-btn,
  body.ra-printing .ra-footer,
  body.ra-printing .kakao-chat-bar {
    display: none !important;
  }

  body.ra-printing .ra-page {
    max-width: none;
    padding: 0;
    background: #fff;
  }

  body.ra-printing .ra-card {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none;
  }
}

.ra-pdf-capture .ra-reveal {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 480px) {
  .ra-score-compare {
    flex-direction: column;
  }

  .ra-score-arrow {
    transform: rotate(90deg);
  }
}
