/*
 * BizFi marketing site — Riva, the marketing foundations.
 *
 * Surfaces are solid: Paper, Mist, Sand and Night, with the brand Cyan for
 * actions and for the Request a demo band. No gradients anywhere on the
 * website. Ink is slate; shadows are tinted with Night and only on what
 * floats (e1 resting, e2 lifted, e3 devices). Tokens are the --rv-* custom
 * properties. Text colours meet WCAG AA; the one kept for large type says so.
 *
 * The app replicas are the exception and stay exactly as the app draws them,
 * with their own colours and gradients: the guest portal screens
 * (.phone-screen, .ps-*, .pt-*) and the dashboard mockups (.m-window, .m-card
 * and everything inside them). The portal screens mirror the real guest
 * portal (apps/web/src/routes/p/$slug/index.tsx) and are sized in `em`, so
 * one `--phone-w` scales a whole screen. Replicas sit in wrappers that may
 * rise out of their card (.demo-device, .fx-device); only the device frames
 * take Riva's device shadow. The consent → tracking diagram (.m-marketing),
 * the network diagram (.m-net) and the language cards (.m-langs) are
 * concepts, not app UI, and are drawn in Riva.
 *
 * Motion comes from js/site.js: blocks rise in as they arrive (.rv-rise), the
 * How it works steps light up (data-progress, --sp) and the key figures roll
 * up (.is-counting). With reduced motion or without JavaScript none of it
 * applies and the page is plain and complete.
 *
 * Breakpoints: ≥ 1280 · 1024–1279 · 768–1023 (menu button) · 360–767, and
 * under 480 calls to action go full width.
 */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations'),
    url('/fonts/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Kept for the app replicas, which use the app's own palette. */
  --brand: #00b0e7;
  --brand-bright: #01ffff;
  --brand-text: #0077a6;
  --ink: #0b1426;
  --text: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #ffffff;
  --dark-text: #cbd5e1;
  --dark-muted: #94a3b8;
  --ok: #059669;
  --shadow-sm: 0 1px 2px rgba(11, 20, 38, 0.05), 0 2px 6px rgba(11, 20, 38, 0.05);
  --shadow: 0 14px 34px -14px rgba(11, 20, 38, 0.28);
  --shadow-lg: 0 30px 60px -24px rgba(11, 20, 38, 0.35), 0 8px 20px -12px rgba(11, 20, 38, 0.15);
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Riva. */
  --rv-paper: #ffffff;
  --rv-mist: #eaf6fb;
  --rv-sand: #f6f1e9;
  --rv-night: #0f172a;

  --rv-cyan-100: #cceffa;
  --rv-cyan-200: #99e0f5;
  --rv-cyan-300: #66d0f0;
  --rv-cyan-500: #00b0e7;
  --rv-cyan-hover: #00a3d6;
  /* 3.4:1 on white: large type only (the hero's second line). */
  --rv-cyan-600: #0092c4;
  --rv-cyan-700: #006c96;
  --rv-cyan-800: #005a7e;

  --rv-ink-50: #f8fafc;
  --rv-ink-100: #f1f5f9;
  --rv-ink-200: #e2e8f0;
  --rv-ink-300: #cbd5e1;
  --rv-ink-400: #94a3b8;
  --rv-ink-500: #64748b;
  --rv-ink-600: #475569;
  --rv-ink-700: #334155;
  --rv-ink-800: #1e293b;
  --rv-ink-900: #0f172a;

  --rv-success: #047857;
  --rv-success-icon: #059669;
  --rv-warning-icon: #b45309;
  --rv-warning-bg: #fffbeb;
  --rv-warning-line: #fde68a;
  --rv-error: #b91c1c;
  --rv-error-bg: #fef2f2;
  --rv-error-line: #fecaca;

  --rv-e1: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --rv-e2: 0 12px 32px -12px rgba(15, 23, 42, 0.28), 0 2px 6px rgba(15, 23, 42, 0.06);
  --rv-e3: 0 40px 80px -32px rgba(15, 23, 42, 0.45);

  --rv-ease-out: cubic-bezier(0.22, 0.8, 0.26, 1);
  --rv-ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --rv-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Page margin, section rhythm and header height; smaller further down. */
  --rv-margin: 40px;
  --rv-section: 112px;
  --rv-header: 76px;
}

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

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  display: block;
  height: auto;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

a {
  color: var(--brand-text);
}

:focus-visible {
  outline: 3px solid var(--rv-cyan-700);
  outline-offset: 2px;
  border-radius: 6px;
}

/* The guest portal replicas keep the focus ring they have in the app. */
.ps :focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.section-dark :focus-visible,
.fx-night :focus-visible {
  outline-color: var(--rv-cyan-300);
}

.cta-section :focus-visible {
  outline-color: var(--rv-night);
}

.cta-card :focus-visible {
  outline-color: var(--rv-cyan-700);
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--rv-night);
  color: #fff;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 2 * var(--rv-margin), 1200px);
  margin-inline: auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 120ms var(--rv-ease-out),
    border-color 120ms var(--rv-ease-out),
    color 120ms var(--rv-ease-out),
    transform 120ms var(--rv-ease-out);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-sm {
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 15px;
}

.btn-lg {
  gap: 10px;
  height: 56px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 17px;
}

.btn-lg .icon {
  width: 20px;
  height: 20px;
}

/* Cyan with a Night label: white on cyan fails contrast. */
.btn-primary {
  border-color: transparent;
  background: var(--rv-cyan-500);
  color: var(--rv-night);
}

.btn-primary:hover {
  background: var(--rv-cyan-hover);
}

.btn-primary:active {
  background: var(--rv-cyan-600);
  transform: translateY(1px);
}

.btn-primary:disabled {
  background: var(--rv-ink-100);
  color: var(--rv-ink-400);
  cursor: not-allowed;
  transform: none;
}

/* Loading keeps the primary look and the button's width. */
.btn-primary[aria-busy='true'] {
  background: var(--rv-cyan-500);
  color: var(--rv-night);
  cursor: progress;
}

.btn-ghost {
  border-color: var(--rv-ink-300);
  background: var(--rv-paper);
  color: var(--rv-night);
}

.btn-ghost:hover {
  border-color: var(--rv-ink-400);
  background: var(--rv-ink-50);
}

.btn-ghost:active {
  background: var(--rv-ink-100);
  transform: translateY(1px);
}

/* A button with two labels (idle, busy) lays them out as its own content;
   only one is shown at a time. */
.btn-label {
  display: contents;
}

.btn-label[hidden] {
  display: none;
}

.rv-spin {
  stroke-width: 2.5;
  animation: rvSpin 0.9s linear infinite;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: var(--rv-paper);
  transition:
    border-color 200ms var(--rv-ease-out),
    box-shadow 200ms var(--rv-ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--rv-ink-200);
  box-shadow: var(--rv-e1);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--rv-header);
}

.brand {
  display: block;
  flex-shrink: 0;
  border-radius: 10px;
}

/* 48 px tall is the logo's minimum on screen, header included. */
.brand img {
  width: auto;
  height: 48px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--rv-ink-900);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: color 120ms var(--rv-ease-out);
}

.nav-links a:hover {
  color: var(--rv-cyan-700);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions .btn {
  flex: 0 0 auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--rv-ink-100);
}

.lang-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--rv-ink-600);
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 120ms var(--rv-ease-out),
    background-color 120ms var(--rv-ease-out);
}

.lang-link:hover {
  color: var(--rv-ink-900);
}

.lang-link[aria-current='page'] {
  background: var(--rv-paper);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  color: var(--rv-ink-900);
}

/* "Accedi" is a small secondary button with a leading icon: it names a place. */
.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 14px;
  border: 1.5px solid var(--rv-ink-300);
  border-radius: 12px;
  background: var(--rv-paper);
  color: var(--rv-ink-900);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 120ms var(--rv-ease-out),
    background-color 120ms var(--rv-ease-out);
}

.nav-login:hover {
  border-color: var(--rv-ink-400);
  background: var(--rv-ink-50);
}

.nav-login .icon {
  width: 18px;
  height: 18px;
}

/* The menu button shows below 1024 px. */
.nav-toggle {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 1.5px solid var(--rv-ink-300);
  border-radius: 14px;
  background: var(--rv-paper);
  color: var(--rv-ink-900);
  cursor: pointer;
}

.nav-toggle[aria-expanded='true'] {
  border-color: transparent;
  background: var(--rv-ink-100);
}

.nav-toggle .icon {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded='true'] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded='true'] .icon-close {
  display: block;
}

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

/* One full-width Mist band; the phone sits straight on it. The bottom
   leaves room for the key figures to overlap. */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 calc(var(--rv-section) + 48px);
  background: var(--rv-mist);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin: 0;
  padding: 0 16px 0 12px;
  border: 1px solid var(--rv-ink-200);
  border-radius: 999px;
  background: var(--rv-paper);
  color: var(--rv-ink-900);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.eyebrow .icon {
  width: 18px;
  height: 18px;
  color: var(--rv-cyan-700);
}

