/* ============================================================================
   Gym Journal — marketing site
   ----------------------------------------------------------------------------
   Aesthetic: IRON & EMBER. A training logbook rendered in near-black steel with
   the app's own ember orange as the only heat in the room.

   The palette, radii and spacing are lifted verbatim from the app's
   src/theme/tokens.ts so the site and the product can never drift apart.
   ========================================================================= */

/* ── Fonts ─────────────────────────────────────────────────────────────────
   Display: Big Shoulders Display — condensed, sign-like, the shape of a plate
   rack label. Body: Barlow — a plain, dry grotesque, the app's own register.
   Data:    IBM Plex Mono — the logbook itself: sets, reps, loads, records.   */
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@500..900&family=Barlow:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ── Tokens (mirrors src/theme/tokens.ts) ───────────────────────────────── */
:root {
  --page: #14161b;
  --page-deep: #0e1013;
  --surface: #1b1f26;
  --control: #232833;
  --control-alt: #2c323d;
  --glass: rgba(35, 40, 51, 0.72);

  --ink: #f2f4f7;
  --ink-2: #9ba3ae;
  /* The app's ink3 is #6E7681, which measures 3.94:1 on the page colour — fine
     in a native surface, below WCAG AA for web text. Lightened one step so the
     muted ramp still passes without collapsing into ink-2. */
  --ink-3: #868e99;

  --ember: #ff6b2c;
  --ember-bright: #ff8a4c;
  --ember-soft: rgba(255, 107, 44, 0.14);
  --ember-rim: rgba(255, 107, 44, 0.28);
  --on-ember: #2a1206;

  --gain: #35d07f;
  --gain-soft: rgba(53, 208, 127, 0.13);
  --gain-rim: rgba(53, 208, 127, 0.3);
  --on-gain: #06281a;

  --rim: rgba(255, 255, 255, 0.075);
  --rim-2: rgba(255, 255, 255, 0.14);
  --sep: rgba(255, 255, 255, 0.06);
  --track: rgba(255, 255, 255, 0.07);

  --danger: #ff453a;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 32px;

  --font-display: 'Big Shoulders Display', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  /* Depth on near-black comes from a fill step plus a rim, never a shadow —
     the app's own rule. Shadow is spent only on things that should glow. */
  --lift: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  --glow-ember: 0 18px 60px -18px rgba(255, 107, 44, 0.55);
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ember-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--ember);
  color: var(--on-ember);
}

/* ── Atmosphere ──────────────────────────────────────────────────────────── */

/* Chalk dust. One inline SVG turbulence, tiled, barely there — it is what stops
   a flat #14161B from reading as an unwrapped CSS default. */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Forge heat: ember bleeding off the top of the hero, and again under the CTA. */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  z-index: 0;
}

.glow--hero {
  top: -22vw;
  right: -14vw;
  width: 62vw;
  height: 62vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.34) 0%, rgba(255, 107, 44, 0) 68%);
}

.glow--hero-2 {
  top: 16vw;
  left: -24vw;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle, rgba(53, 208, 127, 0.13) 0%, rgba(53, 208, 127, 0) 70%);
}

/* A hairline grid, like a gym floor seen from above. Almost invisible. */
.hatch {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--sep) 1px, transparent 1px),
    linear-gradient(90deg, var(--sep) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 78%);
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding-block: var(--section-y);
  overflow: clip;
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--surface {
  background: linear-gradient(180deg, var(--page) 0%, var(--page-deep) 55%, var(--page) 100%);
}

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rim-2) 22%, var(--rim-2) 78%, transparent);
  border: 0;
  margin: 0;
}

/* ── Typography helpers ──────────────────────────────────────────────────── */

.kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.kicker--ember {
  color: var(--ember);
}

.lede {
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.58;
}

.display-xl {
  font-size: clamp(3.25rem, 9.2vw, 7.75rem);
  font-weight: 900;
  letter-spacing: -0.018em;
  line-height: 0.86;
  text-transform: uppercase;
}

