/* ==========================================================================
   KOMA BUSINESS · Ecosystem page
   Loaded after main.css. Everything here is scoped to .eco-* classes so the
   approved homepage cannot be affected. Values reconstructed from the live
   insidekoma.com/pages/ecosystem (GemPages) build.
   ========================================================================== */

:root {
  --eco-green-cta: #009b4e;
  --eco-green-cta-dim: #007c3e;
  --eco-cta-ink: #050a07;
  --eco-red: #911414;
  --eco-red-dot: #a11a1a;
  --eco-rule: rgba(230, 230, 230, 0.85);
  --eco-quote-line: rgba(255, 255, 255, 0.08);
}

/* Desktop/mobile composition switches (block-level; main.css's .only-d/.only-m
   are inline helpers for copy). */
.eco-m,
.eco-tier .eco-m {
  display: none;
}

/* Current page in the shared header */
.site-header__nav a[aria-current="page"] {
  color: var(--text-bright);
}

/* Hero (desktop)
   ========================================================================== */

.eco-hero {
  min-height: 992px;
  padding: 270px 31px 120px;
  background: linear-gradient(180deg, var(--bg) 1%, var(--bg) 51%, var(--teal-deep) 100%);
  text-align: center;
}

.eco-hero__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.eco-hero__eyebrow {
  margin-bottom: 20px;
  font-size: 16px;
}

.eco-hero__title {
  margin-bottom: 34px;
  color: var(--text);
  font-size: 76px;
  font-weight: 700;
  line-height: 1.3;
}

.eco-hero__lead {
  margin-bottom: 50px;
  color: var(--text);
  font-size: 23px;
  font-weight: 200;
  line-height: 1.3;
}

.eco-hero__cta {
  padding: 12px 30px;
}

/* Hero (mobile): video background
   ========================================================================== */

.eco-mhero {
  position: relative;
  min-height: 774px;
  padding: 210px 16px 96px;
  overflow: hidden;
  background: var(--bg);
  text-align: center;
  isolation: isolate;
}

.eco-mhero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.eco-mhero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eco-mhero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.62) 0%, rgba(10, 10, 10, 0.5) 45%, rgba(10, 10, 10, 0.78) 82%, var(--bg) 100%);
}

.eco-mhero__title {
  color: var(--text);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 0 10px #000;
}

.eco-mhero__cta {
  padding: 8px 30px;
  font-size: 11px;
  letter-spacing: normal;
}

.eco-mhero__sub {
  margin-bottom: 36px;
  color: var(--text);
  font-size: 14px;
  font-weight: 200;
  line-height: 1.8;
  text-shadow: 0 0 10px #000;
}

/* Levels intro
   ========================================================================== */

.eco-levels {
  padding: 198px 31px 180px;
  background: var(--bg);
}

.eco-intro {
  max-width: var(--content-max);
  margin: 0 auto 66px;
  text-align: center;
}

.eco-intro__title {
  color: var(--text);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
}

.eco-intro__line {
  color: var(--text-bright);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

.eco-intro__line--strong {
  color: var(--text);
  font-weight: 700;
}

/* Hero CTA → #levels continuation (set by ecosystem.js on click): the
   levels group rises a shorter distance, slightly slower, as one unit. */
.eco-hero__cta.is-pressed,
.eco-mhero__cta.is-pressed {
  transform: translateY(1px);
  filter: brightness(0.94);
}

.eco-levels.is-continuing {
  --reveal-distance: 12px;
  --reveal-duration: 1600ms;
}

.js .eco-levels.is-continuing .eco-intro.reveal {
  transition-delay: 120ms;
}

.js .eco-levels.is-continuing .eco-tiers.reveal {
  transition-delay: 260ms;
}

.eco-levels:focus {
  outline: none;
}

/* Pricing tiers (also used for the Inner Circle card)
   ========================================================================== */

.eco-tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  justify-content: center;
  gap: 16px 75px;
  max-width: 900px;
  margin: 0 auto 51px;
}

.eco-tier {
  display: flex;
  flex-direction: column;
  padding: 25px 16px 21px;
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-card);
  text-align: left;
}

.eco-tiers .eco-tier {
  min-height: 837px;
}

