/* ===== COMMON STYLES ===== */
/* Extracted section-specific CSS */

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #0b0f19 0%, #1a1f2e 100%);
  min-height: 100vh;
  color: #fff;
  line-height: 1.6;
}

header {
  overflow: visible;
}


/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 40px;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(34, 197, 94, 0.1);
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 0;
  order: 0;
}

.logo picture {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  height: 130px;
  width: auto;
  margin: -45px 0;
  display: block;
  margin-left: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  order: 1;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(34, 197, 94, 0.15);
}

.nav-links a.active {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.2);
}

/* ===== COUNTRY SELECTOR ===== */
.country-selector {
  position: relative;
  margin-right: 16px;
  z-index: 5000;
  flex-shrink: 0;
}

.country-selector-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 10px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.country-selector-btn:hover {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.12);
}

.country-selector-btn[aria-expanded="true"] {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.country-selector-text {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.country-chevron {
  flex-shrink: 0;
  opacity: 0.75;
  transition: transform 0.25s ease;
}

.country-selector-btn[aria-expanded="true"] .country-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.country-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  max-width: min(260px, calc(100vw - 32px));
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 14px;
  padding: 0;
  z-index: 6000;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.country-dropdown.show {
  display: block;
  animation: countryDropdownIn 0.2s ease forwards;
}

@keyframes countryDropdownIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.country-dropdown-header {
  padding: 12px 16px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.country-dropdown-scroll {
  max-height: min(360px, 55vh);
  overflow-y: auto;
  padding: 8px;
}

.country-dropdown-scroll::-webkit-scrollbar {
  width: 8px;
}

.country-dropdown-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.country-dropdown-scroll::-webkit-scrollbar-thumb {
  background: rgba(34, 197, 94, 0.35);
  border-radius: 4px;
}

.country-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.country-option:last-child {
  margin-bottom: 0;
}

.country-option:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.2);
  color: #fff;
}

.country-option.active {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.country-option-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.country-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.country-option-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.country-option.active .country-option-meta {
  color: #86efac;
}

.country-option-sym {
  font-weight: 600;
  color: #cbd5e1;
}

.country-option-code {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.locale-selectors {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  margin-right: 0;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  z-index: 5000;
  order: 3;
}

.locale-selectors .country-selector {
  margin-right: 0;
}

.locale-selectors .country-selector-btn,
.locale-selectors .currency-selector-btn {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 8px 10px;
}

.locale-selectors .currency-selector-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 8px 8px 0;
}

.locale-selectors .country-selector-btn:hover,
.locale-selectors .currency-selector-btn:hover {
  background: rgba(34, 197, 94, 0.12);
}

.currency-selector {
  position: relative;
  flex-shrink: 0;
}

/* Custom currency button — mirrors region button */
.currency-selector-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 10px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.currency-selector-btn:hover {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.12);
}

.currency-selector-btn[aria-expanded="true"] {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.currency-selector-text {
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.02em;
}

.currency-sym {
  color: #4ade80;
  font-weight: 700;
}

.currency-chevron {
  flex-shrink: 0;
  opacity: 0.75;
  transition: transform 0.25s ease;
}

.currency-selector-btn[aria-expanded="true"] .currency-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Currency dropdown — same design as region */
.currency-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 220px;
  max-width: min(260px, calc(100vw - 32px));
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 14px;
  padding: 0;
  z-index: 6000;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.currency-dropdown.show {
  display: block;
  animation: countryDropdownIn 0.2s ease forwards;
}

.currency-dropdown-header {
  padding: 10px 14px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.currency-dropdown-scroll {
  max-height: min(300px, 50vh);
  overflow-y: auto;
  padding: 8px;
}

.currency-dropdown-scroll::-webkit-scrollbar {
  width: 6px;
}

.currency-dropdown-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.currency-dropdown-scroll::-webkit-scrollbar-thumb {
  background: rgba(34, 197, 94, 0.35);
  border-radius: 4px;
}

.currency-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 3px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.currency-option:last-child { margin-bottom: 0; }

.currency-option:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.2);
  color: #fff;
}

.currency-option.active {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.currency-option-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.currency-option-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.currency-option-sym {
  font-weight: 600;
  color: #cbd5e1;
  font-size: 0.8rem;
}

.currency-option.active .currency-option-meta { color: #86efac; }
.currency-option.active .currency-option-sym { color: #86efac; }

.currency-option-code {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

/* Compact locale controls when navbar uses the multi-row layout */
@media (max-width: 960px) {
  .locale-selectors {
    gap: 6px;
  }

  .country-selector {
    margin-right: 0;
  }

  .country-selector-btn,
  .currency-selector-btn {
    padding: 7px 10px;
    font-size: 0.78rem;
  }
}


/* ===== HERO SECTION ===== */
.hero {
  text-align: center;
  padding: 100px 20px 40px;
  background: radial-gradient(ellipse at top, rgba(34, 197, 94, 0.1) 0%, transparent 60%);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ===== HOMEPAGE HERO ===== */
.hero-home {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 56px 60px 40px;
  min-height: 64vh;
  align-items: start;
  background: radial-gradient(ellipse at top left, rgba(34, 197, 94, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.hero-home > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  color: #4ade80;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #fff;
}

.hero-title-main {
  color: inherit;
}

html[data-country="CA"] .hero-title-main,
body[data-country="CA"] .hero-title-main {
  background: linear-gradient(90deg, #d62828 0%, #fff 46%, #fff 54%, #d62828 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 28px rgba(214, 40, 40, 0.16);
}

html[data-country="IN"] .hero-title-main,
body[data-country="IN"] .hero-title-main {
  background: linear-gradient(90deg, #ff9933 0%, #ffffff 46%, #ffffff 54%, #138808 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 28px rgba(255, 153, 51, 0.16);
}

html[data-country="US"] .hero-title-main,
body[data-country="US"] .hero-title-main {
  background: linear-gradient(90deg, #b22234 0%, #ffffff 42%, #ffffff 52%, #3c3b6e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 28px rgba(60, 59, 110, 0.16);
}

.gradient-text {
  background: linear-gradient(135deg, #22c55e, #4ade80, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.2rem;
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: #22c55e;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid #22c55e;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(34, 197, 94, 0.1);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.hero-visual {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}

.floating-card .fc-icon {
  font-size: 1.5rem;
  width: 28px;
  height: 28px;
  color: #86efac;
}

.floating-card .fc-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  flex-shrink: 0;
}

.ui-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.title-with-icon,
.btn-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.floating-card .fc-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4ade80;
}

.floating-card .fc-label {
  font-size: 0.8rem;
  color: #9ca3af;
}

.fc-1 { top: 20px; left: 10%; animation-delay: 0s; }
.fc-2 { top: 34%; right: 5%; animation-delay: 2s; }
.fc-3 { bottom: 20px; left: 20%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.chart-animation {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: auto;
  opacity: 0.48;
  z-index: 1;
  pointer-events: none;
}

.growth-chart {
  width: 100%;
  height: 100%;
}

.chart-line {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawLine 3s ease-out forwards;
  stroke-linecap: round;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}


/* ===== STATS SECTION ===== */
.stats-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.66fr) minmax(0, 1.34fr);
  gap: 18px;
  align-items: stretch;
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px 40px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(59, 130, 246, 0.045));
  border-top: 1px solid rgba(34, 197, 94, 0.12);
  border-bottom: 1px solid rgba(59, 130, 246, 0.12);
}

.stats-rail {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  align-content: center;
}

.stats-intro {
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.stats-intro > span {
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.stats-intro h2 {
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.25;
  max-width: 360px;
}

.stats-intro p {
  color: #9ca3af;
  font-size: 0.76rem;
  line-height: 1.42;
  margin-top: 8px;
  max-width: 340px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.stat-item {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 2px;
}

.stat-number {
  font-size: 1.45rem;
  font-weight: 800;
  color: #22c55e;
  line-height: 1;
}

.stat-suffix {
  font-size: 0.9rem;
  font-weight: 700;
  color: #22c55e;
}

.stat-label {
  display: block;
  color: #d1d5db;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-item p {
  display: none;
}

.stats-engagement {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(190px, 0.72fr);
  gap: 14px;
  align-items: stretch;
}


/* ===== START PATH ===== */
.start-path {
  max-width: 1500px;
  margin: 28px auto 0;
  padding: 36px 60px;
}

.start-path-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
}

.start-path-header span {
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.start-path-header h2 {
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.25;
}

.start-path-header p {
  color: #9ca3af;
  line-height: 1.6;
  margin: 0;
  max-width: 1120px;
}

.start-path-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.start-path-card {
  display: flex;
  flex-direction: column;
  min-height: 205px;
  padding: 18px;
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.075);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.start-path-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.34);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.13), rgba(59, 130, 246, 0.06));
}

.start-path-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #04130a;
  background: #22c55e;
  font-weight: 900;
  margin-bottom: 14px;
}

.start-path-card h3 {
  color: #fff;
  font-size: 1rem;
  line-height: 1.25;
  margin: 0 0 9px;
}

.start-path-card p {
  color: #9ca3af;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

.start-path-guide {
  display: inline-flex;
  margin-top: 16px;
  color: #86efac;
  font-weight: 800;
  text-decoration: none;
}

.start-path-guide:hover {
  text-decoration: underline;
}


/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: #9ca3af;
  max-width: 600px;
  margin: 0 auto;
}


/* ===== WHY INVEST SECTION ===== */
.why-invest {
  position: relative;
  isolation: isolate;
  padding: 58px 60px 46px;
}

.why-invest::before {
  content: "";
  position: absolute;
  inset: 16px 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008));
  border: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 0;
}

.why-invest > * {
  position: relative;
  z-index: 1;
}

.why-invest .section-header {
  margin-bottom: 24px;
}

.why-invest .section-header h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.why-invest .section-header p {
  font-size: 0.94rem;
}

.invest-eyebrow,
.invest-card-label {
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invest-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1500px;
  margin: 0 auto;
}

.invest-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.09), rgba(59, 130, 246, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 18px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.invest-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.invest-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.invest-icon svg {
  width: 19px;
  height: 19px;
  color: #4ade80;
}

.invest-card h3 {
  font-size: 1.08rem;
  color: #fff;
  margin-bottom: 0;
  line-height: 1.3;
}

.invest-card p {
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.42;
  margin-top: auto;
}

.invest-comparison {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.invest-comparison div {
  display: grid;
  grid-template-columns: 54px minmax(72px, 0.35fr) 1fr;
  gap: 10px;
  align-items: center;
}

.invest-comparison span,
.invest-value-split span,
.invest-growth-steps span {
  color: #9ca3af;
  font-size: 0.72rem;
}

.invest-comparison strong,
.invest-value-split strong {
  color: #fff;
  font-size: 0.82rem;
  white-space: nowrap;
}

.invest-comparison i {
  display: block;
  height: 9px;
  width: var(--width);
  min-width: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #60a5fa);
}

.invest-value-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.invest-value-split div {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.invest-value-split span,
.invest-value-split strong {
  display: block;
}

.invest-value-split span {
  margin-bottom: 5px;
}

.invest-growth-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.invest-growth-steps span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  border-top: 2px solid rgba(34, 197, 94, 0.32);
}

.invest-growth-steps strong {
  color: #fff;
  font-size: 0.8rem;
  margin-top: 3px;
}


/* ===== COMPOUND & QUIZ WRAPPER SECTION ===== */
.compound-quiz-wrapper {
  position: relative;
  isolation: isolate;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  max-width: 1500px;
  margin: 0 auto;
  align-items: stretch;
}

.compound-quiz-wrapper[data-pay-supported="false"] {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
  max-width: 980px;
}

.compound-quiz-wrapper::before {
  content: none;
}

.compound-quiz-wrapper > * {
  position: relative;
  z-index: 1;
}

.quiz-side-column {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  align-content: stretch;
  align-self: stretch;
  height: 100%;
}

/* Compound Card */
.compound-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(59, 130, 246, 0.06));
  border: 1.5px solid rgba(34, 197, 94, 0.3);
  border-radius: 24px;
  padding: 30px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.compound-card:hover,
.take-home-card:hover {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 20px 60px rgba(34, 197, 94, 0.1);
  transform: translateY(-3px);
}

.take-home-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(34, 197, 94, 0.06));
  border: 1.5px solid rgba(59, 130, 246, 0.28);
  border-radius: 24px;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compound-quiz-wrapper[data-pay-supported="false"] .take-home-card {
  display: none;
}

.take-home-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.take-home-kicker {
  width: fit-content;
  color: #93c5fd;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.take-home-header h2 {
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.2;
}

.take-home-header p {
  color: #9ca3af;
  font-size: 0.78rem;
  line-height: 1.4;
}

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

.take-home-card[data-pay-country="US"] .take-home-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.take-home-options {
  display: contents;
}

.take-home-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.take-home-field[hidden] {
  display: none;
}

.take-home-field > span {
  color: #d1d5db;
  font-size: 0.72rem;
  font-weight: 700;
}

.take-home-money-input,
.take-home-field select {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(2, 6, 23, 0.42);
  color: #fff;
}

.take-home-money-input {
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.take-home-money-input span {
  color: #93c5fd;
  font-weight: 800;
  margin-right: 8px;
}

.take-home-money-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  min-width: 0;
}

.take-home-field select {
  width: 100%;
  padding: 0 10px;
  outline: 0;
  font-size: 0.82rem;
}

.take-home-results {
  flex: 1;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
}

.take-home-main-result {
  padding: 9px 12px;
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.1);
  text-align: center;
}

.take-home-main-result span,
.take-home-paychecks span,
.take-home-breakdown dt {
  display: block;
  color: #9ca3af;
  font-size: 0.72rem;
  line-height: 1.3;
}

.take-home-main-result strong {
  display: block;
  color: #bfdbfe;
  font-size: 1.62rem;
  line-height: 1.15;
  margin-top: 3px;
}

.take-home-paychecks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.take-home-paychecks div {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.take-home-paychecks strong,
.take-home-breakdown dd {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.take-home-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.take-home-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #22c55e);
  transition: width 0.25s ease;
}

.take-home-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.take-home-split div {
  position: relative;
  overflow: hidden;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(147, 197, 253, 0.13);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.11), rgba(34, 197, 94, 0.06));
}

.take-home-split div:nth-child(2) {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.1), rgba(250, 204, 21, 0.05));
}

