﻿/* ==========================================================================
   Suomi Tier List — Store
   Flat site surfaces (#0a0c12 / #10131a / #141821), zero background/button
   glows, shared header alignment, and full 20-law motion & UX discipline.
   ========================================================================== */

:root {
  /* ---- Typography (matches styles.css & landing.css) ---- */
  --font-base: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Oxanium', 'Inter', system-ui, sans-serif;

  /* ---- Shared flat surface tokens ---- */
  --bg-primary: oklch(13.5% 0.012 255);
  --bg-card-solid: #10131a;
  --flat-bg: #0a0c12;
  --flat-surface: #10131a;
  --flat-surface-raised: #141821;
  --flat-surface-hover: #181d27;
  --flat-surface-muted: #0d1016;
  --flat-border: rgba(255, 255, 255, 0.075);
  --flat-border-strong: rgba(255, 255, 255, 0.13);
  --flat-accent-surface: rgba(239, 82, 82, 0.13);
  --flat-accent-border: rgba(239, 82, 82, 0.36);
  --flat-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  --flat-shadow-raised: 0 24px 60px rgba(0, 0, 0, 0.48);

  /* ---- Text ---- */
  --text-primary: oklch(96% 0.007 255);
  --text-secondary: oklch(82% 0.012 255);
  --text-muted: oklch(68% 0.014 255);

  /* ---- Brand accent ---- */
  --accent-primary: oklch(66% 0.205 27);
  --accent-secondary: oklch(72% 0.175 27);
  --accent-light: oklch(79% 0.125 27);
  --accent-rgb: 239, 82, 82;
  --brand-rgb: 239, 82, 82;

  /* ---- Radii (concentric scale) ---- */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;

  /* ---- Motion foundation (STL-WebDevSkill + Modern Web Guidance) ---- */
  --stl-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --stl-ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --stl-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --stl-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --motion-out: var(--stl-ease-out);
  --motion-in: cubic-bezier(0.4, 0, 1, 1);
  --motion-in-out: cubic-bezier(0.45, 0, 0.15, 1);
  --motion-spring-fallback: var(--stl-ease-spring);
  --motion-spring: linear(0, 0.012, 0.048 2%, 0.191 5%, 0.54 11%, 0.858 18%, 1.033 25%, 1.076 31%, 1.059 38%, 1.015 49%, 0.994 61%, 0.996 76%, 1);
  --sigil-spring: linear(0, 0.009 2%, 0.037 4.2%, 0.148 8.8%, 0.335 14.5%, 0.562 21%, 0.768 27.8%, 0.916 34.5%, 1.002 41.2%, 1.036 48%, 1.041 53.5%, 1.031 60%, 1.015 68%, 1.004 77%, 0.999 87%, 1);

  --stl-dur-instant: 90ms;
  --stl-dur-fast: 150ms;
  --stl-dur-medium: 220ms;
  --stl-dur-modal: 280ms;

  --stl-hit-min: 44px;
  --stl-hit-coarse: 48px;
  --stl-specular: inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* ---- Rhythm ---- */
  --nav-pad: 1rem;
  --section-gap: clamp(3.75rem, 2.5rem + 5vw, 6.75rem);

  /* ---- Z-index scale ---- */
  --z-content: 1;
  --z-overlay: 500;

  /* ---- Utility icons ---- */
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --store-bayer-edge-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='6' viewBox='0 0 24 6' shape-rendering='crispEdges'%3E%3Crect x='0' y='2' width='2' height='2' fill='white' opacity='0.3'/%3E%3Crect x='4' y='0' width='2' height='2' fill='white' opacity='0.5'/%3E%3Crect x='4' y='4' width='2' height='2' fill='white' opacity='0.5'/%3E%3Crect x='8' y='2' width='2' height='2' fill='white' opacity='0.78'/%3E%3Crect x='10' y='0' width='2' height='2' fill='white' opacity='0.78'/%3E%3Crect x='10' y='4' width='2' height='2' fill='white' opacity='0.78'/%3E%3Crect x='12' y='2' width='2' height='2' fill='white'/%3E%3Crect x='14' y='0' width='2' height='2' fill='white'/%3E%3Crect x='14' y='4' width='2' height='2' fill='white'/%3E%3Crect x='16' y='0' width='2' height='2' fill='white'/%3E%3Crect x='16' y='4' width='2' height='2' fill='white'/%3E%3Crect x='18' y='0' width='6' height='6' fill='white'/%3E%3C/svg%3E");
  --store-bayer-edge-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='6' viewBox='0 0 24 6' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='6' height='6' fill='white'/%3E%3Crect x='6' y='0' width='2' height='2' fill='white'/%3E%3Crect x='6' y='4' width='2' height='2' fill='white'/%3E%3Crect x='8' y='0' width='2' height='2' fill='white'/%3E%3Crect x='8' y='4' width='2' height='2' fill='white'/%3E%3Crect x='10' y='2' width='2' height='2' fill='white'/%3E%3Crect x='12' y='0' width='2' height='2' fill='white' opacity='0.78'/%3E%3Crect x='12' y='4' width='2' height='2' fill='white' opacity='0.78'/%3E%3Crect x='14' y='2' width='2' height='2' fill='white' opacity='0.78'/%3E%3Crect x='18' y='0' width='2' height='2' fill='white' opacity='0.5'/%3E%3Crect x='18' y='4' width='2' height='2' fill='white' opacity='0.5'/%3E%3Crect x='22' y='2' width='2' height='2' fill='white' opacity='0.3'/%3E%3C/svg%3E");
}

