:root {
  --navy: #1b2a4a;
  --navy-deep: #0f1a2e;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --cream: #f5f0e8;
  --cream-dark: #ede6d6;
  --white: #ffffff;
  --text-primary: #1b2a4a;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --success: #2d6a4f;
  --warning: #b7791f;
  --danger: #c53030;
  --border: #e2d9c8;
  --shadow: 0 4px 24px rgba(27, 42, 74, 0.08);
  --radius: 8px;
  --radius-lg: 16px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.rr-body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
}

.rr-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.rr-logo {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

.rr-hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 8vw, 5rem);
}

.rr-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.rr-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: clamp(2rem, 6vw, 4rem);
}

.rr-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--white);
}

.rr-hero .rr-lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--cream-dark);
  max-width: 38rem;
  margin: 0 0 2rem;
}

.rr-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.rr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.rr-btn:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.rr-btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}

.rr-btn-primary:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow);
}

.rr-btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245, 240, 232, 0.35);
}

.rr-btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.rr-muted {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.rr-section {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem);
}

.rr-section-cream {
  background: var(--cream);
}

.rr-section-navy {
  background: var(--navy);
  color: var(--cream);
}

.rr-section-navy h2,
.rr-section-navy h3 {
  color: var(--white);
}

.rr-section-gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.rr-section-gold .rr-btn-primary {
  background: var(--navy);
  color: var(--cream);
}

.rr-section-gold .rr-btn-primary:hover {
  background: var(--navy-deep);
}

.rr-container {
  max-width: 1100px;
  margin: 0 auto;
}

.rr-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.rr-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.rr-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.rr-section-navy .rr-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(226, 217, 200, 0.2);
  color: var(--cream);
}

.rr-card h3 {
  font-family: var(--font-display);
  margin-top: 0;
}

.rr-step-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.rr-credibility {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.rr-credibility strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
}

/* Diagnostic */
.rr-diag-header {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 1.25rem clamp(1rem, 3vw, 2rem) 2rem;
}

.rr-diag-header-inner {
  max-width: 720px;
  margin: 0 auto;
}

.rr-progress-wrap {
  margin-top: 1.25rem;
}

.rr-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.rr-progress-bar {
  height: 8px;
  background: rgba(245, 240, 232, 0.2);
  border-radius: 99px;
  overflow: hidden;
}

.rr-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.35s ease;
}

.rr-dimension-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.rr-dimension-icon {
  font-size: 1.5rem;
}

.rr-form-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 3vw, 2rem) 4rem;
}

.rr-field {
  margin-bottom: 1.5rem;
}

.rr-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.rr-field select,
.rr-field input[type="text"],
.rr-field input[type="email"] {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-primary);
}

.rr-field select:focus,
.rr-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.25);
}

.rr-field-error {
  border-color: var(--danger) !important;
}

.rr-error-text {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.rr-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1rem 0;
}

.rr-checkbox-row input {
  margin-top: 0.35rem;
}

.rr-nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.rr-btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
}

.rr-btn-ghost:hover {
  border-color: var(--gold);
}

.rr-upload-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Processing */
.rr-processing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 2rem;
  text-align: center;
}

.rr-pulse {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(201, 168, 76, 0.35);
  border-top-color: var(--gold);
  animation: rr-spin 1s linear infinite;
  margin-bottom: 2rem;
}

@keyframes rr-spin {
  to {
    transform: rotate(360deg);
  }
}

.rr-status-msg {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  min-height: 2.5em;
  max-width: 28rem;
}

/* Report */
.rr-report-header {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 2rem clamp(1rem, 3vw, 2rem);
}

.rr-report-header-inner {
  max-width: 900px;
  margin: 0 auto;
}

.rr-report-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(232, 201, 106, 0.5);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.rr-score-card {
  max-width: 900px;
  margin: -2rem auto 0;
  padding: 0 clamp(1rem, 3vw, 2rem) 2rem;
  position: relative;
  z-index: 1;
}

.rr-score-card-inner {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .rr-score-card-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

.rr-score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.rr-score-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.rr-score-label-pill {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.rr-label-ready {
  background: rgba(45, 106, 79, 0.15);
  color: var(--success);
}
.rr-label-nearly {
  background: rgba(201, 168, 76, 0.2);
  color: var(--warning);
}
.rr-label-developing {
  background: rgba(183, 121, 31, 0.15);
  color: var(--warning);
}
.rr-label-early {
  background: rgba(197, 48, 48, 0.12);
  color: var(--danger);
}

.rr-dim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 3vw, 2rem);
}

.rr-dim-card .rr-dim-bar {
  height: 6px;
  background: var(--cream-dark);
  border-radius: 99px;
  overflow: hidden;
  margin: 0.75rem 0;
}

.rr-dim-card .rr-dim-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
}

