/* LoopForge Studio — landing page.
 * Same palette as the app (src/styles/theme.css): blue = primary / selected,
 * teal = time and motion, amber = warnings. Dark, layered surfaces. */

:root {
  --bg: #0b0c10;
  --bg-2: #0e1016;
  --surface: #13151c;
  --surface-2: #191c25;
  --surface-3: #20232f;
  --stroke: #232633;
  --stroke-2: #303444;

  --text: #eceef4;
  --text-dim: #a3a9bc;
  --text-mute: #7c8298;

  --accent: #7b93ff;
  --accent-hi: #9aaeff;
  --accent-lo: #6580f4;
  --accent-ink: #0b0e1c;
  --accent-soft: rgba(123, 147, 255, 0.13);
  --accent-line: rgba(123, 147, 255, 0.45);
  --data: #3ee6cf;
  --data-soft: rgba(62, 230, 207, 0.12);
  --ok: #4fd98b;
  --warn: #ffb547;
  --rose: #ff6b85;

  --radius: 20px;
  --radius-sm: 12px;
  --max: 1200px;
  --font: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Cascadia Mono', 'SF Mono', Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Tells the browser this is a dark page, so its own controls and scrollbars come out dark too. */
  color-scheme: dark;
  --scroll-thumb: #3a3f55;
  --scroll-thumb-hover: #565d78;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ─── Scrollbars ─────────────────────────────────────────────────────────
 * Slim, dark and rounded, matching the page, with no arrow buttons, instead of the browser's
 * default light ones. Chrome, Edge and Safari are styled through the WebKit pseudo-elements
 * (the only way to remove the arrows); Firefox uses the standard properties. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-thumb {
  min-width: 44px;
  min-height: 44px;
  background: var(--scroll-thumb);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active { background: var(--scroll-thumb-hover); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
@supports (-moz-appearance: none) {
  html, .graphic { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
  html { scrollbar-color: var(--scroll-thumb) var(--bg); }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(123, 147, 255, 0.3); }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* ─── Type ──────────────────────────────────────────────────────────── */
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
h1 { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.6vw, 60px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(19px, 1.7vw, 23px); color: var(--text-dim); line-height: 1.55; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--data);
}
.grad {
  background: linear-gradient(100deg, var(--accent-hi) 0%, var(--data) 55%, #b8f7ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  border: 1px solid var(--stroke-2);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease), filter 0.15s;
}
.btn:hover { background: var(--surface-3); transform: translateY(-1px); }
.btn-primary {
  border-color: transparent;
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-hi) -30%, var(--accent) 45%, var(--accent-lo) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 30px rgba(101, 128, 244, 0.35);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--accent-hi) -30%, var(--accent) 45%, var(--accent-lo) 100%); filter: brightness(1.08); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 11px; }
.btn svg { flex: 0 0 auto; }
/* Pre-launch: Buy / Download are shown but not clickable */
.btn.is-disabled,
.btn.is-disabled:hover {
  background: var(--surface-2);
  color: var(--text-mute);
  border-color: var(--stroke);
  box-shadow: none;
  filter: none;
  transform: none;
  cursor: not-allowed;
  opacity: 0.75;
  user-select: none;
}

/* ─── Nav ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 16, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--stroke); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-toggle { display: none; }

/* ─── Hero ──────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 96px 0 40px; text-align: center; overflow: hidden; }
.hero::before {
  /* soft brand glow behind the headline */
  content: '';
  position: absolute;
  inset: -200px -10% auto;
  height: 900px;
  background:
    radial-gradient(40% 50% at 30% 30%, rgba(123, 147, 255, 0.22), transparent 70%),
    radial-gradient(35% 45% at 72% 25%, rgba(62, 230, 207, 0.14), transparent 70%),
    radial-gradient(30% 40% at 55% 60%, rgba(255, 107, 133, 0.10), transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  border: 1px solid var(--stroke-2);
  border-radius: 999px;
  background: rgba(25, 28, 37, 0.7);
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 30px;
}
.hero .badge b {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-hi);
  font-size: 13px;
}
.hero h1 { max-width: 13ch; margin: 0 auto; }
.hero .lead { max-width: 640px; margin: 26px auto 0; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.cta-note { margin-top: 18px; font-size: 15px; color: var(--text-mute); }

/* App window frame around screenshots */
.window {
  position: relative;
  /* The real app window: Windows draws it with ~4 px corners and a 1 px grey border (measured
     on screen), so the screenshots are framed the same way, not like a rounded card. */
  border-radius: 4px;
  border: 1px solid #313946;
  background: var(--surface);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}
.window img { display: block; width: 100%; height: auto; } /* shown at the screenshot's own width (1178 px) so text is never resampled */
.hero-shot { margin: 72px auto 0; max-width: 1180px; }
.hero-shot::after {
  /* light spill under the screenshot */
  content: '';
  position: absolute;
  inset: auto 10% -60px;
  height: 120px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(123, 147, 255, 0.35), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}
.hero-shot-wrap { position: relative; }

/* Callouts pinned to the hero screenshot */
.callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(19, 21, 28, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--stroke-2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.callout small { display: block; font-size: 13px; font-weight: 500; color: var(--text-mute); }
.callout .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.callout .dot.blue { background: var(--accent-soft); color: var(--accent-hi); }
.callout .dot.teal { background: var(--data-soft); color: var(--data); }
.callout .dot.green { background: rgba(79, 217, 139, 0.14); color: var(--ok); }
/* Placed over empty parts of the screenshot (video letterbox, empty status bar) so they hide nothing. */
.c1 { left: -28px; top: 22%; }
.c2 { right: 5%; bottom: -26px; }
.c3 { left: 24%; bottom: -26px; }

/* ─── Proof strip ───────────────────────────────────────────────────── */
.facts { padding: 88px 0 24px; }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.fact { padding: 30px 28px; border-left: 1px solid var(--stroke); }
.fact:first-child { border-left: 0; }
.fact strong { display: block; font-size: clamp(34px, 3.6vw, 46px); line-height: 1; letter-spacing: -0.03em; font-weight: 700; }
.fact span { display: block; margin-top: 10px; color: var(--text-dim); font-size: 16px; line-height: 1.45; }

/* ─── Sections ──────────────────────────────────────────────────────── */
section { scroll-margin-top: 84px; }
.section { padding: 130px 0 0; }
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { margin-top: 16px; }
.section-head .lead { margin-top: 22px; }

/* Feature rows: text + infographic, alternating */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: center;
  margin-top: 96px;
}
.feature.flip { grid-template-columns: 1.15fr 1fr; } /* the graphic is first here: give it the wider column */
.feature.flip .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(30px, 3.2vw, 42px); letter-spacing: -0.025em; line-height: 1.1; margin-top: 14px; }
.feature-text .lead { margin-top: 18px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-dim); font-size: 17px; line-height: 1.5; }
.ticks li::before {
  content: '';
  flex: 0 0 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 7px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aaeff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
  border: 1px solid var(--accent-line);
}
.ticks li b { color: var(--text); font-weight: 600; }

