/* ============================================================================
   UNIFIED SITE.CSS - Main Platform Styling
   ============================================================================
   
   This consolidated stylesheet serves all main platform pages:
   - my.enigmats (home, customer pages)
   - my.enigmats-create (quiz creation flow)
   - my.enigmats-demo (demo/marketing pages)
   - my.enigmats-preview (preview generator)
   - my.enigmats-play (quiz playback home pages)
   
   Combines:
   - my.enigmats/public/site.css
   - my.enigmats/public/icon-band.css
   - my.enigmats-create/public/create.css
   - Standardized across all platform apps
   
   ============================================================================ */

/* ============================================================================
   1. ROOT VARIABLES - Color Palette & Design Tokens
   ============================================================================ */

:root {
  /* Primary Colors */
  --bg: #0a4497;
  --fg: #f5f7fb;
  --muted: #b0b7c7;
  --accent: #0a4497;
  --accent-strong: #08356f;
  --cta-contrast: #04170b;

  /* Glass & Surfaces */
  --card: rgba(15, 22, 35, 0.75);
  --radius: 22px;
  --card-border: rgba(255, 255, 255, 0.12);
  --card-highlight: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 25px 50px rgba(6, 10, 25, 0.55);
  --glass-panel: rgba(8, 10, 20, 0.65);

  /* Typography */
  --brand-font: "Manrope", "Raleway", ui-sans-serif, system-ui, -apple-system,
    Segoe UI, Roboto, Arial, sans-serif;
  --brand-accent: #0d9488;
  --brand-accent-strong: #0f766e;

  /* Call-to-Action */
  --cta-radius: 10px;
  --cta-font-size: 0.95rem;
  --cta-font-weight: 700;
  --cta-padding-y: 12px;
  --cta-padding-x: 18px;

  /* Content Width */
  --content-width: 960px;
}

/* ============================================================================
   2. RESET & BASE STYLES
   ============================================================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--brand-font);
  background:
    radial-gradient(circle at top, rgba(10, 68, 151, 0.11), transparent 55%),
    var(--bg);
  color: var(--fg);
}

/* ============================================================================
   3. TYPOGRAPHY
   ============================================================================ */

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.6rem);
  letter-spacing: 0.5px;
  text-align: center;
}

h2,
h3,
h4 {
  text-align: center;
  margin-top: 0px;
}

p.sub {
  margin: 0;
  color: var(--muted);
}

code {
  background: #0b1324;
  border: 1px solid #263043;
  padding: 2px 6px;
  border-radius: 6px;
}

/* ============================================================================
   4. LAYOUT & CONTAINERS
   ============================================================================ */

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.home-page .wrap {
  max-width: 960px;
  width: calc(100% - 24px);
  margin: 12px auto;
  margin-top: max(12px, calc(env(safe-area-inset-top, 0px) + 12px));
  margin-bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  min-height: auto;
  padding: 24px;
  background: var(--glass-panel);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
}

header {
  text-align: center;
  padding: 40px 0 24px;
}

.brand-mark {
  width: clamp(200px, 80vw, 440px);
  height: auto;
  display: block;
  margin: -75px auto -6lvh;
}

/* ============================================================================
   5. CARD & COMPONENT STYLING
   ============================================================================ */

.card {
  background: var(--glass-panel);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
  text-align: center;
  color: var(--fg);
  max-width: 960px;
  width: 100%;
  margin: 0.5rem auto;
  backdrop-filter: blur(18px);
  position: relative;
}

.card h2 {
  margin-top: 0;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pricing-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 16px;
}

.pricing-card {
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 18px;
  background: rgba(14, 18, 32, 0.82);
  text-align: left;
  box-shadow: 0 18px 35px rgba(4, 6, 20, 0.45);
  min-height: 180px;
  backdrop-filter: blur(12px);
}

.pricing-card h3 {
  margin: 6px 0 8px;
  text-align: left;
}

.pricing-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.pricing-card--base {
  border-color: rgba(34, 197, 94, 0.6);
  background: linear-gradient(
    140deg,
    rgba(34, 197, 94, 0.25),
    rgba(11, 19, 36, 0.95)
  );
}

