:root {
  --sky: #4fc3f7;
  --sky-deep: #0288d1;
  --sun: #ffd54f;
  --coral: #ff7043;
  --mint: #66bb6a;
  --pink: #f48fb1;
  --ink: #1a3a4a;
  --cloud: #fffdf8;
  --panel: rgba(255, 255, 255, 0.92);
  --shadow: 0 12px 28px rgba(2, 136, 209, 0.18);
  --radius: 28px;
  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Comic Sans MS", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 213, 79, 0.55), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(244, 143, 177, 0.4), transparent 28%),
    radial-gradient(circle at 80% 78%, rgba(102, 187, 106, 0.28), transparent 30%),
    linear-gradient(165deg, #e3f7ff 0%, #fff7e8 48%, #ffe8de 100%);
  background-attachment: fixed;
}

a {
  color: var(--sky-deep);
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(255, 253, 248, 0.82);
  border-bottom: 3px solid rgba(2, 136, 209, 0.12);
}

.nav {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--sky-deep);
}

.brand-badge {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--sun), var(--coral));
  color: white;
  box-shadow: 0 6px 0 rgba(255, 112, 67, 0.35);
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 700;
  color: var(--ink);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(79, 195, 247, 0.25);
  transform: translateY(-1px);
}

.nav-user {
  font-weight: 800;
  color: var(--coral);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.03);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral), #ff9a62);
  color: white;
  box-shadow: 0 8px 0 #e64a19;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--sky), #81d4fa);
  color: #06384f;
  box-shadow: 0 8px 0 #0277bd;
}

.btn-mint {
  background: linear-gradient(135deg, var(--mint), #9ccc65);
  color: #1b4332;
  box-shadow: 0 8px 0 #2e7d32;
}

.btn-sun {
  background: linear-gradient(135deg, var(--sun), #ffe082);
  color: #5d4037;
  box-shadow: 0 8px 0 #f9a825;
}

.btn-ghost {
  background: white;
  color: var(--ink);
  box-shadow: 0 6px 0 rgba(26, 58, 74, 0.12);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
  min-height: calc(100vh - 5.5rem);
  padding: 1rem 0 2rem;
}

.hero-copy h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--sky-deep);
}

.hero-copy .brand-hero {
  display: block;
  font-size: clamp(3rem, 7vw, 5.4rem);
  background: linear-gradient(120deg, #0288d1, #ff7043 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bounceSoft 2.8s ease-in-out infinite;
}

.hero-copy p {
  margin: 0 0 1.4rem;
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-art {
  position: relative;
  min-height: 420px;
  border-radius: 40px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(79, 195, 247, 0.35), rgba(255, 213, 79, 0.4)),
    #fff;
  box-shadow: var(--shadow);
  border: 4px solid white;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  animation: floaty 4s ease-in-out infinite;
}

.bubble-1 {
  width: 150px;
  height: 150px;
  left: 12%;
  top: 18%;
  background: linear-gradient(145deg, #29b6f6, #0288d1);
  font-size: 2.4rem;
}

.bubble-2 {
  width: 110px;
  height: 110px;
  right: 16%;
  top: 12%;
  background: linear-gradient(145deg, #ff8a65, #f4511e);
  font-size: 1.8rem;
  animation-delay: 0.6s;
}

.bubble-3 {
  width: 130px;
  height: 130px;
  right: 18%;
  bottom: 18%;
  background: linear-gradient(145deg, #81c784, #43a047);
  font-size: 2rem;
  animation-delay: 1.1s;
}

.bubble-4 {
  width: 90px;
  height: 90px;
  left: 28%;
  bottom: 14%;
  background: linear-gradient(145deg, #f48fb1, #ec407a);
  font-size: 1.5rem;
  animation-delay: 1.6s;
}

.hero-board {
  position: absolute;
  inset: 28% 18% auto;
  background: white;
  border-radius: 24px;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  text-align: center;
  animation: popIn 0.9s ease both;
}

.hero-board strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--coral);
}

.section {
  margin: 2.5rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 0.5rem;
  color: var(--sky-deep);
}

.section-lead {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  line-height: 1.55;
}

.feature-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature,
.panel,
.card-lite {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.feature h3,
.panel h2,
.card-lite h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  color: var(--ink);
}

.feature p,
.card-lite p {
  margin: 0;
  line-height: 1.5;
}

.icon-emoji {
  font-size: 2rem;
  margin-bottom: 0.55rem;
}

.page-hero {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--sky-deep);
}

.page-hero p {
  margin: 0 auto;
  max-width: 36rem;
  line-height: 1.55;
}

.form-shell {
  width: min(460px, 100%);
  margin: 1.5rem auto;
}

.form-shell-wide {
  width: min(520px, 100%);
}

.form-shell form {
  display: grid;
  gap: 0.9rem;
}

.field-hint {
  margin: -0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5a7380;
}

.field-error {
  margin: -0.35rem 0 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--coral);
}

.password-field {
  position: relative;
  display: grid;
}

.password-field input {
  padding-right: 4.5rem;
}

.password-toggle {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(2, 136, 209, 0.12);
  color: var(--sky-deep);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}

.password-strength {
  margin-top: -0.25rem;
}

.password-strength-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(2, 136, 209, 0.12);
  overflow: hidden;
}

