/* ==========================================================================
   Rangune marketing site — design system
   Palette and type are lifted from packages/ui/src/tokens.js and the
   BigCommerce storefront theme (rangune-bctheme) so the marketing site, the
   storefront and the admin app read as one product: lime on black, Oswald
   display, zero radius. Do not "soften" the radius — the square corner is the
   brand.
   ========================================================================== */

:root {
  /* Neutral ramp — true neutral, no blue cast */
  --rg-bg:        #0a0a0a;   /* neutral.950 — page */
  --rg-bg-2:      #0d0d0d;   /* banded sections */
  --rg-surface:   #131313;   /* cards */
  --rg-surface-2: #171717;   /* neutral.900 — elevated */
  --rg-surface-3: #1f1f1f;   /* hover */
  --rg-line:      #262626;   /* neutral.800 — hairlines */
  --rg-line-2:    #383838;   /* stronger borders */

  --rg-ink:       #fafafa;   /* neutral.50 — headings */
  --rg-text:      #e5e5e5;   /* neutral.200 — body */
  --rg-muted:     #a3a3a3;   /* neutral.400 */
  --rg-dim:       #8a8a8a;   /* lifted off neutral.500 — 11px mono labels
                                need 4.5:1 on #0a0a0a, and #737373 lands at 4.2 */

  /* Brand */
  --rg-lime:      #a3e635;   /* lime.400 — primary */
  --rg-lime-300:  #bef264;
  --rg-lime-500:  #84cc16;
  --rg-lime-600:  #65a30d;
  --rg-lime-950:  #1a2e05;

  /* States */
  --rg-red:       #f87171;
  --rg-amber:     #facc15;
  --rg-cyan:      #67e8f9;

  --rg-font-display: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --rg-font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --rg-font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --rg-max: 1240px;
  --rg-nav-h: 72px;

  /* One control height everywhere — the same rule the admin app follows.
     No thin selects, no thin buttons; a 44px target works with a thumb. */
  --rg-control-h: 44px;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--rg-nav-h) + 24px); }

body {
  background: var(--rg-bg);
  color: var(--rg-text);
  font-family: var(--rg-font-body);
  -webkit-font-smoothing: antialiased;
  /* `clip`, not `hidden`: hidden would make <body> a scroll container and
     silently break every position:sticky on the site. */
  overflow-x: clip;
}

::selection { background: var(--rg-lime); color: var(--rg-bg); }

/* A single scrollbar treatment, so the dark page doesn't get a bright gutter. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #2a2a2a; }
::-webkit-scrollbar-thumb:hover { background: var(--rg-lime-600); }

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

/* ── Type ─────────────────────────────────────────────────────────────────── */

.rg-display,
.rg-h1, .rg-h2, .rg-h3, .rg-h4 {
  font-family: var(--rg-font-display);
  font-weight: 600;
  color: var(--rg-ink);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
  text-wrap: balance;
}

.rg-h1 { font-size: clamp(2.6rem, 6.2vw, 5.1rem); font-weight: 700; }
.rg-h2 { font-size: clamp(2rem, 3.9vw, 3.1rem); }
.rg-h3 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); line-height: 1.06; }
.rg-h4 { font-size: 1.0625rem; line-height: 1.2; letter-spacing: 0.02em; }

/* Sentence-case display type, for the places where all caps would shout. */
.rg-h1.is-sentence, .rg-h2.is-sentence, .rg-h3.is-sentence { text-transform: none; letter-spacing: -0.01em; }

.rg-lead {
  font-size: clamp(1rem, 1.15vw, 1.1875rem);
  line-height: 1.65;
  color: var(--rg-muted);
  text-wrap: pretty;
}

.rg-body { line-height: 1.7; color: var(--rg-muted); }