.take-home-split span {
  display: block;
  color: #9ca3af;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.take-home-split strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.15;
  margin-top: 4px;
}

.take-home-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 2px;
}

.take-home-breakdown div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.take-home-breakdown dt,
.take-home-breakdown dd {
  margin: 0;
}

.take-home-breakdown dd {
  text-align: right;
  font-size: 0.78rem;
}

.take-home-note {
  color: #6b7280;
  font-size: 0.6rem;
  line-height: 1.3;
  margin: 0;
}

.take-home-tool-link {
  align-self: flex-start;
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(147, 197, 253, 0.45);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.take-home-tool-link:hover {
  color: #bfdbfe;
  border-color: rgba(191, 219, 254, 0.8);
}

.compound-content {
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.compound-content h2 {
  font-size: 1.38rem;
  color: #fff;
  margin-bottom: 6px;
}

.compound-content > p {
  color: #9ca3af;
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.compound-controls {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.8fr;
  gap: 8px;
  margin-bottom: 12px;
}

.compound-controls label {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.compound-controls label:first-child {
  grid-column: auto;
}

.compound-controls span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #d1d5db;
  font-size: 0.64rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.compound-controls strong {
  color: #4ade80;
}

.compound-controls input[type="number"] {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.42);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 8px 9px;
}

.compound-controls input[type="range"] {
  width: 100%;
  accent-color: #22c55e;
}

.compound-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  flex: 1;
}

.timeline-item {
  display: grid;
  grid-template-columns: 58px 1fr 126px;
  gap: 8px;
  align-items: center;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}

.timeline-item.animate {
  opacity: 1;
  transform: translateX(0);
}

.timeline-year {
  font-size: 0.74rem;
  font-weight: 600;
  color: #9ca3af;
}

.timeline-bar {
  height: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 6px;
  transition: width 1s ease;
}

.timeline-item.animate .bar-fill {
  width: var(--width);
}

.timeline-amounts {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 0.7rem;
  gap: 2px;
}

.timeline-amounts .invested {
  color: #6b7280;
}

.timeline-amounts .value {
  font-weight: 700;
  color: #4ade80;
}

.compound-cta {
  padding: 12px 14px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  text-align: center;
  margin-top: auto;
}

.compound-cta p {
  font-size: 0.78rem;
  color: #fff;
  margin-bottom: 10px;
}

/* Fact or Fiction Card Wrapper */
.fof-card-wrapper {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(6, 78, 59, 0.52)),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.2), transparent 42%);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 20px;
  padding: 18px 20px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.fof-card-wrapper,
