/* ==========================================================================
   RandNow — main stylesheet
   Premium, calm and precise: deep-navy hero with an aurora glow, airy light
   sections, hairline borders, soft layered shadows and a royal-blue → cyan accent.
   Tokens → base → layout → components → generator app → pages → utilities
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
/* Country flag emoji for Windows, which ships no flag glyphs (Twemoji, CC-BY 4.0). Only flag code points use it. */
@font-face { font-family: "Twemoji Country Flags"; src: url("../fonts/TwemojiCountryFlags.woff2") format("woff2"); unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F; font-display: swap; }
:root {
	--rn-primary: #2563eb;
	--rn-primary-2: #06b6d4;
	--rn-grad: linear-gradient(120deg, var(--rn-primary) 0%, var(--rn-primary-2) 100%);
	--rn-gold: #f59e0b;

	--night: #070b18;
	--bg: #ffffff;
	--bg-soft: #f6f8fc;
	--surface: #ffffff;
	--surface-2: #f6f8fc;
	--surface-3: #eef2f8;
	--text: #0b1224;
	--text-2: #334155;
	--muted: #64748b;
	--border: #e5e9f2;
	--border-strong: #d3dae8;
	--ring: color-mix(in srgb, var(--rn-primary) 30%, transparent);
	--primary-soft: color-mix(in srgb, var(--rn-primary) 9%, transparent);
	--ok: #10b981;
	--err: #ef4444;

	--shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
	--shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
	--shadow: 0 10px 30px -12px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .04);
	--shadow-lg: 0 30px 70px -24px rgba(15, 23, 42, .28), 0 8px 20px -10px rgba(15, 23, 42, .10);
	--shadow-glow: 0 18px 50px -18px color-mix(in srgb, var(--rn-primary) 55%, transparent);

	--r-sm: 10px;
	--r: 14px;
	--r-lg: 20px;
	--r-xl: 28px;

	--font: "Twemoji Country Flags", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Twemoji Country Flags", "Manrope", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--wrap: 1200px;
	--header-h: 68px;
	color-scheme: light;
}

[data-theme="dark"] {
	--bg: #070b18;
	--bg-soft: #0b1122;
	--surface: #0f172a;
	--surface-2: #111a30;
	--surface-3: #17213a;
	--text: #eef2fb;
	--text-2: #c4cde0;
	--muted: #8b97b0;
	--border: #1e293f;
	--border-strong: #2b3754;
	--primary-soft: color-mix(in srgb, var(--rn-primary) 16%, transparent);
	--shadow-xs: none;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
	--shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
	--shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .75);
	color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--rn-primary); text-decoration: none; transition: color .15s; }
a:hover { color: color-mix(in srgb, var(--rn-primary) 75%, #000); }
[data-theme="dark"] a:hover { color: var(--rn-primary-2); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 .5em; color: var(--text); font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.35rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--font-mono); font-size: .88em; }
kbd { display: inline-block; padding: .08em .45em; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--muted); font-size: .72em; line-height: 1.5; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--rn-primary) 22%, transparent); }
.rn-ico { flex-shrink: 0; vertical-align: middle; }

.rn-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .rn-wrap { padding-inline: 24px; } }
.rn-narrow { max-width: 780px; margin-inline: auto; }
.rn-main { display: block; min-height: 60vh; }
.screen-reader-text, .rn-hp { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.rn-skip { position: absolute; left: 12px; top: -100px; z-index: 1000; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.rn-skip:focus { top: 12px; color: var(--bg); }
.rn-grad { background: var(--rn-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------ buttons */
.rn-btn {
	--h: 44px;
	display: inline-flex; align-items: center; justify-content: center; gap: .5em; height: var(--h); padding: 0 1.2em;
	border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: .94rem; line-height: 1; white-space: nowrap;
	transition: transform .15s ease, box-shadow .2s ease, background .2s, color .2s, border-color .2s;
}
.rn-btn:active { transform: translateY(1px); }
.rn-btn--primary { background: var(--rn-grad); color: #fff; box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, .2); }
.rn-btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 22px 50px -16px color-mix(in srgb, var(--rn-primary) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .2); }
.rn-btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-xs); }
.rn-btn--ghost:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.rn-btn--dark { background: var(--text); color: var(--bg); }
.rn-btn--dark:hover { color: var(--bg); transform: translateY(-1px); box-shadow: var(--shadow); }
.rn-btn--light { background: #fff; color: #0b1224; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }
.rn-btn--light:hover { color: var(--rn-primary); transform: translateY(-1px); }
.rn-btn--lg { --h: 52px; padding: 0 1.5em; font-size: 1rem; border-radius: 14px; }
.rn-btn--sm { --h: 38px; padding: 0 .95em; font-size: .87rem; border-radius: 10px; }
.rn-btn--xs { --h: 30px; padding: 0 .7em; font-size: .8rem; border-radius: 8px; gap: .35em; }
.rn-btn--block { width: 100%; }
.rn-link { font-weight: 600; background: none; border: 0; padding: 0; color: var(--rn-primary); }
.rn-iconbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 10px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); transition: .2s; }
.rn-iconbtn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.rn-iconbtn kbd { display: none; }
@media (min-width: 1100px) { .rn-search-open.rn-iconbtn kbd { display: inline-block; } }
.rn-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: .8rem; font-weight: 600; background: color-mix(in srgb, var(--c, var(--rn-primary)) 10%, transparent); color: var(--c, var(--rn-primary)); border: 1px solid color-mix(in srgb, var(--c, var(--rn-primary)) 22%, transparent); }
.rn-chip:hover { color: var(--c, var(--rn-primary)); background: color-mix(in srgb, var(--c, var(--rn-primary)) 16%, transparent); }

/* ------------------------------------------------------------------ header */
.rn-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s, background .2s; }
.rn-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 10px 30px -24px rgba(15, 23, 42, .3); }
.home .rn-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .rn-header:not(.is-scrolled) .rn-logo, .home .rn-header:not(.is-scrolled) .rn-nav__link, .home .rn-header:not(.is-scrolled) .rn-nav__menu > li > a { color: #e6ecfa; }
.home .rn-header:not(.is-scrolled) .rn-iconbtn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #e6ecfa; }
.home .rn-header:not(.is-scrolled) .rn-iconbtn kbd { background: transparent; border-color: rgba(255, 255, 255, .2); color: #aab6d3; }
.home .rn-header:not(.is-scrolled) .rn-nav__link:hover, .home .rn-header:not(.is-scrolled) .rn-nav__menu > li > a:hover { background: rgba(255, 255, 255, .08); }
.home .rn-header:not(.is-scrolled) .rn-nav__item.is-open .rn-nav__link { background: rgba(255, 255, 255, .1); color: #fff; }
.home .rn-main { margin-top: calc(-1 * var(--header-h)); }
.admin-bar .rn-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rn-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .rn-header { top: 0; } }
.rn-header__row { display: flex; align-items: center; gap: 22px; height: 100%; }
.rn-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.rn-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -.035em; }
.rn-logo:hover { color: inherit; }
.rn-logo__mark svg { display: block; filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--rn-primary) 40%, transparent)); }
.rn-logo__text b { font-weight: 800; background: var(--rn-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.custom-logo { max-height: 42px; width: auto; }

.rn-nav { display: flex; align-items: center; gap: 2px; }
.rn-nav__link, .rn-nav__menu > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 13px; border-radius: 10px; border: 0; background: none; color: var(--text-2); font-weight: 500; font-size: .94rem; }
.rn-nav__link:hover, .rn-nav__menu > li > a:hover, .rn-nav__item.is-open .rn-nav__link { color: var(--text); background: var(--surface-2); }
.rn-nav__link .rn-ico { transition: transform .2s; }
.rn-nav__item.is-open .rn-nav__link .rn-ico { transform: rotate(180deg); }
.rn-nav__menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.rn-nav__menu .sub-menu { display: none; }

.rn-mega { position: absolute; left: 50%; top: calc(var(--header-h) - 4px); transform: translate(-50%, 8px); width: min(1160px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 24px; opacity: 0; visibility: hidden; transition: .2s ease; }
.rn-nav__item.is-open .rn-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.rn-mega__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 20px; max-height: calc(100vh - 190px); overflow-y: auto; }
.rn-mega__more a { color: var(--c) !important; font-weight: 600; }
.rn-mega__head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); font-size: .9rem; margin-bottom: 10px; }
.rn-mega__ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
.rn-mega ul { list-style: none; margin: 0; padding: 0; }
.rn-mega li a { display: block; padding: 5px 8px; margin-left: -8px; border-radius: 8px; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.rn-mega li a:hover { background: var(--surface-2); color: var(--text); }
.rn-mega__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: .87rem; }
.rn-mega__foot a { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }

.rn-menu-toggle { display: none; }
.rn-menu-toggle__close, [data-theme="dark"] .rn-theme-toggle__sun, .rn-theme-toggle__moon { display: none; }
[data-theme="dark"] .rn-theme-toggle__moon, .rn-theme-toggle__sun { display: inline-flex; }
.nav-open .rn-menu-toggle__open { display: none; }
.nav-open .rn-menu-toggle__close { display: inline-flex; }
@media (max-width: 1100px) { .rn-mega__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) {
	.rn-menu-toggle { display: inline-flex; }
	.rn-header__cta { display: none !important; }
	.rn-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 16px; gap: 6px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; }
	.admin-bar .rn-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .rn-nav { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.nav-open .rn-header { background: var(--bg) !important; }
	.nav-open .rn-header .rn-logo, .nav-open .rn-header .rn-iconbtn { color: var(--text) !important; }
	.rn-mega { position: static; transform: none; width: auto; opacity: 1; visibility: visible; display: none; box-shadow: none; padding: 14px; margin-top: 6px; }
	.rn-nav__item.is-open .rn-mega { display: block; transform: none; }
	.rn-mega__grid { grid-template-columns: 1fr 1fr; }
	.rn-nav__menu { flex-direction: column; }
	.rn-nav .rn-nav__link, .rn-nav .rn-nav__menu > li > a { width: 100%; justify-content: space-between; font-size: 1.05rem; color: var(--text) !important; }
}
@media (max-width: 520px) { .rn-mega__grid { grid-template-columns: 1fr; } .rn-logo { font-size: 1.14rem; } }

/* ------------------------------------------------------------------ hero (dark aurora) */
.rn-hero { position: relative; padding: calc(var(--header-h) + 64px) 0 0; overflow: hidden; isolation: isolate; background: var(--night); color: #dbe3f4; }
.rn-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rn-hero__bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 25%, transparent 75%); }
.rn-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: rnFloat 16s ease-in-out infinite alternate; }
.rn-blob--1 { width: 620px; height: 420px; background: var(--rn-primary); top: -180px; left: 50%; margin-left: -520px; }
.rn-blob--2 { width: 520px; height: 380px; background: var(--rn-primary-2); top: -120px; left: 50%; margin-left: 40px; opacity: .4; animation-delay: -6s; }
@keyframes rnFloat { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }

.rn-hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.rn-badge { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 10px; border-radius: 99px; font-size: .84rem; font-weight: 500; color: #c9d4ee; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.rn-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); animation: rnPulse 2s infinite; }
@keyframes rnPulse { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }
.rn-hero__title { color: #fff; font-size: clamp(2.6rem, 5.6vw, 4.9rem); margin: 26px 0 22px; letter-spacing: -.045em; line-height: 1.06; max-width: none; }
/* Highlighted words (“right now.”): a quiet silver sheen so the rotating word stays the hero of the line. */
.rn-hero__title .rn-grad { background: linear-gradient(180deg, #ffffff 15%, #a9b8d6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rn-rotate-line { white-space: nowrap; }
/* Rotating word: a clipped slot; words slide up through it and the slot width eases to each word. */
.rn-rotate { position: relative; display: inline-block; vertical-align: bottom; height: 1.2em; margin-bottom: -.12em; overflow: hidden; white-space: nowrap; text-align: left; transition: width .5s cubic-bezier(.65, 0, .35, 1); filter: drop-shadow(0 0 28px rgba(34, 211, 238, .28)); }
.rn-rotate__word { display: block; height: 1.2em; line-height: 1.2em; padding-right: .04em; color: transparent; background: linear-gradient(100deg, #60a5fa 0%, #38bdf8 40%, #22d3ee 70%, #a5f3fc 100%); -webkit-background-clip: text; background-clip: text; transition: transform .5s cubic-bezier(.65, 0, .35, 1), opacity .5s ease; }
.rn-rotate__word.is-leaving { position: absolute; left: 0; top: 0; transform: translateY(-100%); opacity: 0; }
.rn-rotate__word.is-entering { transform: translateY(100%); opacity: 0; }
.rn-rotate.is-calm, .rn-rotate.is-calm .rn-rotate__word { transition: opacity .3s linear !important; }
.rn-rotate.is-calm .rn-rotate__word.is-leaving, .rn-rotate.is-calm .rn-rotate__word.is-entering { transform: none; }
.rn-rotate__measure { position: absolute; visibility: hidden; white-space: nowrap; pointer-events: none; }
.rn-hero__text { font-size: clamp(1.04rem, 1.5vw, 1.18rem); color: #a9b6d3; max-width: 680px; margin-bottom: 34px; }

.rn-command { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 8px 8px 8px 22px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: blur(10px); }
.rn-command__label { font-weight: 600; font-size: 1.02rem; color: #dbe3f4; white-space: nowrap; }
.rn-command__select { position: relative; display: inline-flex; align-items: center; color: #fff; }
.rn-command__select select { appearance: none; -webkit-appearance: none; height: 52px; padding: 0 44px 0 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); color: #fff; font-weight: 600; font-size: 1rem; cursor: pointer; max-width: 300px; }
.rn-command__select select option { color: #0b1224; }
.rn-command__select .rn-ico { position: absolute; right: 14px; pointer-events: none; opacity: .7; }
.rn-command__select select:focus { outline: 0; border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(96, 165, 250, .25); }
@media (max-width: 640px) { .rn-command { flex-direction: column; align-items: stretch; width: 100%; padding: 16px; } .rn-command__select select { max-width: none; width: 100%; } }
.rn-hero__links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; margin: 22px 0 48px; }
.rn-hero__links .rn-link { color: #93c5fd; }
.rn-hero__links .rn-link:hover { color: #fff; }
.rn-hero__kbd { border: 0; background: none; color: #7f8db0; font-size: .9rem; }
.rn-hero__kbd:hover { color: #dbe3f4; }
.rn-hero__kbd kbd { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #b9c5e2; }

.rn-demo { width: 100%; max-width: 860px; text-align: left; background: var(--surface); color: var(--text); border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--r-xl); padding: 22px; position: relative; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .7), 0 0 0 8px rgba(255, 255, 255, .04); }
[data-theme="dark"] .rn-demo { border-color: var(--border); }
.rn-demo__top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rn-demo__live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--ok) 12%, transparent); color: #059669; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.rn-demo__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: rnPulse 1.6s infinite; }
.rn-demo__label { font-size: .88rem; font-weight: 500; color: var(--muted); }
.rn-demo__form { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.rn-demo__form .rn-app__fields { flex: 1; display: block; }
.rn-demo__form .rn-field label { display: none; }
.rn-demo__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: .92rem; }
.rn-demo .rn-results { padding: 0; min-height: 0; background: none; }
.rn-demo .rn-results--cards { grid-template-columns: 1fr; }
.rn-demo .rn-rcard { box-shadow: none; background: var(--surface-2); }
.rn-demo .rn-rcard__fields { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.rn-demo .rn-kv { grid-template-columns: 90px minmax(0, 1fr); }
.rn-demo .rn-kv:nth-child(2) { border-top: 0; }
@media (max-width: 640px) { .rn-demo { padding: 16px; } .rn-demo .rn-rcard__fields { grid-template-columns: 1fr; } .rn-demo .rn-kv:nth-child(2) { border-top: 1px solid var(--border); } }

.rn-marquee { position: relative; margin-top: 64px; padding: 18px 0; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .08); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.rn-marquee__track { display: flex; width: max-content; animation: rnMarquee 70s linear infinite; }
.rn-marquee:hover .rn-marquee__track { animation-play-state: paused; }
.rn-marquee__item { display: inline-flex; align-items: baseline; gap: 10px; padding: 0 28px; white-space: nowrap; }
.rn-marquee__item b { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: #60a5fa; }
.rn-marquee__item em { font-style: normal; font-family: var(--font-mono); font-size: .88rem; color: #c3cde4; }
@keyframes rnMarquee { to { transform: translateX(-50%); } }

.rn-stats { list-style: none; margin: 0; padding: 30px 0 56px; display: grid; grid-template-columns: repeat(4, 1fr); }
.rn-stats li { padding: 4px 24px; display: flex; flex-direction: column; border-left: 1px solid rgba(255, 255, 255, .1); }
.rn-stats li:first-child { border-left: 0; }
.rn-stats strong { font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; color: #fff; }
.rn-stats span { color: #8d9abb; font-size: .9rem; }
@media (max-width: 860px) { .rn-stats { grid-template-columns: 1fr 1fr; row-gap: 20px; } .rn-stats li:nth-child(3) { border-left: 0; } }
@media (max-width: 600px) { .rn-badge { font-size: .74rem; padding: 5px 12px 5px 9px; white-space: nowrap; max-width: 100%; } .rn-badge > span:not(.rn-badge__dot), .rn-badge { overflow: hidden; text-overflow: ellipsis; } .rn-hero { padding-top: calc(var(--header-h) + 34px); } .rn-hero__title { font-size: clamp(2.3rem, 11vw, 2.9rem); line-height: 1.08; max-width: none; margin: 22px 0 18px; } .rn-rotate-line { display: block; } .rn-hero__br { display: none; } .rn-hero__text { font-size: 1rem; margin-bottom: 26px; } .rn-stats strong { font-size: 1.8rem; } .rn-stats li { padding: 4px 14px; } }

/* ------------------------------------------------------------------ sections */
.rn-section { padding: 96px 0; }
.rn-section.rn-wrap { padding-inline: 16px; }
@media (min-width: 720px) { .rn-section.rn-wrap { padding-inline: 24px; } }
.rn-section--flush { padding-top: 32px; }
.rn-section--tint { background: var(--bg-soft); border-block: 1px solid var(--border); }
.rn-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.rn-sechead h2 { margin: 0; }
.rn-sechead--center { flex-direction: column; align-items: center; text-align: center; max-width: 740px; margin-inline: auto; margin-bottom: 48px; }
.rn-sechead--center p:not(.rn-eyebrow) { color: var(--muted); margin: 12px 0 0; font-size: 1.08rem; }
.rn-eyebrow { display: inline-block; margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--rn-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.rn-grid { display: grid; gap: 20px; }
.rn-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rn-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .rn-grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .rn-grid--4, .rn-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .rn-grid--4, .rn-grid--3 { grid-template-columns: 1fr; } }

/* tool card */
.rn-card { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; overflow: hidden; }
.rn-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 140px; background: radial-gradient(300px 140px at 0% 0%, color-mix(in srgb, var(--c) 12%, transparent), transparent 70%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.rn-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 30%, var(--border)); }
.rn-card:hover::before { opacity: 1; }
.rn-card__ico { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-size: 1.45rem; margin-bottom: 18px; background: color-mix(in srgb, var(--c) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 18%, var(--border)); }
.rn-card__title { font-size: 1.04rem; margin-bottom: 6px; }
.rn-card__title a { color: var(--text); }
.rn-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rn-card__text { color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 0 0 18px; flex: 1; }
.rn-card__go { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--c); }
.rn-card__go .rn-ico { transition: transform .2s; }
.rn-card:hover .rn-card__go .rn-ico { transform: translateX(4px); }

.rn-mini { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: var(--text-2); font-weight: 500; font-size: .92rem; transition: background .15s; }
.rn-mini:hover { background: var(--surface-2); color: var(--text); }
.rn-mini__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--c) 10%, var(--surface)); border: 1px solid var(--border); font-size: 1.02rem; flex-shrink: 0; }

/* categories */
.rn-catgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rn-catgrid > .rn-catcard:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.rn-catgrid > .rn-catcard:last-child:nth-child(3n+1) ul { columns: 2; }
@media (max-width: 960px) { .rn-catgrid { grid-template-columns: 1fr 1fr; } .rn-catgrid > .rn-catcard:last-child:nth-child(3n+1) { grid-column: auto; } .rn-catgrid > .rn-catcard:last-child:nth-child(3n+1) ul { columns: 1; } }
@media (max-width: 600px) { .rn-catgrid { grid-template-columns: 1fr; } }
.rn-catcard { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); transition: box-shadow .25s, transform .25s; }
.rn-catcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.rn-catcard__head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.rn-catcard__head h3 { margin: 0; font-size: 1.12rem; }
.rn-catcard__head h3 a { color: var(--text); }
.rn-catcard__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #fff)); color: #fff; box-shadow: 0 10px 22px -10px var(--c); }
.rn-catcard__count { font-size: .8rem; color: var(--muted); font-weight: 500; }
.rn-catcard > p { color: var(--muted); font-size: .92rem; }
.rn-catcard ul { list-style: none; margin: 0 0 18px; padding: 0; }
.rn-catcard li a { display: flex; justify-content: space-between; padding: 8px 0; color: var(--text-2); font-size: .92rem; border-bottom: 1px solid var(--border); }
.rn-catcard li a::after { content: "→"; opacity: 0; transform: translateX(-4px); transition: .2s; color: var(--c); }
.rn-catcard li a:hover { color: var(--text); }
.rn-catcard li a:hover::after { opacity: 1; transform: none; }
.rn-catcard__all { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--c); }

/* world */
.rn-world { position: relative; overflow: hidden; display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; padding: 48px; border-radius: var(--r-xl); background: var(--night); color: #c3cde4; isolation: isolate; box-shadow: var(--shadow-lg); }
.rn-world::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 300px at 0% 0%, color-mix(in srgb, var(--rn-primary) 45%, transparent), transparent 70%), radial-gradient(500px 300px at 100% 100%, color-mix(in srgb, var(--rn-primary-2) 35%, transparent), transparent 70%); }
.rn-world h2 { color: #fff; }
.rn-world .rn-eyebrow { background: linear-gradient(120deg, #93c5fd, #67e8f9); -webkit-background-clip: text; background-clip: text; }
.rn-world__copy p:not(.rn-eyebrow) { color: #a9b6d3; margin-bottom: 26px; }
.rn-world__flags { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.rn-flag { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #c3cde4; transition: .2s; }
.rn-flag span { font-size: 1.7rem; line-height: 1.1; }
.rn-flag small { font-size: .74rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rn-flag:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .1); border-color: rgba(147, 197, 253, .5); color: #fff; }
@media (max-width: 960px) { .rn-world { grid-template-columns: 1fr; padding: 28px; } }
@media (max-width: 480px) { .rn-world__flags { grid-template-columns: repeat(4, 1fr); } }

/* features, steps, personas */
.rn-feature, .rn-persona { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.rn-feature__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--primary-soft); color: var(--rn-primary); margin-bottom: 18px; border: 1px solid color-mix(in srgb, var(--rn-primary) 16%, transparent); }
.rn-feature p, .rn-persona p { color: var(--muted); font-size: .94rem; margin: 0; }
.rn-persona p { margin-bottom: 14px; }
.rn-persona__emoji { display: grid; place-items: center; width: 52px; height: 52px; font-size: 1.6rem; margin-bottom: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.rn-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rn-steps li { position: relative; padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.rn-steps li > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-family: var(--font-display); font-weight: 800; background: var(--rn-grad); color: #fff; margin-bottom: 16px; box-shadow: var(--shadow-glow); }
.rn-steps p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .rn-steps { grid-template-columns: 1fr; } }

/* FAQ */
.rn-faq { margin-top: 44px; }
.rn-faq h2 { margin-bottom: 20px; }
.rn-faq__item { border-bottom: 1px solid var(--border); }
.rn-faq__item:first-of-type { border-top: 1px solid var(--border); }
.rn-faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; cursor: pointer; font-weight: 600; font-size: 1.02rem; color: var(--text); }
.rn-faq__item summary::-webkit-details-marker { display: none; }
.rn-faq__item summary .rn-ico { transition: transform .25s; color: var(--muted); flex-shrink: 0; }
.rn-faq__item[open] summary .rn-ico { transform: rotate(180deg); color: var(--rn-primary); }
.rn-faq__item summary:hover { color: var(--rn-primary); }
.rn-faq__a { padding: 0 4px 22px; color: var(--text-2); max-width: 70ch; }
.rn-faq__a p { margin: 0; }

/* CTA */
.rn-cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin: 40px 0 96px; padding: 52px; border-radius: var(--r-xl); background: var(--night); color: #c3cde4; isolation: isolate; box-shadow: var(--shadow-lg); }
.rn-cta__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 260px at 90% 0%, color-mix(in srgb, var(--rn-primary) 55%, transparent), transparent 70%), radial-gradient(420px 220px at 0% 100%, color-mix(in srgb, var(--rn-primary-2) 40%, transparent), transparent 70%); }
.rn-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 40px 40px; }
.rn-cta h2 { color: #fff; margin-bottom: 10px; }
.rn-cta p { margin: 0; max-width: 620px; color: #a9b6d3; }
.rn-cta__body { flex: 1 1 380px; }
@media (max-width: 600px) { .rn-cta { padding: 30px; } }

/* posts */
.rn-post { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); transition: transform .25s, box-shadow .25s; }
.rn-post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rn-post__media { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--night); }
.rn-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rn-post:hover .rn-post__media img { transform: scale(1.04); }
.rn-post__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .9); background: radial-gradient(260px 160px at 20% 0%, color-mix(in srgb, var(--c, var(--rn-primary)) 75%, transparent), transparent 70%), radial-gradient(260px 160px at 100% 100%, color-mix(in srgb, var(--rn-primary-2) 50%, transparent), transparent 70%), var(--night); }
.rn-post__ph::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 28px 28px; }
.rn-post__ph .rn-ico { position: relative; width: 44px; height: 44px; }
.rn-post__ph-emoji { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; font-size: 2.4rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); transition: transform .4s; }
.rn-post:hover .rn-post__ph-emoji { transform: scale(1.08) rotate(-4deg); }
.rn-post__cover { position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: 100%; padding: 22px 24px; text-align: left; }
.rn-post__cover-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #67e8f9; }
.rn-post__cover-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 1.9vw, 1.45rem); line-height: 1.2; letter-spacing: -.02em; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rn-post__cover-brand { font-size: .74rem; font-weight: 600; color: rgba(255, 255, 255, .6); }
.rn-post__body { padding: 22px 24px 26px; }
.rn-post__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: .83rem; margin-bottom: 10px; }
.rn-post__cat { color: var(--rn-primary); font-weight: 600; }
.rn-post__title { font-size: 1.12rem; margin-bottom: 8px; line-height: 1.3; }
.rn-post__title a { color: var(--text); }
.rn-post__title a:hover { color: var(--rn-primary); }
.rn-post__excerpt { color: var(--muted); font-size: .92rem; margin: 0; }

/* footer */
.rn-footer { position: relative; background: var(--night); color: #a9b6d3; padding: 72px 0 30px; margin-top: 24px; }
.rn-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rn-primary) 70%, transparent), color-mix(in srgb, var(--rn-primary-2) 70%, transparent), transparent); }
.rn-footer a { color: #a9b6d3; }
.rn-footer a:hover { color: #fff; }
.rn-footer .rn-logo, .rn-footer .rn-logo:hover { color: #fff; }
.rn-footer__top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; }
.rn-footer__brand p { color: #8d9abb; font-size: .92rem; margin: 16px 0 18px; max-width: 340px; }
.rn-footer__brand .rn-btn--primary, .rn-footer__brand .rn-btn--primary:hover { color: #fff; }
.rn-footer__title { font-family: var(--font); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; color: #e6ecfa; }
.rn-footer__col ul { list-style: none; margin: 0; padding: 0; }
.rn-footer__col li a { display: inline-block; padding: 5px 0; font-size: .9rem; }
.rn-footer__countries { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .84rem; }
.rn-footer__countries span { color: #e6ecfa; font-weight: 600; }
.rn-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; color: #7f8db0; }
.rn-footer__bottom p { margin: 0; }
.rn-totop { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .14); }
.rn-social { display: flex; gap: 8px; margin-bottom: 16px; }
.rn-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .14); }
.rn-social a:hover { border-color: rgba(255, 255, 255, .4); }
@media (max-width: 1000px) { .rn-footer__top { grid-template-columns: repeat(2, 1fr); } .rn-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .rn-footer__top { gap: 28px 18px; } }

/* palette */
.rn-palette { position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.rn-palette[hidden] { display: none; }
.rn-palette__backdrop { position: absolute; inset: 0; background: rgba(7, 11, 24, .6); backdrop-filter: blur(6px); animation: rnFade .15s; }
.rn-palette__box { position: relative; width: 100%; max-width: 640px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: rnPop .2s ease; }
.rn-palette__input { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); color: var(--muted); }
.rn-palette__input input { flex: 1; border: 0; background: none; outline: 0; font-size: 1.05rem; color: var(--text); min-width: 0; }
.rn-palette__input kbd { cursor: pointer; }
.rn-palette__list { list-style: none; margin: 0; padding: 8px; max-height: 55vh; overflow-y: auto; }
.rn-palette__list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); }
.rn-palette__list li.is-active a, .rn-palette__list a:hover { background: var(--primary-soft); color: var(--text); }
.rn-palette__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 1.12rem; flex-shrink: 0; }
.rn-palette__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rn-palette__t b { font-weight: 600; font-size: .95rem; }
.rn-palette__t small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rn-palette__c { font-size: .74rem; color: var(--muted); white-space: nowrap; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); }
.rn-palette__empty { padding: 18px; color: var(--muted); text-align: center; }
.rn-palette__foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--border); font-size: .78rem; color: var(--muted); }
.rn-palette__all { margin-left: auto; }
.palette-open { overflow: hidden; }
@media (max-width: 560px) { .rn-palette__c { display: none; } }
@keyframes rnFade { from { opacity: 0; } }
@keyframes rnPop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* cookie notice */
.rn-consent { position: fixed; left: 16px; bottom: 16px; z-index: 900; max-width: 420px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px); transition: .3s ease; }
.rn-consent.is-on { opacity: 1; transform: none; }
.rn-consent p { margin: 0 0 14px; font-size: .88rem; color: var(--text-2); }
.rn-consent__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 520px) { .rn-consent { left: 10px; right: 10px; bottom: 10px; max-width: none; } }

