:root {
  --rjc-navy: #0f2742;
  --rjc-charcoal: #17202a;
  --rjc-muted: #637083;
  --rjc-gold: #b9965b;
  --rjc-soft-gold: #f6efe2;
  --rjc-bg: #f6f8fb;
  --rjc-card: #ffffff;
  --rjc-border: #e3e8ef;
  --rjc-shadow: 0 18px 50px rgba(15, 39, 66, 0.10);
}

.rjc-page-shell {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--rjc-charcoal);
  background: linear-gradient(180deg, #ffffff 0%, var(--rjc-bg) 100%);
  border-radius: 28px;
  overflow: hidden;
}

.rjc-hero {
  padding: 64px 28px 36px;
  background:
    radial-gradient(circle at top right, rgba(185, 150, 91, 0.22), transparent 34%),
    linear-gradient(135deg, #0f2742 0%, #17395e 100%);
  color: white;
}

.rjc-hero-content,
.rjc-app {
  max-width: 1180px;
  margin: 0 auto;
}

.rjc-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: white;
}

.rjc-subheadline {
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
  max-width: 760px;
  color: rgba(255,255,255,0.86);
  margin: 20px 0 30px;
}

.rjc-eyebrow {
  margin: 0 0 10px;
  color: var(--rjc-gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 800;
}

.rjc-hero .rjc-eyebrow {
  color: #f7dca1;
}

.rjc-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rjc-trust-grid div {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}

.rjc-app {
  padding: 34px 20px 54px;
}

.rjc-card {
  background: var(--rjc-card);
  border: 1px solid var(--rjc-border);
  border-radius: 28px;
  box-shadow: var(--rjc-shadow);
  padding: 28px;
  margin-bottom: 22px;
}

.rjc-card-header h2,
.rjc-lead-card h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.rjc-card-header p,
.rjc-lead-card p,
.rjc-disclaimer p {
  color: var(--rjc-muted);
  line-height: 1.55;
}

.rjc-grid,
.rjc-advanced {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.rjc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rjc-label {
  font-size: 14px;
  font-weight: 800;
  color: #243244;
}

.rjc-helper {
  color: var(--rjc-muted);
  font-size: 12px;
}

.rjc-field input,
.rjc-field select,
.rjc-lead-form input,
.rjc-lead-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--rjc-border);
  border-radius: 16px;
  padding: 14px 15px;
  font-size: 16px;
  background: #fff;
  color: var(--rjc-charcoal);
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

.rjc-field input:focus,
.rjc-field select:focus,
.rjc-lead-form input:focus,
.rjc-lead-form select:focus {
  border-color: var(--rjc-gold);
  box-shadow: 0 0 0 4px rgba(185, 150, 91, 0.15);
}

.rjc-link-button {
  border: 0;
  background: var(--rjc-soft-gold);
  color: var(--rjc-navy);
  border-radius: 999px;
  padding: 12px 18px;
  margin-top: 22px;
  font-weight: 900;
  cursor: pointer;
}

.rjc-advanced {
  background: #fbfcfe;
  border: 1px solid var(--rjc-border);
  border-radius: 24px;
  padding: 22px;
}

.rjc-results-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.rjc-metric-hero {
  background: linear-gradient(135deg, var(--rjc-navy), #1d4772);
  color: white;
  border-radius: 24px;
  padding: 24px;
  margin: 18px 0;
}

.rjc-metric-hero span {
  display: block;
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  margin-bottom: 6px;
}

.rjc-metric-hero strong {
  display: block;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.05em;
}

.rjc-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.rjc-metrics div {
  background: #f8fafc;
  border: 1px solid var(--rjc-border);
  border-radius: 18px;
  padding: 16px;
}

.rjc-metrics span {
  display: block;
  color: var(--rjc-muted);
  font-size: 13px;
  font-weight: 700;
}

.rjc-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  color: var(--rjc-charcoal);
}

.rjc-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.rjc-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--rjc-soft-gold);
  color: var(--rjc-navy);
  font-weight: 800;
  font-size: 13px;
}

