/* ==========================================================================
   formuvet.com/rounds — the Rounds app page
   Loaded ONLY by rounds.html, and scoped to body.rounds-app with an `rp-`
   prefix. style.css and rounds.css are shared with the home page, MediShift
   and the legal pages, so nothing here may change them.
   The palette is the app's dark theme and its Play Store set: deep navy,
   lime #EEFF3F, Raleway for display and Inter for text.
   ========================================================================== */

body.rounds-app {
  --rp-bg: #060d17;
  --rp-bg-2: #0a1424;
  --rp-panel: rgba(148, 170, 220, 0.045);
  --rp-card: #0b1322;
  --rp-line: rgba(148, 170, 220, 0.14);
  --rp-line-2: rgba(148, 170, 220, 0.26);
  --rp-ink: #f5f7ff;
  --rp-ink-2: #b3bfd6;
  --rp-ink-3: #7f8ca6;
  --rp-lime: #eeff3f;
  --rp-lime-rgb: 238, 255, 63;
  --rp-on-lime: #0b1220;
  --rp-blue: #4b83f2;
  --rp-display: 'Raleway', 'Inter', system-ui, sans-serif;
  --rp-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --color-green: var(--rp-lime); /* footer links in rounds.css */
  background: var(--rp-bg);
  color: var(--rp-ink);
  font-family: var(--rp-text);
}

/* position: sticky needs the viewport as its scrollport; `overflow-x: hidden` on body
   (style.css) makes body a scroll container of its own. `clip` cuts the same overflow without that. */
@supports (overflow: clip) {
  body.rounds-app { overflow-x: clip !important; }
}
html:has(body.rounds-app) { scroll-padding-top: 84px; }