@supports not (animation-timing-function: linear(0, 1)) {
  :root {
    --motion-spring: var(--motion-spring-fallback);
    --sigil-spring: var(--motion-spring-fallback);
  }
}

@media (min-width: 768px) {
  :root {
    --nav-pad: 1.5rem;
  }
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--font-base);
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@supports (interpolate-size: allow-keywords) {
  html { interpolate-size: allow-keywords; }
}

html, body {
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

body.store-page {
  margin: 0;
  min-height: 100vh;
  color-scheme: dark;
  background: var(--flat-bg);
  background-image: none;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Match styles.css 8px scrollbar rail for exact header alignment across pages. */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--flat-bg); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

::selection {
  background: rgba(var(--brand-rgb), 0.34);
  color: #fff;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.08;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

:where(main a) {
  color: var(--accent-light);
  text-decoration-color: rgba(var(--brand-rgb), 0.45);
  text-underline-offset: 0.18em;
  transition: color var(--stl-dur-fast) var(--motion-out);
}

:where(main a):hover {
  color: var(--text-primary);
  text-decoration-color: currentColor;
}

code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.86em;
  padding: 0.08em 0.4em;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.sr-only,
.cmp td i {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: var(--z-overlay);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--flat-surface-raised);
  border: 1px solid var(--flat-accent-border);
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--stl-dur-fast) var(--motion-out);
}
.skip-link:focus-visible { transform: translateY(0); }

.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Matches koti.html (.landing-width) and overall.html (max-w-7xl) 80rem rail. */
.shell,
.landing-width {
  width: min(80rem, calc(100% - var(--nav-pad) * 2));
  margin-inline: auto;
}

/* ==========================================================================
   Shared Top Navigation Alignment (matches koti.html & overall.html)
   ========================================================================== */

body.store-page .site-header.reworked-nav {
  width: 100%;
  margin: 0 !important;
}

body.store-page .site-header.reworked-nav.reworked-nav .top-nav-layout {
  margin-left: calc((100% - var(--nav-predicted-width)) / 2);
  margin-right: auto;
}

body.store-page .nav-server-address.is-copied::after {
  box-shadow: none;
}

@media (prefers-reduced-motion: no-preference) {
  body.store-page .site-header :is(a, button) {
    transition:
      background-color var(--stl-dur-fast) var(--motion-out),
      color var(--stl-dur-fast) var(--motion-out),
      scale var(--stl-dur-fast) var(--motion-out);
  }
  body.store-page .site-header :is(a, button):active {
    scale: 0.985;
  }
}

/* ==========================================================================
   Minecraft Rank Gradient Wordmarks
   ========================================================================== */

.mc-name {
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.005em;
}
.mc-name i {
  font-style: normal;
  color: var(--c);
  text-shadow: 0.085em 0.085em 0 rgba(0, 0, 0, 0.62);
}
@supports (color: rgb(from white r g b)) {
  .mc-name i {
    text-shadow: 0.085em 0.085em 0 rgb(from var(--c) calc(r * 0.24) calc(g * 0.24) calc(b * 0.24));
  }
}
.mc-inline { font-size: 0.95em; letter-spacing: 0.02em; }

/* ==========================================================================
   Sections
   ========================================================================== */

main {
  position: relative;
  z-index: var(--z-content);
}

.section {
  padding-bottom: var(--section-gap);
  scroll-margin-top: 5.5rem;
}

/* Tier 1 Frequency of Use: keep all 4 rank cards & Buy CTAs comfortably above the fold. */
main > .section:first-child {
  padding-top: clamp(1.75rem, 1.1rem + 2vw, 3rem);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.35rem);
}
.section-head.is-centered {
  max-width: none;
  text-align: center;
}
.section-head h1,
.section-head h2 {
  font-size: clamp(1.85rem, 1.35rem + 1.8vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.55rem;
}
.section-head p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 60ch;
}