.display-l {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.012em;
}

.display-m {
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  font-weight: 800;
  text-transform: uppercase;
}

.ember-text {
  background: linear-gradient(96deg, var(--ember) 8%, var(--ember-bright) 62%, #ffd0ae 108%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* A numbered section marker, set like a plate label. */
.marker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.35rem;
}

.marker::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--ember);
  flex: none;
}

.marker b {
  color: var(--ember);
  font-weight: 600;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--control);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.9688rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  box-shadow: var(--lift);
  border: 1px solid transparent;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.3, 1), background-color 0.22s ease,
    border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
  white-space: nowrap;
}

.btn svg {
  flex: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* The one place shadow is allowed to read as glow — the app's own rule. */
.btn--ember {
  --btn-bg: var(--ember);
  --btn-fg: var(--on-ember);
  font-weight: 700;
  box-shadow: var(--glow-ember);
}

.btn--ember:hover {
  --btn-bg: var(--ember-bright);
  box-shadow: 0 22px 70px -16px rgba(255, 107, 44, 0.7);
}

.btn--ghost {
  --btn-bg: transparent;
  border-color: var(--rim-2);
  color: var(--ink);
}

.btn--ghost:hover {
  --btn-bg: var(--control);
  border-color: var(--rim-2);
}

.btn--big {
  padding: 1.05rem 1.85rem;
  font-size: 1.0313rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ── Nav: the app's floating glass capsule, promoted to the top of the page ─ */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 200;
  padding: 0.75rem var(--gutter);
  display: flex;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.nav__inner {
  width: 100%;
  max-width: var(--shell);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.625rem 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rim);
  background: rgba(20, 22, 27, 0.62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.nav.is-stuck .nav__inner {
  border-color: var(--rim-2);
  background: rgba(20, 22, 27, 0.86);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-right: auto;
}

.nav__brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--rim-2);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__links a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.9063rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav__links a:hover {
  color: var(--ink);
  background: var(--control);
}

.nav .btn {
  padding: 0.65rem 1.15rem;
  font-size: 0.9063rem;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: clamp(7.5rem, 14vw, 11rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: clip;
}

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

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ember-rim);
  background: var(--ember-soft);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-bright);
  margin-bottom: 1.5rem;
}

.hero__eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 12px var(--ember);
  margin-left: 0.25rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero__sub {
  max-width: 34ch;
  margin-bottom: 2rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.35rem;
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

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

.hero__proof svg {
  color: var(--gain);
  flex: none;
}

/* ── Phone frame: proportion-driven, so one ratio serves every size ──────── */
.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.027);
  border-radius: calc(var(--w) * 0.16);
  background: linear-gradient(160deg, #2b313b 0%, #0b0d10 42%, #171a20 100%);
  box-shadow: 0 0 0 1px var(--rim-2), 0 42px 90px -30px rgba(0, 0, 0, 0.9),
    0 12px 30px -14px rgba(0, 0, 0, 0.75);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--w) * 0.133);
  background: var(--page);
}

/* Ember bloom sitting behind the handset. */
.phone__bloom {
  position: absolute;
  inset: 8% -22% -8% -22%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.4) 0%, rgba(255, 107, 44, 0) 66%);
  filter: blur(46px);
}

.hero__device {
  position: relative;
  display: flex;
  justify-content: center;
  /* A stacking context, so .phone__bloom (z-index:-1) stays behind the handset
     rather than falling behind the page's own ember glows. */
  isolation: isolate;
}

.hero__device .phone {
  --w: min(310px, 68vw);
}

/* Floating log chips around the handset — the product's real unit of work. */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--rim-2);
  background: rgba(27, 31, 38, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.9);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  z-index: 2;
}

.chip b {
  font-weight: 600;
  color: var(--ink);
}

.chip i {
  font-style: normal;
  color: var(--ink-3);
}

