/*
 * Homepage (templates/core/index.html), redesign. Built on the design-system tokens and components;
 * colours only through --ds-* tokens. Breakpoints: 1279px and 767px (tokens), 1024px where the hero stacks,
 * 1023px where the nav collapses. Grounds alternate sage (--ds-ground) and white (--ds-surface); the deal
 * models and FAQ sections sit on ink with data-theme="dark", so the components inside take their dark look.
 */

/* --------------------------------------------------------------------------
   Page ground
   -------------------------------------------------------------------------- */

body {
  background: var(--ds-ground);
}

.home,
.home [data-theme] {
  --home-muted: var(--ds-text-secondary);
}

/* Secondary text: the brand grey in light mode (design), the AA-passing muted grey on dark grounds, where the
   derived dark secondary grey falls below 4.5:1 on the raised cards */
.home [data-theme="dark"] {
  --home-muted: var(--ds-text-muted);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .home {
    --home-muted: var(--ds-text-muted);
  }
}

.home li {
  font-size: inherit;
  line-height: inherit;
}

.home .ds-faq__answer p {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* --------------------------------------------------------------------------
   Shared section pieces
   -------------------------------------------------------------------------- */

.home-section {
  padding-block: var(--ds-section-gap);
  background: var(--ds-ground);
  color: var(--ds-text);
}

.home-section--surface {
  background: var(--ds-surface);
}

.home-section--ink {
  background: var(--ds-ink);
}

.home-eyebrow {
  margin: 0 0 var(--ds-space-16);
  color: var(--home-muted);
  font-size: var(--ds-type-eyebrow-size);
  line-height: var(--ds-type-eyebrow-leading);
  letter-spacing: var(--ds-type-eyebrow-tracking);
  font-weight: 600;
  text-transform: uppercase;
}

.home-h2 {
  margin: 0;
  color: var(--ds-text);
  font-size: var(--ds-type-h2-size);
  line-height: var(--ds-type-h2-leading);
  letter-spacing: var(--ds-type-h2-tracking);
  font-weight: 600;
}

.home-h3 {
  margin: 0;
  color: var(--ds-text);
  font-size: var(--ds-type-h3-size);
  line-height: var(--ds-type-h3-leading);
  letter-spacing: normal;
  font-weight: 600;
}

.home-lead {
  margin: var(--ds-space-16) 0 0;
  color: var(--home-muted);
  font-size: var(--ds-type-body-l-size);
  line-height: var(--ds-type-body-l-leading);
}

.home-muted {
  margin: 0;
  color: var(--home-muted);
  font-size: var(--ds-type-body-size);
  line-height: var(--ds-type-body-leading);
}

/* Ink sections: cards one step lighter than the ground, AA-friendly secondary text */
.home-section--ink .ds-faq {
  background: var(--ds-inverse);
  border-color: var(--ds-border);
}

.home-section--ink .ds-faq__answer {
  color: var(--ds-text-muted);
}

.home-section--ink .ds-tabs {
  background: var(--ds-inverse);
  border-color: var(--ds-border);
}

.home-section--ink .ds-tab {
  color: var(--ds-text-muted);
}

.home-section--ink .ds-tab[aria-pressed="true"] {
  background: var(--ds-text);
  color: var(--ds-ground);
}

/* --------------------------------------------------------------------------
   0. Strip and nav
   -------------------------------------------------------------------------- */

.home-top {
  background: var(--ds-ground);
}

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */

.home-hero {
  padding-block: var(--ds-space-64);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
  gap: var(--ds-space-64);
  align-items: center;
}

.home-hero__copy {
  min-width: 0;
}

.home-hero__title {
  margin: 0;
  color: var(--ds-text);
  font-size: var(--ds-type-display-size);
  line-height: var(--ds-type-display-leading);
  letter-spacing: var(--ds-type-display-tracking);
  font-weight: 600;
}

.home-hero__line {
  display: block;
}

/* The rotating phrases share one grid cell, so the cell is as tall as the tallest phrase */
.home-rotator {
  display: grid;
  margin-top: var(--ds-space-8);
}

.home-rotator__phrase {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity var(--ds-motion-fade) ease;
}

/* inline, so a phrase that wraps gets a highlight per line instead of one block */
.home-rotator__text {
  padding: 0 var(--ds-space-8);
  background: var(--ds-highlight);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.home-rotator__phrase.is-active {
  opacity: 1;
}

.home-hero__lead {
  max-width: 520px;
  margin: var(--ds-space-24) 0 0;
  color: var(--home-muted);
  font-size: var(--ds-type-body-l-size);
  line-height: var(--ds-type-body-l-leading);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-16) var(--ds-space-24);
  margin-top: var(--ds-space-32);
}

.home-hero__actions .home-hero__button {
  gap: var(--ds-space-8);
}

.home-hero__trust {
  display: flex;
  align-items: center;
  gap: var(--ds-space-8);
  margin: var(--ds-space-24) 0 0;
  color: var(--home-muted);
  font-size: var(--ds-type-small-size);
  line-height: var(--ds-type-small-leading);
}

.home-hero__trust .ds-icon {
  color: var(--ds-text);
}

.home-hero__visual {
  min-width: 0;
}

/* Hero dealroom card (a product window built in HTML) */
.home-card {
  overflow: hidden;
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-24);
  background: var(--ds-surface);
  box-shadow:
    var(--ds-shadow-card),
    0 24px 48px color-mix(in srgb, var(--ds-ink) 8%, transparent);
  color: var(--ds-text);
}