.mini-insight-card {
  min-height: 0;
}

.mini-insight-card {
  align-self: stretch;
}

.fof-card-wrapper:hover {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 20px 60px rgba(34, 197, 94, 0.1);
  transform: translateY(-3px);
}

.fof-header {
  text-align: center;
  margin-bottom: 10px;
}

.fof-header h2 {
  font-size: 1.12rem;
  color: #fff;
  margin-bottom: 3px;
}

.fof-tagline {
  font-size: 0.74rem;
  color: #9ca3af;
  margin-bottom: 2px;
}

.fof-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.fof-reset {
  font-size: 0.66rem;
  color: #4ade80;
  font-weight: 500;
}

.fof-region {
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 500;
}

.fof-card {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.fof-question {
  text-align: center;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fof-question p {
  font-size: 0.84rem;
  color: #fff;
  line-height: 1.34;
  font-weight: 500;
}

.fof-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  justify-content: center;
}

.fof-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.78rem;
  color: #fff;
  font-weight: 600;
  flex: 1;
  min-width: 74px;
}

.fof-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.fof-btn.fof-fact:hover {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.1);
}

.fof-btn.fof-fiction:hover {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.1);
}

.fof-btn.active {
  transform: scale(1.05);
  transition: all 0.2s ease;
}

.fof-btn.active.correct {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.2);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
}

.fof-btn.active.incorrect {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.2);
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.3);
}

.fof-icon {
  font-size: 1rem;
}

.fof-label {
  font-size: 0.76rem;
}

.fof-feedback {
  padding: 12px 14px;
  border-radius: 10px;
  text-align: center;
  margin-top: 4px;
  animation: slideIn 0.3s ease;
}

.fof-feedback.is-hidden {
  display: none;
}

.fof-hint {
  min-height: 48px;
  max-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  padding: 8px 10px;
  text-align: center;
}

.fof-hint-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.fof-hint p {
  font-size: 0.68rem;
  color: #6b7280;
  line-height: 1.35;
  margin: 0;
}



@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fof-feedback.correct {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.fof-feedback.incorrect {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.fof-result {
  display: none;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 7px;
  min-height: 1.1em;
}

.fof-feedback.correct .fof-result {
  color: #34d399;
}

.fof-feedback.incorrect .fof-result {
  color: #f87171;
}

.fof-explanation {
  font-size: 0.74rem;
  color: #9ca3af;
  line-height: 1.42;
  margin: 0;
}

.mini-insight-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(6, 78, 59, 0.52)),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.2), transparent 42%);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}

.mini-insight-card::before {
  content: "";
  position: absolute;
  inset: auto -15% -42% 12%;
  height: 160px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  transform: rotate(-5deg);
}

.mini-insight-card > * {
  position: relative;
  z-index: 1;
}

.mini-insight-card:hover {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 20px 60px rgba(34, 197, 94, 0.08);
  transform: translateY(-3px);
}

.mini-insight-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4ade80;
}

.mini-insight-title {
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
}

.mini-insight-body {
  font-size: 0.76rem;
  color: #9ca3af;
  line-height: 1.45;
  margin: 0;
}

.mini-insight-action {
  margin-top: 2px;
  padding: 8px 11px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(74, 222, 128, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.mini-insight-action span {
  display: block;
  color: #4ade80;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.mini-insight-action p {
  color: #fff;
  font-size: clamp(0.7rem, 0.72vw, 0.78rem);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-insight-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 0;
}

.mini-insight-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-insight-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.mini-insight-dots span.active {
  width: 18px;
  background: #4ade80;
}

.mini-insight-next {
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.1);
  color: #bbf7d0;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 7px 10px;
  transition: all 0.2s ease;
}

.mini-insight-next:hover {
  background: rgba(74, 222, 128, 0.18);
  border-color: rgba(74, 222, 128, 0.5);
}

.mini-insight-link {
  margin-top: 0;
  display: inline-flex;
  align-self: flex-start;
  color: #4ade80;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
}

.mini-insight-link:hover {
  color: #86efac;
}

.mini-insight-link:hover {
  color: #86efac;
}



/* ===== RULES SECTION ===== */
.rules-section {
  position: relative;
  isolation: isolate;
  padding: 46px 60px 58px;
}

.rules-section::before {
  content: "";
  position: absolute;
  inset: 14px 28px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.055), rgba(59, 130, 246, 0.035)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.008));
  border: 1px solid rgba(255, 255, 255, 0.045);
  z-index: 0;
}

.rules-section > * {
  position: relative;
  z-index: 1;
}

.rules-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  max-width: 1500px;
  margin: 0 auto 18px;
}

.rules-header > div {
  max-width: 980px;
}

.rules-header span,
.rule-chip {
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rules-header h2 {
  color: #fff;
  font-size: 1.85rem;
  line-height: 1.12;
  margin: 6px 0 7px;
}

.rules-header p {
  color: #9ca3af;
  font-size: 0.88rem;
  line-height: 1.42;
  white-space: nowrap;
}

.rules-header .btn {
  flex-shrink: 0;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1500px;
  margin: 0 auto;
}

.rule-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 16px;
  transition: all 0.3s ease;
}

.rule-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 34%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.rule-card:hover {
  border-color: rgba(34, 197, 94, 0.34);
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.22);
}

.rule-card:hover::before {
  opacity: 1;
}

.rule-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.rule-number {
  font-size: 1.55rem;
  font-weight: 800;
  color: rgba(34, 197, 94, 0.42);
  line-height: 1;
}

.rule-chip {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
  font-size: 0.58rem;
}

.rule-card h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 7px;
}

.rule-card p {
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.38;
  margin-bottom: 10px;
}

.rule-card strong {
  margin-top: auto;
  color: #d1fae5;
  font-size: 0.72rem;
  line-height: 1.28;
  font-weight: 800;
}


/* ===== FEATURED TOOLS SECTION ===== */
.featured-tools {
  position: relative;
  isolation: isolate;
  padding: 68px 52px;
  background: transparent;
}

