/* ============================================================================
   Blockify landing — premium voxel-craft.
   Dark, green-tinted Minecraft world; blocky GUI bevels; pixel textures.
   Type: Pixelify Sans (display) + Space Mono (everything else).
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #0e1410;
  --bg-2: #0b110d;
  --surface: #1a211a;
  --surface-2: #222a22;
  --border: #2e362e;
  --border-2: #3a443a;

  /* brand */
  --green: #4caf50;
  --green-2: #3a8c3e;
  --green-3: #6fd072;
  --gold: #f5b916;
  --gold-2: #c8920a;
  --blue: #3b82c4;
  --purple: #8b5cf6;

  /* pixel texture palette */
  --dirt: #6b4a2f;
  --dirt-2: #543a24;
  --dirt-3: #7c5736;
  --stone: #7c7c84;
  --stone-2: #67676e;

  /* text */
  --text: #f4f7f2;
  --muted: #9aa29a;
  --faint: #8a938a;

  --shadow: rgba(0, 0, 0, 0.55);

  --font-display: "Pixelify Sans", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* layered atmosphere: vignette + faint pixel checker + base */
  background-image:
    radial-gradient(120% 90% at 50% -10%, rgba(76, 175, 80, 0.1), transparent 55%),
    radial-gradient(100% 70% at 50% 110%, rgba(11, 17, 13, 0.9), transparent 60%),
    repeating-conic-gradient(
      rgba(255, 255, 255, 0.012) 0% 25%,
      transparent 0% 50%
    );
  background-size: 100% 100%, 100% 100%, 14px 14px;
  background-attachment: fixed;
}

::selection {
  background: var(--green);
  color: #07140a;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ── fixed FX + horizon layers ──────────────────────────────────────────── */
#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
}

.horizon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38vh;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(76, 175, 80, 0.07), transparent),
    /* perspective voxel grid */
      repeating-linear-gradient(
        90deg,
        rgba(76, 175, 80, 0.14) 0 1px,
        transparent 1px 48px
      ),
    repeating-linear-gradient(
      0deg,
      rgba(76, 175, 80, 0.1) 0 1px,
      transparent 1px 48px
    );
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
  mask-image: linear-gradient(to top, #000, transparent);
  transform: perspective(420px) rotateX(62deg);
  transform-origin: bottom;
  opacity: 0.7;
}

/* ── shared layout ──────────────────────────────────────────────────────── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 12vw, 132px) 24px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(36px, 6vw, 64px);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-3);
  border: 1px solid var(--border-2);
  background: rgba(76, 175, 80, 0.06);
  padding: 5px 12px;
  margin-bottom: 18px;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 0.98;
  margin: 0;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}

.section-sub {
  color: var(--muted);
  margin: 14px auto 0;
  max-width: 48ch;
}

/* ── isometric mini cube (brand mark + store icon) ──────────────────────── */
.brand-cube,
.store-icon {
  --s: 22px;
  position: relative;
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
  transform: rotateX(-26deg) rotateY(-42deg);
  flex: 0 0 auto;
}
.brand-cube .face,
.store-icon .face {
  position: absolute;
  width: var(--s);
  height: var(--s);
  image-rendering: pixelated;
}
.brand-cube .top,
.store-icon .top {
  transform: rotateX(90deg) translateZ(calc(var(--s) / 2));
  background: var(--green-3);
}
.brand-cube .left,
.store-icon .left {
  transform: rotateY(-90deg) translateZ(calc(var(--s) / 2));
  background: var(--green-2);
}
.brand-cube .right,
.store-icon .right {
  transform: translateZ(calc(var(--s) / 2));
  background: var(--green);
}
.store-icon {
  --s: 26px;
}
.store-icon .top {
  background: var(--gold);
}
.store-icon .left {
  background: var(--gold-2);
}
.store-icon .right {
  background: #e0a813;
}

