/* =============================================================================
   ReClaim Miles — bespoke design system
   Hand-authored. No framework, no CDN compiler, no build step.
   ============================================================================= */

/* ---------- 1. Tokens ---------- */

:root {
    color-scheme: dark;

    /* Three deliberate elevation steps: canvas < card < raised control. */
    --rm-bg: #0f1117;
    --rm-bg-alt: #12141c;
    --rm-bg-raised: #161922;
    --rm-surface: #161922;
    --rm-surface-strong: #1d212c;
    --rm-border: rgba(255, 255, 255, 0.10);
    --rm-border-strong: rgba(255, 255, 255, 0.18);
    --rm-highlight: rgba(255, 255, 255, 0.15);

    --rm-text: #ffffff;
    --rm-text-soft: #b9c1cf;
    --rm-muted: #8b94a5;

    --rm-accent: #c2884d;
    --rm-accent-bright: #e2b581;
    --rm-accent-deep: #8f5f2c;
    --rm-accent-wash: rgba(194, 136, 77, 0.14);

    --rm-positive: #34d399;
    --rm-negative: #fb7185;
    --rm-warn: #fbbf24;

    --rm-r-sm: 10px;
    --rm-r-md: 14px;
    --rm-r-lg: 20px;
    --rm-r-xl: 28px;
    --rm-r-pill: 999px;

    --rm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --rm-shadow-md: 0 16px 32px -20px rgba(0, 0, 0, 0.9), 0 2px 6px -2px rgba(0, 0, 0, 0.6);
    --rm-shadow-lg: 0 40px 72px -40px rgba(0, 0, 0, 1), 0 6px 16px -8px rgba(0, 0, 0, 0.7);
    --rm-shadow-accent: 0 20px 50px -26px rgba(194, 136, 77, 0.75);

    --rm-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --rm-gutter: clamp(1.15rem, 4vw, 2.5rem);
    --rm-section: clamp(4.5rem, 9vw, 8rem);
    --rm-max: 1200px;

    --rm-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --rm-font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --rm-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, monospace;
    --rm-nav-h: 4.4rem;

    /* Cursor position for the spotlight/tilt system, set by rm.js per-card;
       defaults keep everything centred and inert until JS attaches. */
    --rm-mx: 50%;
    --rm-my: 50%;
    --rm-tilt-x: 0deg;
    --rm-tilt-y: 0deg;
}

html[data-theme="light"] {
    color-scheme: light;

    /* Neutral canvas, cards on pure white with real borders and drop shadows. */
    --rm-bg: #f4f5f7;
    --rm-bg-alt: #eef0f3;
    --rm-bg-raised: #ffffff;
    --rm-surface: #ffffff;
    --rm-surface-strong: #ffffff;
    --rm-border: #e2e8f0;
    --rm-border-strong: #cbd5e1;
    --rm-highlight: rgba(255, 255, 255, 0.9);

    --rm-text: #0f172a;
    --rm-text-soft: #475569;
    --rm-muted: #64748b;

    --rm-accent: #9c6529;
    --rm-accent-bright: #b87333;
    --rm-accent-deep: #7a4d1e;
    --rm-accent-wash: rgba(184, 115, 51, 0.09);

    --rm-positive: #059669;
    --rm-negative: #be123c;
    --rm-warn: #b45309;

    --rm-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --rm-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
    --rm-shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.16), 0 4px 10px -4px rgba(15, 23, 42, 0.08);
    --rm-shadow-accent: 0 18px 42px -28px rgba(184, 115, 51, 0.42);
}

/* The dot grid reads as harsh graph paper on a light canvas, so soften it right down. */
html[data-theme="light"] .rm-ambient {
    background-image:
        radial-gradient(46rem 34rem at 78% -8%, rgba(194, 136, 77, 0.1), transparent 66%),
        radial-gradient(38rem 30rem at 6% 34%, rgba(120, 90, 190, 0.04), transparent 62%),
        linear-gradient(transparent 95%, rgba(15, 23, 42, 0.04) 95%),
        linear-gradient(90deg, transparent 95%, rgba(15, 23, 42, 0.04) 95%);
}

/* ---------- 2. Reset & base ---------- */

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

/* Author display rules (.rm-stack, .rm-btn, ...) otherwise beat the UA [hidden] rule. */
[hidden] { display: none !important; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    width: 100%;
    max-width: 100%;
    /* clip does not create a scroll container, so sticky headers keep working. */
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    background: var(--rm-bg);
    color: var(--rm-text);
    font-family: var(--rm-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    overflow-x: clip;
    /* Stops inner horizontal scrollers from panning the whole page on touch. */
    overscroll-behavior-x: none;
    transition: background-color 0.4s ease, color 0.4s ease;
}

main {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.024em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; }

::selection { background: var(--rm-accent); color: #fff; }

:focus-visible {
    outline: 2px solid var(--rm-accent-bright);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Ambient page backdrop: fine grid + two bronze light sources. */
.rm-ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(46rem 34rem at 78% -8%, rgba(194, 136, 77, 0.16), transparent 65%),
        radial-gradient(38rem 30rem at 6% 34%, rgba(120, 90, 190, 0.07), transparent 62%),
        linear-gradient(transparent 95%, var(--rm-border) 95%),
        linear-gradient(90deg, transparent 95%, var(--rm-border) 95%);
    background-size: auto, auto, 4rem 4rem, 4rem 4rem;
    -webkit-mask-image: radial-gradient(80% 60% at 50% 12%, #000 20%, transparent 88%);
    mask-image: radial-gradient(80% 60% at 50% 12%, #000 20%, transparent 88%);
    transition: opacity 0.4s ease;
    animation: rm-mesh-drift 24s ease-in-out infinite alternate;
    transform-origin: 70% 0%;
}

/* ---------- 3. Layout primitives ---------- */

.rm-container {
    width: 100%;
    max-width: var(--rm-max);
    margin-inline: auto;
    padding-inline: var(--rm-gutter);
}

.rm-container--narrow { max-width: 860px; }

.rm-section { padding-block: var(--rm-section); position: relative; }
.rm-section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.rm-section + .rm-section { border-top: 1px solid var(--rm-border); }

/* Alternating backdrop so long pages break into readable bands. */
.rm-section--alt {
    background: var(--rm-bg-alt);
    border-top: 1px solid var(--rm-border);
    border-bottom: 1px solid var(--rm-border);
}

.rm-section--alt + .rm-section { border-top: 0; }

/* A single diagonal seam where it earns its keep — straight after the hero —
   so the page doesn't read as an unbroken stack of rectangles from the very
   first scroll. Kept to one edge to stay legible, not a gimmick repeated
   everywhere. */
.rm-section--tilt-top {
    border-top: 0;
    clip-path: polygon(0 1.75rem, 100% 0, 100% 100%, 0 100%);
    margin-top: -1.75rem;
    padding-top: calc(var(--rm-section) + 1.75rem);
}

@media (min-width: 48rem) {
    .rm-section--tilt-top {
        clip-path: polygon(0 3.25rem, 100% 0, 100% 100%, 0 100%);
        margin-top: -3.25rem;
        padding-top: calc(var(--rm-section) + 3.25rem);
    }
}

.rm-stack { display: grid; gap: 1.25rem; }
.rm-stack--lg { gap: 2.5rem; }
.rm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.rm-center { text-align: center; justify-items: center; }
.rm-center .rm-lead { margin-inline: auto; }

/* Grid and flex children default to min-width:auto and refuse to shrink, which pushes
   layouts wider than their container and clips content on narrow screens. */
.rm-stack > *, .rm-row > *, .rm-grid > *, .rm-legal-layout > * { min-width: 0; }

/* Pills and eyebrows are inline elements; as grid items they would stretch full width. */
.rm-stack > .rm-chip, .rm-stack > .rm-eyebrow, .rm-stack > .rm-btn { justify-self: start; }
.rm-center > .rm-chip, .rm-center > .rm-eyebrow, .rm-center > .rm-btn { justify-self: center; }

.rm-grid { display: grid; gap: 1.25rem; }
.rm-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.rm-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.rm-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

/* ---------- 4. Type ---------- */

.rm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rm-accent-bright);
}

/* Headlines carry the personality of the page: a warm editorial serif against
   the geometric sans everywhere else. Weight stays heavy so it still reads as
   confident/software, not delicate. */
.rm-h1, .rm-h2 {
    font-family: var(--rm-font-display);
    font-weight: 700;
    text-wrap: balance;
}

.rm-h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); letter-spacing: -0.022em; line-height: 1.03; overflow-wrap: break-word; }
.rm-h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -0.018em; overflow-wrap: break-word; }
.rm-h3 { font-family: var(--rm-font); font-size: clamp(1.05rem, 1.5vw, 1.22rem); font-weight: 800; letter-spacing: -0.02em; overflow-wrap: break-word; }
.rm-h4 { font-family: var(--rm-font); font-size: 0.98rem; font-weight: 800; letter-spacing: -0.012em; }