.home-card p,
.home-card dd {
  margin: 0;
}

.home-card__bar {
  display: flex;
  align-items: center;
  gap: var(--ds-space-12);
  padding: var(--ds-space-12) var(--ds-space-16);
  border-bottom: 1px solid var(--ds-border-subtle);
  background: var(--ds-surface-subtle);
}

.home-card__dots {
  display: inline-flex;
  gap: var(--ds-space-4);
}

.home-card__dots span {
  width: 10px;
  height: 10px;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-border);
}

.home-card__bar-title {
  color: var(--home-muted);
  font-size: var(--ds-type-caption-size);
  line-height: var(--ds-type-caption-leading);
  font-weight: 500;
  min-width: 0;
}

.home-card__bar .ds-chip {
  flex-shrink: 0;
  margin-left: auto;
}

.home-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-16);
  padding: var(--ds-space-24);
}

.home-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-12);
}

.home-card__identity {
  min-width: 0;
}

.home-card__title {
  font-size: var(--ds-type-app-h3-size);
  line-height: var(--ds-type-app-h3-leading);
  font-weight: 600;
}

.home-card__meta {
  color: var(--home-muted);
  font-size: var(--ds-type-small-size);
  line-height: var(--ds-type-small-leading);
}

.home-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-8);
}

.home-card__terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ds-space-12);
  margin: 0;
}

.home-card__term {
  padding: var(--ds-space-12) var(--ds-space-16);
  border-radius: var(--ds-radius-12);
  background: var(--ds-surface-subtle);
}

.home-card__term dt {
  color: var(--home-muted);
  font-size: var(--ds-type-caption-size);
  line-height: var(--ds-type-caption-leading);
}

.home-card__term dd,
.home-card__amount,
.home-card__payout-amount {
  font-size: var(--ds-type-figure-size);
  line-height: var(--ds-type-figure-leading);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.home-card__milestone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-12);
  padding: var(--ds-space-16);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-12);
}

.home-card__eyebrow {
  color: var(--home-muted);
  font-size: var(--ds-type-caption-size);
  line-height: var(--ds-type-caption-leading);
  letter-spacing: var(--ds-type-eyebrow-tracking);
  font-weight: 600;
  text-transform: uppercase;
}

.home-card__milestone-title {
  font-size: var(--ds-type-body-size);
  line-height: var(--ds-type-body-leading);
  font-weight: 600;
}

/* step text size sits on the list: ".home li" (above) makes list items inherit theirs */
.home-card__steps {
  display: flex;
  align-items: center;
  gap: var(--ds-space-8);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--ds-type-small-size);
  line-height: var(--ds-type-small-leading);
}

.home-card__step {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: var(--ds-space-8);
  color: var(--ds-text);
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--ds-motion-fade) ease;
}

.home-card__step:first-child {
  flex: 0 0 auto;
}

/* the connector between steps */
.home-card__step + .home-card__step::before {
  content: "";
  flex: 1 1 var(--ds-space-12);
  min-width: var(--ds-space-8);
  height: 1px;
  background: var(--ds-border);
}

.home-card__step-dot {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--ds-text);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-text);
  color: var(--ds-surface);
  transition:
    background-color var(--ds-motion-fade) ease,
    border-color var(--ds-motion-fade) ease;
}