/* ── nav ────────────────────────────────────────────────────────────────── */
/* full-bleed sticky chrome; the centered layout lives on .nav-inner so the
   blurred/tinted bar spans the whole viewport, not just the 1140px column */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  transition: background 0.25s, border-color 0.25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14, 20, 16, 0.82);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  perspective: 300px;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
}
.nav-links a {
  color: var(--muted);
  transition: color 0.18s;
  position: relative;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.2s var(--ease);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

/* ── buttons (Minecraft GUI bevel) ──────────────────────────────────────── */
.btn {
  --bv-l: rgba(255, 255, 255, 0.28);
  --bv-d: rgba(0, 0, 0, 0.42);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  border: none;
  user-select: none;
  transition: transform 0.08s var(--ease), filter 0.18s;
}
.btn:active {
  transform: translateY(3px);
}

/* keyboard focus ring — only shows for keyboard users, keeps the clean mouse look */
:focus-visible {
  outline: 3px solid var(--green-3);
  outline-offset: 3px;
}
.btn:focus-visible,
.skin-thumb:focus-visible,
.faq-item summary:focus-visible {
  outline: 3px solid var(--green-3);
  outline-offset: 2px;
}

.btn-store {
  padding: 12px 20px;
  color: #07140a;
  background: var(--green);
  box-shadow:
    inset 2px 2px 0 var(--bv-l),
    inset -2px -2px 0 var(--bv-d),
    0 5px 0 var(--green-2),
    0 6px 14px rgba(0, 0, 0, 0.45);
}
.btn-store:hover {
  filter: brightness(1.07);
}
.btn-store:active {
  box-shadow:
    inset 2px 2px 0 var(--bv-l),
    inset -2px -2px 0 var(--bv-d),
    0 2px 0 var(--green-2);
}
.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.store-kicker {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}
.store-line {
  font-size: 15px;
}
.btn-store--sm {
  padding: 9px 14px;
  gap: 9px;
}
.btn-store--sm .store-icon {
  --s: 18px;
}
.btn-store--sm .store-kicker {
  font-size: 9px;
}
.btn-store--sm .store-line {
  font-size: 12px;
}
.btn-store--lg {
  padding: 16px 28px;
}
.btn-store--lg .store-line {
  font-size: 17px;
}
.btn-store--lg .store-icon {
  --s: 30px;
}

.btn-ghost {
  padding: 13px 22px;
  color: var(--text);
  background: var(--surface);
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.06),
    inset -2px -2px 0 rgba(0, 0, 0, 0.4),
    0 5px 0 #11160f;
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--green-3);
}
.btn-ghost:active {
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.06),
    inset -2px -2px 0 rgba(0, 0, 0, 0.4),
    0 2px 0 #11160f;
}

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 8vw, 90px) 24px clamp(20px, 5vw, 40px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  min-height: min(82vh, 760px);
}
.hero-copy {
  max-width: 560px;
}
.title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 9vw, 92px);
  line-height: 0.92;
  margin: 16px 0 0;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}
.title-accent {
  color: var(--green);
  position: relative;
}
.lede {
  color: var(--muted);
  font-size: clamp(15px, 2.2vw, 18px);
  margin: 22px 0 30px;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.trust {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--faint);
}
.trust-dot {
  width: 9px;
  height: 9px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.18);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
  }
}

/* hero stage: 3D skin on a pedestal + floating voxels */
.hero-stage {
  position: relative;
  height: 100%;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}
.pedestal {
  position: relative;
  z-index: 2;
}
.pedestal::after {
  /* grass-block plinth shadow */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 190px;
  height: 30px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(2px);
}
.skin-wrap {
  position: relative;
}
#hero-skin {
  display: block;
  max-width: 100%;
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
}
#hero-skin:active {
  cursor: grabbing;
}
.grab-hint {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  pointer-events: none;
}

/* sample-skin switcher (thumbnails of textures) */
.skin-switch {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 8px;
  margin-top: 26px;
  padding: 8px;
  background: rgba(10, 14, 11, 0.6);
  border: 1px solid var(--border);
}
.skin-thumb {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid transparent;
  background: var(--surface);
  image-rendering: pixelated;
  cursor: pointer;
  transition: transform 0.12s var(--ease), border-color 0.15s;
}
.skin-thumb:hover {
  transform: translateY(-3px);
}
.skin-thumb.active {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.25);
}

