/* /brand - Tutorio brand kit. Scoped under .br so it can swap into
   #page-root from the student shell. No "card" in class names (theme.css
   paints [class*="card"] dark). Fixed palette: the page is a brand
   artefact and should look the same in either app theme. */

body.br-body { background: #F7F9FC !important; }

.br {
	--blue: #008CFF; --sky: #48A9F8; --deep: #0171CE;
	--blue-50: #EBF6FF; --blue-100: #D1EBFF; --blue-600: #0073D6; --blue-700: #0059A8;
	--ink: #0F172A; --slate: #475569; --muted: #64748B;
	--line: #E2E8F0; --mist: #F1F5F9; --paper: #F7F9FC;
	--night: #0B1120; --night-2: #111A2E; --night-3: #17233B; --night-line: #263450;
	--sans: "Poppins", system-ui, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--spring: cubic-bezier(.34, 1.56, .64, 1);
	position: relative;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
	overflow: clip;
	min-height: 100dvh;
}
.br *, .br *::before, .br *::after { box-sizing: border-box; }
.br h1, .br h2, .br h3, .br p, .br figure, .br dl, .br dd { margin: 0; }
.br a { color: inherit; text-decoration: none; }
.br img { display: block; max-width: 100%; height: auto; }
.br :where(button) { font: inherit; color: inherit; }
.br :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- top bar ---------- */
.br-top {
	position: sticky; top: 0; z-index: 30;
	display: flex; align-items: center; gap: 12px;
	padding: calc(10px + var(--app-safe-top, 0px)) 20px 10px;
	background: rgba(11, 17, 32, .72);
	backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	color: #fff;
}
.br-back {
	width: 36px; height: 36px; border-radius: 50%;
	display: grid; place-items: center;
	background: rgba(255, 255, 255, .08); color: #fff !important;
	transition: background .2s;
}
.br-back:hover { background: rgba(255, 255, 255, .16); }
.br-top-logo { width: 104px; }
.br-top-tag {
	font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	padding: 3px 9px; border-radius: 999px; background: rgba(0, 140, 255, .18); color: #7cc3ff;
}
.br-top-kit { margin-left: auto; }

/* ---------- buttons ---------- */
.br-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	height: 46px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
	font-weight: 600; font-size: 15px; white-space: nowrap;
	background: var(--blue); color: #fff !important;
	box-shadow: 0 10px 24px -10px rgba(0, 140, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
	transition: transform .25s var(--spring), box-shadow .25s, background .2s;
}
.br-btn:hover { transform: translateY(-2px); background: #1a97ff; box-shadow: 0 16px 30px -12px rgba(0, 140, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.br-btn:active { transform: translateY(0) scale(.98); }
.br-btn-ghost { background: rgba(15, 23, 42, .06); color: var(--ink) !important; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .1); }
.br-btn-ghost:hover { background: rgba(15, 23, 42, .1); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .16); }
.br-hero .br-btn-ghost, .br-sec-ink .br-btn-ghost { background: rgba(255, 255, 255, .08); color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.br-hero .br-btn-ghost:hover, .br-sec-ink .br-btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.br-btn-sm { height: 34px; padding: 0 14px; font-size: 13px; box-shadow: none; }
.br-btn-xl { height: 58px; padding: 0 30px; font-size: 17px; }
.br-btn.is-busy { pointer-events: none; opacity: .8; }

/* ---------- hero ---------- */
.br-hero { position: relative; isolation: isolate; background: var(--night); color: #fff; padding: 72px 20px 96px; }
.br-hero-sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.br-glow { position: absolute; display: block; border-radius: 50%; filter: blur(80px); opacity: .7; animation: br-drift 22s ease-in-out infinite alternate; }
.br-glow-a { width: 60vmax; height: 60vmax; right: -20vmax; top: -24vmax; background: radial-gradient(circle, rgba(0, 140, 255, .75), transparent 62%); }
.br-glow-b { width: 44vmax; height: 44vmax; left: -16vmax; bottom: -26vmax; background: radial-gradient(circle, rgba(72, 169, 248, .45), transparent 62%); animation-delay: -8s; }
@keyframes br-drift { to { transform: translate3d(-6vmax, 5vmax, 0) scale(1.12); } }
.br-hero-grid {
	position: absolute; inset: 0; display: block;
	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;
	mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.br-hero-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.br-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7cc3ff; margin-bottom: 18px !important; }
.br-hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.br-hero h1 em {
	font-style: normal;
	background: linear-gradient(100deg, #6BC1FF, #008CFF 55%, #48A9F8);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.br-lede { margin-top: 22px !important; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .72); max-width: 540px; }
.br-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.br-hero-art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.br-hero-art .br-mark { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 30px 60px rgba(0, 140, 255, .35)); }
.br-f { transform-box: fill-box; transform-origin: center; animation: br-in 1s var(--spring) both; animation-delay: calc(var(--i) * .12s + .15s); }
@keyframes br-in { from { opacity: 0; transform: translateY(-60px) scale(.6) rotate(-8deg); } }
.br-hero-label {
	position: absolute; font-size: 12px; font-weight: 600; white-space: nowrap;
	padding: 5px 11px; border-radius: 999px;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	animation: br-fade .6s var(--ease) both 1.2s;
}
.br-hl-cap { top: 6%; right: 2%; }
.br-hl-kite { top: 64%; left: -6%; animation-delay: 1.35s; }
.br-hl-stem { bottom: 6%; right: 8%; animation-delay: 1.5s; }
@keyframes br-fade { from { opacity: 0; transform: translateY(8px); } }

/* ---------- section nav ---------- */
.br-nav {
	position: sticky; top: calc(57px + var(--app-safe-top, 0px)); z-index: 20;
	display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
	padding: 10px max(20px, calc((100% - 1160px) / 2));
	background: rgba(247, 249, 252, .82);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.br-nav::-webkit-scrollbar { display: none; }
.br-nav a { flex: none; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--slate); transition: background .2s, color .2s; }
.br-nav a:hover { background: var(--mist); color: var(--ink); }
.br-nav a.on { background: var(--ink); color: #fff; }

/* ---------- sections ---------- */
.br-sec { position: relative; padding: 96px max(20px, calc((100% - 1160px) / 2)); scroll-margin-top: 100px; }
.br-sec-mist { background: #fff; border-block: 1px solid var(--line); }
.br-sec-ink { background: var(--night); color: #E6EBF5; }
.br-sec-ink .br-blurb, .br-sec-ink .br-kicker { color: #94A3B8; }
.br-sec-ink h2, .br-sec-ink h3 { color: #fff; }
.br-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; margin-bottom: 48px; max-width: 860px; }
.br-num { font-size: 15px; font-weight: 700; font-family: var(--mono); color: var(--blue); padding-top: 10px; }
.br-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px !important; }
.br h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; }
.br-blurb { margin-top: 16px !important; font-size: 17px; line-height: 1.65; color: var(--slate); }
.br h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.br-sub { margin: 56px 0 18px !important; }
.br-fine { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 14px !important; }
.br-fine-dk { color: rgba(255, 255, 255, .55); max-width: 760px; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--rd, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- logo ---------- */
.br-logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.br-tile { position: relative; border-radius: 24px; background: #fff; border: 1px solid var(--line); padding: 56px 40px 52px; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.br-tile img { width: 100%; max-width: 420px; }
.br-tile-hero, .br-tile-dark { grid-column: span 2; }
.br-tile-dark { background: var(--night); border-color: var(--night); }
.br-tile-sq img { max-width: 170px; }
.br-tile-mist { background: linear-gradient(160deg, var(--blue-50), #fff); }
.br-tile-dark2 { background: radial-gradient(circle at 50% 40%, #17233B, var(--night) 70%); border-color: var(--night); }
.br-tile-dark2 figcaption { color: #94A3B8; }
.br-tile-check { background: linear-gradient(160deg, #EAF2FF, #F7F9FC); }
.br-tile-check img { border-radius: 22%; box-shadow: 0 20px 40px -18px rgba(0, 60, 140, .45); }
.br-tile figcaption { position: absolute; left: 20px; bottom: 16px; right: 20px; font-size: 12px; font-weight: 500; color: var(--muted); }
.br-tile-dark figcaption { color: #94A3B8; }

.br-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.br-rule { border-radius: 24px; background: #fff; border: 1px solid var(--line); padding: 28px; }
.br-rule p { margin-top: 8px !important; font-size: 14px; line-height: 1.6; color: var(--slate); }
.br-clear { position: relative; margin: 30px auto 6px; width: fit-content; padding: 30px; background: repeating-linear-gradient(45deg, rgba(0, 140, 255, .07) 0 6px, transparent 6px 12px); border-radius: 6px; outline: 1px dashed rgba(0, 140, 255, .5); }
.br-clear-box { background: #fff; outline: 1px solid rgba(0, 140, 255, .35); }
.br-clear-box img { width: min(300px, 56vw); }
.br-x { position: absolute; font: italic 600 12px/1 var(--mono); color: var(--blue); }
.br-x-t { top: 9px; left: 50%; } .br-x-b { bottom: 9px; left: 50%; } .br-x-l { left: 11px; top: 46%; } .br-x-r { right: 11px; top: 46%; }
.br-min { display: flex; gap: 40px; margin-top: 30px; align-items: flex-end; }
.br-min div { display: flex; flex-direction: column; gap: 8px; }
.br-min b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.br-min span { font-size: 12px; color: var(--muted); }

.br-mono-note { margin-top: 16px; border-radius: 24px; padding: 28px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; background: linear-gradient(135deg, #FFF8E6, #fff 60%); border: 1px solid #F6E2A8; }
.br-mono-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #F0A901; color: #fff; font-size: 18px; }
.br-mono-note p { margin-top: 6px !important; font-size: 14px; line-height: 1.65; color: var(--slate); max-width: 760px; }
.br-mono-note p b { color: var(--ink); }
.br-mono-demo { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.br-mono-demo figure { border-radius: 16px; background: #fff; border: 1px solid var(--line); padding: 18px 18px 12px; text-align: center; }
.br-mono-demo figure.is-dk { background: var(--night); border-color: var(--night); color: #94A3B8; }
.br-mono-demo img { width: 64px; margin: 0 auto 10px; }
.br-mono-demo figure.is-meh img { opacity: .55; }
.br-mono-demo figcaption { font-size: 12px; font-weight: 600; display: flex; gap: 6px; align-items: center; justify-content: center; }
.br-mono-demo .is-yes i { color: #2FA83A; }
.br-mono-demo .is-meh i { color: #D69500; }

.br-donts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.br-dont figcaption { margin-top: 10px; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.br-dont figcaption::before { content: "\f00d"; font: 900 11px/1 "Font Awesome 6 Free", "Font Awesome 6 Pro"; width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #FDE7E7; color: #E5484D; }
.br-dont-art { position: relative; height: 150px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 20px; overflow: hidden; }
.br-dont-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(229, 72, 77, .7) 50%, transparent calc(50% + 1px)); pointer-events: none; }
.br-dont-art.is-dk { background: var(--night); border-color: var(--night); }
.br-dont-art img { max-height: 70px; width: auto; }
.br-dont-art img[src*="lockup"] { width: 80%; max-height: none; }
.d-stretch { transform: scaleX(1.25) scaleY(.75); }
.d-hue { filter: hue-rotate(150deg) saturate(1.4); }
.d-rot { transform: rotate(-18deg); }
.d-fx { filter: drop-shadow(4px 4px 0 #F75A5B) drop-shadow(0 0 12px rgba(240, 169, 1, .9)); }
.d-busy { background: conic-gradient(from 30deg, #FFB4B4, #A3D6FF, #C6F6C9, #FFE59A, #FFB4B4) !important; }
.d-swap { gap: 10px; }
.d-swap img { max-height: 46px !important; width: auto !important; }
.d-swap img:first-child { width: 60% !important; max-height: none !important; }

/* ---------- vector studio ---------- */
.br-studio { display: grid; grid-template-columns: 360px 1fr; border-radius: 28px; overflow: hidden; background: var(--night-2); border: 1px solid var(--night-line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.br-studio-ctl { padding: 24px; display: flex; flex-direction: column; gap: 18px; border-right: 1px solid var(--night-line); }
.br-studio fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.br-studio legend { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #94A3B8; margin-bottom: 8px; padding: 0; }
.br-studio legend output { color: #fff; font-family: var(--mono); }
.br-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.br-seg button { border: 0; cursor: pointer; height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 600; background: var(--night-3); color: #CBD5E1; box-shadow: inset 0 0 0 1px var(--night-line); transition: background .2s, color .2s, box-shadow .2s; }
.br-seg button:hover { color: #fff; }
.br-seg button.on { background: var(--blue); color: #fff; box-shadow: none; }
.br-seg button.is-warn::after { content: "!"; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 6px; border-radius: 50%; background: #F0A901; color: var(--ink); font-size: 10px; font-weight: 800; vertical-align: 1px; }
.br-seg-dots button { width: 34px; padding: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.br-seg-dots button.on { background: var(--c); box-shadow: 0 0 0 2px var(--night-2), 0 0 0 4px var(--blue); }
.br-seg-dots .is-check, .br-studio-stage[data-bg="check"], .bg-check .br-file-art {
	background-color: #fff;
	background-image: linear-gradient(45deg, #E2E8F0 25%, transparent 25%, transparent 75%, #E2E8F0 75%), linear-gradient(45deg, #E2E8F0 25%, transparent 25%, transparent 75%, #E2E8F0 75%);
	background-size: 16px 16px; background-position: 0 0, 8px 8px;
}
.br-studio input[type="range"] { width: 100%; accent-color: var(--blue); }
.br-studio-meta { display: flex; flex-wrap: wrap; gap: 6px; font: 500 11px/1 var(--mono); }
.br-studio-meta span { padding: 6px 8px; border-radius: 6px; background: var(--night-3); color: #94A3B8; }
.br-studio-meta span:first-child { color: #7cc3ff; }
.br-studio-warn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(240, 169, 1, .12); color: #FAD27A; font-size: 12.5px; line-height: 1.5; box-shadow: inset 0 0 0 1px rgba(240, 169, 1, .3); }
.br-studio-warn i { margin-top: 3px; }
.br-studio-warn[hidden] { display: none; }
.br-studio-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.br-studio-act .br-btn { height: 42px; font-size: 14px; padding: 0 12px; }
.br-studio-act .br-btn:first-child { grid-column: 1 / -1; }
.br-studio-stage { position: relative; min-height: 460px; display: grid; place-items: center; padding: 48px; transition: background-color .35s; }
.br-studio-stage[data-bg="paper"] { background: #F7F9FC; }
.br-studio-stage[data-bg="white"] { background: #fff; }
.br-studio-stage[data-bg="night"] { background: var(--night); }
.br-studio-stage[data-bg="blue"] { background: var(--blue); }
.br-studio-art { width: 100%; max-width: 560px; display: grid; place-items: center; }
.br-studio-art svg { width: 100%; height: auto; max-height: 340px; display: block; animation: br-pop .45s var(--spring); }
.br-studio-art[data-asset="mark"] svg, .br-studio-art[data-asset="icon"] svg { max-width: 300px; }
.br-studio-art[data-asset="stacked"] svg { max-width: 360px; }
@keyframes br-pop { from { opacity: 0; transform: scale(.94); } }
.br-studio-ruler { position: absolute; left: 16px; bottom: 14px; font: 500 11px/1 var(--mono); color: var(--muted); }
.br-studio-stage[data-bg="night"] .br-studio-ruler, .br-studio-stage[data-bg="blue"] .br-studio-ruler { color: rgba(255, 255, 255, .7); }

.br-anat { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin: 72px 0 24px; }
.br-anat-art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; border-radius: 28px; background-color: var(--night-2); background-image: linear-gradient(rgba(124, 195, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 195, 255, .09) 1px, transparent 1px); background-size: 10% 10%; background-position: center; padding: 12%; box-shadow: inset 0 0 0 1px var(--night-line); }
.br-anat-art::after { content: ""; position: absolute; top: 8%; bottom: 8%; left: 50%; border-left: 1px dashed rgba(124, 195, 255, .45); }
.br-anat-art .br-mark { width: 100%; height: 100%; overflow: visible; }
.br-anat-art .br-f { animation: none; transition: transform .7s var(--spring); }
.br-anat.exploded .br-f-cap { transform: translateY(-9%); }
.br-anat.exploded .br-f-hold { transform: translate(-40%, -5%); }
.br-anat.exploded .br-f-kite { transform: translate(-30%, 12%); }
.br-anat.exploded .br-f-stem { transform: translateY(9%); }
.br-anat-copy p { margin: 10px 0 20px !important; color: #94A3B8; line-height: 1.65; font-size: 15px; }
.br-stops { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font: 500 12.5px/1.3 var(--mono); color: #CBD5E1; }
.br-stops li { display: flex; gap: 10px; align-items: center; }
.br-stops i { width: 40px; height: 20px; border-radius: 6px; flex: none; }

.br-files-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 48px 0 14px; }
.br-files-head p { font-size: 13px; color: #FAD27A; }
.br-files { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.br-file { border-radius: 18px; overflow: hidden; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-line); transition: transform .3s var(--spring), box-shadow .3s; }
.br-file:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px #3b4f78, 0 20px 40px -20px rgba(0, 0, 0, .8); }
.br-file-art { height: 150px; display: grid; place-items: center; padding: 26px; background: #F7F9FC; }
.bg-dark .br-file-art { background: #050913; }
.br-file-art img { max-height: 98px; width: auto; max-width: 100%; }
.br-file-foot, .br-pose-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 12px 16px; }
.br-file-foot b, .br-pose-foot b { display: block; font-size: 13.5px; font-weight: 600; color: #fff; }
.br-file-foot small, .br-pose-foot small { display: block; font: 500 11px/1.4 var(--mono); color: #64748B; margin-top: 2px; overflow-wrap: anywhere; }
.br-pose-foot small { font-family: var(--sans); color: rgba(255, 255, 255, .5); }
.br-vtag { font-style: normal; margin-left: 8px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; background: rgba(86, 199, 96, .18); color: #8BE495; vertical-align: 1px; }
.br-vtag.is-hybrid { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .6); }
.br-file-act { display: flex; gap: 6px; flex: none; }
.br-file-act > * { width: 34px; height: 34px; border-radius: 10px; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #CBD5E1 !important; transition: background .2s, color .2s; }
.br-file-act > *:hover { background: var(--blue); color: #fff !important; }
.br-files.is-restricted .br-file { box-shadow: inset 0 0 0 1px rgba(240, 169, 1, .25); }
.br-files.is-restricted .br-file-art { opacity: .78; }
.br-files.is-restricted .br-file-foot b::after { content: "Print only"; margin-left: 8px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; background: rgba(240, 169, 1, .16); color: #FAD27A; vertical-align: 1px; }

/* ---------- colour ---------- */
.br-sw-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 12px; }
.br-sw {
	position: relative; text-align: left; border: 0; cursor: pointer;
	min-height: 320px; border-radius: 24px; padding: 22px;
	display: flex; flex-direction: column; gap: 4px;
	background: var(--c); color: var(--ink);
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06);
	transition: transform .35s var(--spring), box-shadow .35s;
}
.br-sw.on-dark, .br-chip.on-dark, .br-step.on-dark { color: #fff; }
.br-sw:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -24px var(--c), inset 0 0 0 1px rgba(15, 23, 42, .06); }
.br-sw-name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.br-sw-hex { font: 600 14px/1 var(--mono); opacity: .8; }
.br-sw-vals { margin-top: auto; display: grid; gap: 5px; font: 500 12px/1.3 var(--mono); }
.br-sw-vals em { font-style: normal; display: inline-block; width: 46px; opacity: .6; }
.br-sw-note { margin-top: 12px; font-size: 12.5px; line-height: 1.5; opacity: .82; }
.br-sw-copy { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 600; display: flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.br-sw:not(.on-dark) .br-sw-copy { background: rgba(15, 23, 42, .08); }
.br-sw:hover .br-sw-copy { opacity: 1; transform: none; }

.br-ratio, .br-scale, .br-grad, .br-chips, .br-contrast { margin-top: 48px; }
.br-ratio h3, .br-scale h3, .br-chips h3, .br-contrast h3 { margin-bottom: 14px !important; }
.br-ratio-bar { display: flex; height: 64px; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.br-ratio-bar span { display: flex; align-items: center; padding: 0 16px; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; }
.br-ratio p, .br-grad p { margin-top: 12px !important; font-size: 14px; color: var(--slate); line-height: 1.6; max-width: 720px; }
.br-scale-row { display: grid; grid-template-columns: repeat(10, 1fr); border-radius: 18px; overflow: hidden; }
.br-step { border: 0; cursor: pointer; height: 120px; padding: 12px; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; background: var(--c); color: var(--ink); transition: flex-grow .3s, transform .3s var(--spring); }
.br-step b { font-size: 14px; }
.br-step span { font: 500 11px/1.2 var(--mono); opacity: .75; }
.br-step:hover { transform: scaleY(1.08); position: relative; z-index: 1; }
.br-step.is-key b::after { content: " ★"; }
.br-grad-sw { cursor: pointer; height: 180px; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: linear-gradient(135deg, #3AA6FF 0%, #008CFF 45%, #0066E0 100%); box-shadow: 0 30px 60px -30px rgba(0, 102, 224, .8); position: relative; overflow: hidden; }
.br-grad-sw::after { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at var(--mx, 70%) var(--my, 30%), rgba(255, 255, 255, .28), transparent 40%); transition: background .2s; pointer-events: none; }
.br-grad-sw span { font-size: 22px; font-weight: 700; }
.br-grad-sw code { font: 500 13px/1 var(--mono); opacity: .85; }
.br-tutor { margin-top: 56px; padding: 32px; border-radius: 28px; background: linear-gradient(180deg, #EEF2FF, #fff 70%); box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .14); }
.br-tutor > p { margin: 0 0 20px !important; font-size: 14px; color: var(--slate); line-height: 1.6; max-width: 720px; }
.br-tutor .br-grad { margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.br-tutor .br-grad p { grid-column: 1 / -1; margin-top: 0 !important; }
.br-tutor .br-grad-sw { height: 150px; background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%); box-shadow: 0 30px 60px -30px rgba(99, 102, 241, .8); }
.br-tutor .br-grad-sw.is-deep { background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%); box-shadow: 0 30px 60px -30px rgba(79, 70, 229, .8); }
.br-tutor .br-chip-row { margin-top: 24px; }
.br-pairs-tutor { margin-top: 20px; }
.br-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.br-chip { border: 0; cursor: pointer; min-width: 132px; flex: 1 1 132px; max-width: 200px; height: 92px; border-radius: 16px; padding: 12px 14px; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; background: var(--c); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08); transition: transform .3s var(--spring); }
.br-chip:hover { transform: translateY(-4px); }
.br-chip b { font-size: 14px; font-weight: 600; }
.br-chip span { font: 500 11.5px/1.3 var(--mono); opacity: .75; }
.br-pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.br-pair { border-radius: 18px; padding: 18px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 14px; align-items: center; background: var(--bg); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08); }
.br-pair-aa { grid-row: span 2; font-size: 38px; font-weight: 700; line-height: 1; }
.br-pair-l { font-size: 13px; font-weight: 600; }
.br-pair-g { font: 600 12px/1.2 var(--mono); opacity: .85; }
.br-pair-g.ok::before { content: "✓ "; }

/* ---------- type ---------- */
.br-type { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.br-type-spec { position: relative; border-radius: 24px; padding: 32px; background: var(--ink); color: #fff; display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; align-items: center; overflow: hidden; }
.br-type-aa { font-size: clamp(96px, 14vw, 170px); font-weight: 800; line-height: .9; letter-spacing: -.05em; background: linear-gradient(160deg, #fff 30%, #48A9F8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.br-type-spec b { display: block; font-size: 30px; font-weight: 700; }
.br-type-spec div span { display: block; font-size: 13px; color: #94A3B8; margin: 4px 0 10px; }
.br-type-spec a { font-size: 13px; font-weight: 600; color: #7cc3ff; }
.br-type-glyphs { grid-column: 1 / -1; margin-top: 18px !important; font-size: clamp(15px, 2vw, 21px); line-height: 1.5; letter-spacing: .02em; color: rgba(255, 255, 255, .75); overflow-wrap: anywhere; }
.br-type-weights { border-radius: 24px; padding: 18px 26px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.br-type-weights span { font-size: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.br-type-weights span:last-child { border: 0; }
.br-scale-type { margin-top: 16px; border-radius: 24px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.br-scale-type > div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: baseline; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.br-scale-type > div:last-child { border: 0; }
.br-scale-type em { font: 500 11.5px/1.4 var(--mono); font-style: normal; color: var(--muted); }
.br-scale-type span { min-width: 0; overflow-wrap: anywhere; }
.br-tester { margin-top: 16px; border-radius: 24px; background: linear-gradient(140deg, var(--blue-50), #fff 70%); border: 1px solid var(--blue-100); padding: 24px 26px; }
.br-tester-ctl { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 13px; font-weight: 600; color: var(--slate); }
.br-tester-ctl label { display: flex; align-items: center; gap: 10px; }
.br-tester-ctl input[type="range"] { width: 140px; accent-color: var(--blue); }
.br-tester-ctl input[type="checkbox"] { accent-color: var(--blue); width: 16px; height: 16px; }
.br-tester-out { margin-top: 18px !important; font-size: 64px; font-weight: 700; line-height: 1.1; letter-spacing: -.025em; outline: none; overflow-wrap: anywhere; min-height: 1.1em; transition: color .2s; }
.br-tester-out.is-blue { color: var(--blue); }

/* ---------- Rio ---------- */
.br-sec-rio { background: radial-gradient(ellipse 70% 60% at 85% 0%, rgba(74, 123, 255, .5), transparent 60%), linear-gradient(180deg, #13205A, #0B1120 70%); color: #fff; }
.br-sec-rio .br-blurb, .br-sec-rio .br-kicker { color: rgba(255, 255, 255, .65); }
.br-sec-rio .br-num { color: #FFC300; }
.br-rio-main { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.br-rio-portrait { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.br-rio-portrait::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 195, 0, .35), transparent 65%); filter: blur(20px); }
.br-rio-portrait img { position: relative; width: 100%; animation: br-bob 4s ease-in-out infinite; }
@keyframes br-bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.br-rio-facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.br-rio-facts dl > div { border-radius: 18px; padding: 16px 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.br-rio-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FFC300; margin-bottom: 4px; }
.br-rio-facts dd { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.br-rio-facts .br-chip { height: 76px; min-width: 104px; flex-basis: 104px; }
.br-poses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.br-pose { border-radius: 22px; overflow: hidden; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: transform .3s var(--spring), background .3s; }
.br-pose:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .08); }
.br-pose-art { height: 220px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(74, 123, 255, .3), transparent 60%); }
.br-pose-art dotlottie-player { width: 220px; height: 220px; display: block; }
.br-sec-rio .br-files-head h3 { color: #fff; }
.br-files-head .br-stills-note { font-size: 13px; color: rgba(255, 255, 255, .55); }
.br-stills { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.br-still { border-radius: 22px; overflow: hidden; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: transform .3s var(--spring), background .3s; }
.br-still:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .08); }
/* Checkerboard says "no background" at a glance. */
.br-still-art { height: 190px; display: grid; place-items: center; padding: 20px; background: repeating-conic-gradient(rgba(255, 255, 255, .07) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.br-still-art img { max-height: 150px; max-width: 100%; width: auto; }
.br-still .br-pose-foot small { font-family: var(--mono); }

/* ---------- voice ---------- */
.br-voice { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.br-vc { border-radius: 22px; padding: 24px; background: #fff; border: 1px solid var(--line); transition: transform .3s var(--spring), box-shadow .3s; }
.br-vc:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(15, 23, 42, .3); }
.br-vc i { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-size: 17px; margin-bottom: 16px; }
.br-vc p { margin-top: 6px !important; font-size: 14px; line-height: 1.6; color: var(--slate); }
.br-words { margin-top: 16px; border-radius: 22px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.br-words-h, .br-words-r { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 16px; padding: 14px 22px; }
.br-words-h { background: var(--mist); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.br-words-r { border-top: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.br-words-r i { margin-right: 8px; font-size: 12px; }
.br-words-r .say { font-weight: 600; } .br-words-r .say i { color: #2FA83A; }
.br-words-r .not { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(229, 72, 77, .5); } .br-words-r .not i { color: #E5484D; }
.br-words-r .why { color: var(--slate); line-height: 1.55; }
.br-sample { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.br-sample-msg { border-radius: 20px; padding: 20px 22px; font-size: 16px; line-height: 1.5; font-weight: 500; }
.br-sample-msg em { display: block; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.br-sample-msg.is-no { background: #FFF1F1; color: #9F2D30; }
.br-sample-msg.is-yes { background: var(--blue-50); color: var(--ink); }
.br-sample-msg.is-yes em { color: var(--blue-600); }

/* ---------- UI ---------- */
.br-ui { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.br-ui-box { border-radius: 24px; padding: 26px; background: var(--paper); border: 1px solid var(--line); }
.br-ui-wide { grid-column: 1 / -1; }
.br-ui-box h3 { margin-bottom: 18px !important; }
.br-ui-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.br-ui-row + .br-ui-row { margin-top: 14px; }
.br-demo-btn { height: 46px; padding: 0 22px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; background: var(--blue); color: #fff; box-shadow: 0 10px 22px -10px rgba(0, 140, 255, .8); }
.br-demo-btn.is-soft { background: var(--blue-50); color: var(--blue-700); box-shadow: none; }
.br-demo-btn.is-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.br-demo-pill { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); }
.br-radii span, .br-elev span { width: 84px; height: 84px; display: grid; place-items: center; align-content: center; background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue-100); font-weight: 700; font-size: 18px; color: var(--blue); }
.br-radii small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.br-elev { gap: 22px; }
.br-elev span { width: 110px; border-radius: 16px; font-size: 13px; color: var(--slate); }
.br-space { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; font: 500 11px/1 var(--mono); color: var(--muted); }
.br-space span { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.br-space i { display: block; border-radius: 3px; background: var(--blue); opacity: .85; }
.br-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 10px; }
.br-icons i { height: 56px; border-radius: 14px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 20px; color: var(--ink); transition: color .2s, transform .3s var(--spring); }
.br-icons i:hover { color: var(--blue); transform: scale(1.12); }

/* ---------- kit ---------- */
.br-sec-kit { padding-bottom: 48px; }
.br-kit { position: relative; overflow: hidden; border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; background: linear-gradient(135deg, #3AA6FF 0%, #008CFF 45%, #0059C9 100%); color: #fff; box-shadow: 0 50px 90px -40px rgba(0, 102, 224, .7); }
.br-kit::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.br-kit > * { position: relative; }
.br-kit .br-kicker { color: rgba(255, 255, 255, .75); }
.br-kit-copy > p:not(.br-kicker) { margin-top: 14px !important; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .88); max-width: 480px; }
.br-kit .br-btn { background: #fff; color: var(--blue-700) !important; box-shadow: 0 16px 34px -14px rgba(0, 30, 80, .6); }
.br-kit-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.br-kit-links a { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); transition: background .2s; }
.br-kit-links a:hover { background: rgba(255, 255, 255, .24); }
.br-kit-art { position: relative; height: 280px; }
.br-kit-art img { position: absolute; width: 190px; border-radius: 22%; box-shadow: 0 30px 60px -20px rgba(0, 20, 60, .6); animation: br-float 6s ease-in-out infinite; }
.br-kit-art img:first-child { left: 8%; top: 4%; transform: rotate(-8deg); }
.br-kit-art img:last-child { right: 6%; bottom: 0; transform: rotate(7deg); animation-delay: -3s; }
@keyframes br-float { 50% { translate: 0 -12px; } }
.br-foot { margin-top: 40px; text-align: center; font-size: 15px; color: var(--slate); }
.br-foot a { color: var(--blue); font-weight: 600; }
.br-foot .br-fine { max-width: 640px; margin-inline: auto; }

/* ---------- QR codes ---------- */
.br-sec-qr { background: radial-gradient(ellipse 60% 50% at 10% 0%, rgba(0, 140, 255, .28), transparent 70%), radial-gradient(ellipse 50% 40% at 100% 60%, rgba(51, 165, 255, .14), transparent 70%), var(--night); overflow: clip; }
.br-qr-sky { position: absolute; inset: 0; pointer-events: none; }
.br-qr-sky i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(80px); opacity: .22; background: #008CFF; left: -14vmax; top: -18vmax; animation: br-drift 18s ease-in-out infinite alternate; }
.br-qr-sky i + i { left: auto; right: -18vmax; top: 40%; background: #3AA6FF; opacity: .12; animation-duration: 24s; animation-direction: alternate-reverse; }
.br-qr { position: relative; }
.br-qr-switch { display: inline-flex; gap: 6px; padding: 6px; margin-bottom: 22px; border-radius: 22px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--night-line); max-width: 100%; }
.br-qr-switch button { display: flex; align-items: center; gap: 12px; border: 0; cursor: pointer; padding: 10px 18px 10px 12px; border-radius: 16px; background: transparent; color: #CBD5E1; text-align: left; transition: background .3s var(--ease), color .3s, box-shadow .3s; min-width: 0; }
.br-qr-switch button > i { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--night-3); font-size: 15px; transition: background .3s, color .3s; }
.br-qr-switch b { display: block; font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; }
.br-qr-switch small { display: block; font-size: 12px; color: #94A3B8; }
.br-qr-switch button.on { background: linear-gradient(135deg, rgba(0, 140, 255, .26), rgba(0, 89, 168, .2)); box-shadow: inset 0 0 0 1px rgba(124, 195, 255, .35), 0 12px 30px -14px rgba(0, 140, 255, .8); }
.br-qr-switch button.on > i { background: var(--blue); color: #fff; }
.br-qr-studio { position: relative; }
.br-qr-studio .br-studio-ctl { gap: 16px; }
.br-qr-dist p { margin: 10px 0 0 !important; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #CBD5E1; }
.br-qr-dist p b { color: #fff; }
.br-qr-dist p span span { color: #94A3B8; font-family: var(--mono); font-size: 12px; }
.br-qr-dist em { font-style: normal; font-size: 12px; font-weight: 600; color: #7cc3ff; }
.br-qr-stage { min-height: 600px; overflow: hidden; perspective: 1200px; padding: 84px 40px 52px; background: radial-gradient(circle at var(--mx, 50%) var(--my, 40%), #fff 0%, color-mix(in srgb, var(--a, #008CFF) 9%, #fff) 45%, color-mix(in srgb, var(--a, #008CFF) 26%, #E6EEF9) 100%); transition: background-color .4s; }
.br-qr-stage[data-inv="1"] { background: radial-gradient(circle at var(--mx, 50%) var(--my, 40%), #1B2C52 0%, #0B1120 70%); }
.br-qr-stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(0, 89, 168, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 89, 168, .06) 1px, transparent 1px); background-size: 24px 24px; -webkit-mask: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%); mask: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%); pointer-events: none; }
.br-qr-name { position: absolute; bottom: 14px; right: 16px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(0, 89, 168, .14); }
.br-qr-stage[data-inv="1"] .br-qr-name { color: #7cc3ff; background: rgba(255, 255, 255, .06); }
.br-qr-stage[data-inv="1"] .br-studio-ruler { color: rgba(255, 255, 255, .6); }
.br-qr-art { position: relative; z-index: 1; width: min(440px, 100%); display: grid; place-items: center; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.br-qr-art svg { display: block; width: 100%; height: auto; max-height: 470px; filter: drop-shadow(0 30px 40px color-mix(in srgb, var(--a, #00427D) 34%, transparent)) drop-shadow(0 6px 10px rgba(15, 23, 42, .12)); }
.br-qr-art[data-frame="peek"], .br-qr-art[data-frame="riocard"] { width: min(380px, 100%); }
.br-qr-art[data-frame="riotag"] { width: min(620px, 100%); }
.br-qr-art[data-frame="tag"] { width: min(560px, 100%); }
.br-qr-art[data-frame="card"] svg, .br-qr-art[data-frame="nightcard"] svg { max-height: 480px; width: auto; max-width: 100%; }
.br-qr-art .qm { transform-box: fill-box; transform-origin: center; animation: br-qm .7s var(--spring) both; animation-delay: calc(var(--t) * .55s); }
@keyframes br-qm { from { opacity: 0; transform: scale(.2); } }
.br-qr-vf { position: absolute; inset: 0; margin: auto; width: min(460px, 84%); aspect-ratio: 1; height: auto; pointer-events: none; z-index: 2; opacity: 0; }
.br-qr-vf b { position: absolute; width: 44px; height: 44px; border: 4px solid #fff; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.br-qr-vf b:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.br-qr-vf b:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 18px; }
.br-qr-vf b:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 18px; }
.br-qr-vf b:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
.br-qr-beam { position: absolute; left: 0; right: 0; top: 0; height: 140px; z-index: 2; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent, rgba(0, 140, 255, .14) 70%, rgba(124, 195, 255, .85) 99%, transparent); mix-blend-mode: multiply; }
.br-qr-stage[data-inv="1"] .br-qr-beam { mix-blend-mode: screen; }
.br-qr-stage.is-scan .br-qr-beam { animation: br-beam 1.5s .35s var(--ease) both; }
.br-qr-stage.is-scan .br-qr-vf { animation: br-vf 1.9s .2s var(--ease) both; }
@keyframes br-beam { 0% { opacity: 0; transform: translateY(-140px); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(640px); } }
@keyframes br-vf { 0% { opacity: 0; transform: scale(1.18); } 25% { opacity: 1; transform: scale(1); } 75% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.96); } }
.br-qr-pill { position: absolute; top: 16px; left: 50%; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 20px; font-size: 13px; color: var(--ink); background: rgba(255, 255, 255, .8); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .45), inset 0 0 0 1px rgba(255, 255, 255, .6); transform: translateX(-50%); white-space: nowrap; transition: transform .5s var(--spring), opacity .3s; }
.br-qr-pill b { display: block; font-weight: 700; font-size: 13.5px; }
.br-qr-pill small { display: block; font-size: 11.5px; color: var(--muted); }
.br-qr-pill > i { width: 30px; text-align: center; color: var(--blue); }
.br-qr-pill.is-wait { padding: 10px 16px 10px 10px; opacity: .85; }
.br-qr-pill.is-ok { animation: br-pill .7s 1.4s var(--spring) both; }
.br-qr-pill.is-bad > i { color: #F0A901; }
.br-qr-pill-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.br-qr-pill-ic img { width: 100%; height: 100%; }
@keyframes br-pill { from { opacity: 0; transform: translate(-50%, -30px) scale(.8); } }
.br-qr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 56px !important; }
.br-qr-head p { flex: 1 1 260px; margin: 0 !important; color: #94A3B8; font-size: 14px; }
.br-qr-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.br-qrg { border-radius: 22px; overflow: hidden; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-line); transition: transform .4s var(--spring), box-shadow .3s; animation: br-fade .6s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.br-qrg:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a, #7cc3ff) 60%, transparent), 0 30px 50px -24px color-mix(in srgb, var(--a, #008CFF) 70%, transparent); }
.br-qrg.is-warn { box-shadow: inset 0 0 0 1px rgba(240, 169, 1, .3); }
.br-qrg-art { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 26px; border: 0; cursor: pointer; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--a, #008CFF) 8%, #fff), color-mix(in srgb, var(--a, #008CFF) 30%, #E6EEF9)); }
.br-qrg.is-dk .br-qrg-art { background: radial-gradient(circle at 50% 35%, #1B2C52, #0B1120); }
.br-qrg-art svg { width: 100%; height: 100%; filter: drop-shadow(0 14px 18px color-mix(in srgb, var(--a, #00427D) 32%, transparent)); transition: transform .5s var(--spring); }
.br-qrg-art:hover svg { transform: scale(1.04) rotate(-1.5deg); }
.br-qrg-edit { position: absolute; bottom: 12px; left: 50%; display: inline-flex; gap: 7px; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--ink); color: #fff; opacity: 0; transform: translate(-50%, 6px); transition: opacity .25s, transform .35s var(--spring); }
.br-qrg-art:hover .br-qrg-edit, .br-qrg-art:focus-visible .br-qrg-edit { opacity: 1; transform: translate(-50%, 0); }
.br-qrg-art.on { box-shadow: inset 0 0 0 3px var(--blue); }
.br-qrg .br-vtag { margin-left: 8px; }
.br-qr-rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.br-qr-rules > div { padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--night-line); }
.br-qr-rules i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 140, 255, .16); color: #7cc3ff; margin-bottom: 14px; }
.br-qr-rules h3 { font-size: 16px; margin-bottom: 6px !important; }
.br-qr-rules p { font-size: 13.5px; line-height: 1.6; color: #94A3B8; }
@media (max-width: 1000px) {
	.br-qr-rules { grid-template-columns: 1fr 1fr; }
	.br-qr-stage { min-height: 480px; }
	.br-qr-studio .br-qr-stage { order: -1; }
	.br-qr-studio .br-studio-ctl { border-bottom: 0; border-top: 1px solid var(--night-line); }
}
@media (max-width: 640px) {
	.br-qr-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
	.br-qr-switch button { padding: 8px 10px; gap: 8px; }
	.br-qr-switch button > i { display: none; }
	.br-qr-switch b { font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
	.br-qr-stage { min-height: 400px; padding: 76px 18px 48px; }
	.br-qr-gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
	.br-qrg-art { padding: 14px; }
	.br-qr-rules { grid-template-columns: 1fr; }
	.br-qr-pill { top: 12px; }
}

/* ---------- toast ---------- */
.br-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; box-shadow: 0 20px 40px -12px rgba(15, 23, 42, .5); transition: opacity .25s, transform .35s var(--spring); }
.br-toast.show { opacity: 1; transform: translate(-50%, 0); }
.br-toast i { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--c, var(--blue)); font-size: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
	.br-hero-inner, .br-anat, .br-rio-main, .br-type, .br-kit { grid-template-columns: 1fr; }
	.br-hero-art { max-width: 340px; }
	.br-studio { grid-template-columns: 1fr; }
	.br-studio-ctl { border-right: 0; border-bottom: 1px solid var(--night-line); }
	.br-studio-stage { min-height: 320px; }
	.br-sw-grid { grid-template-columns: repeat(2, 1fr); }
	.br-sw:first-child { grid-column: 1 / -1; min-height: 240px; }
	.br-files, .br-donts, .br-voice { grid-template-columns: repeat(2, 1fr); }
	.br-pairs, .br-poses { grid-template-columns: repeat(2, 1fr); }
	.br-tutor { padding: 20px; }
	.br-tutor .br-grad { grid-template-columns: 1fr; }
	.br-stills { grid-template-columns: repeat(3, 1fr); }
	.br-kit-art { display: none; }
}
@media (max-width: 640px) {
	.br-hero { padding: 48px 16px 64px; }
	.br-sec { padding: 64px 16px; }
	.br-head { grid-template-columns: 1fr; gap: 6px; margin-bottom: 32px; }
	.br-num { padding: 0; }
	.br-logo-grid { grid-template-columns: 1fr 1fr; }
	.br-tile-hero, .br-tile-dark { grid-column: 1 / -1; }
	.br-tile { padding: 40px 22px 44px; min-height: 180px; }
	.br-rules, .br-sample, .br-ui, .br-rio-facts dl { grid-template-columns: 1fr; }
	.br-mono-note { grid-template-columns: 1fr; }
	.br-mono-demo { grid-template-columns: repeat(2, 1fr); }
	.br-files, .br-donts, .br-pairs, .br-poses { grid-template-columns: 1fr 1fr; gap: 10px; }
	.br-voice { grid-template-columns: 1fr; }
	.br-file-art { height: 110px; padding: 18px; }
	.br-file-foot { flex-direction: column; align-items: stretch; }
	.br-file-act { justify-content: flex-end; }
	.br-scale-row { grid-template-columns: repeat(5, 1fr); }
	.br-step { height: 84px; }
	.br-scale-type > div { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
	.br-words-h { display: none; }
	.br-words-r { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; }
	.br-kit { padding: 32px 22px; border-radius: 24px; }
	.br-tester-out { font-size: 40px; }
	.br-top-kit span { display: none; }
	.br-top-tag { display: none; }
	.br-pose-art { height: 170px; }
	.br-stills { grid-template-columns: 1fr 1fr; gap: 10px; }
	.br-still-art { height: 150px; }
	.br-still-art img { max-height: 116px; }
	.br-still .br-pose-foot { flex-direction: column; align-items: stretch; }
	.br-still .br-file-act { justify-content: flex-end; }
	.br-pose-art dotlottie-player { width: 170px; height: 170px; }
	.br-dont-art { height: 110px; }
	.br-min { gap: 24px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
	.br *, .br *::before, .br *::after { animation: none !important; transition: none !important; }
	[data-reveal] { opacity: 1; transform: none; }
}

/* ---------- dark app theme guard ----------
   The page uses a fixed palette, but theme.css still reaches in when the app
   is dark: html[data-theme=dark] h1-h6 { color: var(--tt-ink) } washes the
   headings out on the light paper, and the [class*="-tile"] surface hammer
   repaints every .br-tile-* figure. .br.br out-ranks both (0,1,1). */
.br.br :is(h1, h2, h3, h4) { color: inherit; }
.br.br .br-sec-ink :is(h2, h3) { color: #fff; }
.br.br .br-tile { background-color: #fff; border-color: var(--line); color: inherit; }
.br.br .br-tile-dark { background: var(--night); border-color: var(--night); }
.br.br .br-tile-mist { background: linear-gradient(160deg, var(--blue-50), #fff); }
.br.br .br-tile-dark2 { background: radial-gradient(circle at 50% 40%, #17233B, var(--night) 70%); border-color: var(--night); }
.br.br .br-tile-check { background: linear-gradient(160deg, #EAF2FF, #F7F9FC); }