.hero-title {
  margin: 24px 0 0;
  color: var(--rv-ink-900);
  font-size: 76px;
  line-height: 80px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* One coloured line per headline, solid: no gradient text. */
.hero-title em {
  font-style: normal;
  color: var(--rv-cyan-600);
}

.hero-lead {
  max-width: 60ch;
  margin: 20px 0 0;
  color: var(--rv-ink-600);
  font-size: 21px;
  line-height: 32px;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-ctas .btn {
  flex: 0 0 auto;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px 28px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rv-ink-900);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.hero-trust .icon {
  width: 20px;
  height: 20px;
  color: var(--rv-cyan-700);
}

.hero-visual {
  min-width: 0;
}

/* ─── Hero demo: the phone on a stage, labels floating around it ────────── */

.demo {
  display: flex;
  flex-direction: column;
}

/* No box of its own: the hero's Mist runs edge to edge. The padding leaves
   room for the labels above and below the phone. */
.demo-panel {
  position: relative;
  padding: 88px 0;
}

.demo-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.demo-device {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.phone {
  --phone-w: 300px;
  width: var(--phone-w);
  flex-shrink: 0;
  filter: drop-shadow(0 34px 44px rgba(11, 20, 38, 0.3));
}

.phone-md {
  --phone-w: 272px;
}

.phone-mini {
  --phone-w: 204px;
  filter: drop-shadow(0 18px 24px rgba(11, 20, 38, 0.22));
}

.phone-frame {
  position: relative;
  aspect-ratio: 300 / 640;
  padding: calc(var(--phone-w) * 0.034);
  border-radius: calc(var(--phone-w) * 0.16);
  background: linear-gradient(150deg, #2b3445 0%, #0b1020 60%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(11, 20, 38, 0.5);
}

.phone-island {
  position: absolute;
  z-index: 3;
  top: calc(var(--phone-w) * 0.058);
  left: 50%;
  width: 31%;
  height: calc(var(--phone-w) * 0.086);
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--phone-w) * 0.128);
  font-size: calc(var(--phone-w) / 22.5);
  isolation: isolate;
}

/* Device frames keep their shape; only their shadow becomes Riva's. */
.demo-device .phone {
  filter: none;
}

.demo-device .phone-frame {
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(11, 20, 38, 0.5),
    var(--rv-e3);
}

/* Floating labels sit around the phone, never over the screen's text. */
.float {
  position: absolute;
  z-index: 4;
  margin: 0;
  border-radius: 16px;
  background: var(--rv-paper);
  box-shadow: var(--rv-e2);
  pointer-events: none;
}

/* Rests on the phone's top bezel, clear of the screen. */
.float-dashboard {
  top: -84px;
  left: calc(50% - 284px);
  width: 260px;
  padding: 14px 16px;
  animation: rvFloat 6s var(--rv-ease-io) infinite;
}

.float-dashboard.is-fresh {
  animation:
    rvPop 0.6s var(--rv-ease-out),
    rvFloat 6s var(--rv-ease-io) 0.6s infinite;
}

.float-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--rv-ink-600);
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.float-title .icon {
  width: 12px;
  height: 12px;
  color: var(--rv-cyan-700);
}

.float-when {
  margin-left: auto;
  color: var(--rv-success);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.float-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00b0e7, #1d4ed8);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.avatar .icon {
  width: 16px;
  height: 16px;
}

.float-dashboard .avatar {
  width: 40px;
  height: 40px;
  background: var(--rv-cyan-500);
  color: var(--rv-night);
  font-size: 14px;
  line-height: 16px;
  font-weight: 800;
}

.float-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.float-text strong {
  color: var(--rv-ink-900);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
}

.float-text small {
  color: var(--rv-ink-600);
  font-size: 13px;
  line-height: 18px;
}

.float-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--rv-ink-900);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.float-chip .icon {
  width: 18px;
  height: 18px;
  color: var(--rv-success);
}

.float-consent {
  top: calc(100% + 16px);
  left: calc(50% - 276px);
  animation: rvFloat 6s var(--rv-ease-io) -2s infinite;
}

.float-wifi {
  top: calc(100% + 40px);
  right: calc(50% - 276px);
  animation: rvFloat 6s var(--rv-ease-io) -4s infinite;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--rv-success-icon);
}

/* The toast is part of the demo: it keeps the app's look. It sits in
   .demo-device, so it stays over the phone when the labels stack. */
.demo-toast {
  position: absolute;
  z-index: 5;
  bottom: 13%;
  left: 50%;
  width: min(250px, 80%);
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(11, 20, 38, 0.94);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.demo-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 20px;
}

.theme-picker {
  display: flex;
  align-items: center;
  gap: 4px;
}

.theme-label {
  margin-right: 8px;
  color: var(--rv-ink-600);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

/* 44 px to tap; the fills are previews of the four venue styles. */
.swatch {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 6px solid var(--rv-paper);
  border-radius: 999px;
  box-shadow: 0 0 0 1.5px var(--rv-ink-300);
  cursor: pointer;
  transition: box-shadow 120ms var(--rv-ease-out);
}

.swatch:hover {
  box-shadow: 0 0 0 1.5px var(--rv-ink-400);
}

.swatch[aria-checked='true'] {
  box-shadow: 0 0 0 2px var(--rv-night);
}

.swatch-lido {
  background: linear-gradient(160deg, #0e7490, #1e3a8a);
}

.swatch-zirlo {
  background: linear-gradient(160deg, #3b0764, #9d174d);
}

.swatch-trattoria {
  background: #9a3412;
}

.swatch-petalo {
  background: #f9dce6;
}

.demo-restart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--rv-cyan-700);
  font: inherit;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: color 120ms var(--rv-ease-out);
}

.demo-restart:hover {
  color: var(--rv-cyan-800);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.demo-restart .icon {
  width: 18px;
  height: 18px;
}

.demo-restart.is-attention {
  animation: nudge 1.4s ease-in-out 2;
}

.demo-hint {
  max-width: 420px;
  margin: 8px auto 0;
  color: var(--rv-ink-600);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-align: center;
  text-wrap: pretty;
}

/* ─── Phone screen: the guest portal replica ───────────────────────────── */

.pt-lido {
  --pt-bg: linear-gradient(160deg, #0e7490 0%, #1e3a8a 100%);
  --pt-accent: #fbbf24;
  --pt-accent-ink: #0f172a;
  --pt-logo: #0e7490;
}

.pt-zirlo {
  --pt-bg: linear-gradient(160deg, #3b0764 0%, #9d174d 100%);
  --pt-accent: #22d3ee;
  --pt-accent-ink: #0f172a;
  --pt-logo: #7e22ce;
}

.pt-trattoria {
  --pt-bg: #9a3412;
  --pt-accent: #fde68a;
  --pt-accent-ink: #0f172a;
  --pt-logo: #9a3412;
}

.pt-petalo {
  --pt-bg: #f9dce6;
  --pt-accent: #be185d;
  --pt-accent-ink: #ffffff;
  --pt-logo: #be185d;
}

/* The two ink variants — see apps/web/src/lib/portal-theme.ts. */
.pt-on-dark {
  --pt-ink: #ffffff;
  --pt-muted: rgba(255, 255, 255, 0.9);
  --pt-faint: rgba(255, 255, 255, 0.64);
  --pt-input-bg: rgba(255, 255, 255, 0.1);
  --pt-input-border: rgba(255, 255, 255, 0.3);
  --pt-placeholder: rgba(255, 255, 255, 0.6);
  --pt-row-bg: rgba(255, 255, 255, 0.06);
  --pt-row-border: rgba(255, 255, 255, 0.25);
  --pt-ghost-bg: rgba(255, 255, 255, 0.1);
  --pt-ghost-border: rgba(255, 255, 255, 0.4);
  --pt-edge: rgba(255, 255, 255, 0.45);
  --pt-pill-ink: #0f172a;
  --pt-spin-track: rgba(255, 255, 255, 0.3);
  --pt-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  --pt-focus: rgba(255, 255, 255, 0.8);
}

.pt-on-light {
  --pt-ink: #0f172a;
  --pt-muted: #1e293b;
  --pt-faint: #475569;
  --pt-input-bg: rgba(255, 255, 255, 0.7);
  --pt-input-border: rgba(15, 23, 42, 0.2);
  --pt-placeholder: #64748b;
  --pt-row-bg: rgba(255, 255, 255, 0.6);
  --pt-row-border: rgba(15, 23, 42, 0.15);
  --pt-ghost-bg: rgba(255, 255, 255, 0.6);
  --pt-ghost-border: rgba(15, 23, 42, 0.2);
  --pt-edge: rgba(15, 23, 42, 0.35);
  --pt-pill-ink: #ffffff;
  --pt-spin-track: rgba(15, 23, 42, 0.18);
  --pt-shadow: none;
  --pt-focus: rgba(15, 23, 42, 0.55);
}

.ps {
  display: flex;
  flex-direction: column;
  background: var(--pt-bg);
  color: var(--pt-ink);
  font-family: var(--font);
  line-height: 1.4;
}

/* Zero specificity, so each control's own class can size its text. */
:where(.ps) button {
  font: inherit;
  cursor: pointer;
}

:where(.ps) svg {
  width: 1em;
  height: 1em;
}

.ps-status {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 1.05em 1.9em 0.35em;
  font-size: 0.82em;
  font-weight: 800;
}

.ps-status-icons {
  display: inline-flex;
  gap: 0.3em;
}

.ps-status-icons svg {
  width: 1.15em;
  height: 1.15em;
}

.ps-portal {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.8em;
  min-height: 0;
  padding: 0.8em 1.35em 1.1em;
  overflow-y: auto;
  scrollbar-width: none;
  text-align: center;
}

.ps-portal::-webkit-scrollbar,
.ps-menu-list::-webkit-scrollbar,
.ps-tabs::-webkit-scrollbar {
  display: none;
}

/* Auto margins centre the column when it fits and collapse when it doesn't —
   the same trick the real portal uses instead of justify-content: center. */
.ps-portal > :first-child {
  margin-top: auto;
}

.ps-portal > :last-child {
  margin-bottom: auto;
}

.ps-logo {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 4.6em;
  height: 4.6em;
  border: 0.15em solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.5em 1.2em rgba(0, 0, 0, 0.2);
  color: var(--pt-logo);
}

.ps-logo svg {
  width: 2.2em;
  height: 2.2em;
}

.ps-logo-sm {
  width: 3.3em;
  height: 3.3em;
}

.ps-logo-sm svg {
  width: 1.6em;
  height: 1.6em;
}

.ps-name {
  margin: 0;
  font-size: 1.42em;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: var(--pt-shadow);
}

.ps-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35em;
}

.ps-pill {
  padding: 0.45em 0.8em;
  border: 1px solid var(--pt-ghost-border);
  border-radius: 999px;
  background: var(--pt-ghost-bg);
  color: var(--pt-ink);
  font-size: 0.74em;
  font-weight: 800;
  text-transform: uppercase;
}

.ps-pill[aria-pressed='true'] {
  border-color: var(--pt-ink);
  background: var(--pt-ink);
  color: var(--pt-pill-ink);
  box-shadow: 0 0.2em 0.5em rgba(0, 0, 0, 0.18);
}

.ps-msg {
  margin: 0;
  color: var(--pt-muted);
  font-size: 0.9em;
  line-height: 1.5;
}

.ps-form {
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  width: 100%;
  text-align: left;
}

.ps-field {
  min-height: 3.05em;
  padding: 0.8em 0.85em;
  border: 1px solid var(--pt-input-border);
  border-radius: 0.6em;
  background: var(--pt-input-bg);
  color: var(--pt-placeholder);
  font-size: 0.92em;
  line-height: 1.25;
  transition: border-color 0.2s ease;
}

.ps-field.has-value {
  color: var(--pt-ink);
}

.ps-field.is-typing {
  border-color: var(--pt-focus);
}

.ps-field.is-typing .ps-field-text::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 1px;
  background: currentColor;
  vertical-align: -0.18em;
  animation: blink 1s steps(1) infinite;
}

.ps-check {
  display: flex;
  align-items: center;
  gap: 0.7em;
  width: 100%;
  padding: 0.7em 0.75em;
  border: 1px solid var(--pt-row-border);
  border-radius: 0.6em;
  background: var(--pt-row-bg);
  color: var(--pt-muted);
  font-size: 0.8em;
  line-height: 1.35;
  text-align: left;
}

.ps-box {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border: 0.14em solid currentColor;
  border-radius: 0.3em;
  transition: background 0.15s ease;
}

.ps-check.is-checked .ps-box {
  border-color: var(--pt-ink);
  background: var(--pt-ink);
}

.ps-check.is-checked .ps-box::after {
  content: '';
  width: 0.42em;
  height: 0.78em;
  margin-top: -0.18em;
  border: solid var(--pt-pill-ink);
  border-width: 0 0.16em 0.16em 0;
  transform: rotate(45deg);
}

.ps-primary {
  width: 100%;
  padding: 0.95em 1em;
  border: 1px solid var(--pt-edge);
  border-radius: 0.8em;
  background: var(--pt-accent);
  color: var(--pt-accent-ink);
  font-weight: 800;
  box-shadow: 0 0.35em 0.9em rgba(0, 0, 0, 0.16);
  transition: filter 0.15s ease;
}

.ps-primary:hover,
.ps-social:hover,
.ps-ghost:hover {
  filter: brightness(1.06);
}

.ps-primary.is-pulsing {
  animation: pulse 1.3s ease-in-out infinite;
}

.ps-hint {
  margin: 0;
  color: var(--pt-muted);
  font-size: 0.88em;
}

.ps-welcome {
  margin: 0;
  font-size: 1.1em;
  font-weight: 800;
}

.ps-actions,
.ps-done-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  width: 100%;
}

.ps-social {
  padding: 0.85em 1em;
  border: 0;
  border-radius: 0.8em;
  color: #fff;
  font-size: 0.94em;
  font-weight: 800;
  box-shadow: 0 0.3em 0.8em rgba(0, 0, 0, 0.16);
  transition:
    transform 0.12s ease,
    filter 0.12s ease;
}

.ps-social-facebook {
  background: #1877f2;
}

.ps-social-instagram {
  background: #e1306c;
}

.ps-social-tiktok {
  background: #010101;
}

.ps-social-website {
  background: #334155;
}

.ps-social.is-pressed {
  filter: brightness(0.9);
  transform: scale(0.97);
}

.ps-ghost {
  padding: 0.8em 1em;
  border: 1px solid var(--pt-ghost-border);
  border-radius: 0.8em;
  background: var(--pt-ghost-bg);
  color: var(--pt-ink);
  font-size: 0.94em;
  font-weight: 800;
}

.ps-connecting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1em;
  padding: 2.4em 0;
}

