
:root {
  --bg: #07080c;
  --surface: #0f1118;
  --surface-2: #151923;
  --line: #2a2f3b;
  --text: #f7f8fb;
  --muted: #b3b9c5;
  --gold: #f3c247;
  --gold-2: #ffe38a;
  --red: #8f1118;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #161922;
  background: #f7f8fb;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px max(20px, calc((100% - var(--max)) / 2));
  color: #fff;
  background: rgba(7, 8, 12, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -1.2px;
}

.brand .we {
  color: #fff;
}

.brand .eight {
  margin-left: 2px;
  color: var(--gold);
}

.site-header nav {
  display: flex;
  flex: 1;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.site-header nav a {
  color: #d8dde6;
  font-size: 13px;
  font-weight: 650;
}

.site-header nav a:hover {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #15130b;
  font-weight: 850;
  box-shadow: 0 12px 30px rgba(243, 194, 71, 0.16);
}

.btn.small {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 14px;
}

.btn.ghost,
.dark-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 9, 13, 0.26);
  color: #fff;
  box-shadow: none;
}

.dark-ghost {
  color: #fff;
}

.hero {
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding: 92px max(20px, calc((100% - var(--max)) / 2));
  background-image:
    linear-gradient(90deg, rgba(4, 5, 8, 0.97) 0%, rgba(4, 5, 8, 0.91) 34%, rgba(4, 5, 8, 0.55) 62%, rgba(4, 5, 8, 0.18) 100%),
    linear-gradient(180deg, rgba(7, 8, 12, 0.03), rgba(7, 8, 12, 0.54)),
    url("images/hero-main.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 18px;
  max-width: 900px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-shadow: 0 5px 28px rgba(0, 0, 0, 0.38);
}

.hero p {
  margin: 0;
  max-width: 760px;
  color: #e2e6ed;
  font-size: 18px;
}

.hero-actions,
.cta-row,
.stacked-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 28px;
}

.cta-row {
  margin-top: 22px;
}

.stacked-cta {
  align-items: flex-start;
}

.trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.trust-row span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #e5e8ef;
  background: rgba(5, 6, 9, 0.5);
  font-size: 13px;
  backdrop-filter: blur(6px);
}

.category-nav {
  margin-top: -34px;
  position: relative;
  z-index: 4;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.category-card {
  min-height: 126px;
  padding: 20px;
  border: 1px solid #e2e5ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(31, 38, 51, 0.08);
}

.category-card span {
  display: block;
  color: #a47700;
  font-size: 11px;
  font-weight: 900;
}

.category-card strong {
  display: block;
  margin: 7px 0 5px;
  font-size: 16px;
}

.category-card small {
  color: #6c7481;
  font-size: 12px;
}

.section {
  padding: 86px 0;
}

.section.dark {
  color: #fff;
  background: var(--bg);
}

.section.soft {
  background: #fff8e6;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 34px;
}

.section h2 {
  margin: 8px 0 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-head p,
.copy p,
.copy li {
  color: #626a77;
}

.dark .section-head p,
.dark .copy p,
.dark .copy li {
  color: #b8bec9;
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 16px;
}

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

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

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

.media-card,
.note-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #252b36;
  background: #11141c;
}

.note-card {
  padding: 0;
}

.media-card img,
.note-card img,
.rounded-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.rounded-img {
  border-radius: 20px;
}

.media-card .copy,
.note-card .copy {
  padding: 20px;
}

.media-card h3,
.note-card h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 20px;
}

.note-card h3 {
  color: #1b1f29;
}

.media-card p,
.note-card p,
.note-card li {
  margin: 0;
  color: #aeb5c1;
  font-size: 14px;
}

.note-card ul {
  margin: 0 0 14px 18px;
  padding: 0;
}

.inline-cta {
  display: inline-flex;
  margin-top: 14px;
  color: var(--gold-2);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e5eb;
  border-radius: 18px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid #e7e9ee;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f2f4f7;
  font-size: 13px;
}

