/* refrace landing — same night-floor palette as the race pages, quieter frame. */

:root {
  --bg: #07080c;
  --bg-raised: #0f1118;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef0f6;
  --muted: #8a90a6;
  --soft: #c5c9d8;
  --violet: #7c5cff;
  --gold: #f2c14e;
  --silver: #c9d1e0;
  --bronze: #d48a5a;
  --lime: #b8f25c;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > footer { flex-shrink: 0; }
h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
p { text-wrap: pretty; }
h2, h3 { text-wrap: balance; }
::selection { background: var(--gold); color: #14110a; }

.rf-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  min-width: 0;
}

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

.rf-top { border-bottom: 1px solid var(--line); }
.rf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}
.rf-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.rf-top nav { display: flex; align-items: center; gap: 22px; }
.rf-top nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.rf-top nav a:hover { color: var(--text); }
.rf-top nav .rf-nav-cta { color: var(--gold); }
.rf-top nav .rf-nav-cta:hover { color: #ffe7a3; }

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

.rf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  padding-block: clamp(48px, 7vw, 88px);
}
.rf-hero-grid > * { min-width: 0; }
.rf-hero h1 {
  max-width: 16em;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--soft);
}
.rf-hero-line {
  display: block;
  margin-bottom: 0.16em;
  color: var(--text);
  font-size: clamp(3.5rem, 7vw, 5.6rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.055em;
}
.rf-lede {
  max-width: 38ch;
  margin-top: 22px;
  font-size: 1.05rem;
  color: var(--soft);
}
.rf-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  margin-top: 28px;
}
.rf-button {
  display: inline-block;
  padding: 13px 18px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: #14110a;
  background: var(--gold);
}
.rf-button:hover { background: #ffe3a0; }
.rf-link {
  font-weight: 650;
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  padding-bottom: 2px;
}
.rf-link:hover { color: var(--gold); }
.rf-works {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- Sample board ---------- */

.rf-shot {
  max-width: 100%;
  padding: 14px 16px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0c0e15;
}
.rf-shot-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rf-shot-kicker {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}
.rf-shot-kicker i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--lime);
  vertical-align: 1px;
}
.rf-shot-kicker b { color: var(--text); letter-spacing: 0; }
.rf-shot-title {
  margin-top: 8px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.rf-shot-title span { color: var(--gold); }
.rf-shot-stats { display: flex; gap: 8px; margin-top: 14px; }
.rf-shot-stats div {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 8, 12, 0.45);
}
.rf-shot-stats span {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.rf-shot-stats strong {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}
.rf-shot-stats div:first-child strong { color: var(--gold); }

.rf-shot-podium {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  margin-top: 26px;
}
.rf-shot-podium article {
  --tone: var(--silver);
  min-width: 0;
  position: relative;
  padding: 24px 6px 12px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tone) 18%, transparent), transparent 62%),
    #12141c;
}
.rf-shot-podium .is-1 {
  --tone: var(--gold);
  padding-top: 30px;
  border-color: color-mix(in srgb, var(--gold) 42%, transparent);
}
.rf-shot-podium .is-3 { --tone: var(--bronze); }
.rf-chip {
  position: absolute;
  top: -13px;
  left: 50%;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.72rem;
  color: #14110a;
  background: var(--tone);
  box-shadow: inset 0 0 0 3px var(--tone), inset 0 0 0 5px rgba(0, 0, 0, 0.28);
  outline: 1.5px dashed rgba(255, 255, 255, 0.55);
  outline-offset: -5px;
}
.is-1 .rf-chip { width: 32px; height: 32px; top: -16px; font-size: 0.82rem; }
.rf-shot-place {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tone);
}
.rf-shot-name {
  margin-top: 3px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.rf-shot-amt {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--soft);
}
.rf-shot-prize {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 7px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: #14110a;
  background: var(--tone);
}

