/*
 * RetroHub sales page. Same surfaces and accent as the product (src/renderer/styles/globals.css)
 * so the screenshots sit in the page as part of it. See DESIGN.md for the rules behind this file.
 *
 * Motion: everything animated here moves with transform, translate or opacity only, runs once
 * JavaScript has added `.js` to <html>, and is switched off by `prefers-reduced-motion`.
 */
/*
 * Geist and Geist Mono, SIL Open Font License 1.1 (assets/fonts/OFL-Geist.txt). The files are
 * served from this site on purpose: the page makes no request to any third party.
 */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/geist-latin-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/geist-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@property --spin {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #0e1015;
  --surface: #151821;
  --surface-raised: #1a1d27;
  --text: #e8eaef;
  --muted: #9097a8;
  --border: rgb(255 255 255 / 0.08);
  --border-strong: rgb(255 255 255 / 0.14);
  --accent: #8c9bf7;
  --accent-ink: #0e1015;
  --positive: #7ad1a0;
  --warm: #f2b56b;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --font: 'Geist', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

[hidden] {
  display: none !important;
}

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

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Reading progress ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 25;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--positive));
  transform: scaleX(0);
  transform-origin: left;
}

@supports (animation-timeline: scroll()) {
  .progress {
    animation: grow linear both;
    animation-timeline: scroll(root);
  }
}

/* ---------- Promotion band ---------- */

.ticker {
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker__track {
  display: flex;
  width: max-content;
}

.ticker__track.is-looping {
  animation: slide 42s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__track li {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 0.65rem 0 0.65rem 1.75rem;
  white-space: nowrap;
}

/* A small pixel star between the items. */
.ticker__track li::after {
  content: '';
  width: 0.7rem;
  height: 0.7rem;
  background: currentColor;
  clip-path: polygon(
    40% 0,
    60% 0,
    60% 40%,
    100% 40%,
    100% 60%,
    60% 60%,
    60% 100%,
    40% 100%,
    40% 60%,
    0 60%,
    0 40%,
    40% 40%
  );
  animation: twinkle 2.4s ease-in-out infinite;
}

.ticker__promo {
  font-weight: 700;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(14 16 21 / 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand__logo {
  width: auto;
  height: 2rem;
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand__logo {
  transform: scale(1.05);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.9375rem;
}

.site-nav a {
  position: relative;
  padding-block: 0.25rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

/* Sign in and the buy button stay in the header on every width; the section menu does not. */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-header__actions a {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .site-header__actions {
    gap: 0.875rem;
  }
}

.header-link {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.header-link:hover {
  color: var(--text);
}

/* ---------- Buttons and links ---------- */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  overflow: hidden;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease),
    background-color 0.2s var(--ease);
}

.button:hover {
  background: #a3aff9;
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px);
}

/* A band of light crosses the main buttons every few seconds. */
.button--shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgb(255 255 255 / 0.55) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: shine 4.5s var(--ease) 1.5s infinite;
}

.button--small {
  min-height: 2.75rem;
  padding: 0 1.1rem;
  font-size: 0.9375rem;
}

.button--wide {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.text-link::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  animation: nudge 1.8s ease-in-out infinite;
}

/* ---------- Shared type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}

.note {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 60ch;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  border: 1px solid rgb(242 181 107 / 0.4);
  border-radius: 999px;
  background: rgb(242 181 107 / 0.1);
  color: var(--warm);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.promo-badge__dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--warm);
}

.promo-badge__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--warm);
  animation: ping 1.8s var(--ease) infinite;
}

/* ---------- Product frame ---------- */

.frame {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.75);
}

.frame[data-tilt],
.hero__tilt {
  transform: perspective(1400px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

.frame__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-raised);
}

.frame__bar span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--border-strong);
}

.frame__bar p {
  margin-left: 0.75rem;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
}

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

.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem) var(--section);
  overflow: hidden;
}

/* Three soft lights drifting behind the hero. */
.hero__aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: wander 18s ease-in-out infinite alternate;
}

.hero__aurora span:nth-child(1) {
  top: -12rem;
  right: 6%;
  width: 34rem;
  height: 34rem;
  background: rgb(140 155 247 / 0.32);
}

.hero__aurora span:nth-child(2) {
  bottom: -14rem;
  left: 22%;
  width: 28rem;
  height: 28rem;
  background: rgb(122 209 160 / 0.14);
  animation-duration: 24s;
  animation-delay: -6s;
}