.password-strength-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #cfd8dc;
  transition: width 0.2s ease, background 0.2s ease;
}

.password-strength-bar span[data-level="1"] { background: var(--coral); }
.password-strength-bar span[data-level="2"] { background: #f9a825; }
.password-strength-bar span[data-level="3"] { background: var(--mint); }

.password-strength-label {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #5a7380;
}

.checkbox-row {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 700;
  grid-template-columns: none !important;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--sky-deep);
}

.checkout-hint {
  margin-top: 0.55rem !important;
}

.checkout-dialog {
  border: none;
  border-radius: 24px;
  padding: 0;
  max-width: min(480px, calc(100vw - 2rem));
  background: transparent;
}

.checkout-dialog::backdrop {
  background: rgba(26, 58, 74, 0.5);
}

.checkout-dialog-inner {
  position: relative;
  padding: 1.5rem;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.checkout-summary,
.checkout-totals {
  margin: 1rem 0;
  display: grid;
  gap: 0.65rem;
}

.checkout-summary > div,
.checkout-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.checkout-summary dt,
.checkout-totals dt {
  color: #5a7380;
  font-weight: 700;
}

.checkout-summary dd,
.checkout-totals dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.checkout-total-row {
  border-top: 2px solid rgba(2, 136, 209, 0.12);
  padding-top: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem !important;
}

.checkout-promo {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 18px;
  border: 2px dashed #f6b73c;
  background: #fff8e7;
}

.checkout-promo-title {
  margin: 0 0 0.35rem;
  font-weight: 800;
}

#checkout-discount-row dd {
  color: var(--mint);
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 3px solid rgba(2, 136, 209, 0.2);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font: inherit;
  background: white;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(79, 195, 247, 0.25);
}

.msg {
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  display: none;
}

.msg.show {
  display: block;
}

.msg.error {
  background: #ffebee;
  color: #c62828;
}

.msg.success {
  background: #e8f5e9;
  color: #2e7d32;
}

.msg.info {
  background: #e3f2fd;
  color: #1565c0;
}

.stat-button {
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #fff8e1, #e1f5fe);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  font: inherit;
  color: inherit;
}

.stat-button .stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--coral);
  line-height: 1;
}

.stat-button .stat-label {
  font-weight: 800;
  margin-top: 0.35rem;
}

.invite-list {
  margin-top: 0.9rem;
  display: none;
  background: white;
  border-radius: 18px;
  padding: 0.85rem 1rem;
  border: 2px dashed rgba(2, 136, 209, 0.25);
}

.invite-list.open {
  display: block;
  animation: popIn 0.35s ease;
}

.invite-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(2, 136, 209, 0.1);
}

.invite-list li:last-child {
  border-bottom: none;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 18px;
  overflow: hidden;
}

th,
td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(2, 136, 209, 0.1);
}

