/* Shared dark system for all five pages. Index-only motion and layout live in cd.css. */
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Bitcount Single"; src: url("../fonts/bitcount-single-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #000000;
  --fg: #ffffff;
  --muted: #e0e0e0;
  --line: rgb(255 255 255 / 0.2);
  --glass-bg: rgb(255 255 255 / 0.1);
  --glass-bd: rgb(255 255 255 / 0.08);
  --glow: #ff4600;
  --glow-deep: #e62800;
  --focus: #ffffff;
  --lava-dim: 0.7;
  --gutter: 1rem;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Bitcount Single", ui-monospace, "SF Mono", Menlo, monospace;
}

/* Adaptive rem grid: the root size follows the viewport but never leaves 87.5%-125%. */
html {
  font-size: clamp(87.5%, 0.833333vw, 125%);
  -webkit-text-size-adjust: 100%;
  scroll-padding-bottom: 8rem;
  scrollbar-width: thin;
  scrollbar-color: #444 #000;
}
@media (max-width: 1440px) { html { font-size: clamp(87.5%, 1.111111vw, 125%); } }
@media (max-width: 1024px) { html { font-size: clamp(87.5%, 1.5625vw, 125%); } }
@media (max-width: 640px) { html { font-size: clamp(87.5%, 4.444444vw, 125%); } }

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

body {
  margin: 0;
  background: radial-gradient(120% 70% at 50% 0%, rgb(230 40 0 / 0.22), rgb(0 0 0 / 0) 60%), radial-gradient(80% 50% at 100% 100%, rgb(0 64 255 / 0.12), rgb(0 0 0 / 0) 70%), var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; }
a { color: var(--fg); text-underline-offset: 0.25em; }

h1, h2, h3 { margin: 0 0 1rem; font-weight: 400; }
h1, h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 6.5rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
h3 { font-size: clamp(1.5rem, 2.5vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 100rem; margin-inline: auto; padding-inline: var(--gutter); }

/* Header */
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 64px;
  padding-block: 0.5rem;
}
.brand { font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.header-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-left: auto; }

/* Language switcher (injected by the build). The current language is bold, not colour-only. */
.lang-switch ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: 0.875rem; }
.lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 0.125rem;
  text-decoration: none;
}
.lang-switch a[aria-current="page"] { font-weight: 600; background: var(--glass-bg); text-decoration: underline; }

/* Buttons: a white pill, a line pill and the disabled state. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--fg);
  border-radius: 0.125rem;
  background: var(--fg);
  color: var(--bg);
  font: 600 0.9375rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-secondary { background: rgb(0 0 0 / 0.4); color: var(--fg); }
.btn.is-disabled {
  border-color: var(--line);
  background: var(--glass-bg);
  color: var(--muted);
  pointer-events: none;
  cursor: default;
}

/* Glass recipe */
.glass,
#offer .container, #disclaimer .container, #privacy .container, #refund .container, #thanks .container {
  border: 1px solid var(--glass-bd);
  border-radius: 1rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(1.25rem);
  backdrop-filter: blur(1.25rem);
}

/* Legal and thank-you pages: text in a glass container. */
#offer, #disclaimer, #privacy, #refund, #thanks { padding: 2.5rem var(--gutter) 0; }
#offer .container, #disclaimer .container, #privacy .container, #refund .container, #thanks .container {
  max-width: 60rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.legal-notice { padding: 0.75rem 1rem; border: 1px dashed var(--line); border-radius: 0.5rem; color: var(--muted); }

ul.list, ol.list { list-style: none; margin: 0; padding: 0; counter-reset: row; }
.list li { padding: 1rem 0; border-top: 1px solid var(--line); counter-increment: row; }
.list li:first-child { border-top: 0; }

.note { color: var(--muted); font-size: clamp(0.875rem, 1vw, 1rem); line-height: 1.4; }
.invite { overflow-wrap: anywhere; }

/* Footer: big underlined legal links, support on the right. */
.site-footer { padding: 5rem 0 4rem; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.footer-links a {
  color: var(--fg);
  font-size: clamp(1.25rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.375rem;
}
.site-footer p { margin: 0; font-size: clamp(0.875rem, 1vw, 1rem); }
.seller-block { flex-basis: 100%; }

[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

@media (min-width: 768px) {
  :root { --gutter: 2.5rem; }
  .site-footer p { text-align: right; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .footer-links a, .lang-switch a { transition: opacity 0.2s ease; }
  @media (hover: hover) {
    .btn:not(.is-disabled):hover, .lang-switch a:hover { opacity: 0.8; }
    .footer-links a:hover { opacity: 0.7; }
  }
}
