/* FormaMod – ETS2 */

@font-face { font-family: "Switzer"; src: url("/assets/fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/assets/fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/assets/fonts/switzer-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Brand */
  --navy: #050E3C;
  --blue: #002455;
  --red: #DC0000;
  --red-bright: #FF3838;
  --cream: #f6f1e3;
  --night: #03061a;

  /* Theme (dark default) */
  --bg: var(--night);
  --bg-alt: #050b28;
  --text: var(--cream);
  --muted: rgba(246, 241, 227, 0.64);
  --faint: rgba(246, 241, 227, 0.38);
  --line: rgba(246, 241, 227, 0.13);
  --line-strong: rgba(246, 241, 227, 0.28);
  --accent: var(--red-bright);
  --focus: var(--cream);
  --header-solid: rgba(3, 6, 26, 0.94);

  --font: "Switzer", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --radius: 4px;
  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f3ec;
  --bg-alt: #efeadf;
  --text: var(--navy);
  --muted: rgba(5, 14, 60, 0.7);
  --faint: rgba(5, 14, 60, 0.45);
  --line: rgba(5, 14, 60, 0.14);
  --line-strong: rgba(5, 14, 60, 0.3);
  --accent: var(--red);
  --focus: var(--navy);
  --header-solid: rgba(246, 243, 236, 0.95);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

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

h1, h2, h3, h4 { margin: 0 0 0.75rem; font-weight: 500; line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.625rem); letter-spacing: -0.04em; line-height: 1.04; }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

code, .mono { font-family: var(--mono); font-size: 0.875em; }
code { overflow-wrap: anywhere; }

pre {
  margin: 0 0 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-alt);
  overflow-x: auto;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.5rem 1rem; background: var(--red); color: #fff;
}
.skip:focus { top: 1rem; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.mt { margin-top: 1.5rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-solid);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  min-height: 3.75rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.wordmark::before {
  content: "";
  width: 0.55rem; height: 0.55rem;
  background: var(--red);
  transform: translateY(-0.05rem);
}
.wordmark span { font-family: var(--mono); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.08em; opacity: 0.7; }
.wordmark:hover { color: inherit; }

.site-nav ul { display: flex; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.25rem 0;
  opacity: 0.85;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -0.1rem;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:hover { color: inherit; opacity: 1; }
.site-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

.chip {
  font: inherit;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 30%, transparent);
  border-radius: var(--radius);
  padding: 0.375rem 0.625rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.chip:hover { color: inherit; border-color: currentColor; }

.theme-toggle { display: inline-grid; place-items: center; padding: 0.3rem 0.45rem; line-height: 0; }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; }
.theme-toggle .bulb-glow { opacity: 0; transition: opacity 0.2s ease; }
.theme-toggle[aria-pressed="true"] { color: var(--red); }
.theme-toggle[aria-pressed="true"] .bulb-glow { opacity: 1; }

.nav-toggle { display: none; }

@media (max-width: 959px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; width: 100%; order: 10; padding: 0.5rem 0 1.25rem; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { display: block; padding: 0.625rem 0; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .header-actions .btn { display: none; }
}
@media (min-width: 960px) {
  .header-inner { flex-wrap: nowrap; }
  .site-nav { margin-left: auto; }
  .header-actions { margin-left: 0.5rem; }
}
@media (max-width: 399px) {
  .wordmark span { display: none; }
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-bright); color: #fff; }
.btn-secondary { color: inherit; border-color: color-mix(in srgb, currentColor 35%, transparent); }
.btn-secondary:hover { color: inherit; border-color: currentColor; }
.btn-sm { min-height: 2.25rem; padding: 0.375rem 0.875rem; font-size: 0.8125rem; }
.btn:disabled {
  background: transparent;
  color: var(--faint);
  border-color: var(--line);
  cursor: not-allowed;
}

.ghost {
  display: inline-flex; gap: 0.4rem; align-items: center;
  font-size: 0.875rem; text-decoration: none; color: var(--muted);
}
.ghost:hover { color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(74svh, 720px);
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 60%;
  opacity: 0.7;
  will-change: transform;
  /* Intro zoom, then a slow camera drift that loops back and forth. */
  animation:
    hero-in 2.6s var(--ease) both,
    hero-drift 40s ease-in-out 2.6s infinite alternate;
}
/* Soft fog drifting across the lower part of the frame. */
.hero::before {
  content: "";
  position: absolute; inset: 35% -40% 0 -40%; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 55% at 30% 65%, rgba(170, 185, 230, 0.16), transparent 70%),
    radial-gradient(30% 45% at 72% 75%, rgba(170, 185, 230, 0.12), transparent 70%);
  animation: fog 55s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--night) 1%, rgba(3, 6, 26, 0.5) 22%, transparent 50%),
    linear-gradient(to right, rgba(3, 6, 26, 0.65), transparent 60%);
}
.hero-content { padding-top: 4rem; padding-bottom: 2rem; }