.chip__badge {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  background: var(--gain-soft);
  border: 1px solid var(--gain-rim);
  color: var(--gain);
}

.chip__badge--ember {
  background: var(--ember-soft);
  border-color: var(--ember-rim);
  color: var(--ember-bright);
}

.chip--a {
  top: 13%;
  left: -14%;
  animation: float 7s ease-in-out infinite;
}

.chip--b {
  bottom: 21%;
  right: -16%;
  animation: float 8.5s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(-7px);
  }
  50% {
    transform: translateY(7px);
  }
}

/* ── Marquee: a continuous strip of the sets people actually log ─────────── */
.marquee {
  position: relative;
  padding-block: 1.4rem;
  border-block: 1px solid var(--sep);
  background: rgba(255, 255, 255, 0.012);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 46s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__set {
  display: flex;
  flex: none;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-inline: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  border-right: 1px solid var(--sep);
  white-space: nowrap;
}

.marquee__item b {
  color: var(--ink);
  font-weight: 500;
}

.marquee__item em {
  font-style: normal;
  color: var(--ember);
}

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

/* ── Positioning statement ───────────────────────────────────────────────── */
.statement {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.pull {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.pull em {
  font-style: normal;
  color: var(--ember);
}

.portrait-note {
  border-left: 2px solid var(--ember);
  padding-left: 1.25rem;
  display: grid;
  gap: 1rem;
  color: var(--ink-2);
}

/* ── Feature blocks ──────────────────────────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.feature--flip .feature__visual {
  order: -1;
}

.feature__body {
  max-width: 32rem;
}

.feature__body h3 {
  margin-bottom: 1rem;
}

.feature__body > p {
  color: var(--ink-2);
  margin-bottom: 1.75rem;
}

/* The app's list idiom: a stroked glyph, a bold lead, a dry tail. */
.specs {
  display: grid;
  gap: 0.125rem;
}

.specs li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.specs li:hover {
  background: var(--surface);
  border-color: var(--rim);
}

.specs svg {
  color: var(--ember);
  margin-top: 0.28rem;
  flex: none;
}

.specs b {
  display: block;
  font-weight: 600;
  font-size: 0.9688rem;
  letter-spacing: 0.002em;
}

.specs span {
  display: block;
  color: var(--ink-3);
  font-size: 0.9063rem;
  line-height: 1.5;
}

.feature__visual {
  display: flex;
  justify-content: center;
  position: relative;
  isolation: isolate;
}

.feature__visual .phone {
  --w: min(288px, 62vw);
}

/* ── Record (PR) moment ──────────────────────────────────────────────────── */
.record {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.record__card {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gain-rim);
  background: radial-gradient(120% 140% at 12% 0%, var(--gain-soft) 0%, transparent 58%), var(--surface);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.record__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gain);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.record__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gain-rim);
}

.record__move {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.record__num {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.75rem, 11vw, 6rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.record__num small {
  font-size: 0.28em;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.record__num.is-hit,
.record__card.is-hit .record__num {
  color: var(--gain);
  text-shadow: 0 0 40px rgba(53, 208, 127, 0.45);
}

.record__delta {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.record__delta b {
  color: var(--gain);
  font-weight: 600;
}

/* The bar the number rides up, mirroring the progress chart's own line.
   Starved of height until the card lands, then grown — staggered, left to right. */
.record__bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 78px;
  margin-top: 1.75rem;
}

.record__bars i {
  flex: 1;
  border-radius: var(--radius-sm) var(--radius-sm) 2px 2px;
  background: var(--control-alt);
  height: var(--h, 40%);
  transition: height 0.75s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.js .record__bars i {
  height: 0;
}

.js .record__card.is-hit .record__bars i {
  height: var(--h, 40%);
}

.js .record__card.is-hit .record__bars i:nth-child(2) { transition-delay: 0.06s; }
.js .record__card.is-hit .record__bars i:nth-child(3) { transition-delay: 0.12s; }
.js .record__card.is-hit .record__bars i:nth-child(4) { transition-delay: 0.18s; }
.js .record__card.is-hit .record__bars i:nth-child(5) { transition-delay: 0.24s; }
.js .record__card.is-hit .record__bars i:nth-child(6) { transition-delay: 0.3s; }
.js .record__card.is-hit .record__bars i:nth-child(7) { transition-delay: 0.36s; }

.record__bars i:last-child {
  background: linear-gradient(180deg, var(--gain), rgba(53, 208, 127, 0.35));
}

/* ── The four tabs (screenshot rail) ─────────────────────────────────────── */
.rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
  align-items: start;
}

.rail__item {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.rail__item .phone {
  width: 100%;
  padding: 7px;
  border-radius: 42px;
}

.rail__item .phone img {
  border-radius: 36px;
}

.rail__meta {
  display: grid;
  gap: 0.35rem;
}

.rail__meta b {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.rail__meta p {
  font-size: 0.9063rem;
  color: var(--ink-2);
  max-width: 22ch;
}

.rail__item:nth-child(even) {
  transform: translateY(clamp(0px, 2.4vw, 34px));
}

/* ── Free vs Pro ─────────────────────────────────────────────────────────── */
.tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.5rem);
  align-items: start;
}

.tier {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--rim);
  background: var(--surface);
  box-shadow: var(--lift);
}

.tier--pro {
  border-color: var(--ember-rim);
  background: radial-gradient(120% 130% at 100% 0%, var(--ember-soft) 0%, transparent 55%), var(--surface);
}

.tier__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--sep);
  margin-bottom: 1.35rem;
}

.tier__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.tier--pro .tier__name {
  color: var(--ember);
}

.tier__note {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}

.tier--pro .tier__note {
  color: var(--ember-bright);
}

.tier ul {
  display: grid;
  gap: 0.7rem;
}

.tier li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.45;
}

