.simulatorBanner {
  padding: 50px 0px 50px 50px;
}

.simulatorBanner img {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 0 80px 20px rgba(255, 255, 255, 0.2);
}

@media (min-width:992px) {
  .simulatorBanner {
    padding: 3.66vw 0 3.66vw 3.66vw;
  }

  .simulatorBanner img {
    border-radius: 2.196vw;
    box-shadow: 0 0 5.857vw 2.196vw rgba(255, 255, 255, 0.2);
  }
}

@media (max-width:991px) {
  .simulatorBanner {
    padding: 10px 0px 10px 10px;
  }

  .simulatorBanner img {
    border-radius: 20px;
    box-shadow: 0 0 50px 10px rgba(255, 255, 255, 0.2);
  }
}
@media (max-width:576px) {
  .simulatorBanner {
    padding: 0px;
  }

}

/*-----------------------------------------------------  */
.sim-card {
  background: linear-gradient(to bottom, rgba(38, 38, 38, 0) 0%, #262626 100%);
  border-radius: 30px;
  padding: 0 20px 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  height: 100%;
  transition: 0.3s ease;
}

.sim-card:hover {
  transform: translateY(-5px);
}

.simIcon {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.simIcon img {
  width: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(43%);
  opacity: 0.9;
}

@media (min-width:1200px) {
  .sim-card {
    padding:0 1.464vw 1.83vw ;
    border-radius: 2.196vw;
  }

  .simIcon {
    width: 10.98vw;
    height: 10.98vw;
  }
}

@media (max-width:576px) {
  .sim-card {
  padding: 0px 20px 25px;
}
}

/* inline link inside a sim-card: coral rule underneath, with a
   teal → coral gradient wiping across it left → right on hover */
.sim-link {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
  font-style: italic;
  font-weight: 700;
  border-bottom: 1px solid #e3644b;
  transition: color 0.4s ease;
}

.sim-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #005d61, #e3644b);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sim-link:hover,
.sim-link:focus-visible {
  color: var(--white);
}

.sim-link:hover::after,
.sim-link:focus-visible::after {
  transform: scaleX(1);
}

/* ----------------------------------------------------------------- */
.simulator-linechart {
  width: 100%;
  padding: 30px 30px 0px;
  border-radius: 30px;
  background: linear-gradient(to bottom, rgba(38, 38, 38, 0) 0%, #262626 100%);
  color: white;

}

.chartHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0px;
}

.chartHead .pill {
  width: 100%;
  text-align: center;
}
.simulator-linechart p b,
.pill p b{
  font-weight: 600;
}

@media (min-width:991px) {
  .chartHead .pill {
    max-width: 40%;
    text-align: center;
  }
}

.teal {
  background: linear-gradient(to bottom, rgb(255 255 255 / 0%) 0%, #005D61 220%);
  padding: 10px;
}

.orange {
  background: linear-gradient(to bottom, rgb(255 255 255 / 0%) 0%, #E3644B 220%);
  padding: 10px;
}

.teal p,
.orange p {
  margin-bottom: 0;
}

.line-tabs {
  display: flex;
  flex-wrap:wrap;
  gap: 8px;
}

.line-tab {
  position: relative;
  white-space: nowrap;
  background: transparent;
  color: #cfcfcf;
  border: 1px solid #2b2b2b;
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all .2s ease;
}

.line-tab.active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  padding: 1px;
  background: linear-gradient(to bottom,
      #E3644B,
      #005D61);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.chart-wrap {
  margin-top: 20px;
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.chart-wrap::-webkit-scrollbar {
  background: transparent;
}

.chart-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.chart-wrap::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 10px;
}

.chart-inner {
  position: relative;
  height: 100%;
  min-width: 900px;
  min-height: 400px;
  max-height: 600px;
}

@media (max-width:576px) {
  .simulator-linechart {
    padding: 20px 20px 0px;
  }
}

@media (min-width:1200px) {
  .simulator-linechart {
    border-radius: 2.196vw;
    padding: 2.196vw 2.196vw 0;
  }

  .chartHead {
    padding: 0.732vw 0;
  }

  .orange,
  .teal {
    padding: 0.732vw;
  }

  .line-tabs {
    gap: 0.586vw;
  }

  .line-tab {
    border-radius: 0.586vw;
    padding: 0.439vw 1.318vw;
    font-size: 1.171vw;
  }

  .line-tab.active::before {
    border-radius: 0.439vw;
    padding: 0.073vw;
  }

  .chart-wrap {
    margin-top: 1.464vw;
  }

  .chart-inner {
    min-height: 29.283vw;
    max-height: 43.924vw;
    min-width: 65.886vw;
  }
}

/* =========================================================================
   "Simulate Returns" CTA — 5 style/animation variants (A/B exploration,
   see the HTML comment above .simCtaShowcase in simulator.html). Base pill
   shape/size matches the site-wide .cta in common.css; colors reuse the
   brand tokens already used elsewhere (teal #005D61, coral #E3644B).
   Once a variant is chosen, delete .simCtaShowcase + the other 4 variants
   and keep a single plain <a class="simCta simCta--vN">.
   ========================================================================= */
.simCtaShowcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 40px 48px;
}

.simCtaShowcase__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.simCtaShowcase__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.simCta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 50px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
}

.simCta span {
  position: relative;
  z-index: 1;
}

/* ---------- Variant 1 — Sweep Fill ---------- */
.simCta--v1 {
  background: var(--white);
  color: var(--black);
  overflow: hidden;
  transition: color 0.4s ease;
}

.simCta--v1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #005d61, #2fa3a8);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(.2, .7, .2, 1);
  z-index: 0;
}

.simCta--v1:hover {
  color: var(--white);
}

.simCta--v1:hover::before {
  transform: scaleX(1);
}

/* ---------- Variant 2 — Gradient Border Glow ---------- */
.simCta--v2 {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 0 rgba(0, 93, 97, 0);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.simCta--v2::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, #e3644b, #005d61, #2fa3a8, #e3644b);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: simGradientShift 4s linear infinite;
}

.simCta--v2:hover {
  border-color: transparent;
  box-shadow: 0 0 26px -4px rgba(0, 93, 97, 0.65);
  transform: translateY(-2px);
}

.simCta--v2:hover::before {
  opacity: 1;
}

@keyframes simGradientShift {
  to {
    background-position: 300% 0;
  }
}

/* ---------- Variant 3 — Icon Slide ---------- */
.simCta--v3 {
  background: #005d61;
  transition: background 0.4s ease;
}

.simCta__icon {
  display: inline-block;
  font-size: 15px;
  max-width: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: max-width 0.4s ease, opacity 0.35s ease, transform 0.4s ease, margin 0.4s ease;
  overflow: hidden;
}

.simCta--v3:hover {
  background: #e3644b;
}

.simCta--v3:hover .simCta__icon {
  max-width: 20px;
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Variant 4 — Magnetic Glow ---------- */
.simCta--v4 {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2, .7, .2, 1), border-color 0.4s ease, background 0.4s ease;
}

.simCta--v4::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(47, 163, 168, 0.55) 0%, rgba(47, 163, 168, 0) 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.55s cubic-bezier(.2, .7, .2, 1);
  z-index: 0;
}