.rm-lead {
    font-size: clamp(1rem, 1.25vw, 1.14rem);
    color: var(--rm-text-soft);
    line-height: 1.65;
    max-width: 62ch;
}

.rm-body { font-size: 0.925rem; color: var(--rm-text-soft); line-height: 1.7; }
.rm-small { font-size: 0.8rem; color: var(--rm-muted); line-height: 1.6; }
.rm-fineprint { font-size: 0.75rem; color: var(--rm-muted); line-height: 1.7; }

.rm-shine {
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(104deg, var(--rm-accent-bright) 4%, #fff 42%, var(--rm-accent) 96%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rm-shine-drift 7s ease-in-out infinite;
}

@keyframes rm-shine-drift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

html[data-theme="light"] .rm-shine {
    background: linear-gradient(104deg, var(--rm-accent-deep) 2%, var(--rm-accent-bright) 52%, var(--rm-accent-deep) 98%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rm-strong { color: var(--rm-text); font-weight: 700; }
.rm-mono { font-family: var(--rm-mono); font-size: 0.82em; }

/* ---------- 5. Buttons ---------- */

.rm-btn {
    --rm-btn-bg: var(--rm-surface-strong);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border: 1px solid var(--rm-border-strong);
    border-radius: var(--rm-r-pill);
    background: var(--rm-btn-bg);
    color: var(--rm-text);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    transition: transform 0.22s var(--rm-ease), border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.rm-btn:hover { transform: translateY(-2px); border-color: var(--rm-accent); }
.rm-btn:active { transform: translateY(0); }

/* The leading icon nudges on hover — a small "this does something" cue instead
   of a flat static glyph. Respects the icon's own aria-hidden svg markup. */
.rm-btn svg { transition: transform 0.3s var(--rm-ease); }
.rm-btn:hover svg { transform: translateY(-1.5px) scale(1.08); }
.rm-btn--primary:hover svg { animation: rm-drop 0.5s var(--rm-ease); }

.rm-btn--primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--rm-accent-bright), var(--rm-accent-deep));
    color: #fff;
    box-shadow: var(--rm-shadow-accent);
}

/* Light sweep on hover — the single signature micro-interaction. */
.rm-btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.42) 50%, transparent 68%);
    transform: translateX(-120%);
    transition: transform 0.75s var(--rm-ease);
}

.rm-btn--primary:hover::after { transform: translateX(120%); }
.rm-btn--ghost { background: transparent; }
.rm-btn--sm { padding: 0.55rem 1.05rem; font-size: 0.74rem; }
.rm-btn--block { width: 100%; }

.rm-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-r-pill);
    background: var(--rm-surface);
    color: var(--rm-text-soft);
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.rm-iconbtn:hover { color: var(--rm-text); border-color: var(--rm-accent); }

/* ---------- 6. Surfaces ---------- */

.rm-card {
    position: relative;
    padding: 1.6rem;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-r-lg);
    background: var(--rm-surface);
    box-shadow: var(--rm-shadow-md);
    transition: transform 0.3s var(--rm-ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Top-edge light catch: reads as a physical bevel and separates the card from the canvas. */
.rm-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    margin: 0 var(--rm-r-md);
    background: linear-gradient(90deg, transparent, var(--rm-highlight), transparent);
    pointer-events: none;
}

.rm-card--hover:hover {
    transform: translateY(-4px);
    border-color: var(--rm-border-strong);
    box-shadow: var(--rm-shadow-lg);
}

/* ---------- 6c. Tilt + spotlight — cursor-reactive cards (desktop pointer only) ----------
   rm.js attaches .rm-tilt and a first-child .rm-spotlight span to feature/pricing
   cards and the hero device. Rotation is written as an inline transform on
   mousemove (smoothed by the transition below); the spotlight glow just tracks
   --rm-mx/--rm-my. No z-index games: the spotlight is the first DOM child, so
   ordinary card content — all z-index:auto — paints above it automatically. */

.rm-tilt {
    transition: transform 0.4s var(--rm-ease), box-shadow 0.4s ease, border-color 0.4s ease;
    will-change: transform;
}

.rm-spotlight {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(420px circle at var(--rm-mx, 50%) var(--rm-my, 50%), rgba(255, 255, 255, 0.14), transparent 62%);
}

html[data-theme="light"] .rm-spotlight {
    background: radial-gradient(420px circle at var(--rm-mx, 50%) var(--rm-my, 50%), rgba(255, 255, 255, 0.65), transparent 62%);
}

.rm-tilt:hover .rm-spotlight, .rm-tilt:focus-within .rm-spotlight { opacity: 1; }

@media (hover: none) {
    .rm-spotlight { display: none; }
}

/* Animated conic border for the featured card. */
.rm-card--lit { border-color: transparent; background-clip: padding-box; }

.rm-card--lit::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--rm-angle, 0deg),
        transparent 0deg, var(--rm-accent-bright) 60deg, transparent 130deg,
        transparent 230deg, var(--rm-accent) 290deg, transparent 350deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: rm-spin 7s linear infinite;
}

@property --rm-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes rm-spin { to { --rm-angle: 360deg; } }