.eco-tier--operator {
  background: linear-gradient(140deg, #141414 9%, #000 56%, #141414 97%);
  box-shadow: 0 0 40px 0 rgba(10, 168, 89, 0.1);
}

.eco-tier__top {
  min-height: 174px;
}

.eco-tier__label {
  margin-bottom: 24px;
  color: var(--green-eyebrow);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  text-transform: uppercase;
}

.eco-tier__name {
  color: var(--text);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
}

.eco-tier--foundation .eco-tier__name,
.eco-tier--inner .eco-tier__name {
  margin-top: 24px;
}

.eco-tier--operator .eco-tier__name {
  color: var(--green-eyebrow);
}

.eco-tier--inner .eco-tier__name {
  color: var(--eco-red);
}

.eco-tier__tagline {
  color: var(--text);
  font-size: 16px;
  font-weight: 200;
  line-height: 1.8;
}

.eco-tier__price {
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
}

.eco-tier--operator .eco-tier__price {
  font-size: 23px;
}

.eco-tier__desc {
  color: var(--text-bright);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}

.eco-tier--operator .eco-tier__desc,
.eco-tier--inner .eco-tier__desc {
  color: var(--text);
}

.eco-tier__rule {
  height: 1px;
  margin: 50px 0 30px;
  border: 0;
  background: var(--eco-rule);
}

.eco-tier--operator .eco-tier__rule,
.eco-tier--inner .eco-tier__rule {
  margin-top: 27px;
}

.eco-tier__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 27px;
  padding: 0;
  list-style: none;
}

.eco-tier__list li {
  position: relative;
  padding: 2.5px 0 2.5px 35px;
  color: var(--text);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
}

.eco-tier__list li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--green);
}

.eco-tier--inner .eco-tier__list li::before {
  background: var(--eco-red-dot);
}

.eco-tier__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: auto 2px 0;
  padding: 14px 24px;
  background: var(--eco-green-cta);
  color: var(--eco-cta-ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: normal;
  box-shadow:
    0 0 28px rgba(0, 155, 78, 0.24),
    0 10px 30px rgba(0, 0, 0, 0.28);
  transition:
    transform var(--hover-duration) var(--ease-out),
    filter var(--hover-duration) var(--ease-out);
}

.eco-tier--foundation .eco-tier__cta {
  background: var(--eco-green-cta-dim);
  box-shadow: none;
}

/* Payment reassurance under each plan CTA */
.eco-tier__assure {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 10px 0 0;
  text-align: center;
}

.eco-tier__assure-terms {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 18px;
  opacity: 0.82;
}

.eco-tier__assure-secure {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 300;
  line-height: 15px;
}

/* Inner Circle: narrower, dark red atmosphere */
.eco-tier--inner {
  width: 100%;
  max-width: 400px;
  min-height: 640px;
  margin: 0 auto;
  padding-bottom: 0;
  background: linear-gradient(130deg, #160606 1%, #000 51%, #0d0303 88%, #110404 100%);
}

.eco-tier--inner .eco-tier__list {
  margin-bottom: 48px;
}

/* Product links under the pricing cards */
.eco-product-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 680px;
  margin: 0 auto;
  row-gap: 16px;
}

.eco-product-links .text-link {
  justify-self: center;
  max-width: 100%;
  text-align: center;
}

/* Members + testimonials
   ========================================================================== */

.eco-proof {
  padding: 104px 0 72px;
  background: var(--bg);
  overflow: hidden;
}

.eco-proof__head {
  max-width: 920px;
  margin: 0 auto 42px;
  padding: 0 24px;
  text-align: center;
}

.eco-proof__title {
  color: #f5f5f5;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: wrap;
}

.eco-members {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
}

.eco-member {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  margin-left: -10px;
  overflow: hidden;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: #171717;
}

.eco-member:first-child {
  margin-left: 0;
}

.eco-member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eco-member--count {
  background: #f1f1f1;
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

/* Marquee: the track holds two identical sets and slides by exactly one set
   (half the track plus half a gap), so the loop is seamless. */
.eco-marquee {
  --eco-marquee-gap: 16px;
  --eco-marquee-duration: 32s;
  --eco-marquee-fade: 120px;
  position: relative;
  overflow: hidden;
  padding: 14px 0;
}

.eco-marquee::before,
.eco-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: var(--eco-marquee-fade);
  pointer-events: none;
}

.eco-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(10, 10, 10, 0) 100%);
}

.eco-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 0%, rgba(10, 10, 10, 0) 100%);
}

.eco-marquee__track {
  display: flex;
  width: max-content;
  gap: var(--eco-marquee-gap);
  animation: eco-marquee var(--eco-marquee-duration) linear infinite;
  animation-delay: calc(var(--eco-marquee-duration) * -0.14);
  will-change: transform;
}

@keyframes eco-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-50% - var(--eco-marquee-gap) / 2), 0, 0);
  }
}