.home-card__step-dot .ds-icon {
  width: 16px;
  height: 16px;
  transition: opacity var(--ds-motion-fade) ease;
}

/* steps not reached yet while the sequence plays */
.home-card[data-stage="0"] .home-card__step,
.home-card[data-stage="1"] .home-card__step:not([data-step="1"]),
.home-card[data-stage="2"] .home-card__step[data-step="3"] {
  color: var(--home-muted);
}

.home-card[data-stage="0"] .home-card__step-dot,
.home-card[data-stage="1"]
  .home-card__step:not([data-step="1"])
  .home-card__step-dot,
.home-card[data-stage="2"]
  .home-card__step[data-step="3"]
  .home-card__step-dot {
  border-color: var(--ds-border);
  background: transparent;
}

.home-card[data-stage="0"] .home-card__step-dot .ds-icon,
.home-card[data-stage="1"] .home-card__step:not([data-step="1"]) .ds-icon,
.home-card[data-stage="2"] .home-card__step[data-step="3"] .ds-icon {
  opacity: 0;
}

.home-card__payout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-8);
  padding: var(--ds-space-12) var(--ds-space-16);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-12);
  background: var(--ds-surface-subtle);
  color: var(--ds-text);
  transition:
    opacity var(--ds-motion-fade) ease,
    transform var(--ds-motion-fade) ease;
}

.home-card:not([data-stage="done"]) .home-card__payout {
  opacity: 0;
  transform: translateY(var(--ds-space-8));
}

.home-card__payout-label {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-8);
  font-size: var(--ds-type-small-size);
  line-height: var(--ds-type-small-leading);
  font-weight: 500;
}

/* Trusted by */
.home-trusted {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ds-space-24);
  margin-top: var(--ds-space-64);
}

.home-trusted__label {
  margin: 0;
  color: var(--home-muted);
  font-size: var(--ds-type-eyebrow-size);
  line-height: var(--ds-type-eyebrow-leading);
  letter-spacing: var(--ds-type-eyebrow-tracking);
  font-weight: 600;
}

.home-trusted__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-24) var(--ds-space-64);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Partner logos in one ink tone (white in dark mode) */
.home-trusted__logo {
  display: block;
  width: auto;
  height: 32px;
  filter: brightness(0);
  opacity: 0.72;
}

/* the Türk Telekom Ventures PNG carries wide transparent margins */
.home-trusted__logo[data-logo="ttv"] {
  height: 56px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .home-trusted__logo {
    filter: brightness(0) invert(1);
  }
}

/* --------------------------------------------------------------------------
   2. Featured operators
   -------------------------------------------------------------------------- */

.home-operators {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: var(--ds-space-48);
  align-items: start;
}

.home-operators__intro {
  min-width: 0;
}

.home-carousel__controls {
  display: flex;
  align-items: center;
  gap: var(--ds-space-16);
  margin-top: var(--ds-space-32);
}

.home-carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ds-space-48);
  height: var(--ds-space-48);
  padding: 0;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-surface);
  color: var(--ds-text);
  cursor: pointer;
  transition: background-color var(--ds-motion-hover) ease;
}

.home-carousel__arrow:hover {
  background: color-mix(
    in srgb,
    var(--ds-surface),
    var(--ds-text) var(--ds-hover-tint)
  );
}

.home-carousel__arrow--prev .ds-icon {
  transform: scaleX(-1);
}

.home-carousel__arrow[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}

.home-carousel__pager {
  margin: 0;
  color: var(--home-muted);
  font-size: var(--ds-type-small-size);
  line-height: var(--ds-type-small-leading);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.home-carousel__pager [data-carousel-current] {
  color: var(--ds-text);
}

.home-carousel {
  display: flex;
  gap: var(--ds-space-24);
  min-width: 0;
  margin: 0;
  padding: var(--ds-space-8) 0;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--ds-radius-24);
}

.home-carousel::-webkit-scrollbar {
  display: none;
}