.pricing-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5f5;
}

.pricing-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.pricing-list li {
  margin-bottom: 6px;
}

.cta-row {
  max-width: var(--content-width);
  margin: 0 auto 1.5rem;
  text-align: center;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
  background: rgba(7, 10, 20, 0.65);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    border-color 0.2s ease;
  height: 100%;
  box-shadow: 0 18px 32px rgba(3, 6, 16, 0.55);
  backdrop-filter: blur(12px);
}

.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.35);
}

.tile h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tile-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #0b1324;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  width: fit-content;
  text-align: center;
}

.tile-img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  margin: 0;
  object-fit: cover;
}

footer {
  margin-top: auto;
  padding: 20px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

footer a {
  color: inherit;
}

/* ============================================================================
   6. BUTTONS & CALL-TO-ACTIONS
   ============================================================================ */

.cta {
  display: inline-block;
  margin-top: 10px;
  padding: var(--cta-padding-y) var(--cta-padding-x);
  border-radius: var(--cta-radius);
  background: linear-gradient(
    135deg,
    rgba(45, 212, 191, 0.9),
    rgba(16, 185, 129, 0.95)
  );
  color: var(--cta-contrast);
  text-decoration: none;
  font-weight: var(--cta-font-weight);
  font-size: var(--cta-font-size);
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 12px 30px rgba(6, 10, 25, 0.45);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(6, 10, 25, 0.55);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: transparent;
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.ghost-btn:hover {
  border-color: #4b5563;
}

/* ============================================================================
   7. ICON BAND STYLING (Consolidated from icon-band.css)
   ============================================================================ */

.what-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.what-icons img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #1f2937;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   8. UTILITY CLASSES
   ============================================================================ */

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.mt-10 {
  margin-top: 10px;
}

.logo {
  width: min(500px, 120%);
  aspect-ratio: 2 / 1.5;
  object-fit: cover;
  display: inline-block;
  height: 250px;
}

/* ============================================================================
   9. MY.ENIGMATS COMPONENT STYLING
   ============================================================================ */

.my-enigmats {
  font-family:
    "Raleway",
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--fg);
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  max-width: 960px;
  width: 100%;
  margin: 0.5rem auto;
  line-height: 1.6;
}

.my-enigmats__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
}

.my-enigmats__hero .brand-mark {
  width: min(220px, 70vw);
  height: auto;
}

.my-enigmats__hero .lead {
  margin: 0;
}

.my-enigmats h1,
.my-enigmats h2,
.my-enigmats h3 {
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.my-enigmats h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.my-enigmats h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  margin-top: 1.5rem;
}

.my-enigmats p {
  margin: 0;
  color: var(--muted);
}

.my-enigmats__section-copy {
  margin-top: 0.25rem;
  text-align: center;
}

.my-enigmats .lead {
  font-size: 1.05rem;
  color: var(--fg);
}

.my-enigmats__carousel {
  overflow: hidden;
  border-radius: 16px;
  border: none;
  background: transparent;
  width: min(220px, 80vw);
}

.my-enigmats__carousel-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: transparent;
}

.my-enigmats__carousel-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.25s linear;
}

.my-enigmats__carousel-stack img.is-active {
  opacity: 1;
}

.my-enigmats .stack {
  display: grid;
  gap: 0.5rem;
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  flex-wrap: wrap;
  margin: 0 auto 1.25rem;
  max-width: 640px;
}

.hero-media img.promo-tile {
  width: 207px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
}

.hero-media .promo-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-media .video-crop {
  margin: 0 auto;
}

.home-splash {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.home-page .my-enigmats__hero {
  margin-top: 0;
  overflow: hidden;
}

.home-page .my-enigmats {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.home-page .card {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  max-width: none;
  margin: 0;
  padding: 0;
}

.home-page .my-enigmats__hero .brand-mark {
  width: clamp(160px, 54vw, 320px);
  max-height: min(240px, 30svh);
  margin: 0 auto 8px;
  object-fit: contain;
  transform: scale(1.5);
  transform-origin: center;
}

.home-page .my-enigmats__carousel {
  transform: translateX(10%);
}

.home-splash__logo {
  width: clamp(220px, 60vw, 460px);
  height: auto;
}

.home-splash--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
}

.lightbox[aria-hidden="false"] {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 0;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  background: transparent;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox img.is-visible {
  opacity: 1;
}

.lightbox figcaption {
  margin-top: 1rem;
  text-align: center;
}

.lightbox figcaption a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.lightbox button {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
}

.lightbox button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.my-enigmats .stack h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--fg);
}