.rf-shot-rows { margin-top: 12px; }
.rf-shot-rows li {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: baseline;
  padding: 9px 2px 10px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.rf-shot-rows span:first-child {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.rf-shot-rows span:nth-child(2) {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rf-shot-rows span:nth-child(n + 3) {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.rf-shot-rows span:nth-child(4) { color: var(--lime); font-weight: 700; }
.rf-shot-rows i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--lime));
  opacity: 0.8;
}
.rf-shot-rows li:nth-child(1) i { width: 62%; }
.rf-shot-rows li:nth-child(2) i { width: 52%; }
.rf-shot-rows li:nth-child(3) i { width: 46%; }

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

.rf-features { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rf-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.rf-features article { padding: 26px 22px 28px 0; }
.rf-features article + article {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.rf-features h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.rf-features p {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--soft);
}
.rf-features code {
  font-family: var(--mono);
  font-size: 0.84em;
  color: var(--gold);
  overflow-wrap: anywhere;
}

/* ---------- How ---------- */

.rf-how { padding-block: clamp(56px, 8vw, 88px); }
.rf-how h2,
.rf-contact h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.rf-how ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.rf-how b {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
}
.rf-how h3 {
  margin-top: 8px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.rf-how p { margin-top: 6px; color: var(--soft); }

/* ---------- Dashboard ---------- */

.rf-dash { padding-block: 0 clamp(56px, 8vw, 88px); }
.rf-dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
.rf-dash h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; }
.rf-dash-copy > p { max-width: 46ch; margin-top: 8px; color: var(--soft); }
.rf-dash-copy > p a { color: var(--gold); }
.rf-dash .rf-included { margin-top: 18px; }
.rf-dash-note { font-size: 0.85rem; color: var(--muted) !important; margin-top: 16px !important; }
.rf-dash .rf-ctas { margin-top: 18px; }

.rf-dash-shot {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.rf-dash-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rf-dash-tiles div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.rf-dash-tiles span {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rf-dash-tiles b { display: block; margin-top: 4px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }
.rf-dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 84px;
  margin-top: 12px;
  padding: 0 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.rf-dash-bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--gold); }
.rf-dash-bars i:nth-child(1) { height: 34%; }
.rf-dash-bars i:nth-child(2) { height: 42%; }
.rf-dash-bars i:nth-child(3) { height: 38%; }
.rf-dash-bars i:nth-child(4) { height: 55%; }
.rf-dash-bars i:nth-child(5) { height: 47%; }
.rf-dash-bars i:nth-child(6) { height: 40%; }
.rf-dash-bars i:nth-child(7) { height: 62%; }
.rf-dash-bars i:nth-child(8) { height: 51%; }
.rf-dash-bars i:nth-child(9) { height: 44%; }
.rf-dash-bars i:nth-child(10) { height: 58%; }
.rf-dash-bars i:nth-child(11) { height: 49%; }
.rf-dash-bars i:nth-child(12) { height: 66%; }
.rf-dash-bars i:nth-child(13) { height: 57%; }
.rf-dash-bars i:nth-child(14) { height: 61%; }
.rf-dash-bars i:nth-child(15) { height: 72%; }
.rf-dash-bars i:nth-child(16) { height: 54%; }
.rf-dash-bars i:nth-child(17) { height: 68%; }
.rf-dash-bars i:nth-child(18) { height: 80%; }
.rf-dash-bars i:nth-child(19) { height: 74%; }
.rf-dash-bars i:nth-child(20) { height: 92%; }
.rf-dash-rows { margin-top: 12px; }
.rf-dash-rows li {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr) auto;
  gap: 10px;
  padding: 7px 4px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.rf-dash-rows em { font-style: normal; font-family: var(--mono); color: var(--gold); }
.rf-dash-rows span { font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; }
.rf-dash-rows b { font-weight: 600; color: var(--soft); font-variant-numeric: tabular-nums; }

/* ---------- Pricing ---------- */

.rf-pricing { padding-block: 0 clamp(56px, 8vw, 88px); }
.rf-pricing-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.rf-pricing-head p { max-width: 46ch; margin-top: 8px; color: var(--soft); }
.rf-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rf-plans li { padding: 24px 22px 26px 0; min-width: 0; }
.rf-plans li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.rf-plans h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.rf-tag {
  padding: 2px 8px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #14110a;
  background: var(--gold);
}
.rf-price { margin-top: 14px; font-family: var(--mono); color: var(--soft); }
.rf-price b {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}
.rf-plans .is-best .rf-price b { color: var(--gold); }
.rf-plan-note { margin-top: 4px; font-size: 0.9rem; color: var(--muted); }

.rf-pricing-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: 24px;
}
.rf-included { margin: 0; padding: 0; list-style: none; color: var(--soft); }
.rf-included li { position: relative; padding-left: 22px; }
.rf-included li + li { margin-top: 6px; }
.rf-included li::before { content: "✓"; position: absolute; left: 0; color: var(--lime); font-weight: 700; }
.rf-included code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--gold);
}
.rf-pricing-cta { max-width: 22rem; }
.rf-pricing-cta p { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.rf-pricing-cta a:not(.rf-button) { color: var(--soft); }

/* ---------- Contact ---------- */

.rf-contact {
  border-top: 2px solid var(--gold);
  background: var(--bg-raised);
}
.rf-contact-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-block: clamp(40px, 6vw, 64px);
}
.rf-contact-inner > div:first-child { max-width: 36rem; }
.rf-contact p { margin-top: 12px; color: var(--soft); }
.rf-contact .rf-ctas { flex-direction: column; align-items: flex-start; margin-top: 0; gap: 14px; }
.rf-contact .rf-link {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

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

.rf-foot { padding-block: 28px 36px; }
.rf-foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.8rem;
  color: var(--muted);
}
.rf-foot-mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.rf-foot p + p { margin-top: 4px; }
.rf-foot-inner > div { max-width: 78ch; }

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

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