/* the dot grid of the Play slides, plus two quiet glows (replaces style.css's pattern + mesh) */
body.rounds-app::before {
  background-image: radial-gradient(rgba(148, 170, 220, 0.12) 1px, transparent 1.3px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 10%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 10%, transparent 80%);
}
body.rounds-app::after {
  animation: none;
  background:
    radial-gradient(ellipse 60% 50% at 85% 8%, rgba(59, 108, 240, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 8% 60%, rgba(21, 168, 153, 0.07), transparent 70%);
}

.rounds-app ::selection { background: rgba(var(--rp-lime-rgb), 0.85); color: var(--rp-on-lime); }
.rp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rp-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.rp-main { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ nav */
.rp-nav { transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease; }
.rp-nav.is-scrolled {
  background: rgba(6, 13, 23, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--rp-line);
  padding-top: 10px;
  padding-bottom: 10px;
}
.rp-nav__back { gap: 10px; color: var(--rp-ink); text-decoration: none; font-family: var(--rp-text); }
.rp-nav__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  border: 1px solid var(--rp-line-2); background: rgba(255, 255, 255, 0.04);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, color 0.2s ease;
}
.rp-nav__back:hover .rp-nav__arrow { transform: translateX(-3px); border-color: rgba(var(--rp-lime-rgb), 0.5); color: var(--rp-lime); }
.rp-nav__links { display: flex; align-items: center; gap: 4px; }
.rp-nav__links a {
  color: var(--rp-ink-2); font-size: 0.9rem; font-weight: 600; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; transition: color 0.2s ease, background 0.2s ease;
}
.rp-nav__links a:hover { color: var(--rp-ink); background: rgba(255, 255, 255, 0.05); }
.rp-nav__links .rp-nav__get {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 8px;
  background: var(--rp-lime); color: var(--rp-on-lime); padding: 9px 16px;
  box-shadow: 0 6px 24px rgba(var(--rp-lime-rgb), 0.22);
}
.rp-nav__links .rp-nav__get:hover { background: #f6ff86; color: var(--rp-on-lime); }

/* ----------------------------------------------------------------- hero */
.rp-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 116px 0 56px;
  display: flex;
  align-items: center;
  overflow-x: clip;
}
.rp-hero__curves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.rp-curve { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: rp-draw 2.6s 0.25s var(--rp-ease) forwards; }
.rp-curve--glow { stroke-width: 10; opacity: 0.5; }
.rp-curve--dash { stroke: #1d9a8f; stroke-width: 1.6; stroke-dasharray: 5 10; stroke-dashoffset: 0; opacity: 0; animation: rp-fade-in 1.6s 1s ease forwards, rp-dash-drift 30s linear infinite; }
@keyframes rp-draw { to { stroke-dashoffset: 0; } }
@keyframes rp-fade-in { to { opacity: 0.55; } }
@keyframes rp-dash-drift { to { stroke-dashoffset: -600; } }

.rp-hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 32px;
  align-items: center;
}

.rp-lockup { display: inline-flex; align-items: center; gap: 12px; margin: 0; }
.rp-lockup__mark { flex: none; }
.rp-lockup__mark .rp-mark__arc { stroke-dasharray: 0 208; animation: rp-mark-load 1.6s 0.5s var(--rp-ease) forwards; }
@keyframes rp-mark-load { to { stroke-dasharray: 75 133; } }
.rp-lockup__name { font-family: var(--rp-display); font-weight: 800; font-size: 1.02rem; letter-spacing: 0.24em; text-transform: uppercase; }
.rp-lockup__rule { width: 1px; height: 18px; background: var(--rp-line-2); }
.rp-lockup__tag { color: var(--rp-ink-2); font-size: 0.9rem; font-weight: 600; }

.rp-title {
  margin: 26px 0 24px;
  font-family: var(--rp-display);
  font-weight: 900;
  font-size: clamp(3.3rem, 7.4vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--rp-ink);
}
.rp-title span { display: block; }
.rp-title__lime { color: var(--rp-lime); text-shadow: 0 0 48px rgba(var(--rp-lime-rgb), 0.25); }

.rp-lede { margin: 0 0 30px; max-width: 34em; font-size: 1.15rem; line-height: 1.65; color: var(--rp-ink-2); }
.rp-lede strong { color: var(--rp-ink); font-weight: 600; }

.rp-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.rp-play {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 24px 11px 18px; border-radius: 16px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s var(--rp-ease), border-color 0.25s ease, box-shadow 0.25s ease;
}
.rp-play span { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.24rem; font-weight: 700; letter-spacing: -0.01em; }
.rp-play small { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; margin-bottom: 3px; }
.rp-play:hover { transform: translateY(-2px); border-color: rgba(var(--rp-lime-rgb), 0.7); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(var(--rp-lime-rgb), 0.12); }
.rp-play:focus-visible, .rp-ghost:focus-visible, .rp-chip:focus-visible, .rp-tbtn:focus-visible, .rp-tally__places button:focus-visible, .rp-tally__reset:focus-visible, .rp-nav__links a:focus-visible {
  outline: 2px solid var(--rp-lime); outline-offset: 3px;
}
.rp-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-radius: 14px;
  color: var(--rp-ink); font-weight: 600; text-decoration: none;
  border: 1px solid var(--rp-line-2); background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.rp-ghost:hover { border-color: rgba(var(--rp-lime-rgb), 0.5); color: var(--rp-lime); background: rgba(var(--rp-lime-rgb), 0.06); }

.rp-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; color: var(--rp-ink-2); font-size: 0.9rem; }
.rp-trust li { display: inline-flex; align-items: center; gap: 8px; }
.rp-trust svg { color: var(--rp-lime); flex: none; }