.featured-tools::before {
  content: "";
  position: absolute;
  inset: 20px 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.014));
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 0;
}

.featured-tools > * {
  position: relative;
  z-index: 1;
}

.featured-tools-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  max-width: 1500px;
  margin: 0 auto 20px;
}

.featured-tools-header > div {
  max-width: 680px;
}

.featured-tools-header span,
.featured-tag {
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-tools-header h2 {
  color: #fff;
  font-size: 2.05rem;
  line-height: 1.15;
  margin: 6px 0 7px;
}

.featured-tools-header p {
  color: #9ca3af;
  font-size: 0.94rem;
  line-height: 1.45;
}

.featured-tools-header .btn {
  flex-shrink: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1500px;
  margin: 0 auto;
}

.featured-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.09), rgba(59, 130, 246, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px 22px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  min-height: 205px;
  overflow: hidden;
}

.featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 34%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.featured-card:hover {
  transform: translateY(-5px);
  border-color: #22c55e;
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.15);
}

.featured-card:hover::before {
  opacity: 1;
}

.featured-tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  color: #86efac;
}

.featured-card h3 {
  font-size: 1.18rem;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.25;
}

.featured-card p {
  font-size: 0.82rem;
  color: #9ca3af;
  flex-grow: 1;
  line-height: 1.42;
  max-width: 92%;
}

.featured-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.featured-card-meta span {
  color: #d1d5db;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.featured-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.28rem;
  color: #22c55e;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.featured-card:hover .featured-arrow {
  opacity: 1;
  transform: translateX(0);
}

.all-tools-cta {
  text-align: center;
}


/* ===== CANADA KEY RATES SECTION ===== */
.canada-rates-section {
  position: relative;
  isolation: isolate;
  padding: 90px 60px;
  background: transparent;
}

.canada-rates-section[hidden] {
  display: none;
}

.canada-rates-section::before {
  content: "";
  position: absolute;
  inset: 24px 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008));
  border: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 0;
}

.canada-rates-section > * {
  position: relative;
  z-index: 1;
}

.canada-rates-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  max-width: 1500px;
  margin: 0 auto 24px;
}

.canada-rates-header > div:first-child {
  max-width: 720px;
}

.canada-rates-header span,
.canada-rate-card > span {
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.canada-rates-header h2 {
  color: #fff;
  font-size: 2.25rem;
  line-height: 1.15;
  margin: 8px 0 10px;
}

.canada-rates-header p {
  color: #9ca3af;
  font-size: 0.98rem;
  line-height: 1.55;
}

.canada-rates-status {
  min-width: 0;
  width: fit-content;
  padding: 11px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: right;
}

.canada-rates-status span {
  display: block;
  color: #9ca3af;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.76rem;
}

.canada-rates-status strong {
  display: block;
  color: #fff;
  font-size: 0.82rem;
  margin-top: 4px;
}

.canada-rates-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.canada-rate-card {
  min-width: 0;
  padding: 20px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.09), rgba(59, 130, 246, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.canada-rate-card strong {
  display: block;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  margin: 12px 0 10px;
}

.canada-rate-card p {
  color: #9ca3af;
  font-size: 0.74rem;
  line-height: 1.45;
}

.canada-rates-footer {
  max-width: 1500px;
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.canada-rates-footer > span {
  color: #6b7280;
  font-size: 0.72rem;
  line-height: 1.4;
}


/* ===== HOMEPAGE MOBILE RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-home {
    grid-template-columns: 1fr;
    padding: 60px 30px;
    text-align: center;
  }
  
  .hero-visual {
    display: none;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .invest-cards,
  .rules-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .stats-section {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-intro {
    text-align: center;
    align-items: center;
  }

  .stats-engagement {
    grid-template-columns: 1fr;
  }

  .start-path-header,
  .start-path-grid {
    grid-template-columns: 1fr;
  }

  .featured-tools-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .rules-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .canada-rates-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .canada-rates-status {
    width: 100%;
    text-align: left;
  }

  .canada-rates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .stats-section {
    padding: 32px 20px;
    gap: 18px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .start-path {
    padding: 32px 20px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .why-invest,
  .compound-quiz-wrapper,
  .rules-section,
  .featured-tools,
  .canada-rates-section {
    padding: 60px 20px;
  }

  .featured-tools-header h2 {
    font-size: 1.8rem;
  }

  .rules-header h2 {
    font-size: 1.8rem;
  }

  .canada-rates-header h2 {
    font-size: 1.8rem;
  }

  .canada-rates-grid {
    grid-template-columns: 1fr;
  }

  .canada-rates-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-card {
    min-height: 0;
  }

  .why-invest::before,
  .compound-quiz-wrapper::before,
  .rules-section::before,
  .featured-tools::before,
  .canada-rates-section::before {
    inset: 12px;
    border-radius: 24px;
  }

  .invest-comparison div {
    grid-template-columns: 52px 86px 1fr;
  }

  .invest-value-split,
  .invest-growth-steps {
    grid-template-columns: 1fr;
  }

  .section-header h2,
  .compound-content h2 {
    font-size: 1.8rem;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }
  
  .timeline-amounts {
    text-align: center;
  }

  .daily-practice-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
    gap: 30px;
  }

  .practice-features {
    grid-template-columns: 1fr;
  }

  .practice-cta {
    flex-direction: column;
  }

  .practice-cta .btn {
    width: 100%;
    text-align: center;
  }

  .fof-buttons {
    flex-direction: row;
  }

  .fof-btn {
    width: 100%;
  }

  .fof-question p {
    font-size: 0.92rem;
  }

  .fof-card {
    padding: 0;
  }

  .compound-quiz-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 60px 20px;
  }

  .quiz-side-column {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .compound-card,
  .take-home-card,
  .fof-card-wrapper,
  .mini-insight-card {
    padding: 24px 18px;
  }

  .take-home-options,
  .take-home-paychecks,
  .take-home-breakdown {
    grid-template-columns: 1fr;
  }

  .take-home-form {
    grid-template-columns: 1fr;
  }

  .compound-controls,
  .take-home-card[data-pay-country="US"] .take-home-form {
    grid-template-columns: 1fr;
  }

  .take-home-main-result strong {
    font-size: 1.7rem;
  }

  .timeline-item {
    grid-template-columns: 60px 1fr 120px;
    gap: 12px;
  }

  .compound-content h2 {
    font-size: 1.4rem;
  }

  .fof-header h2 {
    font-size: 1.4rem;
  }

  .mini-insight-header h3 {
    font-size: 1rem;
  }
}

.hero p {
  font-size: 1.25rem;
  color: #9ca3af;
  max-width: 700px;
  margin: 0 auto 40px;
}

main:has(> .tools-hub) > .hero {
  position: relative;
  isolation: isolate;
  max-width: 1500px;
  margin: 0 auto;
  padding: 38px 44px 20px;
  text-align: left;
}

main:has(> .tools-hub) > .hero::before {
  content: "";
  position: absolute;
  inset: 10px 18px 0;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.045);
  z-index: -1;
}

main:has(> .tools-hub) .tools-hero-kicker {
  display: inline-flex;
  color: #4ade80;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

main:has(> .tools-hub) > .hero h1 {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: clamp(2.15rem, 4.4vw, 2.75rem);
  line-height: 1.02;
}

main:has(> .tools-hub) > .hero p {
  max-width: 720px;
  margin: 0;
  line-height: 1.45;
}

.tools-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 920px;
  margin-top: 14px;
}

.tools-hero-stats div {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.tools-hero-stats strong,
.tools-hero-stats span {
  display: block;
}

.tools-hero-stats strong {
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.2;
}

.tools-hero-stats span {
  color: #9ca3af;
  font-size: 0.66rem;
  margin-top: 3px;
}


/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  padding: 14px 28px;
  color: #000;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(34, 197, 94, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.btn.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 25px rgba(15, 23, 42, 0.22);
}

.btn.btn-outline {
  background: transparent;
  color: #22c55e;
  border: 2px solid #22c55e;
  box-shadow: none;
}

.btn.btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 6px 25px rgba(34, 197, 94, 0.18);
}


/* ===== CONTAINER & GRID ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ----- Tools hub: sidebar + categories ----- */
.tools-hub {
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 60px 90px;
}

.tools-hub .tools-layout {
  align-items: stretch;
}

.tools-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.tools-hub .tools-sidebar {
  position: sticky;
  top: var(--tools-sticky-offset, 96px);
  width: 220px;
  align-self: flex-start;
  flex-shrink: 0;
  padding: 18px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  box-sizing: border-box;
}

.tools-sidebar {
  position: sticky;
  top: 96px;
  width: 200px;
  flex-shrink: 0;
  padding: 16px 0;
}

.tools-sidebar-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4ade80;
  margin: 0 0 12px;
  font-weight: 800;
}

.tools-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tools-sidebar-link {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tools-sidebar-link:hover {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.04);
}

.tools-sidebar-link.active {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
}

.tools-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tools-hub .tools-category {
  scroll-margin-top: calc(var(--tools-sticky-offset, 96px) + 12px);
  margin-bottom: 0;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.055), rgba(59, 130, 246, 0.032));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tools-hub .tools-category:last-child {
  margin-bottom: 0;
}

.tools-category-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.tools-category-desc {
  color: #9ca3af;
  font-size: 0.95rem;
  margin: 0 0 20px;
  line-height: 1.5;
  max-width: 760px;
}

.tools-hub-intro {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0 0 22px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.07), rgba(59, 130, 246, 0.035));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.tools-hub-eyebrow {
  display: block;
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.tools-hub-intro-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8;
}