/* ==========================================================================
   Rank Cards — Flat surfaces, Solid 3D depth, Zero glow
   ========================================================================== */

.ranks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto;
  gap: clamp(1rem, 0.5rem + 1.25vw, 1.4rem);
  align-items: stretch;
}

.rank {
  position: relative;
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 1.25rem;
  padding: 1.65rem 1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--flat-border);
  background: var(--flat-surface);
  box-shadow: var(--stl-specular), var(--flat-shadow);
  overflow: hidden;
  transition:
    border-color var(--stl-dur-fast) var(--motion-out),
    background-color var(--stl-dur-fast) var(--motion-out),
    opacity var(--stl-dur-medium) var(--motion-out),
    box-shadow var(--stl-dur-medium) var(--motion-out);
}

/* Bayer-dithered pixel-mosaic top bar (crisp rank identity without glow/blur) */
.rank::before,
.rank.is-featured::before {
  content: '';
  position: absolute;
  inset-inline: 0.75rem;
  top: 0;
  z-index: 2;
  height: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 4px),
    linear-gradient(90deg, transparent 0%, var(--accent) 18%, var(--accent-ink) 50%, var(--accent) 82%, transparent 100%);
  -webkit-mask-image: var(--store-bayer-edge-left), linear-gradient(#fff 0 0), var(--store-bayer-edge-right);
  mask-image: var(--store-bayer-edge-left), linear-gradient(#fff 0 0), var(--store-bayer-edge-right);
  -webkit-mask-size: 24px 6px, calc(100% - 48px) 6px, 24px 6px;
  mask-size: 24px 6px, calc(100% - 48px) 6px, 24px 6px;
  -webkit-mask-position: left center, center, right center;
  mask-position: left center, center, right center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  image-rendering: pixelated;
  opacity: 0.88;
  pointer-events: none;
  transition: opacity var(--stl-dur-fast) var(--motion-out);
}

.rank.is-featured {
  border-color: var(--flat-border-strong);
  background: var(--flat-surface-raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--flat-shadow);
}

.rank.is-featured .rank-flag {
  border-color: var(--flat-accent-border);
  background: var(--flat-accent-surface);
  color: var(--accent-light);
}

@media (hover: hover) and (pointer: fine) {
  .ranks:has(.rank:is(:hover, :focus-within)) .rank:not(:hover):not(:focus-within) {
    opacity: 0.78;
  }

  .rank:is(:hover, :focus-within) {
    border-color: rgba(var(--accent-rgb), 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 22px 48px rgba(0, 0, 0, 0.44);
  }

  .rank:is(:hover, :focus-within)::before {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .rank {
    transition:
      transform var(--stl-dur-medium) var(--motion-out),
      border-color var(--stl-dur-fast) var(--motion-out),
      background-color var(--stl-dur-fast) var(--motion-out),
      opacity var(--stl-dur-medium) var(--motion-out),
      box-shadow var(--stl-dur-medium) var(--motion-out);
  }

  .rank:is(:hover, :focus-within) {
    transform: translateY(-4px);
  }

  .rank:is(:hover, :focus-within) .rank-sigil img {
    translate: 0 -5px;
    rotate: var(--sigil-arc, -2.5deg);
    scale: 1.05;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.52));
    transition:
      translate 260ms var(--sigil-spring),
      scale 280ms var(--sigil-spring),
      rotate 310ms var(--sigil-spring),
      filter 240ms var(--motion-out);
  }

  .rank:has(.buy:active) .rank-sigil img {
    translate: 0 1px;
    rotate: 0deg;
    scale: 1.05 0.93;
    transition-duration: 75ms;
    transition-timing-function: var(--motion-out);
  }
}

.rank-flag {
  position: absolute;
  top: 1.05rem;
  right: 1.05rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rank-flag.is-req {
  letter-spacing: 0.06em;
  padding-left: 0.6rem;
}
.rank-flag.is-req svg {
  width: 0.85rem; height: 0.85rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rank-top { display: grid; gap: 0.65rem; align-content: start; }

.rank-sigil {
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 0.15rem;
}

.rank-sigil img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 88%;
  translate: 0 0;
  rotate: 0deg;
  scale: 1;
  will-change: translate, rotate, scale;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.42));
}

@media (prefers-reduced-motion: no-preference) {
  .rank-sigil img {
    transition:
      translate 200ms var(--motion-out),
      rotate 220ms var(--motion-out),
      scale 200ms var(--motion-out),
      filter 200ms var(--motion-out);
  }
}