.rm-panel {
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-r-lg);
    background: var(--rm-bg-raised);
    overflow: hidden;
}

.rm-icontile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-r-md);
    background: var(--rm-accent-wash);
    color: var(--rm-accent-bright);
}

.rm-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-r-pill);
    background: var(--rm-surface);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rm-text-soft);
}

.rm-chip--accent {
    border-color: rgba(194, 136, 77, 0.4);
    background: var(--rm-accent-wash);
    color: var(--rm-accent-bright);
}

.rm-chip--live { color: var(--rm-positive); border-color: rgba(74, 222, 128, 0.3); }

/* ---------- 6b. Emerald accent (beta / bug-bounty) ----------
   Accent only: the card keeps the standard surface so it stays inside the
   design language. Emphasis comes from a left rule, the badge and the icon. */

.rm-emerald {
    --rm-em: #34d399;
    --rm-em-soft: rgba(52, 211, 153, 0.14);
    --rm-em-line: rgba(52, 211, 153, 0.38);
    border-left: 3px solid var(--rm-em);
}

html[data-theme="light"] .rm-emerald {
    --rm-em: #059669;
    --rm-em-soft: rgba(5, 150, 105, 0.1);
    --rm-em-line: rgba(5, 150, 105, 0.28);
}

.rm-emerald .rm-icontile {
    border-color: var(--rm-em-line);
    background: var(--rm-em-soft);
    color: var(--rm-em);
}

.rm-chip--emerald {
    border-color: var(--rm-em-line, rgba(52, 211, 153, 0.42));
    background: var(--rm-em-soft, rgba(52, 211, 153, 0.16));
    color: var(--rm-em, #34d399);
}

html[data-theme="light"] .rm-chip--emerald {
    border-color: rgba(5, 150, 105, 0.32);
    background: rgba(5, 150, 105, 0.1);
    color: #047857;
}

.rm-emerald .rm-dot { animation: rm-pulse-em 2.4s ease-out infinite; }

@keyframes rm-pulse-em {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70%, 100% { box-shadow: 0 0 0 0.55rem rgba(16, 185, 129, 0); }
}

.rm-dot {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: var(--rm-r-pill);
    background: currentColor;
    box-shadow: 0 0 0 0 currentColor;
    animation: rm-pulse 2.4s ease-out infinite;
}

@keyframes rm-pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
    70%, 100% { box-shadow: 0 0 0 0.55rem rgba(74, 222, 128, 0); }
}

/* ---------- 7. Device mockups ---------- */

.rm-device {
    position: relative;
    border: 1px solid var(--rm-border-strong);
    border-radius: var(--rm-r-xl);
    background: var(--rm-bg-raised);
    padding: 0.5rem;
    box-shadow: var(--rm-shadow-lg);
}

.rm-device__bar {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.85rem 0.75rem;
}

.rm-device__lights { display: flex; gap: 0.4rem; }

.rm-device__light {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: var(--rm-r-pill);
    background: var(--rm-border-strong);
}

.rm-device__light:nth-child(1) { background: #ff5f57; }
.rm-device__light:nth-child(2) { background: #febc2e; }
.rm-device__light:nth-child(3) { background: #28c840; }

.rm-device__title {
    flex: 1;
    min-width: 0;
    padding: 0.28rem 0.8rem;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-r-pill);
    background: rgba(0, 0, 0, 0.25);
    font-family: var(--rm-mono);
    font-size: 0.68rem;
    color: var(--rm-muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-device__screen {
    position: relative;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-r-md);
    background: #05060a;
    overflow: hidden;
}

.rm-device__screen img { width: 100%; height: auto; }

/* ---------- 8. Showcase switcher ---------- */

.rm-tabs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
    scroll-behavior: smooth;
    max-width: 100%;
}

.rm-tabs::-webkit-scrollbar { display: none; }

.rm-tab {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-r-pill);
    background: var(--rm-surface);
    color: var(--rm-muted);
    font-size: 0.76rem;
    font-weight: 700;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.rm-tab:hover { color: var(--rm-text); }

.rm-tab[aria-selected="true"] {
    border-color: rgba(194, 136, 77, 0.5);
    background: var(--rm-accent-wash);
    color: var(--rm-accent-bright);
}

.rm-slides { position: relative; overflow: hidden; max-width: 100%; touch-action: pan-y; }
.rm-slides__track { display: flex; transition: transform 0.55s var(--rm-ease); }
.rm-slides__item { flex: 0 0 100%; min-width: 0; max-width: 100%; }
.rm-slides__item img { width: 100%; height: auto; }

.rm-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    padding-top: 1rem;
}

/* ---------- 9. Metrics ---------- */

.rm-metric {
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-r-md);
    background: var(--rm-surface);
}

.rm-metric__value {
    display: block;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--rm-text);
}

.rm-metric__label {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--rm-muted);
    overflow-wrap: anywhere;
}

/* ---------- 10. Comparison table ---------- */

.rm-compare { width: 100%; border-collapse: collapse; min-width: 44rem; font-size: 0.86rem; }

.rm-compare th, .rm-compare td {
    padding: 1rem 1.15rem;
    text-align: left;
    border-bottom: 1px solid var(--rm-border);
    vertical-align: top;
}

.rm-compare thead th {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rm-muted);
    background: var(--rm-bg-alt);
}

.rm-compare tbody tr:last-child th, .rm-compare tbody tr:last-child td { border-bottom: 0; }
.rm-compare th[scope="row"] { font-weight: 700; color: var(--rm-text); }
.rm-compare .rm-col-us { background: var(--rm-accent-wash); color: var(--rm-text); font-weight: 600; }
.rm-compare thead .rm-col-us { color: var(--rm-accent-bright); }
.rm-compare .rm-col-them { color: var(--rm-text-soft); }
.rm-scroller { overflow-x: auto; overscroll-behavior-x: contain; max-width: 100%; }

.rm-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    margin-right: 0.5rem;
    border-radius: var(--rm-r-pill);
    font-size: 0.66rem;
    font-weight: 900;
    vertical-align: -2px;
}

.rm-mark--yes { background: rgba(74, 222, 128, 0.16); color: var(--rm-positive); }
.rm-mark--no { background: rgba(251, 113, 133, 0.16); color: var(--rm-negative); }
.rm-mark--meh { background: var(--rm-surface-strong); color: var(--rm-muted); }

/* ---------- 11. Pricing ---------- */

.rm-price { display: flex; flex-direction: column; gap: 1.15rem; height: 100%; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.rm-price__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.rm-price__amount {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
    color: var(--rm-text);
}

.rm-price__was {
    font-size: 0.45em;
    font-weight: 800;
    color: var(--rm-negative);
    text-decoration: line-through;
    text-decoration-thickness: 3px;
    opacity: 0.9;
}

.rm-price__per { font-size: 0.78rem; font-weight: 700; color: var(--rm-muted); letter-spacing: 0; }

.rm-price__renewal {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--rm-accent-bright);
}

.rm-featurelist { display: grid; gap: 0.65rem; list-style: none; padding: 0; margin: 0; }