.hero__aurora span:nth-child(3) {
  top: 30%;
  left: -10rem;
  width: 24rem;
  height: 24rem;
  background: rgb(242 181 107 / 0.1);
  animation-duration: 21s;
  animation-delay: -11s;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.js .hero__copy > * {
  animation: rise 0.9s var(--ease) both;
  animation-delay: calc(var(--order, 0) * 90ms);
}

.hero__copy > :nth-child(2) {
  --order: 1;
}

.hero__copy > :nth-child(3) {
  --order: 2;
}

.hero__copy > :nth-child(4) {
  --order: 3;
}

.hero__copy > :nth-child(5) {
  --order: 4;
}

.hero__title {
  margin-top: 1.25rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
}

/* Covers set between the words, at the height of the type. */
.inline-cover {
  display: inline-block;
  width: 0.62em;
  height: 0.86em;
  margin-inline: 0.04em;
  border-radius: 0.12em;
  object-fit: cover;
  vertical-align: -0.1em;
  border: 1px solid var(--border-strong);
  animation: bob 5s ease-in-out infinite;
}

.inline-cover + .inline-cover,
.hero__title .inline-cover:last-of-type {
  animation-delay: -2.5s;
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  margin-top: 2rem;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__facts li::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--positive);
  animation: twinkle 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.4s);
}

.hero__stage {
  position: relative;
}

/* The screenshot runs past the right edge of the page on wide screens. */
.hero__tilt {
  width: 128%;
}

.js .hero__frame {
  animation:
    arrive 1.1s var(--ease) 0.15s both,
    drift 9s ease-in-out 1.4s infinite alternate;
}

/* Loose boxes floating around the screenshot. */
.hero__float {
  position: absolute;
  width: auto;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 24px 40px -18px rgb(0 0 0 / 0.8);
}

.js .hero__float {
  animation:
    pop 0.8s var(--ease) both,
    hover-a 7s ease-in-out infinite alternate;
}

.hero__float--a {
  left: -7%;
  bottom: -9%;
  height: 7.5rem;
  rotate: -7deg;
  animation-delay: 0.7s, 1.5s;
}

.hero__float--b {
  left: 20%;
  top: -12%;
  height: 8.5rem;
  rotate: 6deg;
  animation-delay: 0.85s, 1.65s;
  animation-duration: 0.8s, 8.5s;
}

.hero__float--c {
  left: 46%;
  bottom: -14%;
  height: 6.5rem;
  rotate: 4deg;
  animation-delay: 1s, 1.8s;
  animation-duration: 0.8s, 6.2s;
}

/* ---------- Game shelves ---------- */

.games {
  padding-block: var(--section);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  overflow: hidden;
}

.games__intro {
  display: grid;
  gap: 1rem;
  max-width: 50rem;
  margin-inline: auto;
  text-align: center;
}

.games__lead {
  color: var(--muted);
}

