.investment-index-hero,
.investment-index-section,
.investment-index-final-cta {
  width: min(var(--max), calc(100% - 80px));
  margin-inline: auto;
}

.investment-index-hero {
  position: relative;
  min-height: 350px;
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(0, 48%);
  align-items: start;
  overflow: hidden;
  background-color: var(--surface-soft);
  background-image:
    linear-gradient(90deg, var(--surface-bg) 0%, var(--surface-bg) 34%, transparent 70%),
    url("../../investments/index/hero.png?v=20261017-2");
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: cover, cover;
}

.investment-index-hero-copy {
  position: relative;
  z-index: 1;
  align-self: start;
  max-width: 600px;
  padding: 30px 0;
}

.investment-index-eyebrow {
  margin: 0 0 8px;
  color: var(--text-accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.investment-index-hero h1,
.investment-index-heading h2,
.investment-index-calculator h2 {
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.investment-index-hero h1 {
  max-width: 650px;
  font-size: 52px;
  line-height: 1.16;
  letter-spacing: 0;
}

.investment-index-hero-lead {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--text-subtle);
  font-size: 1rem;
  line-height: 1.55;
}

.investment-index-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 28px;
  padding: 12px 17px;
  border: 2px solid transparent;
  border-radius: 6px;
  color: #fff;
  background: var(--text-accent);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.investment-index-button:visited {
  color: #fff;
}

.investment-index-button > img {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.investment-index-button:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.investment-index-button:focus-visible,
.investment-index-goal-copy a:focus-visible {
  outline: 3px solid var(--outline-accent);
  outline-offset: 4px;
}

.investment-index-benefits {
  padding-block: 20px;
}

.investment-index-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.investment-index-benefit-grid li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 36px;
  border-left: 1px solid var(--border-soft);
}

.investment-index-benefit-grid li:first-child {
  padding-left: 0;
  border-left: 0;
}

.investment-index-benefit-grid strong {
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.35;
}

.investment-index-icon {
  width: 50px;
  height: 50px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-soft) 84%, var(--text-accent));
}

.investment-index-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.investment-index-heading {
  max-width: 830px;
}

.investment-index-heading h2,
.investment-index-calculator h2 {
  font-size: 31px;
  line-height: 1.08;
}

.investment-index-heading > p:last-child,
.investment-index-calculator-copy > p:not(.investment-index-eyebrow) {
  margin: 12px 0 0;
  color: var(--text-subtle);
  font-size: 1rem;
  line-height: 1.55;
}

.investment-index-goal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.investment-index-goals {
  margin-top: 0;
  padding: 52px 20px 16px;
  border-radius: 22px;
  background: var(--surface-soft);
}

.investment-index-goal-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--surface-card);
  box-shadow: 0 12px 30px rgba(0, 45, 62, 0.08);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.investment-index-goal-media {
  width: 100%;
  aspect-ratio: 16 / 7.5;
  overflow: hidden;
  background: var(--surface-soft);
}

.investment-index-goal-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.investment-index-goal-icon {
  z-index: 1;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: -27px 0 8px 22px;
  border: 5px solid var(--surface-card);
  border-radius: 50%;
  color: #00abbd;
  background: color-mix(in srgb, var(--surface-soft) 84%, var(--text-accent));
}

.investment-index-goal-icon img,
.investment-index-goal-icon svg {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.investment-index-goal-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 22px 24px;
}

.investment-index-card-kicker {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.3;
}

.investment-index-goal-copy > p {
  margin: 8px 0 0;
  color: var(--text-subtle);
  font-size: 0.88rem;
  line-height: 1.5;
}

.investment-index-goal-copy a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin: auto 0 0;
  padding-top: 22px;
  color: var(--text-accent);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
}

.investment-index-goal-copy a span {
  transition: transform 160ms ease;
}

.investment-index-goal-copy a:hover {
  color: var(--teal-dark);
}

@media (hover: hover) and (pointer: fine) {
  .investment-index-goal-card:hover {
    box-shadow: 0 18px 40px rgba(0, 45, 62, 0.14);
    transform: translateY(-4px);
  }

  .investment-index-goal-copy a:hover span {
    transform: translateX(4px);
  }
}

.investment-index-calculator {
  --goal-aqua: #effbfd;
  --goal-aqua-strong: #dff6f7;
  --goal-teal: #00aabd;
  --goal-navy: #062f43;
  --goal-muted: #52687a;
  --goal-line: #c5e9ed;
  --goal-card: #fff;
  --goal-body: #808080;
  --goal-chart-text: var(--text-subtle);
  --goal-chart-grid: #7a8f9f;
  --goal-chart-border: #52687a;
  --goal-chart-contributions: #e4685d;
  --goal-chart-contributions-fill: rgba(190, 79, 70, 0.36);
  --goal-chart-estimated: #00738b;
  --goal-chart-estimated-fill: #33bdca;
  --goal-chart-estimated-legend: var(--goal-chart-estimated);
  --goal-radius: 10px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 44px;
  align-items: stretch;
  margin-top: 72px;
  padding: 28px 34px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--surface-soft);
}

.investment-index-calculator-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.investment-index-calculator-copy small {
  display: block;
  margin-top: 16px;
  color: var(--text-subtle);
  font-size: 0.78rem;
  line-height: 1.45;
}

.investment-index-calculator-preview {
  display: grid;
  grid-template-columns: minmax(190px, 0.82fr) minmax(230px, 1.18fr);
  gap: 12px;
  align-self: center;
}