.rg-mono {
  font-family: var(--rg-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rg-hl { color: var(--rg-lime); }

/* Lime underline that draws itself in — used on one phrase per hero. */
.rg-mark {
  position: relative;
  white-space: nowrap;
}
.rg-mark::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.09em;
  background: var(--rg-lime);
  transform-origin: left;
  animation: rg-draw 900ms 500ms cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rg-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Layout ───────────────────────────────────────────────────────────────── */

.rg-container { width: 100%; max-width: var(--rg-max); margin-inline: auto; padding-inline: 1.25rem; }
.rg-section   { padding-block: clamp(4rem, 8vw, 7.5rem); }
.rg-section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }

/* ── Eyebrow ──────────────────────────────────────────────────────────────── */

.rg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--rg-font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rg-lime);
  margin: 0 0 1.1rem;
}
.rg-eyebrow__tick { width: 1.75rem; height: 1px; background: var(--rg-lime); flex: none; }
.rg-eyebrow__idx  { color: var(--rg-dim); }
.rg-eyebrow--muted { color: var(--rg-muted); }
.rg-eyebrow--muted .rg-eyebrow__tick { background: var(--rg-line-2); }

/* ── Corner-bracket frame ─────────────────────────────────────────────────── */
/* Four L-shaped brackets, like a target frame in a viewfinder. They sit on the
   card's own corners and only light up on hover so a grid of them stays calm. */

.rg-frame { position: relative; }
.rg-frame__c {
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--rg-lime);
  opacity: 0;
  transition: opacity .25s ease, width .25s ease, height .25s ease;
  pointer-events: none;
}
.rg-frame__c--tl { top: -1px; left: -1px;  border-right: 0; border-bottom: 0; }
.rg-frame__c--tr { top: -1px; right: -1px; border-left: 0;  border-bottom: 0; }
.rg-frame__c--bl { bottom: -1px; left: -1px;  border-right: 0; border-top: 0; }
.rg-frame__c--br { bottom: -1px; right: -1px; border-left: 0;  border-top: 0; }
.rg-frame:hover .rg-frame__c,
.rg-frame:focus-within .rg-frame__c { opacity: 1; width: 16px; height: 16px; }
.rg-frame.is-lit .rg-frame__c { opacity: 1; }

/* ── Surfaces ─────────────────────────────────────────────────────────────── */

.rg-card {
  position: relative;
  background: var(--rg-surface);
  border: 1px solid var(--rg-line);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.rg-card:hover { border-color: var(--rg-line-2); background: var(--rg-surface-2); }
.rg-card--flat { background: transparent; }
.rg-card--lit  { border-color: rgba(163,230,53,.45); background: linear-gradient(180deg, rgba(163,230,53,.05), transparent 55%), var(--rg-surface); }

.rg-panel {
  background: var(--rg-surface-2);
  border: 1px solid var(--rg-line);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.rg-btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--rg-font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .08s ease;
  white-space: nowrap;
  min-height: var(--rg-control-h);
}
.rg-btn:active { transform: translateY(1px); }

.rg-btn--primary {
  background: var(--rg-lime);
  color: #0a0a0a;
  box-shadow: 0 0 0 0 rgba(163,230,53,.5);
}
.rg-btn--primary:hover { background: var(--rg-lime-300); box-shadow: 0 0 26px -6px rgba(163,230,53,.65); }

.rg-btn--ghost {
  border-color: var(--rg-line-2);
  color: var(--rg-ink);
  background: rgba(255,255,255,.02);
}
.rg-btn--ghost:hover { border-color: var(--rg-lime); color: var(--rg-lime); background: rgba(163,230,53,.06); }

.rg-btn--quiet { color: var(--rg-muted); padding-inline: 0.25rem; }
.rg-btn--quiet:hover { color: var(--rg-lime); }

.rg-btn--sm { padding: 0.6rem 1.05rem; font-size: 0.8125rem; }
.rg-btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.rg-btn--block { width: 100%; }

/* Arrow nudge — a small, consistent motion cue on every forward action. */
.rg-btn svg { transition: transform .2s ease; }
.rg-btn:hover svg { transform: translateX(3px); }

/* ── Rules and textures ───────────────────────────────────────────────────── */

/* A ranging ruler: major ticks every 5th mark. Used as a section divider. */
.rg-tickrule {
  height: 10px;
  background-image:
    repeating-linear-gradient(to right, var(--rg-line) 0 1px, transparent 1px 12px);
  background-position: bottom;
  background-repeat: repeat-x;
  border-bottom: 1px solid var(--rg-line);
  opacity: .9;
}

.rg-hairline { height: 1px; background: var(--rg-line); border: 0; }

/* Faint survey grid, sits behind hero and band content. */
.rg-gridlines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 35%, transparent 100%);
  pointer-events: none;
}

