/* ═══════════════════════════════════════════════════════════════
   V2 PRIVATE NOTIFIER — the front door.

   The product detects presence: it says the moment a watched player
   walks into the game. So the page is built as a watchlist — rows and
   rules, not a deck of cards — and the one loud thing on it is a row
   flipping to live.

   Dark first. The five sage tones are muted and slightly chalky, which
   makes them mediocre as ink on white and excellent as light in the
   dark: on a near-black olive ground they read as glow rather than
   paint. Two large blurred blobs drift behind the page and a third
   follows the cursor, so the ground is never flat.

   Palette      the five sages, plus a ground dark enough to glow on.
                There is deliberately no alert colour: "live" is shown
                by inverting a row, so the signal is the loudest thing
                on the page without leaving the palette.
   Type         Space Grotesk (display) · Inter (prose) · JetBrains
                Mono, used only where the content is literally data —
                usernames, commands, prices.
   Motion       the drifting aura, the cursor glow, and the presence
                dot. All three stop under prefers-reduced-motion.
   Light        an override for visitors whose system asks for it; the
                same layout with the glow dialled down to a tint.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* The five, unchanged. */
  --olive: #73877b;
  --teal: #839788;
  --silver: #bdbbb6;
  --blush: #e5d1d0;
  --petal: #f5e4d7;

  /* Ground. Near-black, pulled toward the olive so the page reads as
     the same family rather than as generic charcoal. */
  --bg: #0f1412;
  --panel: rgba(245, 228, 215, 0.045);
  --panel-solid: #171d1a;

  /* Text. Petal at the top of the hierarchy, thinned downward — never
     greyed, which would drop the palette on the floor. */
  --ink: #f5e4d7;
  --ink-soft: #c5cbc3;
  --ink-faint: #97a29a;

  --rule: rgba(245, 228, 215, 0.14);
  --rule-soft: rgba(245, 228, 215, 0.07);

  /* The aura. Sage light on a dark ground. */
  --aura-1: var(--olive);
  --aura-2: var(--teal);
  --aura-opacity: 0.42;
  --aura-blur: 130px;
  --cursor-glow: rgba(131, 151, 136, 0.28);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --measure: 58ch;
  --gutter: clamp(20px, 5vw, 48px);

  color-scheme: dark;
}

/* Light is an override, not the base — a visitor whose system asks for
   it gets the same page with the glow dialled back to a tint. */
  :root[data-theme="light"] {
    --bg: #f5e4d7;
    --panel: #faefe6;
    --panel-solid: #faefe6;

    --ink: #1e2620;
    --ink-soft: #3f4b43;
    --ink-faint: #5b6a61;   /* 4.6:1 on petal — the lightest that still passes AA */

    --rule: rgba(30, 38, 32, 0.14);
    --rule-soft: rgba(30, 38, 32, 0.07);

    --aura-1: var(--blush);
    --aura-2: var(--teal);
    --aura-opacity: 0.5;
    --aura-blur: 120px;
    --cursor-glow: rgba(131, 151, 136, 0.2);

    color-scheme: light;
  }

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

::selection { background: var(--petal); color: #0f1412; }

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

/* ═══ THE AURA ═══════════════════════════════════════════════
   Two slow blobs behind everything, plus one that follows the
   pointer. Fixed, so the light stays put while the page scrolls past
   it — the page moves, the room does not.
   ════════════════════════════════════════════════════════════ */

.aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aura span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(var(--aura-blur));
  opacity: var(--aura-opacity);
}

.aura .a1 {
  width: 46vw;
  min-width: 320px;
  aspect-ratio: 1;
  background: var(--aura-1);
  top: -16vh;
  right: -8vw;
  animation: drift 26s ease-in-out infinite alternate;
}

.aura .a2 {
  width: 38vw;
  min-width: 280px;
  aspect-ratio: 1;
  background: var(--aura-2);
  bottom: -18vh;
  left: -10vw;
  animation: drift 34s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-6vw, 7vh, 0) scale(1.22); }
}

/* Follows the pointer. Positioned by landing.js; hidden until it has
   somewhere real to be, and never shown to a touch device. */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--cursor-glow), transparent);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}