.investment-index-calculator-preview.goal-calculator-example {
  box-sizing: border-box;
  width: 100%;
}

.investment-index-sample-fields,
.investment-index-sample-result {
  margin: 0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--surface-card);
  box-shadow: 0 12px 30px rgba(0, 45, 62, 0.07);
}

.investment-index-sample-fields {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 22px;
}

.investment-index-sample-fields div {
  min-width: 0;
}

.investment-index-sample-fields dt,
.investment-index-sample-result > p {
  margin: 0 0 7px;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.35;
}

.investment-index-sample-fields dd {
  min-height: 44px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  color: var(--text-primary);
  background: var(--surface-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.investment-index-sample-result {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 16px;
}

.investment-index-sample-result > strong {
  color: var(--text-accent);
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  line-height: 1;
}

.investment-index-growth-chart {
  width: 100%;
  height: auto;
  display: block;
  flex: 1;
  margin-top: 12px;
}

@media (prefers-color-scheme: dark) {
  .investment-index-calculator {
    --goal-aqua: var(--surface-soft);
    --goal-aqua-strong: var(--surface-soft);
    --goal-teal: var(--teal);
    --goal-navy: var(--text-primary);
    --goal-muted: var(--text-subtle);
    --goal-line: var(--border-default);
    --goal-card: var(--surface-card);
    --goal-body: var(--text-muted);
    --goal-chart-text: var(--text-primary);
    --goal-chart-grid: #6685a5;
    --goal-chart-border: #7798b9;
    --goal-chart-contributions: #e4685d;
    --goal-chart-contributions-fill: rgba(6, 47, 67, 0.18);
    --goal-chart-estimated: var(--text-accent);
    --goal-chart-estimated-fill: rgba(0, 170, 189, 0.5);
    --goal-chart-estimated-legend: var(--goal-chart-estimated);
  }

  .investment-index-button {
    border-color: var(--outline-light);
    color: var(--text-on-accent);
    background: var(--cta-bg);
  }

  .investment-index-button:visited {
    color: var(--text-on-accent);
  }

  .investment-index-goal-card {
    box-shadow: none;
  }

  .investment-index-sample-fields,
  .investment-index-sample-result {
    box-shadow: none;
  }

  .investment-index-button:hover {
    color: var(--text-on-accent);
    background: var(--cta-bg);
  }

  .investment-index-goal-copy a:hover {
    color: var(--text-on-accent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .investment-index-button,
  .investment-index-goal-card,
  .investment-index-goal-copy a span {
    transition: none;
  }

  .investment-index-button:hover,
  .investment-index-goal-card:hover {
    transform: none;
  }

  .investment-index-goal-copy a:hover span {
    transform: none;
  }
}

@media (max-width: 900px) {
  .investment-index-hero-copy {
    width: min(68%, 620px);
  }

  .investment-index-benefit-grid li {
    padding-inline: 22px;
  }

  .investment-index-calculator {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 760px) {
  .investment-index-heading h2,
  .investment-index-calculator h2 {
    font-size: 27px;
  }

  .investment-index-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.55rem);
  }

  .investment-index-hero,
  .investment-index-section,
  .investment-index-final-cta {
    width: min(var(--max), calc(100% - 40px));
  }

  .investment-index-hero {
    min-height: 0;
    display: block;
    background: var(--surface-bg);
  }

  .investment-index-hero::before {
    content: "";
    display: block;
    height: var(--fg-image-height);
    margin: var(--fg-image-inset) var(--fg-image-inset) 0;
    border-radius: var(--fg-image-radius);
    background: linear-gradient(180deg, transparent calc(100% - 80px), var(--surface-bg)),
      url("../../investments/index/hero.png?v=20261017-2") var(--fg-image-position) / cover no-repeat;
  }

  .investment-index-hero-copy {
    width: 100%;
    padding: 0 0 16px;
  }

  .investment-index-benefits {
    padding-block: 8px 28px;
  }

  .investment-index-benefit-grid {
    grid-template-columns: 1fr;
  }

  .investment-index-goal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .investment-index-benefit-grid li {
    padding: 18px 0;
    border-top: 1px solid var(--border-soft);
    border-left: 0;
  }

  .investment-index-benefit-grid li:first-child {
    border-top: 0;
  }

  .investment-index-heading {
    text-align: left;
  }

  .investment-index-goals {
    margin-top: 0;
    padding-block: 26px;
  }

  .investment-index-goal-grid {
    gap: 18px;
    margin-top: 26px;
  }

  .investment-index-goal-copy {
    padding: 0 22px 26px;
  }

  .investment-index-goal-card {
    min-height: 0;
  }

  .investment-index-calculator {
    gap: 30px;
    margin-top: 48px;
    padding: 26px 20px;
    border-radius: 14px;
  }

  .investment-index-calculator-preview {
    grid-template-columns: 1fr;
  }

  .investment-index-sample-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
  }

}

@media (max-width: 520px) {
  .investment-index-goal-grid {
    grid-template-columns: 1fr;
  }

  .investment-index-goal-media {
    aspect-ratio: 16 / 8;
  }

  .investment-index-goal-copy {
    padding-bottom: 24px;
  }
}

@media (max-width: 420px) {
  .investment-index-hero,
  .investment-index-section,
  .investment-index-final-cta {
    width: min(var(--max), calc(100% - 28px));
  }

  .investment-index-button {
    width: 100%;
    padding-inline: 17px;
  }

  .investment-index-sample-fields {
    grid-template-columns: 1fr;
  }
}