/* Infographic cards */
.graphic {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background:
    radial-gradient(80% 60% at 70% 0%, rgba(123, 147, 255, 0.08), transparent 70%),
    var(--surface);
  padding: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.graphic svg { width: 100%; height: auto; overflow: visible; }
.graphic-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
  font-size: 14px;
  color: var(--text-mute);
}
.graphic .shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--stroke-2); }
.graphic .shot img { width: 100%; height: auto; }
.svg-text { font-family: var(--font); }
.svg-mono { font-family: var(--mono); }

/* Screenshot tabs */
.tour { margin-top: 64px; }
.tour-tablist {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--surface);
}
.tour-tablist button {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.tour-tablist button:hover { color: var(--text); background: var(--surface-2); }
.tour-tablist button[aria-selected='true'] { color: var(--text); background: var(--accent-soft); border-color: var(--accent-line); }
.tour-panel { margin-top: 36px; }
.tour-cap { max-width: 780px; margin: 0 auto 32px; text-align: center; color: var(--text-dim); font-size: 19px; line-height: 1.55; }
.tour-cap b { color: var(--text); }
.tour-panel .window { max-width: 1180px; margin: 0 auto; }
/* With JavaScript, show one panel at a time. */
.js .tour-panel { display: none; }
.js .tour-panel.active { display: block; animation: panel-in 0.35s var(--ease); }
.js .tour-tablist { display: flex; }
.tour-tablist { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .js .tour-panel.active { animation: none; } }
@media (max-width: 560px) { .tour-tablist { width: 100%; } .tour-tablist button { flex: 1; padding: 0 8px; font-size: 15px; } }

/* Bento: smaller pro features */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 64px;
}
.tile {
  grid-column: span 2;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.tile:hover { border-color: var(--stroke-2); transform: translateY(-2px); }
.tile.wide { grid-column: span 3; }
.tile .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-hi);
  margin-bottom: 22px;
}
.tile .icon.teal { background: var(--data-soft); border-color: rgba(62, 230, 207, 0.4); color: var(--data); }
.tile h3 { font-size: 22px; }
.tile p { margin-top: 10px; color: var(--text-dim); font-size: 16px; line-height: 1.55; }
.kbd-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
kbd {
  display: inline-flex;
  align-items: center;
  min-width: 30px;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 8px;
  border: 1px solid var(--stroke-2);
  border-bottom-width: 3px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}