@supports not (translate: 0px) {
  @media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .rank-sigil img {
      transition: transform 200ms var(--motion-out), filter 200ms var(--motion-out);
    }
    .rank:is(:hover, :focus-within) .rank-sigil img {
      transform: translateY(-5px) rotate(var(--sigil-arc, -2.5deg)) scale(1.05);
      transition: transform 280ms var(--sigil-spring), filter 240ms var(--motion-out);
    }
    .rank:has(.buy:active) .rank-sigil img {
      transform: translateY(1px) scale(1.05, 0.93);
      transition-duration: 75ms;
      transition-timing-function: var(--motion-out);
    }
  }
}

.rank-name {
  font-size: clamp(1.85rem, 1.5rem + 1.3vw, 2.35rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rank-tagline {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 34ch;
}

.perks { display: grid; gap: 0.5rem; align-content: start; }
.perks li {
  position: relative;
  padding-left: 1.65rem;
  font-size: 0.92rem;
  color: var(--text-primary);
}
.perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1rem; height: 1rem;
  background: var(--accent-ink);
  -webkit-mask: var(--check) center / 0.85rem no-repeat;
  mask: var(--check) center / 0.85rem no-repeat;
}

.inherits {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--flat-border-strong);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.inherits .mc-inline { font-size: 0.92em; }
.inherits .plus { color: var(--text-muted); opacity: 0.7; }

.rank-buy { display: grid; gap: 0.85rem; align-content: end; }
.price { display: grid; gap: 0.4rem; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; }
.price-now {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1.55rem + 1vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.price-per { font-size: 0.8rem; color: var(--text-muted); }

/* Buy button — ZERO glow, crisp 3D keycap edge, Bigger Hit Area (52px) */
.buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--accent-ink);
  color: #0a0c11;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -2px 0 rgba(0, 0, 0, 0.24),
    0 4px 12px rgba(0, 0, 0, 0.28);
  transition:
    filter var(--stl-dur-fast) var(--motion-out),
    box-shadow var(--stl-dur-fast) var(--motion-out);
}

.buy svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms var(--motion-spring) 30ms;
}

.buy:hover {
  color: #0a0c11;
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -2px 0 rgba(0, 0, 0, 0.24),
    0 8px 18px rgba(0, 0, 0, 0.38);
}

.buy:active {
  color: #0a0c11;
  filter: brightness(0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.26);
}

@media (prefers-reduced-motion: no-preference) {
  .buy {
    transition:
      transform var(--stl-dur-fast) var(--motion-out),
      filter var(--stl-dur-fast) var(--motion-out),
      box-shadow var(--stl-dur-fast) var(--motion-out);
  }
  .buy:hover {
    transform: translateY(-2px) scale(1.005, 1.012);
  }
  .buy:hover svg,
  .buy:focus-visible svg {
    transform: translateX(4px);
  }
  .buy:active {
    transform: translateY(1px) scale(0.985, 0.96);
    transition-duration: 45ms;
  }
  .buy:active svg {
    transform: translateX(-2.5px);
    transition-duration: 45ms;
    transition-delay: 0ms;
  }
  .buy.is-launching svg {
    animation: store-arrow-launch 220ms var(--motion-out);
  }
}