/* ---- the phone ---- */
.rp-hero__visual { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.rp-stage {
  position: relative;
  width: 100%;
  height: clamp(500px, 68vh, 700px);
  cursor: grab;
  touch-action: pan-y;            /* vertical swipes still scroll the page */
  z-index: 2;
}
.rp-stage.is-dragging { cursor: grabbing; }
.rp-stage__canvas {
  position: absolute; left: -32%; top: -14%; width: 164%; height: 128%;
  display: block; pointer-events: none;   /* the host takes the drag; the canvas overhangs its neighbours */
  opacity: 0; transition: opacity 0.45s ease;
}
.rp-stage--live .rp-stage__canvas { opacity: 1; }

/* CSS phone (fallback, and the poster while the live one boots) */
.rp-device {
  position: absolute; left: 50%; top: 50%;
  height: 94%; aspect-ratio: 7.2 / 15.14;
  transform: translate(-50%, -50%) perspective(1600px) rotateY(-16deg) rotateX(5deg) rotateZ(2deg);
  border-radius: 13.6% / 6.5%;
  background: linear-gradient(130deg, #8b96ac 0%, #48536a 22%, #5d687e 48%, #2a3243 78%, #6c778d 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 0 4px rgba(0, 0, 0, 0.35),
    0 50px 90px rgba(0, 0, 0, 0.6),
    0 0 140px rgba(59, 108, 240, 0.22);
  container-type: inline-size;
  transition: opacity 0.45s ease;
  animation: rp-float 7s ease-in-out infinite;
}
@keyframes rp-float {
  0%, 100% { transform: translate(-50%, -50%) perspective(1600px) rotateY(-16deg) rotateX(5deg) rotateZ(2deg); }
  50% { transform: translate(-50%, calc(-50% - 10px)) perspective(1600px) rotateY(-12deg) rotateX(4deg) rotateZ(1.5deg); }
}
.rp-stage--live .rp-device { opacity: 0; visibility: hidden; }
html.rp-boot .rp-stage:not(.rp-stage--static) .rp-device { opacity: 0; }
.rp-stage--static .rp-device { animation: rp-device-in 0.7s var(--rp-ease) both, rp-float 7s 0.7s ease-in-out infinite; }
@keyframes rp-device-in { from { opacity: 0; translate: 0 24px; } }

.rp-device__screen {
  position: absolute; inset: 1.32% 2.78%;
  border-radius: 15% / 6.9%;
  overflow: hidden;
  background: #060d17;
}
.rp-device__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.18s ease; }
.rp-device__img.is-swapping, .rp-pin__poster img.is-swapping { opacity: 0; }
.rp-device__island { position: absolute; top: 1.6%; left: 50%; width: 29%; height: 3.9%; transform: translateX(-50%); border-radius: 999px; background: #000; }
.rp-device__splash {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-bottom: 14%;
  background:
    radial-gradient(ellipse at 50% 43%, rgba(var(--rp-lime-rgb), 0.14), transparent 55%),
    linear-gradient(180deg, #0c1729 0%, #08111f 60%, #060d17 100%);
  opacity: 0; pointer-events: none;
}
.rp-device__mark { width: 42%; height: auto; filter: drop-shadow(0 0 4cqw rgba(var(--rp-lime-rgb), 0.35)); }
.rp-device__arc { stroke-dasharray: 207.3; stroke-dashoffset: 207.3; }
.rp-device__word { margin-top: 8%; font-family: var(--rp-display); font-weight: 800; font-size: 12.5cqw; letter-spacing: -0.02em; color: var(--rp-ink); }
.rp-device__sub { margin-top: 2%; font-size: 3.2cqw; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--rp-lime); }
.rp-device__splash.is-playing { animation: rp-splash 2.9s ease forwards; }
.rp-device__splash.is-playing .rp-device__arc { animation: rp-trace 1.45s 0.35s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes rp-splash { 0%, 81% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rp-trace { to { stroke-dashoffset: 45.6; } }

.rp-hint {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 6px 0 0; font-size: 0.8rem; color: var(--rp-ink-3);
  opacity: 0; transform: translateY(4px); transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.rp-hint.is-shown { opacity: 0.9; transform: none; }
.rp-hint.is-gone { opacity: 0; }

/* ---- screen chips ---- */
.rp-picker {
  position: relative; z-index: 3;
  display: flex; gap: 4px;
  max-width: 100%;
  margin-top: 14px; padding: 5px;
  border-radius: 999px;
  background: rgba(11, 19, 34, 0.78);
  border: 1px solid var(--rp-line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow-x: auto; scrollbar-width: none;
}
.rp-picker::-webkit-scrollbar { display: none; }
.rp-chip {
  position: relative; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 15px 10px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--rp-ink-2);
  font: 600 0.86rem/1 var(--rp-text);
  cursor: pointer; white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.rp-chip:hover { color: var(--rp-ink); background: rgba(255, 255, 255, 0.04); }
.rp-chip--mark { padding: 6px 10px; }
.rp-chip.is-active { color: var(--rp-lime); background: rgba(var(--rp-lime-rgb), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--rp-lime-rgb), 0.32); }
.rp-chip__bar { position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: rgba(var(--rp-lime-rgb), 0.16); opacity: 0; overflow: hidden; }
.rp-chip--mark .rp-chip__bar { left: 9px; right: 9px; bottom: 2px; }
.rp-chip.is-active .rp-chip__bar { opacity: 1; }
.rp-chip__bar::after { content: ''; position: absolute; inset: 0; background: var(--rp-lime); transform: scaleX(0); transform-origin: left; }
.rp-chip.is-filling .rp-chip__bar::after { animation: rp-fill var(--hold, 6.5s) linear forwards; }
.rp-picker.is-paused .rp-chip__bar::after { animation-play-state: paused; }
@keyframes rp-fill { to { transform: scaleX(1); } }
.rp-caption { min-height: 3em; max-width: 30em; margin: 14px auto 0; text-align: center; font-size: 0.95rem; line-height: 1.5; color: var(--rp-ink-2); }

/* -------------------------------------------------------------- numbers */
.rp-numbers { border-top: 1px solid var(--rp-line); border-bottom: 1px solid var(--rp-line); background: linear-gradient(180deg, rgba(10, 20, 36, 0.6), rgba(6, 13, 23, 0.2)); }
.rp-numbers__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rp-number { padding: 38px 24px 36px; display: flex; flex-direction: column; gap: 8px; }
.rp-number + .rp-number { border-left: 1px solid var(--rp-line); }
.rp-number b { font-family: var(--rp-display); font-weight: 900; font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; color: var(--rp-lime); font-variant-numeric: tabular-nums; }
.rp-number span { font-size: 0.92rem; line-height: 1.45; color: var(--rp-ink-2); max-width: 17em; }

/* ------------------------------------------------------------- sections */
.rp-section { position: relative; padding: clamp(84px, 11vw, 140px) 0; }
.rp-head { max-width: 760px; margin-bottom: 56px; }
.rp-eyebrow {
  display: inline-flex; align-items: center;
  margin: 0 0 18px; padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--rp-lime-rgb), 0.3);
  background: rgba(var(--rp-lime-rgb), 0.07);
  color: var(--rp-lime);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.rp-h2, .rp-step h3, .rp-why__card h3 { text-wrap: balance; }
.rp-sub, .rp-lede, .rp-step p { text-wrap: pretty; }
.rp-h2 { margin: 0 0 16px; font-family: var(--rp-display); font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.028em; color: var(--rp-ink); }
.rp-sub { margin: 0; max-width: 40em; font-size: 1.1rem; line-height: 1.65; color: var(--rp-ink-2); }

/* small CSS phone: story stills, and the pinned phone's poster */
.rp-mini {
  position: relative;
  aspect-ratio: 7.2 / 15.14;
  border-radius: 13.6% / 6.5%;
  padding: 2.78% / 1.32%;
  background: linear-gradient(130deg, #8b96ac 0%, #48536a 22%, #5d687e 48%, #2a3243 78%, #6c778d 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 30px 60px rgba(0, 0, 0, 0.5);
}
.rp-mini img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 15% / 6.9%; background: #060d17; transition: opacity 0.18s ease; }

/* --------------------------------------------------------- how it works */
.rp-story { position: relative; }
.rp-story__rail { display: none; }
.rp-story__steps { list-style: none; margin: 0; padding: 0; }
.rp-step { position: relative; padding: 0 0 72px; }
.rp-step__num { display: block; margin-bottom: 12px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; color: var(--rp-lime); }
.rp-step h3 { margin: 0 0 14px; font-family: var(--rp-display); font-weight: 800; font-size: clamp(1.8rem, 2.7vw, 2.6rem); line-height: 1.08; letter-spacing: -0.022em; }
.rp-step p { margin: 0; max-width: 31em; font-size: 1.08rem; line-height: 1.7; color: var(--rp-ink-2); }
.rp-step__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.rp-step__facts li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rp-line-2); font-size: 0.8rem; font-weight: 600; color: var(--rp-ink-2); background: rgba(255, 255, 255, 0.02); }
.rp-step__still { margin: 32px auto 0; width: min(250px, 66%); }
.rp-story__stage { display: none; }

@media (min-width: 1024px) {
  .rp-story {
    --story-h: 76vh;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    column-gap: 56px;
    align-items: start;
  }
  .rp-story__rail { display: block; position: absolute; left: 0; top: 0; bottom: 12vh; width: 2px; border-radius: 2px; background: var(--rp-line); }
  .rp-story__rail-fill { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(180deg, var(--rp-blue), var(--rp-lime)); transform: scaleY(0); transform-origin: top; box-shadow: 0 0 14px rgba(var(--rp-lime-rgb), 0.35); }
  .rp-story__steps { grid-column: 1; padding: 0 0 12vh 40px; }
  .rp-step { min-height: var(--story-h); padding: 0; display: flex; flex-direction: column; justify-content: center; }
  .rp-step > :not(.rp-step__still) { transition: opacity 0.45s ease; }
  .rp-step:not(.is-current) > :not(.rp-step__still) { opacity: 0.3; }
  .rp-step__still { display: none; }
  .rp-story__stage { display: block; grid-column: 2; grid-row: 1; position: sticky; top: calc((100vh - var(--story-h)) / 2); height: var(--story-h); }
  .rp-pin { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: pan-y; }
  .rp-pin.is-dragging { cursor: grabbing; }
  .rp-pin__poster { height: 88%; width: auto; transition: opacity 0.45s ease; }
  .rp-pin__canvas { position: absolute; left: -10%; top: -12%; width: 120%; height: 124%; pointer-events: none; opacity: 0; transition: opacity 0.45s ease; }
  .rp-pin--live .rp-pin__canvas { opacity: 1; }
  .rp-pin--live .rp-pin__poster { opacity: 0; visibility: hidden; }
}

/* --------------------------------------------------------------- try it */
.rp-try { background: linear-gradient(180deg, transparent, rgba(10, 20, 36, 0.55) 30%, rgba(10, 20, 36, 0.55) 70%, transparent); }
.rp-try__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.rp-try__head { margin-bottom: 0; }
.rp-try__note { margin: 22px 0 0; padding-left: 14px; border-left: 2px solid rgba(var(--rp-lime-rgb), 0.5); font-size: 0.95rem; line-height: 1.6; color: var(--rp-ink-3); max-width: 30em; }

.rp-tally { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 24px; align-items: center; }
.rp-tally__card {
  padding: 18px;
  border-radius: 24px;
  background: var(--rp-card);
  border: 1px solid #1b2a42;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.rp-tally__places { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-tally__places button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid #22324d; background: transparent;
  color: var(--rp-ink-2); font: 600 0.85rem var(--rp-text); cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.rp-tally__places button i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.rp-tally__places button[aria-checked="true"] { color: var(--rp-lime); border-color: rgba(var(--rp-lime-rgb), 0.7); background: rgba(var(--rp-lime-rgb), 0.08); }
.rp-tally__label { margin: 20px 0 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rp-ink-3); }
.rp-tally__logging { margin: 0 0 14px; font-size: 0.86rem; font-weight: 600; color: var(--rp-lime); }
.rp-tally__group { margin-top: 10px; padding: 8px 12px 8px 14px; border-radius: 14px; border: 1px solid #1b2a42; border-left: 3px solid var(--bar); background: rgba(255, 255, 255, 0.012); }
.rp-tally__grouphead { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0 2px; }
.rp-tally__grouphead span:first-child { font-weight: 700; }
.rp-tally__today { font-size: 0.78rem; color: var(--rp-ink-3); }
.rp-tally__row { display: grid; grid-template-columns: minmax(0, 1fr) 40px 34px 40px; gap: 6px; align-items: center; padding: 5px 0; }
.rp-tally__row > span { color: var(--rp-ink-2); font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-tally__row > .rp-tally__single { color: var(--rp-ink); font-weight: 700; }
.rp-tbtn {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #22324d; background: #101b2d; color: var(--rp-ink);
  font: 500 1.35rem/1 var(--rp-text); cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.rp-tbtn:active { transform: scale(0.9); }
.rp-tbtn:disabled { opacity: 0.35; cursor: default; }
.rp-tbtn--plus { border: 0; background: var(--plus, var(--rp-blue)); color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); }
.rp-tbtn--plus:hover { filter: brightness(1.1); }
.rp-tally__row output { text-align: center; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rp-tally__row output.is-bump { animation: rp-bump 0.35s var(--rp-ease); }
@keyframes rp-bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); color: var(--rp-lime); } 100% { transform: scale(1); } }

.rp-tally__result { display: flex; flex-direction: column; align-items: center; text-align: center; }
.rp-ring { position: relative; width: 210px; height: 210px; }
.rp-ring svg { width: 100%; height: 100%; }
.rp-ring__arc { stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 0.55s var(--rp-ease); }
.rp-ring.is-full svg { filter: drop-shadow(0 0 14px rgba(var(--rp-lime-rgb), 0.55)); }
.rp-ring__num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.rp-ring__num b { font-family: var(--rp-display); font-weight: 900; font-size: 3.6rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rp-ring__num > span { max-width: 9em; font-size: 0.78rem; line-height: 1.3; color: var(--rp-ink-3); }
.rp-tally__speed { min-height: 3em; margin: 16px 0 4px; font-size: 0.98rem; line-height: 1.5; color: var(--rp-ink-2); }
.rp-tally__speed b { color: var(--rp-ink); }
.rp-tally__all { margin: 0 0 12px; font-size: 0.85rem; color: var(--rp-ink-3); }
.rp-tally__all b { color: var(--rp-ink-2); }
.rp-tally__reset { padding: 6px 10px; border: 0; background: none; color: var(--rp-lime); font: 600 0.85rem var(--rp-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------------------------------------------------- panorama (Play set) */
.rp-pano { position: relative; padding: clamp(64px, 9vw, 110px) 0 24px; }
.rp-pano__head { margin-bottom: 36px; }
.rp-pano__hint { margin: 4px 0 0; font-size: 0.9rem; color: var(--rp-ink-3); }
.rp-pano__hint--pan { display: none; }
.rp-pano__viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 24px 24px;
  -webkit-overflow-scrolling: touch;
}
.rp-pano__viewport::-webkit-scrollbar { display: none; }
.rp-pano__track {
  display: flex; width: max-content;
  border-radius: 26px; overflow: hidden;
  border: 1px solid var(--rp-line);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 120px rgba(59, 108, 240, 0.12);
}
.rp-pano__track img { display: block; height: min(70vh, 560px); width: auto; aspect-ratio: 720 / 1280; scroll-snap-align: center; user-select: none; -webkit-user-drag: none; }
.rp-pano__progress { display: none; }

.rp-pano--pan { padding: 0; }
.rp-pano--pan .rp-pano__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.rp-pano--pan .rp-pano__head { margin-bottom: 28px; }
.rp-pano--pan .rp-pano__hint--pan { display: inline; }
.rp-pano--pan .rp-pano__hint--swipe { display: none; }
.rp-pano--pan .rp-pano__viewport { overflow: visible; padding: 0 0 0 max(24px, calc((100vw - 1200px) / 2 + 24px)); }
.rp-pano--pan .rp-pano__track { will-change: transform; }
.rp-pano--pan .rp-pano__track img { height: min(62vh, 640px); }
.rp-pano--pan .rp-pano__progress { display: block; position: relative; height: 2px; margin-top: 28px; border-radius: 2px; background: var(--rp-line); overflow: hidden; }
.rp-pano__progress i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--rp-blue), var(--rp-lime)); transform: scaleX(0); transform-origin: left; }

/* ---------------------------------------------------------- why it sticks */
.rp-why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rp-why__card {
  position: relative; overflow: hidden;
  padding: 28px 26px 30px;
  border-radius: 22px;
  border: 1px solid var(--rp-line);
  background: var(--rp-panel);
  transition: border-color 0.3s ease, transform 0.3s var(--rp-ease);
}
.rp-why__card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--rp-lime-rgb), 0.09), transparent 60%);
}
.rp-why__card:hover { border-color: rgba(var(--rp-lime-rgb), 0.3); transform: translateY(-3px); }
.rp-why__card:hover::before { opacity: 1; }
.rp-why__card > svg { display: block; box-sizing: content-box; padding: 11px; border-radius: 13px; color: var(--rp-lime); background: rgba(var(--rp-lime-rgb), 0.08); border: 1px solid rgba(var(--rp-lime-rgb), 0.18); }
.rp-why__card h3 { margin: 20px 0 10px; font-family: var(--rp-display); font-weight: 800; font-size: 1.24rem; letter-spacing: -0.01em; }
.rp-why__card p { margin: 0; font-size: 0.98rem; line-height: 1.65; color: var(--rp-ink-2); }