td {
  font-size: 14px;
  color: #4f5663;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

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

.badge {
  padding: 18px;
  border: 1px solid #e2e5ea;
  border-radius: 15px;
  background: #fff;
}

.badge strong {
  display: block;
  font-size: 18px;
}

.badge span {
  color: #69717f;
  font-size: 12px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.step {
  padding: 22px;
  border-radius: 16px;
  background: #11141c;
  border: 1px solid #252b36;
}

.step b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #14120a;
  background: var(--gold);
}

.step h3 {
  margin: 0 0 7px;
  color: #fff;
}

.step p {
  margin: 0;
  color: #abb2bf;
  font-size: 13px;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.provider {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e2e5eb;
  background: #fff;
}

.provider strong {
  /*display: block;*/
  margin-bottom: 5px;
}

.provider span {
  color: #6b7380;
  font-size: 13px;
}

.feature-split {
  align-items: center;
  margin-bottom: 18px;
}

.feature-copy p {
  margin-top: 0;
}

.payment-notes {
  margin-top: 18px;
}

.faq details {
  padding: 18px 0;
  border-top: 1px solid #e1e4ea;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq p {
  max-width: 900px;
  color: #626b78;
}

.cta-band {
  margin: 24px auto 80px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #171a22, #08090d);
}

.cta-band h2 {
  margin: 6px 0 10px;
  font-size: 38px;
  line-height: 1.08;
}

.cta-band p {
  margin: 0;
  color: #b7bdc7;
}

.site-footer {
  padding: 46px max(20px, calc((100% - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 30px;
  color: #aeb4bf;
  background: #05060a;
  border-top: 1px solid #191d25;
}

.site-footer p {
  margin: 6px 0;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
}

@media (max-width: 1080px) {
  .site-header nav {
    display: none;
  }

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

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

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

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

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

@media (max-width: 760px) {
  .hero {
    min-height: 640px;
    padding: 72px 18px;
    background-position: 62% center;
    background-image:
      linear-gradient(90deg, rgba(4, 5, 8, 0.97) 0%, rgba(4, 5, 8, 0.9) 58%, rgba(4, 5, 8, 0.55) 100%),
      linear-gradient(180deg, rgba(7, 8, 12, 0.04), rgba(7, 8, 12, 0.58)),
      url("images/hero-main.png");
  }

  .hero h1 {
    font-size: 44px;
  }

  .category-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .provider-grid,
  .step-list,
  .badge-grid,
  .site-footer,
  .section-head {
    grid-template-columns: 1fr;
  }

  .badge-grid-two {
    grid-template-columns: 1fr;
  }

  .category-nav {
    margin-top: 0;
    padding-top: 18px;
  }

  .cta-band {
    margin: 18px 20px 60px;
    padding: 30px;
    display: block;
  }

  .stacked-cta,
  .cta-row {
    margin-top: 18px;
  }
}


.top-cta-strip {
  color: #fff;
  background: linear-gradient(90deg, #7b0f15, #11141b);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.top-cta-inner p {
  margin: 0;
  color: #e7ebf2;
  font-size: 14px;
}

.top-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-cluster {
  padding: 18px 0 8px;
}

.cta-cluster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cta-tile {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #151922, #0a0c12);
  border: 1px solid #232936;
  color: #fff;
  box-shadow: 0 10px 26px rgba(17, 22, 30, 0.14);
}

.cta-tile strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  color: var(--gold-2);
}

.cta-tile span {
  color: #c0c7d2;
  font-size: 13px;
}

.mini-cta-band {
  margin-top: 22px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.mini-cta-band span {
  margin-right: auto;
  font-weight: 700;
  color: #fff;
}

.section:not(.dark) .mini-cta-band {
  background: #11141c;
  border-color: #232936;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #16120a;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(0,0,0,0.25);
}

@media (max-width: 1080px) {
  .cta-cluster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .top-cta-inner,
  .cta-cluster-grid,
  .mini-cta-band {
    grid-template-columns: 1fr;
  }

  .top-cta-inner {
    display: block;
  }

  .top-cta-actions {
    margin-top: 10px;
  }

  .cta-cluster-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mini-cta-band span {
    margin-right: 0;
    width: 100%;
  }

  .floating-cta {
    right: 12px;
    left: 12px;
    text-align: center;
  }
}


/* Reference-style split hero */
.hero {
  min-height: auto;
  padding: 66px 0 74px;
  background:
    radial-gradient(circle at 78% 35%, rgba(243, 194, 71, 0.12), transparent 28%),
    linear-gradient(145deg, #07080c 0%, #0b0d13 58%, #16100b 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 720px;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(48px, 6vw, 78px);
}

.hero-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  background: #11141c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.34);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 22%;
}

.hero-visual figcaption {
  padding: 12px 16px;
  color: #c8ced8;
  background: #0c0e14;
  font-size: 12px;
  text-align: center;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
}

.hero-links a {
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
}

.hero-note {
  margin-top: 20px !important;
  color: #9fa7b4 !important;
  font-size: 12px !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-login {
  padding: 9px 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.seo-cards article {
  padding: 24px;
  border: 1px solid #e2e5eb;
  border-radius: 18px;
  background: #fff;
}

.seo-cards h3,
.option-card h3 {
  margin: 0 0 9px;
  font-size: 20px;
}

.seo-cards p {
  margin: 0;
  color: #626a77;
}

.option-grid {
  gap: 18px;
}

.option-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
  border: 1px solid #e2e5eb;
  border-radius: 18px;
  background: #fff;
}

.option-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.option-card > div {
  padding: 22px;
}

.option-card p {
  margin: 0;
  color: #626a77;
  font-size: 14px;
}

.payment-guide {
  background: #f7f8fb;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-visual {
    max-width: 720px;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 54px 0 60px;
    background:
      radial-gradient(circle at 80% 20%, rgba(243, 194, 71, 0.1), transparent 30%),
      #07080c;
  }

  .hero-grid {
    width: min(100% - 36px, var(--max));
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-visual img {
    object-position: center 20%;
  }

  .option-card {
    grid-template-columns: 1fr;
  }

  .option-card img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .header-actions .header-login {
    display: none;
  }
}


/* ==========================================
   FINAL VISUAL QA: COLOR + BOX ALIGNMENT
   ========================================== */

/* Strong, consistent text contrast */
body {
  color: #181b23;
}

.section:not(.dark) h2,
.section:not(.dark) h3,
.section:not(.dark) strong {
  color: #171a22;
}

.section:not(.dark) .section-head p,
.section:not(.dark) .copy p,
.section:not(.dark) .copy li,
.section:not(.dark) .provider span,
.section:not(.dark) .badge span,
.section:not(.dark) .option-card p,
.section:not(.dark) .seo-cards p {
  color: #59616e;
}

.section.dark h2,
.section.dark h3,
.section.dark strong {
  color: #ffffff;
}

.section.dark .section-head p,
.section.dark .copy p,
.section.dark .copy li,
.section.dark .media-card p {
  color: #c0c6d0;
}

.section:not(.dark) .eyebrow {
  color: #8a6200;
}

.section.dark .eyebrow,
.hero .eyebrow,
.cta-band .eyebrow {
  color: var(--gold-2);
}

/* Fix dark cards that previously mixed dark backgrounds with dark headings */
.note-card {
  background: #ffffff;
  border-color: #e1e5eb;
}

.note-card h3 {
  color: #171a22;
}

.note-card p,
.note-card li {
  color: #59616e;
}

/* Light-section ghost buttons need dark text/border */
.section:not(.dark) .dark-ghost,
.section:not(.dark) .btn.ghost,
.cta-row .dark-ghost {
  color: #171a22;
  background: #ffffff;
  border: 1px solid #cfd5de;
}

.section:not(.dark) .dark-ghost:hover,
.section:not(.dark) .btn.ghost:hover {
  border-color: #a87500;
  color: #765500;
}

/* Equal-height, clean card alignment */
.grid-4,
.grid-3,
.grid-2,
.category-grid,
.provider-grid,
.badge-grid,
.step-list,
.cta-cluster-grid,
.seo-cards,
.option-grid {
  align-items: stretch;
}

.grid-4 > *,
.grid-3 > *,
.grid-2 > *,
.category-grid > *,
.provider-grid > *,
.badge-grid > *,
.step-list > *,
.cta-cluster-grid > *,
.seo-cards > *,
.option-grid > * {
  min-width: 0;
  height: 100%;
}

.media-card,
.note-card,
.category-card,
.provider,
.badge,
.step,
.cta-tile,
.seo-cards article,
.option-card {
  height: 100%;
}

.media-card,
.note-card {
  display: flex;
  flex-direction: column;
}

.media-card .copy,
.note-card .copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.media-card .copy .inline-cta,
.note-card .copy .inline-cta {
  margin-top: auto;
  padding-top: 14px;
}

.media-card img,
.note-card img {
  flex: 0 0 auto;
}

.category-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.category-card small {
  line-height: 1.45;
}

.provider,
.badge,
.step,
.cta-tile,
.seo-cards article {
  display: flex;
  flex-direction: column;
}

.provider span,
.badge span,
.step p,
.cta-tile span {
  margin-top: auto;
}

/* Section headings align from the top instead of uneven baselines */
.section-head {
  align-items: start;
}

.section-head > * {
  min-width: 0;
}

/* CTA groups line up consistently */
.hero-actions,
.cta-row,
.top-cta-actions,
.stacked-cta {
  align-items: center;
}

.cta-row .btn,
.hero-actions .btn,
.top-cta-actions .btn {
  min-width: 150px;
}

.mini-cta-band {
  min-height: 76px;
}

/* Hero visual and text alignment */
.hero-grid {
  align-items: center;
}

.hero-visual {
  align-self: center;
}

.hero-visual img {
  object-position: center 18%;
}

/* Keep tables visually consistent */
th {
  color: #222630;
  background: #eef1f5;
}

td {
  color: #4f5764;
  background: #ffffff;
}

tr:last-child td {
  border-bottom: 0;
}

/* FAQ contrast */
.faq summary {
  color: #1d212b;
}

.faq p {
  color: #5b6471;
}

/* Mobile spacing and alignment */
@media (max-width: 760px) {
  .section-head {
    gap: 12px;
  }

  .media-card .copy,
  .note-card .copy,
  .category-card,
  .provider,
  .badge,
  .step,
  .cta-tile {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions .btn,
  .cta-row .btn,
  .top-cta-actions .btn {
    width: 100%;
  }

  .hero-visual img {
    object-position: center 15%;
  }
}

/* Content/structure final helpers */
.tabs-row{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 22px}.tabs-row span{padding:9px 14px;border-radius:999px;background:#11141c;color:#fff;font-size:13px;font-weight:800}.light-card{background:#fff;border-color:#e2e5ea}.light-card h3{color:#171b24}.light-card p{color:#626a77}.dark .provider{background:#11141c;border-color:#2a2f3b}.dark .provider strong{color:#fff}.dark .provider span{color:#b8bec9}.dark-cards article{background:#11141c;border:1px solid #2a2f3b;border-radius:18px;padding:22px}.dark-cards h3{color:#fff;margin-top:0}.dark-cards p{color:#b8bec9}.feature-copy h3{margin:0 0 8px}.feature-copy ol{margin:0 0 20px 20px;padding:0}.feature-copy li{margin:0 0 8px}.header-actions{display:flex;align-items:center;gap:12px}.header-login{color:#fff;font-size:14px;font-weight:800}.hero-note{font-size:13px!important;color:#bfc6d0!important;margin-top:18px!important}.floating-cta{position:fixed;right:18px;bottom:18px;z-index:120;padding:14px 20px;border-radius:999px;background:linear-gradient(135deg,var(--gold),var(--gold-2));color:#16120a;font-weight:900;box-shadow:0 18px 36px rgba(0,0,0,.25)}@media(max-width:760px){.floating-cta{left:12px;right:12px;text-align:center}.tabs-row{gap:8px}.tabs-row span{font-size:12px}}


/* WE88 card title visibility fix */
.section:not(.dark) .media-card:not(.light-card) h3,
.section:not(.dark) .media-card:not(.light-card) strong {
  color: #ffffff;
}

.section:not(.dark) .media-card:not(.light-card) p {
  color: #c3c9d3;
}

.section:not(.dark) .media-card:not(.light-card) .inline-cta {
  color: var(--gold-2);
}


/* ==========================================
   WHOLE-SITE ALIGNMENT PASS
   ========================================== */

/* One horizontal system across all page sections */
.wrap,
.hero-grid {
  width: min(var(--max), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.section,
.hero,
.site-footer {
  overflow-x: clip;
}

/* Header aligns with the same 1180px content grid */
.site-header {
  min-height: 68px;
  padding-left: max(20px, calc((100% - var(--max)) / 2));
  padding-right: max(20px, calc((100% - var(--max)) / 2));
}

.site-header nav {
  justify-content: center;
}

.header-actions {
  flex: 0 0 auto;
}

/* Hero columns align cleanly and use equal vertical rhythm */
.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 48px;
  align-items: center;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy > :first-child {
  margin-top: 0;
}

.hero-visual {
  width: 100%;
  align-self: center;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Every section heading uses the same two-column baseline */
.section-head {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 48px;
  align-items: start;
}

.section-head > div,
.section-head > p {
  margin-top: 0;
  margin-bottom: 0;
  min-width: 0;
}

.section-head h2 {
  max-width: 720px;
}

.section-head > p {
  max-width: 560px;
  justify-self: end;
}

/* Consistent grids, rows and gutters */
.grid-4,
.grid-3,
.grid-2,
.provider-grid,
.badge-grid,
.step-list,
.seo-cards,
.option-grid {
  gap: 20px;
}

.grid-4,
.grid-3,
.grid-2,
.provider-grid,
.badge-grid,
.step-list,
.seo-cards,
.option-grid,
.category-grid {
  align-items: stretch;
}

/* Equal cards: image, text and CTA line up across rows */
.media-card,
.light-card,
.note-card,
.provider,
.badge,
.step,
.seo-cards > article,
.option-card {
  min-width: 0;
  height: 100%;
}

.media-card,
.light-card,
.note-card {
  display: flex;
  flex-direction: column;
}

.media-card img,
.light-card img,
.note-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-card .copy,
.light-card .copy,
.note-card .copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  padding: 22px;
}

.media-card h3,
.light-card h3,
.note-card h3 {
  min-height: 2.5em;
  display: flex;
  align-items: flex-start;
}

.media-card .copy p,
.light-card .copy p,
.note-card .copy p {
  flex: 1 1 auto;
}

.media-card .inline-cta,
.light-card .inline-cta,
.note-card .inline-cta {
  margin-top: auto;
  padding-top: 16px;
}

/* Popular-game grid is always a clean 4 x 2 desktop layout */
#games .grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#games .media-card img {
  aspect-ratio: 16 / 10;
}

/* Tabs align to the same content start */
.tabs-row {
  align-items: center;
  margin-bottom: 24px;
}

.tabs-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}

/* Feature split sections: equal columns and vertically aligned content */
.feature-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 32px;
}

.feature-split > * {
  min-width: 0;
}

.feature-split > div:first-child {
  display: flex;
}

.feature-split > div:first-child > img,
.feature-split > img,
.feature-split .rounded-img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0;
}

/* Bank/payment badges align into equal blocks */
.badge-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100%;
}

.badge {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.badge span {
  margin-top: 6px;
}

/* Providers all line up in one consistent row system */
.provider-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.provider {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.provider span {
  margin-top: 6px;
}

/* Signup / instruction content aligns top-to-top */
.feature-copy ol,
.feature-copy ul {
  width: 100%;
}

/* Promotion cards align CTA at the bottom */
#promotions .media-card .copy {
  min-height: 230px;
}

/* Playing options form a balanced 3 x 2 grid */
#playing-options .grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#playing-options .light-card .copy {
  min-height: 180px;
}

/* Licensing cards align evenly */
#license .seo-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#license .seo-cards > article {
  display: flex;
  flex-direction: column;
}

/* Tables use full width and consistent column geometry */
.table-wrap {
  width: 100%;
}

table {
  table-layout: fixed;
}

#overview table th:first-child,
#overview table td:first-child {
  width: 30%;
}

/* FAQ stays aligned to main content width */
.faq details,
.faq .section-head {
  width: 100%;
}

.faq summary,
.faq details p {
  max-width: 980px;
}

/* CTA band aligns its text and action vertically */
.cta-band {
  width: min(var(--max), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.cta-band > div {
  min-width: 0;
}

/* Footer columns share a common top baseline */
.site-footer {
  align-items: start;
}

.footer-links {
  align-content: flex-start;
}

/* Desktop / tablet response */
@media (max-width: 1080px) {
  .section-head {
    grid-template-columns: 1fr 0.85fr;
    gap: 32px;
  }

  #games .grid-4,
  .provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #playing-options .grid-3,
  #license .seo-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-split,
  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head > p {
    justify-self: start;
    max-width: 760px;
  }

  .hero-visual {
    max-width: 760px;
  }

  .feature-split > div:first-child > img,
  .feature-split > img,
  .feature-split .rounded-img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  .wrap,
  .hero-grid,
  .cta-band {
    width: min(100% - 32px, var(--max));
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    gap: 14px;
    margin-bottom: 26px;
  }

  #games .grid-4,
  #playing-options .grid-3,
  #license .seo-cards,
  .provider-grid,
  .badge-grid-two,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .media-card h3,
  .light-card h3,
  .note-card h3 {
    min-height: 0;
  }

  .media-card .copy,
  .light-card .copy,
  .note-card .copy {
    min-height: 0 !important;
  }

  .cta-band {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 72px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}


/* Payment section — Thailand */
.payment-feature { align-items: stretch; margin-bottom: 22px; }
.payment-feature > div:first-child, .payment-feature .rounded-img { height: 100%; }
.payment-feature .rounded-img { min-height: 320px; object-fit: cover; object-position: center; }
.payment-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.payment-summary-card { min-height: 145px; padding: 22px; display: flex; flex-direction: column; justify-content: center; border: 1px solid #e2e5ea; border-radius: 16px; background: #fff; }
.payment-summary-card span { margin-bottom: 8px; color: #666f7d; font-size: 13px; font-weight: 700; }
.payment-summary-card strong { color: #171b24; font-size: 26px; line-height: 1.15; }
.payment-summary-card small { margin-top: 6px; color: #777f8b; font-size: 12px; }
.payment-bank-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.payment-bank-strip .badge { min-height: 104px; display: flex; flex-direction: column; justify-content: center; }
.payment-method-table { margin-top: 0; }
.payment-method-table table { table-layout: fixed; }
.payment-method-table th:nth-child(1), .payment-method-table td:nth-child(1) { width: 20%; }
.payment-method-table th:nth-child(2), .payment-method-table td:nth-child(2) { width: 18%; }
.payment-method-table th:nth-child(3), .payment-method-table td:nth-child(3) { width: 22%; }
.payment-method-table th:nth-child(4), .payment-method-table td:nth-child(4) { width: 40%; }
.payment-method-table td strong { color: #20242c; }
.payment-method-table td small { color: #69717f; }
.payment-note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.payment-note-card { padding: 20px; border: 1px solid #e2e5ea; border-radius: 16px; background: #fff; }
.payment-note-card strong { display: block; margin-bottom: 6px; color: #171b24; font-size: 17px; }
.payment-note-card p { margin: 0; color: #626a77; font-size: 14px; }
@media (max-width: 980px) { .payment-bank-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .payment-summary-grid, .payment-bank-strip, .payment-note-grid { grid-template-columns: 1fr; } .payment-feature .rounded-img { min-height: 240px; } .payment-method-table table { table-layout: auto; } }


/* Detailed WE88 provider cards with official WE88-hosted partner logos */
#providers .provider-grid-detailed {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

#providers .provider-card {
  min-height: 330px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid #2a303c;
  border-radius: 18px;
  background: #11151d;
}

#providers .provider-logo {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #090b10;
  border: 1px solid #232936;
}

#providers .provider-logo img {
  width: auto;
  height: auto;
  max-width: 170px;
  max-height: 46px;
  object-fit: contain;
}

#providers .provider-category {
  margin-bottom: 8px;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

#providers .provider-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
}

#providers .provider-card p {
  margin: 0;
  color: #b9c0cc;
  font-size: 14px;
  line-height: 1.65;
}

#providers .provider-card p strong {
  color: #fff;
  font-weight: 750;
}

#providers .provider-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #2b303b;
  background: #0d1016;
  color: #c5cbd4;
  font-size: 13px;
}

#providers .provider-note strong {
  color: #fff;
}

@media (max-width: 1100px) {
  #providers .provider-grid-detailed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  #providers .provider-grid-detailed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  #providers .provider-grid-detailed {
    grid-template-columns: 1fr;
  }

  #providers .provider-card {
    min-height: auto;
  }
}


/* Center all WE88 Gaming Partners logos inside their logo boxes */
#providers .provider-logo {
  justify-content: center;
  text-align: center;
}

#providers .provider-logo img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}


/* Final alignment fix for WE88 Gaming Partners */
#providers .provider-grid-detailed {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

#providers .provider-card {
  min-height: 360px;
  padding: 22px;
  display: grid;
  grid-template-rows: 82px 18px 56px 1fr;
  row-gap: 10px;
  align-content: stretch;
  border: 1px solid #2a303c;
  border-radius: 18px;
  background: #11151d;
}

#providers .provider-logo {
  width: 100%;
  height: 82px;
  margin: 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  background: #090b10;
  border: 1px solid #232936;
}

#providers .provider-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 170px;
  max-height: 48px;
  object-fit: contain;
  object-position: center;
  margin: auto;
}

#providers .provider-category {
  min-height: 18px;
  margin: 0;
  display: flex;
  align-items: center;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .12em;
}

#providers .provider-card h3 {
  min-height: 56px;
  margin: 0;
  display: flex;
  align-items: flex-start;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
}

#providers .provider-card p {
  margin: 0;
  align-self: start;
  color: #b9c0cc;
  font-size: 14px;
  line-height: 1.65;
}