.hero h1 {
  font-size: clamp(2.25rem, 5.6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  max-width: 15ch;
  margin: 0 0 1.25rem;
}
.hero-lead { max-width: 52ch; font-size: clamp(1rem, 1.4vw, 1.125rem); color: rgba(246, 241, 227, 0.8); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }

.hud {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 2.5rem 0 0;
  border-top: 1px solid rgba(246, 241, 227, 0.2);
}
.hud div { padding: 0.75rem 1.25rem 0 0; }
.hud dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 241, 227, 0.5);
  margin-bottom: 0.25rem;
}
.hud dd { margin: 0; font-size: 0.9375rem; }
@media (min-width: 800px) { .hud { grid-template-columns: repeat(4, 1fr); } }

.shot-credit {
  position: absolute; right: var(--gutter); top: 1.5rem;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em;
  color: rgba(246, 241, 227, 0.5);
  writing-mode: vertical-rl;
}
@media (max-width: 799px) { .shot-credit { display: none; } }

.hero .reveal-load { animation: rise 0.9s var(--ease) both; }
.hero .reveal-load:nth-child(2) { animation-delay: 0.1s; }
.hero .reveal-load:nth-child(3) { animation-delay: 0.2s; }
.hero .reveal-load:nth-child(4) { animation-delay: 0.3s; }
.hero .reveal-load:nth-child(5) { animation-delay: 0.45s; }

@keyframes hero-in { from { transform: scale(1.08); opacity: 0; } to { transform: scale(1); opacity: 0.7; } }
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.06) translate3d(-1.5%, -1%, 0); } }
@keyframes fog { from { transform: translateX(-10%); } to { transform: translateX(10%); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 6vw, 4.75rem) 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }

.section-head {
  display: grid;
  gap: 0.75rem 3rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; }
}
.section-head p { color: var(--muted); max-width: 52ch; margin: 0; }

.label {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.label b { color: var(--accent); font-weight: 400; }
.label::after { content: ""; flex: 0 0 2.5rem; height: 1px; background: var(--line-strong); }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.625rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--muted);
}
.tag-available { border-color: var(--accent); color: var(--accent); }

/* Feature grid: 1px hairlines between cells */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  position: relative;
  background: var(--bg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  min-height: clamp(9rem, 14vw, 11.5rem);
  display: flex; flex-direction: column;
  transition: background-color 0.3s ease;
}
.feature::before {
  content: "";
  position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.feature:hover { background: var(--bg-alt); }
.feature:hover::before { transform: scaleX(1); }
.feature-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; padding-bottom: 1.5rem; }
.feature-num { font-family: var(--mono); font-size: 0.75rem; color: var(--faint); }
.feature h3 { font-size: 1.375rem; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.feature p { color: var(--muted); font-size: 0.9375rem; margin: 0; }
/* Slider names, pinned to the bottom of the card */
.feature .knobs {
  margin-top: auto; padding-top: 1rem;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em;
  color: var(--accent);
}

/* Simple bullet list inside panels */
.plain { margin: 0 0 1rem; padding-left: 1.125rem; color: var(--muted); }
.plain li { padding: 0.25rem 0; }
.plain li::marker { color: var(--accent); }
.changelog { margin: 0; }
.changelog li { padding: 0.5rem 0; }

/* Gallery: before/after comparison */
.ba-stage {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
  user-select: none;
  touch-action: pan-y;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px;
  background: var(--cream);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.ba-handle::after {
  content: "‹ ›";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.125rem; letter-spacing: 0.1em;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.ba-tag {
  position: absolute; top: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  background: rgba(3, 6, 26, 0.72);
  color: var(--cream);
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  pointer-events: none;
}
.ba-tag-before { left: 0.75rem; }
.ba-tag-after { right: 0.75rem; }
.ba-tag { transition: opacity 0.2s ease; }
.ba-stage.hide-before .ba-tag-before,
.ba-stage.hide-after .ba-tag-after { opacity: 0; }
.ba-handle { transition: opacity 0.2s ease; }
.ba-stage.full .ba-handle { opacity: 0; }
/* Smooth curtain only when a view button moves it, never while dragging. */
.ba-stage.anim .ba-before { transition: clip-path 0.6s var(--ease); }
.ba-stage.anim .ba-handle { transition: left 0.6s var(--ease), opacity 0.2s ease; }

.ba-modes {
  display: inline-flex; flex-wrap: wrap;
  margin-bottom: 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 0.25rem;
}
.ba-modes button {
  border: 0; border-radius: 100px;
  padding: 0.5rem 1rem;
  background: none; color: var(--muted);
  font: inherit; font-size: 0.875rem; font-weight: 500;
  cursor: pointer;
}
.ba-modes button:hover { color: var(--text); }
.ba-modes button[aria-pressed="true"] { background: var(--red); color: #fff; }
/* The range input covers the whole picture: drag anywhere (mouse, touch, keyboard). */
.ba-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ba-stage:has(.ba-range:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }

.ba-caption { margin: 1rem 0 1.25rem; color: var(--muted); max-width: 70ch; }
.ba-caption b { color: var(--text); font-weight: 500; }

.ba-scenes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
  gap: 0.75rem;
}
.ba-scene {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 0; border: 0; background: none;
  color: var(--muted);
  font: inherit; font-size: 0.875rem; text-align: left;
  cursor: pointer;
}
.ba-scene img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.ba-scene:hover img { opacity: 0.9; }
.ba-scene[aria-pressed="true"] { color: var(--text); }
.ba-scene[aria-pressed="true"] img { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* Mod window screenshot */
.ui-showcase {
  display: grid; gap: 1.5rem 3rem;
  align-items: center;
  padding-top: clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 900px) { .ui-showcase { grid-template-columns: 5fr 6fr; } }
.ui-shot { margin: 0; justify-self: center; max-width: 30rem; }
.ui-shot img { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.ui-copy h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.03em; margin-bottom: 1rem; }

/* Panels (download, install, changelog) */
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg);
}
.panel-accent { border-top: 2px solid var(--accent); }
.panel h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.panel h4 {
  font-family: var(--mono); font-weight: 400;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  margin: 1.75rem 0 0.75rem;
}

.download-layout { display: grid; gap: 1rem; }
@media (min-width: 900px) {
  .download-layout { grid-template-columns: 7fr 5fr; align-items: start; }
}

.release-big {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0.75rem 0 0.75rem;
  overflow-wrap: anywhere;
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1rem; }
.steps li { counter-increment: step; position: relative; padding: 0.625rem 0 0.625rem 2rem; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0.625rem; font-family: var(--mono); font-size: 0.75rem; color: var(--accent); padding-top: 0.2rem; }

/* Support */
.support-box {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: end;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg);
}
.support-box h2 { max-width: 20ch; margin-bottom: 1rem; }
.support-box p:last-child { margin: 0; max-width: 60ch; }
.support-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.625rem; font-size: 0.8125rem; }
@media (min-width: 900px) {
  .support-box { grid-template-columns: 2fr 1fr; }
  .support-cta { align-items: flex-end; }
}