@keyframes store-arrow-launch {
  0%   { transform: translateX(-2.5px); }
  58%  { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

/* ==========================================================================
   Comparison Table — Miller's Law chunking + flat surfaces
   ========================================================================== */

.cmp-wrap {
  position: relative;
}

.cmp-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 3.5rem;
  pointer-events: none;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: linear-gradient(90deg, transparent, var(--flat-surface));
  opacity: 0;
  transition: opacity var(--stl-dur-medium) var(--motion-out);
}
.cmp-wrap.can-scroll::after { opacity: 1; }
.cmp-wrap.can-scroll.at-end::after { opacity: 0; }

.cmp-hint {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.cmp-hint[hidden] { display: none; }
.cmp-hint svg {
  width: 1rem; height: 1rem;
  fill: none; stroke: var(--accent-light);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
@media (prefers-reduced-motion: no-preference) {
  .cmp-hint svg {
    animation: cmp-nudge 2.4s var(--motion-out) infinite;
  }
}
@keyframes cmp-nudge {
  0%, 62%, 100% { transform: translateX(0); }
  76%           { transform: translateX(4px); }
}

.cmp-scroll {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-radius: var(--radius-lg);
  border: 1px solid var(--flat-border);
  background: var(--flat-surface);
  box-shadow: var(--flat-shadow);
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}
.cmp-scroll:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.cmp {
  width: 100%;
  min-width: 46rem;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.cmp thead th {
  padding: 1.05rem 1rem;
  text-align: center;
  vertical-align: bottom;
  background: var(--flat-surface-raised);
  border-bottom: 1px solid var(--flat-border-strong);
}
.cmp thead th .mc-name { font-size: 1.15rem; justify-content: center; }

.cmp .cmp-corner {
  position: sticky;
  left: 0;
  z-index: 4;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 38%;
}

.cmp .cmp-group th.cmp-group-label {
  position: sticky;
  left: 0;
  z-index: 3;
  padding: 0.65rem 1rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--flat-surface-muted);
  border-bottom: 1px solid var(--flat-border);
  box-shadow: inset 3px 0 0 var(--group-accent, var(--accent-primary));
}
.cmp .cmp-group td {
  background: var(--flat-surface-muted);
  border-bottom: 1px solid var(--flat-border);
  padding: 0;
}
.cmp .cmp-group td::after {
  content: none !important;
}

.cmp tbody tr:not(.cmp-group) th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 2;
  padding: 0.78rem 1rem;
  text-align: left;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--flat-surface);
  border-bottom: 1px solid var(--flat-border);
  transition: background-color var(--stl-dur-fast) var(--motion-out);
}

.cmp tbody tr:not(.cmp-group) td {
  padding: 0.78rem 1rem;
  text-align: center;
  background: var(--flat-surface);
  border-bottom: 1px solid var(--flat-border);
  transition: background-color var(--stl-dur-fast) var(--motion-out);
}

.cmp tbody:last-child tr:last-child :is(th, td) {
  border-bottom: 0;
}

.cmp td[data-yes]::after {
  content: '';
  display: block;
  width: 1.05rem; height: 1.05rem;
  margin-inline: auto;
  background: var(--accent-ink, var(--text-primary));
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}
.cmp tbody tr:not(.cmp-group) td:not([data-yes])::after {
  content: '–';
  color: var(--text-muted);
  opacity: 0.4;
}

.cmp tbody tr:not(.cmp-group) td:nth-child(2) { --accent-ink: #8CFF8C; }
.cmp tbody tr:not(.cmp-group) td:nth-child(3) { --accent-ink: #93AAFF; }
.cmp tbody tr:not(.cmp-group) td:nth-child(4) { --accent-ink: #FF9247; }
.cmp tbody tr:not(.cmp-group) td:nth-child(5) { --accent-ink: #FFE08D; }

@media (hover: hover) {
  .cmp tbody tr:not(.cmp-group):hover :is(th, td) {
    background: var(--flat-surface-hover);
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .cmp td[data-yes]::after {
    transition: transform 180ms var(--motion-spring);
  }
  .cmp tbody tr:not(.cmp-group):hover td[data-yes]::after {
    transform: scale(1.16);
  }
}

/* ==========================================================================
   Purchase Path & IP Banner
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 0.5rem + 1.4vw, 1.5rem);
  position: relative;
}

.step {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--flat-border);
  background: var(--flat-surface);
  box-shadow: var(--stl-specular), var(--flat-shadow);
}

.step::after {
  content: '';
  position: absolute;
  top: 2.65rem;
  left: calc(100% + 0.1rem);
  width: calc(clamp(1rem, 0.5rem + 1.4vw, 1.5rem) - 0.2rem);
  height: 2px;
  background: var(--flat-border-strong);
  transform-origin: left center;
}
.step:last-child::after { display: none; }

.step-num {
  width: 2.35rem; height: 2.35rem;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--flat-accent-border);
  background: var(--flat-accent-surface);
  color: var(--accent-light);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.45rem; }
.step p { color: var(--text-secondary); font-size: 0.93rem; max-width: 38ch; }

.ip-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
  padding: clamp(1.35rem, 1rem + 1.2vw, 1.9rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--flat-border-strong);
  background: var(--flat-surface-raised);
  box-shadow: var(--stl-specular), var(--flat-shadow);
}
.ip-banner h3 { font-size: 1.28rem; font-weight: 700; margin-bottom: 0.28rem; }
.ip-banner p { color: var(--text-secondary); font-size: 0.93rem; }

/* IP copy control — ZERO glow, tactile press, SVG check stroke draw */
.ip-copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--flat-accent-border);
  background: var(--flat-accent-surface);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--stl-specular), 0 4px 12px rgba(0, 0, 0, 0.24);
  transition:
    background-color var(--stl-dur-fast) var(--motion-out),
    border-color var(--stl-dur-fast) var(--motion-out),
    color var(--stl-dur-fast) var(--motion-out),
    box-shadow var(--stl-dur-fast) var(--motion-out);
}
.ip-copy:hover {
  background: rgba(var(--brand-rgb), 0.2);
  border-color: rgba(var(--brand-rgb), 0.56);
  box-shadow: var(--stl-specular), 0 8px 18px rgba(0, 0, 0, 0.34);
}
@media (prefers-reduced-motion: no-preference) {
  .ip-copy {
    transition:
      transform var(--stl-dur-fast) var(--motion-out),
      background-color var(--stl-dur-fast) var(--motion-out),
      border-color var(--stl-dur-fast) var(--motion-out),
      color var(--stl-dur-fast) var(--motion-out),
      box-shadow var(--stl-dur-fast) var(--motion-out);
  }
  .ip-copy:hover {
    transform: translateY(-2px);
  }
  .ip-copy:active {
    transform: translateY(1px) scale(0.985, 0.96);
    transition-duration: 45ms;
  }
}

.ip-copy-icon {
  width: 1.15rem; height: 1.15rem;
  fill: none; stroke: var(--accent-light); stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
  flex: 0 0 auto; overflow: visible;
}
.ip-copy-glyph,
.ip-check-glyph {
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 180ms var(--motion-out), transform 180ms var(--motion-out);
}
.ip-check-glyph {
  opacity: 0;
  transform: scale(0.5) rotate(-20deg);
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: opacity 180ms var(--motion-out), transform 180ms var(--motion-out), stroke-dashoffset 200ms var(--motion-out);
}
.ip-copy.is-copied .ip-copy-glyph {
  opacity: 0;
  transform: scale(0.5) rotate(-20deg);
}
.ip-copy.is-copied .ip-check-glyph {
  opacity: 1;
  transform: scale(1) rotate(0);
  stroke-dashoffset: 0;
  stroke: #4ade80;
}
.ip-copy.is-copied {
  border-color: rgba(74, 222, 128, 0.56);
  background: rgba(74, 222, 128, 0.12);
}
.ip-copy.is-copied .ip-copy-value { color: #86efac; }
.ip-copy.is-copied::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid #4ade80;
  box-shadow: none;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .ip-copy.is-copied::after {
    animation: store-copy-ring 480ms var(--motion-out) forwards;
  }
}
@keyframes store-copy-ring {
  0%   { opacity: 0.95; transform: scale(0.96); }
  100% { opacity: 0; transform: scale(1.08, 1.24); }
}

.ip-copy-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-light);
}
.ip-copy-label-stack { display: inline-grid; text-align: left; }
.ip-copy-label-stack > span { grid-area: 1 / 1; }
.ip-copy-sizer { visibility: hidden; }
.ip-copy-value { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   FAQ Accordion (Modern Web Guidance `accordion`)
   ========================================================================== */

.faq {
  display: grid;
  border-radius: var(--radius-lg);
  border: 1px solid var(--flat-border);
  background: var(--flat-surface);
  overflow: hidden;
  box-shadow: var(--flat-shadow);
}

.faq details + details { border-top: 1px solid var(--flat-border); }

.faq summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.5rem;
  padding: 1rem clamp(1rem, 0.7rem + 1vw, 1.5rem);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: background-color var(--stl-dur-fast) var(--motion-out), color var(--stl-dur-fast) var(--motion-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--flat-surface-hover); }

.faq summary::before {
  content: '';
  flex: 0 0 auto;
  width: 0.58rem; height: 0.58rem;
  border-right: 2px solid var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
  transform: rotate(-45deg);
  transform-origin: 50% 50%;
}

.faq details[open] > summary { color: var(--accent-light); }
.faq details[open] > summary::before { transform: rotate(45deg); }
.faq details[open] { background: rgba(255, 255, 255, 0.015); }

.faq-body {
  padding: 0.25rem clamp(1rem, 0.7rem + 1vw, 1.5rem) 1.35rem calc(clamp(1rem, 0.7rem + 1vw, 1.5rem) + 1.43rem);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 72ch;
}
.faq-body p + ol,
.faq-body p + p { margin-top: 0.65rem; }
.faq-body ol { display: grid; gap: 0.45rem; list-style: decimal; padding-left: 1.25rem; }

details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

details:not([open])::details-content {
  block-size: 0;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .faq summary::before {
    transition: transform 220ms var(--motion-spring);
  }
  .faq summary:active::before {
    transform: rotate(-45deg) scale(0.86);
  }
  .faq details[open] > summary:active::before {
    transform: rotate(45deg) scale(0.86);
  }
  details::details-content {
    transition-property: block-size, opacity, content-visibility, display;
    transition-duration: 240ms;
    transition-timing-function: var(--motion-in-out);
    transition-behavior: allow-discrete;
  }
}

/* ==========================================================================
   Native Tebex Checkout <dialog> — Modern Web Guidance `dialog` + `animate-to-from-top-layer`
   ========================================================================== */

dialog.tebex-name-dialog {
  margin: auto;
  width: min(calc(100% - 2rem), 27rem);
  max-height: min(calc(100dvh - 2rem), 42rem);
  padding: 0;
  border: 1px solid var(--flat-border-strong);
  border-radius: var(--radius-xl);
  background: var(--flat-surface-raised);
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--flat-shadow-raised);
  overflow: auto;
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 170ms;
  transition-timing-function: var(--motion-in);
  transition-behavior: allow-discrete;
}