#providers .provider-note {
  margin-top: 20px;
}

#providers .cta-row {
  margin-top: 18px;
}

@media (max-width: 1100px) {
  #providers .provider-grid-detailed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  #providers .provider-grid-detailed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  #providers .provider-grid-detailed {
    grid-template-columns: 1fr;
  }
  #providers .provider-card {
    min-height: 0;
    grid-template-rows: 82px 18px auto auto;
  }
  #providers .provider-card h3 {
    min-height: 0;
  }
}


/* Provider content alignment refinement: SpadeGaming, Playtech, Gameplay Interactive */
#providers .provider-grid-detailed {
  grid-auto-rows: 1fr;
}

#providers .provider-card {
  min-height: 390px;
  grid-template-rows: 82px 18px 64px minmax(0, 1fr);
}

#providers .provider-card h3 {
  min-height: 64px;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 2px;
}

#providers .provider-card p {
  width: 100%;
  margin: 0;
  padding: 0;
  align-self: stretch;
  text-align: left;
}

#providers .provider-card:nth-child(1) p,
#providers .provider-card:nth-child(2) p,
#providers .provider-card:nth-child(4) p {
  display: block;
  min-height: 0;
}

@media (max-width: 820px) {
  #providers .provider-card {
    min-height: 370px;
    grid-template-rows: 82px 18px 64px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  #providers .provider-card {
    min-height: 0;
    grid-template-rows: 82px 18px auto auto;
  }
  #providers .provider-card h3 {
    min-height: 0;
  }
}