.cursor-glow.on { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* Everything readable sits above the light. */
.masthead, main, .closer, .foot { position: relative; z-index: 1; }

.wrap {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ═══ MASTHEAD ═══════════════════════════════════════════════ */

.masthead { border-bottom: 1px solid var(--rule); }

.masthead-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.wordmark {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.wordmark b { font-weight: 600; }
.wordmark span { color: var(--ink-faint); font-weight: 400; }

.masthead nav { display: flex; gap: 22px; font-size: 14px; }

.masthead nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.16s, border-color 0.16s;
}

.masthead nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ═══ HERO ═══════════════════════════════════════════════════ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding: clamp(56px, 10vw, 104px) 0 clamp(48px, 8vw, 88px);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6.4vw, 4.15rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.14rem);
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* ═══ THE WATCHLIST — the hero object ════════════════════════ */

.watch {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.watch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}

.watch-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 13px;
}

.watch-row:last-of-type { border-bottom: 0; }

.watch-row .who {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-row .what {
  color: var(--ink-faint);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-row .state {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.dot {
  position: relative;   /* the pulse below is absolutely placed against this */
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  flex: none;
}

/* The one loud thing on the page. In the dark the row lights up rather
   than blacking out — the inversion flips with the ground, but it is
   the same idea: the live row is the opposite of everything near it,
   and it needs no colour of its own to shout. */
.watch-row.is-live {
  background: var(--petal);
  color: #0f1412;
  border-bottom-color: transparent;
}

.watch-row.is-live .who   { color: #0f1412; }
.watch-row.is-live .what  { color: rgba(15, 20, 18, 0.74); }  /* 0.62 measured 4.1:1 — under the floor */
.watch-row.is-live .state { color: #0f1412; }
.watch-row.is-live .dot   { background: #0f1412; }

.watch-row.is-live .dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #0f1412;
  animation: pulse 1.8s ease-out infinite;
}

  :root[data-theme="light"] .watch-row.is-live { background: var(--ink); color: var(--petal); }
  :root[data-theme="light"] .watch-row.is-live .who, :root[data-theme="light"] .watch-row.is-live .state { color: var(--petal); }
  :root[data-theme="light"] .watch-row.is-live .what { color: rgba(245, 228, 215, 0.65); }
  :root[data-theme="light"] .watch-row.is-live .dot, :root[data-theme="light"] .watch-row.is-live .dot::after { background: var(--petal); }

@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.75; }
  70%  { transform: scale(3.4); opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}

.watch-foot {
  padding: 11px 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}

/* ═══ SECTIONS ═══════════════════════════════════════════════ */

.band {
  border-top: 1px solid var(--rule);
  padding: clamp(52px, 8vw, 84px) 0;
}

.band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--ink);
}

.band-intro {
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 38px;
}

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

/* ═══ COMMANDS ═══════════════════════════════════════════════ */

.commands { border-top: 1px solid var(--rule); }

.command {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 10px 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.command code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.command p { margin: 0; color: var(--ink-soft); max-width: 52ch; }

/* ═══ PRICING ════════════════════════════════════════════════ */

.tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.tier {
  background: var(--panel-solid);
  padding: clamp(24px, 3.4vw, 34px);
}

.tier-cap {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin: 0 0 14px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 4px;
  color: var(--ink);
}

.price small {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-faint);
}

.tier ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule-soft);
}

.tier li {
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14.5px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.tier li:last-child { border-bottom: 0; }

.tier li b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--ink);
  text-align: right;
}

.notes {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: var(--measure);
}

.notes li {
  padding-left: 18px;
  position: relative;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--olive);
}

/* ═══ HOW IT WORKS ═══════════════════════════════════════════ */

/* Genuinely a sequence, so it genuinely gets numbers. */
.steps {
  counter-reset: step;
  border-top: 1px solid var(--rule);
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.step::before {
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
}

.step h3 {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.step p { margin: 0; color: var(--ink-soft); max-width: 56ch; font-size: 14.5px; }

/* ═══ CLOSER ═════════════════════════════════════════════════ */

.closer {
  border-top: 1px solid var(--rule);
  padding: clamp(52px, 8vw, 84px) 0;
}

.closer h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 12px;
  max-width: 20ch;
  color: var(--ink);
}

.closer p { color: var(--ink-soft); max-width: 46ch; margin: 0 0 30px; }

/* ═══ FOOTER ═════════════════════════════════════════════════ */

.foot {
  border-top: 1px solid var(--rule);
  margin-top: 0;
  padding: 26px 0 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-faint);
}

.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }

.link-plain {
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: border-color 0.16s, color 0.16s;
}

.link-plain:hover { border-bottom-color: var(--ink); color: var(--ink); }