.rjc-rec-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rjc-rec {
  border-left: 4px solid var(--rjc-gold);
  background: #fbfcfe;
  border-radius: 16px;
  padding: 16px;
}

.rjc-rec h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rjc-rec p {
  margin: 0;
  color: var(--rjc-muted);
  line-height: 1.5;
}

.rjc-table-wrap {
  overflow-x: auto;
}

.rjc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.rjc-table th,
.rjc-table td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--rjc-border);
}

.rjc-table th {
  color: var(--rjc-navy);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #f8fafc;
}

.rjc-lead-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(185, 150, 91, 0.18), transparent 30%),
    #fff;
}

.rjc-lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.rjc-primary-button {
  grid-column: 1 / -1;
  border: none;
  border-radius: 18px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--rjc-navy), #1d4772);
  color: white;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(15, 39, 66, 0.20);
}

.rjc-disclaimer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.rjc-disclaimer p {
  font-size: 12px;
}

@media (max-width: 860px) {
  .rjc-hero {
    padding: 44px 20px 28px;
  }

  .rjc-trust-grid,
  .rjc-grid,
  .rjc-advanced,
  .rjc-results-grid,
  .rjc-lead-card,
  .rjc-lead-form {
    grid-template-columns: 1fr;
  }

  .rjc-card {
    border-radius: 22px;
    padding: 20px;
  }

  .rjc-metrics {
    grid-template-columns: 1fr;
  }

  .rjc-metric-hero strong {
    font-size: 38px;
  }
}


.rjc-metric-hero span {
  max-width: 760px;
  line-height: 1.35;
}

@media (max-width: 860px) {
  .rjc-table {
    min-width: 760px;
  }
}

/* Version 1.0.3: Enhanced interactive donut and annual/monthly amortization tabs */
.rjc-donut-card {
  overflow: hidden;
}

.rjc-donut-card-inner {
  display: grid;
  grid-template-columns: minmax(210px, 0.95fr) minmax(190px, 1.05fr);
  gap: 16px;
  align-items: center;
  min-height: 300px;
}

.rjc-donut-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rjc-donut {
  width: min(260px, 100%);
  height: auto;
  transform: rotate(-90deg);
  filter: drop-shadow(0 14px 24px rgba(15, 39, 66, 0.13));
}

.rjc-donut text {
  transform: rotate(90deg);
  transform-origin: 95px 95px;
  pointer-events: none;
}

.rjc-donut-bg {
  fill: none;
  stroke: #e9eef5;
  stroke-width: 22;
}

