/* =========================================================================
   Wispdock site.css (v6)
   v5 structure (notice strip, pill nav, split hero, plans under the hero,
   feature grid, game artwork row, narrow FAQ,
   multi-column footer) with the v6 visual layer on top:
   - pixel-stepped shapes (.px clip-path, --s = step size)
   - framed pixel art from img/art/ (hero, modpack band, pricing head)
   - stepped edges on the notice strip, alt bands, CTA band and footer
   - a few low-contrast pixel block clusters in section corners
   - raised, warmer plan cards with pixel icons
   Dark night background, purple accent, lilac accent text, cyan only as glow.
   Fonts: Outfit (headings) + Inter (body). Tokens come from brand/tokens/tokens.css.
   ========================================================================= */

:root {
  --bg: var(--wd-harbor, #0F0D24);
  --bg-2: var(--wd-night, #17153A);
  --card: #1A1843;
  --card-2: #211E50;
  --line: rgba(169, 155, 255, 0.14);
  --line-2: rgba(169, 155, 255, 0.28);
  --text: var(--wd-light, #F6F5FF);
  --muted: var(--wd-haze, #A6A2C8);
  --dim: #8F8BB6;
  --accent: var(--wd-purple, #6C5CE7);
  --accent-hi: #6554DB;
  --accent-deep: var(--wd-purple-600, #5A4AD6);
  --lilac: var(--wd-lilac, #A99BFF);
  --ok: var(--wd-dark-success, #4FD69C);
  --warn: var(--wd-dark-warning, #F5B544);
  --err: var(--wd-dark-error, #FF7A8F);
  --glow: #7FE7FF;               /* wisp glow only, never text or fills */
  --card-warm: #251F55;          /* raised plan cards */
  --card-warm-2: #1D1846;
  --frame-deep: #3B2FA0;         /* offset layer behind pixel frames */
  --footer: #0A081C;

  /* Pixel-step edge tiles (192 x 24). "up" is filled at the bottom, "down" at the top. */
  --edge-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 192 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24V16H24V8H48V16H72V24H96V8H120V0H144V16H168V8H192V24Z'/%3E%3C/svg%3E");
  --edge-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 192 24' preserveAspectRatio='none'%3E%3Cpath d='M0 0V8H24V16H48V8H72V0H96V16H120V24H144V8H168V16H192V0Z'/%3E%3C/svg%3E");
  /* Decorative block clusters for section corners. Two tones for a little depth. */
  --pix-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 200'%3E%3Cg fill='%23241E5E'%3E%3Crect y='40' width='40' height='40'/%3E%3Crect y='80' width='80' height='40'/%3E%3Crect x='40' y='120' width='80' height='40'/%3E%3Crect x='80' y='160' width='80' height='40'/%3E%3C/g%3E%3Cg fill='%232F2775'%3E%3Crect y='40' width='40' height='8'/%3E%3Crect x='40' y='80' width='40' height='8'/%3E%3Crect x='80' y='120' width='40' height='8'/%3E%3Crect x='120' y='160' width='40' height='8'/%3E%3C/g%3E%3C/svg%3E");
  --pix-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='%23241E5E'%3E%3Crect x='40' width='40' height='40'/%3E%3Crect y='40' width='120' height='40'/%3E%3Crect x='80' y='80' width='40' height='40'/%3E%3C/g%3E%3Cg fill='%232F2775'%3E%3Crect x='40' width='40' height='8'/%3E%3Crect y='40' width='40' height='8'/%3E%3Crect x='80' y='40' width='40' height='8'/%3E%3C/g%3E%3C/svg%3E");

  --font-h: var(--wd-font-heading, 'Outfit', ui-sans-serif, system-ui, sans-serif);
  --font-b: var(--wd-font-body, 'Inter', ui-sans-serif, system-ui, sans-serif);
  --font-m: var(--wd-font-mono, ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace);

  --fs-xs: 0.75rem;   /* 12 */
  --fs-s: 0.875rem;   /* 14 */
  --fs-b: 1rem;       /* 16 */
  --fs-m: 1.125rem;   /* 18 */
  --fs-h3: 1.25rem;   /* 20 */
  --fs-h2: clamp(1.875rem, 1.3rem + 1.9vw, 2.625rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);

  --r-s: 8px;
  --r: 14px;
  --r-l: 20px;
  --pill: 999px;
  --wrap: 1180px;
  --gut: clamp(20px, 4vw, 32px);
  --sec: clamp(72px, 9vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: var(--fs-b);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* hero art and corner blocks may poke past the viewport edge */
}

/* ---------- Pixel-stepped shape ----------
   Two steps per corner, each var(--s) square. Set --s on the element. */
.px, .art-frame, .art-frame__in, .art-frame img, .art::before, .band__inner, .feature__icon {
  --s: 8px;
  clip-path: polygon(
    0 calc(var(--s) * 2), var(--s) calc(var(--s) * 2), var(--s) var(--s), calc(var(--s) * 2) var(--s), calc(var(--s) * 2) 0,
    calc(100% - var(--s) * 2) 0, calc(100% - var(--s) * 2) var(--s), calc(100% - var(--s)) var(--s), calc(100% - var(--s)) calc(var(--s) * 2), 100% calc(var(--s) * 2),
    100% calc(100% - var(--s) * 2), calc(100% - var(--s)) calc(100% - var(--s) * 2), calc(100% - var(--s)) calc(100% - var(--s)), calc(100% - var(--s) * 2) calc(100% - var(--s)), calc(100% - var(--s) * 2) 100%,
    calc(var(--s) * 2) 100%, calc(var(--s) * 2) calc(100% - var(--s)), var(--s) calc(100% - var(--s)), var(--s) calc(100% - var(--s) * 2), 0 calc(100% - var(--s) * 2)
  );
}
.pixelated { image-rendering: pixelated; image-rendering: crisp-edges; }
@supports (image-rendering: pixelated) { .pixelated { image-rendering: pixelated; } }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4, .h3, .h4 { font-family: var(--font-h); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
h4, .h4 { font-size: var(--fs-b); letter-spacing: 0; font-weight: 600; }
.display { font-size: var(--fs-h1); }
p { text-wrap: pretty; }
a { color: var(--lilac); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
strong, b { font-weight: 600; color: var(--text); }
code { font-family: var(--font-m); font-size: 0.9em; background: rgba(169,155,255,.1); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--text); }
hr { border: 0; border-top: 1px solid var(--line); }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--pill); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: calc(720px + var(--gut) * 2); }
.section { padding-block: var(--sec); position: relative; }
.section--alt, .section[data-theme="paper"], .section[data-theme="tint"] { background: var(--bg-2); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }
.pt-0 { padding-top: 0 !important; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 32px; }
.grid > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 900px) {
  .c-1-4  { grid-column: 1 / span 4; }
  .c-1-5  { grid-column: 1 / span 5; }
  .c-1-6  { grid-column: 1 / span 6; }
  .c-1-7  { grid-column: 1 / span 7; }
  .c-1-8  { grid-column: 1 / span 8; }
  .c-1-12 { grid-column: 1 / -1; }
  .c-5-8  { grid-column: 5 / span 8; }
  .c-6-7  { grid-column: 6 / span 7; }
  .c-7-6  { grid-column: 7 / span 6; }
  .c-8-5  { grid-column: 8 / span 5; }
  .c-9-4  { grid-column: 9 / span 4; }
}
.ai-end { align-items: end; }
.ai-center { align-items: center; }
.stack > * + * { margin-top: 16px; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; } .mt-xl { margin-top: 64px; }

/* ---------- Text helpers ---------- */
.lead { font-size: var(--fs-m); line-height: 1.6; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: var(--fs-s); }
.strong { color: var(--text); }
.hl { color: var(--lilac); }
.tr { display: block; color: var(--lilac); }
.overline, .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.overline--accent, .eyebrow--accent { color: var(--lilac); }
.kicker { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.kicker__no { display: none; }
.textlink { color: var(--text); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.textlink:hover { color: var(--lilac); }
.textlink .arrow { transition: transform .2s var(--ease); }
.textlink:hover .arrow { transform: translateX(3px); }

.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head h2 + p { margin-top: 14px; color: var(--muted); font-size: var(--fs-m); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.sec-head--row > div { max-width: 600px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 8px 0 22px;
  border-radius: var(--pill); border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 var(--fs-s)/1 var(--font-b); letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--accent-hi); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn .arrow, .btn__arrow {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.18); font-size: 15px; line-height: 1; transition: transform .2s var(--ease);
}
.btn:hover .arrow, .btn:hover .btn__arrow { transform: translateX(2px); }
.btn--plain { padding: 0 22px; }
.btn--quiet { --btn-bg: transparent; --btn-fg: var(--text); border-color: var(--line-2); }
.btn--quiet:hover { background: rgba(169,155,255,.1); border-color: var(--lilac); }
.btn--quiet .arrow { background: rgba(169,155,255,.14); }
.btn--block { width: 100%; justify-content: space-between; }
.btn--sm { min-height: 38px; padding: 0 6px 0 16px; font-size: 13px; }
.btn--sm .arrow { width: 26px; height: 26px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--btn-bg); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--pill);
  border: 1px solid var(--line-2); background: rgba(169,155,255,.06);
  font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag, .tag--plan {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--pill);
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(169,155,255,.12); color: var(--lilac); vertical-align: middle; white-space: nowrap;
}
.tag--warn { background: rgba(245,181,68,.12); color: var(--warn); }
.tag--ok { background: rgba(79,214,156,.12); color: var(--ok); }

/* =========================================================================
   Notice strip + header
   ========================================================================= */
.notice-strip {
  position: relative; z-index: 30;
  background: var(--accent-deep); color: #fff; font-size: 13px; font-weight: 500;
  text-align: center; padding: 10px var(--gut) 8px; line-height: 1.4;
}
/* Pixel texture that only shows toward the two ends of the strip. */
.notice-strip::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: conic-gradient(rgba(255,255,255,.09) 25%, transparent 0 50%, rgba(255,255,255,.09) 0 75%, transparent 0) 0 0 / 16px 16px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 22%, transparent 78%, #000);
          mask-image: linear-gradient(90deg, #000, transparent 22%, transparent 78%, #000);
}
/* Stepped bottom edge. */
.notice-strip::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 12px; pointer-events: none;
  background: var(--accent-deep);
  -webkit-mask: var(--edge-down) repeat-x 0 0 / 192px 12px;
          mask: var(--edge-down) repeat-x 0 0 / 192px 12px;
}
.notice-strip p { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }
.notice-strip__chip { background: #fff; color: var(--accent-deep); border-radius: 6px; padding: 2px 8px; font-weight: 700; font-size: 12px; letter-spacing: .02em; }
.notice-strip a { color: #fff; font-weight: 600; }
.notice-strip a:hover { color: #fff; text-decoration-thickness: 2px; }

.site-header { padding-top: 22px; position: relative; z-index: 20; }
.navbar {
  display: flex; align-items: center; gap: 16px;
  min-height: 64px; padding: 8px 8px 8px 20px;
  border: 1px solid var(--line-2); border-radius: var(--pill);
  background: rgba(23, 21, 58, .96);
  box-shadow: 0 18px 40px -18px rgba(5, 3, 20, .9);
}

.brand { display: inline-flex; flex: none; border-radius: 8px; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; flex: 1; gap: 16px; min-width: 0; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0 0 0 12px; padding: 0; }
.nav__list a {
  display: inline-flex; padding: 8px 12px; border-radius: var(--pill);
  color: var(--muted); font-size: var(--fs-s); font-weight: 500; text-decoration: none;
  transition: color .15s, background-color .15s;
}
.nav__list a:hover { color: var(--text); background: rgba(169,155,255,.08); }
.nav__list a[aria-current="page"] { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__panel {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  color: var(--dim); font-size: var(--fs-s); font-weight: 500; cursor: default;
}
.nav__panel svg { width: 16px; height: 16px; }
.nav__panel small { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--lilac); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 1px 6px; }
.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px; border-radius: var(--pill);
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font: 600 var(--fs-s)/1 var(--font-b); cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 16px; height: 10px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s var(--ease); }
.nav-toggle__bars::before { top: 0; } .nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 979px) {
  .navbar { flex-wrap: wrap; border-radius: 26px; padding: 8px 8px 8px 18px; }
  .js .nav-toggle { display: inline-flex; }
  .nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 4px 4px 10px 0; }
  .js .nav { display: none; }
  .js .nav[data-open="true"] { display: flex; }
  .nav__list { flex-direction: column; margin: 0; }
  .nav__list a { padding: 12px 14px; font-size: var(--fs-b); border-radius: 12px; }
  .nav__right { margin: 4px 0 0; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); position: relative; }
.hero__grid { display: grid; gap: 56px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; } }
.hero__copy { max-width: 560px; }
/* Block cluster, bottom-left of the hero. */
.hero::before {
  content: ""; position: absolute; left: -36px; bottom: -70px; width: 160px; height: 200px;
  background: var(--pix-a) no-repeat 0 0 / contain; opacity: .7; pointer-events: none;
}

/* =========================================================================
   Pixel art frame (.art). Used by the hero, the modpack band and the pricing head.
   Markup: figure.art > div.art-frame > div.art-frame__in > img
   Layers, outside in: offset deep-purple block (.art::before), purple frame,
   lilac rim, image. The glow follows the stepped outline via drop-shadow.
   ========================================================================= */
.art { position: relative; margin: 0; min-width: 0; padding: 0 18px 18px 0; }
.art::before {
  --s: 16px;
  content: ""; position: absolute; inset: 18px 0 0 18px; background: var(--frame-deep);
}
.art__glow { filter: drop-shadow(0 0 28px rgba(127, 231, 255, .22)) drop-shadow(0 0 70px rgba(169, 155, 255, .28)); position: relative; }
.art-frame { --s: 16px; position: relative; padding: 12px; background: var(--accent); }
.art-frame__in { --s: 10px; padding: 5px; background: var(--lilac); }
.art .art-frame img { --s: 7px; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-2); }
.art__tag {
  position: absolute; z-index: 2; left: 28px; bottom: 2px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--bg); border: 2px solid var(--lilac); border-radius: 0;
  font: 700 13px/1 var(--font-h); letter-spacing: .01em; color: var(--text);
  box-shadow: 4px 4px 0 var(--frame-deep);
}
.art__tag i { width: 8px; height: 8px; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.art__tag > span:not([data-i18n]) { color: var(--lilac); }

/* Hero art: big, and on wide screens it rises behind the nav. */
.hero__art { align-self: start; }
@media (min-width: 1000px) {
  /* Pull the art up by the header height (22px + 64px) plus the hero's top padding,
     so its top edge sits just under the notice strip's stepped edge. */
  .hero__copy { padding-top: 40px; }
  .hero__art { margin-top: calc(-86px - clamp(40px, 4vw, 58px)); margin-right: calc(var(--gut) * -0.5); }
  .hero__art .art-frame { --s: 20px; padding: 16px; }
  .hero__art .art-frame__in { --s: 12px; padding: 6px; }
  .hero__art::before { --s: 20px; }
}
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin-bottom: 26px; font-size: var(--fs-s); color: var(--muted); list-style: none; padding: 0; }
.facts li { display: inline-flex; align-items: center; gap: 8px; padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--line-2); line-height: 1.2; }
.facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.facts svg { width: 16px; height: 16px; color: var(--lilac); flex: none; }
.hero h1 { max-width: 11ch; }
.hero .lead { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); max-width: 46ch; }
.hero .actions { margin-top: 34px; }



/* =========================================================================
   Plans
   ========================================================================= */
.plans-section { padding-top: clamp(24px, 4vw, 48px); }
.edition { margin: 0; min-width: 0; display: inline-flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.edition legend { float: left; padding: 0; font-size: 12px; color: var(--dim); line-height: 1.3; }
.edition legend b { display: block; color: var(--text); font-size: var(--fs-s); }
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: var(--pill); background: var(--bg); border: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 7px 14px; border-radius: var(--pill); font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s; }
.seg input:checked + label { background: var(--accent); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--lilac); outline-offset: 2px; }

.plans-section { overflow-x: clip; }
/* Block cluster drifting off the right edge, behind the cards. */
.plans-section::before {
  content: ""; position: absolute; right: -40px; top: 34%; width: 120px; height: 120px;
  background: var(--pix-b) no-repeat 0 0 / contain; opacity: .65; pointer-events: none;
}
.plans-section > .wrap { position: relative; }
.plans { display: grid; gap: 20px; grid-auto-rows: 1fr; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 24px 24px; border-radius: var(--r); border: 1px solid rgba(169,155,255,.22);
  background: linear-gradient(180deg, var(--card-warm) 0%, var(--card-warm-2) 100%);
  box-shadow: inset 0 1px 0 rgba(241,239,255,.08), 0 6px 0 -1px #0B0920, 0 26px 50px -24px rgba(5,3,20,.9);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.plan:hover { border-color: rgba(169,155,255,.42); transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(241,239,255,.08), 0 9px 0 -1px #0B0920, 0 30px 56px -24px rgba(5,3,20,.95); }
.plan--pick { border-color: rgba(169,155,255,.5); background: linear-gradient(180deg, #2C2566 0%, var(--card-warm-2) 70%); }
.plan__flag { position: absolute; top: -12px; right: 20px; padding: 4px 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; box-shadow: 3px 3px 0 var(--frame-deep); }
.plan__top { display: flex; align-items: center; gap: 14px; }
/* Pixel icon tile next to the plan name. */
.plan__art { flex: none; display: grid; place-items: center; width: 64px; height: 64px; }
.plan__art img { width: auto; height: 56px; max-width: 56px; object-fit: contain; }
.plan__name { font-family: var(--font-h); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; }
.plan__name > span:not([data-i18n]) { color: var(--lilac); }
.plan__for { margin-top: 12px; color: var(--muted); font-size: var(--fs-s); min-height: 2.9em; }
.plan__price { margin-top: 20px; display: flex; align-items: baseline; gap: 6px; font-family: var(--font-h); font-size: 2.75rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan__price small { font-family: var(--font-b); font-size: var(--fs-s); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan__price--text { font-size: 2rem; }
.plan__billing { margin-top: 6px; font-size: 12px; color: var(--dim); }
.plan__list { list-style: none; margin: 22px 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; flex: 1; font-size: var(--fs-s); color: #DCD9F2; }
.plan__list li { position: relative; padding-left: 24px; line-height: 1.45; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 4px;
  background: rgba(169,155,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-5' fill='none' stroke='%23A99BFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.plan__note { display: none; margin: -10px 0 18px; padding: 10px 12px; border-radius: 10px; background: rgba(245,181,68,.08); border: 1px solid rgba(245,181,68,.22); color: #F3D9A6; font-size: 13px; line-height: 1.45; }
.plans-wrap:has(#ed-bedrock:checked) .plan__note--bedrock { display: block; }
.plans-wrap:has(#ed-bedrock:checked) .for-java { display: none; }
.for-bedrock { display: none; }
.plans-wrap:has(#ed-bedrock:checked) .for-bedrock { display: inline; }
.plans-foot { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: var(--fs-s); color: var(--dim); }

/* =========================================================================
   Modpack band
   ========================================================================= */
.modband { background: var(--bg-2); }
.modband__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .modband__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; } }
.modband h2 { max-width: 16ch; }
.modband p.lead { margin-top: 16px; }
.modband .chips { margin-top: 26px; }
.modband .actions { margin-top: 30px; }
.modband__art { max-width: 620px; }

/* =========================================================================
   Stepped band edges. Alt-coloured bands grow pixel steps into their
   neighbours instead of meeting them on a straight line.
   ========================================================================= */
.section--alt, .section[data-theme="paper"], .section[data-theme="tint"], .modband { z-index: 1; }
.section--alt::before, .section[data-theme="paper"]::before, .section[data-theme="tint"]::before, .modband::before,
.section--alt::after, .section[data-theme="paper"]::after, .section[data-theme="tint"]::after, .modband::after {
  content: ""; position: absolute; left: 0; right: 0; height: 24px; pointer-events: none; background: var(--bg-2);
}
.section--alt::before, .section[data-theme="paper"]::before, .section[data-theme="tint"]::before, .modband::before {
  bottom: calc(100% - 1px);
  -webkit-mask: var(--edge-up) repeat-x 0 100% / 192px 24px;
          mask: var(--edge-up) repeat-x 0 100% / 192px 24px;
}
.section--alt::after, .section[data-theme="paper"]::after, .section[data-theme="tint"]::after, .modband::after {
  top: calc(100% - 1px);
  -webkit-mask: var(--edge-down) repeat-x 96px 0 / 192px 24px;
          mask: var(--edge-down) repeat-x 96px 0 / 192px 24px;
}

/* =========================================================================
   Feature cards
   ========================================================================= */
.features { display: grid; gap: 18px; }
@media (min-width: 680px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature { padding: 26px 22px 24px; border-radius: var(--r); border: 1px solid rgba(169,155,255,.18); background: linear-gradient(180deg, #1E1A4A 0%, var(--card) 100%); box-shadow: inset 0 1px 0 rgba(241,239,255,.06); display: flex; flex-direction: column; }
.feature__icon {
  --s: 4px;
  width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 22px; color: #fff;
  background: var(--accent); box-shadow: inset -6px -6px 0 rgba(15,13,36,.28), inset 6px 6px 0 rgba(255,255,255,.12);
}.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.feature p { margin-top: 10px; font-size: var(--fs-s); color: var(--muted); line-height: 1.6; }
.feature__foot { margin-top: auto; padding-top: 18px; font-size: 12px; color: var(--dim); }

/* =========================================================================
   Games row
   ========================================================================= */
.games-heading { flex-wrap: nowrap; align-items: center; }
.games-controls { display: flex; flex: none; gap: 10px; }
.games-arrow { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #A99BFF; border-radius: 50%; background: #17153A; color: #F6F5FF; cursor: pointer; transition: background .2s, opacity .2s; }
.games-arrow svg { width: 22px; height: 22px; }
.games-arrow:hover:not(:disabled) { background: #6C5CE7; }
.games-arrow:disabled { opacity: .3; cursor: default; }
.games-arrow:focus-visible, .games:focus-visible { outline: 2px solid #A99BFF; outline-offset: 4px; }
.games { display: grid; grid-auto-flow: column; grid-auto-columns: 210px; gap: 20px; overflow-x: auto; padding: 10px 0 24px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.games::-webkit-scrollbar { display: none; }
.game { min-width: 0; scroll-snap-align: start; transition: transform .2s var(--ease); }
.game__cover { aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: #17153A; transition: box-shadow .2s var(--ease); }
.game__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game__name { margin-top: 16px; font-family: var(--font-h); font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: #F6F5FF; text-wrap: initial; }
.game__meta { display: flex; margin-top: 8px; }
.game__badge { padding: 4px 9px; border: 1px solid rgba(169,155,255,.22); border-radius: 6px; background: rgba(108,92,231,.12); color: #A99BFF; font-size: 12px; line-height: 1.4; }
@media (hover: hover) {
  .game:hover { transform: translateY(-5px); }
  .game:hover .game__cover { box-shadow: 0 12px 22px rgba(15,13,36,.5), 0 0 0 1px rgba(169,155,255,.3); }
}
@media (max-width: 679px) {
  .games { grid-auto-columns: 160px; gap: 16px; }
  .games-heading { gap: 14px; align-items: flex-start; }
  .games-heading h2 { font-size: 1.5rem; }
  .games-arrow { width: 36px; height: 36px; }
  .games-controls { gap: 6px; }
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2v8M2 6h8' stroke='%23A99BFF' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .2s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: rgba(108,92,231,.22); }
.faq summary:hover { color: var(--lilac); }
.faq .answer { padding: 0 48px 22px 4px; color: var(--muted); font-size: var(--fs-s); line-height: 1.7; }
.faq .answer p + p { margin-top: 10px; }
.faq-more { margin-top: 28px; text-align: center; font-size: var(--fs-s); color: var(--muted); }

/* =========================================================================
   Comparison table (pricing) + generic spec tables (subpages)
   ========================================================================= */
.table-scroll { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.compare-t, .spec { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.compare-t caption, .spec caption { display: table-caption; text-align: left; padding: 16px 20px 0; caption-side: top; }
.compare-t th, .compare-t td, .spec th, .spec td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-t tr:last-child > *, .spec tr:last-child > * { border-bottom: 0; }
.compare-t thead th, .spec thead th { font-family: var(--font-h); font-size: var(--fs-b); font-weight: 600; color: var(--text); background: rgba(169,155,255,.05); }
.compare-t tbody th, .spec tbody th { font-weight: 500; color: var(--muted); width: 34%; }
.compare-t td { color: var(--text); }
.compare-t .grp th { padding-top: 22px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); background: transparent; }
.yes, .no { display: inline-flex; align-items: center; gap: 8px; }
.yes::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: rgba(79,214,156,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%234FD69C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.no { color: var(--dim); }
.no::before { content: ""; width: 10px; height: 2px; margin: 0 3px; background: var(--dim); border-radius: 2px; }
.spec td .muted, .spec--stack td span.muted { display: block; font-size: 13px; margin-top: 2px; }
.spec td { color: var(--text); }

.ramguide { display: grid; gap: 12px; }
@media (min-width: 760px) { .ramguide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .ramguide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ramguide li { padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.ramguide b { font-family: var(--font-h); font-size: var(--fs-m); }
.ramguide p { margin-top: 4px; font-size: var(--fs-s); color: var(--muted); }

/* =========================================================================
   Subpage blocks (minecraft, about, contact, legal, 404)
   ========================================================================= */
.pagehead { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); position: relative; }
.pagehead > .wrap { position: relative; z-index: 1; }
/* Small block cluster in the top-right corner of every subpage head. */
.pagehead::before {
  content: ""; position: absolute; right: -30px; top: 8px; width: 120px; height: 120px;
  background: var(--pix-b) no-repeat 0 0 / contain; opacity: .55; pointer-events: none; transform: scaleX(-1);
}
.pagehead--art::before { right: auto; left: -40px; top: auto; bottom: -40px; transform: none; }
.pagehead__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .pagehead__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 56px; } }
.pagehead__art { max-width: 520px; }
.pagehead__art .art-frame img { aspect-ratio: 16 / 9; object-position: 50% 62%; }
.pagehead h1 { max-width: 18ch; }
.pagehead .lead { margin-top: 20px; }
.pagehead .overline { margin-bottom: 18px; }
.pagehead__aside { align-self: end; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); font-size: var(--fs-s); color: var(--muted); }

.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; font: 600 12px var(--font-m); color: var(--lilac); }
.steps h3 { font-size: var(--fs-b); }
.steps p { margin-top: 8px; font-size: var(--fs-s); color: var(--muted); }
.aside { padding: 16px 20px; border-left: 2px solid var(--accent); background: rgba(108,92,231,.08); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: var(--fs-s); color: var(--muted); }

.ledger { display: grid; }
.ledger li { display: grid; grid-template-columns: 72px 1fr; gap: 4px 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ledger li:first-child { border-top: 1px solid var(--line); }
.ledger__no { grid-row: span 2; font: 600 12px var(--font-m); color: var(--lilac); padding-top: 4px; text-transform: uppercase; }
.ledger h3 { font-size: var(--fs-m); }
.ledger p { color: var(--muted); font-size: var(--fs-s); }

.letter h2 { margin-bottom: 24px; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); }
.letter p { color: var(--muted); max-width: 64ch; }
.letter p + p { margin-top: 16px; }
.sign { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.sign img { width: 40px; height: 40px; }
.principles { display: grid; gap: 14px; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.principles > div { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.principles dt { font-family: var(--font-h); font-weight: 600; font-size: var(--fs-m); }
.principles dd { margin-top: 8px; color: var(--muted); font-size: var(--fs-s); }
.statement { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.08; }

.band { padding-block: clamp(56px, 7vw, 88px); }
.band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  --s: 12px;
  padding: clamp(32px, 4vw, 52px); background: var(--accent-deep);
  position: relative; overflow: hidden;
}
.band__inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: conic-gradient(rgba(255,255,255,.07) 25%, transparent 0 50%, rgba(255,255,255,.07) 0 75%, transparent 0) 0 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(100deg, transparent 55%, #000);
          mask-image: linear-gradient(100deg, transparent 55%, #000);
}
.band__inner > * { position: relative; }
.band__inner::after { content: ""; position: absolute; right: 24px; bottom: 24px; width: 72px; height: 72px; background: rgba(255,255,255,.1); clip-path: polygon(50% 0, 100% 0, 100% 100%, 0 100%, 0 50%, 50% 50%); pointer-events: none; }
.band__inner h2 { max-width: 22ch; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem); color: #fff; }
.band__inner .btn { --btn-bg: #fff; --btn-fg: var(--bg); }
.band__inner .btn:hover { background: var(--wd-moonlight, #F1EFFF); }
.band__inner .btn .arrow { background: rgba(23,21,58,.1); }
.band__inner .btn--quiet { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.5); }
.band__inner .btn--quiet:hover { background: rgba(255,255,255,.12); }
.band__inner p { color: rgba(255,255,255,.85); }

.notice { padding: 14px 18px; border-radius: var(--r-s); border: 1px solid rgba(245,181,68,.28); background: rgba(245,181,68,.08); color: #F3D9A6; font-size: var(--fs-s); }
.notice b, .notice strong { color: var(--warn); }

.contact-ways { display: grid; gap: 22px; }
.contact-ways li { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.contact-ways p { margin-top: 6px; color: var(--muted); font-size: var(--fs-s); }
.form { display: grid; gap: 22px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-l); border: 1px solid var(--line); background: var(--card); }
.form__row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: var(--fs-s); font-weight: 600; padding: 0; }
.field legend { margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font: inherit; font-size: var(--fs-s);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #75719E; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--lilac); outline-offset: 1px; border-color: transparent; }
.hint { font-size: 12px; color: var(--dim); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice > span { display: inline-flex; padding: 9px 16px; border-radius: var(--pill); border: 1px solid var(--line-2); font-size: var(--fs-s); font-weight: 500; color: var(--muted); cursor: pointer; }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--lilac); outline-offset: 2px; }
.form-status { padding: 14px 18px; border-radius: var(--r-s); background: rgba(108,92,231,.14); border: 1px solid var(--line-2); font-size: var(--fs-s); }

.toc { align-self: start; position: sticky; top: 24px; }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: var(--fs-s); text-decoration: none; }
.toc a:hover { color: var(--text); background: rgba(169,155,255,.08); }
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--fs-h3); margin: 44px 0 12px; display: flex; gap: 12px; align-items: baseline; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.h-no { font: 600 12px var(--font-m); color: var(--lilac); }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { margin-top: 10px; padding-left: 20px; display: grid; gap: 6px; }
.prose li::marker { color: var(--lilac); }
@media (max-width: 899px) { .toc { position: static; } }

.lost { min-height: 62vh; display: flex; align-items: center; }
.lost__code { font: 600 var(--fs-s) var(--font-m); color: var(--lilac); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { position: relative; margin-top: 24px; background: var(--footer); padding: clamp(56px, 7vw, 80px) 0 32px; font-size: var(--fs-s); }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 24px; pointer-events: none; background: var(--footer);
  -webkit-mask: var(--edge-up) repeat-x 48px 100% / 192px 24px;
          mask: var(--edge-up) repeat-x 48px 100% / 192px 24px;
}
.site-footer__grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); } }
.site-footer__brand .brand img { height: 30px; }
.site-footer__tag { margin-top: 16px; color: var(--muted); max-width: 30ch; }
.site-footer__slogan { margin-top: 18px; font-family: var(--font-h); font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); }
.site-footer__slogan > span:not([data-i18n]) { color: var(--lilac); }
.site-footer h2 { font-family: var(--font-b); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { color: var(--text); }
.site-footer li.soon { color: var(--dim); }
.site-footer__base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; color: var(--dim); font-size: 12px; }
.site-footer__base a { color: var(--muted); }

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .notice-strip, .site-header, .art, .site-footer { display: none; }
  .section::before, .section::after, .hero::before, .pagehead::before { display: none; }
  body, .section, .section--alt { background: #fff !important; color: #000 !important; }
}

/* Codex review v5: tighter fold, shared card rhythm, small-screen containment. */
.hero { padding-block: clamp(40px, 4vw, 58px) 28px; }
.hero h1 { max-width: 12ch; font-size: clamp(2.75rem, 5vw, 4.5rem); font-weight: 800; line-height: 1; }
.hero__grid { gap: 36px; }
.hero .lead { max-width: 43ch; }
.plans-section { padding-top: 24px; }
.plans-section .sec-head { margin-bottom: 32px; }
.plan { border-color: var(--line-2); }
.plan__price { min-height: 44px; }
.plan__price--text { align-items: center; }
.plan__for { min-height: 3.2em; }
.feature h3 { min-height: 2.6em; align-content: start; }
.feature p.feature__foot { margin-top: auto; }
.seg label { min-height: 44px; display: inline-flex; align-items: center; }
.field input, .field select, .field textarea { font-size: 1rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 32px; }
.site-footer ul { gap: 4px; }
@media (min-width: 980px) and (max-width: 1099px) {
  .navbar { gap: 8px; padding-left: 16px; }
  .nav { gap: 6px; }
  .nav__list { margin-left: 0; }
  .nav__list a { padding-inline: 8px; }
  .nav__panel { padding-inline: 6px; }
}
@media (min-width: 760px) and (max-width: 1039px) {
  .plans--3 .plan:last-child { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  :root { --sec: 64px; }
  .sec-head { margin-bottom: 28px; }
  .sec-head h2 + p { font-size: 1rem; }
  .hero { padding-top: 32px; }
  .hero__grid { gap: 28px; }
  .facts { font-size: 12px; margin-bottom: 20px; gap: 10px 14px; }
  .facts li { border: 0; padding: 0; margin: 0; gap: 6px; }
  .hero .lead { margin-top: 16px; }
  .hero .actions { margin-top: 24px; gap: 18px; }
  .art { padding: 0 10px 10px 0; }
  .art::before { --s: 10px; inset: 10px 0 0 10px; }
  .art-frame { --s: 10px; padding: 8px; }
  .art-frame__in { --s: 6px; padding: 4px; }
  .art .art-frame img { --s: 4px; }
  .art__tag { left: 16px; bottom: -4px; font-size: 12px; padding: 7px 11px; }
  .hero::before { width: 96px; height: 120px; left: -30px; bottom: -40px; opacity: .5; }
  .plans-section::before, .pagehead::before { opacity: .35; width: 80px; height: 80px; }
  .plans-section { padding-top: 12px; }
  .edition { width: 100%; justify-content: space-between; gap: 8px; }
  .plan { padding: 24px; }
  .plan__for { min-height: 0; }
  .plan__name { font-size: 1.5rem; line-height: 1.15; }
  .feature h3 { min-height: 0; }
  .feature__icon { margin-bottom: 16px; }
  .compare-t th, .compare-t td { padding: 12px 10px; overflow-wrap: anywhere; }
  .compare-t { table-layout: fixed; }
  .spec { min-width: 440px; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer nav a { min-height: 44px; }
  .site-footer__base { margin-top: 32px; }
  .modband .actions { flex-direction: column; align-items: stretch; }
}

/* Codex review v6: give the harbour more of the fold without crowding copy. */
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .hero__art { margin-right: calc(var(--gut) * -1); }
  .hero__art .art-frame img { aspect-ratio: 1.2; }
}

/* Language controls share the navigation on wide and narrow screens. */
.language-switch { display: inline-flex; flex: none; padding: 3px; gap: 2px; border: 1px solid var(--line-2); border-radius: 8px; }
.language-switch button { min-width: 36px; min-height: 38px; padding: 6px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font: 600 12px var(--font-b); cursor: pointer; }
.language-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.language-switch button:hover { color: #fff; }
.language-switch button:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }
@media (min-width: 900px) and (max-width: 1199px) {
  .nav__panel { display: none; }
  .navbar, .nav, .nav__list, .nav__right { gap: 12px; }
  .nav__right .btn { padding-inline: 12px; }
}

@media (max-width: 979px) {
  .nav__right { flex-wrap: wrap; gap: 12px; }
  .nav__right > .btn { flex-basis: 100%; }
  .language-switch button { min-height: 44px; }
}

/* Shared floating navigation, including the standalone builds. */
html { scroll-padding-top: 110px; }
.site-header { position: sticky; top: 12px; z-index: 100; padding-top: 0; margin: 12px 0; }
.site-header > .wrap { width: calc(100% - 24px); max-width: var(--wrap); padding: 0; }
.site-header .navbar { position: relative; flex-wrap: nowrap; gap: 12px; min-height: 72px; padding: 10px 10px 10px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); background: rgba(15,13,36,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 36px rgba(0,0,0,.24); transition: min-height .2s, padding .2s, background .2s; }
.site-header.is-scrolled .navbar { min-height: 62px; padding-block: 6px; background: rgba(15,13,36,.94); }
.site-header .nav { display: flex; flex-direction: row; flex-basis: auto; align-items: center; gap: 8px; padding: 0; }
.site-header .nav__list { flex-direction: row; margin: 0; gap: 0; }
.site-header .nav__list a, .nav-dropdown__toggle { padding: 10px; font: 500 13px/1.4 var(--font-b); color: var(--muted); border-radius: 999px; text-decoration: none; white-space: nowrap; }
.nav-dropdown { position: relative; }
.nav-dropdown__toggle { display: flex; align-items: center; gap: 5px; background: transparent; border: 0; cursor: pointer; }
.nav-chevron { width: 14px; height: 14px; }
.nav-dropdown__menu { display: none; position: absolute; top: 100%; left: 0; min-width: 180px; list-style: none; margin: 0; padding: 10px; background: #17152f; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; box-shadow: 0 18px 36px rgba(0,0,0,.3); }
.site-header .nav-dropdown__menu a { display: block; border-radius: 10px; }
.nav-dropdown:is(:hover, :focus-within, [data-open="true"]):not([data-dismissed="true"]) > .nav-dropdown__menu { display: block; }
.nav-dropdown__toggle:hover, .nav-dropdown__toggle[aria-expanded="true"] { color: var(--text); background: rgba(169,155,255,.08); }
.site-header .nav__right { margin: 0 0 0 auto; padding: 0; border: 0; gap: 8px; flex-wrap: nowrap; }
.site-header .nav__panel { display: inline-flex; padding: 6px; gap: 4px; font-size: 12px; }
.site-header .nav__panel small { font-size: 9px; }
.site-header .language-switch { border-radius: 999px; padding: 2px; }
.site-header .language-switch button { border-radius: 999px; min-width: 30px; min-height: 34px; }
.site-header .nav-cta { flex: none; border-radius: 999px; background: var(--accent); color: #fff; gap: 10px; white-space: nowrap; }
.site-header .nav-cta:hover { background: #7b6bf2; }
.site-header .nav-toggle { display: none; margin: 0; flex: none; }
@media (max-width: 899px) {
  .site-header .navbar { min-height: 64px; padding: 8px 10px 8px 18px; gap: 8px; }
  .site-header .brand { margin-right: auto; }
  .site-header .brand img { width: 112px; height: auto; }
  .site-header .nav-toggle { display: inline-flex; justify-content: center; width: 44px; padding: 0; }
  .site-header .nav { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 24px; background: #13112b; box-shadow: 0 16px 40px rgba(0,0,0,.35); max-height: calc(100dvh - 110px); overflow-y: auto; }
  .js .site-header .nav { display: none; }
  .js .site-header .nav[data-open="true"] { display: flex; }
  .site-header .nav__list { flex-direction: column; }
  .site-header .nav__list a, .nav-dropdown__toggle { padding: 12px; font-size: 15px; }
  .nav-dropdown__toggle { width: 100%; justify-content: space-between; }
  .nav-dropdown__menu { position: static; box-shadow: none; margin: 0 0 6px 12px; min-width: 0; }
  .site-header .nav__right { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line); justify-content: space-between; }
  .site-header .language-switch button { min-width: 44px; min-height: 44px; }
  .site-header .nav-cta { padding-left: 12px; font-size: 12px; gap: 6px; }
  html:not(.js) .site-header { position: relative; top: 0; }
  html:not(.js) .site-header .navbar { flex-wrap: wrap; }
  html:not(.js) .site-header .nav { position: static; order: 3; flex-basis: 100%; max-height: none; }
  html:not(.js) .site-header .nav-toggle { display: none; }
}
@media (max-width: 380px) {
  .site-header .brand img { width: 85px; }
  .site-header .navbar { padding-left: 12px; gap: 5px; }
  .site-header .nav-cta { font-size: 11px; padding-left: 9px; }
}
@media (prefers-reduced-motion: reduce) { .site-header .navbar { transition: none; } }

/* Game server mega-menu: one disclosure shared by desktop and mobile. */
.nav-chevron { flex: none; transition: transform .2s var(--ease); }
.nav-dropdown__toggle[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-dropdown--games > .nav-dropdown__toggle[aria-expanded="true"] { color: var(--accent); }
.game-menu { width: 640px; padding: 16px; left: 50%; transform: translateX(-50%); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: rgba(20,17,42,.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; box-shadow: 0 22px 60px rgba(0,0,0,.4); }
.nav-dropdown--games:is(:hover, :focus-within, [data-open="true"]):not([data-dismissed="true"]) > .game-menu { display: grid; }
.site-header .game-menu a { display: flex; align-items: center; gap: 9px; height: 100%; padding: 10px 6px; border-radius: 12px; white-space: normal; color: var(--text); }
.site-header .game-menu a:hover, .site-header .game-menu a:focus-visible { background: rgba(169,155,255,.12); }
.game-menu img, .game-menu__all-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.game-menu__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; font-size: 12px; }
.game-menu__copy > [translate="no"] { white-space: nowrap; }
.game-menu__soon { padding: 1px 5px; border-radius: 4px; color: var(--muted); background: rgba(169,155,255,.1); font-size: 8px; font-weight: 700; letter-spacing: .06em; }
.game-menu__description { color: var(--muted); font-size: 10px; line-height: 1.4; }
.game-menu__all-icon { display: grid; place-items: center; color: #fff; background: var(--accent); }
.game-menu__all-icon svg { width: 24px; height: 24px; }
@media (max-width: 899px) {
  .game-menu { width: auto; transform: none; margin: 0 0 6px; padding: 8px; grid-template-columns: minmax(0, 1fr); border-radius: 16px; }
  .site-header .game-menu a { padding: 8px; }
  .game-menu__copy { font-size: 14px; }
  .game-menu__description { font-size: 12px; }
  /* On touch screens only the disclosure state controls expanded sections. */
  .js .nav-dropdown:not([data-open="true"]) > .nav-dropdown__menu { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nav-chevron { transition: none; } }

/* Shared pill navigation, help and locale disclosures. */
.site-header .nav__list > li > a[aria-current],
.site-header .nav__list > li > a:hover,
.site-header .nav-dropdown__toggle[aria-expanded="true"],
.site-header .nav-dropdown:has(a[aria-current="page"]) > .nav-dropdown__toggle { color: var(--accent); }
.help-menu, .locale-menu { width: 220px; min-width: 220px; background: rgba(20,17,42,.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.site-header .help-menu a { display: flex; align-items: center; gap: 10px; }
.nav-icon { width: 19px; height: 19px; flex: 0 0 19px; }
.nav-soon { margin-left: auto; padding: 2px 5px; border-radius: 5px; background: rgba(169,155,255,.12); color: var(--lilac); font-size: 9px; letter-spacing: .04em; }
.site-header .help-menu a:hover, .locale-menu button:hover { background: rgba(169,155,255,.1); color: var(--lilac); }
.site-header .nav__right { gap: 4px; }
.site-header .nav-account { display: inline-flex; align-items: center; gap: 6px; padding: 8px; color: var(--muted); text-decoration: none; font-size: 12px; white-space: nowrap; }
.site-header .nav-account:hover { color: var(--accent); }
.site-header .language-toggle { gap: 6px; font-size: 12px; }
.locale-menu { left: auto; right: 0; }
.locale-menu button { display: block; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); text-align: left; font: 500 13px/1.4 var(--font-b); cursor: pointer; }
.locale-menu button[aria-pressed="true"] { color: var(--accent); }
.locale-menu .currency-note { border-top: 1px solid var(--line); border-radius: 0; margin-top: 5px; color: var(--dim); cursor: default; background: transparent; }
.language-flag { display: inline-block; position: relative; overflow: hidden; width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; background: linear-gradient(90deg, transparent 40%, #d83b51 40% 60%, transparent 60%), linear-gradient(transparent 40%, #d83b51 40% 60%, transparent 60%), linear-gradient(90deg, transparent 30%, #fff 30% 70%, transparent 70%), linear-gradient(transparent 30%, #fff 30% 70%, transparent 70%), linear-gradient(35deg, #253b80 44%, #fff 44% 56%, #253b80 56%); box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
html[lang="tr"] .language-flag { background: #df2943; }
html[lang="tr"] .language-flag::before { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: white; top: 4px; left: 3px; }
html[lang="tr"] .language-flag::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #df2943; top: 4px; left: 6px; }
.site-header .nav-cta .arrow { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: rgba(255,255,255,.2); }
@media (min-width: 900px) and (max-width: 1199px) {
  .site-header .nav-account > span { display: none; }
  .site-header .navbar { gap: 5px; padding-left: 16px; }
  .site-header .nav__list > li > a, .site-header .nav-dropdown__toggle { padding: 9px 7px; font-size: 12px; }
  .site-header .brand img { width: 110px; height: auto; }
  .site-header .nav-cta { padding-inline: 12px; font-size: 12px; gap: 6px; }
}
@media (max-width: 899px) {
  .site-header .nav__right { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-header .nav-account { padding: 12px; font-size: 15px; }
  .site-header .language-toggle { font-size: 15px; justify-content: flex-start; }
  .site-header .language-toggle .nav-chevron { margin-left: auto; }
  .help-menu, .locale-menu { width: auto; min-width: 0; }
  .locale-menu button { min-height: 44px; }
}

/* Homepage hero and game plans; scoped to keep other pages unchanged. */
.home-hero { background: #100e23; padding: 40px 0; isolation: isolate; overflow-x: clip; }
.home-hero::before, .home-hero::after { content: ''; display: block; position: absolute; width: 100px; height: 100px; background: #211b43; opacity: .55; z-index: -1; border-radius: 0; box-shadow: 36px -36px 0 #211b43, 0 -72px 0 #19152f, -36px 36px 0 #19152f; }
.home-hero::before { left: -65px; bottom: 50px; }
.home-hero::after { right: -65px; top: 75px; }
.home-hero .hero__copy { padding-top: 0; }
.home-hero h1 { max-width: 12ch; font-size: clamp(3rem, 5.4vw, 5rem); line-height: 1.04; }
.home-hero .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.home-hero__cta { border-radius: 999px; padding: 16px 24px; }
.home-hero__discover { color: var(--text); text-decoration: none; font-size: 14px; }
.home-hero__discover:hover { color: var(--lilac); }
.home-hero__art { position: relative; min-width: 0; width: 100%; max-width: 693px; margin: 0; padding: 0; justify-self: center; align-self: center; overflow: clip; }
.home-hero__frame { aspect-ratio: 4 / 3; max-height: 520px; padding: 12px; background: var(--accent); clip-path: polygon(0 36px,12px 36px,12px 12px,36px 12px,36px 0,calc(100% - 36px) 0,calc(100% - 36px) 12px,calc(100% - 12px) 12px,calc(100% - 12px) 36px,100% 36px,100% calc(100% - 36px),calc(100% - 12px) calc(100% - 36px),calc(100% - 12px) calc(100% - 12px),calc(100% - 36px) calc(100% - 12px),calc(100% - 36px) 100%,36px 100%,36px calc(100% - 12px),12px calc(100% - 12px),12px calc(100% - 36px),0 calc(100% - 36px)); }
.home-hero__frame > img { width: 100%; height: 100%; min-height: 0; display: block; aspect-ratio: 4 / 3; object-fit: cover; clip-path: polygon(0 24px,24px 24px,24px 0,calc(100% - 24px) 0,calc(100% - 24px) 24px,100% 24px,100% calc(100% - 24px),calc(100% - 24px) calc(100% - 24px),calc(100% - 24px) 100%,24px 100%,24px calc(100% - 24px),0 calc(100% - 24px)); }
.home-float { position: absolute; object-fit: contain; image-rendering: pixelated; width: 60px; height: 72px; filter: drop-shadow(0 8px 12px #08061599); animation: home-float 6s ease-in-out infinite; pointer-events: none; }
.home-float--one { top: 28px; right: 16%; transform: rotate(12deg); }
.home-float--two { left: 20px; bottom: 8%; animation-delay: -2s; }
.home-float--three { right: 20px; bottom: 20px; animation-delay: -4s; }
@keyframes home-float { 50% { translate: 0 -12px; } }
.home-plans { background: #100e23; padding-top: 28px; overflow-x: clip; }
.home-plan [hidden] { display: none; }
.home-plans__heading { align-items: center; gap: 24px; margin-bottom: 40px; }
.home-plans__heading p { max-width: 52ch; }
.home-picker { position: relative; flex: 0 0 260px; }
.home-picker__label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.home-picker__toggle, .home-picker__options button { display: flex; align-items: center; gap: 10px; width: 100%; background: #211c3d; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.home-picker__toggle { padding: 12px 16px; border: 1px solid #514574; border-radius: 14px; }
.home-picker img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; }
.home-picker__chevron { margin-left: auto; }
.home-picker__options { position: absolute; right: 0; top: 100%; width: 100%; padding: 6px; margin: 8px 0 0; list-style: none; border: 1px solid #514574; background: #211c3d; border-radius: 14px; z-index: 5; box-shadow: 0 16px 32px #0006; }
.home-picker__options[hidden], .home-plan__promo[hidden] { display: none; }
.home-picker__options button { border: 0; padding: 9px; border-radius: 8px; font-size: 14px; }
.home-picker__options button:hover, .home-picker__options button[aria-pressed=true] { background: #352b59; }
.home-plan-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.home-plan { display: flex; flex-direction: column; position: relative; min-width: 0; padding: 28px 22px 22px; border: 1px solid #352d50; border-radius: 22px; background: linear-gradient(155deg,#221d3c,#19162d); }
.home-plan--recommended { border-color: var(--accent); background: linear-gradient(155deg,#2d2351,#1e1935); }
.home-plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: var(--accent); color: white; font-size: 11px; font-weight: 700; white-space: nowrap; }
.home-plan__icon { width: 64px; height: 68px; object-fit: contain; image-rendering: pixelated; margin-bottom: 24px; }
.home-plan__title { font-size: clamp(1.7rem,2.5vw,2.3rem); }
.home-plan__label { color: var(--lilac); font-size: 12px; margin-top: 8px; }
.home-plan__description { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 18px 0 26px; min-height: 64px; }
.home-plan__prices { margin-top: auto; margin-bottom: 24px; min-height: 90px; }
.home-plan__first { display: block; font-size: 19px; line-height: 1.4; }
.home-plan__recurring { font-size: 13px; color: var(--muted); margin-top: 10px; }
.home-plan__billing { font-size: 11px; color: var(--dim); margin-top: 5px; }
.home-plan__order { width: 100%; border-radius: 999px; padding: 13px 8px; font-size: 12px; justify-content: center; }
.home-plan__soon { position: absolute; top: 30px; right: 18px; color: var(--lilac); background: #a99bff15; font-size: 9px; letter-spacing: .08em; padding: 4px 7px; border-radius: 5px; }
.home-plan__promo { color: var(--lilac); display: flex; gap: 10px; margin-bottom: 8px; font-size: 12px; }
@media (min-width: 1000px) { .home-hero { min-height: min(720px, calc(100vh - 100px)); max-height: 720px; display: grid; align-items: center; } .home-hero .hero__grid { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 52px; } }
@media (max-width: 1099px) { .home-plan-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 20px; } }
@media (max-width: 999px) { .home-hero .hero__grid { grid-template-columns: 1fr; } .home-hero__art { max-width: 660px; width: 100%; margin: 12px auto 0; } }
@media (max-width: 599px) { .home-plan-grid { grid-template-columns: 1fr; } .home-plans__heading { flex-direction: column; align-items: stretch; } .home-picker { flex-basis: auto; } .home-hero { padding-block: 40px; } .home-float { width: 42px; height: 52px; } .home-plan__description { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .home-float { animation: none; } }

/* Five RPG items, one equal card for each service. */
.only-wispdock { background: #131025; }
.only-wispdock__heading { margin: 0 auto 40px; text-align: center; }
.only-wispdock__heading h2 { margin-bottom: 14px; }
.only-wispdock__intro { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; text-wrap: balance; }
.only-wispdock mark { background: transparent; color: #e9bb79; }
.only-wispdock__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.only-card { min-width: 0; padding: 28px 16px 26px; text-align: center; background: #1b1727; border: 1px solid rgba(195, 151, 139, .19); border-radius: 16px; transition: transform .2s ease, border-color .2s ease; }
.only-card__sprite { display: block; width: 72px; height: 72px; margin: 0 auto; image-rendering: pixelated; }
.only-card__label { height: 28px; display: flex; align-items: center; justify-content: center; }
.only-card__soon { color: #e9bb79; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.only-card h3 { display: flex; justify-content: center; align-items: center; min-height: 2.7em; margin: 0 0 12px; font-size: 18px; line-height: 1.35; font-weight: 700; }
.only-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; text-wrap: pretty; }
.only-card__domain { display: block; margin-top: 8px; color: #e9bb79; font-size: 12px; overflow-wrap: anywhere; }
@media (hover: hover) { .only-card:hover { transform: translateY(-4px); border-color: rgba(233, 187, 121, .55); } }
@media (min-width: 760px) and (max-width: 1199px) {
  .only-wispdock__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .only-card { grid-column: span 2; }
  .only-card:nth-child(4) { grid-column: 2 / span 2; }
}
@media (min-width: 520px) and (max-width: 759px) {
  .only-wispdock__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .only-card { grid-column: span 2; }
  .only-card:last-child { grid-column: 2 / span 2; }
}
@media (max-width: 519px) {
  .only-wispdock__grid { grid-template-columns: minmax(0, 1fr); }
  .only-card { padding: 26px 24px; }
  .only-card h3 { min-height: 0; }
  .only-card p { max-width: 30ch; margin-inline: auto; }
  .only-wispdock__heading { margin-bottom: 28px; }
  .only-wispdock__intro { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .only-card { transition: none; } .only-card:hover { transform: none; } }

/* Static homepage guides, including a cover fallback for pending artwork. */
.featured-guides { position: relative; background: #131025; padding-bottom: 100px; }
.featured-guides::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 24px; background: #a99bff0d; clip-path: polygon(0 50%,8% 50%,8% 0,18% 0,18% 50%,31% 50%,31% 100%,43% 100%,43% 25%,56% 25%,56% 75%,69% 75%,69% 0,81% 0,81% 50%,93% 50%,93% 25%,100% 25%,100% 100%,0 100%); pointer-events: none; }
.featured-guides__heading { text-align: center; margin-bottom: 36px; }
.featured-guides__heading p { max-width: 54ch; margin: 14px auto 0; color: var(--muted); line-height: 1.65; text-wrap: balance; }
.featured-guides__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.featured-guide { min-width: 0; display: flex; flex-direction: column; }
.featured-guide__cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #a99bff26; border-radius: 16px; background: repeating-conic-gradient(#a99bff0c 0% 25%,transparent 0% 50%) 0 0 / 48px 48px, linear-gradient(135deg,#352951,#171d36); }
.featured-guide:nth-child(2) .featured-guide__cover { background-color: #1c3439; }
.featured-guide__cover img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-guide__cover img.is-unavailable { display: none; }
.featured-guide__badge { position: absolute; top: 14px; left: 14px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #a99bff40; border-radius: 12px; color: var(--lilac); background: #19142eeF; }
.featured-guide h3 { margin: 22px 0 10px; font-size: 21px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.featured-guide p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.featured-guide__link { align-self: flex-start; margin-top: auto; color: var(--lilac); font-weight: 600; font-size: 14px; text-decoration: none; padding-block: 6px; }
.featured-guide__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.featured-guides__actions { margin-top: 40px; text-align: center; }
.featured-guides__all { display: inline-flex; justify-content: center; max-width: 100%; border: 1px solid #a99bff70; border-radius: 999px; padding: 13px 26px; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.featured-guides__all:hover { background: #a99bff12; border-color: var(--lilac); }
.featured-guide__link:focus-visible, .featured-guides__all:focus-visible { outline: 2px solid var(--lilac); outline-offset: 5px; }
@media (max-width: 699px) { .featured-guides__grid { grid-template-columns: minmax(0,1fr); gap: 36px; } .featured-guides { padding-bottom: 72px; } .featured-guide h3 { margin-top: 18px; } }

/* Approved pricing grid: keep all six cards in equal-width columns. */
@media (min-width: 760px) and (max-width: 1039px) { .plans--3 .plan:last-child { grid-column: auto; } }
.plan__price-block { margin-block: 16px; }
.plan__price-block .home-plan__first { font-size: 1.6rem; }

/* Keep plan actions at the bottom as translated copy wraps. */
.plan > .btn, .home-plan > .home-plan__order { margin-top: auto; }
.home-plan > .plan__list { flex: none; margin-top: 0; }
.home-plan__promo > span { padding: 1px 6px; border-radius: 4px; background: rgba(169,155,255,.12); }
