/* Rawmonic builder elements (builder/rm_*). Colors as custom properties so a site can retune them. */
:root {
    --rm-mg: #e8297f;
    --rm-teal: #51c8ed;
    --rm-cyan: #00d8ff;
    --rm-green: #45db6e;
    --rm-amber: #ffbf33;
    --rm-body: #b8b8cc;
    --rm-muted: #8a8aa0;
    --rm-line: rgba(255, 255, 255, .07);
    --rm-display: 'Oxanium', sans-serif;
}

/* ---- Chips ---------------------------------------------------------------- */
.rm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.uk-text-center .rm-chips, .rm-chips.uk-text-center { justify-content: center; }
.rm-chip {
    display: inline-block; font-size: 10px; line-height: 1; padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .12); color: var(--rm-body); text-decoration: none;
}
.rm-chips-large .rm-chip { font-size: 12px; padding: 7px 11px; }
a.rm-chip:hover { color: #fff; border-color: rgba(255, 255, 255, .3); text-decoration: none; }
.rm-chip-mg { color: var(--rm-mg); border-color: rgba(232, 41, 127, .35); }
.rm-chip-green { color: var(--rm-green); border-color: rgba(69, 219, 110, .35); }
.rm-chip-cyan { color: var(--rm-cyan); border-color: rgba(0, 216, 255, .35); }
.rm-chip-teal { color: var(--rm-teal); border-color: rgba(81, 200, 237, .35); }
.rm-chip-amber { color: var(--rm-amber); border-color: rgba(255, 191, 51, .35); }

/* ---- Pricing -------------------------------------------------------------- */
.rm-pricing-table > div { display: flex; justify-content: center; }
.rm-plan {
    position: relative; display: flex; flex-direction: column; box-sizing: border-box;
    width: 100%; max-width: var(--rm-card-width, 440px);
    padding: 44px 40px 40px; border: 1px solid var(--rm-line); background: rgba(12, 12, 21, .6);
    text-align: left;
}
.rm-plan-highlight {
    border-color: rgba(232, 41, 127, .32); background: rgba(232, 41, 127, .055);
    animation: rm-plan-pulse 3.5s ease-in-out infinite;
}
@keyframes rm-plan-pulse {
    0%, 100% { box-shadow: 0 0 18px rgba(232, 41, 127, .12), inset 0 0 18px rgba(232, 41, 127, .04); }
    50% { box-shadow: 0 0 36px rgba(232, 41, 127, .22), inset 0 0 28px rgba(232, 41, 127, .08); }
}
@media (prefers-reduced-motion: reduce) { .rm-plan-highlight { animation: none; } }
.rm-plan-badge {
    position: absolute; top: -1px; left: 50%; transform: translateX(-50%); white-space: nowrap;
    background: var(--rm-mg); color: #fff; padding: 3px 14px;
    font: 700 9px/1.6 var(--rm-display); letter-spacing: .18em; text-transform: uppercase;
}
.rm-plan:not(.rm-plan-highlight) .rm-plan-badge { background: #1c1c2a; color: var(--rm-body); }
.rm-plan-name {
    margin: 8px 0 20px; color: var(--rm-muted);
    font: 700 11px/1.4 var(--rm-display); letter-spacing: .2em; text-transform: uppercase;
}
.rm-plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 6px; }
.rm-plan-price .el-price {
    font: 800 58px/1 var(--rm-display); letter-spacing: -.03em; color: #f0f0f8;
}
.rm-plan-highlight .rm-plan-price .el-price { color: var(--rm-mg); text-shadow: 0 0 34px rgba(232, 41, 127, .33); }
.rm-plan-old { font-size: 14px; color: var(--rm-muted); }
.rm-plan-price-note { font-size: 11px; color: var(--rm-muted); letter-spacing: .04em; }
.rm-plan-desc { margin: 16px 0 26px; font-size: 12.5px; line-height: 1.7; color: var(--rm-body); }
.rm-plan-features { list-style: none; margin: 0; padding: 0; }
.rm-plan-features li {
    display: flex; align-items: flex-start; gap: 10px; padding: 9px 0;
    border-bottom: 1px solid var(--rm-line); font-size: 12px; line-height: 1.5; color: var(--rm-body);
}
.rm-plan-features li::before {
    content: ""; flex-shrink: 0; width: 0; height: 0; margin-top: .55em;
    border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 7px solid var(--rm-mg);
}
/* push the button to the card bottom so buttons line up in a table */
.rm-plan-actions { margin-top: auto; padding-top: 30px; }
.rm-plan-second { margin-top: 14px; text-align: center; }
.rm-plan-link { font-size: 11px; letter-spacing: .04em; color: var(--rm-teal); border-bottom: 1px solid transparent; transition: border-color .2s; }
.rm-plan-link:hover { color: var(--rm-teal); text-decoration: none; border-color: var(--rm-teal); }
.rm-plan-note { margin-top: 10px; text-align: center; font-size: 10px; letter-spacing: .06em; color: var(--rm-muted); }
@media (max-width: 639px) { .rm-plan { padding: 40px 24px 28px; } .rm-plan-price .el-price { font-size: 46px; } }

/* ---- shared --------------------------------------------------------------- */
.rm-accent { color: var(--rm-mg); }
.rm-c-cyan { color: var(--rm-cyan); } .rm-c-teal { color: var(--rm-teal); } .rm-c-mg { color: var(--rm-mg); }
.rm-c-green { color: var(--rm-green); } .rm-c-amber { color: var(--rm-amber); } .rm-c-white { color: #f0f0f8; } .rm-c-muted { color: var(--rm-muted); }
.rm-c-violet { color: #b89eff; } .rm-c-dimmed { color: #b8b8cc; }

/* ---- Screenshot ----------------------------------------------------------- */
.rm-shot { position: relative; margin: 0; border: 1px solid var(--rm-line); background: #000; overflow: hidden; }
.rm-shot-glow { box-shadow: 0 0 0 1px rgba(232, 41, 127, .06), 0 24px 70px rgba(0, 0, 0, .6), 0 0 50px rgba(232, 41, 127, .07); }
.rm-shot-media { display: block; width: 100%; height: auto; }
.rm-shot > a { display: block; }
.rm-shot-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center;
    background: repeating-linear-gradient(135deg, #07070c 0 14px, #0a0a11 14px 28px); }
.rm-shot-ph-tag { font: 700 9px/1.6 var(--rm-display); letter-spacing: .2em; text-transform: uppercase; color: var(--rm-mg); }
.rm-shot-ph-desc { max-width: 34em; font-size: 12px; line-height: 1.6; color: var(--rm-muted); }
.rm-shot-cap {
    padding: 11px 16px; border-top: 1px solid var(--rm-line); background: rgba(12, 12, 21, .6);
    font-size: 10px; letter-spacing: .04em; line-height: 1.6; color: var(--rm-muted);
}
.rm-tilt { transform: perspective(1600px) rotateY(-9deg) rotateX(3deg) skewY(-1.3deg); transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
.rm-tilt:hover { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg) skewY(-.5deg); }
@media (max-width: 859px) { .rm-tilt, .rm-tilt:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .rm-tilt { transition: none; } }

/* ---- Product Hero ------------------------------------------------------- */
.rm-hero {
    position: relative; overflow: hidden; box-sizing: border-box;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 120px 40px 80px;
}
.rm-hero-full { min-height: calc(100vh - 80px); }
.rm-hero-grid {
    background-image: linear-gradient(var(--rm-line) 1px, transparent 1px), linear-gradient(90deg, var(--rm-line) 1px, transparent 1px);
    background-size: 64px 64px;
}
.rm-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; z-index: 0; }
.rm-hero-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(ellipse 90% 80% at 60% 40%, transparent 30%, #06060a 100%); }
.rm-hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none; z-index: 1; background: linear-gradient(transparent, #06060a); }
.rm-hero-emblem { position: relative; z-index: 2; display: flex; justify-content: center; margin-bottom: 26px; }
.rm-hero-emblem img { width: 100%; max-width: 104px; height: auto; }
.rm-glow img { will-change: filter; animation: rm-delta-glow 3.4s ease-in-out infinite; }
@keyframes rm-delta-glow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(232, 41, 127, .3)) drop-shadow(0 0 18px rgba(232, 41, 127, .12)); }
    50% { filter: drop-shadow(0 0 14px rgba(232, 41, 127, .55)) drop-shadow(0 0 34px rgba(232, 41, 127, .25)); }
}
.rm-hero-inner {
    position: relative; z-index: 2; width: 100%; max-width: 1160px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
}
.rm-hero-solo { grid-template-columns: 1fr; max-width: 760px; text-align: center; }
.rm-hero-solo .rm-hero-ctas { justify-content: center; }
.rm-hero-text { max-width: 520px; }
.rm-hero-solo .rm-hero-text { max-width: none; }
.rm-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 9px; margin-bottom: 30px; padding: 6px 15px;
    border: 1px solid rgba(81, 200, 237, .22); background: rgba(81, 200, 237, .04);
    font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--rm-teal);
}
.rm-hero-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rm-mg); box-shadow: 0 0 8px var(--rm-mg); }
.rm-hero-title {
    margin: 0 0 26px; color: #f0f0f8;
    font: 800 clamp(40px, 5.6vw, 76px)/.98 var(--rm-display); letter-spacing: -.04em; text-transform: none;
}
.rm-hero-title .rm-accent { text-shadow: 0 0 44px rgba(232, 41, 127, .55); }
.rm-hero-body { margin-bottom: 32px; font-size: 14px; line-height: 1.85; color: var(--rm-body); }
.rm-hero-body em { color: #f0f0f8; }
.rm-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.rm-hero-trust { margin-top: 16px; font-size: 11.5px; line-height: 1.6; letter-spacing: .03em; color: var(--rm-muted); }
.rm-hero-formats { margin-top: 18px; font-size: 10px; letter-spacing: .2em; color: var(--rm-muted); }
@media (max-width: 859px) {
    .rm-hero { padding: 110px 20px 60px; }
    .rm-hero-full { min-height: 0; }
    .rm-hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .rm-hero-text { max-width: none; }
    .rm-hero-emblem { margin-bottom: 18px; }
    .rm-hero-emblem img { max-width: 84px; }
}
@media (prefers-reduced-motion: reduce) { .rm-hero-bg { display: none; } .rm-glow img { animation: none; filter: drop-shadow(0 0 12px rgba(232, 41, 127, .45)); } }

/* ---- Key List ----------------------------------------------------------- */
.rm-keys-panel { padding: 30px 28px; border: 1px solid var(--rm-line); background: #06060a; }
.rm-keys-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.rm-keys-icon { font-size: 16px; }
.rm-keys-title { margin: 0; color: #f0f0f8; font: 800 14px/1.3 var(--rm-display); letter-spacing: .2em; text-transform: uppercase; }
.rm-keys-tag { margin-left: auto; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--rm-teal); }
.rm-keys-list { margin: 0; }
.rm-keys-row { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rm-line); }
.rm-keys-key { flex: 0 0 auto; min-width: 50px; margin: 0; font-weight: 700; font-size: 12px; letter-spacing: .03em; }
.rm-keys-wide .rm-keys-key { min-width: 90px; }
.rm-keys-val { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--rm-body); }
/* legend look: the thin boxed key/value list of the product pages (lanes, stages, characters) */
.rm-keys-legend { border: 1px solid var(--rm-line); }
.rm-keys-legend .rm-keys-head { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--rm-line); }
.rm-keys-legend .rm-keys-row { padding: 10px 16px; }
.rm-keys-legend .rm-keys-row:last-child { border-bottom: none; }
.rm-keys-legend .rm-keys-key { min-width: 64px; font: 800 12px/1.65 var(--rm-display); letter-spacing: .04em; }
.rm-keys-legend .rm-keys-val { font-size: 12px; line-height: 1.65; }
.rm-keys-legend .rm-keys-footer { margin: 0; padding: 10px 16px; border-top: 1px solid var(--rm-line); }
/* tiles: the rows flow into columns (gesture strip) */
.rm-keys-tiles .rm-keys-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--rm-line); }
.rm-keys-tiles .rm-keys-row, .rm-keys-tiles .rm-keys-row:last-child { border-bottom: none; background: #06060a; }
.rm-keys-tiles .rm-keys-key { min-width: 96px; }
.rm-keys-footer { margin-top: 8px; padding-top: 12px; font-size: 11px; color: var(--rm-body); }

/* ---- Signal Flow -------------------------------------------------------- */
.rm-routing { width: 100%; }
.rm-routing-grid {
    display: grid; grid-template-columns: 150px minmax(120px, 1fr) 150px; grid-auto-rows: auto; width: 100%;
    column-gap: 12px; row-gap: 14px; align-items: center; max-width: 620px; margin: 0 auto;
}
.rm-routing-node, .rm-routing-target { padding: 16px 18px; border: 1px solid var(--rm-line); background: #0c0c15; text-align: center; }
.rm-routing-node { grid-column: 1; }
.rm-routing-line { grid-column: 2; position: relative; height: 1px; background: rgba(81, 200, 237, .18); }
.rm-routing-line-bright { background: rgba(81, 200, 237, .35); }
.rm-routing-line span {
    position: absolute; top: -8px; left: 50%; transform: translateX(-50%); padding: 0 10px; white-space: nowrap;
    background: #0c0c15; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--rm-muted);
}
.rm-routing-target {
    grid-column: 3; grid-row: 1 / span var(--rm-rows); align-self: stretch;
    display: flex; flex-direction: column; justify-content: center;
    border-color: rgba(232, 41, 127, .35); background: rgba(232, 41, 127, .05);
}
.rm-routing-label { font: 800 13px/1.2 var(--rm-display); letter-spacing: .18em; color: var(--rm-teal); }
.rm-routing-symbol { font: 800 22px/1 var(--rm-display); color: var(--rm-mg); text-shadow: 0 0 18px rgba(232, 41, 127, .5); }
.rm-routing-desc { margin-top: 6px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--rm-muted); }
.rm-routing-note { max-width: 560px; margin: 30px auto 0; text-align: center; font-size: 12px; line-height: 1.85; color: var(--rm-body); }
.rm-routing-note strong { color: var(--rm-teal); font-weight: 600; }
@media (max-width: 639px) {
    .rm-routing-grid { grid-template-columns: 1fr; }
    .rm-routing-node, .rm-routing-target { grid-column: 1; grid-row: auto; }
    .rm-routing-line { grid-column: 1; height: auto; background: none; text-align: center; }
    .rm-routing-line span { position: static; transform: none; background: none; }
}

/* ---- Comparison ----------------------------------------------------------- */
.rm-compare { max-width: 760px; margin-left: auto; margin-right: auto; border: 1px solid var(--rm-line); }
.rm-compare-head, .rm-compare-row { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; gap: 14px; align-items: center; padding: 14px 22px; }
.rm-compare-head { border-bottom: 1px solid var(--rm-line); background: rgba(255, 255, 255, .02); }
.rm-compare-head span { font: 800 11px/1.3 var(--rm-display); letter-spacing: .14em; text-transform: uppercase; }
.rm-compare-head .rm-compare-them { color: var(--rm-muted); }
.rm-compare-head .rm-compare-us { color: var(--rm-mg); }
.rm-compare-row { border-bottom: 1px solid var(--rm-line); }
.rm-compare-row:last-child { border-bottom: 0; }
.rm-compare-aspect { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--rm-muted); }
.rm-compare-row .rm-compare-them { font-size: 12px; color: var(--rm-body); }
.rm-compare-row .rm-compare-us { font-size: 12.5px; color: #f0f0f8; }
.rm-compare-last .rm-compare-row:last-child .rm-compare-us { color: var(--rm-mg); font-weight: 700; }
@media (max-width: 639px) {
    .rm-compare-head { display: none; }
    .rm-compare-row { grid-template-columns: 1fr; gap: 5px; }
    .rm-compare-aspect { color: var(--rm-teal); }
    .rm-compare-row [data-label]:not([data-label=""])::before { content: attr(data-label) " \2014  "; color: var(--rm-muted); }
    .rm-compare-row .rm-compare-us[data-label]:not([data-label=""])::before { color: var(--rm-mg); }
}
.rm-keys-footer b { margin-right: 6px; font: 800 12px/1 var(--rm-display); letter-spacing: .06em; }

/* ---- Skewed Media --------------------------------------------------------- */
/* rest pose on .rm-skew-media, active pose on hover / .rm-skew-active. The transition of the
   state being entered applies, so "in" timing lives on the active rule and "out" on the rest rule. */
.rm-skew { perspective: var(--rm-persp); }
.rm-skew-media {
    transform-origin: var(--rm-origin);
    transform: rotateY(var(--rm-ry)) rotateX(var(--rm-rx)) skewY(var(--rm-sk));
    transition: transform var(--rm-out);
    will-change: transform;
}
.rm-skew-media:not(.rm-skew-frame) { border: 0; background: none; }
.rm-skew-hover:hover .rm-skew-media,
.rm-skew-inview.rm-skew-active .rm-skew-media {
    transform: rotateY(var(--rm-ary)) rotateX(var(--rm-arx)) skewY(var(--rm-ask)) scale(var(--rm-asc));
    transition: transform var(--rm-in);
}
@media (max-width: 859px) {
    .rm-skew-flat-mobile .rm-skew-media, .rm-skew-flat-mobile.rm-skew-hover:hover .rm-skew-media { transform: none; }
}
/* builder live preview (js/builder-live.js): the pose being edited, immediately, hover or not */
.rm-skew.rm-skew-live .rm-skew-media { transition: none !important; }
.rm-skew.rm-skew-live-rest .rm-skew-media { transform: rotateY(var(--rm-ry)) rotateX(var(--rm-rx)) skewY(var(--rm-sk)) !important; }
.rm-skew.rm-skew-live-active .rm-skew-media { transform: rotateY(var(--rm-ary)) rotateX(var(--rm-arx)) skewY(var(--rm-ask)) scale(var(--rm-asc)) !important; }
@media (prefers-reduced-motion: reduce) { .rm-skew-media { transition: none !important; } }

/* ---- Feature list (bulleted copy beside a shot) ------------------------ */
.rm-feature-list { margin: 0 0 18px 18px; padding: 0; font-size: 12.5px; line-height: 1.8; color: var(--rm-body); }
.rm-feature-list li { margin-bottom: 8px; }
.rm-feature-list strong { color: var(--rm-teal); font-weight: 600; }
.rm-feature-list em { color: #f0f0f8; font-style: italic; }

/* ---- Apps & Plugins mega menu (tools/menu.mjs) -------------------------- */
/* group label above each set of cards */
.rm-mega-group, .uk-navbar-dropdown .rm-mega-group { font: 600 10px/1.2 var(--rm-display); letter-spacing: .16em; text-transform: uppercase; color: #6c6c84; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--rm-line); }
/* cards: no frame, the crop and the name carry it; hover lifts the image and lights the name */
.rm-mega .el-image { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: #06060a; border: 1px solid var(--rm-line); border-radius: 3px; box-sizing: border-box; filter: brightness(.82); transition: filter .2s, border-color .2s; }
.rm-mega .el-item:hover .el-image { filter: brightness(1.08); border-color: rgba(232, 41, 127, .55); }
.rm-mega-fallback .el-image { object-fit: contain; padding: 9% 40%; filter: grayscale(1) brightness(.45); }
.rm-mega-fallback:hover .el-image { filter: grayscale(.4) brightness(.8); }
.rm-mega .el-title { font: 500 14px/1.25 var(--rm-display); letter-spacing: .02em; text-transform: none; color: #f0f0f8; transition: color .2s; }
.rm-mega .el-title .rm-mega-pre { color: #7c7c94; font-weight: 400; }
.rm-mega .el-item:hover .el-title { color: var(--rm-mg); }
.rm-mega .el-content { color: #8a8aa2; font-size: 12px; line-height: 1.4; }
.rm-mega-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid currentColor; border-radius: 2px; font: 600 9px/1.4 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; color: var(--rm-teal); }
/* the trigger: no mouse focus box, open state lit like the active item */
.tm-header .uk-navbar-nav > li > a:focus:not(:focus-visible) { outline: none; }
.tm-header .uk-navbar-nav > li > a[aria-expanded="true"] { color: var(--rm-mg); }

/* ---- Coming soon (inc/coming-soon.php): no header (the page has the big logo), no footer --------- */
.rm-coming-soon .tm-header, .rm-coming-soon .tm-header-mobile, .rm-coming-soon #footer, .rm-coming-soon .tm-footer { display: none; }
