/* RETIREMENT SUCCESS GRAPH — V3 DESIGN SYSTEM */

:root {
  --rsg-navy: #14283C;
  --rsg-gold: #B69D78;
  --rsg-ivory: #F6F4F0;
  --rsg-sage: #486F66;
  --rsg-slate: #697681;
  --rsg-white: #FFFFFF;
  --rsg-border: #E4E2DC;
  --rsg-muted: #EFF1EE;
  --rsg-width: 1200px;
}

.rsg-section,
.rsg-section * {
  box-sizing: border-box;
}

.rsg-section {
  color: var(--rsg-navy);
  font-family: "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow: hidden;
}

.rsg-section h1,
.rsg-section h2,
.rsg-section h3,
.rsg-section p {
  margin: 0;
}

.rsg-container {
  width: min(100% - 64px, var(--rsg-width));
  margin-inline: auto;
}

.rsg-padding {
  padding-block: 100px;
}

.rsg-eyebrow {
  display: block;
  color: var(--rsg-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.rsg-heading {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -.025em;
  margin-bottom: 24px !important;
}

.rsg-heading em {
  font-weight: 400;
}

.rsg-subheading {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 16px !important;
}

.rsg-lead {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--rsg-slate);
  line-height: 1.75;
  max-width: 680px;
}

.rsg-copy {
  color: var(--rsg-slate);
  line-height: 1.8;
}

.rsg-center {
  text-align: center;
}

.rsg-center .rsg-lead {
  margin-inline: auto;
}

.rsg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.rsg-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.rsg-card {
  padding: 32px;
  background: var(--rsg-white);
  border: 1px solid var(--rsg-border);
  border-radius: 16px;
}

.rsg-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 15px 28px;
  border-radius: 6px;
  background: var(--rsg-navy);
  color: white !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none !important;
  transition: transform .2s, background .2s;
}

.rsg-btn:hover {
  background: #27455E;
  transform: translateY(-2px);
}

.rsg-btn-gold {
  background: var(--rsg-gold);
  color: var(--rsg-navy) !important;
}

.rsg-btn-gold:hover {
  background: #CBB28C;
}

.rsg-btn-outline {
  background: transparent;
  color: var(--rsg-navy) !important;
  border: 1px solid var(--rsg-navy);
}

.rsg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.rsg-label {
  display: inline-block;
  color: var(--rsg-sage);
  background: #EBF1ED;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 30px;
}

.rsg-label-soon {
  color: #8A6D45;
  background: #F4EBDD;
}

.rsg-section a:focus-visible {
  outline: 3px solid var(--rsg-gold);
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  .rsg-padding { padding-block: 75px; }
  .rsg-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .rsg-container {
    width: min(100% - 36px, var(--rsg-width));
  }
  .rsg-padding { padding-block: 58px; }
  .rsg-grid,
  .rsg-grid-two {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .rsg-card { padding: 25px; }
  .rsg-heading { font-size: clamp(34px, 8vw, 46px); }
  .rsg-actions { flex-direction: column; align-items: stretch; }
  .rsg-btn { width: 100%; }
}

@media (max-width: 480px) {
  .rsg-padding { padding-block: 48px; }
  .rsg-card { padding: 22px; }
  .rsg-eyebrow { letter-spacing: .14em; }
}

@media (prefers-reduced-motion: reduce) {
  .rsg-section *,
  .rsg-section *::before,
  .rsg-section *::after {
    animation: none !important;
    transition: none !important;
  }
}

a.ast-button.ast-badge-tax { background-color:#279B48; color:#ffffff;}


#fire-calculator {
  max-width: 480px;
  margin: 40px auto;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #2c3e50;
}

#fire-calculator h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

#fire-calculator label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #34495e;
}

#fire-calculator input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border 0.2s;
}
#fire-calculator input:focus {
  border-color: #1abc9c;
  outline: none;
}

#fire-calculator button {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background: #1abc9c;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
#fire-calculator button:hover {
  background: #16a085;
}
#fire-calculator button:active {
  transform: scale(0.98);
}

#fire-results {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  text-align: center;
  margin-top: 20px;
}

#fire-results p {
  font-size: 1.1rem;
  font-weight: 500;
  color: #2c3e50;
}


/* RSG HOMEPAGE — SECTION FLOW SAFEGUARDS */

.rsg-section {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  float: none;
  clear: both;
  transform: none;
}

/* Prevent unexpected individual section ordering */
.rsg-section {
  order: 0;
}

/* Keep full-width content within the page */
.rsg-section .rsg-container {
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

/* Do not use absolute positioning for sections */
.rsg-hero,
#why-rsg,
#features,
#version3,
#methodology,
#pricing,
#philosophy,
#get-started {
  position: relative;
  inset: auto;
}