.shelf {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.shelf__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.shelf__label span {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.shelf__viewport {
  margin-top: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.shelf__viewport::-webkit-scrollbar {
  display: none;
}

.shelf__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0.75rem 0.625rem 0.25rem;
}

.shelf__track.is-looping {
  animation: slide 70s linear infinite;
}

.shelf--reverse .shelf__track.is-looping {
  animation-direction: reverse;
  animation-duration: 55s;
}

.shelf__viewport:hover .shelf__track {
  animation-play-state: paused;
}

.shelf__track li {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: min-content;
  transition: transform 0.35s var(--ease);
}

.shelf__track li:hover {
  transform: translateY(-8px) scale(1.03);
}

.shelf__track img {
  width: auto;
  max-width: none;
  height: clamp(9rem, 16vw, 13rem);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 18px 30px -18px rgb(0 0 0 / 0.9);
}

.shelf__track span {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--muted);
}

/* ---------- Two-column sections: statement on the left, content on the right ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.split > .section-title {
  position: sticky;
  top: 6rem;
}

.problem,
.steps,
.faq {
  padding-block: var(--section);
  border-top: 1px solid var(--border);
}

.rows li {
  padding-block: 1.75rem;
  border-top: 1px solid var(--border);
}

.rows li:first-child {
  padding-top: 0;
  border-top: 0;
}

.rows h3,
.timeline h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rows p,
.timeline p {
  margin-top: 0.5rem;
  color: var(--muted);
  max-width: 58ch;
}

/* ---------- Features ---------- */

.features {
  padding-block: var(--section);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  overflow: hidden;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.feature + .feature {
  margin-top: clamp(4rem, 9vw, 7rem);
}

/* Every other row mirrors: the screenshot keeps the wide column on either side. */
.feature--flip {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.feature--flip .feature__copy {
  order: 2;
}

.feature__copy h2 {
  margin-top: 1rem;
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}

.feature__copy > p:not(.eyebrow) {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 54ch;
}

/* Screenshots slide a little against the scroll, where the browser can drive it. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .feature .frame {
      animation: parallax linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}

.checks {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.checks li {
  position: relative;
  padding-left: 1.75rem;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.85rem;
  height: 0.45rem;
  border-left: 2px solid var(--positive);
  border-bottom: 2px solid var(--positive);
  transform: rotate(-45deg);
}

/* ---------- Systems ---------- */

.systems {
  padding-block: var(--section);
  border-top: 1px solid var(--border);
}

.systems__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.systems__group {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition:
    border-color 0.3s var(--ease),
    transform 0.4s var(--ease);
}

.systems__group:hover {
  border-color: rgb(140 155 247 / 0.45);
  transform: translateY(-4px);
}

.systems__group h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 1.25rem;
}

.chips li {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.9375rem;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.25s var(--ease);
}

.chips li:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Steps ---------- */

.timeline {
  counter-reset: step;
}

.timeline li {
  position: relative;
  padding: 0 0 2.25rem 4rem;
  counter-increment: step;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--accent);
}

.timeline li::after {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 1.9rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--border-strong);
  transform-origin: top;
}

.timeline li:last-child::after {
  display: none;
}

/* ---------- FAQ ---------- */

.faq__list details {
  border-top: 1px solid var(--border);
}

.faq__list details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.75rem;
  padding-block: 1rem;
  font-size: 1.0625rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}

.faq__list summary:hover {
  color: var(--accent);
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary::after {
  content: '';
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.faq__list details[open] summary::after {
  transform: rotate(-135deg);
}

.faq__list details p {
  padding-bottom: 1.25rem;
  color: var(--muted);
  max-width: 62ch;
}

.faq__list details[open] p {
  animation: rise 0.4s var(--ease) both;
}

/* ---------- Offer ---------- */

.offer {
  padding-block: var(--section);
  border-top: 1px solid var(--border);
}

.offer__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.75rem, 5vw, 4rem);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

/* A light travels around the border of the offer. */
.offer__card::before {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--spin),
    transparent 0 68%,
    var(--accent) 84%,
    transparent 100%
  );
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: spin 7s linear infinite;
}

.offer__copy h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.875rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}

.offer__box {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.offer__name {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.offer__price {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.offer__price-note,
.offer__fine {
  font-size: 0.875rem;
  color: var(--muted);
}

.offer__guarantee {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--positive);
}

.offer__soon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 500;
}

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

.site-footer {
  padding-block: 2.5rem 3.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer p {
  max-width: 90ch;
}

.site-footer p + p {
  margin-top: 0.75rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--accent);
}

.site-footer__company {
  margin-top: 1.5rem;
}

/* ---------- Legal and service pages (terms, privacy, licenses, 404) ---------- */

.legal {
  padding-block: clamp(3rem, 7vw, 5rem) var(--section);
}

/* The text keeps a reading width but starts on the same left edge as the header. */
.legal__body > * {
  max-width: 68ch;
}

.site-header__inner--split {
  justify-content: space-between;
}

.legal h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}