.rr-red-flag li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.rr-investor-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(226, 217, 200, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.rr-action-item {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin-bottom: 1.25rem;
}

.rr-footer-mini {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rr-footer-mini a {
  color: var(--navy);
}

@media print {
  .rr-no-print {
    display: none !important;
  }
  body.rr-body {
    background: white;
  }
  .rr-report-header {
    background: var(--navy) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Premium brand refresh for the in-product RaiseReady experience */
:root {
  --navy: #0d1926;
  --navy-deep: #09111a;
  --gold: #b58b52;
  --gold-light: #d3ab73;
  --cream: #f6f0e8;
  --cream-dark: #efe4d5;
  --white: #fffaf3;
  --text-primary: #17120d;
  --text-secondary: #5c5247;
  --text-muted: #877a6d;
  --border: rgba(23, 18, 13, 0.1);
  --shadow: 0 28px 70px rgba(12, 17, 24, 0.1);
  --radius: 12px;
  --radius-lg: 28px;
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Manrope", "Aptos", "Segoe UI", sans-serif;
}

body.rr-body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 5%, rgba(181, 139, 82, 0.18), transparent 24%),
    radial-gradient(circle at 10% 15%, rgba(13, 25, 38, 0.08), transparent 22%),
    linear-gradient(180deg, #faf6ef 0%, var(--cream) 42%, #f9f4ed 100%);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-feature-settings: "liga" 1, "kern" 1;
}

.rr-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.rr-logo::before {
  content: "";
  width: 2.45rem;
  height: 2.45rem;
  display: inline-block;
  border-radius: 8px;
  background: url("/logo.png") center / cover no-repeat;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.rr-section-label,
.rr-report-badge {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.2em;
}

.rr-diag-header,
.rr-report-header {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(9, 17, 26, 0.98), rgba(13, 25, 38, 0.95) 54%, rgba(19, 36, 54, 0.86)),
    url("/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(211, 171, 115, 0.2);
}

.rr-diag-header::after,
.rr-report-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(211, 171, 115, 0.72), transparent);
}

.rr-diag-header {
  padding: clamp(1.15rem, 4vw, 2rem) clamp(1rem, 3vw, 2rem) clamp(2rem, 5vw, 3rem);
}

.rr-diag-header-inner,
.rr-report-header-inner {
  max-width: 980px;
}

.rr-progress-wrap {
  margin-top: clamp(1.4rem, 4vw, 2.3rem);
}

.rr-progress-meta {
  color: rgba(251, 242, 229, 0.88);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.rr-progress-bar {
  height: 7px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rr-progress-fill {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.rr-dimension-title {
  align-items: center;
  color: #fbf2e5;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.rr-dimension-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(211, 171, 115, 0.44);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.rr-form-main {
  max-width: 920px;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.rr-form-main > form,
.rr-form-main > div {
  border: 1px solid rgba(23, 18, 13, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 243, 0.88);
  box-shadow: 0 28px 70px rgba(12, 17, 24, 0.08);
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.rr-form-main h2,
.rr-report-header h1,
.rr-score-value,
.rr-card h3,
.rr-action-item h3,
.rr-investor-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.rr-form-main .rr-muted {
  max-width: 42rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.75;
}

.rr-field {
  margin-bottom: 1.35rem;
}

.rr-field label {
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.rr-field select,
.rr-field input[type="text"],
.rr-field input[type="email"],
.rr-field input[type="password"],
.rr-field input[type="file"] {
  min-height: 3.25rem;
  border-color: rgba(23, 18, 13, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.rr-field input[type="file"] {
  padding: 0.85rem 1rem;
}

.rr-field select:focus,
.rr-field input:focus {
  border-color: rgba(181, 139, 82, 0.72);
  box-shadow:
    0 0 0 4px rgba(181, 139, 82, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.rr-btn {
  min-height: 3rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rr-btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #17120d;
  box-shadow: 0 16px 34px rgba(181, 139, 82, 0.22);
}

.rr-btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-1px);
}

.rr-btn-ghost,
.rr-btn-secondary {
  border-color: rgba(23, 18, 13, 0.16);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.35);
}

.rr-diag-header .rr-muted,
.rr-report-header .rr-muted {
  color: rgba(245, 240, 232, 0.82) !important;
}

.rr-report-header {
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 5rem);
}

.rr-report-badge {
  border-radius: 999px;
  border-color: rgba(211, 171, 115, 0.62);
  color: #fbf2e5;
}

.rr-score-card {
  margin-top: clamp(-3.2rem, -4vw, -2rem);
}

.rr-score-card-inner,
.rr-card {
  border-color: rgba(23, 18, 13, 0.09);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 250, 243, 0.92)),
    rgba(255, 250, 243, 0.92);
  box-shadow: 0 28px 70px rgba(12, 17, 24, 0.08);
}

.rr-score-circle {
  border-color: rgba(181, 139, 82, 0.68);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 8px rgba(181, 139, 82, 0.08);
}

.rr-score-value {
  color: var(--gold);
  font-size: 2.75rem;
}

.rr-score-label-pill {
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rr-label-nearly,
.rr-label-developing {
  background: rgba(181, 139, 82, 0.16);
  color: #9a6d33;
}

.rr-dim-grid {
  gap: 1.1rem;
}

.rr-dim-card .rr-dim-bar {
  height: 5px;
  background: rgba(23, 18, 13, 0.1);
}

.rr-dim-card .rr-dim-bar-fill {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.rr-section-navy {
  background:
    linear-gradient(145deg, rgba(9, 17, 26, 0.98), rgba(13, 25, 38, 0.97) 56%, rgba(19, 36, 54, 0.95));
}

.rr-section-navy .rr-card,
.rr-investor-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(211, 171, 115, 0.24);
}

.rr-action-item {
  padding: 1.1rem 0 1.1rem 1.1rem;
  border-left-color: var(--gold);
}

.rr-section-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.rr-footer-mini {
  border-top: 1px solid rgba(23, 18, 13, 0.08);
  background: rgba(250, 246, 239, 0.8);
}

.rr-footer-mini a {
  color: var(--text-primary);
}

@media (max-width: 540px) {
  .rr-diag-header {
    padding-top: 1rem;
  }

  .rr-progress-meta {
    gap: 0.5rem;
    align-items: flex-start;
  }

  .rr-form-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .rr-nav-buttons {
    flex-direction: column-reverse;
  }

  .rr-nav-buttons .rr-btn,
  .rr-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .rr-nav-buttons {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .rr-nav-buttons > span {
    display: none;
  }

  .rr-nav-buttons .rr-btn {
    width: 100%;
  }
}