/* ---------- 404 ---------- */

.rf-plain { min-height: 100vh; display: grid; place-items: center; }
.rf-notfound { max-width: 440px; padding: var(--gutter); text-align: center; }
.rf-notfound h1 { margin: 10px 0 12px; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.rf-notfound p:not(.rf-kicker) { margin-bottom: 26px; color: var(--soft); }
.rf-notfound-links { font-size: 0.85rem; }
.rf-notfound-links a { color: var(--gold); }

@media (max-width: 900px) {
  .rf-hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 40px 48px; }
  .rf-features-grid { grid-template-columns: 1fr 1fr; }
  .rf-features article { padding: 22px 18px 24px 0; border-top: 1px solid var(--line); }
  .rf-features article + article { border-left: 0; padding-left: 0; }
  .rf-features article:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .rf-features article:nth-child(-n + 2) { border-top: 0; }
  .rf-how ol { grid-template-columns: 1fr; gap: 0; }
  .rf-how li + li { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  .rf-plans { grid-template-columns: 1fr; }
  .rf-dash-grid { grid-template-columns: minmax(0, 1fr); }
  .rf-plans li { padding: 20px 0; }
  .rf-plans li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .rf-contact-inner { flex-direction: column; align-items: flex-start; }
  .rf-foot-inner { flex-direction: column; }
  .rf-foot-inner > div { text-align: left; }
}

@media (max-width: 640px) {
  .rf-hero-line { font-size: clamp(3rem, 16vw, 3.8rem); }
  .rf-features-grid { grid-template-columns: 1fr; }
  .rf-features article,
  .rf-features article:nth-child(even) {
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .rf-features article:first-child { border-top: 0; }
  .rf-shot-name { font-size: 0.82rem; }
  .rf-shot-amt { font-size: 0.65rem; }
}

/* ---------- Mobile burger menu (shared across every landing-site page) ---------- */

.rf-burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  z-index: 2;
}
.rf-burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s, top 0.2s;
}
.rf-burger span:nth-child(1) { top: 14px; }
.rf-burger span:nth-child(2) { top: 21px; }
.rf-burger span:nth-child(3) { top: 28px; }
.rf-bar.is-menu-open .rf-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.rf-bar.is-menu-open .rf-burger span:nth-child(2) { opacity: 0; }
.rf-bar.is-menu-open .rf-burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 720px) {
  .rf-burger { display: inline-flex; }
  /* Hide the inline nav + user-nav chip; the burger drop-down owns them on mobile. */
  .rf-bar > nav,
  .rf-bar > .rf-user-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    z-index: 1;
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.6);
  }
  .rf-bar.is-menu-open > nav,
  .rf-bar.is-menu-open > .rf-user-nav {
    display: flex;
  }
  .rf-top { position: relative; }
  .rf-bar { position: static; }
  .rf-top nav a,
  .rf-top nav button {
    width: 100%;
    text-align: left;
    padding: 10px 4px;
    font-size: 1rem;
    border-radius: 8px;
  }
  .rf-top nav .rf-nav-cta {
    background: var(--gold);
    color: #0b0b10;
    padding: 10px 16px;
    text-align: center;
  }
  .rf-user-nav {
    margin-left: 0;
  }
  .rf-user-nav .rf-user-link {
    width: 100%;
    padding: 10px 4px;
    font-size: 1rem;
    max-width: none;
  }
  .rf-user-nav .rf-user-signout {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.95rem;
  }
}

