
/* =========================================
   RECOVERY CAPITAL X — GLOBAL DESIGN
   ========================================= */

* {
  box-sizing: border-box;
}

:root {
  --navy: #071D3B;
  --navy-dark: #05152D;
  --navy-light: #102B4D;
  --ink: #0B2142;
  --muted: #647184;
  --mint: #DDF8F5;
  --green: #00B8B5;
  --green-dark: #087F89;
  --pale: #F2FAFA;
  --line: #DDE8E9;
  --white: #ffffff;
  --radius: 20px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

h1, h2, h3, strong, .brand-copy {
  font-family: "Manrope", sans-serif;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.1rem, 6.4vw, 5.7rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
  margin: 20px 0 22px;
  font-weight: 800;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

h3 {
  line-height: 1.25;
  letter-spacing: -0.025em;
}

p {
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* =========================================
   ANNOUNCEMENT BAR
   ========================================= */

.announcement {
  text-align: center;
  background: var(--mint);
  color: #071D3B;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  padding: 8px 16px;
}

/* =========================================
   HEADER AND LOGO
   ========================================= */

.site-header {
  height: 88px;
  padding: 0 max(5vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid #edf0ef;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  background: var(--navy);
  border-radius: 13px;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.brand-mark i,
.brand-mark b {
  position: absolute;
  display: block;
  width: 7px;
  height: 37px;
  background: var(--green);
  border-radius: 5px;
  transform: rotate(42deg);
  left: 13px;
  top: 3px;
}

.brand-mark b {
  left: 24px;
  transform: rotate(-42deg);
  background: #00B8B5;
}

.brand-copy strong {
  display: block;
  font-size: 0.88rem;
  letter-spacing: 0.075em;
  line-height: 1.2;
}

.brand-copy em {
  font-style: normal;
  color: #00AEB4;
}

.brand-copy small {
  display: block;
  font-size: 0.59rem;
  letter-spacing: 0.19em;
  font-weight: 700;
  color: #778392;
  margin-top: 5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.86rem;
  font-weight: 600;
}

.nav > a {
  color: #4d5b6d;
}

.nav > a:hover,
.footer a:hover {
  color: #008F98;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 1.7rem;
}

/* =========================================
   BUTTONS
   ========================================= */

.button {
  border: 0;
  background: var(--green);
  color: #09291b;
  padding: 15px 22px;
  border-radius: 10px;
  font: 700 0.9rem "DM Sans", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 8px 22px #00B8B525;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px #00B8B545;
}

.button span {
  font-size: 1.1rem;
}

.button-small {
  padding: 11px 16px;
  gap: 14px;
}

.button-ghost {
  background: transparent;
  border: 1px solid #D4E3E6;
  box-shadow: none;
  color: var(--ink);
}

.button-light {
  background: var(--green);
  color: #09291b;
}

.button-outline-light {
  border: 1px solid #536274;
  background: transparent;
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.button-outline-light:hover {
  border-color: var(--green);
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero {
  min-height: 670px;
  padding: 75px max(7vw, 24px) 80px;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 4vw;
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #fff 45%, #F2FAFA 100%);
}

.hero-bg-shape {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: #A5EFEB55;
  right: -120px;
  top: 20px;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 800;
}

.eyebrow-line {
  display: inline-block;
  width: 26px;
  height: 2px;
  background: #00AEB4;
}

.hero h1 span,
.section-heading h2 span,
.commitment h2 span,
.bottom-cta h2 span,
.pricing-modal h2 span {
  color: #00AEB4;
}

.hero-lede {
  font-size: 1.17rem;
  max-width: 500px;
  color: #354355;
  line-height: 1.65;
}

.hero-note {
  font-size: 0.82rem;
  max-width: 490px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin: 30px 0 38px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 13px;
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #DDF8F5;
  color: #087F89;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.trust-row strong,
.trust-row small {
  display: block;
}

.trust-row strong {
  font-size: 0.84rem;
}

.trust-row small {
  color: #7b8794;
  font-size: 0.76rem;
  margin-top: 2px;
}

/* Hero images are remote image URLs for the prototype. */

.hero-visual {
  min-height: 480px;
  max-width: 540px;
  width: 100%;
  justify-self: end;
}

.hero-photo {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  box-shadow: 0 22px 55px #1d3a3422;
}

.photo-main {
  width: 72%;
  height: 420px;
  right: 4%;
  top: 8px;
  background-image: url(
    "https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=900&q=85"
  );
}

.photo-small {
  width: 43%;
  height: 235px;
  left: 0;
  bottom: 0;
  border: 8px solid #F2FAFA;
  background-image: url(
    "https://images.unsplash.com/photo-1560250097-0b93528c311a?auto=format&fit=crop&w=700&q=85"
  );
  background-position: center 30%;
}

.progress-card {
  position: absolute;
  right: 0;
  bottom: 43px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 40px #1d3a341c;
  max-width: 255px;
}

.progress-symbol {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #dcf9e8;
  color: #087F89;
  font-size: 1.3rem;
}

.progress-card strong,
.progress-card small {
  display: block;
}

.progress-card strong {
  font-size: 0.8rem;
}

.progress-card small {
  font-size: 0.72rem;
  color: #7d8995;
  margin-top: 3px;
}

.floating-x {
  position: absolute;
  right: 0;
  top: 0;
  color: #2ac47a;
  font: 800 5rem Manrope, sans-serif;
  opacity: 0.2;
  transform: rotate(12deg);
}

/* =========================================
   SHARED SECTION LAYOUT
   ========================================= */

.section-pad {
  padding: 100px max(7vw, 24px);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 44px;
}

.section-heading.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.section-heading p {
  font-size: 1rem;
  max-width: 650px;
}

.section-heading.centered p {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   CREDIT ITEMS GRID
   ========================================= */

.items-section {
  background: #fff;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.credit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  font-size: 0.91rem;
  font-weight: 700;
  transition: border-color 0.2s, transform 0.2s;
}

.credit-item:hover {
  border-color: #72DCD8;
  transform: translateY(-2px);
}

.item-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  background: #E2F8F7;
  color: #087F89;
  font-weight: 800;
}

.fine-print {
  font-size: 0.76rem;
  margin-top: 18px;
}

/* =========================================
   ONBOARDING STEPS
   ========================================= */

.process-section {
  background: var(--pale);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step-card {
  padding: 25px 22px 24px;
  background: #fff;
  border: 1px solid #DDE8E9;
  border-radius: 18px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.step-highlight {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.step-number {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: #087F89;
}

.step-highlight .step-number {
  color: var(--green);
}

.step-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e4f9ed;
  color: #087F89;
  font-size: 1.25rem;
}

.step-highlight .step-symbol {
  background: #193753;
  color: var(--green);
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.86rem;
  line-height: 1.65;
  margin-bottom: 15px;
}

.step-highlight p {
  color: #C9D8E8;
}

.text-link {
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #087F89;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  font-size: 0.83rem;
}

.text-link span {
  padding-left: 7px;
}

.step-caption {
  font-size: 0.72rem;
  color: #087F89;
  font-weight: 800;
  margin-top: auto;
}

.mini-list {
  padding-left: 18px;
  margin: 0;
  color: #647184;
  font-size: 0.78rem;
  line-height: 1.8;
}

.step-highlight .mini-list {
  color: #d2dce5;
}

.notice {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin: 28px auto 0;
  max-width: 800px;
  padding: 20px 22px;
  border: 1px solid #f1d9a3;
  background: #F8FBFA;
  border-radius: 14px;
}

.notice-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #DDF8F5;
  color: #087F89;
  font-weight: 900;
}

.notice strong {
  font-size: 0.9rem;
}

.notice p {
  font-size: 0.82rem;
  margin: 4px 0 0;
  color: #647184;
}

.center-cta {
  text-align: center;
  margin-top: 30px;
}

/* =========================================
   PEOPLE / BRAND SECTION
   ========================================= */

.commitment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy);
  min-height: 480px;
}

.commitment-image {
  background-image: url(
    "https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&w=1200&q=85"
  );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 440px;
}

.commitment-copy {
  padding: 80px clamp(30px, 7vw, 100px);
  align-self: center;
}

.eyebrow-light {
  color: #70E1DC;
}

.commitment h2,
.bottom-cta h2 {
  color: #fff;
}

.commitment h2 span,
.bottom-cta h2 span {
  color: var(--green);
}

.commitment-copy p {
  color: #c2ced9;
  max-width: 440px;
}

/* =========================================
   FAQ ACCORDION
   ========================================= */

.faq-section {
  max-width: 1440px;
  margin: auto;
}

.faq-list {
  max-width: 900px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: #00AEB4;
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 40px 18px 4px;
}

.faq-answer p {
  font-size: 0.9rem;
  line-height: 1.75;
  margin: 0;
}

.faq-answer a {
  color: #087F89;
  text-decoration: underline;
}

/* =========================================
   BOTTOM CALL TO ACTION
   ========================================= */

.bottom-cta {
  padding: 68px max(7vw, 24px);
  background: linear-gradient(120deg, #102B4D, #101a2b);
}

.bottom-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1250px;
  margin: auto;
}

.bottom-cta h2 {
  margin: 13px 0;
}

.bottom-cta p {
  color: #c1ccd7;
  margin-bottom: 0;
}

.bottom-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
  padding: 48px max(7vw, 24px) 20px;
  background: var(--navy-dark);
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: center;
  gap: 30px;
  padding-bottom: 35px;
}

.brand-footer .brand-copy strong {
  color: #fff;
}

.brand-footer .brand-copy small {
  color: #a7b3c0;
}

.footer-main > p {
  font-size: 0.85rem;
  margin: 0;
  color: #aab6c3;
}

.social-links {
  display: flex;
  gap: 17px;
  justify-content: flex-end;
  font-size: 0.8rem;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid #263D58;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #9eabb9;
  font-size: 0.75rem;
}

.footer-bottom div {
  display: flex;
  gap: 22px;
}

.footer-disclaimer {
  font-size: 0.68rem;
  line-height: 1.7;
  color: #7e8c9b;
  margin: 22px 0 0;
  max-width: 1000px;
}

/* =========================================
   PRICING POPUP
   ========================================= */

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #07111dc9;
  backdrop-filter: blur(5px);
  padding: 24px;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.open {
  display: flex;
}

.pricing-modal {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: clamp(25px, 4vw, 44px);
  width: min(100%, 700px);
  box-shadow: 0 30px 100px #0004;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 15px;
  border: 0;
  background: #EAF5F5;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.6rem;
  cursor: pointer;
  color: #25364a;
}

.modal-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #087F89;
  margin-bottom: 12px;
}

.pricing-modal h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  padding-right: 35px;
  margin-bottom: 10px;
}

.modal-intro {
  font-size: 0.88rem;
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 22px;
}

.form-grid label {
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-grid input:not([type="checkbox"]),
.form-grid select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d9e2df;
  border-radius: 9px;
  background: #fff;
  font: 400 0.9rem "DM Sans", sans-serif;
  color: var(--ink);
}

.form-grid input:focus,
.form-grid select:focus {
  outline: 2px solid #72DCD8;
  border-color: #00AEB4;
}

.full {
  grid-column: 1 / -1;
}

.optional {
  font-weight: 400;
  color: #8b96a2;
}

.consent-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 500 !important;
  color: #697687;
  font-size: 0.72rem !important;
  line-height: 1.55;
}

.consent-row input {
  margin-top: 4px;
  accent-color: #00AEB4;
}

.form-note {
  font-size: 0.72rem;
  line-height: 1.6;
  margin: 16px 0;
}

.form-submit {
  width: 100%;
}

.form-result {
  margin: 12px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #087F89;
}

.form-result.error {
  color: #b13b35;
}

/* =========================================
   LEGAL PAGE STYLES
   ========================================= */

.legal-page {
  max-width: 1000px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin: 20px 0 28px;
}

.legal-page h2 {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  margin: 36px 0 10px;
}

.legal-page p {
  font-size: 0.94rem;
  line-height: 1.8;
}

.legal-page a {
  color: #087F89;
  text-decoration: underline;
}

.legal-warning {
  padding: 18px 20px;
  background: #F2FAFA;
  border: 1px solid #B9EAE7;
  border-radius: 12px;
  color: #64563d;
}

/* =========================================
   RESPONSIVE TABLET LAYOUT
   ========================================= */

@media (max-width: 1000px) {
  .nav {
    gap: 17px;
  }

  .hero {
    padding-top: 60px;
    gap: 2vw;
  }

  .hero-visual {
    min-height: 410px;
  }

  .photo-main {
    height: 355px;
  }

  .photo-small {
    height: 200px;
  }

  .item-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-card {
    min-height: 290px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .social-links {
    justify-content: flex-start;
  }
}

/* =========================================
   RESPONSIVE MOBILE LAYOUT
   ========================================= */

@media (max-width: 720px) {
  .site-header {
    height: 75px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    padding: 22px 24px 25px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 25px #1222;
    align-items: stretch;
    flex-direction: column;
    gap: 19px;
  }

  .nav.open {
    display: flex;
  }

  .nav .button {
    align-self: flex-start;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
  }

  .brand-copy strong {
    font-size: 0.75rem;
  }

  .brand-copy small {
    font-size: 0.52rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 56px 24px 50px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 14vw, 5rem);
  }

  .hero-visual {
    justify-self: center;
    min-height: 380px;
    margin-top: 10px;
  }

  .photo-main {
    width: 72%;
    height: 335px;
    right: 6%;
  }

  .photo-small {
    width: 43%;
    height: 180px;
  }

  .progress-card {
    bottom: 25px;
    right: 0;
    padding: 12px;
    max-width: 220px;
  }

  .section-pad {
    padding: 70px 24px;
  }

  .item-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .credit-item {
    font-size: 0.82rem;
    padding: 13px 10px;
    gap: 8px;
  }

  .item-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: auto;
    padding: 23px;
  }

  .step-top {
    margin-bottom: 20px;
  }

  .commitment {
    grid-template-columns: 1fr;
  }

  .commitment-image {
    min-height: 280px;
  }

  .commitment-copy {
    padding: 52px 24px 60px;
  }

  .bottom-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .bottom-actions {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-main > p {
    grid-column: auto;
    grid-row: auto;
  }

  .social-links {
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-bottom div {
    flex-wrap: wrap;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .full {
    grid-column: auto;
  }

  .pricing-modal {
    padding: 28px 21px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .announcement {
    font-size: 0.68rem;
  }
}

/* Respect reduced-motion preferences. */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}


/* RCX brand refinements: navy + turquoise, with restrained aqua surfaces. */
::selection { background: #B9F0ED; color: #071D3B; }
:focus-visible { outline: 3px solid #00B8B5; outline-offset: 3px; }
.button:not(.button-ghost):not(.button-outline-light) { background: #00B8B5; color: #071D3B; }
.button:not(.button-ghost):not(.button-outline-light):hover { background: #21C9C4; }
.brand-copy em, .hero h1 span, .section-heading h2 span, .commitment h2 span, .bottom-cta h2 span, .pricing-modal h2 span { color: #00B8B5; }
.announcement { background: #DDF8F5; color: #071D3B; }
.item-icon, .trust-icon, .step-symbol, .progress-symbol { background: #E2F8F7; color: #087F89; }
.step-highlight .step-symbol { background: #193753; color: #00B8B5; }