.tools-hub-intro-text strong {
  color: #cbd5e1;
  font-weight: 600;
}

.tools-hub-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.tools-hub-chips span,
.tools-card-meta span {
  color: #d1d5db;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

/* Backup hide for region-only hub items when the selected hub region does not match. */
/* Cards may list multiple regions (e.g. data-tools-region="US CA"); show when the hub region is any of them. */
.tools-hub [data-tools-region][hidden],
.tools-hub[data-hub-region="world"] [data-tools-region],
.tools-hub[data-hub-region="IN"] [data-tools-region]:not([data-tools-region~="IN"]),
.tools-hub[data-hub-region="US"] [data-tools-region]:not([data-tools-region~="US"]),
.tools-hub[data-hub-region="CA"] [data-tools-region]:not([data-tools-region~="CA"]) {
  display: none !important;
}

@media (max-width: 900px) {
  /* Full-bleed sidebar uses 100vw; avoid a horizontal scrollbar on the tools page */
  html:has(.tools-hub) {
    overflow-x: hidden;
  }

  .tools-hub {
    padding-top: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Tools page only: pull hub closer to hero (beat generic .hero mobile padding) */
  main:has(> .tools-hub) > .hero {
    margin-bottom: 0;
    padding-bottom: 16px;
  }

  .tools-hub-intro {
    margin-top: 0;
    margin-bottom: 12px;
    padding: 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .tools-hub-chips {
    justify-content: flex-start;
  }

  /*
   * Mobile: use block flow inside the hub body — NOT flex column.
   * A column flex pair (sidebar | main) can still size the first child to the
   * second’s height in some engines, making .tools-sidebar look ~half the page.
   */
  .tools-hub .tools-layout {
    display: block;
    width: 100%;
  }

  .tools-hub .tools-main {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
  }

  .tools-hub .tools-sidebar {
    border-right: none;
    padding-right: 0;
    position: sticky;
    top: var(--tools-sticky-offset, 80px);
    z-index: 35;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 5px max(14px, env(safe-area-inset-left)) 6px max(14px, env(safe-area-inset-right));
    margin-bottom: 0;
    min-height: 0;
    height: fit-content;
    max-height: fit-content;
    background: #0b0f19;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }

  .tools-sidebar-heading {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 4px 0 0;
    text-align: left;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    line-height: 1;
    white-space: nowrap;
    max-width: none;
    width: auto;
  }

  .tools-sidebar-nav {
    flex: 1;
    min-width: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tools-sidebar-nav::-webkit-scrollbar {
    display: none;
    height: 0;
  }

  .tools-sidebar-link {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .tools-hub .tools-category {
    scroll-margin-top: calc(var(--tools-sticky-offset, 80px) + var(--tools-category-sticky-h, 44px));
    padding: 20px 16px;
  }

  .tools-hub .grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-hub .grid .card {
    min-height: 255px;
  }
}

@media (max-width: 768px) {
  main:has(> .tools-hub) > .hero {
    padding: 18px 12px 14px;
  }

  main:has(> .tools-hub) > .hero::before {
    inset: 12px 12px 0;
    border-radius: 24px;
  }

  .tools-hero-stats {
    grid-template-columns: 1fr;
  }

  main:has(> .tools-hub) > .hero {
    padding-bottom: 12px;
  }

  .tools-hub .tools-category {
    scroll-margin-top: calc(var(--tools-sticky-offset, 80px) + var(--tools-category-sticky-h, 46px));
  }

  .tools-hub .grid {
    gap: 14px;
  }

  .tools-hub .grid.grid-3 {
    grid-template-columns: 1fr !important;
  }

  .tools-hub .grid .card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .tools-hub .grid {
    gap: 12px;
  }

  .tools-hub .grid .card {
    padding: 20px 18px;
  }
}

/* Uses parent .container (1100px) — same readable width as tools / calculator pages */
.legal-doc {
  max-width: none;
}

.legal-doc h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.legal-doc p,
.legal-doc ul {
  line-height: 1.65;
  color: var(--text-muted, rgba(255, 255, 255, 0.75));
}

.legal-doc ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.legal-doc li + li {
  margin-top: 0.35rem;
}

.legal-doc p + p {
  margin-top: 0.75rem;
}

.legal-doc a {
  color: #86efac;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc a:hover {
  color: #bbf7d0;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Equal-height cards; push “Open Tool” (or any .btn) to the bottom */
.grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.grid .card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.tools-hub .grid {
  gap: 18px;
}

.tools-hub .grid.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tools-hub .grid .card {
  min-height: 255px;
}


/* ===== CARDS ===== */
.card {
  background: linear-gradient(145deg, rgba(30, 35, 50, 0.9), rgba(20, 25, 35, 0.9));
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(34, 197, 94, 0.1);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #fff;
}

.card p {
  color: #9ca3af;
  margin-bottom: 24px;
  font-size: 1rem;
}

.card .btn {
  padding: 12px 24px;
  font-size: 0.95rem;
}

.tools-hub .card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  padding: 26px 24px;
}

.tools-hub .card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 197, 94, 0.32);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28), 0 0 34px rgba(34, 197, 94, 0.08);
}

.tools-card-tag {
  color: #86efac;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.tools-hub .card h3 {
  font-size: 1.22rem;
  line-height: 1.25;
}

.tools-hub .card p {
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 18px;
}

.tools-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 18px;
}

@media (min-width: 769px) {
  .tools-hub .grid .card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    column-gap: 8px;
  }

  .tools-hub .card > .tools-card-tag,
  .tools-hub .card > h3,
  .tools-hub .card > p {
    grid-column: 1 / -1;
  }

  .tools-hub .card > p {
    min-height: 82px;
  }

  .tools-hub .card > .btn {
    grid-column: 1;
    grid-row: 4;
    align-self: center;
    justify-self: start;
    margin-top: 0;
    min-height: 34px;
    padding: 8px 10px;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .tools-hub .card > .tools-card-meta {
    grid-column: 2;
    grid-row: 4;
    align-self: center;
    justify-self: end;
    justify-content: flex-end;
    flex-wrap: nowrap !important;
    margin: 0;
    min-width: 0;
    gap: 5px;
    max-width: 100%;
  }

  .tools-hub .card > .tools-card-meta span {
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    padding: 6px 6px;
    font-size: 0.58rem;
    line-height: 1;
    white-space: nowrap;
  }
}

.tools-hub .card .btn {
  box-shadow: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.about-page .hero {
  position: relative;
  isolation: isolate;
  max-width: 1500px;
  margin: 0 auto;
  padding: 38px 44px 20px;
  text-align: left;
}

.about-page .hero::before {
  content: "";
  position: absolute;
  inset: 10px 18px 0;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.045);
  z-index: -1;
}

.about-hero-kicker {
  display: inline-flex;
  color: #4ade80;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.about-page .hero h1 {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: clamp(2.15rem, 4.4vw, 2.75rem);
  line-height: 1.02;
}

.about-page .hero p {
  max-width: 760px;
  margin: 0;
  line-height: 1.45;
}

.about-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 980px;
  margin-top: 14px;
}

.about-hero-stats div,
.about-principles div {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.about-hero-stats strong,
.about-hero-stats span,
.about-principles strong,
.about-principles span {
  display: block;
}

.about-hero-stats strong,
.about-principles strong {
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.about-hero-stats span,
.about-principles span {
  color: #9ca3af;
  font-size: 0.66rem;
  margin-top: 3px;
}

.about-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 60px 90px;
}

.about-mission-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.07), rgba(59, 130, 246, 0.035));
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.about-mission-band span,
.about-value-tag {
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-mission-band h2 {
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.about-mission-band p {
  color: #9ca3af;
  line-height: 1.6;
  margin: 0;
  overflow-wrap: anywhere;
}

.about-mission-band a {
  color: #86efac;
  font-weight: 700;
  text-decoration: none;
}

.about-mission-band a:hover {
  text-decoration: underline;
}

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

.about-value-card {
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 26px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.075);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-value-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 197, 94, 0.32);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28), 0 0 34px rgba(34, 197, 94, 0.08);
}