/* ═══ THE GLITCH ACTION ══════════════════════════════════════
   The app's signature button, carried across. The overlay's label
   comes from data-text in the markup, so the effect needs no
   JavaScript of its own.
   ════════════════════════════════════════════════════════════ */

.g-btn,
.g-btn::after {
  display: inline-grid;
  place-items: center;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(45deg, transparent 5%, var(--petal) 5%);
  color: #0f1412;
  border: 0;
  border-radius: 0;
  box-shadow: 5px 0 0 var(--olive);
  outline: transparent;
  position: relative;
  cursor: pointer;
}

.g-btn::after {
  --slice-0: inset(50% 50% 50% 50%);
  --slice-1: inset(80% -6px 0 0);
  --slice-2: inset(50% -6px 30% 0);
  --slice-3: inset(10% -6px 85% 0);
  --slice-4: inset(40% -6px 43% 0);
  --slice-5: inset(80% -6px 5% 0);
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 3%, var(--olive) 3%, var(--olive) 5%, var(--petal) 5%);
  text-shadow: -3px -3px 0 var(--blush), 3px 3px 0 var(--olive);
  clip-path: var(--slice-0);
  box-shadow: none;
}

.g-btn:hover::after {
  animation: 1s glitch;
  animation-timing-function: steps(2, end);
}

.g-btn:active { transform: translateY(1px); }
.g-btn:not([data-text])::after { content: none; }

/* Secondary — rysmm.com. Same slice geometry and the same glitch, but
   outlined, so the two actions do not compete for the same attention. */
.g-btn-ghost,
.g-btn-ghost::after {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule), 5px 0 0 rgba(115, 135, 123, 0.4);
}

.g-btn-ghost::after {
  background: linear-gradient(45deg, transparent 3%, var(--olive) 3%, var(--olive) 5%, transparent 5%);
  text-shadow: -2px -2px 0 var(--teal), 2px 2px 0 var(--olive);
  box-shadow: none;
}

.g-btn-ghost:hover { color: var(--petal); }

  :root[data-theme="light"] .g-btn, :root[data-theme="light"] .g-btn::after {
    background: linear-gradient(45deg, transparent 5%, var(--ink) 5%);
    color: var(--petal);
  }
  :root[data-theme="light"] .g-btn::after {
    background: linear-gradient(45deg, transparent 3%, var(--olive) 3%, var(--olive) 5%, var(--ink) 5%);
  }
  :root[data-theme="light"] .g-btn-ghost, :root[data-theme="light"] .g-btn-ghost::after { background: transparent; color: var(--ink); }
  :root[data-theme="light"] .g-btn-ghost::after {
    background: linear-gradient(45deg, transparent 3%, var(--olive) 3%, var(--olive) 5%, transparent 5%);
  }
  :root[data-theme="light"] .g-btn-ghost:hover { color: var(--ink); }

@keyframes glitch {
  0%   { clip-path: var(--slice-1); transform: translate(-20px, -10px); }
  10%  { clip-path: var(--slice-3); transform: translate(10px, 10px); }
  20%  { clip-path: var(--slice-1); transform: translate(-10px, 10px); }
  30%  { clip-path: var(--slice-3); transform: translate(0px, 5px); }
  40%  { clip-path: var(--slice-2); transform: translate(-5px, 0px); }
  50%  { clip-path: var(--slice-3); transform: translate(5px, 0px); }
  60%  { clip-path: var(--slice-4); transform: translate(5px, 10px); }
  70%  { clip-path: var(--slice-2); transform: translate(-10px, 10px); }
  80%  { clip-path: var(--slice-5); transform: translate(20px, -10px); }
  90%  { clip-path: var(--slice-1); transform: translate(-10px, 0px); }
  100% { clip-path: var(--slice-1); transform: translate(0); }
}

/* ═══ RESPONSIVE ═════════════════════════════════════════════ */

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .command { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

@media (max-width: 560px) {
  .masthead nav { gap: 16px; font-size: 13px; }
  .watch-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 3px; }
  .watch-row .what { grid-column: 1 / -1; }
  .hero-actions { gap: 14px; }
  .g-btn, .g-btn::after { padding: 12px 18px; font-size: 13px; }
  .aura { --aura-blur: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .g-btn:hover::after { animation: none; clip-path: var(--slice-0); }
  .watch-row.is-live .dot::after { animation: none; opacity: 0; }
  .aura span { animation: none; }
  .cursor-glow { display: none; }
}