.ps-connecting p {
  margin: 0;
}

.ps-spinner {
  width: 2.6em;
  height: 2.6em;
  border: 0.3em solid var(--pt-spin-track);
  border-top-color: var(--pt-ink);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.ps-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45em;
  width: 100%;
  padding: 0.8em 0;
}

.ps-emoji {
  margin: 0;
  font-size: 3.2em;
  line-height: 1.1;
}

.ps-title {
  margin: 0;
  font-size: 1.32em;
  font-weight: 800;
}

.ps-body {
  margin: 0 0 0.5em;
  color: var(--pt-muted);
  font-size: 0.9em;
}

.ps-foot {
  margin: 0.3em 0 0;
  color: var(--pt-faint);
  font-size: 0.7em;
}

.ps-menu {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.ps-menu-head {
  position: relative;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.45em;
  padding: 0.5em 1em 0.95em;
  text-align: center;
}

.ps-menu-head .ps-name {
  font-size: 1.18em;
}

.ps-back {
  position: absolute;
  top: 0.35em;
  left: 0.75em;
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pt-ink);
}

.ps-back:hover {
  background: var(--pt-ghost-bg);
}

.ps-back svg {
  width: 1.3em;
  height: 1.3em;
}

.ps-tabs {
  display: flex;
  flex-shrink: 0;
  gap: 0.4em;
  padding: 0.55em 0.8em;
  overflow-x: auto;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  scrollbar-width: none;
}

.ps-tab {
  flex-shrink: 0;
  padding: 0.5em 0.9em;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.8em;
  font-weight: 800;
  white-space: nowrap;
}

.ps-tab[aria-current] {
  background: var(--pt-accent);
  color: var(--pt-accent-ink);
  box-shadow: 0 0.15em 0.4em rgba(0, 0, 0, 0.16);
}

.ps-menu-list {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 0 0.8em 0.8em;
  overflow-y: auto;
  /* No scroll-behavior: smooth here — it would also animate demo.js putting
     the list back where it was after a re-render. Tab jumps ask for smooth
     scrolling themselves. */
  scrollbar-width: none;
}

.ps-cat {
  margin: 0.95em 0 0.5em;
  font-size: 0.92em;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-shadow: var(--pt-shadow);
  text-transform: uppercase;
}

.ps-item {
  display: flex;
  align-items: center;
  gap: 0.65em;
  margin-bottom: 0.5em;
  padding: 0.55em;
  border-radius: 0.8em;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

.ps-thumb {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  border-radius: 0.38em;
  font-size: 1.45em;
  line-height: 1;
}

.ps-thumb-orange {
  background: #ffedd5;
}

.ps-thumb-rose {
  background: #ffe4e6;
}

.ps-thumb-red {
  background: #fee2e2;
}

.ps-thumb-amber {
  background: #fef3c7;
}

.ps-thumb-pink {
  background: #fce7f3;
}

.ps-thumb-green {
  background: #dcfce7;
}

.ps-item-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.ps-item-name {
  overflow: hidden;
  font-size: 0.9em;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-item-desc {
  display: -webkit-box;
  overflow: hidden;
  color: #64748b;
  font-size: 0.72em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.ps-price {
  font-size: 0.88em;
  font-weight: 800;
  white-space: nowrap;
}

.ps-fee {
  margin: 0.4em 0 0;
  color: var(--pt-muted);
  font-size: 0.76em;
  text-align: center;
  text-shadow: var(--pt-shadow);
}

.phone-screen.is-entering .ps-portal > *,
.phone-screen.is-entering .ps-menu {
  animation: rise 0.35s ease both;
}

.phone-screen.is-switching {
  animation: flicker 0.3s ease;
}


/* ─── Key figures: floating over the hero's edge, rolling up ────────────── */

.facts {
  position: relative;
  z-index: 1;
  padding: 0 0 56px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: -72px;
}

.fact {
  padding: 28px 32px;
  border-radius: 20px;
  background: var(--rv-paper);
  box-shadow: var(--rv-e2);
  transition: transform 200ms var(--rv-ease-out);
}

.fact:hover {
  transform: translateY(-4px);
}

.fact:nth-child(2),
.fact:nth-child(3) {
  grid-column: span 2;
}

.fact-value {
  --odo-h: 56px;
  display: flex;
  margin: 0;
  color: var(--rv-ink-900);
  font-size: 56px;
  line-height: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.fact-label {
  margin: 12px 0 0;
  color: var(--rv-ink-600);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

/* The odometer: each digit is a strip of 0–9 twice, parked on its own value
   (d0–d9). Without the roll it simply reads as the figure. A figure wider than
   its card (in English, "30 min–12 h" in a one-column card between 1024 and
   about 1240 px) wraps between its parts instead of running out of the card. */
.odo {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* A number's digits stay together. */
.odo-num {
  display: inline-flex;
}

.odo-digit,
.odo-text {
  display: inline-block;
  height: var(--odo-h);
  line-height: var(--odo-h);
}

.odo-digit {
  overflow: hidden;
}

.odo-text {
  white-space: pre;
}

.odo-strip {
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--odo-i, 10) * var(--odo-h) * -1));
}

.odo-strip > span {
  display: block;
  height: var(--odo-h);
}

.d0 { --odo-i: 10; }
.d1 { --odo-i: 11; }
.d2 { --odo-i: 12; }
.d3 { --odo-i: 13; }
.d4 { --odo-i: 14; }
.d5 { --odo-i: 15; }
.d6 { --odo-i: 16; }
.d7 { --odo-i: 17; }
.d8 { --odo-i: 18; }
.d9 { --odo-i: 19; }
.n1 { --odo-n: 1; }
.n2 { --odo-n: 2; }
.n3 { --odo-n: 3; }
.n4 { --odo-n: 4; }
.n5 { --odo-n: 5; }

/* Rolls from the top of the strip down to the figure, digit by digit. */
.fact.is-counting .odo-strip {
  animation: odoRoll 1400ms var(--rv-ease-out) both;
  animation-delay: calc(var(--count-delay, 0ms) + var(--odo-n, 0) * 80ms);
}

/* ─── Bands and section heads ───────────────────────────────────────────── */

.section {
  padding-block: var(--rv-section);
}

.section-soft {
  background: var(--rv-mist);
}

.section-sand {
  background: var(--rv-sand);
}

.section-dark {
  background: var(--rv-night);
  color: var(--rv-ink-300);
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head.is-center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--rv-cyan-700);
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--rv-ink-900);
  font-size: 44px;
  line-height: 50px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-lead {
  margin: 20px 0 0;
  color: var(--rv-ink-600);
  font-size: 21px;
  line-height: 32px;
  text-wrap: pretty;
}

.section-head.is-center .section-lead {
  max-width: 60ch;
  margin-inline: auto;
}

.section-dark .kicker {
  color: var(--rv-cyan-500);
}

.section-dark .section-title {
  color: #fff;
}

.section-dark .section-lead {
  color: var(--rv-ink-300);
}

/* ─── Cards and bento grids ─────────────────────────────────────────────── */

.cards {
  display: grid;
  gap: 24px;
}

.card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--rv-ink-200);
  border-radius: 20px;
  background: var(--rv-paper);
  transition:
    box-shadow 200ms var(--rv-ease-out),
    transform 200ms var(--rv-ease-out);
}