.my-enigmats .stack p {
  margin: 0 0 0.5rem;
}

.my-enigmats ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.my-enigmats li {
  margin: 0.25rem 0;
}

.my-enigmats .cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.1rem;
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.04s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  line-height: 1;
  text-align: center;
}

.my-enigmats .cta:hover {
  transform: translateY(-1px);
}

.my-enigmats .eyebrow {
  font-weight: 700;
  color: var(--fg);
}

.my-enigmats .kicker {
  font-weight: 600;
}

.my-enigmats .divider {
  height: 1px;
  background: var(--ring);
  margin: 1.2rem 0;
}

.series-promo-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  justify-items: center;
  margin: 0 auto 1.5rem;
  max-width: 520px;
}

.promo-card {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0;
  text-align: center;
}

.promo-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.promo-tile {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.promo-link {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.promo-label {
  margin-top: 0.5rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.promo-link:hover {
  text-decoration: underline;
}

.demo-square-btn {
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--cta-padding-y) var(--cta-padding-x);
  border-radius: var(--cta-radius);
  font-weight: var(--cta-font-weight);
  font-size: var(--cta-font-size);
  line-height: 1.3;
  text-transform: none;
}

.demo-square-btn--compact {
  min-height: calc(1em + 10px);
  padding: var(--cta-padding-y) var(--cta-padding-x);
  width: 100%;
}

.my-enigmats .demo-square-btn--compact {
  background: linear-gradient(
    135deg,
    rgba(45, 212, 191, 0.9),
    rgba(16, 185, 129, 0.95)
  );
  color: var(--cta-contrast);
  box-shadow: 0 12px 30px rgba(6, 10, 25, 0.45);
  border-radius: var(--cta-radius);
  line-height: 1.3;
}

.my-enigmats .cta.demo-square-btn.demo-square-btn--compact {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(1em + 10px);
  padding: var(--cta-padding-y) var(--cta-padding-x);
  border-radius: var(--cta-radius);
  line-height: 1.3;
  white-space: normal;
}

.price-teaser {
  margin: 8px auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ============================================================================
   10. PRICING PAGE STYLING
   ============================================================================ */

.pkg-page {
  --pkg-accent: #137236;
  --pkg-muted: #94a3b8;
  --pkg-card: #111827cc;
  --pkg-border: 1px solid rgba(148, 163, 184, 0.3);
  --pkg-radius: 18px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
  color: #e5e7eb;
}

.pkg-page h1,
.pkg-page h2,
.pkg-page h3,
.pkg-page h4 {
  text-align: center;
  margin-top: 0;
}

.pkg-card {
  background: var(--pkg-card);
  border-radius: var(--pkg-radius);
  border: var(--pkg-border);
  padding: clamp(1.3rem, 3vw, 2.2rem);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.pkg-hero img {
  width: clamp(150px, 40vw, 220px);
  margin: 0 auto 0.8rem;
  display: block;
}

.pkg-hero h1 {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.pkg-hero p {
  color: var(--pkg-muted);
  max-width: 640px;
  margin: 0 auto;
}

.pkg-cta {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.pkg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  font-weight: 600;
  color: inherit;
}

.pkg-btn.primary {
  background: var(--pkg-accent);
  color: #052e16;
  border: none;
}

.pkg-btn.ghost {
  background: transparent;
}

.pkg-block p.section-intro {
  color: var(--pkg-muted);
  margin-bottom: 1rem;
}

.pkg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .pkg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.package-card {
  background: #0b1324;
  border: 1px solid rgba(234, 238, 249, 0.1);
  border-radius: 16px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.package-card.highlight {
  border-color: var(--pkg-accent);
  box-shadow: 0 20px 38px rgba(34, 197, 94, 0.15);
}

.package-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.package-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0.6rem;
  color: var(--pkg-muted);
  font-size: 0.9rem;
  display: grid;
  gap: 0.3rem;
}

.package-card ul li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.package-card ul li::before {
  content: "✓";
  color: var(--pkg-accent);
  flex-shrink: 0;
}

.package-card ul li span {
  flex: 1;
}

.essentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.essentials-grid article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.75rem;
  background: #0e1528;
}

.essentials-grid h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.essentials-grid p {
  margin: 0;
  color: var(--pkg-muted);
  font-size: 0.9rem;
  text-align: center;
}

.comparison {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.comparison table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
  table-layout: auto;
}

.comparison th,
.comparison td {
  padding: 0.55rem 0.5rem;
  text-align: center;
}

.comparison th {
  background: rgba(20, 27, 43, 0.9);
  color: #e2e8f0;
}

.comparison td {
  background: rgba(11, 19, 36, 0.95);
}

.comparison tr:nth-child(even) td {
  background: rgba(11, 19, 36, 0.8);
}

.cta-panel {
  text-align: center;
  background: linear-gradient(120deg, #0b1324, #14213b);
  border-radius: var(--pkg-radius);
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-panel a {
  color: var(--pkg-accent);
  font-weight: 600;
}

.pkg-check {
  color: #22c55e;
}

.pkg-cross {
  color: #ef4444;
}

.pricing-shell {
  margin: 0 auto;
  width: 90%;
  max-width: 1080px;
  padding: 24px 0 40px;
}

.pricing-page .wrap.pricing-shell {
  width: 100%;
  max-width: 960px;
  padding: 24px;
}

.pricing-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.pricing-hero--stacked {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  width: 100%;
  margin: 0;
}

.pricing-hero--stacked .pricing-hero__art {
  justify-content: center;
}

.pricing-hero--stacked .pricing-hero__content {
  text-align: center;
}

.pricing-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-section--cta {
  align-items: center;
  text-align: center;
}

.pricing-page .addon-grid--stacked {
  grid-template-columns: 1fr;
}

.pricing-page .addon-card {
  cursor: default;
}

.pricing-page .addon-card:hover {
  transform: none;
  border-color: #263043;
}

.pricing-panel {
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.65);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 16px;
}

.pricing-panel h3 {
  margin-top: 0;
}

.addon-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.addon-card {
  border: 1px solid #263043;
  border-radius: 14px;
  padding: 14px;
  background: #0b1324;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  transition:
    transform 0.08s ease,
    border-color 0.15s ease;
  position: relative;
  cursor: pointer;
}

.addon-card--featured {
  border-color: rgba(245, 197, 66, 0.6);
  box-shadow: 0 12px 26px rgba(245, 197, 66, 0.12);
}

.addon-card:hover {
  transform: translateY(-2px);
  border-color: #3b4a62;
}

.addon-card__toggle {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  text-align: center;
  pointer-events: none;
}

.addon-card.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.addon-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  gap: 4px;
}

.addon-title__label {
  display: block;
}

.addon-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.addon-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.addon-price {
  font-weight: 800;
  color: #fff;
}

.addon-demo-link {
  align-self: flex-start;
  font-size: 0.85rem;
  color: #9ae6f0;
  text-decoration: none;
}

.addon-card .addon-demo-link {
  align-self: center;
  margin-top: 8px;
}

.addon-demo-link:hover {
  color: #d7f7ff;
  text-decoration: underline;
}

.option-list {
  display: grid;
  gap: 10px;
}

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

.option-item {
  border: 1px solid #263043;
  border-radius: 12px;
  padding: 12px;
  background: #0b1324;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.option-list--square .option-item {
  min-height: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.option-list--square .option-item span {
  display: inline-block;
}

.option-item.is-disabled {
  opacity: 0.5;
}

.summary-card {
  position: sticky;
  top: 24px;
  border: 1px solid #2b3649;
  border-radius: 16px;
  padding: 18px;
  background: #0b1324;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--fg);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin-top: 16px;
}

.summary-cta {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

.summary-bar {
  margin-top: 5vh;
  max-width: 1080px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding: 18px 16px;
  background: rgba(11, 19, 36, 0.95);
  border-top: 1px solid #233047;
  border-radius: 16px;
}

.summary-bar__inner {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
}

.summary-bar__details {
  flex: 1;
  min-width: 0;
}

.summary-bar__title {
  font-weight: 700;
  margin-bottom: 6px;
}

.summary-bar__total-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  text-align: right;
}

.summary-bar__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
}

.summary-bar__promo {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-bar__promo-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #c9d6ea;
}

.summary-bar__promo-controls {
  display: flex;
  gap: 8px;
}

.summary-bar__promo-controls input {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid #2b3649;
  background: rgba(11, 19, 36, 0.9);
  color: #eef3ff;
  padding: 8px 10px;
  font-size: 0.85rem;
}

.summary-bar__promo-controls button {
  border: 1px solid #2b3649;
  background: #1a2438;
  color: #eef3ff;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.summary-bar__promo-controls button:hover {
  border-color: #3b4a62;
}

.summary-bar__promo-status {
  min-height: 16px;
  font-size: 0.75rem;
  color: #8ea0bc;
}

.summary-bar__total {
  font-weight: 800;
}

.summary-list--bar {
  margin: 0;
  font-size: 0.85rem;
}

.summary-list--bar li {
  margin-bottom: 6px;
}

.summary-list__detail,
.summary-list__addon {
  font-size: 0.78rem;
}

.summary-list__detail span:first-child,
.summary-list__addon span:first-child {
  padding-left: 14px;
  position: relative;
}

.summary-list__detail span:first-child::before,
.summary-list__addon span:first-child::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #6f7e98;
}

.summary-list__addon:first-of-type {
  margin-top: 6px;
}

.flow-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.flow-card {
  position: relative;
  border: 1px solid rgba(59, 74, 98, 0.9);
  border-radius: 18px;
  padding: 8px;
  background: linear-gradient(
    145deg,
    rgba(18, 28, 48, 0.95),
    rgba(11, 19, 36, 0.9)
  );
  text-align: center;
  min-height: 170px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.12s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  overflow: hidden;
  display: grid;
  grid-template-rows: min-content min-content 1fr;
  gap: 6px;
  width: 100%;
  height: 100%;
}

.flow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(34, 197, 94, 0.12),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.flow-card:hover {
  transform: translateY(-3px);
  border-color: rgba(76, 121, 92, 0.9);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.4);
}

.flow-card:hover::after {
  opacity: 1;
}

.flow-card h3 {
  margin: 0;
  text-align: center;
  font-size: 1rem;
}

.flow-card p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 30px;
  min-height: 30px;
  line-height: 1;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  color: #d7f7e2;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin: 6px auto 0;
}

.pricing-page {
  background:
    radial-gradient(circle at top, rgba(10, 68, 151, 0.11), transparent 55%),
    var(--bg);
  color: var(--fg);
}

.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: center;
  background: linear-gradient(
    140deg,
    rgba(20, 32, 58, 0.9),
    rgba(13, 19, 36, 0.95)
  );
  border: 1px solid rgba(56, 69, 96, 0.7);
  max-width: 1080px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.pricing-page .pricing-hero.pricing-hero--stacked {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-hero__content h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
}

.pricing-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.2);
  color: #d8fff0;
}