.rjc-donut-segment {
  fill: none;
  stroke-width: 22;
  stroke-linecap: round;
  cursor: pointer;
  transition: stroke-width 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.rjc-donut-segment:hover,
.rjc-donut-segment.is-active {
  stroke-width: 28;
  filter: drop-shadow(0 6px 10px rgba(15, 39, 66, 0.23));
}

.rjc-donut-segment-1 { stroke: #17395e; }
.rjc-donut-segment-2 { stroke: #e2a93b; }
.rjc-donut-segment-3 { stroke: #2aa7a5; }
.rjc-donut-segment-4 { stroke: #8b5cf6; }

.rjc-donut-center-label {
  font-size: 10px;
  fill: #637083;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rjc-donut-center-value {
  font-size: 17px;
  fill: #17202a;
  font-weight: 950;
}

.rjc-donut-tooltip {
  background: #0f2742;
  color: white;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  max-width: 100%;
}

.rjc-donut-legend {
  display: grid;
  gap: 9px;
}

.rjc-donut-legend-row {
  appearance: none;
  border: 1px solid var(--rjc-border);
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--rjc-muted);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border 0.15s ease;
}

.rjc-donut-legend-row:hover,
.rjc-donut-legend-row.is-active {
  transform: translateY(-1px);
  border-color: rgba(185, 150, 91, 0.48);
  box-shadow: 0 10px 24px rgba(15, 39, 66, 0.10);
}

.rjc-donut-legend-row strong {
  color: var(--rjc-charcoal);
  white-space: nowrap;
}

.rjc-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.rjc-dot-1 { background: #17395e; }
.rjc-dot-2 { background: #e2a93b; }
.rjc-dot-3 { background: #2aa7a5; }
.rjc-dot-4 { background: #8b5cf6; }

.rjc-rec-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.rjc-amortization-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.rjc-amortization-header h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.03em;
}

.rjc-amortization-header p {
  color: var(--rjc-muted);
  line-height: 1.55;
}

.rjc-amortization-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin: 18px 0;
}

.rjc-amortization-summary div {
  background: #f8fafc;
  border: 1px solid var(--rjc-border);
  border-radius: 18px;
  padding: 16px;
}

.rjc-amortization-summary span {
  display: block;
  color: var(--rjc-muted);
  font-size: 13px;
  font-weight: 700;
}

.rjc-amortization-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  color: var(--rjc-charcoal);
}

.rjc-tabs {
  display: inline-flex;
  gap: 8px;
  background: #f2f5f9;
  border: 1px solid var(--rjc-border);
  padding: 6px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.rjc-tabs button {
  border: 0;
  background: transparent;
  color: var(--rjc-muted);
  font-weight: 900;
  border-radius: 999px;
  padding: 10px 15px;
  cursor: pointer;
}

.rjc-tabs button.is-active {
  background: #ffffff;
  color: var(--rjc-navy);
  box-shadow: 0 8px 18px rgba(15, 39, 66, 0.10);
}

.rjc-amortization-table-wrap {
  max-height: 560px;
  overflow: auto;
  border: 1px solid var(--rjc-border);
  border-radius: 18px;
}

.rjc-amortization-table-wrap .rjc-table {
  margin: 0;
}

.rjc-amortization-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

@media (max-width: 1040px) {
  .rjc-donut-card-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .rjc-donut-card-inner,
  .rjc-rec-list-grid,
  .rjc-amortization-summary {
    grid-template-columns: 1fr;
  }

  .rjc-amortization-header {
    flex-direction: column;
  }

  .rjc-donut {
    max-width: 240px;
    margin: 0 auto;
  }

  .rjc-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 18px;
  }

  .rjc-tabs button {
    border-radius: 14px;
  }

  .rjc-donut-legend-row {
    grid-template-columns: 14px 1fr;
  }

  .rjc-donut-legend-row strong {
    grid-column: 2;
  }
}


/* Version 1.0.4 RSU Enhancements */
.rjc-rsu-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--rjc-border);
}

.rjc-rsu-heading {
  margin: 0 0 14px;
  font-size: 20px;
  color: var(--rjc-navy);
  letter-spacing: -0.02em;
}

.rjc-rsu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}

@media (max-width: 860px) {
  .rjc-rsu-grid {
    grid-template-columns: 1fr;
  }
}


/* Version 1.0.5: Improved donut layout and hover polish */
.rjc-donut-card {
  min-height: auto !important;
  overflow: visible !important;
}

.rjc-donut-stacked {
  display: block !important;
  min-height: auto !important;
}

.rjc-donut-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 315px;
  padding: 4px 0 8px;
}

.rjc-donut {
  width: min(300px, 100%) !important;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  transform: rotate(-90deg);
  filter: drop-shadow(0 18px 30px rgba(15, 39, 66, 0.16));
}

.rjc-donut text {
  transform: rotate(90deg);
  transform-origin: 100px 100px;
  pointer-events: none;
}

.rjc-donut-bg {
  fill: none;
  stroke: #e8edf4;
  stroke-width: 24;
}

.rjc-donut-segment {
  fill: none;
  stroke-width: 24;
  stroke-linecap: round;
  cursor: pointer;
  transition:
    stroke-width 0.2s ease,
    opacity 0.2s ease,
    filter 0.2s ease;
}

.rjc-donut-segment:hover,
.rjc-donut-segment.is-active {
  stroke-width: 31;
  filter: drop-shadow(0 7px 13px rgba(15, 39, 66, 0.28));
  opacity: 1;
}

.rjc-donut-segment.is-muted {
  opacity: 0.35;
}

.rjc-donut-segment-1 { stroke: #143a66; }
.rjc-donut-segment-2 { stroke: #f4b63f; }
.rjc-donut-segment-3 { stroke: #28b7b0; }
.rjc-donut-segment-4 { stroke: #8f5cf7; }

.rjc-donut-center-label {
  font-size: 11px;
  fill: #66758a;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rjc-donut-center-value {
  font-size: 19px;
  fill: #111b29;
  font-weight: 950;
}

.rjc-donut-hover-card {
  margin-top: -4px;
  background: linear-gradient(135deg, #0f2742, #17395e);
  color: white;
  border-radius: 22px;
  padding: 12px 18px;
  min-width: 220px;
  text-align: center;
  box-shadow: 0 14px 28px rgba(15, 39, 66, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rjc-donut-hover-card.is-active {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 39, 66, 0.25);
}

.rjc-donut-hover-card span {
  display: block;
  opacity: 0.8;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rjc-donut-hover-card strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 950;
}

.rjc-donut-legend-below {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.rjc-donut-legend-row {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  grid-template-columns: 14px minmax(0, 1fr) auto !important;
  padding: 13px 14px !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 20px rgba(15, 39, 66, 0.08);
}

.rjc-donut-legend-row span:nth-child(2) {
  white-space: normal;
  overflow-wrap: anywhere;
}

.rjc-donut-legend-row strong {
  font-size: 15px;
}

@media (max-width: 1160px) {
  .rjc-donut-legend-below {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .rjc-donut-stage {
    min-height: auto;
  }

  .rjc-donut {
    max-width: 260px;
  }

  .rjc-donut-legend-below {
    grid-template-columns: 1fr;
  }

  .rjc-donut-legend-row {
    grid-template-columns: 14px minmax(0, 1fr) auto !important;
  }
}


/* Version 1.1.1: Jumbo income and borrower intelligence */
.rjc-intelligence-section {
  grid-column: 1 / -1;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(185, 150, 91, 0.24);
  border-radius: 24px;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.rjc-intelligence-heading {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--rjc-navy);
  letter-spacing: -0.025em;
}

.rjc-intelligence-copy {
  margin: 0 0 18px;
  color: var(--rjc-muted);
  line-height: 1.55;
}

.rjc-intelligence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}

.rjc-rsu-panel {
  margin-top: 20px;
  padding: 20px;
  border-radius: 22px;
  background: #f8fafc;
  border: 1px solid var(--rjc-border);
}

.rjc-rsu-panel h4 {
  margin: 0 0 8px;
  color: var(--rjc-navy);
  font-size: 19px;
}

.rjc-rsu-panel p {
  margin: 0 0 16px;
  color: var(--rjc-muted);
  line-height: 1.55;
}

.rjc-intel-card h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.rjc-intel-note {
  color: var(--rjc-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.rjc-intel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.rjc-intel-grid div {
  background: #f8fafc;
  border: 1px solid var(--rjc-border);
  border-radius: 18px;
  padding: 16px;
}

.rjc-intel-grid span {
  display: block;
  color: var(--rjc-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rjc-intel-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--rjc-charcoal);
  font-size: 16px;
  line-height: 1.35;
}

.rjc-docs-panel {
  background: linear-gradient(135deg, #0f2742, #17395e);
  color: white;
  border-radius: 22px;
  padding: 20px;
}

.rjc-docs-panel h3 {
  margin: 0 0 12px;
  color: white;
}

.rjc-docs-panel ul {
  margin: 0;
  padding-left: 20px;
  columns: 2;
}

.rjc-docs-panel li {
  margin-bottom: 8px;
  color: rgba(255,255,255,0.88);
}

@media (max-width: 1040px) {
  .rjc-intel-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 860px) {
  .rjc-intelligence-grid,
  .rjc-intel-grid {
    grid-template-columns: 1fr;
  }

  .rjc-docs-panel ul {
    columns: 1;
  }
}