.simCta--v4:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(47, 163, 168, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.simCta--v4:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/* ---------- Variant 5 — Rotating Border Trace ---------- */
.simCta--v5 {
  padding: 2px;
  background: transparent;
  overflow: hidden;
}

.simCta--v5 span {
  display: block;
  position: relative;
  z-index: 1;
  padding: 10px 32px;
  border-radius: 48px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.4s ease;
}

.simCta--v5::before {
  content: "";
  position: absolute;
  z-index: 0;
  /* oversized + inset so the square still fully covers the pill's rounded
     corners at every angle as it spins (a tight inset would expose bare
     corners, or worse, spill the gradient outside the pill entirely since
     the parent now clips it via overflow:hidden). */
  inset: -75%;
  background: conic-gradient(from 0deg, transparent 0deg, #e3644b 40deg, #005d61 120deg, transparent 170deg, transparent 360deg);
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: simRotateTrace 2.6s linear infinite;
}

.simCta--v5:hover::before {
  opacity: 1;
}

.simCta--v5:hover span {
  border-color: transparent;
}

@keyframes simRotateTrace {
  to {
    transform: rotate(360deg);
  }
}

/* Dolat Quantum Leap vs S&P BSE500 TRI line chart (custom SVG, replaces the
   old Chart.js canvas). .lc-plot holds the gridlines + the two <polyline>
   lines + point dots/value labels, all positioned as percentages of the
   plot box so nothing needs recalculating on resize; vector-effect=
   "non-scaling-stroke" on the lines keeps their stroke width crisp even
   though the viewBox is stretched non-uniformly to fill the box. */
.chart-inner.lc-inner {
  display: flex;
  flex-direction: column;
  padding-bottom: 26px;
}

.lc-plot {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-top: 14px;
  margin-bottom: 24px;
}

.lc-gridlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lc-gridline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.lc-ytick {
  position: absolute;
  left: 4px;
  transform: translateY(50%);
  color: #fff;
  font-size: 13px;
}

.lc-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.lc-line {
  fill: none;
  stroke-width: 2;
  /* stroke-dasharray/dashoffset + the transition itself are set inline by
     js/simulator.js on every render, so the left-to-right "draw" animation
     works with whatever the path's actual length turns out to be. */
}

.lc-line-teal {
  stroke: #005D61;
  filter:
    drop-shadow(0 0 4px #005D61)
    drop-shadow(0 0 10px #005D61)
    drop-shadow(0 0 16px rgba(0, 93, 97, 0.7));
}

.lc-line-orange {
  stroke: #E3644B;
  /* Glow disabled for the coral/orange line — teal keeps its glow above.
  filter:
    drop-shadow(0 0 4px #E3644B)
    drop-shadow(0 0 10px #E3644B)
    drop-shadow(0 0 16px rgba(227, 100, 75, 0.7));
  */
}

.lc-points {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lc-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0a0a0a;
  border: 2px solid;
  transform: translate(-50%, 50%);
  opacity: 0;
  transition: opacity 0.4s ease 0.3s;
}

.lc-inner.is-play .lc-dot {
  opacity: 1;
}

.lc-dot-teal {
  border-color: #005D61;
}

.lc-dot-orange {
  border-color: #E3644B;
}

/* In-between points (e.g. the two months between each quarter on 3Y):
   a smaller dot so the labelled points still read as the main ones. */
.lc-dot-minor {
  width: 6px;
  height: 6px;
  border-width: 1.5px;
}

.lc-dot.is-hover {
  width: 12px;
  height: 12px;
  border-width: 2px;
}

/* "Max" can carry decades of monthly points — permanently drawn dots there
   would touch/overlap into a solid line-width smear, so only the line shows
   by default and a dot appears at whichever point is currently hovered. A
   faster, no-delay transition than the base .lc-dot reveal (0.4s + 0.3s
   delay, tuned for the once-per-tab-switch draw-in) keeps hover feeling
   responsive instead of laggy. */
.lc-inner.lc-hide-dots .lc-dot {
  opacity: 0;
  transition: opacity 0.15s ease, width 0.15s ease, height 0.15s ease;
}

.lc-inner.lc-hide-dots .lc-dot.is-hover {
  opacity: 1;
}

.lc-hitareas {
  position: absolute;
  inset: 0;
}

/* Each zone is placed and sized by js/simulator.js to span the midpoints
   either side of its own point. Equal-width flex slots would only line up
   with the dots when the points are slot-centred, which they no longer are
   (see the edge-inset note in the JS) — so at the first and last points the
   slot boundaries drifted off the dots and hovering one showed its
   neighbour's values. */
.lc-hitzone {
  position: absolute;
  top: 0;
  height: 100%;
  cursor: pointer;
}

.lc-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  /* Fixed width, not content-driven. js/simulator.js clamps `left` so the
     box stays inside the plot, but `left` is transitioned while a width
     change from new text would apply instantly — so a content-sized
     tooltip moving away from the right-hand edge could momentarily stick
     out past .chart-inner. That grows .chart-wrap's scroll width, and
     since it is an overflow-x:auto container, a horizontal scrollbar
     flicks in and back out, which reads as the panel's height jumping at
     the bottom. A constant width removes that entirely (and stops the box
     resizing as you move between points). */
  width: 230px;
  pointer-events: none;
  visibility: hidden;
  z-index: 20;
  /* left/top are set inline (in px, already clamped inside the plot) by
     js/simulator.js on every hover — transitioning them here is what makes
     the tooltip glide between points instead of snapping. Only these two
     are ever set, never `bottom`, so the box can't be stretched by having
     opposite offsets applied at once. The visibility flip is delayed on
     hide (but not on show) so it disappears after the fade-out finishes
     rather than vanishing mid-transition. */
  transition: left 0.18s ease, top 0.18s ease, visibility 0s linear 0.2s;
}

.lc-tooltip.is-visible {
  visibility: visible;
  transition: left 0.18s ease, top 0.18s ease, visibility 0s linear 0s;
}

.lc-tooltip-inner {
  background: rgba(12, 12, 12, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(0.94) translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lc-tooltip.is-visible .lc-tooltip-inner {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.lc-tooltip-date {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}

.lc-tooltip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #cfcfcf;
  white-space: nowrap;
}

.lc-tooltip-row + .lc-tooltip-row {
  margin-top: 4px;
}

.lc-tooltip-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}

.lc-tooltip-swatch.teal {
  background: #005D61;
}

.lc-tooltip-swatch.orange {
  background: #E3644B;
}

.lc-tooltip-row b {
  color: #fff;
  font-weight: 600;
  margin-left: auto;
  padding-left: 12px;
}

.lc-value {
  position: absolute;
  transform: translateX(-50%);
  color: #e8e8e8;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease 0.4s;
}

.lc-inner.is-play .lc-value {
  opacity: 1;
}

.lc-xlabels {
  position: relative;
  padding-top: 12px;
  /* Fixed height: labels are absolutely positioned, and a set height also
     stops the panel resizing when switching between ranges whose labels
     differ in length. */
  height: 34px;
}

.lc-xlabel {
  position: absolute;
  top: 12px;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  color: #cfcfcf;
  font-size: 13px;
}

@media (max-width: 576px) {
  .simCtaShowcase {
    gap: 30px;
  }

  .simCta {
    padding: 10px 26px;
    font-size: 14px;
  }
}
/* Y-axis gutter: tick numbers sit left of the plot so every line/point can
   start exactly on the y-axis line (x = 0). */
.chart-inner.lc-inner { --lc-gutter: 48px; }
.chart-inner.lc-inner .lc-plot,
.chart-inner.lc-inner .lc-xlabels { margin-left: var(--lc-gutter); }
.chart-inner.lc-inner .lc-ytick { left: calc(-1 * var(--lc-gutter)); width: calc(var(--lc-gutter) - 10px); text-align: right; }
.chart-inner.lc-inner .lc-gridlines::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: rgba(255, 255, 255, 0.35);
}
.lc-gridline-base { background: rgba(255, 255, 255, 0.4); }
@media (max-width: 576px) { .chart-inner.lc-inner { --lc-gutter: 38px; } }

/* first point sits on the y-axis: left-align its value labels so they don't cover the tick numbers */
.lc-value.lc-value-first { transform: translateX(-20%); }







/* Standard scrollbar-color/width would override the ::-webkit-scrollbar
   rules in Chrome (and turn it into an auto-hiding overlay bar on mobile),
   so it is only applied where ::-webkit-scrollbar isn't supported (Firefox). */
@supports not selector(::-webkit-scrollbar) {
  .chart-wrap {
    scrollbar-width: thin;
    scrollbar-color: #E3644B rgba(255, 255, 255, 0.1);
  }
}

.chart-wrap {
  padding-bottom: 10px;
}

/* keep the scrollbar inside the card: give the card its own bottom padding */
.simulator-linechart {
  padding-bottom: 20px;
}

.chart-wrap::-webkit-scrollbar {
  height: 5px;
  background: transparent;
}

.chart-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.chart-wrap::-webkit-scrollbar-thumb {
  background: #E3644B;
  border-radius: 10px;
}