.rm-featurelist li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--rm-text-soft);
}

.rm-featurelist li::before {
    content: "";
    flex: none;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.2rem;
    border-radius: var(--rm-r-pill);
    background:
        linear-gradient(var(--rm-positive), var(--rm-positive)) no-repeat center / 0.42rem 0.09rem,
        rgba(74, 222, 128, 0.16);
}

.rm-price__foot { margin-top: auto; display: grid; gap: 0.65rem; }

.rm-ribbon {
    position: absolute;
    top: -0.72rem;
    left: 50%;
    transform: translateX(-50%);
    animation: rm-ribbon-bob 3.2s ease-in-out infinite;
    padding: 0.3rem 0.9rem;
    border-radius: var(--rm-r-pill);
    background: linear-gradient(135deg, var(--rm-accent-bright), var(--rm-accent-deep));
    color: #fff;
    font-size: 0.63rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: var(--rm-shadow-accent);
    z-index: 10;
}

/* ---------- 12. FAQ ---------- */

.rm-faq { border: 1px solid var(--rm-border); border-radius: var(--rm-r-md); background: var(--rm-surface); overflow: hidden; transition: border-color 0.25s ease; }
.rm-faq[open] { border-color: var(--rm-border-strong); }
.rm-faq + .rm-faq { margin-top: 0.7rem; }

.rm-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--rm-text);
    cursor: pointer;
    list-style: none;
}

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

.rm-faq summary::after {
    content: "";
    flex: none;
    width: 0.85rem;
    height: 0.85rem;
    background:
        linear-gradient(var(--rm-accent-bright), var(--rm-accent-bright)) no-repeat center / 100% 2px,
        linear-gradient(var(--rm-accent-bright), var(--rm-accent-bright)) no-repeat center / 2px 100%;
    transition: transform 0.3s var(--rm-ease);
}

.rm-faq[open] summary::after { transform: rotate(135deg); }
.rm-faq__body { padding: 0 1.35rem 1.35rem; }

/* ---------- 13. Nav & footer ---------- */

.rm-promo {
    position: relative;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.9rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--rm-border);
    background: linear-gradient(90deg, rgba(194, 136, 77, 0.14), rgba(194, 136, 77, 0.05) 50%, rgba(194, 136, 77, 0.14));
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--rm-text-soft);
    text-align: center;
    transition: all 0.3s ease;
}

.rm-promo--hot {
    background: linear-gradient(90deg, rgba(225, 29, 72, 0.4), rgba(245, 158, 11, 0.3) 50%, rgba(225, 29, 72, 0.4));
    color: #fff;
    border-bottom: 1px solid rgba(245, 158, 11, 0.6);
    animation: rm-promo-glow 2s infinite alternate;
}

@keyframes rm-promo-glow {
    from { box-shadow: inset 0 0 10px rgba(225, 29, 72, 0.2); }
    to { box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.5); }
}

.rm-promo--beta {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.06) 50%, rgba(16, 185, 129, 0.18));
    border-bottom-color: rgba(16, 185, 129, 0.3);
}

.rm-promo--beta a { color: #34d399; }
html[data-theme="light"] .rm-promo--beta a { color: #047857; }

.rm-promo a { color: var(--rm-accent-bright); text-decoration: underline; text-underline-offset: 3px; }

.rm-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    background: color-mix(in srgb, var(--rm-bg) 60%, transparent);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 1px 0 0 transparent;
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* JS toggles this once the page has scrolled past the promo bar — the header
   gains real weight (solid ground + shadow) instead of staying uniformly glassy
   the whole way down, which is what made every page feel like the same slab. */
.rm-nav--scrolled {
    border-bottom-color: var(--rm-border);
    background: color-mix(in srgb, var(--rm-bg) 90%, transparent);
    box-shadow: var(--rm-shadow-md);
}

/* Thin identity underline — colour comes from whatever --rm-accent-bright the
   current page sets, so the same header reads differently per page/section 25. */
.rm-nav::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rm-accent-bright), transparent);
    opacity: 0.55;
    pointer-events: none;
}

.rm-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; height: var(--rm-nav-h); min-width: 0; }
.rm-brand { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 800; letter-spacing: -0.03em; font-size: 1.05rem; white-space: nowrap; min-width: 0; }
.rm-brand img { width: 2rem; height: 2rem; flex: none; }
.rm-brand span { overflow: hidden; text-overflow: ellipsis; }
.rm-navlinks { display: none; align-items: center; gap: 1.7rem; }

.rm-navlinks a {
    position: relative;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--rm-text-soft);
    transition: color 0.2s ease;
}

.rm-navlinks a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: 100%;
    height: 1px;
    background: var(--rm-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--rm-ease);
}

.rm-navlinks a:hover { color: var(--rm-text); }
.rm-navlinks a:hover::after { transform: scaleX(1); }
.rm-navlinks a[aria-current="page"] { color: var(--rm-text); }
.rm-navlinks a[aria-current="page"]::after { transform: scaleX(1); background: var(--rm-accent-bright); }
.rm-nav__actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }

/* ---------- 13b. Mobile drawer ---------- */

.rm-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.55rem;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-r-pill);
    background: var(--rm-surface);
}

.rm-burger span {
    display: block;
    height: 1.5px;
    width: 100%;
    border-radius: 2px;
    background: var(--rm-text-soft);
    transition: transform 0.25s var(--rm-ease), opacity 0.2s ease;
}

.rm-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.43rem) rotate(45deg); }
.rm-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rm-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.43rem) rotate(-45deg); }

.rm-drawer {
    position: fixed;
    inset: 0;
    /* Below .rm-nav (50) so the header and its toggle stay visible and clickable. */
    z-index: 45;
    background: rgba(4, 5, 7, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.rm-drawer[hidden] { display: none; }

.rm-drawer__panel {
    position: absolute;
    top: var(--rm-drawer-top, var(--rm-nav-h));
    right: 0;
    left: 0;
    max-height: calc(100vh - var(--rm-drawer-top, var(--rm-nav-h)));
    overflow-y: auto;
    overscroll-behavior: contain;
    display: grid;
    gap: 1.25rem;
    padding: 1.25rem var(--rm-gutter) 1.75rem;
    border-bottom: 1px solid var(--rm-border);
    background: var(--rm-bg-raised);
    box-shadow: var(--rm-shadow-lg);
    animation: rm-drop 0.28s var(--rm-ease);
}

@keyframes rm-drop { from { transform: translateY(-8%); opacity: 0; } }

.rm-drawer__links { display: grid; gap: 0.15rem; }

.rm-drawer__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0.25rem;
    border-bottom: 1px solid var(--rm-border);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--rm-text);
}

.rm-drawer__links a:last-child { border-bottom: 0; }
.rm-drawer__links a[aria-current="page"] { color: var(--rm-accent-bright); }

@media (prefers-reduced-motion: reduce) {
    .rm-drawer__panel { animation: none; }
}