/* FAQ */
.faq-layout { display: grid; gap: 2rem 4rem; }
@media (min-width: 900px) {
  .faq-layout { grid-template-columns: 4fr 7fr; }
  .faq-layout .section-head { position: sticky; top: 6rem; align-self: start; grid-template-columns: 1fr; }
}
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.125rem 0;
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--mono);
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--accent); }
.faq-list details > div { padding: 0 0 1.25rem; color: var(--muted); max-width: 62ch; }
.faq-list details > div p:last-child { margin-bottom: 0; }

/* Contact */
.contact-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-main { font-size: clamp(1.375rem, 3vw, 2rem); letter-spacing: -0.03em; margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; font-size: 0.875rem; color: var(--muted); overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; padding: 0; margin: 0; }
.site-footer a { text-decoration: none; }
.footer-legal { max-width: 80ch; }
.footer-mark {
  font-size: clamp(3rem, 11vw, 8.5rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: var(--line);
  margin: 1.5rem 0 -0.12em;
  white-space: nowrap;
  user-select: none;
}

/* ---------- Legal pages ---------- */

.prose { max-width: 70ch; padding: 3rem 0 4rem; }
.prose h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.045em; line-height: 1.02; margin-bottom: 1rem; }
.prose h2 { font-size: 1.25rem; letter-spacing: -0.02em; margin-top: 2.5rem; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--text); }
.prose ul { padding-left: 1.25rem; }

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--text);
  background: var(--header-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s, border-color 0.2s ease, color 0.2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { color: var(--accent); border-color: var(--accent); }
.to-top svg { width: 1.125rem; height: 1.125rem; }

/* ---------- Phones ---------- */

@media (max-width: 599px) {
  .hero { min-height: 0; }
  .hero-content { padding-top: 3.5rem; padding-bottom: 1.5rem; }

  /* Main actions: full width, same size everywhere */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn,
  .panel .btn,
  .support-cta .btn { width: 100%; }
  .support-cta { align-items: stretch; text-align: center; }

  /* HUD as an even label/value list */
  .hud { grid-template-columns: 1fr; margin-top: 2rem; }
  .hud div {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(246, 241, 227, 0.12);
  }
  .hud dt { margin: 0; }
  .hud dd { text-align: right; font-size: 0.875rem; }

  .feature { min-height: 0; }
  .feature-top { padding-bottom: 1rem; }

  .faq-layout { gap: 0; }
  .faq-list summary { font-size: 1rem; }

  .contact-main { font-size: 1.25rem; }
  .footer-top { flex-direction: column; }
}

/* ---------- Scroll reveal (enabled by main.js) ---------- */

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