/* ------------------------------------------------------------------ page hero / crumbs */
.rn-pagehero { position: relative; padding: 52px 0 40px; background: radial-gradient(700px 260px at 10% 0%, var(--primary-soft), transparent 70%), radial-gradient(600px 240px at 100% 0%, color-mix(in srgb, var(--rn-primary-2) 8%, transparent), transparent 70%); border-bottom: 1px solid var(--border); }
.rn-pagehero h1 { margin: 14px 0 10px; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.rn-pagehero__sub { color: var(--muted); font-size: 1.1rem; max-width: 760px; margin: 0; }
.rn-pagehero--post { border-bottom: 0; background: none; padding-bottom: 20px; }
.rn-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.rn-crumbs li { display: inline-flex; align-items: center; }
.rn-crumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 10px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .5; }
.rn-crumbs a { color: var(--muted); }
.rn-crumbs a:hover { color: var(--rn-primary); }
.rn-crumbs [aria-current] span { color: var(--text-2); font-weight: 500; }

/* ------------------------------------------------------------------ tool page */
.rn-toolhero { position: relative; padding: 40px 0 30px; isolation: isolate; overflow: hidden; }
.rn-toolhero__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 300px at 0% -10%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%), radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--rn-primary-2) 9%, transparent), transparent 70%); }
.rn-toolhero__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 48px 48px; opacity: .45; -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%); }
.rn-toolhero__head { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.rn-toolhero__head h1 { margin: 10px 0 0; font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.rn-toolhero__ico { display: grid; place-items: center; width: 76px; height: 76px; flex-shrink: 0; border-radius: 22px; font-size: 2.2rem; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.rn-toolhero__lead { font-size: 1.12rem; color: var(--text-2); max-width: 820px; margin: 18px 0 20px; }
.rn-trust { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.rn-trust li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; font-weight: 500; color: var(--text-2); box-shadow: var(--shadow-xs); }
.rn-trust .rn-ico { color: var(--ok); }
@media (max-width: 600px) { .rn-toolhero__ico { width: 56px; height: 56px; font-size: 1.6rem; border-radius: 16px; } }

/* ------------------------------------------------------------------ generator app */
.rn-appwrap { margin-top: 6px; }
.rn-app:not(.rn-app--mini) { display: grid; grid-template-columns: 310px 1fr; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.rn-app__panel { padding: 24px; background: var(--surface-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; }
.rn-app__panelhead { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .94rem; }
.rn-app__panelhead span { display: inline-flex; gap: 8px; align-items: center; }
.rn-app__panelhead .rn-link { font-size: .84rem; color: var(--muted); font-weight: 500; }
.rn-app__panelhead .rn-link:hover { color: var(--rn-primary); }
.rn-app__fields { display: grid; gap: 14px; }
.rn-app__hint { margin: 0; font-size: .8rem; color: var(--muted); text-align: center; }
.rn-app__out { display: flex; flex-direction: column; min-width: 0; }
.rn-app__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.rn-app__status { margin: 0; font-size: .86rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.rn-app__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.rn-app__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rn-app__summary { margin: 0; padding: 12px 20px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-2); background: var(--surface-2); }
@media (max-width: 900px) { .rn-app:not(.rn-app--mini) { grid-template-columns: 1fr; } .rn-app__panel { border-right: 0; border-bottom: 1px solid var(--border); } .rn-app__fields { grid-template-columns: 1fr 1fr; } .rn-field--wide, .rn-switch { grid-column: 1 / -1; } }
@media (max-width: 480px) { .rn-app__fields { grid-template-columns: 1fr; } .rn-app__actions .rn-btn span { display: none; } }

.rn-field { display: flex; flex-direction: column; gap: 6px; }
.rn-field > label, .rn-field > span { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.rn-field input, .rn-field select, .rn-field textarea { width: 100%; min-height: 44px; padding: 10px 13px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: .95rem; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; box-shadow: var(--shadow-xs); }
.rn-field select { padding-right: 36px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.rn-field textarea { resize: vertical; min-height: 140px; font-family: var(--font-mono); font-size: .85rem; line-height: 1.5; }
.rn-field input:focus, .rn-field select:focus, .rn-field textarea:focus { outline: 0; border-color: var(--rn-primary); box-shadow: 0 0 0 4px var(--ring); }
.rn-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; font-weight: 500; color: var(--text-2); user-select: none; }
.rn-switch input { position: absolute; opacity: 0; pointer-events: none; }
.rn-switch__ui { position: relative; width: 40px; height: 24px; flex-shrink: 0; border-radius: 99px; background: var(--border-strong); transition: background .2s; }
.rn-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.rn-switch input:checked + .rn-switch__ui { background: var(--rn-primary); }
.rn-switch input:checked + .rn-switch__ui::after { transform: translateX(16px); }
.rn-switch input:focus-visible + .rn-switch__ui { box-shadow: 0 0 0 4px var(--ring); }
.rn-generate.is-spin .rn-ico { animation: rnSpin .5s ease; }
@keyframes rnSpin { to { transform: rotate(360deg); } }

.rn-dd { position: relative; }
.rn-dd__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 170px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: none; }
.rn-dd.is-open .rn-dd__menu { display: block; animation: rnPop .15s; }
.rn-dd__menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: 8px; font-size: .9rem; }
.rn-dd__menu button:hover { background: var(--surface-2); color: var(--rn-primary); }

.rn-results { padding: 20px; min-height: 260px; flex: 1; }
.rn-results--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; align-content: start; }
.rn-results--chips { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.rn-results--swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; align-content: start; }
.rn-results--hero, .rn-results--dice { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; }
.rn-results--paragraphs { max-width: 760px; }
.rn-results > * { animation: rnIn .35s ease both; animation-delay: calc(var(--i, 0) * 26ms); }
@keyframes rnIn { from { opacity: 0; transform: translateY(8px); } }

.rn-rcard { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-xs); }
.rn-rcard__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.rn-rcard__title { font-size: 1rem; margin: 0; }
.rn-rcard__sub { margin: 2px 0 0; font-size: .84rem; color: var(--muted); }
.rn-rcard__badge { flex-shrink: 0; padding: 3px 9px; border-radius: 99px; font-size: .74rem; font-weight: 600; background: var(--primary-soft); color: var(--rn-primary); font-family: var(--font-mono); }
.rn-rcard__fields { margin: 0; display: grid; }
.rn-rcard__list { margin: 0; padding-left: 18px; columns: 2; font-size: .92rem; }
.rn-rcard__foot { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.rn-kv { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); align-items: center; }
.rn-kv:first-child { border-top: 0; }
.rn-kv dt { font-size: .78rem; color: var(--muted); font-weight: 500; }
.rn-kv dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: .92rem; color: var(--text); word-break: break-word; min-width: 0; }
.rn-copybtn { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); opacity: .5; transition: .15s; }
.rn-kv:hover .rn-copybtn, .rn-copybtn:focus-visible { opacity: 1; }
.rn-copybtn:hover { background: var(--surface-2); color: var(--rn-primary); }
.rn-copybtn.is-copied { color: var(--ok); opacity: 1; }
@media (hover: none) { .rn-copybtn { opacity: 1; } }