.about-value-card h3 {
  color: #fff;
  font-size: 1.22rem;
  line-height: 1.25;
  margin: 14px 0 12px;
}

.about-value-card p {
  color: #9ca3af;
  font-size: 0.9rem;
  line-height: 1.58;
  margin: 0;
}

.about-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.about-card-meta span {
  color: #d1d5db;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.about-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.trust-wrap {
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 60px 90px;
}

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

.trust-card {
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.trust-card span {
  display: inline-flex;
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.trust-card h2 {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 12px;
}

.trust-card p {
  color: #9ca3af;
  line-height: 1.65;
  margin: 0 0 12px;
}

.trust-card p:last-child {
  margin-bottom: 0;
}


/* ===== FOOTER ===== */
footer {
  text-align: left;
  padding: 40px 20px;
  color: #6b7280;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

footer a {
  color: #cbd5e1;
  text-decoration: none;
}

footer a:hover {
  color: #86efac;
}

footer.site-footer {
  position: relative;
  isolation: isolate;
  padding: 34px 24px 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 197, 94, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.34), rgba(3, 7, 18, 0.72));
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.7fr);
  gap: 34px;
  width: min(1500px, 100%);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.footer-logo img {
  width: 38px;
  height: 38px;
  padding: 6px;
  display: block;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  max-width: 34rem;
  margin: 0;
  color: #a7b0bf;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.footer-trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  font-size: 0.68rem;
  font-weight: 800;
}

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

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-column strong {
  margin-bottom: 3px;
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  color: #a7b0bf;
  font-size: 0.84rem;
  line-height: 1.25;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column a:hover {
  color: #86efac;
  transform: translateX(2px);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-legal a {
  color: #86efac;
}

.footer-sep {
  color: #6b7280;
  user-select: none;
}

.site-footer-meta {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #9ca3af;
}

.footer-bottom {
  width: min(1500px, 100%);
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #8b95a5;
  font-size: 0.74rem;
  line-height: 1.45;
}


/* ===== SOCIAL ICONS ===== */
.social-icons {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid rgba(148, 163, 184, 0.25);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #9ca3af;
  border-radius: 8px;
  transition: color 0.3s ease, background 0.3s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.social-icons a:hover {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
}

.social-icons svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

header .social-icons {
  display: none;
}

.footer-social {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #bbf7d0;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  color: #fff;
  background: rgba(34, 197, 94, 0.22);
  border-color: rgba(34, 197, 94, 0.5);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .navbar .social-icons {
    display: none;
  }
}


/* ===== INPUT STYLING ===== */
.inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-group label {
  font-size: 0.9rem;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.input-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.4);
  transition: transform 0.2s ease;
}

.input-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.input-group input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.4);
}

.input-group select {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.input-group select:hover,
.input-group select:focus {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.input-group input[type="number"],
.input-group input[data-currency-textbox="1"],
main:has(#principal) .input-group input[type="number"],
main:has(#principal) .input-group input[data-currency-textbox="1"] {
  width: 100%;
  border: 1px solid rgba(34, 197, 94, 0.16);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font: inherit;
  padding: 11px 12px;
}

.input-group input[type="number"]:focus,
.input-group input[data-currency-textbox="1"]:focus,
main:has(#principal) .input-group input[type="number"]:focus,
main:has(#principal) .input-group input[data-currency-textbox="1"]:focus {
  outline: none;
  border-color: rgba(34, 197, 94, 0.78);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.16);
}

.value-display {
  display: none;
}


/* ===== CHART BOX ===== */
.chart-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chart-box canvas {
  max-height: 350px;
}


/* ===== SUMMARY ===== */
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary > div {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary > div:first-child {
  color: #9ca3af;
}

.summary > div:nth-child(2) {
  color: #22c55e;
}

.summary > div:nth-child(3) {
  color: #4ade80;
}

.summary strong {
  display: block;
  font-size: 1.4rem;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .summary {
    grid-template-columns: 1fr;
  }
}


/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(2) {
  animation-delay: 0.1s;
}

.card:nth-child(3) {
  animation-delay: 0.2s;
}


/* ===== LOADING STATE ===== */
#loading {
  text-align: center;
  color: #9ca3af;
  padding: 20px;
  display: none;
}


/* ===== HEADLINE ===== */
#headline {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #22c55e;
}


/* ===== MOBILE FOOTER + FACT/FICTION COMPACT ===== */
@media (max-width: 768px) {
  footer.site-footer {
    padding: 22px 14px 18px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
    gap: 11px;
  }

  .footer-logo img {
    width: 34px;
    height: 34px;
  }

  .footer-brand p {
    max-width: 30rem;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .footer-trust-strip {
    justify-content: center;
    gap: 5px;
  }

  .footer-trust-strip span {
    min-height: 24px;
    padding: 5px 7px;
    font-size: 0.58rem;
  }

  .footer-columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 7px;
    width: 100%;
  }

  .footer-column {
    align-items: center;
    gap: 6px;
    text-align: center;
    min-width: 0;
  }

  .footer-column strong {
    font-size: 0.62rem;
  }

  .footer-column a {
    font-size: 0.62rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .footer-bottom {
    margin-top: 18px;
    padding-top: 12px;
  }

  .footer-bottom p {
    max-width: 28rem;
    margin: 0 auto;
    font-size: 0.64rem;
    line-height: 1.38;
  }

  .footer-legal {
    gap: 5px 8px;
    margin-bottom: 10px;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .footer-social {
    justify-content: center;
    gap: 6px;
  }

  .footer-social a {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .footer-social svg {
    width: 15px;
    height: 15px;
  }

  .fof-btn {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 10px;
  }

  .fof-icon {
    font-size: 0.92rem;
    line-height: 1;
  }

  .fof-label {
    font-size: 0.78rem;
    line-height: 1;
  }
}

@media (max-width: 420px) {
  .footer-legal {
    gap: 4px 7px;
    font-size: 0.72rem;
  }

  .footer-sep {
    font-size: 0.66rem;
  }
}


/* ===== MOBILE TOOLS CARD FOOTER ALIGNMENT ===== */
@media (max-width: 768px) {
  .tools-hub .grid .card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 8px;
  }

  .tools-hub .card > .tools-card-tag,
  .tools-hub .card > h3,
  .tools-hub .card > p {
    grid-column: 1 / -1;
  }

  .tools-hub .card > .tools-card-meta {
    grid-column: 2;
    grid-row: 4;
    align-self: center;
    justify-self: end;
    margin: 8px 0 0;
    gap: 5px;
    justify-content: flex-end;
  }

  .tools-hub .card > .btn {
    grid-column: 1;
    grid-row: 4;
    align-self: center;
    justify-self: start;
    margin-top: 8px;
    min-height: 32px;
    padding: 8px 10px;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .tools-hub .card > .btn {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 0.7rem;
  }

  .tools-card-meta span {
    font-size: 0.62rem;
  }
}


/* ===== ACCESSIBILITY / RESPONSIVE SAFETY NETS ===== */
/* Prevent iOS Safari from auto-zooming when focusing form controls.
   iOS zooms any input/select/textarea whose font-size is below 16px. */
@media (max-width: 640px) {
  input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px;
  }
}


/* ===== BLOG + LEARN RETURN LOOPS ===== */
.return-loop-panel {
  max-width: 1200px;
  margin: 16px auto 28px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.12), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.09), transparent 36%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.78));
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.24);
}