th {
  background: rgba(79, 195, 247, 0.18);
  font-family: var(--font-display);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.badge-pending {
  background: #fff3e0;
  color: #ef6c00;
}

.badge-processed {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-rejected {
  background: #ffebee;
  color: #c62828;
}

.game-frame-wrap {
  background: #0d2b3a;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 5px solid white;
  min-height: 70vh;
  position: relative;
}

.game-frame-wrap iframe,
.game-placeholder {
  width: 100%;
  min-height: 70vh;
  border: 0;
  display: block;
}

.game-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  color: white;
  padding: 2rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(79, 195, 247, 0.35), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(255, 112, 67, 0.3), transparent 35%),
    #123447;
}

.game-placeholder h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.6rem;
}

.tutorial-list {
  display: grid;
  gap: 1rem;
}

.tutorial-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
}

.tutorial-num {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: white;
  background: linear-gradient(145deg, var(--sky), var(--sky-deep));
}

.tutorial-item:nth-child(2) .tutorial-num {
  background: linear-gradient(145deg, var(--coral), #ff9a62);
}

.tutorial-item:nth-child(3) .tutorial-num {
  background: linear-gradient(145deg, var(--mint), #43a047);
}

.tutorial-item:nth-child(4) .tutorial-num {
  background: linear-gradient(145deg, var(--pink), #ec407a);
}

.price-tag {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--coral);
  margin: 0.4rem 0 1rem;
}

.copy-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.copy-row input {
  flex: 1;
  min-width: 220px;
}

.site-footer {
  margin-top: 2rem;
  padding: 1.5rem 0 2rem;
  text-align: center;
  color: rgba(26, 58, 74, 0.75);
  font-weight: 700;
}

.hidden {
  display: none !important;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes bounceSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

  .hero {
    min-height: auto;
  }

  .hero-art {
    min-height: 340px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ——— Purchase page (static site) ——— */
.purchase-page {
  padding-bottom: 3rem;
}

.purchase-intro {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow.sky { color: var(--sky-deep); }
.eyebrow.coral { color: var(--coral); }
.eyebrow.mint { color: var(--mint); }

.option-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin: 1.75rem 0 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: white;
  font-family: var(--font-display);
}

.option-banner.sky { background: var(--sky-deep); }
.option-banner.coral { background: var(--coral); }
.option-banner span { opacity: 0.9; font-size: 0.85rem; text-transform: uppercase; }
.option-banner strong { font-size: 1.05rem; }

.digital-course-card {
  border: 3px solid rgba(2, 136, 209, 0.22);
}

.digital-course-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .digital-course-grid {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
  }
}

.digital-course-card .lead {
  color: #3d5a68;
  line-height: 1.55;
}

.feature-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

@media (min-width: 640px) {
  .feature-list { grid-template-columns: 1fr 1fr; }
}

.feature-list li {
  font-weight: 700;
  font-size: 0.95rem;
}

.price-box {
  text-align: center;
  padding: 1.25rem;
  border-radius: 22px;
  background: linear-gradient(160deg, #e8f7ff, #fff);
  border: 2px solid rgba(2, 136, 209, 0.15);
}

.price-box .btn {
  width: 100%;
  margin-top: 0.75rem;
}

.promo-price {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mint);
}

.promo-reward {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 3px dashed #f6b73c;
  background: linear-gradient(135deg, #fff6d6, #ffe8d2 55%, #fff);
  box-shadow: var(--shadow);
}

@media (min-width: 800px) {
  .promo-reward {
    grid-template-columns: 150px 1fr;
    align-items: center;
  }
}

.promo-coupon {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border-radius: 24px;
  border: 3px dashed var(--coral);
  background: white;
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(-6deg);
  box-shadow: 0 10px 20px rgba(255, 112, 67, 0.2);
}

.promo-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
}

.promo-label {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.promo-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.promo-form input {
  flex: 1;
  min-width: 160px;
  border: 2px solid #f6b73c;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
}

.bundle-value-line {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--mint);
}

.bundle-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 700px) {
  .bundle-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .bundle-grid { grid-template-columns: repeat(4, 1fr); }
}

.bundle-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-radius: 22px;
  border: 2px solid rgba(255, 112, 67, 0.22);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.bundle-image {
  min-height: 150px;
  background:
    linear-gradient(145deg, #ffe8de, #e3f7ff);
  background-size: cover;
  background-position: center;
  display: grid;
  place-content: center;
  text-align: center;
}

.bundle-image.placeholder span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--coral);
}

.bundle-image.placeholder small {
  display: block;
  color: #5a7380;
  font-size: 0.8rem;
}

.bundle-card-body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.bundle-card-body h3 {
  margin: 0.2rem 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.bundle-card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: #3d5a68;
}

.badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge.coral { background: rgba(255, 112, 67, 0.15); color: var(--coral); }
.badge.mint { background: rgba(102, 187, 106, 0.18); color: #2e7d32; }

.bundle-course-value {
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  color: var(--sky-deep) !important;
}

.bundle-price {
  font-family: var(--font-display);
  font-size: 1.65rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
}

.bundle-includes {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.bundle-actions {
  display: grid;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
}

.compare-panel {
  margin-top: 2rem;
}

.compare-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 700px) {
  .compare-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
}

.compare-grid ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-weight: 700;
}

.compare-vs {
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  color: #7a909c;
}

.purchase-owned h1 {
  font-family: var(--font-display);
}

.purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.center-note { text-align: center; margin-top: 1.5rem; }
.muted { color: #5a7380; }
.small { font-size: 0.85rem; }

.bundle-dialog {
  border: none;
  border-radius: 24px;
  padding: 0;
  max-width: min(520px, calc(100vw - 2rem));
  background: transparent;
}

.bundle-dialog::backdrop {
  background: rgba(26, 58, 74, 0.45);
}

.bundle-dialog-inner {
  position: relative;
  margin: 0;
  padding: 1.5rem;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.dialog-close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

/* Tutorials lock state */
.tutorials-status {
  margin-bottom: 1.25rem;
}

.tutorial-item {
  position: relative;
}

.lock-pill {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255, 112, 67, 0.15);
  color: var(--coral);
}

.lock-pill.unlocked {
  background: rgba(102, 187, 106, 0.18);
  color: #2e7d32;
}

.tutorial-item[data-locked="true"] {
  opacity: 0.88;
}

/* Course player — Unity container (lesson list UI removed) */
.course-frame-wrap {
  margin-top: 0.5rem;
}

.dash-grid {
  margin-top: 1rem;
}

/* ==========================================================
   LEGAL / POLICY PAGES
========================================================== */
.legal-page {
  padding-bottom: 3rem;
}

.legal-shell {
  max-width: 900px;
  margin: 1.25rem auto 0;
}

.legal-card {
  background: var(--panel);
  border: 3px solid rgba(255,255,255,.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.7rem;
}

.legal-card h2,
.legal-card h3 {
  font-family: var(--font-display);
  color: var(--ink);
}

.legal-card h2 {
  margin: 1.6rem 0 .55rem;
  font-size: 1.45rem;
}

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

.legal-card h3 {
  margin: 1.1rem 0 .4rem;
  font-size: 1.1rem;
}

.legal-card p,
.legal-card li {
  line-height: 1.65;
}

.legal-card ul {
  padding-left: 1.25rem;
}

.legal-meta {
  margin: 0 0 1rem;
  color: #5a7380;
  font-size: .9rem;
  font-weight: 700;
}

.legal-note {
  padding: .9rem 1rem;
  border-radius: 16px;
  background: #eef8ff;
  border: 2px solid rgba(2,136,209,.13);
}

.site-footer .footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem .9rem;
  margin-top: .65rem;
}

.site-footer .footer-links a {
  font-weight: 800;
}

.site-footer .footer-contact {
  margin-top: .45rem;
  font-size: .9rem;
  font-weight: 700;
}

@media (max-width: 600px) {
  .legal-card {
    padding: 1.25rem 1.1rem;
  }
  .site-footer .footer-links {
    gap: .45rem .7rem;
  }
}