/* Hover: the card lifts and its badge nudges. */
.card:hover {
  box-shadow: var(--rv-e2);
  transform: translateY(-4px);
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--rv-mist);
  color: var(--rv-cyan-700);
  transition:
    transform 200ms var(--rv-ease-out),
    background-color 200ms var(--rv-ease-out),
    color 200ms var(--rv-ease-out);
}

.icon-badge .icon {
  width: 24px;
  height: 24px;
}

.card:hover .icon-badge,
.setup-step:hover .icon-badge {
  transform: translateY(-2px) rotate(-6deg);
}

.icon-badge-lg {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.icon-badge-lg .icon {
  width: 28px;
  height: 28px;
}

.card-title {
  margin: 20px 0 8px;
  color: var(--rv-ink-900);
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.card-body {
  margin: 0;
  color: var(--rv-ink-600);
  font-size: 17px;
  line-height: 28px;
  text-wrap: pretty;
}

/* Tinted cards on Paper: no border, and the badge turns white. */
.card.tint-mist {
  border-color: transparent;
  background: var(--rv-mist);
}

.card.tint-sand {
  border-color: transparent;
  background: var(--rv-sand);
}

.card.tint-mist .icon-badge,
.card.tint-sand .icon-badge {
  background: var(--rv-paper);
}

.card.tint-sand .icon-badge {
  color: var(--rv-ink-900);
}

.card.tint-mist:hover .icon-badge {
  background: var(--rv-cyan-500);
  color: var(--rv-night);
}

.card.tint-sand:hover .icon-badge {
  background: var(--rv-night);
  color: #fff;
}

/* On the Sand band, cards are white with no border and rest on e1. */
.section-sand .card {
  border-color: transparent;
  box-shadow: var(--rv-e1);
}

.section-sand .card:hover {
  box-shadow: var(--rv-e2);
}

/* Sand badges in the human sections. */
.section-sand .icon-badge,
.setup-step .icon-badge {
  background: var(--rv-sand);
  color: var(--rv-ink-900);
}

.section-sand .card:hover .icon-badge,
.setup-step:hover .icon-badge {
  background: var(--rv-night);
  color: #fff;
}

.bento {
  display: grid;
  gap: 24px;
}

/* Why BizFi: one wide, one tall, two small. */
.bento-why {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    'a a b'
    'c d b';
}

.bento-why .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 248px;
}

.bento-a {
  grid-area: a;
}

.bento-b {
  grid-area: b;
}

.bento-c {
  grid-area: c;
}

.bento-d {
  grid-area: d;
}

.bento-why .bento-a .card-title,
.bento-why .bento-b .card-title {
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.02em;
}

.bento-why .bento-a .card-body {
  max-width: 52ch;
}

/* The tall card keeps its words at the bottom, the badge at the top. */
.bento-why .bento-b .card-title {
  margin-top: auto;
  padding-top: 56px;
}

.bento-why .bento-a .icon-badge,
.bento-why .bento-b .icon-badge,
.bento-venues .bento-wide .icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 20px;
}

.bento-why .bento-a .icon-badge .icon,
.bento-why .bento-b .icon-badge .icon,
.bento-venues .bento-wide .icon-badge .icon {
  width: 32px;
  height: 32px;
}

/* Venues: six cards on four columns, the first and the last wide. */
.bento-venues {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bento-venues .bento-wide {
  display: grid;
  grid-column: span 2;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  column-gap: 24px;
}

.bento-venues .bento-wide .icon-badge {
  grid-row: span 2;
}

.bento-venues .bento-wide .card-title {
  margin-top: 4px;
}

/* ─── How it works: Night band; the steps light up in turn on scroll ────── */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--rv-ink-700);
  border-radius: 20px;
  background: var(--rv-ink-800);
  transition:
    background-color 360ms var(--rv-ease-out),
    border-color 360ms var(--rv-ease-out);
}

/* The rail on each step's top edge fills as the steps come up. Without the
   page script it is simply full. */
.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--rv-cyan-500);
  transform-origin: 0 50%;
}

.steps[data-progress] .step::before {
  transform: scaleX(var(--sp, 0));
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--rv-cyan-500);
}

.step-icon .icon {
  width: 28px;
  height: 28px;
  transition:
    transform 360ms var(--rv-ease-out),
    color 360ms var(--rv-ease-out);
}

.step-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--rv-cyan-500);
  color: var(--rv-night);
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
  transition:
    background-color 360ms var(--rv-ease-out),
    color 360ms var(--rv-ease-out);
}

.step-title {
  margin: 24px 0 8px;
  color: #fff;
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
  transition: color 360ms var(--rv-ease-out);
}

.step-body {
  margin: 0;
  color: var(--rv-ink-300);
  font-size: 17px;
  line-height: 28px;
  text-wrap: pretty;
  transition: color 360ms var(--rv-ease-out);
}

/* A step still to come waits, dimmed; its words stay readable. */
.steps[data-progress] .step:not(.is-active) {
  border-color: var(--rv-ink-800);
  background: #131c2f;
}

.steps[data-progress] .step:not(.is-active) .step-num {
  background: var(--rv-ink-700);
  color: var(--rv-ink-300);
}

.steps[data-progress] .step:not(.is-active) .step-icon .icon {
  color: var(--rv-ink-500);
  transform: translateY(6px);
}

.steps[data-progress] .step:not(.is-active) .step-title {
  color: var(--rv-ink-300);
}

.steps[data-progress] .step:not(.is-active) .step-body {
  color: var(--rv-ink-400);
}

.steps[data-progress] .step.is-active .step-num {
  animation: rvPop 480ms var(--rv-ease-out);
}

.how-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 760px;
  margin: 48px auto 0;
  padding: 16px 20px;
  border: 1px solid var(--rv-ink-700);
  border-radius: 14px;
  background: var(--rv-ink-800);
  color: var(--rv-ink-300);
  font-size: 15px;
  line-height: 24px;
}

.how-note .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--rv-cyan-500);
}

/* ─── Features intro: the numbered index ────────────────────────────────── */

.section-intro {
  padding-bottom: 0;
}

.section-intro .section-head {
  margin-bottom: 40px;
}

.feature-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-index li {
  display: flex;
  min-width: 0;
}

.feature-index a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--rv-ink-200);
  border-radius: 14px;
  background: var(--rv-paper);
  color: var(--rv-ink-900);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 120ms var(--rv-ease-out),
    box-shadow 200ms var(--rv-ease-out),
    transform 200ms var(--rv-ease-out);
}

.feature-index a:hover {
  border-color: var(--rv-cyan-500);
  box-shadow: var(--rv-e2);
  transform: translateY(-2px);
}

.fi-badge {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--rv-cyan-500);
  transition: transform 200ms var(--rv-ease-out);
}

.feature-index a:hover .fi-badge {
  transform: translateY(-2px) rotate(-6deg);
}

.feature-index .fi-badge .icon {
  width: 20px;
  height: 20px;
  color: var(--rv-night);
}

.fi-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fi-num {
  color: var(--rv-ink-600);
  font-family: var(--rv-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

/* ─── Feature cards: rounded surfaces in the page flow, devices rising out ─ */

/* Cards follow one another with Paper between them, so Mist and Sand never
   touch; each device rises into that gap (the lift) and still leaves clear
   Paper above it. */
.features {
  --fx-lift: 72px;
  --fx-pad-top: 88px;
  --fx-pad-bottom: 72px;
  --fx-gap: 160px;
  padding-bottom: var(--rv-section);
}

/* Surface and split come from the modifier classes below. The base rule only
   falls back to them, so a modifier always wins. */
.spotlight.fx {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: var(--fx-gap) 24px 0;
  padding: var(--fx-pad-top) 0 var(--fx-pad-bottom);
  border-radius: 28px;
  background: var(--fx-bg, var(--rv-mist));
}

/* Mist and Sand alternate; Night is kept for Privacy & GDPR alone. */
.fx-mist {
  --fx-bg: var(--rv-mist);
}

.fx-sand {
  --fx-bg: var(--rv-sand);
}

.fx-night {
  --fx-bg: var(--rv-night);
}

.fx .spotlight-grid {
  display: grid;
  flex: 1 0 auto;
  grid-template-columns: minmax(0, var(--copy, 5fr)) minmax(0, var(--visual, 7fr));
  align-items: start;
  gap: 64px;
}

.fx-57 {
  --copy: 5fr;
  --visual: 7fr;
}

.fx-66 {
  --copy: 6fr;
  --visual: 6fr;
}

.fx-75 {
  --copy: 7fr;
  --visual: 5fr;
}

.fx-flip .spotlight-grid {
  grid-template-columns: minmax(0, var(--visual, 7fr)) minmax(0, var(--copy, 5fr));
}

.fx-flip .spotlight-copy {
  order: 2;
}

.fx .spotlight-copy {
  align-self: center;
}

/* The device rises out of the card's top edge. */
.fx .spotlight-visual {
  position: relative;
  align-self: start;
  min-width: 0;
  margin-top: calc(-1 * (var(--fx-pad-top) + var(--fx-lift)));
}

/* Device frames take the device shadow; the screens inside are untouched. */
.fx-device > .m-window {
  box-shadow: var(--rv-e3);
}

.m-menu-stage > .phone {
  filter: none;
}

.m-menu-stage > .phone .phone-frame {
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(11, 20, 38, 0.5),
    var(--rv-e3);
}

/* Numbered kicker: 01–10, matching the feature index. */
.kicker-n {
  color: var(--rv-ink-900);
  font-family: var(--rv-mono);
  letter-spacing: 0;
}

.kicker-line {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--rv-cyan-200);
}

.spotlight-title {
  margin: 0;
  color: var(--rv-ink-900);
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.spotlight-lead {
  margin: 20px 0 0;
  color: var(--rv-ink-600);
  font-size: 17px;
  line-height: 28px;
  text-wrap: pretty;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--rv-ink-900);
  font-size: 17px;
  line-height: 28px;
}

.checklist .icon {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  color: var(--rv-cyan-700);
  stroke-width: 2.5;
}

.spotlight-note {
  display: flex;
  gap: 12px;
  margin: 24px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--rv-warning-line);
  border-radius: 14px;
  background: var(--rv-warning-bg);
  color: var(--rv-ink-900);
  font-size: 15px;
  line-height: 24px;
}