.pricing-hero__chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.pricing-hero__chips span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 12px;
  font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.9rem);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(59, 74, 98, 0.6);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  text-align: center;
  aspect-ratio: 1 / 1;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  text-wrap: balance;
}

.pricing-hero__chips .pricing-chip--wide {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  min-height: 56px;
}

.pricing-hero__art {
  display: flex;
  justify-content: center;
}

.pricing-hero__art img {
  width: min(260px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(59, 74, 98, 0.6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.pricing-panel {
  background: rgba(10, 16, 30, 0.85);
  border: 1px solid rgba(46, 58, 84, 0.8);
}

.pricing-panel--base {
  background: linear-gradient(
    140deg,
    rgba(18, 48, 44, 0.8),
    rgba(10, 16, 30, 0.92)
  );
  border-color: rgba(34, 197, 94, 0.5);
}

.pricing-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.pricing-panel__header h2,
.pricing-panel__header h3 {
  flex: 1 1 100%;
  text-align: center;
  margin: 0;
}

.pricing-panel__header .price-pill {
  margin-left: auto;
  margin-right: auto;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.2);
  color: #e4ffee;
  font-size: large;
}

.addon-card.is-active,
.option-item.is-active {
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 14px 34px rgba(34, 197, 94, 0.2);
}

.addon-card.is-active::after,
.option-item.is-active::after {
  content: "✓";
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.9);
  color: #0b1324;
  font-size: 0.85rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(34, 197, 94, 0.35);
}

.option-item {
  position: relative;
}

.option-list--soon {
  margin-top: 16px;
}

.summary-card {
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: linear-gradient(
    160deg,
    rgba(12, 28, 24, 0.95),
    rgba(11, 19, 36, 0.95)
  );
}

.summary-card h3 {
  margin-top: 0;
}

.summary-card .muted {
  margin: 0;
}

.game-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.game-grid.game-grid--reception {
  grid-template-columns: minmax(0, 1fr);
}

.my-enigmats__section-copy + .game-grid.game-grid--reception {
  grid-template-columns: minmax(0, 1fr);
}

.reception-selection-box {
  position: relative;
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: #0e73fe;
  color: #fff;
  text-align: center;
}

.reception-selection-box__price-ribbon {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff4f8b;
  color: #fff;
  font-weight: 800;
  font-size: clamp(0.84rem, 1.4vw, 0.98rem);
  line-height: 1;
  padding: 8px 14px;
  border-radius: 999px;
  margin: 2px auto 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.26);
}