.legal__meta {
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.legal h2 {
  margin-top: 2.75rem;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal p {
  margin-top: 0.9rem;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal ul {
  margin-top: 0.9rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal li + li {
  margin-top: 0.4rem;
}

.legal a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

.legal a:hover {
  color: var(--accent);
}

/* Shown by site.js while config.js still lacks what the page needs to be published. */
.legal__draft {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--warm);
  border-radius: var(--radius);
  color: var(--warm);
  font-size: 0.9375rem;
}

/* A value that config.js has not provided yet. */
.missing {
  color: var(--warm);
  font-family: var(--mono);
  font-size: 0.9em;
}

.licenses {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.licenses th,
.licenses td {
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}

.licenses th {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.licenses td:first-child {
  color: var(--text);
}

.table-scroll {
  overflow-x: auto;
}

.lost {
  display: grid;
  min-height: 60vh;
  align-content: center;
  gap: 1.25rem;
  justify-items: start;
}

.lost__code {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity 0.8s var(--ease),
    translate 0.8s var(--ease),
    scale 0.8s var(--ease);
}

.js .reveal[data-reveal='left'] {
  translate: -48px 0;
}

.js .reveal[data-reveal='right'] {
  translate: 48px 0;
}

.js .reveal[data-reveal='scale'] {
  translate: 0 0;
  scale: 0.94;
}

.js .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

.rows .reveal:nth-child(2),
.timeline .reveal:nth-child(2),
.faq__list .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.rows .reveal:nth-child(3),
.timeline .reveal:nth-child(3),
.faq__list .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.faq__list .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.faq__list .reveal:nth-child(5) {
  transition-delay: 0.32s;
}

.faq__list .reveal:nth-child(6) {
  transition-delay: 0.4s;
}

/* Headlines: one word after the other. */
.words .word {
  display: inline-block;
  opacity: 0;
  translate: 0 0.5em;
  transition:
    opacity 0.6s var(--ease),
    translate 0.6s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}

.words.is-visible .word {
  opacity: 1;
  translate: 0 0;
}

/* A headline that is itself a reveal lets its words do the moving. */
.js .reveal.words {
  opacity: 1;
  translate: 0 0;
}

/* Lists inside a revealed block: items follow one by one. */
.js .reveal .checks li,
.js .reveal [data-stagger] li,
.js .reveal.offer__card .checks li {
  opacity: 0;
  translate: 0 12px;
  transition:
    opacity 0.5s var(--ease),
    translate 0.5s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.25s var(--ease);
  transition-delay: calc(0.25s + var(--i, 0) * 55ms), calc(0.25s + var(--i, 0) * 55ms), 0s, 0s, 0s;
}

.js .reveal.is-visible .checks li,
.js .reveal.is-visible [data-stagger] li {
  opacity: 1;
  translate: 0 0;
}

.js .timeline .reveal::after {
  transform: scaleY(0);
  transition: transform 0.9s var(--ease) 0.3s;
}

.js .timeline .reveal.is-visible::after {
  transform: scaleY(1);
}

/* ---------- Keyframes ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translate3d(60px, 30px, 0) rotate(2deg);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    scale: 0.6;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes drift {
  to {
    transform: translateY(-12px);
  }
}

@keyframes hover-a {
  to {
    transform: translateY(-16px);
  }
}

@keyframes bob {
  50% {
    transform: translateY(-0.07em) rotate(-3deg);
  }
}

@keyframes wander {
  to {
    transform: translate3d(6rem, 3rem, 0) scale(1.15);
  }
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

@keyframes shine {
  0%,
  55% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes twinkle {
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}

@keyframes ping {
  to {
    opacity: 0;
    transform: scale(3.2);
  }
}

@keyframes nudge {
  50% {
    transform: rotate(45deg) translate(1px, 1px);
  }
}

@keyframes spin {
  to {
    --spin: 360deg;
  }
}

@keyframes grow {
  to {
    transform: scaleX(1);
  }
}

@keyframes parallax {
  from {
    translate: 0 36px;
  }

  to {
    translate: 0 -36px;
  }
}

/* ---------- Less motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal,
  .words .word,
  .js .reveal .checks li,
  .js .reveal [data-stagger] li {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }

  .js .timeline .reveal::after {
    transform: none;
  }

  /* The bands stand still and can be scrolled by hand. */
  .ticker {
    overflow-x: auto;
  }
}

/* ---------- Narrow screens: everything becomes one column ---------- */

@media (max-width: 900px) {
  .hero__grid,
  .split,
  .feature,
  .feature--flip,
  .systems__grid,
  .offer__card {
    grid-template-columns: minmax(0, 1fr);
  }

  .split > .section-title {
    position: static;
  }

  .hero__tilt {
    width: 100%;
  }

  .hero__float {
    display: none;
  }

  .feature--flip .feature__copy {
    order: 0;
  }

  .js .reveal[data-reveal='left'],
  .js .reveal[data-reveal='right'] {
    translate: 0 24px;
  }

  .site-nav {
    display: none;
  }

  .site-header__inner {
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 1rem;
  }

  .timeline li {
    padding-left: 3rem;
  }

  .frame__bar p {
    display: none;
  }
}