.blogs-page .return-loop-panel,
.learn-page .return-loop-panel {
  max-width: 1120px;
  margin: 12px auto 22px;
  padding: 14px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.2);
}

.return-loop-panel--home {
  max-width: 980px;
  margin: 10px auto 18px;
  padding: 12px 14px;
  border-radius: 16px;
}

.return-loop-panel--home .return-loop-head h2 {
  font-size: 0.98rem;
}

.return-loop-panel--home .return-loop-metrics {
  width: min(360px, 100%);
  gap: 8px;
}

.return-loop-panel--home .return-loop-metrics article {
  min-height: 48px;
  padding: 6px 7px;
  gap: 3px;
}

.return-loop-panel--home .return-loop-metrics strong {
  font-size: 0.88rem;
}

.return-loop-panel--home .return-loop-metrics span {
  font-size: 0.6rem;
}

.return-loop-panel--home .return-loop-grid {
  margin-top: 10px;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.return-loop-panel--home .return-loop-grid article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  gap: 8px;
}

.return-loop-panel--home .return-loop-grid h3 {
  font-size: 0.92rem;
}

.return-loop-panel--home .return-loop-grid .btn {
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
}

.return-loop-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.return-loop-head > div > span {
  display: block;
  color: #86efac;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.return-loop-head h2 {
  margin: 6px 0 0;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.3;
}

.blogs-page .return-loop-head h2,
.learn-page .return-loop-head h2 {
  font-size: 1.04rem;
  line-height: 1.28;
}

.return-loop-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 10px;
  width: min(420px, 100%);
}

.return-loop-metrics article {
  display: grid;
  gap: 3px;
  align-content: center;
  min-height: 76px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.56);
  text-align: center;
}

.blogs-page .return-loop-metrics article,
.learn-page .return-loop-metrics article {
  min-height: 62px;
  padding: 8px;
  border-radius: 12px;
}

.return-loop-metrics strong {
  color: #fff;
  font-size: 1.2rem;
}

.blogs-page .return-loop-metrics strong,
.learn-page .return-loop-metrics strong {
  font-size: 1.05rem;
}

.return-loop-metrics span {
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 800;
}

.blogs-page .return-loop-metrics span,
.learn-page .return-loop-metrics span {
  font-size: 0.68rem;
}

.return-loop-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.return-loop-grid article {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.5);
}

.blogs-page .return-loop-grid article,
.learn-page .return-loop-grid article {
  padding: 10px;
  border-radius: 12px;
}

.return-loop-grid article > span {
  color: #bbf7d0;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.return-loop-grid h3 {
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
}

.blogs-page .return-loop-grid h3,
.learn-page .return-loop-grid h3 {
  font-size: 0.93rem;
  line-height: 1.32;
}

.blogs-page .blog-card {
  padding-top: 22px;
}

.return-loop-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}

.return-loop-list a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 700;
}

.return-loop-list a:hover {
  text-decoration: underline;
}

.blog-save-toggle,
.learn-done-toggle {
  margin-top: 10px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  background: rgba(15, 23, 42, 0.5);
  color: #bfdbfe;
  border-radius: 999px;
  min-height: 34px;
  padding: 8px 12px;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.blogs-page .blog-save-toggle {
  margin-left: auto;
  margin-top: 0;
  min-height: 26px;
  padding: 4px 9px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.2);
  color: #dbe5f4;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.blogs-page .blog-save-toggle:hover,
.blogs-page .blog-save-toggle:focus-visible {
  border-color: rgba(125, 211, 252, 0.42);
  background: rgba(15, 23, 42, 0.42);
  color: #eff6ff;
}

.learn-course-card .learn-done-toggle {
  margin: 0;
  min-height: 26px;
  padding: 4px 9px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.2);
  color: #dbe5f4;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.learn-course-card .learn-done-toggle:hover,
.learn-course-card .learn-done-toggle:focus-visible {
  border-color: rgba(125, 211, 252, 0.42);
  background: rgba(15, 23, 42, 0.42);
  color: #eff6ff;
}

.blog-save-toggle.is-saved,
.learn-done-toggle.is-done {
  border-color: rgba(34, 197, 94, 0.45);
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.16);
}

/* ===== SITE FEEDBACK (Reader Feedback Section) ===== */
.site-feedback {
  max-width: 1500px;
  margin: 42px auto 0;
  padding: 0 60px 64px;
}

.site-feedback--calculator {
  max-width: 1400px;
  padding-left: 20px;
  padding-right: 20px;
}

.site-feedback--calculator-wide {
  max-width: 1400px;
}

.site-feedback--calculator-large {
  max-width: 1400px;
}