/* Scanline film, keeps large flat blacks from banding. */
.rg-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.014) 0 1px, transparent 1px 3px);
  pointer-events: none;
  opacity: .6;
}

/* ── Reticle ──────────────────────────────────────────────────────────────── */
/* The hero's scope overlay: concentric rings with ranging hashes, drifting
   very slowly so it feels alive without ever asking for attention. */

.rg-reticle { pointer-events: none; }
.rg-reticle .ring   { animation: rg-breathe 9s ease-in-out infinite; transform-origin: center; }
.rg-reticle .ring-2 { animation-duration: 12s; animation-direction: reverse; }
.rg-reticle .spin   { animation: rg-spin 60s linear infinite; transform-origin: center; }
@keyframes rg-breathe { 0%,100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.035); opacity: .85; } }
@keyframes rg-spin { to { transform: rotate(360deg); } }

/* ── Header ───────────────────────────────────────────────────────────────── */

#rg-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--rg-nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
#rg-header.is-stuck {
  background: rgba(10,10,10,.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--rg-line);
}

.rg-navlink {
  position: relative;
  padding: 0.55rem 0.9rem;
  font-family: var(--rg-font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rg-muted);
  transition: color .18s ease;
}
.rg-navlink:hover { color: var(--rg-ink); }
.rg-navlink::after {
  content: '';
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.15rem;
  height: 2px;
  background: var(--rg-lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.rg-navlink:hover::after { transform: scaleX(1); }
.rg-navlink.is-active { color: var(--rg-ink); }
.rg-navlink.is-active::after { transform: scaleX(1); }

/* Mobile menu — a full-bleed panel, not a dropdown. */
#rg-mobile {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  background: #060606;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
#rg-mobile.is-open { opacity: 1; visibility: visible; transform: none; }
body.rg-locked { overflow: hidden; }

.rg-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rg-line);
  font-family: var(--rg-font-display);
  font-size: 1.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--rg-muted);
  transition: color .18s ease, padding-left .18s ease;
}
.rg-mobile-link:hover, .rg-mobile-link.is-active { color: var(--rg-lime); padding-left: .5rem; }

.rg-burger span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .2s ease, width .3s ease;
}
.rg-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.rg-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.rg-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.rg-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #000;
}
.rg-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* The stock range photography is bright daylight; without a hard grade it
     fights the lime. Desaturate, crush, then tint back toward the brand. */
  filter: grayscale(.68) contrast(1.15) brightness(.5);
  transform: scale(1.04);
  z-index: -3;
}
.rg-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, #0a0a0a 8%, rgba(10,10,10,.92) 34%, rgba(10,10,10,.55) 62%, rgba(10,10,10,.8) 100%),
    linear-gradient(to top, #0a0a0a 2%, transparent 45%);
}
.rg-hero__glow {
  position: absolute;
  z-index: -1;
  inset: auto -10% -40% 30%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(163,230,53,.16), transparent 62%);
  pointer-events: none;
}

/* ── Stat row ─────────────────────────────────────────────────────────────── */

.rg-statrail > * { border-left: 1px solid var(--rg-line); }
.rg-statrail > *:nth-child(odd)  { border-left: 0; }
.rg-statrail > *:nth-child(n+3)  { border-top: 1px solid var(--rg-line); }
@media (min-width: 768px) {
  .rg-statrail > *       { border-left: 1px solid var(--rg-line); border-top: 0; }
  .rg-statrail > *:first-child { border-left: 0; }
}