/* floating voxel cubes (built in main.js) */
.float-block {
  --s: 64px;
  position: absolute;
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
  pointer-events: none;
  will-change: transform;
}
.fb-1 {
  --s: 72px;
  top: 6%;
  left: 4%;
  animation: spin 16s linear infinite, bob 6s var(--ease) infinite;
}
.fb-2 {
  --s: 46px;
  top: 22%;
  right: 6%;
  animation: spin 22s linear infinite reverse, bob 7.5s var(--ease) infinite;
}
.fb-3 {
  --s: 54px;
  bottom: 8%;
  left: 12%;
  animation: spin 19s linear infinite, bob 5.4s var(--ease) infinite 0.6s;
}
.voxel-face {
  position: absolute;
  inset: 0;
  width: var(--s);
  height: var(--s);
  image-rendering: pixelated;
  backface-visibility: hidden;
}
.vf-t {
  transform: rotateX(90deg) translateZ(calc(var(--s) / 2));
}
.vf-bo {
  transform: rotateX(-90deg) translateZ(calc(var(--s) / 2));
}
.vf-f {
  transform: translateZ(calc(var(--s) / 2));
}
.vf-ba {
  transform: rotateY(180deg) translateZ(calc(var(--s) / 2));
}
.vf-l {
  transform: rotateY(-90deg) translateZ(calc(var(--s) / 2));
}
.vf-r {
  transform: rotateY(90deg) translateZ(calc(var(--s) / 2));
}
@keyframes spin {
  to {
    transform: rotateX(-18deg) rotateY(360deg);
  }
}
@keyframes bob {
  50% {
    margin-top: -14px;
  }
}

/* ── modes (the 3 app cards) ────────────────────────────────────────────── */
.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mode {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 26px 22px 22px;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.04),
    inset -2px -2px 0 rgba(0, 0, 0, 0.32),
    0 6px 0 #11160f;
  transition: transform 0.16s var(--ease), border-color 0.16s;
}
.mode::before {
  /* color spine */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--tile);
}
.mode:hover {
  transform: translateY(-4px);
  border-color: var(--tile);
}
.mode-ico {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  background: var(--tile);
  display: grid;
  place-items: center;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.28),
    inset 3px 3px 0 rgba(255, 255, 255, 0.18);
}
.mode-ico::after {
  content: "";
  width: 30px;
  height: 30px;
  background: #fff;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.mode-ico[data-ico="photo"] {
  --ico: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M4 7h3l2-2h6l2 2h3v12H4z"/><circle cx="12" cy="13" r="3" fill="black"/></svg>');
}
.mode-ico[data-ico="pixelate"] {
  --ico: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M3 3h6v6H3zM10 3h5v5h-5zM16 4h4v4h-4zM3 10h6v5H3zM10 9h5v6h-5zM16 9h5v6h-5zM4 16h5v5H4zM10 16h6v5h-6zM17 17h4v4h-4z"/></svg>');
}
.mode-ico[data-ico="text"] {
  --ico: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M3 5h18v12H8l-4 4z"/><rect x="6" y="9" width="9" height="2" fill="black"/><rect x="6" y="12" width="6" height="2" fill="black"/></svg>');
}
.mode h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 8px;
}
.mode p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}
.mode-cost {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ── gallery (3D skins) ─────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.gcard {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  padding: 10px 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.16s var(--ease), border-color 0.16s;
}
.gcard:hover {
  transform: translateY(-4px);
  border-color: var(--green-2);
}
.gcard canvas {
  width: 100%;
  max-width: 150px;
  height: 190px;
  touch-action: none;
  cursor: grab;
}
.gcard canvas:active {
  cursor: grabbing;
}

/* ── features ───────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.feat {
  background: var(--bg);
  padding: 30px 26px;
  transition: background 0.18s, box-shadow 0.18s;
}
.feat:hover {
  background: var(--surface);
  box-shadow: inset 4px 0 0 var(--green);
}
.feat:hover .feat-num {
  color: var(--green-3);
}
.feat-num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--green-2);
  transition: color 0.18s;
}
.feat h3 {
  font-size: 18px;
  margin: 14px 0 8px;
}
.feat p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* ── faq ────────────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 20px;
  transition: border-color 0.16s;
}
.faq-item[open] {
  border-color: var(--green-2);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--green);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

/* ── final CTA ──────────────────────────────────────────────────────────── */
.cta {
  max-width: var(--maxw);
  margin: clamp(80px, 12vw, 150px) auto 0;
  padding: 0 24px;
}
.cta-inner {
  position: relative;
  text-align: center;
  padding: clamp(48px, 8vw, 90px) 24px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(76, 175, 80, 0.16), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-2);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25), 0 10px 0 #11160f;
  overflow: hidden;
}
.cta-inner::before,
.cta-inner::after {
  /* corner voxel confetti */
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--green);
  opacity: 0.5;
}
.cta-inner::before {
  top: 24px;
  left: 24px;
  box-shadow: 26px 12px 0 var(--gold), 60px -6px 0 var(--blue);
}
.cta-inner::after {
  bottom: 24px;
  right: 24px;
  background: var(--purple);
  box-shadow: -26px -10px 0 var(--gold), -58px 6px 0 var(--green);
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 76px);
  line-height: 0.95;
  margin: 0 0 12px;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