.eco-quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 360px;
  min-height: 220px;
  flex: none;
  padding: 26px;
  border: 1px solid var(--eco-quote-line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.eco-quote__text {
  margin-bottom: 30px;
  color: #e5e5e5;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
}

.eco-quote__who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eco-quote__who img {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.eco-quote__name {
  display: block;
  margin-bottom: 2px;
  color: #f4f4f4;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.eco-quote__role {
  display: block;
  color: #888;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.8;
}

/* Inner Circle
   ========================================================================== */

.eco-inner {
  padding: 48px 31px 0;
  background: var(--bg);
}

.eco-inner__heading {
  margin-bottom: 39px;
  color: var(--text);
  font-size: 35px;
  line-height: 1.3;
  text-align: center;
}

/* More than a subscription
   ========================================================================== */

.eco-more {
  padding: 173px 31px 0;
  background: var(--bg);
  text-align: center;
}

.eco-more__title {
  margin-bottom: 62px;
  color: var(--text);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.8;
}

.eco-more__grid {
  /* Centres however many cards are shown (one while "Events & community"
     is pending confirmation), with no empty column left behind. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.eco-more__card {
  flex: 0 1 350px;
  min-width: 0;
}

.eco-more__card {
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-card);
  text-align: left;
}

.eco-more__label {
  margin-bottom: 22px;
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
  text-transform: uppercase;
}

.eco-more__name {
  margin-bottom: 20px;
  text-wrap: wrap;
  color: var(--text);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
}

.eco-more__body {
  color: var(--text);
  font-size: 15px;
  font-weight: 200;
  line-height: 1.8;
}

/* Final CTA
   ========================================================================== */

.eco-final {
  padding: 317px 31px 282px;
  background: var(--bg);
  text-align: center;
}

.eco-final__title {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 61px;
  font-weight: 600;
  line-height: 1;
}

.eco-final__text {
  margin-bottom: 79px;
  color: var(--text-muted);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
}

.eco-final__text strong {
  color: var(--text);
  font-weight: 500;
}

/* Hover (desktop pointers only)
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {
  .eco-tier,
  .eco-more__card {
    transition: border-color var(--hover-duration) var(--ease-out);
  }

  .eco-tier:hover,
  .eco-more__card:hover {
    border-color: var(--line-card-hover);
  }

  .eco-tier--inner:hover {
    border-color: rgba(90, 20, 20, 0.75);
  }

  .eco-tier__cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
  }

  .eco-marquee:hover .eco-marquee__track {
    animation-play-state: paused;
  }
}

/* Tablet / small laptop
   ========================================================================== */

@media (max-width: 1100px) {
  .eco-hero__title {
    font-size: clamp(56px, 6.4vw, 76px);
  }

  .eco-hero__lead {
    font-size: 21px;
  }

  .eco-intro__title {
    font-size: clamp(40px, 4.4vw, 48px);
  }

  .eco-proof__title {
    font-size: clamp(52px, 5.8vw, 64px);
  }

  .eco-tiers {
    gap: 16px 32px;
  }
}

@media (max-width: 900px) {
  .eco-br-wide {
    display: none;
  }

  .eco-hero__lead {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-size: 20px;
  }

  .eco-tiers {
    gap: 16px 20px;
  }

  .eco-tier__list li {
    padding-left: 28px;
    font-size: 15px;
  }

  .eco-tier__list li::before {
    left: 12px;
  }
}

/* Mobile
   ========================================================================== */

@media (max-width: 767px) {
  .eco-d,
  .eco-tier .eco-d {
    display: none;
  }

  .eco-m {
    display: block;
  }

  .eco-tier .eco-m {
    display: flex;
  }

  /* Levels */
  .eco-levels {
    padding: 148px 20px 147px;
  }

  .eco-intro {
    margin: 0 -4px 55px;
  }

  .eco-intro__kicker {
    color: var(--text);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
  }

  .eco-intro__title {
    font-size: 41px;
    font-weight: 300;
    line-height: 1;
    text-wrap: wrap;
  }

  .eco-intro__line {
    margin-top: 5px;
    color: var(--text);
    font-size: 13px;
    font-weight: 300;
  }

  .eco-tiers {
    grid-template-columns: minmax(0, 1fr);
    gap: 57px;
    max-width: 350px;
    margin-bottom: 79px;
  }

  .eco-tiers .eco-tier {
    min-height: 551px;
  }

  .eco-tiers .eco-tier--operator {
    min-height: 728px;
  }

  .eco-tier--operator {
    order: -1;
    box-shadow: 0 0 20px 0 rgba(10, 168, 89, 0.05);
  }

  .eco-tier {
    padding-bottom: 20px;
  }

  .eco-tier__top {
    min-height: 147px;
  }

  .eco-tier--foundation .eco-tier__top {
    min-height: 151px;
  }

  .eco-tier__label {
    margin-bottom: 25px;
    font-size: 13px;
  }

  .eco-tier__name {
    font-size: 36px;
  }

  .eco-tier__tagline {
    font-size: 14px;
  }

  .eco-tier__price,
  .eco-tier--operator .eco-tier__price {
    font-size: 22px;
    font-weight: 700;
  }

  .eco-tier__desc {
    font-size: 13px;
    line-height: 1.8;
  }

  .eco-tier--foundation .eco-tier__desc {
    font-size: 14px;
  }

  .eco-tier__rule,
  .eco-tier--operator .eco-tier__rule {
    margin: 14px 0 29px;
  }

  .eco-tier--foundation .eco-tier__rule {
    margin: 24px 0 33px;
  }

  .eco-tier__list {
    gap: 4px;
    margin-bottom: 30px;
  }

  .eco-tier__list li {
    padding: 5px 0 5px 35px;
    font-size: 13px;
  }

  .eco-tier__list li::before {
    left: 16px;
  }

  .eco-tier__cta {
    margin-left: 2px;
    margin-right: 2px;
  }

  .eco-tier--foundation .eco-tier__cta {
    box-shadow: none;
  }

  .eco-product-links {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  /* Members + testimonials */
  .eco-proof {
    padding: 98px 16px 72px;
  }

  .eco-proof__head {
    margin-bottom: 28px;
    padding: 0 18px;
  }

  .eco-proof__title {
    font-size: 34px;
    line-height: 1.04;
  }

  .eco-members {
    margin-top: 22px;
  }

  .eco-member {
    width: 42px;
    height: 42px;
    margin-left: -9px;
  }

  .eco-member--count {
    font-size: 11px;
  }

  .eco-marquee {
    --eco-marquee-gap: 12px;
    --eco-marquee-duration: 26s;
    --eco-marquee-fade: 28px;
    padding: 10px 0;
  }

  .eco-quote {
    width: 285px;
    min-height: 205px;
    padding: 21px;
    border-radius: 18px;
    box-shadow:
      0 14px 40px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  .eco-quote__text {
    margin-bottom: 26px;
    font-size: 15px;
    line-height: 1.5;
  }

  .eco-quote__who {
    gap: 11px;
  }

  .eco-quote__who img {
    width: 40px;
    height: 40px;
  }

  .eco-quote__name {
    font-size: 13px;
  }

  .eco-quote__role {
    font-size: 11px;
  }

  /* Inner Circle */
  .eco-inner {
    padding: 32px 20px 0;
  }

  .eco-tier--inner {
    max-width: 350px;
    min-height: 673px;
    padding-bottom: 0;
    background: linear-gradient(140deg, #141414 9%, #000 56%, #141414 97%);
  }

  .eco-tier--inner .eco-tier__name {
    font-size: 41px;
  }

  .eco-tier--inner .eco-tier__top {
    min-height: 176px;
  }

  .eco-tier--inner .eco-tier__price {
    font-size: 14px;
    font-weight: 500;
  }

  .eco-tier--inner .eco-tier__desc {
    font-size: 14px;
  }

  .eco-tier--inner .eco-tier__rule {
    margin: 27px 0 35px;
  }

  .eco-tier--inner .eco-tier__list {
    gap: 12px;
    margin-bottom: 60px;
  }

  .eco-tier--inner .eco-tier__list li {
    padding-top: 1px;
    padding-bottom: 1px;
    font-size: 14px;
  }

  /* More than a subscription */
  .eco-more {
    padding: 216px 20px 0;
  }

  .eco-more__title {
    margin-bottom: 62px;
    font-size: 19px;
  }

  .eco-more__grid {
    gap: 40px;
  }

  .eco-more__card {
    padding: 25px 16px 48px;
  }

  .eco-more__label {
    margin-bottom: 21px;
    font-size: 14px;
  }

  .eco-more__name {
    font-size: 41px;
  }

  .eco-more__body {
    font-size: 14px;
  }

  /* Final CTA */
  .eco-final {
    padding: 317px 16px 323px;
  }

  .eco-final__title {
    margin-bottom: 19px;
    font-size: 41px;
    line-height: 1.3;
  }

  .eco-final__text {
    margin-bottom: 40px;
    font-size: 15px;
    line-height: 1.8;
  }
}

@media (max-width: 380px) {
  .eco-intro__title,
  .eco-tier--inner .eco-tier__name,
  .eco-more__name,
  .eco-final__title {
    font-size: 36px;
  }

  .eco-tier__name {
    font-size: 32px;
  }
}

/* Reduced motion: no marquee; the strip becomes a plain horizontal scroller
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .eco-marquee {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .eco-marquee::-webkit-scrollbar {
    display: none;
  }

  .eco-marquee::before,
  .eco-marquee::after {
    display: none;
  }

  .eco-marquee__track {
    animation: none;
    padding: 0 16px;
  }

  .eco-quote--clone {
    display: none;
  }

  .eco-mhero__video {
    display: none;
  }
}