.rm-footer { border-top: 1px solid var(--rm-border); padding-block: 3rem; background: var(--rm-bg-raised); }
.rm-footer__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.rm-footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.rm-footer__links a { font-size: 0.82rem; font-weight: 600; color: var(--rm-text-soft); transition: color 0.2s ease; }
.rm-footer__links a:hover { color: var(--rm-accent-bright); }
.rm-footer__links a[aria-current="page"] { color: var(--rm-accent-bright); }

.rm-legalbox {
    margin-top: 2rem;
    padding: 1.15rem 1.35rem;
    border: 1px solid var(--rm-border);
    border-left: 2px solid var(--rm-accent);
    border-radius: var(--rm-r-md);
    background: var(--rm-surface);
}

/* ---------- 14. Notices ---------- */

.rm-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.3rem 1.5rem;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--rm-r-lg);
    background: rgba(251, 191, 36, 0.07);
}

.rm-notice__icon { flex: none; color: var(--rm-warn); }
.rm-danger { color: var(--rm-negative); font-weight: 700; }

.rm-cookie {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    width: min(25rem, calc(100vw - 2rem));
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--rm-border-strong);
    border-radius: var(--rm-r-lg);
    background: color-mix(in srgb, var(--rm-bg-raised) 96%, transparent);
    box-shadow: var(--rm-shadow-lg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* ---------- 15. Motion ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(1.75rem) scale(0.975);
    filter: blur(6px);
    transition: opacity 0.85s var(--rm-ease), transform 0.85s var(--rm-ease), filter 0.85s var(--rm-ease);
    will-change: transform, opacity, filter;
}

[data-reveal].rm-in { opacity: 1; transform: none; filter: blur(0); }
[data-reveal][data-delay="1"] { transition-delay: 90ms; }
[data-reveal][data-delay="2"] { transition-delay: 180ms; }
[data-reveal][data-delay="3"] { transition-delay: 270ms; }
[data-reveal][data-delay="4"] { transition-delay: 360ms; }

/* Above-the-fold entrance — plays immediately on load rather than waiting on
   scroll, so the hero feels alive the instant the page paints. Pure CSS: no
   JS dependency, no flash-of-unstyled-content risk. */
@keyframes rm-enter {
    from { opacity: 0; transform: translateY(1.4rem) scale(0.97); filter: blur(8px); }
    to { opacity: 1; transform: none; filter: blur(0); }
}

[data-enter] {
    animation: rm-enter 0.9s var(--rm-ease) both;
    animation-delay: calc(var(--rm-enter-step, 0) * 110ms + 60ms);
}

@keyframes rm-float {
    0%, 100% { transform: translateY(0) rotate(var(--rm-float-rot, 0deg)); }
    50% { transform: translateY(-0.6rem) rotate(var(--rm-float-rot, 0deg)); }
}

@keyframes rm-ribbon-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-0.28rem); }
}

@keyframes rm-mesh-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-1.5%, 1.5%, 0) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
    [data-enter] { animation: none; opacity: 1; transform: none; filter: none; }
    .rm-shine, .rm-ribbon, .rm-ambient, .rm-device--hero, .rm-hero__livebadge {
        animation: none !important;
    }
    .rm-device--hero { transform: none !important; }
    .rm-tilt { transform: none !important; }
}

.rm-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 0.75rem 1.25rem;
    background: var(--rm-accent);
    color: #fff;
    font-weight: 800;
    z-index: 200;
}

.rm-skip:focus { left: 1rem; top: 1rem; }
.rm-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 17. Long-form legal prose ---------- */

.rm-prose { display: grid; gap: 2rem; }
.rm-prose section { display: grid; gap: 0.7rem; scroll-margin-top: 7rem; }
.rm-prose h2 { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.018em; color: var(--rm-text); }
.rm-prose p, .rm-prose li { font-size: 0.925rem; line-height: 1.75; color: var(--rm-text-soft); }
.rm-prose ul, .rm-prose ol { display: grid; gap: 0.55rem; padding-left: 1.25rem; }
.rm-prose strong { color: var(--rm-text); font-weight: 700; }
.rm-prose a { color: var(--rm-accent-bright); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.rm-callout {
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(194, 136, 77, 0.32);
    border-left: 3px solid var(--rm-accent);
    border-radius: var(--rm-r-md);
    background: var(--rm-accent-wash);
}

.rm-callout--warn {
    border-color: rgba(251, 191, 36, 0.32);
    border-left-color: var(--rm-warn);
    background: rgba(251, 191, 36, 0.07);
}

/* ---------- 18. Forms ---------- */

.rm-field { display: grid; gap: 0.4rem; }

.rm-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--rm-muted);
}

.rm-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-r-md);
    background: var(--rm-bg-raised);
    color: var(--rm-text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rm-input:focus {
    outline: none;
    border-color: var(--rm-accent);
    box-shadow: 0 0 0 3px var(--rm-accent-wash);
}

.rm-input::placeholder { color: var(--rm-muted); }
textarea.rm-input { resize: vertical; min-height: 7rem; }
.rm-input--key { font-family: var(--rm-mono); letter-spacing: 0.06em; text-transform: uppercase; }

.rm-range {
    width: 100%;
    height: 1.4rem;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.rm-range::-webkit-slider-runnable-track {
    height: 0.35rem;
    border-radius: var(--rm-r-pill);
    background: linear-gradient(90deg, var(--rm-accent) var(--rm-range-fill, 50%), var(--rm-border-strong) var(--rm-range-fill, 50%));
}

.rm-range::-moz-range-track { height: 0.35rem; border-radius: var(--rm-r-pill); background: var(--rm-border-strong); }
.rm-range::-moz-range-progress { height: 0.35rem; border-radius: var(--rm-r-pill); background: var(--rm-accent); }

.rm-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: -0.38rem;
    border: 2px solid var(--rm-bg);
    border-radius: var(--rm-r-pill);
    background: var(--rm-accent-bright);
    box-shadow: var(--rm-shadow-accent);
}

.rm-range::-moz-range-thumb {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--rm-bg);
    border-radius: var(--rm-r-pill);
    background: var(--rm-accent-bright);
}

/* ---------- 19. Numbered steps ---------- */

.rm-steps { display: grid; gap: 1.75rem; counter-reset: rm-step; list-style: none; padding: 0; margin: 0; }
.rm-steps > li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1.1rem; counter-increment: rm-step; }

.rm-steps > li::before {
    content: counter(rm-step);
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(194, 136, 77, 0.35);
    border-radius: var(--rm-r-md);
    background: var(--rm-accent-wash);
    color: var(--rm-accent-bright);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.rm-steps__body { display: grid; gap: 0.5rem; min-width: 0; }

/* A running connector so the steps read as one continuous path down the page. */
@media (min-width: 30rem) {
    .rm-steps { position: relative; }
    .rm-steps > li { position: relative; }
    .rm-steps > li:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 1.2rem;
        top: 2.5rem;
        bottom: -1.75rem;
        width: 1px;
        background: linear-gradient(var(--rm-border-strong), var(--rm-border));
    }
}

/* ---------- 20. Interactive demo ---------- */