.home-carousel__slide {
  display: flex;
  flex: 0 0 calc((100% - 2 * var(--ds-space-24)) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

.home-carousel__slide > .ds-operator-card:not(.ds-operator-card--feature) {
  flex: 1;
  padding: var(--ds-space-16);
}

.home-carousel__slide > .ds-operator-card--feature {
  flex: 1;
}

/* Three cards share the row beside the heading: a 16px name keeps "name + Vetted" on one line uncut */
.home-carousel__slide
  .ds-operator-card:not(.ds-operator-card--feature)
  .ds-operator-card__name {
  font-size: var(--ds-type-body-size);
  line-height: 22px;
}

/* --------------------------------------------------------------------------
   3. Deal models
   -------------------------------------------------------------------------- */

.home-deals__head {
  margin-bottom: var(--ds-space-48);
}

.home-deals__flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ds-space-24);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-deals__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-12);
  min-width: 0;
  padding: var(--ds-space-32);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-24);
  background: var(--ds-inverse);
}

.home-deals__arrow {
  position: absolute;
  top: var(--ds-space-32);
  left: calc(-1 * var(--ds-space-24) + 2px);
  display: inline-flex;
  color: var(--home-muted);
}

.home-deals__arrow .ds-icon {
  width: 20px;
  height: 20px;
}

.home-deals__artifact {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-4);
  margin-top: auto;
  padding: var(--ds-space-12) var(--ds-space-16);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-12);
  background: var(--ds-surface-subtle);
}

.home-deals__artifact-label {
  color: var(--home-muted);
  font-size: var(--ds-type-caption-size);
  line-height: var(--ds-type-caption-leading);
}

.home-deals__artifact-value {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--ds-type-body-size);
  line-height: var(--ds-type-body-leading);
  font-weight: 600;
}

.home-deals__released {
  color: var(--ds-status-success-text);
}

.home-deals__more {
  margin-top: var(--ds-space-32);
}

/* --------------------------------------------------------------------------
   4. Promo video
   -------------------------------------------------------------------------- */

.home-video {
  text-align: center;
}

.home-video__frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: var(--ds-space-48);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-24);
  background: var(--ds-inverse);
  box-shadow: var(--ds-shadow-card);
}

.home-video__media {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* Cookiebot shows this over the frame while marketing cookies are declined (and hides it once accepted) */
.home-video__consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-16);
  padding: var(--ds-space-24);
  color: var(--ds-on-inverse);
  font-size: var(--ds-type-small-size);
  line-height: var(--ds-type-small-leading);
  text-align: center;
}

.home-video__consent p {
  max-width: 420px;
  margin: 0;
  color: inherit;
}

/* --------------------------------------------------------------------------
   5. Built for both sides
   -------------------------------------------------------------------------- */

.home-sides__title {
  max-width: 760px;
  margin: 0 auto var(--ds-space-48);
  text-align: center;
}

.home-sides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ds-space-24);
}

.home-side {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-16);
  min-width: 0;
  padding: var(--ds-space-48);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-24);
  scroll-margin-top: var(--ds-space-24);
}

.home-side--startups {
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-card);
}

.home-side--operators {
  background: var(--ds-ground);
}

.home-side__subline {
  margin: 0;
  color: var(--ds-text);
  font-size: var(--ds-type-body-size);
  line-height: var(--ds-type-body-leading);
  font-weight: 600;
}

.home-side__list {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-12);
  margin: var(--ds-space-8) 0 0;
  padding: 0;
  list-style: none;
  color: var(--ds-text);
  font-size: var(--ds-type-body-size);
  line-height: var(--ds-type-body-leading);
}

.home-side__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-12);
}

.home-side__list .ds-icon {
  margin-top: 3px;
}

.home-side__action {
  margin-top: auto;
  padding-top: var(--ds-space-16);
}

/* --------------------------------------------------------------------------
   6. FAQ
   -------------------------------------------------------------------------- */

.home-faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--ds-space-48);
  align-items: start;
}

.home-faq__kicker {
  margin: 0 0 var(--ds-space-16);
  color: var(--home-muted);
  font-size: var(--ds-type-small-size);
  line-height: var(--ds-type-small-leading);
  font-weight: 600;
}

.home-faq .ds-faq__answer > * + * {
  margin-top: var(--ds-space-12);
}

.home-faq__more {
  margin-top: var(--ds-space-24);
}

/* --------------------------------------------------------------------------
   7. Quotes
   -------------------------------------------------------------------------- */

.home-quotes__head {
  margin-bottom: var(--ds-space-48);
  text-align: center;
}

.home-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ds-space-24);
  align-items: stretch;
}

/* --------------------------------------------------------------------------
   8. Final call to action (ink panel)
   -------------------------------------------------------------------------- */

