@font-face {
  font-family: "FTL Poppins";
  src: url("https://fonts.gstatic.com/s/poppins/v24/pxiDyp8kv8JHgFVrJJLmg1hVF9eOYktMqg.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FTL Roboto";
  src: url("https://fonts.bunny.net/roboto/files/roboto-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FTL Roboto";
  src: url("https://fonts.bunny.net/roboto/files/roboto-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ocean-blue: #003087;
  --seafoam: #a7e6d7;
  --night-navy: #001734;
  --mint-glow: #82e5d5;
  --blue-800: #002161;
  --blue-100: #dde6f4;
  --mint-200: #d2f2eb;
  --mint-50: #ecfaf6;
  --ink: #0b1426;
  --ink-2: #2a3346;
  --ink-3: #5a6478;
  --line: #dce2ec;
  --bg-soft: #f4f6fa;
  --white: #fff;
  --danger: #c8364c;
  --success: #2e8f6e;
  --warning: #8a5a1f;
  --display: "FTL Poppins", "Arial Narrow", Impact, sans-serif;
  --body: "FTL Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 16px 40px rgba(0, 23, 52, .14);
  --shadow-soft: 0 4px 14px rgba(0, 23, 52, .10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #071224;
  color: var(--ink);
  font-family: var(--body);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.demo-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.demo-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: #081326;
  color: var(--mint-200);
  border-right: 1px solid rgba(130, 229, 213, .2);
}

.demo-kicker,
.eyebrow {
  color: var(--ocean-blue);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.demo-kicker {
  color: var(--mint-glow);
}

.demo-title {
  margin-top: 8px;
  color: var(--white);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.demo-tabs {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.demo-tab {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(130, 229, 213, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--mint-200);
  text-align: left;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.demo-tab.is-active {
  background: var(--mint-glow);
  color: var(--ocean-blue);
  border-color: var(--mint-glow);
}

.demo-note {
  margin-top: 24px;
  color: rgba(210, 242, 235, .75);
  font-size: 13px;
  line-height: 1.5;
}

.site-frame {
  min-width: 0;
  background: var(--bg-soft);
}

.member-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 28px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ocean-blue);
}

.crest {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-word {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-star {
  color: var(--mint-glow);
}

.brand-sub {
  color: var(--ink-3);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.member-nav {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.member-nav button,
.text-link {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.member-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-chip small {
  display: block;
  color: var(--ink-3);
  font-size: 11px;
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--seafoam);
  color: var(--ocean-blue);
  font-family: var(--display);
  font-weight: 700;
}

.page {
  display: none;
}

.page.is-active {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  padding: 96px 32px 132px;
  color: var(--white);
  text-align: center;
  background: radial-gradient(120% 100% at 70% 18%, var(--blue-800) 0%, var(--night-navy) 62%, #000814 100%);
}

.hero h1,
.content-wrap h1,
.receipt-hero h1,
.membership-top h2 {
  margin: 12px 0;
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 112px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 span,
.receipt-hero h1 span {
  color: var(--mint-glow);
}

.hero p,
.receipt-hero p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--mint-200);
  font-size: 19px;
  line-height: 1.55;
}

.hero-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
  color: var(--mint-glow);
  font-size: 13px;
}

.glint {
  position: absolute;
  width: 34px;
  opacity: .7;
  filter: drop-shadow(0 0 14px rgba(130, 229, 213, .45));
}

.glint-a {
  top: 18%;
  left: 9%;
}

.glint-b {
  top: 22%;
  right: 12%;
  width: 52px;
}

.glint-c {
  bottom: 22%;
  right: 20%;
  width: 24px;
}

.tier-grid {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: -74px auto 0;
  padding: 0 28px;
}

.tier-card,
.panel,
.summary-card,
.receipt-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.tier-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  overflow: hidden;
}

.tier-card h2,
.panel h2,
.summary-head h2,
.charges-panel h2,
.receipt-body h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

.tier-card p,
.panel p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.45;
}

.tier-badge,
.status-pill,
.secure-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tier-badge {
  color: var(--ocean-blue);
}

.price {
  color: inherit;
  font-family: var(--display);
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
}

.price small,
.per-game {
  color: inherit;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 400;
  opacity: .75;
}

.tier-card ul,
.impact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tier-card li {
  padding: 7px 0;
  border-top: 1px solid rgba(0, 48, 135, .12);
  font-size: 14px;
}

.tier-card button {
  margin-top: auto;
}

.tier-supporter {
  background: var(--blue-100);
  color: var(--ocean-blue);
}

.tier-shallows {
  background: var(--mint-200);
  color: var(--ocean-blue);
}

.tier-canal {
  background: var(--ocean-blue);
  color: var(--white);
}

.tier-founders {
  background: var(--night-navy);
  color: var(--white);
}

.is-featured {
  border: 2px solid var(--mint-glow);
  box-shadow: var(--shadow);
  transform: translateY(-10px);
}

.primary,
.secondary,
.ghost,
.glow,
.danger {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 0;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.primary {
  background: var(--ocean-blue);
  color: var(--white);
}

.secondary {
  background: var(--seafoam);
  color: var(--ocean-blue);
}

.ghost {
  background: transparent;
  color: var(--ocean-blue);
  border: 1px solid var(--ocean-blue);
}

.glow {
  background: var(--mint-glow);
  color: var(--ocean-blue);
}

.danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}

.trust-band {
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 48px auto;
  padding: 26px 28px;
  background: var(--white);
  border-block: 1px solid var(--line);
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band strong {
  color: var(--ink);
  font-family: var(--display);
  text-transform: uppercase;
}

.trust-band span {
  margin-top: 5px;
  color: var(--ink-3);
  font-size: 13px;
}

.content-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 28px 64px;
}

.content-wrap.narrow {
  max-width: 760px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 28px;
}

.content-wrap h1 {
  color: var(--ink);
  font-size: clamp(34px, 4vw, 54px);
}

.panel {
  padding: 24px;
}

.panel h2 {
  margin-bottom: 14px;
}

.choice-grid,
.dashboard-grid,
.manage-grid,
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice {
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.choice.is-selected {
  border-color: var(--ocean-blue);
  background: var(--mint-50);
}

.choice strong,
.choice span,
.mini-grid span,
.mini-grid strong {
  display: block;
}

.choice span,
.mini-grid span {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 13px;
}

.demo-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.demo-fields label,
.reason-label {
  display: grid;
  gap: 6px;
  color: var(--ocean-blue);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.demo-fields input,
.reason-label select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink-2);
}

.notice {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--mint-200);
  border-radius: 10px;
  background: var(--mint-50);
  color: #1c5c50;
  font-size: 13px;
  line-height: 1.45;
}

.summary-card {
  overflow: hidden;
  height: fit-content;
  position: sticky;
  top: 92px;
}

.summary-head {
  padding: 24px;
  background: var(--mint-200);
  color: var(--ocean-blue);
}

.summary-head p {
  margin: 6px 0 0;
}

.summary-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.row,
.receipt-title,
.line-items div,
.panel-head,
.cancel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.row.muted {
  color: var(--ink-3);
}

.row.total,
.line-items .total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ocean-blue);
  font-family: var(--display);
  font-size: 20px;
  text-transform: uppercase;
}

.summary-body small {
  color: var(--ink-3);
  text-align: center;
}

.receipt-card {
  max-width: 760px;
  margin: 54px auto;
  overflow: hidden;
}

.receipt-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 36px;
  background: radial-gradient(120% 100% at 70% 30%, var(--blue-800) 0%, var(--night-navy) 70%);
  color: var(--white);
  text-align: center;
}

.success-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--mint-glow);
  color: var(--ocean-blue);
  font-family: var(--display);
  font-weight: 700;
  box-shadow: 0 0 0 8px rgba(130, 229, 213, .18);
}

.receipt-body {
  padding: 30px 36px;
}

.line-items {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.line-items div {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.line-items div:first-child {
  border-top: 0;
}

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

.actions.compact {
  margin-top: 14px;
}

.actions.compact button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 11px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  margin-bottom: 20px;
}

.membership-card {
  overflow: hidden;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.membership-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  background: var(--mint-200);
  color: var(--ocean-blue);
}

.membership-top h2 {
  font-size: 48px;
}

.membership-top p {
  margin: 4px 0 0;
}

.status-pill,
.secure-pill {
  padding: 6px 10px;
  background: var(--white);
  color: var(--success);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
}

.stat-grid span,
.cancel-head span {
  display: block;
  color: var(--ink-3);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.stat-grid strong {
  display: block;
  margin-top: 4px;
}

.payment-panel {
  min-height: 100%;
}

.card-art {
  min-height: 150px;
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ocean-blue), var(--night-navy));
  color: var(--white);
}

.card-art span {
  color: var(--mint-glow);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card-art p {
  margin: 0;
  color: var(--white);
  font-size: 20px;
  letter-spacing: .1em;
}

.card-art small {
  color: var(--mint-200);
}

.charges-panel {
  margin-bottom: 20px;
}

.charge-list {
  border-top: 1px solid var(--line);
}

.charge-list div {
  display: grid;
  grid-template-columns: 140px 1fr 90px 80px;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.charge-list span {
  color: var(--ink-3);
}

.charge-list em {
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid var(--mint-200);
  border-radius: 999px;
  background: var(--mint-50);
  color: #1c5c50;
  font-style: normal;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.charge-list b {
  text-align: right;
}

.danger-text {
  color: var(--danger);
}

.lead {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.5;
}

.impact-panel {
  padding: 0;
  overflow: hidden;
}

.cancel-head {
  padding: 22px 24px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.impact-list li {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}

.impact-list li:first-child {
  border-top: 0;
}

.impact-list span {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
}

.fine-print {
  color: var(--ink-3);
  font-size: 13px;
}

.member-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
  background: var(--night-navy);
  color: var(--mint-200);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .demo-shell {
    grid-template-columns: 1fr;
  }

  .demo-rail {
    position: static;
    height: auto;
  }

  .demo-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .tier-grid,
  .trust-band,
  .two-col,
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .member-header {
    height: auto;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px;
  }

  .member-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .member-chip {
    margin-left: auto;
  }

  .demo-tabs,
  .tier-grid,
  .trust-band,
  .two-col,
  .dashboard-grid,
  .manage-grid,
  .choice-grid,
  .demo-fields,
  .mini-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 420px;
    padding: 62px 20px 96px;
  }

  .tier-grid {
    margin-top: -52px;
    padding: 0 16px;
  }

  .is-featured {
    transform: none;
  }

  .content-wrap,
  .receipt-body {
    padding-inline: 18px;
  }

  .charge-list div {
    grid-template-columns: 1fr;
  }

  .charge-list b {
    text-align: left;
  }

  .member-footer,
  .receipt-title,
  .row,
  .line-items div,
  .panel-head,
  .cancel-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