/* ------------------------------------------------------------ small print */
.rp-print { padding-top: 0; }
.rp-note { max-width: 860px; padding: 30px 32px; border-radius: 22px; border: 1px solid var(--rp-line); background: var(--rp-panel); }
.rp-note p:last-child { margin: 0; font-size: 1rem; line-height: 1.75; color: var(--rp-ink-2); }
.rp-note strong { color: var(--rp-ink); }
.rp-note a { color: var(--rp-lime); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- final */
.rp-final { padding-top: 0; }
.rp-final__box {
  position: relative; overflow: hidden;
  padding: 72px 24px 76px;
  text-align: center;
  border-radius: 32px;
  border: 1px solid var(--rp-line);
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(var(--rp-lime-rgb), 0.12), transparent 70%),
    linear-gradient(180deg, #0c1729, #08111f);
}
.rp-final__mark { width: 96px; height: 96px; filter: drop-shadow(0 0 22px rgba(var(--rp-lime-rgb), 0.35)); }
.rp-final__arc { stroke-dasharray: 207.3; stroke-dashoffset: 207.3; }
.rp-final__box.is-in .rp-final__arc { animation: rp-trace 1.6s 0.3s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.rp-final__box .rp-h2 { margin: 26px auto 14px; max-width: 16em; }
.rp-final__box .rp-sub { margin: 0 auto 32px; }
.rp-final__box .rp-cta-row { justify-content: center; }

/* ------------------------------------------------- mobile "get it" pill */
.rp-getbar { display: none; }
@media (max-width: 767px) {
  .rp-getbar {
    position: fixed; z-index: 90; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px; border-radius: 999px;
    background: var(--rp-lime); color: var(--rp-on-lime);
    font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, 160%); transition: transform 0.4s var(--rp-ease);
  }
  .rp-getbar.is-shown { transform: translate(-50%, 0); }
}
.rp-footer { position: relative; z-index: 1; border-top-color: var(--rp-line); color: var(--rp-ink-3); }

/* --------------------------------------------------------------- reveals */
/* the hero rises in on load with CSS alone, so the headline never waits on the 3D code */
.rp-rise { animation: rp-rise 0.9s var(--d, 0s) var(--rp-ease) both; }
@keyframes rp-rise { from { opacity: 0; transform: translateY(18px); } }
html.rp-js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.75s var(--rp-ease), transform 0.75s var(--rp-ease); }
html.rp-js [data-reveal].is-in,
html.rp-reveal-all [data-reveal] { opacity: 1; transform: none; }