.tier li b {
  color: var(--ink);
  font-weight: 600;
}

.tier svg {
  flex: none;
  margin-top: 0.2rem;
}

.tier--free svg {
  color: var(--gain);
}

.tier--pro svg {
  color: var(--ember);
}

.tiers__foot {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-3);
  text-align: center;
}

.tiers__foot a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--rim-2);
  text-underline-offset: 3px;
}

.tiers__foot a:hover {
  color: var(--ember-bright);
  text-decoration-color: var(--ember-rim);
}

/* ── Privacy ─────────────────────────────────────────────────────────────── */
.promise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.promise__card {
  padding: 1.5rem 1.5rem 1.65rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rim);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent);
}

.promise__card svg {
  color: var(--gain);
  margin-bottom: 1rem;
}

.promise__card h4 {
  font-size: 1.1875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}

.promise__card p {
  font-size: 0.9063rem;
  color: var(--ink-3);
}

/* ── Lifty ───────────────────────────────────────────────────────────────── */
.lifty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.lifty__stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
  min-height: 300px;
  padding: 2rem 1rem 0;
}

.lifty__stage::after {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember-rim), transparent);
}

.lifty__stage img {
  width: clamp(120px, 22vw, 208px);
  height: auto;
  filter: drop-shadow(0 30px 46px rgba(0, 0, 0, 0.62));
}

.lifty__stage img:last-child {
  width: clamp(100px, 18vw, 168px);
  opacity: 0.92;
}

.lifty__hint {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq {
  display: grid;
  gap: 0.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--sep);
}

.faq details {
  border-bottom: 1px solid var(--sep);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0.25rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.125rem, 2vw, 1.4375rem);
  text-transform: uppercase;
  letter-spacing: 0.008em;
  list-style: none;
  transition: color 0.2s ease;
}

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

.faq summary:hover {
  color: var(--ember-bright);
}

.faq summary::after {
  content: '';
  width: 11px;
  height: 11px;
  flex: none;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1), border-color 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
  border-color: var(--ember);
}