.cta-sub {
  color: var(--muted);
  margin: 0 0 30px;
}
.cta .btn-store {
  position: relative;
  z-index: 1;
}

/* ── footer ─────────────────────────────────────────────────────────────── */
.foot {
  max-width: var(--maxw);
  margin: clamp(60px, 9vw, 110px) auto 0;
  padding: 30px 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 13px;
}
.foot-word {
  font-size: 18px;
  color: var(--text);
}
.foot-tag {
  color: var(--muted);
}
.foot-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
.foot-links a {
  color: var(--faint);
  transition: color 0.18s;
}
.foot-links a:hover,
.foot-links a:focus-visible {
  color: var(--green-3);
}
.foot-copy {
  margin-left: 18px;
}

/* ── scroll reveal ──────────────────────────────────────────────────────── */
/* gated behind html.js so content stays visible if JS is disabled / main.js fails */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.modes .mode.reveal {
  transition-delay: calc(var(--i, 0) * 90ms);
}
.features-grid .feat.reveal {
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: 24px;
  }
  .hero-copy {
    margin: 0 auto;
  }
  .hero-actions,
  .trust {
    justify-content: center;
  }
  .hero-stage {
    order: -1;
    min-height: 420px;
  }
  .modes {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  /* nav-links carried margin-left:auto; with it hidden, push the CTA right */
  .btn-store--sm {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    gap: 10px;
  }
  .brand-word {
    font-size: 19px;
  }
  .float-block {
    display: none;
  }
  /* 44px minimum touch target on mobile (was 40px) */
  .skin-thumb {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── long-form doc pages (privacy / terms / articles) ───────────────────── */
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(96px, 15vw, 150px) 24px clamp(60px, 9vw, 100px);
}
.doc-back {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 22px;
  transition: color 0.18s;
}
.doc-back:hover,
.doc-back:focus-visible {
  color: var(--green-3);
}
.doc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 7vw, 60px);
  line-height: 1;
  margin: 0 0 10px;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
.doc-meta {
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.doc-inner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 30px);
  margin: 44px 0 14px;
  letter-spacing: 0.01em;
}
.doc-inner h3 {
  font-size: 18px;
  margin: 26px 0 10px;
}
.doc-inner p,
.doc-inner li {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.78;
}
.doc-inner ul {
  padding-left: 22px;
  margin: 12px 0;
}
.doc-inner li {
  margin: 7px 0;
}
.doc-inner strong {
  color: var(--text);
}
.doc-inner a {
  color: var(--green-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc-inner a:hover,
.doc-inner a:focus-visible {
  color: var(--green);
}