.game-grid--reception .game-card {
  padding: 10px;
}

.reception-selection-box h2,
.reception-selection-box .my-enigmats__section-copy,
.game-grid--reception .game-card h3,
.game-grid--reception .game-card h5,
.game-grid--reception .game-card p {
  color: #fff;
}

.game-grid--reception .game-card__icon {
  width: clamp(40px, 8vw, 52px);
  height: clamp(40px, 8vw, 52px);
}

.game-grid--reception .game-card h3 {
  font-size: clamp(0.88rem, 1.35vw, 1.02rem);
  line-height: 1.2;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
  text-align: center;
}

.game-grid--reception .game-card p {
  font-size: clamp(0.74rem, 1.05vw, 0.9rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.reception-selection-box__leaderboard-note {
  text-align: center;
}

.my-enigmats__section-copy + .game-grid {
  grid-template-columns: minmax(0, 1fr);
}

.game-grid .game-card--wide {
  grid-column: 1 / -1;
}

.carousel {
  position: relative;
  margin-top: 12px;
}

.carousel__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 12px;
  padding: 6px 4px 12px;
  -webkit-overflow-scrolling: touch;
}

.carousel__track::-webkit-scrollbar {
  height: 8px;
}

.carousel__track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.carousel__track .game-card {
  flex: 0 0 clamp(176px, 56vw, 256px);
  scroll-snap-align: start;
  padding: 11px;
}

.carousel__track .game-card--recommended {
  padding-top: 28px;
}

.carousel__track .game-card__icon {
  width: clamp(96px, 24vw, 112px);
  height: clamp(96px, 24vw, 112px);
  margin-bottom: 10px;
}

.carousel__btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 15, 25, 0.85);
  color: #fff;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.carousel__btn[data-carousel-prev] {
  left: -10px;
}