.rn-rchip { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); text-align: left; max-width: 100%; box-shadow: var(--shadow-xs); transition: .15s; }
.rn-rchip:hover { border-color: color-mix(in srgb, var(--rn-primary) 45%, var(--border)); background: var(--primary-soft); transform: translateY(-1px); }
.rn-rchip.is-copied { border-color: var(--ok); }
.rn-rchip__text { font-weight: 600; font-size: .98rem; color: var(--text); word-break: break-all; }
.rn-rchip.is-mono .rn-rchip__text { font-family: var(--font-mono); font-size: .88rem; font-weight: 500; }
.rn-rchip__sub { font-size: .76rem; color: var(--muted); }
.rn-rchip__link { position: absolute; top: 6px; right: 6px; color: var(--muted); }
.rn-rchip:has(.rn-rchip__link) { padding-right: 34px; }
.rn-results--mini .rn-rchip { width: 100%; }

.rn-rhero { text-align: center; padding: 30px; cursor: copy; }
.rn-rhero__text { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 9vw, 5.2rem); letter-spacing: -.045em; line-height: 1.05; background: var(--rn-grad); -webkit-background-clip: text; background-clip: text; color: transparent; word-break: break-word; }
.rn-rhero__sub { color: var(--muted); margin-top: 10px; font-size: 1rem; max-width: 640px; margin-inline: auto; word-break: break-word; }
.rn-rhero--yes .rn-rhero__text { background: linear-gradient(135deg, #10b981, #06b6d4); -webkit-background-clip: text; background-clip: text; }
.rn-rhero--no .rn-rhero__text { background: linear-gradient(135deg, #ef4444, #f97316); -webkit-background-clip: text; background-clip: text; }
.rn-rhero--maybe .rn-rhero__text { background: linear-gradient(135deg, #f59e0b, #eab308); -webkit-background-clip: text; background-clip: text; }
.rn-coin { position: relative; width: 120px; height: 120px; margin: 0 auto 18px; transform-style: preserve-3d; }
.rn-coin span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: #6b4a00; backface-visibility: hidden; background: radial-gradient(circle at 35% 30%, #fff3c4, #ffcf4d 45%, #e0a51b 75%, #b77d00); box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .35), inset 0 -6px 12px rgba(0, 0, 0, .2), 0 14px 30px -10px rgba(183, 125, 0, .6); }
.rn-coin__t { transform: rotateY(180deg); }
.rn-coin--T { transform: rotateY(180deg); }
.rn-coin.is-flipping.rn-coin--H { animation: rnFlipH 1s cubic-bezier(.3, 1.4, .6, 1); }
.rn-coin.is-flipping.rn-coin--T { animation: rnFlipT 1s cubic-bezier(.3, 1.4, .6, 1); }
@keyframes rnFlipH { from { transform: rotateY(0); } 50% { transform: rotateY(900deg) translateY(-40px); } to { transform: rotateY(1800deg); } }
@keyframes rnFlipT { from { transform: rotateY(0); } 50% { transform: rotateY(990deg) translateY(-40px); } to { transform: rotateY(1980deg); } }
.rn-die { position: relative; width: 88px; height: 88px; border-radius: 20px; background: linear-gradient(145deg, #ffffff, #e9eef8); box-shadow: inset 0 -5px 0 rgba(15, 23, 42, .08), 0 16px 30px -12px rgba(15, 23, 42, .45); display: grid; place-items: center; animation: rnRoll .55s cubic-bezier(.3, 1.4, .6, 1) both !important; animation-delay: calc(var(--i) * 60ms) !important; }
.rn-die span { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: #0b1224; }
.rn-die small { position: absolute; bottom: 6px; right: 9px; font-size: .68rem; color: #94a3b8; font-weight: 700; }
.rn-die--pips { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 14px; place-items: center; }
.rn-die--pips i { width: 15px; height: 15px; border-radius: 50%; background: #0b1224; box-shadow: inset 0 2px 2px rgba(0, 0, 0, .35); }
.rn-die--1 i { grid-area: 2 / 2; background: var(--rn-primary); }
.rn-die--2 i:nth-child(1) { grid-area: 1 / 1; } .rn-die--2 i:nth-child(2) { grid-area: 3 / 3; }
.rn-die--3 i:nth-child(1) { grid-area: 1 / 1; } .rn-die--3 i:nth-child(2) { grid-area: 2 / 2; } .rn-die--3 i:nth-child(3) { grid-area: 3 / 3; }
.rn-die--4 i:nth-child(1) { grid-area: 1 / 1; } .rn-die--4 i:nth-child(2) { grid-area: 1 / 3; } .rn-die--4 i:nth-child(3) { grid-area: 3 / 1; } .rn-die--4 i:nth-child(4) { grid-area: 3 / 3; }
.rn-die--5 i:nth-child(1) { grid-area: 1 / 1; } .rn-die--5 i:nth-child(2) { grid-area: 1 / 3; } .rn-die--5 i:nth-child(3) { grid-area: 2 / 2; } .rn-die--5 i:nth-child(4) { grid-area: 3 / 1; } .rn-die--5 i:nth-child(5) { grid-area: 3 / 3; }
.rn-die--6 i:nth-child(1) { grid-area: 1 / 1; } .rn-die--6 i:nth-child(2) { grid-area: 2 / 1; } .rn-die--6 i:nth-child(3) { grid-area: 3 / 1; } .rn-die--6 i:nth-child(4) { grid-area: 1 / 3; } .rn-die--6 i:nth-child(5) { grid-area: 2 / 3; } .rn-die--6 i:nth-child(6) { grid-area: 3 / 3; }
@keyframes rnRoll { from { opacity: 0; transform: rotate(-200deg) scale(.4); } }
.rn-swatch { border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-xs); }
.rn-swatch__face { display: flex; align-items: flex-end; width: 100%; height: 112px; border: 0; padding: 12px; color: #fff; font-family: var(--font-mono); font-weight: 500; font-size: .88rem; cursor: copy; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.rn-swatch__face.is-light { color: #0b1224; text-shadow: none; }
.rn-swatch__codes { margin: 0; padding: 6px 12px 8px; }
.rn-swatch .rn-kv { grid-template-columns: 38px 1fr; padding: 4px 0; }
.rn-swatch .rn-kv dd { font-family: var(--font-mono); font-size: .76rem; }
.rn-rpara { font-size: 1.02rem; line-height: 1.8; color: var(--text-2); }
.rn-ccard { position: relative; aspect-ratio: 1.586; border-radius: 16px; padding: 18px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; background: linear-gradient(135deg, #0b1224, #1e3a8a 60%, #2563eb); box-shadow: 0 18px 34px -18px rgba(11, 18, 36, .8); }
.rn-ccard::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); top: -80px; right: -60px; }
.rn-ccard--mastercard { background: linear-gradient(135deg, #1c1917, #9a3412 55%, #f59e0b); }
.rn-ccard--amex { background: linear-gradient(135deg, #082f49, #0369a1 60%, #22d3ee); }
.rn-ccard--discover { background: linear-gradient(135deg, #18181b, #c2410c 60%, #fb923c); }
.rn-ccard--jcb { background: linear-gradient(135deg, #022c22, #047857 60%, #34d399); }
.rn-ccard--diners { background: linear-gradient(135deg, #111827, #374151 60%, #9ca3af); }
.rn-ccard__chip { position: absolute; top: 46px; left: 18px; width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #fde68a, #d4a017); }
.rn-ccard__brand { position: absolute; top: 14px; right: 18px; font-family: var(--font-display); font-weight: 800; font-style: italic; }
.rn-ccard__num { font-family: var(--font-mono); font-size: 1.06rem; letter-spacing: .08em; }
.rn-ccard__meta { display: flex; justify-content: space-between; font-size: .74rem; letter-spacing: .06em; opacity: .9; text-transform: uppercase; }
.rn-skel { height: 44px; border-radius: 11px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: rnShimmer 1.2s infinite; margin-bottom: 12px; }
.rn-skel--lg { height: 120px; }
@keyframes rnShimmer { to { background-position: -200% 0; } }
.rn-toast { position: fixed; left: 50%; bottom: 26px; z-index: 2000; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .25s ease; }
.rn-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.rn-countries { margin-top: 44px; }
.rn-countries h2 { font-size: 1.3rem; margin-bottom: 16px; }
.rn-countries__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.rn-country { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .9rem; transition: .15s; }
.rn-country span { font-size: 1.15rem; }
.rn-country:hover { border-color: color-mix(in srgb, var(--rn-primary) 40%, var(--border)); color: var(--text); box-shadow: var(--shadow-sm); }
.rn-country.is-current { background: var(--primary-soft); border-color: var(--rn-primary); color: var(--rn-primary); font-weight: 600; }

.rn-toolbody { display: grid; grid-template-columns: 1fr 320px; gap: 48px; margin-top: 56px; align-items: start; }
.rn-toolbody__side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.rn-sidecard { display: block; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.rn-sidecard__title { font-size: 1rem; margin-bottom: 10px; }
.rn-sidecard__list { display: grid; gap: 2px; }
.rn-sidecard--accent { background: var(--night); color: #a9b6d3; border-color: var(--night); position: relative; overflow: hidden; }
.rn-sidecard--accent::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px 160px at 100% 0%, color-mix(in srgb, var(--rn-primary) 50%, transparent), transparent 70%); }
.rn-sidecard--accent > * { position: relative; }
.rn-sidecard--accent .rn-sidecard__title { color: #fff; }
.rn-sidecard--accent p { font-size: .92rem; }
.rn-guidecard { transition: box-shadow .2s, transform .2s, border-color .2s; }
.rn-guidecard:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: color-mix(in srgb, var(--rn-primary) 30%, var(--border)); }
.rn-guidecard__kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--rn-primary); }
.rn-guidecard__title { display: block; margin: 8px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.35; color: var(--text); }
.rn-guidecard__more { font-size: .88rem; font-weight: 600; color: var(--rn-primary); }
@media (max-width: 1000px) { .rn-toolbody { grid-template-columns: 1fr; } .rn-toolbody__side { position: static; } }
.rn-related { margin-top: 64px; }

/* prose */
.rn-prose { font-size: 1.06rem; color: var(--text-2); line-height: 1.8; }
.rn-prose > *:first-child { margin-top: 0; }
.rn-prose h2 { margin: 2em 0 .6em; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.rn-prose h3 { margin: 1.6em 0 .5em; }
.rn-prose ul, .rn-prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.rn-prose li { margin-bottom: .5em; }
.rn-prose li::marker { color: var(--rn-primary); font-weight: 700; }
.rn-prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--rn-primary) 35%, transparent); text-underline-offset: 3px; }
.rn-prose a:hover { text-decoration-color: currentColor; }
.rn-prose a.rn-btn, .rn-prose .rn-mini, .rn-prose .rn-embed a { text-decoration: none; }
.rn-prose strong { color: var(--text); font-weight: 600; }
.rn-prose code { padding: .12em .4em; border-radius: 6px; background: var(--surface-3); font-size: .85em; color: var(--text); }
.rn-prose blockquote { margin: 1.6em 0; padding: 6px 22px; border-left: 3px solid var(--rn-primary); color: var(--text); font-style: italic; }
.rn-prose img { border-radius: var(--r); }
.rn-prose .lead { font-size: 1.22rem; line-height: 1.7; color: var(--text); }
.rn-prose table { width: 100%; border-collapse: collapse; font-size: .94rem; margin: 1.2em 0; }
.rn-prose th, .rn-prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.rn-prose th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rn-prose ul.rn-checks { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rn-prose ul.rn-checks li { position: relative; padding: 14px 14px 14px 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin: 0; font-size: .95rem; }
.rn-prose ul.rn-checks li::before { content: ""; position: absolute; left: 14px; top: 17px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 640px) { .rn-prose ul.rn-checks { grid-template-columns: 1fr; } }
.rn-prose ul.rn-tips { list-style: none; padding: 20px 22px; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--primary-soft), transparent 70%), var(--surface-2); border: 1px solid var(--border); }
.rn-prose ul.rn-tips li { position: relative; padding-left: 28px; }
.rn-prose ul.rn-tips li::before { content: "★"; position: absolute; left: 0; top: 0; color: var(--rn-gold); }

/* blog: embedded tool, CTAs, related tools */
.rn-embed { margin: 2em 0; }
.rn-embed__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: .9rem; flex-wrap: wrap; }
.rn-embed__badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; background: var(--rn-grad); color: #fff; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.rn-embed .rn-app:not(.rn-app--mini) { grid-template-columns: 1fr; box-shadow: var(--shadow); }
.rn-embed .rn-app__panel { border-right: 0; border-bottom: 1px solid var(--border); }
.rn-embed .rn-app__fields { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.rn-embed .rn-field--wide, .rn-embed .rn-switch { grid-column: 1 / -1; }
.rn-embed .rn-app__hint { display: none; }
.rn-embed .rn-results { min-height: 160px; max-height: 560px; overflow: auto; }
.rn-embed .rn-generate { align-self: flex-start; width: auto; padding: 0 2em; }
.rn-postcta { display: flex; align-items: center; gap: 18px; margin: 2em 0; padding: 20px 22px; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--primary-soft), color-mix(in srgb, var(--rn-primary-2) 7%, transparent)); border: 1px solid color-mix(in srgb, var(--rn-primary) 20%, var(--border)); }
.rn-postcta__ico { display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: 15px; background: var(--surface); border: 1px solid var(--border); font-size: 1.6rem; box-shadow: var(--shadow-sm); }
.rn-postcta__body { flex: 1; min-width: 0; }
.rn-postcta__body p { margin: 0; font-size: .94rem; line-height: 1.55; color: var(--text-2); }
.rn-prose .rn-postcta__title, .rn-postcta__title { margin: 0 0 2px !important; font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; color: var(--text) !important; }
.rn-postcta .rn-btn { flex-shrink: 0; }
.rn-postcta--banner { position: relative; overflow: hidden; padding: 34px; background: var(--night); border: 0; isolation: isolate; flex-wrap: wrap; }
.rn-postcta--banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--rn-primary) 55%, transparent), transparent 70%), radial-gradient(360px 200px at 0% 100%, color-mix(in srgb, var(--rn-primary-2) 40%, transparent), transparent 70%); }
.rn-postcta--banner .rn-postcta__body p { color: #a9b6d3; }
.rn-prose .rn-postcta--banner .rn-postcta__title { color: #fff !important; font-size: 1.45rem; margin-bottom: 6px !important; }
.rn-postcta__kicker { font-size: .74rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #67e8f9 !important; margin-bottom: 6px !important; }
@media (max-width: 600px) { .rn-postcta { flex-direction: column; align-items: flex-start; } }
.rn-related-tools { margin: 2.2em 0; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.rn-prose .rn-related-tools__title { margin: 0 0 10px; font-family: var(--font-display); font-weight: 800; color: var(--text); }
.rn-related-tools__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
@media (max-width: 600px) { .rn-related-tools__grid { grid-template-columns: 1fr; } }

.rn-code { background: #0b1224; color: #dbe3f4; padding: 18px 20px; border-radius: var(--r); overflow-x: auto; font-size: .86rem; line-height: 1.6; border: 1px solid #1e293f; }
.rn-code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.rn-tablewrap { overflow-x: auto; margin-bottom: 1.2em; }
.rn-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rn-table th, .rn-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.rn-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rn-apitry { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; background: var(--surface); }
.rn-apitry__row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.rn-apitry__row input { flex: 1; min-width: 200px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); font-family: var(--font-mono); font-size: .88rem; }
.rn-apitry__base { color: var(--muted); font-size: .82rem; }

.rn-directory__bar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 28px; }
.rn-directory__search { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; max-width: 360px; height: 46px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); box-shadow: var(--shadow-xs); }
.rn-directory__search:focus-within { border-color: var(--rn-primary); box-shadow: 0 0 0 4px var(--ring); }
.rn-directory__search input { flex: 1; border: 0; background: none; outline: 0; min-width: 0; color: var(--text); }
.rn-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.rn-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .87rem; font-weight: 500; }
.rn-tab small { color: var(--muted); }
.rn-tab:hover { border-color: var(--border-strong); color: var(--text); }
.rn-tab.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.rn-tab.is-active small { color: inherit; opacity: .7; }
.rn-empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); }
.rn-catintro { margin-top: 56px; }
.rn-card[hidden] { display: none; }

.rn-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.rn-contact__list { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.rn-contact__list li { display: flex; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); margin: 0; }
.rn-contact__list li::marker { content: none; }
.rn-contact__list .rn-ico { color: var(--rn-primary); margin-top: 3px; }
.rn-contact__list div { display: flex; flex-direction: column; }
.rn-contact__list span { color: var(--muted); font-size: .92rem; }
.rn-form { padding: 30px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.rn-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rn-form__note { margin: 0; font-size: .82rem; color: var(--muted); }
@media (max-width: 860px) { .rn-contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .rn-form__row { grid-template-columns: 1fr; } .rn-form { padding: 20px; } }
.rn-notice { padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); display: flex; gap: 8px; align-items: center; }
.rn-notice--ok { background: color-mix(in srgb, var(--ok) 10%, transparent); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.rn-notice--err { background: color-mix(in srgb, var(--err) 8%, transparent); border-color: color-mix(in srgb, var(--err) 35%, transparent); }
.rn-searchform { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); margin-bottom: 32px; box-shadow: var(--shadow-xs); }
.rn-searchform input { flex: 1; border: 0; outline: 0; background: none; min-width: 0; color: var(--text); height: 40px; }
.rn-ad { margin: 30px auto; text-align: center; min-height: 90px; }
.rn-ad__label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }

.rn-article__media img { width: 100%; border-radius: var(--r-lg); margin: 10px 0 24px; }
.rn-avatar { border-radius: 50%; }
.rn-byline { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; }
.rn-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); font-size: .82rem; text-decoration: none; }
.rn-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 44px 0; }
.rn-postnav a { display: flex; flex-direction: column; padding: 18px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); color: var(--text); height: 100%; font-weight: 600; transition: .2s; }
.rn-postnav a:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.rn-postnav small { color: var(--muted); font-weight: 400; }
.rn-postnav .nav-next { text-align: right; }
.rn-pagination .nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.rn-pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.rn-pagination .page-numbers.current { background: var(--text); color: var(--bg); border-color: var(--text); }
.rn-comments { margin: 40px 0; }
.rn-comments__list { list-style: none; padding: 0; }
.rn-comments .comment-body { padding: 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 12px; }
.rn-comments .children { list-style: none; padding-left: 24px; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--surface); }
.widget { margin-bottom: 24px; }

.rn-404 { text-align: center; padding: 80px 16px 40px; max-width: 720px; }
.rn-404__dice { display: flex; justify-content: center; gap: 14px; margin-bottom: 30px; }
.rn-404__dice span { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; background: var(--rn-grad); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; box-shadow: var(--shadow-glow); animation: rnRoll .7s cubic-bezier(.3, 1.4, .6, 1) both; }
.rn-404__dice span:nth-child(2) { animation-delay: .1s; }
.rn-404__dice span:nth-child(3) { animation-delay: .2s; }
.rn-404 p { color: var(--muted); }
.rn-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.rn-reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.rn-reveal.is-in { opacity: 1; transform: none; }
.rn-reveal.rn-card.is-in:hover, .rn-reveal.rn-post.is-in:hover { transform: translateY(-4px); }

.alignwide { max-width: 1100px; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); text-align: center; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.rn-reveal { opacity: 1; transform: none; }
	.rn-marquee__track { animation: none; }
}
@media print {
	.rn-header, .rn-footer, .rn-cta, .rn-app__panel, .rn-app__bar, .rn-ad, .rn-toolbody__side, .rn-related, .rn-marquee, .rn-consent { display: none !important; }
	body { background: #fff; color: #000; }
}

@media (max-width: 380px) { .rn-badge { font-size: .68rem; gap: 7px; padding: 5px 10px 5px 8px; } }
/* ---- v1.3 result layouts ---- */
[hidden] { display: none !important; }
button, input, select, option, textarea { font-family: inherit; }
.rn-rhero--small .rn-rhero__text { font-size: clamp(1.45rem, 4.2vw, 2.3rem); letter-spacing: -.025em; line-height: 1.25; max-width: 30ch; margin: 0 auto; }
.rn-results--code { display: block; }
.rn-rcode { position: relative; border-radius: var(--r-lg); background: #0b1222; border: 1px solid #1e293b; overflow: hidden; }
.rn-rcode pre { margin: 0; padding: 20px; max-height: 520px; overflow: auto; color: #dbe4f5; font-size: .84rem; line-height: 1.6; }
.rn-rcode__copy { position: absolute; top: 10px; right: 10px; }
.rn-results--wheel { display: flex; justify-content: center; }
.rn-wheel { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 380px; }
.rn-wheel__svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(15, 23, 42, .18)); }
.rn-wheel__svg g { transform-origin: 0 0; }
.rn-wheel__svg text { fill: #fff; font-weight: 700; font-family: var(--font); paint-order: stroke; stroke: rgba(0, 0, 0, .18); stroke-width: 2px; }
.rn-wheel__svg path, .rn-wheel__svg circle:not(.rn-wheel__hub) { stroke: #fff; stroke-width: 2; }
.rn-wheel__hub { fill: var(--surface); stroke: var(--border-strong); stroke-width: 3; }
.rn-wheel__pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--text); z-index: 2; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); }
.rn-wheel__result { text-align: center; cursor: copy; transition: opacity .3s, transform .3s; }
.rn-wheel__result.is-pending { opacity: 0; transform: translateY(6px); }
.rn-wheel__result strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; background: var(--rn-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rn-wheel__result span { color: var(--muted); font-size: .9rem; }
.rn-results--playing { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.rn-pcard { position: relative; width: 104px; height: 148px; border-radius: 12px; background: #fff; border: 1px solid #d7dde8; box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .35); color: #0f172a; display: flex; align-items: center; justify-content: center; cursor: copy; animation: rnIn .4s ease both; animation-delay: calc(var(--i, 0) * 60ms); transition: transform .2s; }
.rn-pcard:hover { transform: translateY(-4px) rotate(-1deg); }
.rn-pcard.is-red { color: #dc2626; }
.rn-pcard__corner { position: absolute; top: 8px; left: 10px; font: 800 1rem/1 var(--font-display); }
.rn-pcard__suit { font-size: 3rem; line-height: 1; }
.rn-pcard__name { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: .62rem; color: #64748b; text-transform: uppercase; letter-spacing: .06em; }
.rn-postfaq { border-top: 1px solid var(--border); margin-top: 8px; }
.rn-postfaq h3 { font-size: 1.08rem; margin: 1.3em 0 .35em; }
.rn-postfaq p { margin: 0 0 .4em; color: var(--text-2); }