.faq details[open] summary {
  color: var(--ink);
}

.faq p {
  padding: 0 3rem 1.5rem 0.25rem;
  color: var(--ink-2);
  font-size: 0.9688rem;
  max-width: 68ch;
}

/* ── Closing CTA ─────────────────────────────────────────────────────────── */
.closer {
  position: relative;
  overflow: clip;
  background: linear-gradient(180deg, var(--page) 0%, #1a0f07 50%, var(--page) 100%);
}

.closer__card {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ember-rim);
  background: radial-gradient(130% 150% at 50% 0%, rgba(255, 107, 44, 0.22) 0%, transparent 60%),
    var(--surface);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.5rem;
}

.closer__card .btn-row {
  justify-content: center;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--sep);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  font-size: 0.9063rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}

.footer__brand {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  max-width: 34ch;
}

.footer__brand .nav__brand {
  font-size: 1.3125rem;
}

.footer__brand p {
  color: var(--ink-3);
  font-size: 0.875rem;
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}

.footer ul {
  display: grid;
  gap: 0.6rem;
}

.footer ul a {
  color: var(--ink-2);
  transition: color 0.2s ease;
}

.footer ul a:hover {
  color: var(--ember-bright);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--sep);
  color: var(--ink-3);
  font-size: 0.8125rem;
}

/* ── Reveal on scroll ────────────────────────────────────────────────────
   Scoped to .js, which only the head script sets. Without JavaScript nothing
   is hidden — the page is fully readable, just unanimated. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ── Legal pages ─────────────────────────────────────────────────────────── */
.legal {
  padding-top: clamp(7.5rem, 13vw, 10rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.legal__head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--sep);
}

.legal__head h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.legal__body {
  max-width: 46rem;
  display: grid;
  gap: 1.15rem;
}

.legal__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-top: 1.5rem;
}

.legal__body p {
  color: var(--ink-2);
  line-height: 1.72;
}

.legal__body a {
  color: var(--ember-bright);
  text-decoration: underline;
  text-decoration-color: var(--ember-rim);
  text-underline-offset: 3px;
}

.legal__credit {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

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

/* ── Utilities ───────────────────────────────────────────────────────────── */

/* Skip link: off-screen until focused, no JavaScript involved. */
.skip {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 500;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.center {
  text-align: center;
}

.mx-auto {
  margin-inline: auto;
}

.mt-s {
  margin-top: 1rem;
}

.mt-m {
  margin-top: 2rem;
}

.max-ch {
  max-width: 62ch;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .rail__item:nth-child(even) {
    transform: none;
  }

  .rail__item:nth-child(2),
  .rail__item:nth-child(4) {
    transform: translateY(28px);
  }

  .promise {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav__links {
    display: none;
  }

  .hero__grid,
  .statement,
  .feature,
  .record,
  .lifty {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .hero__device {
    order: -1;
    margin-bottom: 1rem;
  }

  .hero__sub {
    max-width: 100%;
  }

  .chip--a {
    left: -2%;
  }

  .chip--b {
    right: -2%;
  }

  .record__visual {
    order: -1;
  }

  .tiers {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  /* On a phone the four handsets become a swipeable rail rather than four
     full-width screenshots stacked — same content, a fifth of the scroll. */
  .rail {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Full-bleed to the screen edges so the next card visibly peeks. */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 0.5rem;
  }

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

  .rail__item {
    flex: 0 0 72%;
    scroll-snap-align: center;
  }

  .rail__item:nth-child(2),
  .rail__item:nth-child(4) {
    transform: none;
  }

  .promise {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .chip--a,
  .chip--b {
    position: static;
    margin: 0.5rem auto;
    justify-content: center;
  }

  .hero__device {
    display: grid;
    gap: 0.5rem;
    justify-items: center;
  }

  .faq p {
    padding-right: 0.25rem;
  }
}

/* ── Motion / print ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .grain,
  .nav,
  .marquee,
  .glow,
  .hatch {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