.carousel__btn[data-carousel-next] {
  right: -10px;
}

.game-grid .game-card {
  border: 1px solid #263043;
  border-radius: 14px;
  padding: 10px 12px;
  background: #0b1324;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  min-height: 72px;
}

.game-card--recommended {
  position: relative;
  border-color: #f5c542;
  box-shadow: 0 12px 30px rgba(245, 197, 66, 0.22);
  padding-top: 34px;
}

.game-card__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  margin: 0;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.18);
  color: #f7d56a;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: absolute;
  top: 10px;
  right: 10px;
}

.game-grid .game-card h3,
.game-grid .game-card h5 {
  margin: 0 0 4px;
  text-align: center;
  color: var(--cta-contrast);
}

.game-grid .game-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 9vw, 56px);
  height: clamp(44px, 9vw, 56px);
  margin: 0;
  grid-row: 1 / span 2;
}

.game-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.game-grid .game-card p {
  margin: 0;
  text-align: center;
  color: var(--cta-contrast);
  font-size: 0.9rem;
  line-height: 1.3;
}

.game-grid .game-card--wide {
  display: block;
  text-align: center;
  padding: 14px;
  min-height: 0;
}

.game-grid .game-card--wide h3,
.game-grid .game-card--wide h5,
.game-grid .game-card--wide p {
  text-align: center;
}