dialog.tebex-name-dialog:modal {
  overscroll-behavior: contain;
}

dialog.tebex-name-dialog::backdrop {
  background-color: rgba(3, 5, 9, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  overflow: hidden;
  overscroll-behavior: contain;
  transition-property: background-color, backdrop-filter, display, overlay;
  transition-duration: 180ms;
  transition-timing-function: var(--motion-in);
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  dialog.tebex-name-dialog {
    transform: translateY(10px) scale(0.98);
  }
}

dialog.tebex-name-dialog[open]:where(:not([data-closing])) {
  opacity: 1;
  transition-duration: 260ms;
  transition-timing-function: var(--motion-out);
}

@starting-style {
  dialog.tebex-name-dialog[open]:where(:not([data-closing])) {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  dialog.tebex-name-dialog[open]:where(:not([data-closing])) {
    transform: translateY(0) scale(1);
  }

  @starting-style {
    dialog.tebex-name-dialog[open]:where(:not([data-closing])) {
      transform: translateY(20px) scale(0.96);
    }
  }
}

dialog.tebex-name-dialog[open]:where(:not([data-closing]))::backdrop {
  background-color: rgba(3, 5, 9, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition-duration: 260ms;
  transition-timing-function: var(--motion-out);
}

@starting-style {
  dialog.tebex-name-dialog[open]:where(:not([data-closing]))::backdrop {
    background-color: rgba(3, 5, 9, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog.tebex-name-dialog,
  dialog.tebex-name-dialog::backdrop {
    transition-duration: 100ms;
  }
}

.tebex-name-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.4rem;
}

.tebex-rank-summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--flat-border);
}

.tebex-rank-sigil {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.tebex-rank-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.tebex-rank-meta h2 {
  font-size: 1.25rem;
  line-height: 1.15;
}

.tebex-rank-price {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.tebex-name-close {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin: -0.35rem -0.35rem 0 0;
  border: 1px solid var(--flat-border);
  border-radius: var(--radius-sm);
  background: var(--flat-surface-muted);
  color: var(--text-secondary);
  font: 700 1.2rem/1 var(--font-base);
  cursor: pointer;
  transition: background-color var(--stl-dur-fast) var(--motion-out), border-color var(--stl-dur-fast) var(--motion-out), color var(--stl-dur-fast) var(--motion-out);
}
.tebex-name-close:hover {
  background: var(--flat-surface-hover);
  border-color: var(--flat-border-strong);
  color: var(--text-primary);
}

.tebex-req-note {
  margin: 0;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 224, 141, 0.28);
  background: rgba(255, 224, 141, 0.08);
  color: #FFE08D;
  font-size: 0.84rem;
  line-height: 1.45;
}

.tebex-name-lead {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.tebex-field {
  display: grid;
  gap: 0.42rem;
}

.tebex-field label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.tebex-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem;
  padding: 0 0.9rem;
  border: 1px solid var(--flat-border-strong);
  border-radius: var(--radius-md);
  background: var(--flat-surface-muted);
  color: var(--text-primary);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--stl-dur-fast) var(--motion-out), background-color var(--stl-dur-fast) var(--motion-out);
}
.tebex-field input:hover {
  border-color: rgba(255, 255, 255, 0.22);
}
.tebex-field input:focus-visible {
  border-color: var(--accent-primary);
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
.tebex-field.is-invalid input {
  border-color: var(--accent-primary);
}

.tebex-name-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.tebex-name-error {
  min-height: 1.3em;
  color: #fca5a5;
  font-size: 0.86rem;
  line-height: 1.4;
}
.tebex-name-error:empty {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .tebex-field.is-shaking input {
    animation: tebex-input-shake 260ms var(--motion-out);
  }
}
@keyframes tebex-input-shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(3px); }
}

.tebex-name-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.tebex-name-cancel,
.tebex-name-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  min-width: 5.5rem;
  padding: 0 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition:
    background-color var(--stl-dur-fast) var(--motion-out),
    border-color var(--stl-dur-fast) var(--motion-out),
    color var(--stl-dur-fast) var(--motion-out),
    filter var(--stl-dur-fast) var(--motion-out);
}