.home-cta {
  --text-dark: var(--ds-on-inverse);
  padding: var(--ds-space-120) var(--ds-space-48);
  border-radius: var(--ds-radius-24);
  background: var(--ds-inverse);
  color: var(--ds-on-inverse);
  text-align: center;
}

.home-cta .home-h2 {
  color: var(--ds-on-inverse);
}

.home-cta__lead {
  margin: var(--ds-space-16) 0 0;
  color: var(--ds-on-inverse-muted);
  font-size: var(--ds-type-body-l-size);
  line-height: var(--ds-type-body-l-leading);
}

.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ds-space-16);
  margin-top: var(--ds-space-32);
}

.home-cta__trust {
  margin: var(--ds-space-24) 0 0;
  color: var(--ds-on-inverse-muted);
  font-size: var(--ds-type-small-size);
  line-height: var(--ds-type-small-leading);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1279px) {
  .home-operators {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ds-space-32);
  }

  .home-operators__intro {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0 var(--ds-space-32);
  }

  .home-operators__intro > :not(.home-carousel__controls) {
    flex: 1 0 100%;
  }

  .home-operators__intro .home-lead {
    flex: 1 1 420px;
  }

  .home-carousel__controls {
    margin-top: var(--ds-space-16);
  }
}

/* Laptops (1280 to 1439px, where the page gutter is 80px but the content is under 1280px): three cards beside the
   intro would squeeze to 268px and cut the names, so two per row */
@media (min-width: 1280px) and (max-width: 1439px) {
  .home-carousel__slide {
    flex-basis: calc((100% - var(--ds-space-24)) / 2);
  }
}

/* The hero stacks at 1024px and below: copy, then the card */
@media (max-width: 1024px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ds-space-48);
  }

  .home-hero__visual {
    max-width: 600px;
  }
}

@media (max-width: 1023px) {
  .home-carousel__slide {
    flex-basis: calc((100% - var(--ds-space-24)) / 2);
  }

  .home-deals__flow {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ds-space-48);
  }

  .home-deals__arrow {
    top: calc(-1 * var(--ds-space-48) + 14px);
    left: var(--ds-space-32);
    transform: rotate(90deg);
  }

  .home-faq,
  .home-quotes {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ds-space-32);
  }

  .home-quotes {
    gap: var(--ds-space-16);
  }
}

@media (max-width: 767px) {
  .home-hero {
    padding-block: var(--ds-space-32) var(--ds-space-64);
  }

  .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero__actions .home-hero__button {
    width: 100%;
  }

  .home-card__body {
    padding: var(--ds-space-16);
  }

  .home-card__term dd {
    font-size: var(--ds-type-body-size);
    line-height: var(--ds-type-body-leading);
  }

  .home-card__milestone {
    flex-wrap: wrap;
  }

  .home-card__steps {
    justify-content: space-between;
    gap: var(--ds-space-4);
    font-size: var(--ds-type-caption-size);
    line-height: var(--ds-type-caption-leading);
  }

  .home-card__step,
  .home-card__step:first-child {
    flex: 0 1 auto;
    gap: var(--ds-space-4);
  }

  .home-card__step + .home-card__step::before {
    content: none;
  }

  .home-trusted__logos {
    gap: var(--ds-space-24) var(--ds-space-32);
  }

  .home-trusted__logo {
    height: 24px;
  }

  .home-trusted__logo[data-logo="ttv"] {
    height: 40px;
  }

  .home-carousel__slide {
    flex-basis: 100%;
  }

  .home-deals__step {
    padding: var(--ds-space-24);
  }

  .home-deals__arrow {
    left: var(--ds-space-24);
  }

  .home-video__frame {
    margin-top: var(--ds-space-32);
  }

  .home-sides {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-side {
    padding: var(--ds-space-24);
  }

  .home-sides__title,
  .home-quotes__head {
    margin-bottom: var(--ds-space-32);
  }

  .home-cta {
    padding: var(--ds-space-64) var(--ds-space-24);
  }

  .home-cta__actions .ds-btn {
    width: 100%;
  }
}

@media (max-width: 399px) {
  .home-card__terms {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Reduced motion: "Pay on Outcomes" stays, the card shows its final state, nothing fades
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .home-rotator__phrase {
    opacity: 0;
    transition: none;
  }

  .home-rotator__phrase:first-child {
    opacity: 1;
  }

  .home-card__step,
  .home-card__step-dot,
  .home-card__step-dot .ds-icon,
  .home-card__payout,
  .home-carousel__arrow {
    transition: none;
  }
}