.game-card__hero-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  display: block;
}

.game-card__hero-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.game-card__ribbon {
  position: absolute;
  top: 18px;
  right: -42px;
  background: #ff4f8b;
  color: #fff;
  font-weight: 700;
  font-size: 0.74rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 8px 48px;
  transform: rotate(32deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.pricing-panel__header--center {
  text-align: center;
}

.my-enigmats .pricing-link {
  font-size: 1.2rem;
  text-align: center;
  margin: 0;
}

.pricing-link a {
  color: inherit;
  text-decoration: none;
}

.pricing-link a:hover {
  text-decoration: none;
  opacity: 0.9;
}

.container {
  display: inline-block;
  overflow: hidden;
}

.video-crop {
  width: 200px;
  height: 400px;
  overflow: hidden;
  position: relative;
  border-radius: 25px;
  margin: 0 auto 1.5rem;
}

.video-crop video {
  position: absolute;
  left: -10px;
}

main#app {
  max-width: 800px;
  margin: 1.5rem auto;
  padding: 1rem 1.5rem 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.my-promo-video {
  display: block;
  width: 220px;
  height: 400px;
  border-radius: 40px;
  object-fit: cover;
}

/* ============================================================================
   11. RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 720px) {
  .pricing-hero__chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-hero__chips span {
    font-size: clamp(0.76rem, 0.7rem + 0.35vw, 0.85rem);
  }
  .series-promo {
    grid-template-columns: 1fr;
  }
  .series-promo-tiles {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
  .promo-tile {
    width: 64px;
    height: 64px;
  }
  .game-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .carousel__btn {
    display: none;
  }
  .flow-card {
    min-height: 150px;
    padding: 6px 4px;
    gap: 4px;
  }
  .flow-card h3 {
    font-size: 0.95rem;
  }
  .flow-card p {
    font-size: 0.8rem;
  }
  .flow-step {
    width: 46px;
    height: 26px;
    font-size: 0.85rem;
  }
  .pricing-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pricing-hero__content {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 20px 16px 32px;
  }
  header {
    padding: 28px 0 16px;
  }
  .card {
    padding: 18px 16px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .tile {
    padding: 18px 16px;
  }
  .tile-img {
    height: 180px;
  }
  .promo-tile {
    width: 100%;
    max-width: 96px;
    height: auto;
    aspect-ratio: 1;
  }
  footer {
    font-size: 0.85rem;
  }
  .my-enigmats {
    margin: 1.5rem auto;
    padding: clamp(1.25rem, 4vw, 2.25rem);
  }
  .my-enigmats__hero {
    gap: 0.5rem;
  }
  .my-enigmats__hero .lead {
    font-size: 1rem;
  }
  .my-enigmats p {
    font-size: 0.95rem;
  }
  .my-enigmats__carousel {
    width: min(220px, 80vw);
  }
  .demo-square-btn--inline {
    min-height: 52px;
  }
  .pricing-hero__chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .pricing-hero__chips span {
    padding: 10px;
    font-size: clamp(0.7rem, 0.66rem + 0.4vw, 0.82rem);
    border-radius: 12px;
  }
}

@media (prefers-color-scheme: dark) {
  .my-enigmats {
    --bg: #0c0c0c;
    --fg: #f4f4f4;
    --muted: #c8c8c8;
    --accent: #fff;
    --accent-contrast: #000;
    --ring: rgba(255, 255, 255, 0.12);
  }

  .my-enigmats .cta {
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.15);
  }
}