.spotlight-note .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--rv-warning-icon);
}

/* Night: white titles, soft ink, Cyan accents. */
.fx-night .kicker {
  color: var(--rv-cyan-500);
}

.fx-night .kicker-n,
.fx-night .spotlight-title {
  color: #fff;
}

.fx-night .kicker-line {
  background: var(--rv-cyan-700);
}

.fx-night .spotlight-lead,
.fx-night .checklist li {
  color: var(--rv-ink-300);
}

.fx-night .checklist .icon {
  color: var(--rv-cyan-500);
}

/* Bullets as tiles (QR, Privacy): a small bento beside the device. */
.fx-tiles .checklist {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fx-tiles .checklist li {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--rv-paper);
  font-size: 15px;
  line-height: 22px;
}

.fx-tiles .checklist .icon {
  margin-top: 2px;
}

.fx-night.fx-tiles .checklist li {
  border: 1px solid var(--rv-ink-700);
  background: var(--rv-ink-800);
}

/* One bullet of each section floats by its device as a small card. It
   touches the device's lower edge only over the frame's own padding. */
.fx-callout {
  --callout-overlap: 12px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: min(300px, calc(100% - 64px));
  margin: calc(-1 * var(--callout-overlap)) 0 0 32px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: var(--rv-paper);
  box-shadow: var(--rv-e2);
  color: var(--rv-ink-900);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  animation: rvFloat 6s var(--rv-ease-io) infinite;
}

.fx-callout.is-end {
  margin-right: 32px;
  margin-left: auto;
  animation-delay: -3s;
}

.fx-callout.is-snug {
  --callout-overlap: 8px;
}

.fx-callout.is-clear {
  --callout-overlap: -20px;
}

.fx-callout-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--rv-cyan-500);
  color: var(--rv-night);
}

.fx-callout-icon .icon {
  width: 20px;
  height: 20px;
}

.fx-callout-text {
  min-width: 0;
  text-wrap: pretty;
}

/* Full-width moments (Languages, UniFi): the visual runs across the card,
   the copy sits below it in two columns. */
.fx-wide .spotlight-grid {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 56px;
}

.fx-wide .spotlight-visual {
  order: -1;
}

.fx-wide .spotlight-copy {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-content: start;
  align-self: start;
  column-gap: 64px;
}

.fx-wide .spotlight-copy > * {
  grid-column: 1;
}

.fx-wide .spotlight-copy > .kicker {
  justify-self: start;
}

.fx-wide .spotlight-copy > .checklist {
  grid-column: 2;
  grid-row: 1 / span 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: start;
  gap: 16px 32px;
  margin: 0;
}

/* ─── Mockups: shared ───────────────────────────────────────────────────── */

.m-window,
.m-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  color: #0f172a;
  font-size: 13px;
  line-height: 1.4;
}

.m-window {
  overflow: hidden;
}

.m-card {
  padding: 18px;
}

.m-window .icon,
.m-card .icon,
.m-net .icon {
  width: 15px;
  height: 15px;
}

.m-bar-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.m-dots {
  display: inline-flex;
  gap: 6px;
}

.m-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.m-dots i:nth-child(2) {
  background: #febc2e;
}

.m-dots i:nth-child(3) {
  background: #28c840;
}

.m-url {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 360px;
  margin: 0 auto;
  padding: 4px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.m-url .icon {
  width: 11px;
  height: 11px;
}

.m-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
}

.m-card-title .icon {
  width: 18px;
  height: 18px;
  color: var(--brand-text);
}

.m-label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.m-muted {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.m-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.m-btn-dark {
  background: #0f172a;
  color: #fff;
}

.m-btn-outline {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #0f172a;
}

.m-btn-danger {
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

.m-input,
.m-select {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12.5px;
}

.m-input span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-select {
  justify-content: space-between;
  color: #0f172a;
  white-space: nowrap;
}

.m-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.m-pill.is-yes {
  background: #0f172a;
  color: #fff;
}

.m-switch {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: #cbd5e1;
}

.m-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.m-switch.is-on {
  background: #0f172a;
}

.m-switch.is-on::after {
  left: 16px;
}

.m-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.m-radios-col {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 4px;
}

.m-radio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.m-radio-dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
}

.m-radio.is-active {
  border-color: #0f172a;
}

.m-radio.is-active .m-radio-dot {
  border-color: #0f172a;
  background: radial-gradient(circle, #0f172a 0 3px, transparent 3.5px);
}

.m-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.m-actions-end {
  justify-content: flex-end;
}

.m-slider {
  position: relative;
  display: block;
  height: 6px;
  margin: 10px 8px 0 0;
  border-radius: 999px;
  background: #e2e8f0;
}

.m-slider-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 999px;
  background: #0f172a;
}

.m-slider-fill::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid #0f172a;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.w-10 {
  width: 10%;
}

.w-13 {
  width: 13%;
}

.w-14 {
  width: 14%;
}

.w-65 {
  width: 65%;
}

.w-100 {
  width: 100%;
}

/* ─── Mockup: branding editor ───────────────────────────────────────────── */

.m-branding-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px;
}

.m-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.m-tabs {
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  padding: 4px;
  overflow: hidden;
  border-radius: 10px;
  background: #f1f5f9;
}

.m-tab {
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.m-tab.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: var(--shadow-sm);
}

.m-langtabs {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}

.m-langtabs span {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
}

.m-langtabs .is-active {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

.m-textarea {
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
}

.m-color {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.m-swatch {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
}

.m-swatch-accent {
  background: #be185d;
}

.m-swatch-bg {
  background: #f9dce6;
}

.m-segmented {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 6px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.m-segmented span {
  padding: 6px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.m-segmented span + span {
  border-left: 1px solid var(--line);
}

.m-segmented .is-active {
  background: #0f172a;
  color: #fff;
}

.m-saved {
  color: var(--ok);
  font-size: 12px;
  font-weight: 800;
}

.m-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

/* ─── Mockup: guest table ───────────────────────────────────────────────── */

.m-app {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
}

.m-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 10px;
  border-right: 1px solid var(--line);
}

.m-sidebar-logo {
  width: auto;
  height: 34px;
  margin: 0 6px 14px;
}

.m-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 7px;
  color: #475569;
  font-size: 12.5px;
}

.m-nav.is-active {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
}

.m-main {
  min-width: 0;
  padding: 16px;
  background: #f8fafc;
}

.m-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.m-h {
  margin: 0 auto 0 0;
  font-size: 18px;
  font-weight: 800;
}

.m-toolbar .m-input {
  width: 196px;
}

.m-subtabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 10px;
  padding: 3px;
  border-radius: 9px;
  background: #e9eef4;
}

.m-subtabs span {
  padding: 5px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.m-subtabs .is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: var(--shadow-sm);
}

.m-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  border-spacing: 0;
  border-collapse: separate;
  background: #fff;
  font-size: 12px;
}

.m-table th {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.m-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}

.m-table tr:last-child td {
  border-bottom: 0;
}

.m-table tr.is-new td {
  background: #ecfeff;
}

.m-mono {
  color: #334155;
  font-variant-numeric: tabular-nums;
}

/* ─── Mockup: menu ──────────────────────────────────────────────────────── */

.m-menu-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 4%;
}

.m-builder {
  position: absolute;
  right: 0;
  bottom: 7%;
  width: 300px;
}

.m-cat {
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.m-cat.is-hidden {
  background: #f8fafc;
  opacity: 0.6;
}

.m-cat-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-cat-head strong {
  font-size: 13px;
}

.m-cat-head .m-switch {
  margin-left: auto;
}

.m-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 10.5px;
  font-weight: 700;
}

.m-card .m-badge .icon {
  width: 11px;
  height: 11px;
}

.m-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 12.5px;
}

.m-card .m-item .icon {
  color: #94a3b8;
}

.m-thumb {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #f1f5f9;
  font-size: 14px;
}

.m-price {
  margin-left: auto;
  font-weight: 800;
  white-space: nowrap;
}

.m-item.is-lifted {
  border-color: #7dd3fc;
  background: #f0f9ff;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg) translateX(6px);
}

.m-drop-line {
  height: 3px;
  margin: 6px 4px 0;
  border-radius: 3px;
  background: var(--brand);
}

.m-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

/* ─── Mockup: QR + stats ────────────────────────────────────────────────── */

.m-qr-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
  gap: 16px;
}

.m-qr {
  display: grid;
  place-items: center;
  margin-top: 12px;
  padding: 16px;
  border-radius: 12px;
  background: #f8fafc;
}

.m-qr-svg {
  display: block;
  width: 100%;
  max-width: 190px;
  height: auto;
}

.m-stats {
  margin-top: 56px;
}

.m-bars {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.m-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
}

.m-bar-label {
  grid-row: 1;
  grid-column: 1;
  color: #334155;
  font-size: 12px;
}

.m-bar-value {
  grid-row: 1;
  grid-column: 2;
  font-size: 13px;
  font-weight: 800;
}