.kbd-row span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-mute); font-size: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; counter-reset: step; }
.step {
  position: relative;
  padding: 34px 32px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo));
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 22px;
}
.step h3 { font-size: 24px; }
.step p { margin-top: 10px; color: var(--text-dim); font-size: 16px; }
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 56px;
  right: -21px;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-line), transparent);
}

/* Formats */
.formats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 56px; }
.format {
  padding: 26px 18px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  text-align: center;
}
.format strong { display: block; font-size: 26px; letter-spacing: -0.02em; }
.format span { display: block; margin-top: 4px; font-size: 14px; color: var(--text-mute); }
.format em { display: inline-block; margin-top: 14px; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.format em.audio { color: var(--data); background: var(--data-soft); }
.format em.loops { color: var(--warn); background: rgba(255, 181, 71, 0.12); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-top: 64px; align-items: stretch; }
.price-card {
  position: relative;
  padding: 44px;
  border-radius: 24px;
  border: 1px solid var(--accent-line);
  background:
    radial-gradient(100% 70% at 100% 0%, rgba(123, 147, 255, 0.16), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(62, 230, 207, 0.08), transparent 60%),
    var(--surface);
  box-shadow: 0 30px 90px rgba(101, 128, 244, 0.18);
}
.price-card .tag { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-hi); }
.price { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.price strong { font-size: clamp(56px, 6vw, 76px); letter-spacing: -0.04em; line-height: 1; }
.price span { color: var(--text-mute); font-size: 17px; }
.price-card .ticks { margin-top: 30px; }
.price-card .btn { width: 100%; margin-top: 34px; }
.price-card .fine { margin-top: 14px; font-size: 14px; color: var(--text-mute); text-align: center; }
.specs { padding: 44px; border-radius: 24px; border: 1px solid var(--stroke); background: var(--surface); }
.specs h3 { font-size: 24px; }
.specs dl { margin: 24px 0 0; display: grid; gap: 0; }
.specs dl div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--stroke); }
.specs dt { color: var(--text-mute); font-size: 15px; }
.specs dd { margin: 0; font-size: 16px; }

/* FAQ */
.faq { max-width: 860px; margin: 56px auto 0; }
.faq details { border-bottom: 1px solid var(--stroke); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 48px 26px 0;
  position: relative;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -9px;
  border-right: 2px solid var(--text-mute);
  border-bottom: 2px solid var(--text-mute);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 48px 28px 0; color: var(--text-dim); font-size: 17px; }

/* Final CTA */
.final {
  margin: 140px 0 0;
  padding: 100px 40px;
  text-align: center;
  border-radius: 32px;
  border: 1px solid var(--stroke-2);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(123, 147, 255, 0.22), transparent 70%),
    radial-gradient(40% 60% at 85% 100%, rgba(62, 230, 207, 0.12), transparent 70%),
    var(--surface);
  overflow: hidden;
}
.final h2 { max-width: 15ch; margin: 0 auto; }
.final .lead { max-width: 560px; margin: 22px auto 0; }

