/* ============================================================
   COMPONENTS.CSS — reusable BEM components
   header / nav / buttons / sections / cards / tables / steps /
   lists / chips / notice / faq / cta / footer
   Mobile-first: base styles target small screens.
   ============================================================ */

/* ---------- Scroll progress bar (injected by main.js) ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--mint), var(--action));
  z-index: 300;
  pointer-events: none;
  will-change: width;
}

/* ---------- Button ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  transition: transform .15s ease, opacity .15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: .92;
}

.btn--dark {
  background: var(--forest);
  color: var(--mint);
}

.btn--white {
  background: var(--white);
  color: var(--forest-mid);
  box-shadow: 0 2px 10px rgba(21, 51, 23, .10);
}

.btn--green {
  background: var(--action);
  color: var(--white);
}

.btn--block {
  display: block;
  width: 100%;
}

.btn--glow {
  box-shadow: 0 10px 28px rgba(21, 51, 23, .3);
}

.btn--glow:hover {
  box-shadow: 0 14px 34px rgba(21, 51, 23, .4);
}

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-block;
  background: var(--mint-light);
  border: 1px solid #6BC470;
  color: var(--forest);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 999px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.eyebrow--white {
  background: var(--white);
  border-color: var(--white);
}

/* ---------- Topbar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--mint), var(--mint-light));
  padding: 7px 0;
}

.topbar__inner {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.topbar__text {
  color: var(--forest);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__text--right {
  display: none;
}

/* ---------- Header (glass over content) ---------- */
.header {
  background: rgba(21, 51, 23, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(138, 218, 142, .12);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .25s ease;
}

.header.is-scrolled {
  box-shadow: 0 10px 30px rgba(8, 20, 9, .35);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* ---------- Logo (mark + wordmark + tag) ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(21, 51, 23, .22), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.logo__mark svg {
  width: 19px;
  height: 19px;
  fill: var(--action);
}

.logo__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--mint);
  line-height: 1;
}

.logo__alt {
  color: var(--white);
}

@media (min-width: 768px) {
  .topbar__inner {
    justify-content: space-between;
  }

  .topbar__text--right {
    display: block;
  }
}

/* ---------- Nav ---------- */
.nav__toggle {
  display: block;
  width: 42px;
  height: 42px;
  padding: 8px;
  /* Mobile: pin the burger to the right, logo stays on the left */
  margin-left: auto;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--mint);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__list {
  display: flex;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--forest);
  flex-direction: column;
  padding: 8px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px));
  gap: 2px;
  list-style: none;
  border-top: 1px solid #2A4A2C;
  box-shadow: 0 22px 44px rgba(0, 0, 0, .4);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.nav__list.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__list li {
  width: 100%;
}

/* Backdrop behind the open mobile menu */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 9, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
  z-index: 90;
  cursor: pointer;
}

.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

body.nav-open {
  overflow: hidden;
}

.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 6px;
  color: #CFEBD1;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid rgba(138, 218, 142, .08);
  transition: color .15s ease;
}

.nav__link::after {
  content: "";
  display: none;
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--mint);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__link--login {
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  border: 1px solid rgba(138, 218, 142, .4);
  border-bottom: 1px solid rgba(138, 218, 142, .4);
  padding: 13px 20px;
  border-radius: 12px;
  color: var(--mint);
  transition: background .15s ease, border-color .15s ease;
}

.nav__link--login::after {
  display: none;
}

.nav__link--login:hover {
  background: rgba(138, 218, 142, .12);
  border-color: rgba(138, 218, 142, .7);
}

.nav__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 8px;
  gap: 7px;
  background: linear-gradient(135deg, var(--mint), #6FCB74);
  color: var(--forest);
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(138, 218, 142, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}

.nav__cta svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(138, 218, 142, .5);
}

.nav__cta:hover svg {
  transform: translateX(3px);
}

/* ---------- Section ---------- */
.section {
  padding: 64px 0;
}

/* Colored sections become rounded panels inset from the page edge,
   so every band reads as its own distinct block */
.section--mint,
.section--pale,
.section--cream {
  border-radius: 26px;
  margin: 14px 12px;
  position: relative;
  overflow: hidden;
}

.section--mint {
  background: var(--mint);
}

.section--pale {
  background: var(--mint-pale);
}

.section--cream {
  background: var(--cream);
}

.section__head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section__title {
  margin: 14px 0 12px;
}

.section__lead {
  font-size: 16.5px;
}

.section--mint .section__lead {
  color: var(--forest-mid);
}

.section__body {
  max-width: 820px;
  margin: 0 auto;
}

.section__body>p {
  margin-bottom: 18px;
}

.section__body h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: clamp(21px, 3vw, 26px);
}

.section__body h2:first-child {
  margin-top: 0;
}

.section__body h3 {
  margin-top: 22px;
  margin-bottom: 8px;
}

.section__body ul {
  margin: 0 0 18px 20px;
}

.section__body li {
  margin-bottom: 8px;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ---------- Card ---------- */
.card {
  background: var(--mint-pale);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card--white {
  background: var(--white);
}

.card--float {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.card--float:hover {
  box-shadow: var(--shadow-float);
}

.card__icon {
  width: 52px;
  height: 52px;
  background: var(--forest-mid);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--mint);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__title {
  margin-bottom: 8px;
}

.card__text {
  font-size: 15.5px;
}

.card__num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--action);
  letter-spacing: .06em;
  margin-bottom: 10px;
}

/* ---------- Glance pills (at-a-glance facts, replaces tables) ---------- */
.glance {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.glance__item {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--white);
  border: 1px solid #E4F1E5;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
}

.glance__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--mint-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.glance__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--forest-mid);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glance__label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--forest-mid);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.glance__value {
  font-weight: 600;
  color: var(--forest);
  font-size: 15px;
}