.m-bar {
  grid-row: 2;
  grid-column: 1 / -1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.m-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.fill-0 {
  background: linear-gradient(90deg, #3b0764, #9d174d);
}

.fill-1 {
  background: linear-gradient(90deg, #0077b6, #00b0e7);
}

.fill-2 {
  background: #94a3b8;
}

/* ─── Mockup: Glovo import ──────────────────────────────────────────────── */

.m-glovo-stage {
  max-width: 520px;
  margin: 0 auto;
}

.m-input-row {
  display: flex;
  gap: 8px;
}

.m-input-url {
  display: block;
  flex: 1;
  overflow: hidden;
  color: #0f172a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-success {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 12.5px;
  font-weight: 700;
}

.m-card .m-success .icon {
  width: 17px;
  height: 17px;
  color: var(--ok);
}

.m-imported {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.m-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 600;
}

.m-chip .m-thumb {
  border-radius: 50%;
}

.m-chip b {
  color: var(--brand-text);
  font-weight: 800;
}


/* ─── Language cards: a wave across the card (typography, not app UI) ───── */

.m-langs {
  display: grid;
  gap: 12px;
}

.fx-langs .m-langs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.m-lang-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 20px;
  border-radius: 20px;
  background: var(--rv-paper);
  box-shadow: var(--rv-e2);
}

.fx-langs .m-lang-card:nth-child(even) {
  margin-top: 48px;
}

/* Round pills echo the guest page. */
.m-lang-code {
  display: grid;
  flex-shrink: 0;
  grid-row: 1 / span 2;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--rv-night);
  color: #fff;
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.m-lang-greet {
  margin: 0;
  color: var(--rv-ink-900);
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.m-lang-meta {
  margin: 0;
  color: var(--rv-ink-600);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.m-caption {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: var(--rv-ink-600);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-align: center;
}

/* ─── Consent → tracking diagram (a concept, not app UI) ────────────────── */

/* It is the thing that rises out of its card's top edge, so it takes the
   device shadow. The ticks are shared with the privacy mockup. */
.m-marketing {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px;
  border: 0;
  border-radius: 20px;
  background: var(--rv-paper);
  box-shadow: var(--rv-e3);
  color: var(--rv-ink-900);
  font-size: 15px;
  line-height: 1.5;
}

.m-marketing .m-card-title {
  gap: 10px;
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.m-marketing .m-card-title .icon {
  width: 20px;
  height: 20px;
  color: var(--rv-cyan-700);
}

.m-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--rv-ink-200);
  border-radius: 14px;
}

.m-flow.is-off {
  border-style: dashed;
  border-color: var(--rv-ink-300);
}

.m-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
}

.m-tick {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
}

.m-card .m-tick .icon {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}

.m-marketing .m-tick {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--rv-cyan-500);
  color: var(--rv-night);
}

.m-marketing .m-tick .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.m-marketing .m-flow.is-off .m-tick {
  background: var(--rv-ink-100);
  color: var(--rv-ink-500);
}

.m-marketing .m-arrow .icon {
  width: 20px;
  height: 20px;
  color: var(--rv-cyan-500);
}

.m-marketing .m-flow.is-off .m-arrow .icon {
  color: var(--rv-ink-400);
}

.m-tool {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.m-tool strong {
  font-size: 15px;
  line-height: 20px;
}

.m-tool small {
  color: var(--rv-ink-600);
  font-family: var(--rv-mono);
  font-size: 13px;
  line-height: 18px;
}

.m-flow.is-off .m-consent,
.m-flow.is-off .m-tool strong {
  color: var(--rv-ink-600);
}

/* ─── Mockup: privacy ───────────────────────────────────────────────────── */

.m-card-dark {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, #14223f 0%, #0d1729 100%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  color: var(--dark-text);
}

.m-card-dark .m-card-title {
  color: #fff;
}

.m-card-dark .m-card-title .icon {
  color: var(--brand-bright);
}

.m-privacy {
  max-width: 480px;
  margin: 0 auto;
}

.m-consents {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.m-consents li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.m-card-dark .m-tick {
  background: var(--brand);
  color: var(--ink);
}

.m-card-dark .m-tick.is-off {
  background: rgba(255, 255, 255, 0.12);
  color: var(--dark-muted);
}

.m-tag {
  margin-left: auto;
  color: var(--dark-muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.m-version {
  margin: 10px 0 0 30px;
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 11px;
}

.m-divider {
  margin: 16px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.m-row-label {
  margin: 0 0 10px;
  font-size: 12.5px;
}

.m-row-label strong {
  color: #fff;
}

.m-card-dark .m-slider {
  background: rgba(255, 255, 255, 0.15);
}

.m-card-dark .m-slider-fill {
  background: var(--brand);
}

.m-card-dark .m-slider-fill::after {
  border-color: var(--brand);
}

.m-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  color: var(--dark-muted);
  font-size: 12px;
}

.m-erase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.m-erase small {
  color: var(--dark-muted);
  font-size: 11.5px;
}

.m-eu {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid rgba(0, 176, 231, 0.28);
  border-radius: 12px;
  background: rgba(0, 176, 231, 0.1);
}

.m-eu-badge {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px dotted #fde047;
  border-radius: 50%;
  background: #1e3a8a;
  color: #fde047;
  font-size: 12px;
  font-weight: 800;
}

.m-eu strong {
  display: block;
  color: #fff;
  font-size: 13px;
}

.m-eu small {
  color: var(--dark-muted);
  font-size: 12px;
}


/* ─── Network diagram (a concept, not app UI) ───────────────────────────── */

/* In its full-width card the diagram is a white panel rising out of the top;
   the status card (app replica, unchanged) rests over the panel's corner. */
.m-unifi {
  position: relative;
  padding-bottom: 32px;
}

.m-net {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 32px 32px 28px;
  border-radius: 20px;
  background: var(--rv-paper);
  box-shadow: var(--rv-e3);
  list-style: none;
}

.m-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  text-align: center;
}

.m-node::after {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(50% + 36px);
  width: calc(100% - 64px);
  height: 2px;
  background: var(--rv-ink-300);
}

.m-node:last-child::after {
  display: none;
}

/* The Cloud Connector leg: dashed, in the accent. */
.m-node:nth-child(3)::after,
.m-node:nth-child(4)::after {
  height: 0;
  border-top: 2px dashed var(--rv-cyan-500);
  background: none;
}

.m-node-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: var(--rv-mist);
  color: var(--rv-cyan-700);
}

.m-net .m-node-icon .icon {
  width: 28px;
  height: 28px;
}

.m-node.is-cloud .m-node-icon {
  background: var(--rv-cyan-500);
  color: var(--rv-night);
}

/* The logo at its 48 px minimum, straight on the white panel. */
.m-node.is-bizfi .m-node-icon {
  width: auto;
  background: none;
}

.m-node.is-bizfi img {
  width: auto;
  height: 48px;
}

.m-node strong {
  color: var(--rv-ink-900);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.m-node small {
  color: var(--rv-ink-600);
  font-family: var(--rv-mono);
  font-size: 12px;
  line-height: 16px;
}

/* The status card is the app's own (a replica), drawn as the app draws it. */
.m-unifi-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.m-ok {
  color: var(--ok);
  font-size: 13px;
  font-weight: 800;
}

.m-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 12px;
  font-weight: 800;
}

.fx-net .m-unifi-status {
  position: absolute;
  right: 40px;
  bottom: 0;
  max-width: calc(100% - 80px);
}

/* ─── Mockup: locations + team ──────────────────────────────────────────── */

.m-team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.m-members {
  margin-top: 48px;
}

.m-loc,
.m-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.m-loc + .m-loc,
.m-member + .m-member {
  border-top: 1px solid #f1f5f9;
}

.m-loc-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(160deg, #3b0764, #9d174d);
  color: #22d3ee;
}

.m-card .m-loc-icon .icon {
  width: 17px;
  height: 17px;
}

.m-loc-text,
.m-member-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.m-loc-text strong,
.m-member-text strong {
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-loc-text small,
.m-member-text small {
  color: var(--muted);
  font-size: 11.5px;
}

.m-loc .m-pill,
.m-role,
.m-link {
  margin-left: auto;
}

.m-member .avatar {
  width: 30px;
  height: 30px;
  font-size: 0.7rem;
}

.m-member strong {
  font-size: 12.5px;
}

.m-role {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.role-admin {
  background: #0f172a;
  color: #fff;
}

.role-manager {
  background: #e0f2fe;
  color: #075985;
}

.m-member.is-pending .avatar {
  background: #f1f5f9;
  color: var(--muted);
}

.m-link {
  color: var(--brand-text);
  font-size: 12px;
  font-weight: 800;
}


/* ─── Getting started: an asymmetric split, a warm numbered thread ──────── */

.setup-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    'head steps'
    'req steps';
  align-items: start;
  column-gap: 64px;
}

.setup-split .section-head {
  grid-area: head;
  max-width: none;
  margin: 0;
}

.setup-split .setup-steps {
  grid-area: steps;
}

.setup-split .setup-requirement {
  grid-area: req;
}

.setup-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    'badge num'
    'badge title'
    'badge body';
  align-content: start;
  column-gap: 24px;
  padding: 28px 32px;
  border: 1px solid var(--rv-ink-200);
  border-radius: 20px;
  background: var(--rv-paper);
  transition:
    border-color 200ms var(--rv-ease-out),
    box-shadow 200ms var(--rv-ease-out),
    transform 200ms var(--rv-ease-out);
}

.setup-step:hover {
  border-color: transparent;
  box-shadow: var(--rv-e2);
  transform: translateY(-4px);
}

.setup-step .icon-badge {
  grid-area: badge;
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.setup-step .icon-badge .icon {
  width: 28px;
  height: 28px;
}

.setup-num {
  display: inline-flex;
  grid-area: num;
  align-items: center;
  justify-self: start;
  gap: 10px;
  margin: 2px 0 0;
  color: var(--rv-ink-900);
  font-family: var(--rv-mono);
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
}

.setup-num::after {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--rv-cyan-200);
}

.setup-step .card-title {
  grid-area: title;
  margin: 8px 0 6px;
}

.setup-step .card-body {
  grid-area: body;
}

/* A dashed thread joins each step to the next. */
.setup-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 96px;
  bottom: -36px;
  left: 59px;
  border-left: 2px dashed var(--rv-ink-300);
}

.setup-requirement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 32px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--rv-cyan-100);
  border-radius: 14px;
  background: var(--rv-mist);
  color: var(--rv-ink-900);
  font-size: 15px;
  line-height: 24px;
}

.setup-requirement .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--rv-cyan-700);
}

/* ─── FAQ: a clean accordion on Mist ────────────────────────────────────── */

/* Split: the head stays in view on the left while the answers scroll. */
.faq-split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
  column-gap: 64px;
}

.faq-split .section-head {
  position: sticky;
  top: calc(var(--rv-header) + 40px);
  max-width: none;
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 680px;
}