.rg-stat__num {
  font-family: var(--rg-font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--rg-lime);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rg-stat__label {
  font-family: var(--rg-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rg-dim);
  margin-top: 0.55rem;
}

/* ── Lane board mockup ────────────────────────────────────────────────────── */
/* A live floor view, rendered in markup rather than a screenshot: it stays
   crisp at any width, restyles with the tokens, and can animate. */

.rg-board {
  background: linear-gradient(180deg, #121212, #0d0d0d);
  border: 1px solid var(--rg-line);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.95);
}
.rg-board__bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--rg-line);
  background: #0d0d0d;
}
.rg-board__dot { width: 9px; height: 9px; border-radius: 50%; background: #2a2a2a; }

.rg-lane {
  position: relative;
  padding: .85rem .85rem .9rem;
  background: var(--rg-surface);
  border: 1px solid var(--rg-line);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.rg-lane:hover { transform: translateY(-2px); border-color: var(--rg-line-2); }
.rg-lane::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--lane-accent, var(--rg-line-2));
}
.rg-lane__id {
  font-family: var(--rg-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--rg-ink);
  letter-spacing: .04em;
}
.rg-lane__who { font-size: .75rem; color: var(--rg-muted); }
.rg-lane__meta {
  font-family: var(--rg-font-mono);
  font-size: .5625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rg-dim);
}
.rg-lane--live     { --lane-accent: var(--rg-lime); }
.rg-lane--live     .rg-lane__id { color: var(--rg-lime); }
.rg-lane--pending  { --lane-accent: var(--rg-amber); }
.rg-lane--overdue  { --lane-accent: var(--rg-red); }
.rg-lane--reset    { --lane-accent: var(--rg-cyan); }
.rg-lane--idle     { --lane-accent: #2f2f2f; opacity: .72; }

.rg-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .18rem .45rem;
  font-family: var(--rg-font-mono);
  font-size: .5625rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  line-height: 1;
}
.rg-pill--live    { color: var(--rg-lime); }
.rg-pill--pending { color: var(--rg-amber); }
.rg-pill--overdue { color: var(--rg-red); }
.rg-pill--reset   { color: var(--rg-cyan); }
.rg-pill--idle    { color: var(--rg-dim); }

/* Timer digits tick over on the live lanes so the board reads as running. */
.rg-tick { font-family: var(--rg-font-mono); font-variant-numeric: tabular-nums; }

.rg-blink { position: relative; }
.rg-blink::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-right: .35rem;
  animation: rg-pulse 1.8s ease-in-out infinite;
}
@keyframes rg-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ── Utilisation bars ─────────────────────────────────────────────────────── */

.rg-bar { height: 6px; background: var(--rg-line); overflow: hidden; }
.rg-bar > i { display: block; height: 100%; background: var(--rg-lime); width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.is-revealed .rg-bar > i { width: var(--w, 0%); }

/* ── Comparison table ─────────────────────────────────────────────────────── */

.rg-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.rg-table th, .rg-table td { padding: .95rem 1rem; border-bottom: 1px solid var(--rg-line); text-align: left; vertical-align: middle; }
.rg-table thead th {
  font-family: var(--rg-font-mono);
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rg-dim);
  border-bottom-color: var(--rg-line-2);
  white-space: nowrap;
}
.rg-table tbody tr:hover td { background: rgba(255,255,255,.018); }
.rg-table td:first-child { color: var(--rg-text); font-weight: 500; }
.rg-table .col-us { background: rgba(163,230,53,.045); border-inline: 1px solid rgba(163,230,53,.22); }
.rg-table thead .col-us { color: var(--rg-lime); border-top: 1px solid rgba(163,230,53,.22); }
.rg-table tbody tr:last-child .col-us { border-bottom: 1px solid rgba(163,230,53,.22); }

/* ── Accordion ────────────────────────────────────────────────────────────── */

.rg-acc { border-bottom: 1px solid var(--rg-line); }
.rg-acc__btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  text-align: left;
  font-family: var(--rg-font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--rg-ink);
  cursor: pointer;
  transition: color .18s ease;
}
.rg-acc__btn:hover { color: var(--rg-lime); }
.rg-acc__icon { flex: none; color: var(--rg-lime); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.rg-acc.is-open .rg-acc__icon { transform: rotate(45deg); }
.rg-acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2,.8,.2,1); }
.rg-acc.is-open .rg-acc__body { grid-template-rows: 1fr; }
.rg-acc__inner { overflow: hidden; }
.rg-acc__inner > div { padding-bottom: 1.35rem; color: var(--rg-muted); line-height: 1.7; max-width: 62ch; }