/* ---------- Payment method card rows ---------- */
.pay-card__rows {
  margin-top: 16px;
  display: grid;
  gap: 9px;
}

.pay-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  border-bottom: 1px dashed #DCEDDD;
  padding-bottom: 9px;
}

.pay-card__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pay-card__row b {
  color: var(--forest);
  font-weight: 600;
  text-align: right;
}

/* ---------- Game card (casino, with RTP badge) ---------- */
.game-card {
  position: relative;
}

.game-card__rtp {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--forest);
  color: var(--mint);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 999px;
}

.game-card__provider {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: 6px;
}

/* ---------- Review card (testimonials) ---------- */
.rating-line {
  text-align: center;
  font-weight: 600;
  color: var(--cream-text);
  margin-bottom: 32px;
}

.rating-line b {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--cream-text);
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.review-card__stars {
  color: #E8A33D;
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.review-card__text {
  font-size: 15px;
  font-style: italic;
  margin-bottom: 14px;
}

.review-card__author {
  font-weight: 600;
  color: var(--forest);
  font-size: 14px;
  font-style: normal;
  display: block;
}

.review-card__author small {
  display: block;
  font-weight: 500;
  color: var(--body-text);
  font-size: 12.5px;
}

/* ---------- Spec chips (app facts, sports lists) ---------- */
.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.spec-chips__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--mint-pale);
  border: 1px solid #DCEDDD;
  color: var(--forest);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}

.spec-chips--center {
  justify-content: center;
}

/* ---------- Steps (numbered process) ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.steps__item {
  counter-increment: step;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 20px 18px 64px;
  position: relative;
  box-shadow: var(--shadow-card);
  font-size: 15.5px;
}

.steps__item::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  background: var(--action);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps--on-mint .steps__item {
  box-shadow: none;
}

/* ---------- Check list ---------- */
.list-check {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.list-check__item {
  position: relative;
  padding-left: 32px;
  font-size: 15.5px;
}

.list-check__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--action) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Chips (category tags) ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  margin: 18px 0 8px;
}

.chips__item {
  background: var(--white);
  color: var(--forest-mid);
  font-weight: 600;
  font-size: 14px;
  padding: 7px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

/* ---------- Notice (responsible gambling / 18+) ---------- */
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border-left: 4px solid var(--action);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 14.5px;
  margin: 28px 0 0;
}

.notice__badge {
  flex-shrink: 0;
  background: var(--forest);
  color: var(--mint);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
}

/* ---------- FAQ (native details/summary) ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq__item {
  background: var(--mint-pale);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq__question {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--forest);
  cursor: pointer;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  font-size: 24px;
  font-weight: 600;
  color: var(--action);
  flex-shrink: 0;
  line-height: 1;
  transition: transform .25s ease;
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 24px 22px;
  font-size: 15.5px;
}

/* ---------- CTA band ---------- */
.cta {
  background: var(--mint);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--mint-light);
  top: -150px;
  right: -120px;
}

.cta__inner {
  position: relative;
  z-index: 1;
}

.cta__title {
  margin-bottom: 12px;
}

.cta__text {
  color: var(--forest-mid);
  max-width: 520px;
  margin: 0 auto 30px;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--forest);
  padding: 56px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer__about-text {
  color: #9CC49F;
  font-size: 14.5px;
  margin-top: 14px;
  max-width: 300px;
}

.footer__heading {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: 10px;
}

.footer__link {
  color: #9CC49F;
  font-size: 14.5px;
  transition: color .15s ease;
}

.footer__link:hover {
  color: var(--mint);
}

.footer__notice {
  border-top: 1px solid #2A4A2C;
  padding-top: 22px;
  margin-bottom: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer__notice p {
  color: #7AA67E;
  font-size: 13px;
  line-height: 1.6;
}

.footer__badge {
  flex-shrink: 0;
  border: 2px solid var(--mint);
  color: var(--mint);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 10px;
}

.footer__bottom {
  border-top: 1px solid #2A4A2C;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__bottom span {
  color: #7AA67E;
  font-size: 13.5px;
}

/* ============================================================
   Breakpoints — tablet & desktop
   ============================================================ */
@media (min-width: 768px) {
  .section {
    padding: 88px 0;
  }

  .section__head {
    margin-bottom: 52px;
  }

  .section--mint,
  .section--pale,
  .section--cream {
    border-radius: 34px;
    margin: 22px 20px;
  }

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

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

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

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

  .steps--2col {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta__actions {
    flex-direction: row;
    justify-content: center;
  }

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

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .header__inner {
    height: 72px;
  }

  .nav__toggle {
    display: none;
  }

  .nav__list {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list li {
    width: auto;
  }

  .nav__link {
    display: inline-block;
    width: auto;
    padding: 0;
    font-size: 15px;
    border-bottom: none;
  }

  .nav__link::after {
    display: block;
  }

  .nav__link--login {
    width: auto;
    margin-top: 0;
    padding: 8px 20px;
    border: 1px solid rgba(138, 218, 142, .4);
    border-radius: 999px;
  }

  .nav__cta {
    display: inline-flex;
    width: auto;
    margin-top: 0;
    padding: 10px 22px;
    border-radius: 999px;
  }

  .nav-backdrop {
    display: none;
  }

  .section--mint,
  .section--pale,
  .section--cream {
    margin: 26px auto;
    max-width: 1400px;
  }

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

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

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}