.faq-item {
  border-radius: 20px;
  background: var(--rv-paper);
  box-shadow: var(--rv-e1);
  transition: box-shadow 200ms var(--rv-ease-out);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 20px;
  color: var(--rv-ink-900);
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  transition: background-color 120ms var(--rv-ease-out);
}

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

.faq-item summary:hover {
  background: var(--rv-ink-50);
}

.faq-item summary .icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 999px;
  background: var(--rv-mist);
  color: var(--rv-cyan-700);
  transition:
    transform 200ms var(--rv-ease-out),
    background-color 120ms var(--rv-ease-out),
    color 120ms var(--rv-ease-out);
}

.faq-item summary:hover .icon {
  background: var(--rv-cyan-100);
}

.faq-item[open] summary .icon {
  background: var(--rv-cyan-500);
  color: var(--rv-night);
  transform: rotate(180deg);
}

/* The page script eases the answer's height open and shut; the chevron
   turns back as soon as the answer starts to close. */
.faq-item.is-closing summary .icon {
  background: var(--rv-mist);
  color: var(--rv-cyan-700);
  transform: none;
}

.faq-answer {
  overflow: hidden;
  padding: 0 24px 24px;
  color: var(--rv-ink-600);
  font-size: 17px;
  line-height: 28px;
}

.faq-answer p {
  margin: 0;
}

.faq-item[open] .faq-answer {
  animation: rvFade 200ms var(--rv-ease-out);
}

/* ─── Request a demo: the one Cyan band, the form in a white card ───────── */

.cta-section {
  position: relative;
  background: var(--rv-cyan-500);
  color: var(--rv-night);
}

.cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  align-items: center;
  gap: 64px;
}

.cta-section .kicker,
.cta-section .section-title {
  color: var(--rv-night);
}

.cta-section .section-lead {
  color: var(--rv-ink-800);
}

.cta-points {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.cta-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rv-night);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.cta-points .icon {
  width: 20px;
  height: 20px;
  color: var(--rv-night);
}

.cta-card {
  padding: 40px;
  border-radius: 20px;
  background: var(--rv-paper);
  color: var(--rv-ink-900);
}

.form-title {
  margin: 0 0 24px;
  color: var(--rv-ink-900);
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  color: var(--rv-ink-900);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.demo-form input:not([type='checkbox'], [type='radio']),
.demo-form textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--rv-ink-300);
  border-radius: 10px;
  background-color: var(--rv-paper);
  color: var(--rv-ink-900);
  font: inherit;
  font-size: 16px;
  line-height: 20px;
  transition:
    border-color 120ms var(--rv-ease-out),
    box-shadow 120ms var(--rv-ease-out);
}

.demo-form textarea {
  height: auto;
  min-height: 104px;
  padding: 12px 14px;
  line-height: 24px;
  resize: vertical;
}

.demo-form input:not([type='checkbox'], [type='radio']):focus,
.demo-form textarea:focus {
  border-color: var(--rv-cyan-700);
  outline: none;
  box-shadow: 0 0 0 3px var(--rv-cyan-100);
}

/* Choices: one segmented track, as wide as its field. The options share it in
   equal columns with each label centred; the track keeps 4 px all round and
   between options, so the selected pill is the same size wherever it sits. */
.segmented {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 4px;
  width: 100%;
  padding: 4px;
  border-radius: 14px;
  background: var(--rv-ink-100);
}

/* The options are labels inside a .field: they shed the field label's
   margin. The radio is hidden; the whole label is the target. */
.segmented .segment {
  position: relative;
  display: grid;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.segmented .segment > input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.segmented .segment > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 40px;
  padding: 0 8px;
  border-radius: 10px;
  color: var(--rv-ink-600);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  transition:
    background-color 120ms var(--rv-ease-out),
    box-shadow 120ms var(--rv-ease-out),
    color 120ms var(--rv-ease-out);
}

.segmented .segment:hover > span {
  color: var(--rv-ink-900);
}

/* Selected: the same white pill in every position, same weight. */
.segmented .segment > input:checked + span {
  background: var(--rv-paper);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 1px 3px rgba(15, 23, 42, 0.06);
  color: var(--rv-ink-900);
}

.segmented .segment > input:focus-visible + span {
  outline: 3px solid var(--rv-cyan-700);
  outline-offset: 2px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
  color: var(--rv-ink-900);
  font-size: 15px;
  line-height: 24px;
  cursor: pointer;
}

.consent input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--rv-cyan-700);
}

.consent a {
  font-weight: 700;
}

.req {
  color: var(--rv-error);
  text-decoration: none;
  cursor: help;
}

/* Aligned with the send button, which keeps its natural width. */
.form-note {
  margin: 16px 0 0;
  color: var(--rv-ink-600);
  font-size: 14px;
  line-height: 20px;
}

.form-error {
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--rv-error-line);
  border-radius: 14px;
  background: var(--rv-error-bg);
  color: var(--rv-error);
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
}

.form-success {
  padding: 40px 8px;
  text-align: center;
}

.form-success .form-title {
  margin: 20px 0 8px;
}

.form-success p {
  margin: 0;
  color: var(--rv-ink-600);
  font-size: 17px;
  line-height: 28px;
}

.form-success:focus {
  outline: none;
}

.hp {
  display: none;
}

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

.site-footer {
  padding: 80px 0 32px;
  background: var(--rv-paper);
  color: var(--rv-ink-600);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-brand img {
  width: auto;
  height: 56px;
}

.footer-brand p {
  max-width: 320px;
  margin: 24px 0 0;
  color: var(--rv-ink-600);
  font-size: 15px;
  line-height: 24px;
}

.footer-title {
  margin: 0 0 16px;
  color: var(--rv-ink-600);
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: var(--rv-ink-900);
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--rv-cyan-700);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.footer-col a[aria-current='page'] {
  color: var(--rv-cyan-700);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rv-ink-200);
  color: var(--rv-ink-600);
  font-size: 14px;
  line-height: 20px;
}

.footer-bottom p {
  margin: 0;
}

.footer-tm {
  max-width: 640px;
}

/* ─── Legal pages (privacy, terms) ─────────────────────────────────────── */
/* Plain reading pages: Mist for the table of contents, Sand for the few
   notices that must stand out, Paper everywhere else. */

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-legal a {
  color: inherit;
}

.legal {
  background: var(--rv-paper);
}

.legal-article {
  max-width: 760px;
  padding: 56px 0 96px;
  color: var(--rv-ink-700);
  font-size: 17px;
  line-height: 28px;
}

.legal-title {
  margin: 0;
  color: var(--rv-ink-900);
  font-size: 44px;
  line-height: 50px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.legal-updated {
  margin: 12px 0 0;
  color: var(--rv-ink-600);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.legal-lead {
  margin-top: 24px;
  font-size: 19px;
  line-height: 30px;
  text-wrap: pretty;
}

.legal-lead p {
  margin: 0 0 12px;
}

.legal-toc {
  margin: 40px 0 8px;
  padding: 24px 28px;
  border-radius: 16px;
  background: var(--rv-mist);
}

.legal-toc-title {
  margin: 0 0 8px;
  color: var(--rv-ink-900);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
}

/* The section titles carry their own numbers, so the list shows none. */
.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
  font-size: 15px;
  line-height: 26px;
}

.legal-toc li {
  break-inside: avoid;
}

.legal-section {
  margin-top: 48px;
}

.legal-section h2 {
  margin: 0 0 16px;
  color: var(--rv-ink-900);
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.legal-section h3 {
  margin: 28px 0 8px;
  color: var(--rv-ink-900);
  font-size: 19px;
  line-height: 26px;
  font-weight: 700;
}

.legal-section p,
.legal-section ul,
.legal-section ol {
  margin: 0 0 16px;
}

.legal-section ul,
.legal-section ol {
  padding-left: 24px;
}

.legal-section li + li {
  margin-top: 6px;
}

.legal-section strong {
  color: var(--rv-ink-900);
}

.legal-note {
  margin: 20px 0;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--rv-sand);
}

.legal-note p:last-child {
  margin-bottom: 0;
}

.legal-table {
  width: 100%;
  margin: 8px 0 20px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 24px;
}

.legal-table caption {
  padding-bottom: 8px;
  color: var(--rv-ink-900);
  font-weight: 700;
  text-align: left;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rv-ink-200);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: var(--rv-ink-900);
  font-weight: 700;
}

@media (max-width: 600px) {
  .legal-article {
    padding: 40px 0 72px;
  }

  .legal-title {
    font-size: 32px;
    line-height: 38px;
  }

  .legal-toc ol {
    columns: 1;
  }

  /* On a phone each row becomes a block and each cell is labelled with its
     column, so nothing hides behind a sideways scroll. */
  .legal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .legal-table tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--rv-ink-200);
  }

  .legal-table td {
    display: block;
    padding: 2px 0;
    border: 0;
  }

  .legal-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--rv-ink-900);
    font-weight: 700;
  }
}

/* ─── 404 ───────────────────────────────────────────────────────────────── */

.not-found {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--rv-mist);
}

.not-found-card {
  width: min(100%, 520px);
  padding: 48px 40px;
  border-radius: 20px;
  background: var(--rv-paper);
  box-shadow: var(--rv-e1);
  text-align: center;
}

.not-found-card img {
  width: auto;
  height: 64px;
  margin: 0 auto;
}

.not-found-card section + section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rv-ink-200);
}