/* ── Forms ────────────────────────────────────────────────────────────────── */

.rg-field { display: block; }
.rg-label {
  display: block;
  font-family: var(--rg-font-mono);
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rg-muted);
  margin-bottom: .5rem;
}
.rg-label .req { color: var(--rg-lime); }

.rg-input, .rg-select, .rg-textarea {
  width: 100%;
  min-height: var(--rg-control-h);
  padding: .8rem .9rem;
  background: #101010;
  border: 1px solid var(--rg-line-2);
  color: var(--rg-ink);
  font-family: var(--rg-font-body);
  font-size: .9375rem;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.rg-input::placeholder, .rg-textarea::placeholder { color: #5a5a5a; }
.rg-input:focus, .rg-select:focus, .rg-textarea:focus {
  outline: none;
  border-color: var(--rg-lime);
  background: #131313;
  box-shadow: 0 0 0 3px rgba(163,230,53,.12);
}
.rg-input.is-invalid, .rg-select.is-invalid { border-color: var(--rg-red); }
.rg-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='1.5'%3E%3Cpath d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1.1rem;
  padding-right: 2.4rem;
}
.rg-hint { font-size: .75rem; color: var(--rg-dim); margin-top: .4rem; line-height: 1.5; }
.rg-error { font-size: .75rem; color: var(--rg-red); margin-top: .4rem; }

/* Subdomain composite: the input and its fixed suffix read as one control. */
.rg-slug { display: flex; align-items: stretch; min-height: var(--rg-control-h); border: 1px solid var(--rg-line-2); background: #101010; transition: border-color .18s ease, box-shadow .18s ease; }
.rg-slug:focus-within { border-color: var(--rg-lime); box-shadow: 0 0 0 3px rgba(163,230,53,.12); }
.rg-slug input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .8rem .9rem; color: var(--rg-ink); font-size: .9375rem; }
.rg-slug input:focus { outline: none; }
.rg-slug__suffix {
  display: flex; align-items: center;
  padding: 0 .9rem;
  background: #171717;
  border-left: 1px solid var(--rg-line-2);
  font-family: var(--rg-font-mono);
  font-size: .75rem;
  color: var(--rg-muted);
  white-space: nowrap;
}

.rg-check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; }
.rg-check input { appearance: none; flex: none; width: 18px; height: 18px; margin-top: 2px; border: 1px solid var(--rg-line-2); background: #101010; cursor: pointer; transition: background .15s, border-color .15s; }
.rg-check input:checked { background: var(--rg-lime); border-color: var(--rg-lime); }
.rg-check input:checked::after { content: ''; display: block; width: 5px; height: 9px; margin: 1px auto 0; border: solid #0a0a0a; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rg-check span { font-size: .8125rem; color: var(--rg-muted); line-height: 1.55; }

/* Plan picker — radio cards */
.rg-plan { position: relative; cursor: pointer; }
.rg-plan input { position: absolute; opacity: 0; pointer-events: none; }
.rg-plan__box {
  border: 1px solid var(--rg-line-2);
  background: #101010;
  padding: .9rem;
  transition: border-color .18s ease, background .18s ease;
  height: 100%;
}
.rg-plan:hover .rg-plan__box { border-color: #4a4a4a; }
.rg-plan input:checked + .rg-plan__box { border-color: var(--rg-lime); background: rgba(163,230,53,.07); }
.rg-plan input:focus-visible + .rg-plan__box { outline: 2px solid var(--rg-lime); outline-offset: 2px; }

/* ── Alerts ───────────────────────────────────────────────────────────────── */

.rg-alert { border: 1px solid; padding: .85rem 1rem; font-size: .875rem; display: flex; gap: .65rem; align-items: flex-start; }
.rg-alert--error { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.08); color: #fca5a5; }
.rg-alert--ok    { border-color: rgba(163,230,53,.4);  background: rgba(163,230,53,.08);  color: var(--rg-lime-300); }

/* ── Spinner ──────────────────────────────────────────────────────────────── */

.rg-spin { width: 15px; height: 15px; border: 2px solid rgba(10,10,10,.25); border-top-color: #0a0a0a; border-radius: 50%; animation: rg-rot .7s linear infinite; }
@keyframes rg-rot { to { transform: rotate(360deg); } }

/* ── Pricing ──────────────────────────────────────────────────────────────── */

.rg-tier { position: relative; display: flex; flex-direction: column; background: var(--rg-surface); border: 1px solid var(--rg-line); padding: 2rem 1.75rem; transition: border-color .25s ease, transform .25s ease; }
.rg-tier:hover { border-color: var(--rg-line-2); }
.rg-tier--featured {
  border-color: var(--rg-lime);
  background: linear-gradient(180deg, rgba(163,230,53,.075), transparent 45%), var(--rg-surface-2);
  box-shadow: 0 0 60px -28px rgba(163,230,53,.55);
}
.rg-tier__badge {
  position: absolute;
  top: 0; left: 0;
  transform: translateY(-50%);
  margin-left: 1.75rem;
  background: var(--rg-lime);
  color: #0a0a0a;
  font-family: var(--rg-font-mono);
  font-size: .5625rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .35rem .6rem;
  line-height: 1;
}
.rg-price { font-family: var(--rg-font-display); font-size: 3.25rem; font-weight: 700; color: var(--rg-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.rg-price__per { font-family: var(--rg-font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rg-dim); }

.rg-feat { display: flex; gap: .65rem; align-items: flex-start; font-size: .875rem; color: var(--rg-muted); line-height: 1.5; }
.rg-feat svg { flex: none; color: var(--rg-lime); margin-top: 1px; }
.rg-feat--off { color: #5a5a5a; }
.rg-feat--off svg { color: #3a3a3a; }

/* Billing toggle */
.rg-toggle { display: inline-flex; border: 1px solid var(--rg-line-2); background: #101010; padding: 3px; }
.rg-toggle button {
  min-height: calc(var(--rg-control-h) - 6px);
  padding: .5rem 1.1rem;
  font-family: var(--rg-font-mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rg-muted);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.rg-toggle button.is-on { background: var(--rg-lime); color: #0a0a0a; font-weight: 700; }

/* ── Steps ────────────────────────────────────────────────────────────────── */

.rg-step__num {
  font-family: var(--rg-font-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--rg-line-2);
  transition: -webkit-text-stroke-color .3s ease, color .3s ease;
}
.rg-step:hover .rg-step__num { -webkit-text-stroke-color: var(--rg-lime); }

/* ── Marquee ──────────────────────────────────────────────────────────────── */
/* The "what it replaces" ticker. Duplicated content + 50% translate = a seam
   that never shows. */

.rg-marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.rg-marquee__track { display: flex; width: max-content; animation: rg-slide 42s linear infinite; }
.rg-marquee:hover .rg-marquee__track { animation-play-state: paused; }
@keyframes rg-slide { to { transform: translateX(-50%); } }

/* ── Reveal on scroll ─────────────────────────────────────────────────────── */

.rg-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.rg-reveal.is-revealed { opacity: 1; transform: none; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.rg-footlink { font-size: .875rem; color: var(--rg-muted); transition: color .18s ease, padding-left .18s ease; display: inline-block; }
.rg-footlink:hover { color: var(--rg-lime); padding-left: 3px; }

/* ── Prose (legal pages) ──────────────────────────────────────────────────── */

.rg-prose { max-width: 70ch; color: var(--rg-muted); line-height: 1.75; }
.rg-prose h2 { font-family: var(--rg-font-display); text-transform: uppercase; color: var(--rg-ink); font-size: 1.25rem; margin: 2.5rem 0 .75rem; letter-spacing: .02em; }
.rg-prose p { margin-bottom: 1rem; }
.rg-prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.rg-prose li { margin-bottom: .4rem; }
.rg-prose a { color: var(--rg-lime); text-decoration: underline; text-underline-offset: 3px; }

/* ── Motion preferences ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rg-reveal { opacity: 1; transform: none; }
  .rg-mark::after { transform: none; }
}