/* Footer */
.footer { padding: 72px 0 48px; color: var(--text-mute); font-size: 15px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  border-top: 1px solid var(--stroke);
  padding-top: 48px;
}
.footer-brand .brand { color: var(--text); }
.footer-brand p { margin-top: 14px; max-width: 30ch; line-height: 1.55; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-h { color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.footer-col a { color: var(--text-mute); text-decoration: none; transition: color 0.15s var(--ease); overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 32px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--stroke);
  font-size: 13.5px; line-height: 1.55;
}
.footer-bottom p { max-width: 62ch; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-bottom { flex-direction: column; } }

/* ─── Scroll reveal (only when motion is OK and JS ran) ─────────────── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .anim { animation: none !important; }
  .btn, .tile { transition: none; }
}

/* SVG animations (paused by reduced motion via .anim) */
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(var(--sweep, 300px)); } }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature.flip .feature-text { order: 0; }
  .formats { grid-template-columns: repeat(3, 1fr); }
  .callout { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide { grid-column: span 1; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: grid;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 12px 24px 20px;
    background: rgba(11, 12, 16, 0.97);
    border-bottom: 1px solid var(--stroke);
  }
  .nav-links.open a { padding: 14px 8px; font-size: 18px; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border-radius: 12px;
    border: 1px solid var(--stroke-2);
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
  }
  .nav .btn-sm { display: none; }
  .hero { padding-top: 64px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--stroke); }
  .section { padding-top: 96px; }
  .feature { margin-top: 64px; }
  .steps, .pricing { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .specs dl div { grid-template-columns: 1fr; gap: 4px; }
  .price-card, .specs { padding: 32px 26px; }
  .final { padding: 72px 24px; border-radius: 24px; }
}
@media (max-width: 560px) {
  /* Charts keep a readable size and scroll sideways instead of shrinking their text. A soft shadow on
     whichever edge still has more to show (it fades out as you reach the end) says "swipe". */
  .graphic {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    background:
      linear-gradient(90deg, var(--surface), rgba(19, 21, 28, 0)) 0 0 / 32px 100% no-repeat local,
      linear-gradient(270deg, var(--surface), rgba(19, 21, 28, 0)) 100% 0 / 32px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(123, 147, 255, 0.28), rgba(123, 147, 255, 0)) 0 50% / 14px 60% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(123, 147, 255, 0.28), rgba(123, 147, 255, 0)) 100% 50% / 14px 60% no-repeat scroll,
      radial-gradient(80% 60% at 70% 0%, rgba(123, 147, 255, 0.08), transparent 70%),
      var(--surface);
  }
  .graphic svg { min-width: 480px; }
}

/* Phones and tablets: swiping needs no scrollbar (the edge shadows show there is more). */
@media (hover: none) and (pointer: coarse) {
  .graphic { scrollbar-width: none; }
  .graphic::-webkit-scrollbar { display: none; }
}
@media (max-width: 560px) {
  .graphic-caption { min-width: 0; position: sticky; left: 0; }
  .wrap { width: calc(100% - 32px); }
  .formats { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .graphic { padding: 18px; }
  .graphic-caption { flex-direction: column; gap: 4px; }
  .faq summary { font-size: 18px; }
}

/* ─── Legal and support pages ───────────────────────────────────────── */
.legal { padding: 64px 0 24px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 10px; }
.legal .legal-meta { margin: 0 0 36px; font-size: 15px; color: var(--text-mute); }
.legal h2 { font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; margin: 40px 0 10px; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: var(--text-dim); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 10px 0 14px; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal a:not(.btn) { color: var(--accent-hi); text-underline-offset: 3px; }
.legal strong { color: var(--text); }
.legal code { font-family: var(--mono); font-size: 0.9em; padding: 1px 6px; border-radius: 5px; background: var(--surface-2); color: var(--text); }

/* Installer checksum */
.checksum { word-break: break-all; }
.checksum .mono { font-family: var(--mono); font-size: 12px; color: var(--text-dim); }