.site-feedback-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: start;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.site-feedback-copy span {
  display: inline-flex;
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.site-feedback-copy h2 {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 10px;
}

.site-feedback-copy p,
.site-feedback-bottom p {
  color: #9ca3af;
  line-height: 1.6;
  margin: 0;
}

.site-feedback-form {
  display: grid;
  gap: 12px;
}

.site-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-feedback-choice,
.site-feedback-submit {
  font: inherit;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.site-feedback-choice {
  color: #d1d5db;
  font-weight: 700;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.site-feedback-choice:hover,
.site-feedback-choice.is-active {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.36);
  transform: translateY(-1px);
}

.site-feedback-form label {
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 700;
}

.site-feedback-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  color: #fff;
  font: inherit;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.site-feedback-form textarea:focus {
  outline: none;
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.site-feedback-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.site-feedback-submit {
  color: #04130a;
  font-weight: 800;
  padding: 10px 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: rgba(34, 197, 94, 0.5);
}

.site-feedback-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.site-feedback--sent .site-feedback-inner {
  border-color: rgba(34, 197, 94, 0.35);
}

.learn-page .site-feedback {
  margin-top: 0;
  padding-bottom: 40px;
}

.learn-page .site-feedback-inner {
  gap: 18px;
  padding: 18px;
}

.learn-page .site-feedback-copy h2 {
  margin-bottom: 6px;
}

.learn-page .site-feedback-form {
  gap: 9px;
}

.learn-page .site-feedback-form textarea {
  min-height: 76px;
}

body.course-guide-page .blog-article > .blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 10px 16px;
  color: #86efac;
  text-decoration: none;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 10px;
  transition: all 0.25s ease;
}

body.course-guide-page .blog-article > .blog-back-link::before {
  content: "←";
  font-size: 1.1rem;
}

body.course-guide-page .blog-article > .blog-back-link:hover {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateX(-4px);
}

body.course-guide-page .blog-article .blog-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 24px;
  padding: 0;
  width: 100%;
  max-width: none;
  border-radius: 0;
  background: transparent;
  border: 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

body.course-guide-page .blog-article .blog-meta-row a {
  color: #86efac;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(134, 239, 172, 0.35);
  text-underline-offset: 3px;
}

body.course-guide-page .blog-article .blog-meta-row a:hover {
  color: #bbf7d0;
  text-decoration-color: rgba(187, 247, 208, 0.75);
}

body.course-guide-page .blog-article .blog-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.32);
  color: #86efac;
  font-weight: 600;
  letter-spacing: 0.01em;
}

body.course-guide-page .blog-article {
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px 20px 80px;
}

body.course-guide-page .blog-article-body {
  position: relative;
  max-width: none;
  min-height: 760px;
  padding: 34px 38px 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background:
    radial-gradient(circle at 14% 10%, rgba(34, 197, 94, 0.14), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(59, 130, 246, 0.12), transparent 26%),
    linear-gradient(145deg, rgba(18, 24, 36, 0.96), rgba(12, 18, 30, 0.96));
}

body.course-guide-page .blog-article-body p {
  margin: 0 0 16px;
  color: #cbd5e1;
  line-height: 1.75;
}

body.course-guide-page .blog-article-body h2 {
  margin: 26px 0 10px;
  color: #fff;
  font-size: 1.4rem;
}

body.course-guide-page .blog-article-body h3 {
  margin: 22px 0 12px;
  color: #f1f5f9;
  font-size: 1.18rem;
  line-height: 1.3;
}

body.course-guide-page .blog-article-body ul {
  margin: 20px 0 28px;
  padding-left: 0;
  list-style: none;
  color: #cbd5e1;
}

body.course-guide-page .blog-article-body li {
  position: relative;
  padding: 14px 18px 14px 44px;
  margin-bottom: 12px;
  background: rgba(15, 23, 42, 0.4);
  border-left: 3px solid rgba(34, 197, 94, 0.4);
  border-radius: 10px;
  transition: all 0.25s ease;
}

body.course-guide-page .blog-article-body li::before {
  content: '✓';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.72rem;
}

body.course-guide-page .blog-article-body li:hover {
  transform: translateX(2px);
  background: rgba(15, 23, 42, 0.55);
  border-left-color: rgba(34, 197, 94, 0.65);
}

body.course-guide-page .blog-article-body li + li {
  margin-top: 0;
}

body.course-guide-page .course-overview,
body.course-guide-page .course-module-grid {
  gap: 10px;
  margin: 12px 0 16px;
}

body.course-guide-page .course-panel {
  padding: 10px 12px;
  border-radius: 13px;
}

body.course-guide-page .course-panel h2 {
  margin: 26px 0 6px;
  font-size: 1.04rem;
}

body.course-guide-page .course-panel ul {
  margin-bottom: 0;
}

body.course-guide-page .course-panel li {
  font-size: 0.9rem;
  line-height: 1.38;
}

body.course-guide-page .course-panel li + li {
  margin-top: 3px;
}

body.course-guide-page .course-example {
  font-size: 0.88rem;
  line-height: 1.42;
}

body.course-guide-page .hero {
  max-width: 1500px;
  margin: 18px auto 0;
  padding-top: 42px;
  padding-bottom: 28px;
}

body.course-guide-page .hero h1 {
  margin-bottom: 10px;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
}

body.course-guide-page .hero p {
  max-width: 780px;
  font-size: 1.04rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .blogs-page .hero {
    grid-template-columns: 1fr;
  }

  .blogs-page .blogs-hero-side {
    grid-column: 1;
  }

  .return-loop-head {
    flex-direction: column;
  }

  .return-loop-metrics {
    width: 100%;
  }

  .return-loop-grid {
    grid-template-columns: 1fr;
  }

  .blogs-page .blog-save-toggle {
    min-height: 26px;
    font-size: 0.62rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: nowrap;
    align-items: center;
    column-gap: 6px;
    row-gap: 0;
    padding: 5px 8px 6px;
    overflow: visible;
  }

  .logo {
    order: 1;
    flex: 0 0 auto;
    justify-content: flex-start;
    line-height: 0;
  }

  .logo img {
    height: 38px;
    width: auto;
    margin: 0;
  }

  .nav-links {
    order: 2;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0 2px 1px;
    gap: 3px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 0.72rem;
    border-radius: 8px;
    line-height: 1;
    white-space: nowrap;
  }

  .locale-selectors {
    order: 3;
    flex: 0 0 50px;
    width: auto;
    max-width: 50px;
    margin-left: 0;
    padding: 2px;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    gap: 2px;
    border-radius: 10px;
  }

  .locale-selectors .country-selector,
  .locale-selectors .currency-selector {
    width: 100%;
  }

  .locale-selectors .country-selector-btn,
  .locale-selectors .currency-selector-btn {
    width: 100%;
    min-height: 22px;
    justify-content: center;
    gap: 2px;
    padding: 3px 4px;
    border-radius: 8px;
    font-size: 0.58rem;
    line-height: 1;
  }

  .locale-selectors .currency-selector-btn {
    border-left: 0;
  }

  .country-selector-text,
  .currency-selector-text {
    max-width: 34px;
  }

  .country-dropdown {
    left: auto;
    right: 0;
    min-width: 220px;
  }

  .currency-dropdown {
    right: 0;
    min-width: 220px;
  }

  .return-loop-panel--home {
    width: 100%;
    margin: 10px 0 18px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .return-loop-panel--home .return-loop-head {
    flex-direction: column;
    gap: 8px;
  }

  .return-loop-panel--home .return-loop-head h2 {
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .return-loop-panel--home .return-loop-metrics {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .return-loop-panel--home .return-loop-metrics article {
    min-height: 54px;
    padding: 7px 6px;
    border-radius: 10px;
  }

  .return-loop-panel--home .return-loop-metrics strong {
    font-size: 0.84rem;
  }

  .return-loop-panel--home .return-loop-metrics span {
    font-size: 0.54rem;
  }

  .return-loop-panel--home .return-loop-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .return-loop-panel--home .return-loop-grid article {
    padding: 9px;
    border-radius: 10px;
  }

  .return-loop-panel--home .return-loop-grid h3 {
    font-size: 0.82rem;
  }

  .return-loop-panel--home .return-loop-grid .btn {
    width: auto;
    max-width: 100%;
    justify-self: start;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 38px;
  }

  .locale-selectors {
    flex-basis: 42px;
    max-width: 42px;
  }
}