.rm-demo__wizard { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.rm-demo__step {
    flex: 1 1 8rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-r-md);
    background: var(--rm-surface);
    color: var(--rm-muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-align: left;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.rm-demo__step[aria-selected="true"] {
    border-color: rgba(194, 136, 77, 0.5);
    background: var(--rm-accent-wash);
    color: var(--rm-accent-bright);
}

.rm-demo__step small { display: block; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }

.rm-log { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.rm-log th, .rm-log td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--rm-border); white-space: nowrap; }

.rm-log thead th {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rm-muted);
    background: var(--rm-bg-alt);
}

.rm-log td.rm-num { font-variant-numeric: tabular-nums; text-align: right; }
.rm-log tr[data-kind="personal"] td { color: var(--rm-muted); }
.rm-log tbody tr { transition: background-color 0.2s ease; }
.rm-log tbody tr:hover { background: var(--rm-surface); }

.rm-tag {
    display: inline-block;
    padding: 0.12rem 0.5rem;
    border-radius: var(--rm-r-pill);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rm-tag--biz { background: rgba(74, 222, 128, 0.15); color: var(--rm-positive); }
.rm-tag--personal { background: var(--rm-surface-strong); color: var(--rm-muted); }

.rm-toggle { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--rm-text-soft); cursor: pointer; }
.rm-toggle input { accent-color: var(--rm-accent); width: 1rem; height: 1rem; }

/* ---------- 21. Admin console ---------- */

.rm-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(4, 5, 7, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.rm-modal[hidden] { display: none; }

.rm-modal__box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 78rem;
    max-height: 92vh;
    overflow: hidden;
    border: 1px solid var(--rm-border-strong);
    border-radius: var(--rm-r-lg);
    background: var(--rm-bg-raised);
    box-shadow: var(--rm-shadow-lg);
}

.rm-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid var(--rm-border);
}

.rm-modal__body { display: grid; grid-template-columns: 1fr; min-height: 0; flex: 1; }

.rm-modal__aside {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-bottom: 1px solid var(--rm-border);
}

.rm-modal__main { padding: 1.35rem; overflow-y: auto; min-height: 0; display: grid; gap: 1rem; align-content: start; }

@media (min-width: 60rem) {
    .rm-modal__body { grid-template-columns: 21rem 1fr; }
    .rm-modal__aside { border-bottom: 0; border-right: 1px solid var(--rm-border); }
}

.rm-status {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: var(--rm-r-pill);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rm-status--active { background: rgba(74, 222, 128, 0.16); color: var(--rm-positive); }
.rm-status--redeemed { background: var(--rm-accent-wash); color: var(--rm-accent-bright); }
.rm-status--expired { background: rgba(251, 113, 133, 0.16); color: var(--rm-negative); }

.rm-listitem {
    display: block;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-r-md);
    background: transparent;
    text-align: left;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.rm-listitem:hover { border-color: var(--rm-border-strong); }
.rm-listitem[aria-current="true"] { border-color: rgba(251, 113, 133, 0.5); background: rgba(251, 113, 133, 0.08); }

.rm-pre {
    margin: 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-r-md);
    background: var(--rm-code-bg, rgba(0, 0, 0, 0.35));
    font-family: var(--rm-mono);
    font-size: 0.74rem;
    line-height: 1.6;
    color: var(--rm-text-soft);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 24rem;
    overflow: auto;
}

html[data-theme="light"] .rm-pre { --rm-code-bg: #f4f2ef; }

.rm-pre--error { border-color: rgba(251, 113, 133, 0.3); background: rgba(251, 113, 133, 0.06); color: var(--rm-text); }

.rm-kv {
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-r-sm);
    background: var(--rm-surface);
}

.rm-kv dt { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rm-muted); }
.rm-kv dd { margin: 0.2rem 0 0; font-family: var(--rm-mono); font-size: 0.72rem; color: var(--rm-text); word-break: break-all; }

.rm-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ---------- 22. Responsive ---------- */

@media (min-width: 62rem) {
    .rm-navlinks { display: flex; }
    .rm-card { padding: 2rem; }
    .rm-hero__grid { grid-template-columns: 1fr minmax(0, 1.06fr); align-items: center; gap: 3.25rem; }
    /* Bleeds toward the viewport edge so the screenshot reads at a usable size. */
    .rm-hero__visual { margin-right: clamp(-4rem, -3vw, 0rem); }
    .rm-split { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
    .rm-span-2 { grid-column: span 2; min-width: 0; }
    .rm-burger, .rm-drawer { display: none !important; }
}

/* A Windows installer CTA is useless on a phone - it moves into the drawer instead. */
@media (max-width: 61.99rem) {
    .rm-nav__cta { display: none; }
}

@media (max-width: 40rem) {
    .rm-device { padding: 0.35rem; border-radius: var(--rm-r-lg); }
    .rm-device__title { display: none; }
    .rm-btn { width: 100%; }
    .rm-nav__actions .rm-btn { width: auto; }
    .rm-promo { font-size: 0.7rem; padding: 0.5rem 0.85rem; }
}

/* Below ~400px every horizontal pixel counts: tighten gutters and shrink the nav chrome. */
@media (max-width: 25rem) {
    :root { --rm-gutter: 0.9rem; --rm-nav-h: 3.9rem; }
    .rm-nav__inner { gap: 0.4rem; }
    .rm-brand { font-size: 0.95rem; gap: 0.5rem; }
    .rm-brand img { width: 1.65rem; height: 1.65rem; }
    .rm-nav__actions { gap: 0.35rem; }
    .rm-nav__actions .rm-btn { padding: 0.5rem 0.8rem; font-size: 0.7rem; }
    .rm-iconbtn { width: 2.1rem; height: 2.1rem; }
    .rm-promo .rm-chip { display: none; }
}

.rm-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 4vw, 3.5rem); }
.rm-hero__grid { display: grid; gap: 3rem; }
.rm-split { display: grid; gap: 2rem; }

/* The device sits on a soft base so it reads as grounded, not floating in dead space. */
.rm-hero__visual { position: relative; display: grid; gap: 1rem; align-content: center; }

.rm-hero__caption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--rm-muted);
}

.rm-hero__visual::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -2.4rem;
    height: 3.5rem;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(194, 136, 77, 0.32), transparent 72%);
    filter: blur(22px);
    pointer-events: none;
}

/* The flagship screenshot gets a resting perspective tilt and a slow idle
   float, so it reads as a physical object sitting in the scene rather than a
   flat rectangle pasted onto the page. rm.js nudges the tilt further on
   pointer move; both defer entirely to prefers-reduced-motion. */
.rm-device--hero {
    transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
    animation: rm-float 6.5s ease-in-out infinite;
    transition: transform 0.5s var(--rm-ease);
}

.rm-device--hero:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg) scale(1.015); }

/* Floating badge that overlaps the device's top-right corner — the one place
   on the page allowed to break its container, so the hero reads as a scene
   rather than a screenshot dropped into a grid cell. */