.not-found-card h1 {
  margin: 24px 0 8px;
  color: var(--rv-ink-900);
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.not-found-card p {
  margin: 0 0 24px;
  color: var(--rv-ink-600);
  font-size: 17px;
  line-height: 28px;
}

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

/* Arrows move 2 px toward where the button goes. */
.btn .icon {
  transition: transform 120ms var(--rv-ease-out);
}

.btn:hover .icon:last-child {
  transform: translateX(2px);
}

/* Section reveal: added by the page script to what scrolls into view. */
.rv-rise {
  animation: rvRise 360ms var(--rv-ease-out) both;
}

@keyframes rvRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rvFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes rvPop {
  0% {
    transform: scale(0.96);
  }
  45% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rvSpin {
  to {
    transform: rotate(360deg);
  }
}

/* From the top of the strip down to the figure. */
@keyframes odoRoll {
  from {
    transform: translateY(0);
  }
}

/* The app replicas' own motion. */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--pt-edge);
  }
  50% {
    box-shadow: 0 0 0 0.45em transparent;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.4em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes flicker {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

@keyframes nudge {
  0%,
  100% {
    transform: none;
  }
  30% {
    transform: translateX(-3px) rotate(-8deg);
  }
  60% {
    transform: translateX(2px);
  }
}

/* ─── 1024–1279 ─────────────────────────────────────────────────────────── */

@media (max-width: 1279px) {
  :root {
    --rv-section: 96px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

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

  .bento-why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      'a a'
      'b c'
      'd d';
  }

  .bento-why .bento-b .card-title {
    padding-top: 32px;
  }

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

  .fx .spotlight-grid {
    gap: 48px;
  }

  .fx-wide .spotlight-copy {
    column-gap: 48px;
  }

  .setup-split,
  .faq-split {
    column-gap: 48px;
  }
}

/* ─── 768–1023: the menu button replaces the navigation ─────────────────── */

@media (max-width: 1023px) {
  :root {
    --rv-margin: 32px;
    --rv-section: 80px;
    --rv-header: 68px;
  }

  html {
    scroll-padding-top: 84px;
  }

  .nav-toggle {
    display: inline-grid;
  }

  /* The panel slides from under the header. */
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 8px var(--rv-margin) 24px;
    border-bottom: 1px solid var(--rv-ink-200);
    background: var(--rv-paper);
    box-shadow: var(--rv-e2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 200ms var(--rv-ease-out),
      transform 200ms var(--rv-ease-out),
      visibility 200ms;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--rv-ink-200);
    font-size: 17px;
    line-height: 24px;
  }

  .nav-actions {
    flex-wrap: wrap;
    padding-top: 16px;
  }

  .nav-actions .nav-login,
  .nav-actions .btn {
    flex: 1 1 100%;
    height: 48px;
    border-radius: 14px;
    font-size: 16px;
  }

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

  .fact:nth-child(2),
  .fact:nth-child(3) {
    grid-column: auto;
  }

  .fact-value {
    --odo-h: 44px;
    font-size: 44px;
    line-height: 44px;
  }

  /* Feature cards: one column, the device first, rising out of the top. */
  .features {
    --fx-lift: 48px;
    --fx-pad-top: 64px;
    --fx-pad-bottom: 56px;
    --fx-gap: 120px;
  }

  .spotlight.fx {
    margin-inline: 16px;
    border-radius: 24px;
  }

  .fx .spotlight-grid,
  .fx-flip .spotlight-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .fx .spotlight-visual {
    order: -1;
  }

  .fx-flip .spotlight-copy {
    order: 0;
  }

  .fx .spotlight-copy {
    align-self: start;
  }

  .fx-wide .spotlight-copy {
    grid-template-columns: minmax(0, 1fr);
  }

  .fx-wide .spotlight-copy > .checklist {
    grid-column: 1;
    grid-row: auto;
    margin-top: 28px;
  }

  .fx-langs .m-langs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fx-langs .m-lang-card:nth-child(even) {
    margin-top: 32px;
  }

  .setup-split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      'head'
      'steps'
      'req';
  }

  .setup-split .section-head {
    margin-bottom: 40px;
  }

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

  .faq-split .section-head {
    position: static;
    margin-bottom: 32px;
  }

  .faq-list {
    max-width: none;
  }

  .cta-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .cta-card {
    width: 100%;
    max-width: 560px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ─── 360–767 ───────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
  :root {
    --rv-margin: 16px;
    --rv-section: 64px;
    --rv-header: 64px;
  }

  html {
    scroll-padding-top: 80px;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: calc(var(--rv-section) + 32px);
  }

  .hero-title {
    margin-top: 20px;
    font-size: 40px;
    line-height: 44px;
  }

  .hero-lead {
    font-size: 18px;
    line-height: 28px;
  }

  .hero-ctas {
    margin-top: 32px;
  }

  .hero-trust {
    gap: 10px 20px;
  }

  /* On a phone the labels line up under the device instead of floating. */
  .demo-panel {
    padding: 0;
  }

  .demo-stage {
    flex-wrap: wrap;
    gap: 12px;
  }

  .float {
    position: static;
    animation: none;
  }

  .float-dashboard {
    flex: 0 1 320px;
    width: auto;
    margin-top: 12px;
  }

  .float-dashboard.is-fresh {
    animation: rvPop 0.6s var(--rv-ease-out);
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 30px;
    line-height: 36px;
  }

  .section-lead {
    font-size: 18px;
    line-height: 28px;
  }

  .cards,
  .bento {
    gap: 16px;
  }

  .bento-why,
  .bento-venues,
  .steps,
  .facts-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-why {
    grid-template-areas: none;
  }

  .bento-why .card {
    grid-area: auto;
    min-height: 0;
  }

  .bento-venues .bento-wide {
    grid-column: auto;
  }

  .facts {
    padding-bottom: 40px;
  }

  .facts-grid {
    gap: 16px;
    margin-top: -48px;
  }

  .card,
  .step,
  .setup-step,
  .fact {
    padding: 24px;
  }

  .card-title,
  .step-title {
    font-size: 19px;
    line-height: 26px;
  }

  .bento-why .bento-a .card-title,
  .bento-why .bento-b .card-title {
    font-size: 24px;
    line-height: 30px;
  }

  .card-body,
  .step-body {
    font-size: 16px;
    line-height: 26px;
  }

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

  .features {
    --fx-lift: 40px;
    --fx-pad-top: 40px;
    --fx-pad-bottom: 40px;
    --fx-gap: 96px;
  }

  .spotlight.fx {
    margin-inline: 12px;
    border-radius: 20px;
  }

  .fx .spotlight-grid,
  .fx-flip .spotlight-grid {
    gap: 32px;
  }

  .fx .spotlight-grid {
    width: min(100% - 40px, 1200px);
  }

  .spotlight-title {
    font-size: 24px;
    line-height: 30px;
  }

  .spotlight-lead,
  .checklist li {
    font-size: 16px;
    line-height: 26px;
  }

  .checklist .icon {
    margin-top: 4px;
  }

  .fx-tiles .checklist,
  .fx-wide .spotlight-copy > .checklist {
    grid-template-columns: minmax(0, 1fr);
  }

  .fx-tiles .checklist li {
    font-size: 15px;
    line-height: 22px;
  }

  .fx-callout {
    max-width: calc(100% - 32px);
    margin-left: 16px;
  }

  .fx-callout.is-end {
    margin-right: 16px;
  }

  .fx-langs .m-langs {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .m-lang-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    row-gap: 2px;
    padding: 14px 16px;
  }

  .m-lang-code {
    grid-row: span 2;
  }

  .fx-langs .m-lang-card:nth-child(even) {
    margin: 0 0 0 8%;
  }

  .m-lang-greet {
    font-size: 16px;
    line-height: 24px;
  }

  .m-marketing {
    padding: 20px;
  }

  .m-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .m-arrow {
    display: none;
  }

  .m-tool {
    align-items: flex-start;
    text-align: left;
  }

  /* The network path runs down the page. */
  .m-unifi {
    padding-bottom: 0;
  }

  .m-net {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
  }

  .fx-net .m-unifi-status {
    position: static;
    max-width: none;
    margin-top: 12px;
  }

  .m-node {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    row-gap: 0;
    text-align: left;
  }

  .m-node-icon {
    grid-row: 1 / span 2;
    justify-self: center;
    margin: 0;
  }

  .m-node::after {
    top: calc(100% + 2px);
    left: 39px;
    width: 2px;
    height: 16px;
  }

  .m-node:nth-child(3)::after,
  .m-node:nth-child(4)::after {
    width: 0;
    border: 0;
    border-left: 2px dashed var(--rv-cyan-500);
  }

  .setup-step {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'badge'
      'num'
      'title'
      'body';
  }

  .setup-step .icon-badge {
    margin-bottom: 16px;
  }

  .setup-step:not(:last-child)::after {
    content: none;
  }

  .faq-item summary {
    padding: 16px 18px;
    font-size: 16px;
    line-height: 24px;
  }

  .faq-answer {
    padding: 0 18px 18px;
    font-size: 16px;
    line-height: 26px;
  }

  .cta-card {
    padding: 24px;
  }

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

  .site-footer {
    padding: 64px 0 32px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .not-found-card {
    padding: 32px 24px;
  }
}

/* Under 480 px, calls to action go full width, primary first. */
@media (max-width: 479px) {
  .hero-ctas .btn {
    flex: 1 1 100%;
  }

  .btn-submit {
    width: 100%;
  }

  .form-note {
    text-align: center;
  }
}

/* ─── App replicas at small widths (their own breakpoints) ──────────────── */

@media (max-width: 720px) {
  .m-app {
    grid-template-columns: minmax(0, 1fr);
  }

  .m-sidebar {
    display: none;
  }

  .m-table .col-2,
  .m-toolbar .m-select {
    display: none;
  }

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

  .m-preview {
    order: -1;
  }

  .m-menu-stage {
    flex-direction: column;
    gap: 18px;
    padding-left: 0;
  }

  .m-builder {
    position: static;
    width: min(100%, 340px);
  }

  .m-qr-stage,
  .m-team {
    grid-template-columns: minmax(0, 1fr);
  }

  .m-stats,
  .m-members {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .phone {
    --phone-w: 272px;
  }

  .phone-md {
    --phone-w: 256px;
  }

  .m-toolbar .m-input {
    width: 100%;
    order: 3;
  }

  .m-table .col-5 {
    display: none;
  }
}

@media (max-width: 380px) {
  .phone {
    --phone-w: 252px;
  }
}

/* ─── Reduced motion: no movement, no loops; reveals become a short fade ── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .rv-rise {
    animation: rvFade 120ms linear both !important;
  }

  .rv-spin {
    animation-duration: 2.4s !important;
    animation-iteration-count: infinite !important;
  }

  .float,
  .fx-callout,
  .odo-strip,
  .step-num {
    animation: none !important;
  }

  .card:hover,
  .fact:hover,
  .setup-step:hover,
  .feature-index a:hover,
  .card:hover .icon-badge,
  .setup-step:hover .icon-badge,
  .feature-index a:hover .fi-badge,
  .btn:hover .icon:last-child {
    transform: none;
  }
}