/* ---------- Motion ----------
 * Hero entrance (blurred intro, words rising in, typewriter, pills), a
 * pointer-following aura and spotlight grid, a tilting sample card and
 * scroll-driven reveals further down. All of it is decoration: the content
 * is in its final state without it, and reduced motion turns it off.
 */

.rf-hero {
  --mx: 70%;
  --my: 30%;
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.rf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(520px circle at var(--mx) var(--my), #000, transparent 70%);
  mask-image: radial-gradient(520px circle at var(--mx) var(--my), #000, transparent 70%);
  animation: rf-fade 1.6s ease 0.2s both;
}
.rf-aura {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(560px circle at var(--mx) var(--my), rgba(124, 92, 255, 0.2), transparent 62%),
    radial-gradient(440px circle at calc(100% - var(--mx)) calc(var(--my) + 35%), rgba(242, 193, 78, 0.09), transparent 60%);
  animation: rf-fade 1.4s ease both;
}

/* Starts blurred and sharpens into a readable line. */
.rf-intro {
  margin-bottom: 18px;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
  animation: rf-blur-in 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.rf-hero h1 .rf-w {
  display: inline-block;
  animation: rf-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.rf-hero-line .rf-w:nth-child(1) { animation-delay: 0.12s; }
.rf-hero-line .rf-w:nth-child(2) { animation-delay: 0.2s; }
.rf-hero h1 > .rf-w:nth-of-type(2) { animation-delay: 0.3s; }
.rf-hero h1 > .rf-w:nth-of-type(3) { animation-delay: 0.34s; }
.rf-hero h1 > .rf-w:nth-of-type(4) { animation-delay: 0.38s; }
.rf-hero h1 > .rf-w:nth-of-type(5) { animation-delay: 0.42s; }
.rf-hero h1 > .rf-w:nth-of-type(6) { animation-delay: 0.46s; }
.rf-hero h1 > .rf-w:nth-of-type(7) { animation-delay: 0.5s; }

.rf-type {
  position: relative;
  max-width: 34ch;
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  animation: rf-fade 0.5s ease 0.45s both;
}
.rf-type-ghost { visibility: hidden; }
.rf-type-live { position: absolute; inset: 0; }
.rf-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--gold);
  animation: rf-blink 1s step-end infinite;
}
.rf-hero .rf-lede { animation: rf-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.55s both; }
.rf-hero .rf-works { animation: rf-fade 0.6s ease 0.9s both; }

.rf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  margin-top: 26px;
}
.rf-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.5em 1.1em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  color: #0b0c10;
  background: var(--text);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  animation: rf-pill-in 0.4s ease both;
}
.rf-pill:hover { color: var(--text); background: transparent; border-color: rgba(255, 255, 255, 0.5); }
.rf-pill.is-gold { background: var(--gold); border-color: transparent; color: #14110a; }
.rf-pill.is-gold:hover { background: #ffe3a0; }
.rf-pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rf-pill:nth-child(1) { animation-delay: 0.4s; }
.rf-pill:nth-child(2) { animation-delay: 0.45s; }
.rf-pill:nth-child(3) { animation-delay: 0.5s; }
.rf-pill:nth-child(4) { animation-delay: 0.55s; }

.rf-shot {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.85), 0 0 60px -30px rgba(124, 92, 255, 0.35);
  will-change: transform;
  animation: rf-card-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both;
}
.rf-shot-hint { display: none; color: var(--lime); letter-spacing: 0.04em; text-transform: none; }
@media (hover: hover) and (pointer: fine) {
  .rf-shot-hint { display: inline; animation: rf-fade 0.6s ease 1.6s both; }
}
.rf-shot-kicker i { animation: rf-pulse 1.8s ease-out infinite; }
.rf-shot-podium .is-swap { animation: rf-swap 0.7s ease; }

@supports (animation-timeline: view()) {
  .rf-features article,
  .rf-how li,
  .rf-dash-copy,
  .rf-dash-shot,
  .rf-pricing-head,
  .rf-plans li,
  .rf-pricing-foot,
  .rf-contact-inner {
    animation: rf-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }
  .rf-features article:nth-child(2),
  .rf-how li:nth-child(2),
  .rf-plans li:nth-child(2) { animation-range: entry 6% entry 76%; }
  .rf-features article:nth-child(3),
  .rf-how li:nth-child(3),
  .rf-plans li:nth-child(3) { animation-range: entry 12% entry 82%; }
  .rf-features article:nth-child(4) { animation-range: entry 18% entry 88%; }
  .rf-dash-bars i {
    transform-origin: bottom;
    animation: rf-grow linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 45%;
  }
}

/* ---------- Site pages (join, dashboard, sign-in, terms, 404) ----------
 * site-motion.ts adds .rf-ambient: an aura and spotlight grid behind the
 * page that follow the pointer. Content rises in on load, long forms reveal
 * as they scroll in, dashboard tiles and bars animate. Reduced motion turns
 * it off with the block above.
 */

.rf-ambient {
  --mx: 72%;
  --my: 18%;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(124, 92, 255, 0.16), transparent 62%),
    radial-gradient(460px circle at calc(100% - var(--mx)) calc(100% - var(--my)), rgba(242, 193, 78, 0.06), transparent 60%);
  animation: rf-fade 1.4s ease both;
}
.rf-ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(480px circle at var(--mx) var(--my), #000, transparent 70%);
  mask-image: radial-gradient(480px circle at var(--mx) var(--my), #000, transparent 70%);
}

.jn-main > :not(#app),
#app > *,
.rf-notfound > * {
  animation: rf-enter 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.jn-main > :nth-child(2),
#app > :nth-child(2),
.rf-notfound > :nth-child(2) { animation-delay: 0.07s; }
.jn-main > :nth-child(3),
#app > :nth-child(3),
.rf-notfound > :nth-child(3) { animation-delay: 0.14s; }
.jn-main > :nth-child(4),
#app > :nth-child(4),
.rf-notfound > :nth-child(4) { animation-delay: 0.21s; }
#app > :nth-child(5) { animation-delay: 0.28s; }
#app > :nth-child(n + 6) { animation-delay: 0.34s; }
.jn-main h1 { animation: rf-blur-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s both; }

.db-tile { animation: rf-enter 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.db-tile:nth-child(2) { animation-delay: 0.08s; }
.db-tile:nth-child(3) { animation-delay: 0.16s; }
.db-bar i {
  transform-origin: bottom;
  animation: rf-grow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(0.25s + var(--i, 0) * 16ms);
}

.rf-button {
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.rf-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px rgba(242, 193, 78, 0.7);
}

@supports (animation-timeline: view()) {
  .jn-field,
  .jn-terms > :not(h1) {
    animation: rf-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}

@keyframes rf-enter { from { opacity: 0; translate: 0 18px; filter: blur(6px); } }

@keyframes rf-fade { from { opacity: 0; } }
@keyframes rf-blur-in { from { opacity: 0; filter: blur(16px); translate: 0 6px; } }
@keyframes rf-rise { from { opacity: 0; translate: 0 0.45em; filter: blur(8px); } }
@keyframes rf-pill-in { from { opacity: 0; translate: 0 8px; } }
@keyframes rf-card-in { from { opacity: 0; translate: 0 28px; scale: 0.97; } }
@keyframes rf-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes rf-pulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 242, 92, 0.55); }
  100% { box-shadow: 0 0 0 7px rgba(184, 242, 92, 0); }
}
@keyframes rf-swap {
  0% { translate: 0 0; }
  35% { translate: 0 -6px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--tone) 70%, transparent), 0 0 36px -6px var(--tone); }
  100% { translate: 0 0; }
}
@keyframes rf-reveal { from { opacity: 0; translate: 0 28px; filter: blur(6px); } }
@keyframes rf-grow { from { scale: 1 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rf-button { transition: none; }
  *, *::before, *::after { animation: none !important; }
  .rf-shot { transform: none; }
  .rf-button:hover { transform: none; }
  .rf-shot-hint { display: none !important; }
}

/* Shared user-nav chip (populated by user-nav.ts across the landing site). */
.rf-user-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 14px;
}
.rf-user-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 2px;
}
.rf-user-link:hover { color: var(--text); }
.rf-user-signout {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color .12s, border-color .12s;
}
.rf-user-signout:hover { color: var(--text); border-color: var(--text); }
@media (max-width: 680px) {
  .rf-user-nav { margin-left: 10px; gap: 6px; }
  .rf-user-link { max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