.tebex-name-cancel {
  border: 1px solid var(--flat-border-strong);
  background: var(--flat-surface-muted);
  color: var(--text-secondary);
}
.tebex-name-cancel:hover {
  background: var(--flat-surface-hover);
  color: var(--text-primary);
}

.tebex-name-submit {
  border: 0;
  background: #ef5252;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.24);
}
.tebex-name-submit:hover:not(:disabled) {
  filter: brightness(1.06);
}
.tebex-name-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (prefers-reduced-motion: no-preference) {
  .tebex-name-cancel:active,
  .tebex-name-submit:active:not(:disabled) {
    transform: scale(0.975, 0.955);
    transition-duration: 45ms;
  }
}

.tebex-spinner {
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: #ffffff;
  border-radius: 50%;
  flex: 0 0 auto;
}
@media (prefers-reduced-motion: no-preference) {
  .tebex-spinner {
    animation: tebex-spin 650ms linear infinite;
  }
}
@keyframes tebex-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Footer — Matches koti.html (.landing-footer)
   ========================================================================== */

.landing-footer {
  --landing-ink: #f3f4f7;
  --landing-muted: #b9bfcc;
  --landing-red: #ef5252;
  padding-block: 44px 24px;
  background: #0e1118;
  color: var(--landing-ink);
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}
.landing-footer a {
  color: inherit;
  text-decoration: none;
}
.landing-footer :is(a, button):focus-visible {
  outline: 2px solid var(--landing-red);
  outline-offset: 4px;
}
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 64px; }
.footer-about { display: flex; align-items: center; gap: 18px; }
.footer-about img { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; }
.footer-about p { max-width: 28ch; color: var(--landing-muted); font-size: 16px; line-height: 1.55; }
.landing-footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; }
.landing-footer nav a { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; font-size: 16px; font-weight: 600; transition: color 150ms var(--motion-out), transform var(--stl-dur-instant) var(--motion-out); }
.landing-footer nav a svg { width: 17px; height: 17px; color: var(--landing-muted); flex: 0 0 auto; transition: transform 160ms var(--motion-out), color 160ms var(--motion-out); }
.landing-footer nav a:hover, .landing-footer nav a:hover svg { color: var(--landing-red); }
.landing-footer nav a:hover svg { transform: translateX(3px); }
.footer-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; border-top: 1px solid rgba(148, 163, 184, 0.1); }
.landing-footer small { color: var(--landing-muted); font-size: 14px; }
.footer-top-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--landing-muted); font-size: 14px; transition: color 160ms var(--motion-out), transform 180ms var(--motion-out); }
.footer-top-link svg { width: 17px; height: 17px; flex: 0 0 auto; transform: rotate(-90deg); transition: transform 180ms var(--motion-out), color 160ms var(--motion-out); }
.footer-top-link:hover { color: var(--landing-ink); }
.footer-top-link:hover svg { transform: translateY(-3px) rotate(-90deg); color: var(--landing-red); }
@media (prefers-reduced-motion: no-preference) {
  .landing-footer :is(nav a, .footer-top-link):active {
    transform: scale3d(0.985, 0.96, 1) translateY(1px);
  }
}
@media (max-width: 767px) {
  .landing-footer { padding-block: 36px 20px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer-about p { font-size: 15px; }
  .landing-footer nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
  .landing-footer nav a { font-size: 15px; gap: 8px; }
  .footer-bottom { gap: 16px; flex-wrap: wrap; margin-top: 0; }
}

/* ==========================================================================
   Scroll-Reveal Motion (Progressive, Below-Fold Only)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal.reveal-pending {
    opacity: 0;
    transform: translateY(1.1rem);
    transition:
      opacity 300ms var(--motion-out),
      transform 320ms var(--motion-out);
    transition-delay: var(--d, 0ms);
  }
  .js-reveal .reveal.reveal-pending.in {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 5rem; }
  .section { scroll-margin-top: 5rem; }
  .ranks { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .step::after { display: none; }
  .ip-banner { flex-direction: column; align-items: stretch; }
  .ip-copy-lg { width: 100%; }
  .ip-copy-value { word-break: break-all; }

  .cmp { min-width: 34rem; font-size: 0.86rem; }
  .cmp .cmp-corner { width: 46%; }
  .cmp thead th { padding: 0.9rem 0.5rem; }
  .cmp thead th .mc-name { font-size: 0.98rem; }
  .cmp tbody tr:not(.cmp-group) th[scope="row"] { padding: 0.7rem 0.75rem; }
  .cmp tbody tr:not(.cmp-group) td { padding: 0.7rem 0.4rem; }
}

@media (max-width: 480px) {
  .rank { padding: 1.45rem 1.25rem 1.3rem; }
  .tebex-name-form { padding: 1.15rem; }
  .tebex-name-actions { flex-direction: column-reverse; }
  .tebex-name-cancel,
  .tebex-name-submit { width: 100%; }
}

@media (pointer: coarse) {
  .buy,
  .ip-copy,
  .faq summary,
  .tebex-name-close,
  .tebex-name-cancel,
  .tebex-name-submit,
  .landing-footer nav a,
  .footer-top-link {
    min-height: var(--stl-hit-coarse);
  }
}