.rm-hero__livebadge {
    position: absolute;
    top: -0.85rem;
    right: 1.1rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--rm-border-strong);
    border-radius: var(--rm-r-pill);
    background: var(--rm-surface-strong);
    box-shadow: var(--rm-shadow-md);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--rm-positive);
    animation: rm-float 5s ease-in-out infinite;
    animation-delay: -1.5s;
}

.rm-device--hero .rm-device__screen { position: relative; }

/* Fades the long screenshot into the frame instead of cutting it off hard. */
.rm-device--hero .rm-device__screen::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 22%;
    background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--rm-bg) 88%, transparent));
    pointer-events: none;
}

.rm-hero__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
    gap: 0.75rem;
    margin: clamp(2.5rem, 5vw, 4rem) 0 0;
    padding-top: clamp(1.5rem, 3vw, 2.25rem);
    border-top: 1px solid var(--rm-border);
}

.rm-hero__metrics .rm-metric__value { margin: 0; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .rm-card--lit::before,
    .rm-dot { animation: none; }
    .rm-btn:hover, .rm-card--hover:hover { transform: none; }
    .rm-slides__track { transition: none; }
}

@media print {
    .rm-ambient, .rm-nav, .rm-promo, .rm-cookie { display: none !important; }
    body { background: #fff; color: #000; }
}

/* =============================================================================
   23. Modern Additions (Roadmap Timeline, Dealify Highlight, Glows)
   ============================================================================= */

/* Vylepseny Pricing Grid - Stredna karta ziariva */
@media (min-width: 62rem) {
    .rm-grid--pricing { align-items: center; perspective: 1000px; }
    .rm-price-highlight { transform: scale(1.08); z-index: 2; border: 2px solid var(--rm-accent-bright); background: linear-gradient(180deg, var(--rm-surface-strong) 0%, rgba(194, 136, 77, 0.05) 100%); box-shadow: 0 0 0 1px var(--rm-accent), var(--rm-shadow-lg); }
    .rm-price-highlight:hover { transform: scale(1.08) translateY(-6px); box-shadow: 0 0 0 1px var(--rm-accent), 0 50px 100px -30px rgba(0,0,0,1), var(--rm-shadow-accent); }
    .rm-price-muted { opacity: 0.75; transform: scale(0.95); background: var(--rm-bg-raised); }
    .rm-price-muted:hover { opacity: 1; transform: scale(0.95) translateY(-4px); }
}

/* Nepriestrelna trieda na skrytie zavadzajucich stahovacich tlacidiel na vsetkych mobiloch a tabletoch */
@media (max-width: 61.99rem) {
    .rm-hide-mobile { display: none !important; }
}

/* ---------- Adaptive Critical Warning Box (Dealify) - Pastel & Soft ---------- */

/* Dark Mode (Default) - Priesvitný, jemný jantárový tón */
.rm-critical-box {
    border: 2px solid rgba(251, 191, 36, 0.25);
    background: rgba(251, 191, 36, 0.1);
    max-width: 860px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--rm-r-lg);
    box-shadow: 0 10px 40px -10px rgba(251, 191, 36, 0.1);
}
.rm-critical-box h3 {
    color: #fbbf24 !important; /* Príjemná tlmená žltá */
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.rm-critical-box p {
    color: #fde68a !important; /* Pastelová svetložltá pre text */
    font-size: 1.05rem;
    font-weight: 600;
    max-width: 60ch;
    margin: 0 auto;
}
.rm-critical-code {
    background: rgba(251, 191, 36, 0.2);
    color: #ffffff;
    padding: 0.25rem 0.6rem;
    font-family: var(--rm-mono);
    font-weight: 900;
    font-size: 1.2em;
    border-radius: 6px;
    user-select: all;
    margin: 0 0.3rem;
    display: inline-block;
    letter-spacing: 1px;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

/* Light Mode Override - Pastelová krémová so zemitým textom */
html[data-theme="light"] .rm-critical-box {
    border: 2px solid #fde68a;
    background: #fffbeb;
    box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.15);
}
html[data-theme="light"] .rm-critical-box h3 {
    color: #b45309 !important; /* Tmavá zemitá oranžová */
}
html[data-theme="light"] .rm-critical-box p {
    color: #92400e !important; /* Tmavohnedá pre výbornú čitateľnosť */
}
html[data-theme="light"] .rm-critical-code {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

/* ---------- Modern Roadmap Timeline ---------- */
.rm-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}
.rm-timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 24px;
    width: 3px;
    background: linear-gradient(to bottom, var(--rm-accent-bright) 0%, var(--rm-border) 15%, var(--rm-border) 100%);
}
.rm-timeline__item {
    position: relative;
    padding-left: 5rem;
    margin-bottom: 4rem;
}
.rm-timeline__item:last-child { margin-bottom: 0; }
.rm-timeline__dot {
    position: absolute;
    left: 13px; top: 0.2rem;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--rm-bg);
    border: 4px solid var(--rm-border-strong);
    z-index: 2;
    transition: all 0.3s var(--rm-ease);
}
.rm-timeline__item--active .rm-timeline__dot {
    border-color: var(--rm-accent-bright);
    box-shadow: 0 0 20px var(--rm-accent-wash);
    background: var(--rm-accent);
}
.rm-timeline__content {
    transition: transform 0.3s var(--rm-ease), border-color 0.3s ease;
    background: var(--rm-bg-raised);
    padding: 1.5rem;
    border-radius: var(--rm-r-md);
    border: 1px solid var(--rm-border);
    box-shadow: var(--rm-shadow-md);
}
.rm-timeline__item:hover .rm-timeline__content {
    transform: translateX(8px);
    border-color: var(--rm-border-strong);
}
.rm-timeline__item:hover .rm-timeline__dot {
    transform: scale(1.25);
}

/* OPRAVA SCROLLOVANIA: Obal, ktorý zabráni efektom presahovať mimo obrazovku */
.rm-effects-wrapper {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

/* ---------- Modern Glowing Effects ---------- */
.rm-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    animation: float 10s ease-in-out infinite alternate;
}
.rm-glow--accent {
    background: radial-gradient(circle, var(--rm-accent-bright) 0%, transparent 70%);
    width: 400px;
    height: 400px;
}
.rm-glow--emerald {
    background: radial-gradient(circle, var(--rm-positive) 0%, transparent 70%);
    width: 300px;
    height: 300px;
    opacity: 0.1;
}
@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.1); }
}

/* =============================================================================
   24. STRICT MOBILE OVERFLOW LOCK (Fix horizontal bounce/scroll)
   ============================================================================= */

html, body {
    max-width: 100vw !important;
    overflow-x: clip !important;
    position: relative;
}

/* Poistka pre vsetky sekcie a kontajnery */
.rm-section,
.rm-container,
.rm-hero,
.rm-stack,
.rm-grid {
    max-width: 100% !important;
    overflow-x: clip !important;
}