/* ----------------------------------------------------------- responsive */
@media (max-width: 1023px) {
  .rp-hero { min-height: 0; padding-top: 108px; }
  .rp-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rp-hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .rp-lede { margin-left: auto; margin-right: auto; }
  .rp-cta-row, .rp-trust { justify-content: center; }
  .rp-stage { height: 520px; }
  .rp-stage__canvas { left: -12%; top: -10%; width: 124%; height: 120%; }
  .rp-numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-number:nth-child(3) { border-left: 0; }
  .rp-number:nth-child(n + 3) { border-top: 1px solid var(--rp-line); }
  .rp-try__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .rp-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .rp-nav__links a:not(.rp-nav__get) { display: none; }
}
@media (max-width: 680px) {
  .rp-tally { grid-template-columns: minmax(0, 1fr); }
  .rp-tally__result { order: -1; }
  .rp-ring { width: 180px; height: 180px; }
  .rp-why__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .rp-wrap { padding: 0 16px; }
  .rp-hero { padding-top: 96px; }
  .rp-title { font-size: clamp(3rem, 15vw, 4.2rem); }
  .rp-lede { font-size: 1.04rem; }
  .rp-lockup__rule, .rp-lockup__tag { display: none; }
  .rp-stage { height: 470px; }
  .rp-stage__canvas { left: 0; width: 100%; }
  .rp-number { padding: 28px 16px 26px; }
  .rp-number b { font-size: 2.4rem; }
  .rp-number span { font-size: 0.84rem; }
  .rp-chip { padding: 9px 12px 10px; font-size: 0.82rem; }
  .rp-pano__viewport { padding: 0 16px 20px; }
  .rp-pano__track img { height: 480px; }
  .rp-note { padding: 24px 20px; }
  .rp-final__box { padding: 56px 18px 60px; border-radius: 26px; }
  .rp-nav__links .rp-nav__get { padding: 8px 12px; font-size: 0.82rem; }
  .rp-tally__card { padding: 14px; }
  .rp-tally__row { grid-template-columns: minmax(0, 1fr) 38px 30px 38px; }
  .rp-tbtn { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-curve, .rp-curve--dash { animation: none; stroke-dashoffset: 0; }
  .rp-curve--dash { opacity: 0.5; }
  .rp-lockup__mark .rp-mark__arc { animation: none; stroke-dasharray: 75 133; }
  .rp-rise { animation: none; }
  .rp-device, .rp-stage--static .rp-device { animation: none; }
  .rp-device__splash { display: none; }
  .rp-final__box .rp-final__arc { animation: none; stroke-dashoffset: 45.6; }
  .rp-tally__row output.is-bump { animation: none; }
  html.rp-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .rp-why__card, .rp-play { transition: none; }
}