/* Tabulky a scroller elementy - nesmu roztiahnut okno */
.rm-scroller {
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Poistka pre Dealify varovny box a kod na mobiloch */
.rm-critical-box {
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
}

.rm-critical-code {
    max-width: 100% !important;
    word-break: break-all !important;
    white-space: normal !important;
}

/* Timeline na mobiloch: zmensenie odsadenia aby netlacilo obsah doprava */
@media (max-width: 48rem) {
    .rm-timeline {
        padding-left: 0 !important;
    }
    .rm-timeline::before {
        left: 12px !important;
    }
    .rm-timeline__dot {
        left: 3px !important;
    }
    .rm-timeline__item {
        padding-left: 2.8rem !important;
    }
    .rm-timeline__content {
        padding: 1.1rem !important;
    }
}

/* =============================================================================
   25. Page identity — same components, different atmosphere per page
   ============================================================================= */

/* Marketing pages keep the bronze brand accent (the :root default). The
   interactive demo leans cool/technical, the partner deal page runs hotter,
   the redeem/legal pages calm down so the reader can focus, and the admin
   console gets a distinct slate tone so it never reads as "the marketing site". */

html[data-page="demo"] {
    --rm-accent-2: #38bdf8;
    --rm-accent-2-wash: rgba(56, 189, 248, 0.14);
}
html[data-theme="light"][data-page="demo"] {
    --rm-accent-2: #0284c7;
    --rm-accent-2-wash: rgba(2, 132, 199, 0.1);
}
html[data-page="demo"] .rm-ambient {
    background-image:
        radial-gradient(44rem 32rem at 82% -6%, rgba(56, 189, 248, 0.16), transparent 64%),
        radial-gradient(38rem 30rem at 4% 32%, rgba(194, 136, 77, 0.08), transparent 62%),
        linear-gradient(transparent 95%, var(--rm-border) 95%),
        linear-gradient(90deg, transparent 95%, var(--rm-border) 95%);
}
html[data-page="demo"] .rm-chip--live { color: var(--rm-accent-2, var(--rm-positive)); border-color: rgba(56, 189, 248, 0.32); }
html[data-page="demo"] .rm-demo__step[aria-selected="true"],
html[data-page="demo"] .rm-tab[aria-selected="true"] {
    border-color: rgba(56, 189, 248, 0.5);
    background: var(--rm-accent-2-wash);
    color: var(--rm-accent-2);
}
html[data-page="demo"] .rm-eyebrow { color: var(--rm-accent-2, var(--rm-accent-bright)); }

html[data-page="deal"] .rm-ambient {
    background-image:
        radial-gradient(48rem 36rem at 80% -10%, rgba(225, 29, 72, 0.15), transparent 62%),
        radial-gradient(40rem 32rem at 4% 30%, rgba(52, 211, 153, 0.09), transparent 62%),
        linear-gradient(transparent 95%, var(--rm-border) 95%),
        linear-gradient(90deg, transparent 95%, var(--rm-border) 95%);
}

html[data-page="redeem"] .rm-ambient,
html[data-page="contact"] .rm-ambient { opacity: 0.7; }

html[data-page="legal"] .rm-ambient,
html[data-page="privacy"] .rm-ambient,
html[data-page="terms"] .rm-ambient { opacity: 0.32; }

html[data-page="admin"] {
    --rm-accent: #64748b;
    --rm-accent-bright: #94a3b8;
    --rm-accent-deep: #334155;
    --rm-accent-wash: rgba(100, 116, 139, 0.16);
    --rm-shadow-accent: 0 20px 50px -26px rgba(100, 116, 139, 0.55);
}
html[data-theme="light"][data-page="admin"] {
    --rm-accent: #475569;
    --rm-accent-bright: #334155;
    --rm-accent-deep: #1e293b;
    --rm-accent-wash: rgba(71, 85, 105, 0.08);
}
html[data-page="admin"] .rm-ambient { opacity: 0.5; }

/* ---------- 26. Adaptive CTA — the primary action can differ on a phone ----------
   A Windows .exe cannot be installed from a phone, so on narrow screens swap
   the default "Download" action for something a mobile visitor can actually
   act on (the browser demo, or pricing). Mark the two alternatives with
   data-cta="desktop" / data-cta="mobile" inside the same .rm-row; only one
   is ever visible, so no layout jump and no JS required. */

[data-cta="desktop"] { display: none; }
[data-cta="mobile"] { display: inline-flex; }

@media (min-width: 62rem) {
    [data-cta="desktop"] { display: inline-flex; }
    [data-cta="mobile"] { display: none; }
}

/* ---------- 27. Responsive comparison table — becomes stacked cards on phones ----------
   A horizontally-scrolling table is functional but feels dated. Below 42rem
   each row becomes its own card and each cell grows a label from data-label,
   the classic zero-JS responsive-table technique. */

@media (max-width: 42rem) {
    .rm-compare { min-width: 0; }
    .rm-compare, .rm-compare tbody, .rm-compare tr, .rm-compare th, .rm-compare td { display: block; width: 100%; }
    .rm-compare thead { display: none; }
    .rm-compare tbody tr {
        margin-bottom: 1rem;
        border: 1px solid var(--rm-border);
        border-radius: var(--rm-r-lg);
        background: var(--rm-surface);
        overflow: hidden;
        box-shadow: var(--rm-shadow-sm);
    }
    .rm-compare tbody tr:last-child { margin-bottom: 0; }
    .rm-compare th[scope="row"] {
        background: var(--rm-bg-alt);
        font-size: 0.78rem;
    }
    .rm-compare td {
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .rm-compare td::before {
        content: attr(data-label);
        flex: none;
        width: 6.25rem;
        padding-top: 0.1rem;
        font-size: 0.6rem;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color: var(--rm-muted);
    }
    .rm-scroller:has(.rm-compare) { overflow: visible; }
}

/* ---------- 28. Small refinements ---------- */

/* The pricing head can now carry two chips (tier + a discount badge injected by
   rm.js) — let them wrap onto their own line instead of colliding. */
.rm-price__head { row-gap: 0.5rem; }

/* Table-of-contents used on the long-form legal pages. Gives legal/privacy/terms
   a genuinely different, editorial two-column layout instead of a narrower
   copy of the same single-card page every other section uses. */
.rm-toc {
    display: grid;
    gap: 0.15rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-r-md);
    background: var(--rm-surface);
}
.rm-toc__title { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; color: var(--rm-muted); margin-bottom: 0.3rem; }
.rm-toc a {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--rm-text-soft);
    padding: 0.32rem 0;
    border-left: 2px solid transparent;
    padding-left: 0.7rem;
    margin-left: -0.7rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.rm-toc a:hover { color: var(--rm-accent-bright); }
.rm-toc a.rm-toc--active { color: var(--rm-accent-bright); border-left-color: var(--rm-accent-bright); }

.rm-legal-layout { display: grid; gap: 2rem; align-items: start; }

@media (min-width: 64rem) {
    .rm-legal-layout {
        grid-template-columns: 15.5rem minmax(0, 1fr);
        gap: 3rem;
    }
    .rm-legal-layout .rm-toc {
        position: sticky;
        top: calc(var(--rm-nav-h) + 1.5rem);
    }
}