/* MauiWeb site — AppMare brand: navy #050F2E, cyan #26B4E1, gradient #00B9F4 → #0D4CF2, Inter. */

:root {
	--grad: linear-gradient(135deg, #00B9F4 0%, #0D4CF2 100%);
	--grad-soft: linear-gradient(135deg, rgba(0, 185, 244, .16), rgba(13, 76, 242, .16));
	--font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--radius-s: 8px;
	--radius: 14px;
	--radius-l: 22px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--header-h: 64px;
	--maxw: 1200px;
	color-scheme: dark;

	/* dark (default) */
	--bg: #050F2E;
	--bg-2: #081538;
	--surface: #0B1A40;
	--surface-2: #102350;
	--line: rgba(150, 180, 255, .13);
	--line-2: rgba(150, 180, 255, .22);
	--text: #EEF4FF;
	--text-2: #B4C2DE;
	--text-3: #8797B8;
	--accent: #3CC4EE;
	--accent-ink: #050F2E;
	--code-bg: #030A22;
	--code-text: #D6E2FA;
	--ok: #34D399;
	--warn: #FBBF24;
	--shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 60px -20px rgba(0, 0, 0, .6);
	--glow: 0 0 0 1px rgba(60, 196, 238, .35), 0 10px 40px -10px rgba(13, 76, 242, .55);
}

:root[data-theme="light"] {
	color-scheme: light;
	--bg: #F6F8FC;
	--bg-2: #EDF2FA;
	--surface: #FFFFFF;
	--surface-2: #F1F5FC;
	--line: #DDE5F2;
	--line-2: #C9D5EA;
	--text: #050F2E;
	--text-2: #33425F;
	--text-3: #5A6987;
	--accent: #0A6FA8;
	--accent-ink: #FFFFFF;
	--code-bg: #0A1634;
	--code-text: #D6E2FA;
	--shadow: 0 1px 2px rgba(5, 15, 46, .06), 0 18px 50px -24px rgba(5, 15, 46, .28);
	--glow: 0 0 0 1px rgba(10, 111, 168, .3), 0 10px 30px -12px rgba(13, 76, 242, .35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.6 var(--font);
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(38, 180, 225, .35); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
code, kbd, pre { font-family: var(--mono); }
:not(pre) > code {
	font-size: .86em;
	padding: .12em .4em;
	border-radius: 6px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	color: var(--text);
	white-space: nowrap;
}

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--surface); border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 40;
	height: var(--header-h);
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 25px; }
.brand small { font-weight: 500; font-size: 12px; color: var(--text-3); letter-spacing: 0; margin-left: 2px; padding-left: 10px; border-left: 1px solid var(--line-2); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a { color: var(--text-2); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px; background: var(--grad); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
	width: 40px; height: 40px; display: inline-grid; place-items: center;
	border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text-2);
	cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
@media (max-width: 860px) {
	.nav { display: none; }
	.menu-btn { display: inline-grid; }
	.header-actions .btn { display: none; }
	.site-header.open .nav {
		display: flex; flex-direction: column; align-items: stretch; gap: 2px;
		position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0;
		padding: 10px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line);
	}
	.site-header.open .nav a { padding: 12px; font-size: 16px; }
	.site-header.open .nav a[aria-current="page"]::after { display: none; }
	.brand small { display: none; }
}

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border-radius: 11px;
	font: 600 15px/1 var(--font); letter-spacing: -.01em;
	border: 1px solid transparent; cursor: pointer; white-space: nowrap;
	transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
	touch-action: manipulation;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(135deg, #0878C4 0%, #0D4CF2 100%); color: #fff; box-shadow: 0 8px 24px -10px rgba(13, 76, 242, .8); }
.btn-primary:hover { box-shadow: 0 10px 30px -8px rgba(0, 185, 244, .75); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 112px 0; }
.section-tight { padding: 72px 0; }
@media (max-width: 768px) { .section { padding: 72px 0; } .section-tight { padding: 52px 0; } }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font: 600 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 750; margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: 18px; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; left: 50%; top: 260px; transform: translateX(-50%); width: 1100px; height: 900px; pointer-events: none;
	background: radial-gradient(closest-side, rgba(13, 76, 242, .28), transparent 70%);
}
.hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 60% 50% at 50% 20%, #000 10%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 20%, #000 10%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 880px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(40px, 6.2vw, 74px); font-weight: 800; letter-spacing: -.038em; line-height: 1.02; margin-top: 20px; }
.hero .lede { margin: 24px auto 0; font-size: clamp(17px, 1.7vw, 20px); color: var(--text-2); max-width: 640px; }
.hero .ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.install {
	margin-top: 24px; display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
	padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--code-bg); border: 1px solid var(--line);
	font: 14px/1.4 var(--mono); color: var(--code-text);
}
.install .prompt { color: #6E83AE; user-select: none; }
.install code { overflow-x: auto; white-space: nowrap; background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.install .copy { flex: none; }
.hero-proof { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--text-3); font-size: 14px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { width: 15px; height: 15px; color: var(--ok); }
#hero-stage { margin-top: 72px; }
@media (max-width: 1020px) { .hero { padding-top: 48px; } #hero-stage { margin-top: 56px; } }

/* ---------- live stage: device + wire + server ---------- */
.stage { display: grid; grid-template-columns: 340px 120px minmax(0, 500px); justify-content: center; align-items: stretch; }
.device {
	position: relative; width: 340px; height: 680px; flex: none;
	border-radius: 46px; padding: 11px;
	background: linear-gradient(160deg, #1B2C57, #0A1534 60%);
	box-shadow: 0 0 0 1px rgba(150, 180, 255, .25), 0 40px 80px -30px rgba(0, 0, 0, .75), 0 0 0 7px rgba(150, 180, 255, .04);
}
.device::before { /* side buttons */
	content: ""; position: absolute; right: -3px; top: 150px; width: 3px; height: 70px; border-radius: 0 3px 3px 0; background: #22345F;
}
.device .screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #fff; }
.device iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.device .notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 2; pointer-events: none; }
.screen-state {
	position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; text-align: center; padding: 32px;
	background: var(--surface); color: var(--text-2); font-size: 14.5px;
}
.screen-state[hidden] { display: none; }
.screen-state strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 6px; }
.spinner { width: 26px; height: 26px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.wire { position: relative; }
.wire .line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-1px); background: linear-gradient(90deg, rgba(60, 196, 238, .15), rgba(60, 196, 238, .6), rgba(60, 196, 238, .15)); }
.wire .pulse {
	position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
	background: #3CC4EE; box-shadow: 0 0 12px 2px rgba(60, 196, 238, .8);
}
.wire .pulse.out { left: -5px; animation: to-server .45s var(--ease) forwards; }
.wire .pulse.in { right: -5px; background: #7AA2FF; box-shadow: 0 0 12px 2px rgba(122, 162, 255, .8); animation: to-browser .45s var(--ease) forwards; }
@keyframes to-server { to { transform: translateX(120px); opacity: .25; } }
@keyframes to-browser { to { transform: translateX(-120px); opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .wire .pulse { display: none; } }

.server {
	display: flex; flex-direction: column; min-width: 0;
	border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
	overflow: hidden;
}
.server-head { padding: 16px 18px 14px; border-bottom: 1px solid var(--line); }
.server-head .title { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 14.5px; }
.server-head .sub { margin-top: 4px; color: var(--text-3); font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
.dot.wait { background: var(--warn); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 12px 16px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .k { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat .v { margin-top: 3px; font: 600 19px/1.2 var(--mono); font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.stat .v small { font-size: 12px; color: var(--text-3); font-weight: 500; }
.log {
	flex: 1; min-height: 220px; max-height: 440px; overflow: auto; margin: 0; padding: 10px 0; list-style: none;
	font: 12.5px/1.5 var(--mono); font-variant-numeric: tabular-nums;
}
.log li { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; padding: 4px 16px; color: var(--text-2); animation: row-in .3s var(--ease); }
.log li .arrow { font-weight: 700; }
.log li.out .arrow { color: #3CC4EE; }
.log li.in .arrow { color: #7AA2FF; }
.log li.sys { color: var(--text-3); }
.log li .meta { color: var(--text-3); }
.log li .what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log .empty { display: block; padding: 18px 16px; color: var(--text-3); font-family: var(--font); font-size: 14px; }
@keyframes row-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .log li { animation: none; } }
.server-foot { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; display: flex; gap: 8px; align-items: center; }
.server-foot svg { width: 14px; height: 14px; flex: none; }

.stage-caption { margin-top: 22px; color: var(--text-3); font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.stage-caption svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

@media (max-width: 1000px) { .stage { grid-template-columns: 320px 64px minmax(0, 1fr); } .device { width: 320px; height: 650px; } }
@media (max-width: 1000px) { @keyframes to-server { to { transform: translateX(64px); opacity: .25; } } @keyframes to-browser { to { transform: translateX(-64px); opacity: .25; } } }
@media (max-width: 760px) {
	.stage { grid-template-columns: 1fr; justify-items: center; }
	.wire { height: 40px; width: 2px; }
	.wire .line { top: 0; bottom: 0; left: 0; right: auto; width: 2px; height: auto; transform: none; background: linear-gradient(180deg, rgba(60, 196, 238, .15), rgba(60, 196, 238, .6), rgba(60, 196, 238, .15)); }
	.wire .pulse { left: -4px !important; right: auto !important; }
	.wire .pulse.out { top: 0; animation-name: to-server-v; }
	.wire .pulse.in { top: 100%; animation-name: to-browser-v; }
	.server { width: 100%; }
	.device { width: min(340px, 100%); height: 640px; }
}
@keyframes to-server-v { to { transform: translateY(40px); opacity: .2; } }
@keyframes to-browser-v { to { transform: translateY(-40px); opacity: .2; } }

/* ---------- facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); overflow: hidden; }
.fact { padding: 26px 24px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact .n { font: 700 30px/1.1 var(--font); letter-spacing: -.03em; }
.fact .n small { font-size: 16px; font-weight: 600; color: var(--text-2); margin-left: 2px; }
.fact p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .fact + .fact { border-left: 0; border-top: 1px solid var(--line); } }
.footnote { margin-top: 14px; color: var(--text-3); font-size: 13px; }

/* ---------- flow (how it works) ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 26px 26px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.step .num {
	width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
	font: 700 15px/1 var(--mono); color: #fff; background: var(--grad);
}
.step h3 { margin-top: 20px; font-size: 20px; font-weight: 700; }
.step p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; }
.step .tag { margin-top: 18px; display: inline-flex; gap: 8px; align-items: center; font: 12.5px/1 var(--mono); color: var(--text-3); padding: 8px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } }

/* ---------- diagram ---------- */
.diagram { margin-top: 28px; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface); padding: 28px; overflow-x: auto; }
.diagram svg { min-width: 760px; width: 100%; height: auto; }
.diagram text { font-family: var(--font); fill: var(--text); }
.diagram .muted { fill: var(--text-3); }
.diagram .box { fill: var(--bg-2); stroke: var(--line-2); }
.diagram .mono { font-family: var(--mono); }

/* ---------- code ---------- */
.code-card { border-radius: var(--radius-l); overflow: hidden; background: var(--code-bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.code-tabs { display: flex; align-items: center; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid rgba(150, 180, 255, .12); overflow-x: auto; }
.code-tabs button {
	appearance: none; border: 0; background: transparent; color: #8C9DC2; cursor: pointer;
	font: 500 13px/1 var(--mono); padding: 11px 14px 12px; border-radius: 8px 8px 0 0; white-space: nowrap; position: relative;
}
.code-tabs button:hover { color: #D6E2FA; }
.code-tabs button[aria-selected="true"] { color: #fff; background: rgba(150, 180, 255, .07); }
.code-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--grad); border-radius: 2px; }
.code-tabs .copy { margin-left: auto; margin-bottom: 6px; }
pre.code { margin: 0; padding: 20px 22px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; color: var(--code-text); tab-size: 4; }
pre.code[hidden] { display: none; }
.tok-k { color: #7AA2FF; }
.tok-t { color: #5EE6D0; }
.tok-s { color: #F6C177; }
.tok-c { color: #7487B0; }
.tok-n { color: #F59EBB; }
.tok-m { color: #8FD3FF; }
.tok-a { color: #C4A7FF; }
.copy {
	display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px;
	border: 1px solid rgba(150, 180, 255, .2); background: rgba(150, 180, 255, .06); color: #B4C2DE;
	font: 500 12.5px/1 var(--font); cursor: pointer;
}
.copy:hover { color: #fff; border-color: rgba(150, 180, 255, .4); }
.copy svg { width: 14px; height: 14px; }
.copy.done { color: var(--ok); border-color: rgba(52, 211, 153, .4); }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.checks { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); }
.checks li strong { color: var(--text); font-weight: 650; }
.checks svg { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }

/* ---------- coverage ---------- */
.coverage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cov { padding: 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.cov h3 { font-size: 17px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.cov h3 span { font: 500 13px/1 var(--mono); color: var(--text-3); }
.cov p { margin-top: 6px; color: var(--text-3); font-size: 14px; }
.chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 12.5px/1 var(--mono); padding: 7px 9px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
a.chip:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
@media (max-width: 960px) { .coverage { grid-template-columns: 1fr; } }

/* ---------- add-ons / cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--accent); }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { margin-top: 18px; font-size: 18px; font-weight: 700; }
.card p { margin-top: 8px; color: var(--text-2); font-size: 15px; flex: 1; }
.card code.pkg { margin-top: 18px; align-self: flex-start; }
.card .more { margin-top: 14px; font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 6px; align-items: center; }
.card .more svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.card .more:hover svg { transform: translateX(3px); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } }

/* ---------- placements (tab bar demo) ---------- */
.placements { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.seg button {
	appearance: none; border: 0; background: transparent; color: var(--text-2); cursor: pointer;
	font: 600 14px/1 var(--font); min-height: 38px; padding: 0 14px; border-radius: 9px;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: linear-gradient(135deg, #0878C4 0%, #0D4CF2 100%); color: #fff; }
.placements .snippet { margin-top: 22px; }
.mini-frame {
	width: 560px; height: 380px; border-radius: 16px; overflow: hidden; background: #fff;
	border: 1px solid var(--line-2); box-shadow: var(--shadow); position: relative;
}
.mini-frame .bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mini-frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mini-frame .bar span { margin-left: 10px; font: 11.5px/1 var(--mono); color: var(--text-3); }
.mini-frame iframe { width: 100%; height: calc(100% - 30px); border: 0; }
@media (max-width: 1100px) { .placements { grid-template-columns: 1fr; } .mini-frame { width: 100%; } }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 650; background: var(--bg-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td { color: var(--text-2); }
td:first-child { color: var(--text); }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- isolation ---------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mode { padding: 26px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.mode .label { font: 600 12.5px/1 var(--mono); color: var(--accent); }
.mode h3 { margin-top: 12px; font-size: 19px; }
.mode p { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.mode .viz { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.mode .viz .proc { border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.mode .viz .sess { width: 26px; height: 26px; border-radius: 8px; background: var(--grad-soft); border: 1px solid var(--line-2); }
.mode .viz .cap { width: 100%; font: 11.5px/1 var(--mono); color: var(--text-3); margin-bottom: 2px; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
	position: relative; overflow: hidden; border-radius: 28px; padding: 64px 56px;
	background: radial-gradient(120% 140% at 100% 0%, rgba(0, 185, 244, .28), transparent 50%), linear-gradient(135deg, #0A1A46, #050F2E 70%);
	border: 1px solid rgba(150, 180, 255, .2); color: #EEF4FF;
	display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 780; }
.cta p { margin-top: 12px; color: #B4C2DE; font-size: 17px; max-width: 560px; }
.cta .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(150, 180, 255, .3); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 40px 24px; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--text-3); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font-size: 13px; color: var(--text); font-weight: 650; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { color: var(--text-2); }
.foot-grid .about p { margin-top: 12px; max-width: 320px; }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid .about { grid-column: 1 / -1; } }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-top: 14px; font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.03em; }
.page-head p { margin-top: 14px; color: var(--text-2); font-size: 18px; max-width: 680px; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 96px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding-right: 8px; }
.toc h4 { font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 22px 0 10px; }
.toc h4:first-child { margin-top: 0; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); font-size: 14.5px; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.active { color: var(--text); border-left-color: var(--accent); font-weight: 600; }
.toc-toggle { display: none; }
.prose { max-width: 780px; min-width: 0; }
.prose > section { padding-top: 8px; margin-bottom: 64px; }
.prose h2 { font-size: 30px; font-weight: 760; margin-bottom: 16px; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--text-2); font-size: 16px; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.prose .code-card, .prose .table-wrap, .prose .note { margin: 20px 0; }
.prose .anchor { color: var(--text-3); margin-left: 8px; opacity: 0; font-weight: 500; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.note { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--text-2); font-size: 15px; }
.note svg { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.note.warn { background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .3); }
.note.warn svg { color: var(--warn); }
.note strong { color: var(--text); }
@media (max-width: 960px) {
	.docs { grid-template-columns: 1fr; gap: 0; padding-top: 16px; }
	.toc { position: static; max-height: none; display: none; padding: 8px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
	.toc.open { display: block; }
	.toc-toggle { display: inline-flex; margin-bottom: 16px; }
}

/* ---------- gallery app ---------- */
.gallery-app { display: grid; grid-template-columns: 260px minmax(0, 1fr) 340px; height: calc(100dvh - var(--header-h)); }
.g-side { border-right: 1px solid var(--line); overflow: auto; padding: 18px 12px 24px; background: var(--bg); }
.g-search { position: relative; margin: 0 4px 12px; }
.g-search input {
	width: 100%; height: 40px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid var(--line-2);
	background: var(--surface); color: var(--text); font: 14.5px var(--font);
}
.g-search input::placeholder { color: var(--text-3); }
.g-search svg { position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; color: var(--text-3); }
.g-group h4 { font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 18px 10px 8px; }
.g-group a {
	display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 9px;
	color: var(--text-2); font-size: 14.5px;
}
.g-group a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.g-group a[aria-current="true"] { background: var(--grad-soft); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-2); }
.g-group a .r { font: 11.5px/1 var(--mono); color: var(--text-3); }
.g-empty { padding: 16px 10px; color: var(--text-3); font-size: 14px; }
.g-main { display: flex; flex-direction: column; min-width: 0; background: var(--bg-2); }
.g-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.g-url { flex: 1; min-width: 180px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font: 13px/1 var(--mono); color: var(--text-2); overflow: hidden; white-space: nowrap; }
.g-url svg { width: 14px; height: 14px; color: var(--ok); flex: none; }
.g-url b { color: var(--text); font-weight: 600; }
.g-canvas { flex: 1; min-height: 0; display: grid; place-items: center; padding: 24px; overflow: auto; }
.g-canvas .device { height: min(760px, calc(100dvh - var(--header-h) - 120px)); width: auto; aspect-ratio: 340 / 700; }
.g-canvas .frame-tablet, .g-canvas .frame-desktop { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; box-shadow: var(--shadow); }
.g-canvas .frame-tablet { width: min(820px, 100%); height: min(1000px, 100%); }
.g-canvas .frame-desktop { width: 100%; height: 100%; }
.g-canvas iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.g-wire { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.g-wire .server { border-radius: 0; border: 0; box-shadow: none; flex: 1; min-height: 0; background: transparent; }
.g-wire .log { max-height: none; }
.g-explain { padding: 14px 16px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.g-mobile-tabs { display: none; }
@media (max-width: 1280px) { .gallery-app { grid-template-columns: 240px minmax(0, 1fr) 300px; } }
@media (max-width: 1060px) {
	.gallery-app { grid-template-columns: 1fr; height: auto; }
	.g-side, .g-wire { display: none; border: 0; }
	.gallery-app[data-view="pages"] .g-side { display: block; }
	.gallery-app[data-view="wire"] .g-wire { display: flex; min-height: 70dvh; }
	.gallery-app:not([data-view="app"]) .g-main { display: none; }
	.g-mobile-tabs { display: flex; position: sticky; top: var(--header-h); z-index: 5; gap: 4px; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
	.g-mobile-tabs .seg { width: 100%; }
	.g-mobile-tabs .seg button { flex: 1; }
	.g-canvas { padding: 16px; }
	.g-canvas .device { height: 700px; max-width: 100%; }
	.size-seg { display: none !important; }
}

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.plan.featured { border-color: transparent; box-shadow: var(--glow); position: relative; }
.plan .badge { align-self: flex-start; font: 600 12px/1 var(--mono); padding: 6px 9px; border-radius: 7px; background: var(--grad); color: #fff; margin-bottom: 14px; }
.plan h3 { font-size: 20px; font-weight: 720; }
.plan .price { margin-top: 14px; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.plan .desc { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.plan ul { margin: 22px 0 26px; padding: 0; list-style: none; display: grid; gap: 11px; flex: 1; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--text-2); font-size: 15px; }
.plan li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--text-3); transition: transform .2s var(--ease); flex: none; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--text-2); }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
	.reveal.in { opacity: 1; transform: none; }
}

/* theme button icons */
.i-sun { display: none; }
:root[data-theme="light"] .i-sun { display: block; }
:root[data-theme="light"] .i-moon { display: none; }

/* single-file code cards */
.code-name { position: relative; color: #fff; background: rgba(150, 180, 255, .07); font: 500 13px/1 var(--mono); padding: 11px 14px 12px; border-radius: 8px 8px 0 0; white-space: nowrap; }
.code-name::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--grad); border-radius: 2px; }
.plan.featured .badge { position: absolute; top: 28px; right: 26px; margin: 0; }
.g-group a .r { display: none; }
.stat { padding: 12px 14px; }
.stat .k { white-space: nowrap; font-size: 11px; letter-spacing: .04em; }

/* narrow screens: never let content push the page wider */
@media (max-width: 1100px) { .placements { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) { .docs { grid-template-columns: minmax(0, 1fr); } }
.prose :not(pre) > code, .plan :not(pre) > code, td code { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 480px) { .install { font-size: 12.5px; gap: 8px; padding-left: 12px; } .install .copy span { display: none; } .install .copy { padding: 0 9px; } }

/* ---------- judge round 1 ---------- */
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.nowrap { white-space: nowrap; }
.nav-cta { display: none !important; }
@media (max-width: 860px) { .site-header.open .nav .nav-cta { display: inline-flex !important; margin-top: 10px; color: #fff; } .site-header.open .nav .nav-cta:hover { background: var(--grad); } }
.stat .v .hint { font: 500 13px/1.9 var(--font); color: var(--accent); }
.stage-intro { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 28px; max-width: 720px; text-align: left; color: var(--text-2); font-size: 15.5px; }
.stage-intro svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.stage-intro strong { color: var(--text); font-weight: 650; }
.brand small { margin-left: 4px; padding-left: 12px; font-weight: 450; }
.mode-nums { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.mode-nums span { font-size: 13.5px; color: var(--text-2); padding: 7px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
.mode-nums b { color: var(--text); font-weight: 650; }
.mode .viz { align-items: flex-end; min-height: 74px; }
.viz-key { width: 100%; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; color: var(--text-3); }
.viz-key .sess { width: 14px; height: 14px; border-radius: 4px; }
.prose p, .prose li { max-width: 72ch; }
/* light theme depth */
:root[data-theme="light"] .step, :root[data-theme="light"] .cov, :root[data-theme="light"] .card, :root[data-theme="light"] .mode,
:root[data-theme="light"] .plan, :root[data-theme="light"] .fact, :root[data-theme="light"] .facts, :root[data-theme="light"] .server,
:root[data-theme="light"] .faq details, :root[data-theme="light"] .diagram { box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .05); }
:root[data-theme="light"] .facts .fact { box-shadow: none; }
:root[data-theme="light"] .hero::before { opacity: .35; }
:root[data-theme="light"] .icon-btn { border-color: #B8C5DA; color: #33425F; }
/* mobile hero */
@media (max-width: 600px) {
	.hero { padding-top: 32px; }
	.hero .ctas { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
	.hero-proof { display: grid; justify-content: center; justify-items: start; gap: 8px; }
	.stage-intro { font-size: 14.5px; }
}
/* gallery: group the toolbar controls */
.g-toolbar .seg + .seg { margin-left: 6px; position: relative; }
.g-toolbar .seg + .seg::before { content: ""; position: absolute; left: -9px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }

.g-code { flex: 1; min-height: 0; overflow: auto; padding: 24px; }
.g-code[hidden], .g-canvas[hidden] { display: none; }
.g-code .code-card { max-width: 980px; margin: 0 auto; }
.g-code pre.code { max-height: none; }
.g-code-msg { max-width: 980px; margin: 14px auto 0; color: var(--text-3); font-size: 13.5px; }
.g-url { flex: 1 1 140px; }
.g-toolbar .seg button { padding: 0 12px; }
.stage { align-items: center; }
.stage .server { min-height: 480px; }
.stage .log { min-height: 250px; }
@media (max-width: 1640px) { .g-url { display: none; } }
.g-side { padding-top: 0; }
.g-search { position: sticky; top: 0; z-index: 1; margin: 0 -12px 4px; padding: 18px 16px 10px; background: var(--bg); }
.g-search svg { left: 27px; top: 29px; }

/* ---------- judge round 2 ---------- */
.g-code pre.code { white-space: pre; overflow-x: auto; font-size: 13px; line-height: 1.65; scrollbar-width: thin; scrollbar-color: rgba(150, 180, 255, .35) transparent; }
.g-url { max-width: 260px; }
.g-url span { overflow: hidden; text-overflow: ellipsis; }
.frame-chrome { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.frame-chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.frame-chrome span { margin-left: 12px; flex: 1; min-width: 0; height: 24px; display: flex; align-items: center; padding: 0 10px; border-radius: 7px; background: var(--bg); font: 12px/1 var(--mono); color: var(--text-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-canvas .frame-tablet, .g-canvas .frame-desktop { display: flex; flex-direction: column; }
.g-canvas .frame-tablet iframe, .g-canvas .frame-desktop iframe { flex: 1; height: auto; }
.g-title { padding: 18px 16px 0; }
.g-title h1 { font-size: 16px; font-weight: 700; }
.g-title p { margin-top: 2px; font-size: 13px; color: var(--text-3); }
.g-search { padding-top: 12px; }
.g-search svg { top: 23px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.legend b { font-weight: 700; }
.legend .o { color: #3CC4EE; } .legend .i { color: #7AA2FF; }
a.chip { border-color: var(--line-2); color: var(--text); }
a.chip::after { content: " →"; color: var(--text-3); }
a.chip:hover::after { color: var(--accent); }
:root[data-theme="light"] .device { background: linear-gradient(160deg, #E3E9F3, #CBD5E4); box-shadow: 0 0 0 1px #B9C5D8, 0 30px 60px -30px rgba(5, 15, 46, .35); }
:root[data-theme="light"] .device::before { background: #B9C5D8; }
:root[data-theme="light"] .wire .line { background: linear-gradient(90deg, rgba(10, 111, 168, .15), rgba(10, 111, 168, .55), rgba(10, 111, 168, .15)); }
.m-br { display: none; }
@media (max-width: 480px) { .hero h1 { font-size: 38px; } .m-br { display: inline; } }
.stage-intro { max-width: 900px; }

/* ---------- pricing v2 ---------- */
.page-head-center { text-align: center; border-bottom: 0; padding-bottom: 8px; }
.page-head-center p { margin-left: auto; margin-right: auto; }
.launch { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin: 8px auto 36px; max-width: 760px; padding: 12px 18px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--text-2); font-size: 15px; text-align: center; }
.launch strong { color: var(--text); }
.launch-tag { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 6px 9px; border-radius: 7px; background: linear-gradient(135deg, #0878C4 0%, #0D4CF2 100%); color: #fff; }
.plan { gap: 0; }
.plan h3 { font-size: 20px; }
.plan .desc { margin-top: 6px; min-height: 48px; }
.plan .price { margin-top: 18px; font-size: 42px; line-height: 1; }
.plan .price small { font-size: 16px; }
.price-note { margin-top: 10px; color: var(--text); font-weight: 600; font-size: 15px; min-height: 24px; }
.plan > .btn { margin-top: 22px; width: 100%; }
.plan ul { margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.free-row { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.free { padding: 24px 26px; border-radius: var(--radius-l); border: 1px dashed var(--line-2); background: transparent; }
.free-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.free-head h3 { font-size: 18px; }
.free-price { font-weight: 750; font-size: 18px; color: var(--accent); }
.free p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.install.small { margin-top: 16px; font-size: 13px; }
.text-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15px; }
.plans-foot { margin-top: 18px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.xsell { margin-top: 28px; display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.xsell:hover { text-decoration: none; border-color: var(--accent); }
.xsell strong { color: var(--text); }
.xsell > svg:first-child { width: 28px; height: 27px; flex: none; }
.xsell .arrow { width: 18px; height: 18px; margin-left: auto; flex: none; color: var(--text-3); transition: transform .2s var(--ease); }
.xsell:hover .arrow { transform: translateX(3px); color: var(--accent); }
@media (max-width: 960px) { .plan .desc, .price-note { min-height: 0; } }
@media (max-width: 760px) { .free-row { grid-template-columns: 1fr; } }
.section-head h2:first-child { margin-top: 0; }
.faq { margin: 0 auto; }
.free-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .free-row { grid-template-columns: minmax(0, 1fr); } }
.free .install { display: flex; max-width: 100%; }
.free .install code { min-width: 0; }
.mode { display: flex; flex-direction: column; }
.mode h3 { order: 1; margin-top: 0; }
.mode > p { order: 2; }
.mode .mode-nums { order: 3; }
.mode .viz { order: 4; }
.mode .label { order: 5; margin-top: 18px; align-self: flex-start; padding: 6px 9px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); }
.mode .viz .viz-key .sess { width: 14px; height: 14px; border-radius: 4px; }

/* ---------- judge round 3 ---------- */
.wire-label { position: absolute; left: 50%; top: calc(50% - 26px); transform: translateX(-50%); font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
@media (max-width: 760px) { .wire-label { display: none; } }
.log { font-size: 13px; }
.log li { padding: 5px 16px; }
.log li .meta { color: var(--text-2); }
.log li.sys { color: var(--text-3); }
.stat .v .hint { color: var(--text-3); font-weight: 500; }
.launch { flex-wrap: nowrap; justify-content: center; }
@media (max-width: 600px) { .launch { flex-wrap: wrap; } }
:root[data-theme="light"] .device { background: linear-gradient(160deg, #9AA8BF, #7D8BA4); box-shadow: 0 0 0 1px #6F7D96, 0 30px 60px -24px rgba(5, 15, 46, .45); }
:root[data-theme="light"] .device::before { background: #6F7D96; }
:root[data-theme="light"] { --text-3: #4F5E7B; }

/* ---------- plain benefits (home) ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.benefit { padding: 28px 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.benefit .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--accent); }
.benefit .ic svg { width: 22px; height: 22px; }
.benefit h3 { margin-top: 20px; font-size: 19px; font-weight: 700; }
.benefit p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; }
.more-link { margin-top: 28px; font-weight: 600; font-size: 15px; }
:root[data-theme="light"] .benefit { box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .05); }
@media (max-width: 1100px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .benefits { grid-template-columns: minmax(0, 1fr); } }
/* the technical steps live in the docs now */
.docs-flow .flow { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 20px; }
.docs-flow .step { padding: 20px 22px; }
.docs-flow .step h3 { margin-top: 12px; font-size: 17px; }
.docs-flow .diagram { margin-top: 20px; }

/* ---------- content pass ---------- */
.facts-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .facts-3 { grid-template-columns: 1fr; } .facts-3 .fact + .fact { border-left: 0; border-top: 1px solid var(--line); } }
.steps3 { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.steps3 li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; color: var(--text-2); font-size: 16px; }
.steps3 .n { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 700 14px/1 var(--mono); color: #fff; background: linear-gradient(135deg, #0878C4 0%, #0D4CF2 100%); }
.steps3 strong { color: var(--text); }
.reassure { max-width: 760px; margin: 0 auto; text-align: center; padding: 8px 0; }
.reassure h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 760; }
.reassure p { margin: 14px auto 0; color: var(--text-2); font-size: 17px; }
.reassure .more-link { display: inline-block; margin-top: 18px; }
.cov .chips { margin-top: 14px; }

.free-row { margin: 0 0 20px; }

.g-title p a { font-weight: 600; }
.g-cta { margin: 18px 4px 4px; padding: 16px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--line-2); }
.g-cta strong { display: block; font-size: 15px; }
.g-cta p { margin-top: 4px; color: var(--text-2); font-size: 13.5px; }
.g-cta-btns { margin-top: 12px; display: flex; gap: 8px; }
.g-cta-btns .btn { flex: 1; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
.install code { min-width: 0; }

.free-home { margin: 0; }
.free .install code { flex: 1; }

/* ================= hero v2: the same live app on desktop and phone ================= */
.hero2 { padding: 64px 0 40px; }
.hero2::before { left: auto; right: -200px; top: -120px; transform: none; width: 1000px; height: 900px; }
.hero2::after { mask-image: radial-gradient(ellipse 55% 60% at 75% 40%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 55% 60% at 75% 40%, #000 10%, transparent 75%); }
.hero-grid { display: grid !important; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.hero2 .hero-copy { text-align: left; margin: 0; max-width: 560px; }
.hero2 h1 { font-size: clamp(40px, 5.2vw, 66px); }
.hero2 .lede { margin-left: 0; margin-right: 0; }
.hero2 .ctas, .hero2 .hero-proof { justify-content: flex-start; }
.hero2 .hero-proof { display: grid; gap: 10px; justify-items: start; }
.showcase { position: relative; padding: 24px 0 64px 56px; }
.browser-win { position: relative; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(150, 180, 255, .22), 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 120px -40px rgba(13, 76, 242, .5); }
.win-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #0E1B3E; border-bottom: 1px solid rgba(150, 180, 255, .14); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A3B66; }
.win-bar i:first-child { background: #FF5F57; } .win-bar i:nth-child(2) { background: #FEBC2E; } .win-bar i:nth-child(3) { background: #28C840; }
.win-url { margin: 0 auto; transform: translateX(-20px); display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 12px; border-radius: 6px; background: rgba(255, 255, 255, .06); font: 12px/1 var(--font); color: #A9B8D6; }
.win-url svg { width: 11px; height: 11px; color: #34D399; }
.win-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
iframe.scaled { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #000; }
.showcase .screen-state { background: #050a1c; color: #8797B8; font-size: 13px; }
.showcase .screen-state[hidden] { display: none; }
.device.mini { position: absolute; left: 0; bottom: 0; width: 188px; height: auto; aspect-ratio: 390 / 800; border-radius: 30px; padding: 7px; z-index: 2; }
.device.mini::before { top: 90px; height: 44px; }
.device.mini .screen { border-radius: 24px; background: #000; }
.sc-tag { position: absolute; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.sc-tag-1 { right: 4px; top: 0; }
.sc-tag-2 { left: 14px; bottom: 34px; display: none; }
@media (max-width: 1020px) {
	.hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.hero2 .hero-copy { max-width: 640px; }
}
@media (max-width: 600px) {
	.showcase { padding: 0 0 40px 36px; }
	.device.mini { width: 132px; border-radius: 22px; padding: 5px; }
	.device.mini .screen { border-radius: 18px; }
	.hero2 .ctas { align-items: stretch; margin-left: 0; margin-right: 0; max-width: none; }
}
/* the live wire, now its own section */
.watch { padding-top: 40px; }
.watch-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.watch-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 780; }
.watch-head p { margin-top: 12px; color: var(--text-2); font-size: 17px; }
#hero-stage { margin-top: 0; }
:root[data-theme="light"] .win-bar { background: #E9EEF7; border-bottom-color: #D5DDEB; }
:root[data-theme="light"] .win-bar i { background: #C5CFE0; }
:root[data-theme="light"] .win-url { background: #fff; color: #33425F; }
:root[data-theme="light"] .browser-win { box-shadow: 0 0 0 1px #C9D3E4, 0 30px 70px -30px rgba(5, 15, 46, .35); }
iframe.scaled { max-width: none; }
.showcase { padding: 28px 64px 72px 0; }
.device.mini { left: auto; right: 0; bottom: 0; }
.sc-tag-1 { left: 2px; right: auto; top: 0; }
@media (max-width: 600px) { .showcase { padding: 24px 40px 48px 0; } }

.sc-caption { position: absolute; left: 0; bottom: 18px; display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--text-3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: live 2s ease-in-out infinite; } }
@keyframes live { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }
@media (max-width: 600px) { .sc-caption { font-size: 12.5px; bottom: 6px; right: 0; } }

.addons-strip { margin-top: 20px; display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); overflow: hidden; }
.addons-label { display: flex; align-items: center; padding: 18px 22px; max-width: 200px; font: 600 12px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); border-right: 1px solid var(--line); }
.addons-strip a { display: block; padding: 18px 22px; color: var(--text-2); font-size: 14px; transition: background .2s var(--ease); }
.addons-strip a + a { border-left: 1px solid var(--line); }
.addons-strip a:hover { background: var(--surface-2); text-decoration: none; }
.addons-strip strong { display: block; color: var(--text); font-size: 15.5px; margin-bottom: 4px; }
@media (max-width: 900px) { .addons-strip { grid-template-columns: minmax(0, 1fr); } .addons-label { max-width: none; border-right: 0; border-bottom: 1px solid var(--line); } .addons-strip a + a { border-left: 0; border-top: 1px solid var(--line); } }
.section-head h2:first-child { margin-top: 0; }

/* gallery toolbar: one strong state, quiet groups */
.g-toolbar .seg { background: var(--bg-2); border-color: transparent; }
.g-toolbar .seg button { min-height: 34px; font-weight: 550; }
.g-toolbar .icon-btn { width: 36px; height: 36px; border-color: transparent; background: var(--bg-2); }
/* docs: compact header, search over the contents */
.page-head-docs { padding: 40px 0 28px; }
.page-head-docs h1 { font-size: clamp(30px, 3.6vw, 40px); }
.page-head-docs p { font-size: 16.5px; }
.toc-search { position: sticky; top: 0; z-index: 1; padding-bottom: 14px; background: var(--bg); }
.toc-search input { width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 14px var(--font); }
.toc-search input::placeholder { color: var(--text-3); }
.toc [hidden] { display: none; }
@media (max-width: 600px) {
	.win-bar { height: 24px; gap: 5px; padding: 0 8px; }
	.win-bar i { width: 7px; height: 7px; }
	.win-url { height: 16px; font-size: 10px; padding: 0 8px; }
	.showcase { padding: 16px 44px 64px 0; }
	.sc-caption { right: 150px; bottom: 4px; align-items: flex-start; line-height: 1.4; }
	.sc-caption .live-dot { margin-top: 5px; flex: none; }
}

/* ---------- judge round 4 ---------- */
.g-wire .stat .v .hint, .stat .v .hint { display: inline-block; white-space: nowrap; font: 600 11.5px/1 var(--font); padding: 5px 8px; border-radius: 999px; background: rgba(251, 191, 36, .12); color: var(--warn); }
.g-wire .stats .stat { padding: 12px 12px; }
.log li { color: #C9D5EE; }
:root[data-theme="light"] .log li { color: var(--text-2); }
.log li .meta { color: #9FB0D0; }
.note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.device.mini { bottom: -28px; width: 176px; }
.showcase { padding-bottom: 56px; }
.sc-caption { font-size: 14.5px; color: var(--text-2); }
.plan .desc { min-height: 52px; }
.launch-price { margin-top: 6px; font-size: 13.5px; color: var(--ok); font-weight: 600; }
.free { border-style: solid; background: var(--surface); }
.cta { background: radial-gradient(120% 140% at 100% 0%, rgba(13, 76, 242, .38), transparent 55%), linear-gradient(135deg, #0A1A46, #050F2E 70%); }
.steps3 code { background: none; border: 0; padding: 0; color: var(--text); font-weight: 600; font-size: .92em; }
@media (max-width: 600px) { .device.mini { bottom: -18px; width: 128px; } }

/* ---------- judge round 5 ---------- */
@media (max-width: 600px) {
	.showcase { padding-bottom: 0; }
	.sc-caption { position: static; margin-top: 14px; padding-right: 140px; }
	.device.mini { bottom: 0; }
}
.stage { align-items: stretch; }
.stage .server { min-height: 0; }
.hero2 h1 { font-size: clamp(40px, 4.8vw, 62px); }
@media (min-width: 1021px) { .hero-grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); } }
.cov h3 { align-items: center; }
.cov h3 span { font: 700 20px/1 var(--font); color: var(--accent); letter-spacing: -.02em; margin-left: auto; }
.addons-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.addons-label { grid-column: 1 / -1; max-width: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 22px; }
.addons-strip a:nth-of-type(1) { border-left: 0; }
.free { display: flex; flex-direction: column; }
.free .text-link { margin-top: auto; padding-top: 14px; }
#free { padding-bottom: 40px; }
.seg-label { font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-right: -4px; }
.g-toolbar .seg + .seg::before { display: none; }
.g-toolbar .seg-label + .seg { margin-left: 0; }
@media (max-width: 1060px) { .seg-label.size-seg { display: none; } }

/* ---------- judge round 6 ---------- */
.hero2 h1 { font-size: clamp(34px, 4.1vw, 54px); }
@media (min-width: 1021px) { .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }
@media (max-width: 640px) {
	.hero2 h1 .nowrap { white-space: normal; }
	.browser-win { display: none; }
	.showcase { padding: 0; display: flex; flex-direction: column; align-items: center; }
	.device.mini { position: relative; right: auto; bottom: auto; width: 220px; border-radius: 34px; padding: 8px; }
	.device.mini .screen { border-radius: 27px; }
	.sc-caption { position: static; padding-right: 0; margin-top: 16px; justify-content: center; text-align: center; }
}
.wire-label { background: var(--bg); padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line-2); top: calc(50% - 12px); z-index: 1; }
.stage { align-items: center; }
.stage .server { min-height: 440px; }
.prose { max-width: 720px; }
.gallery-app { grid-template-columns: 250px minmax(0, 1fr) 300px; }
@media (max-width: 1280px) { .gallery-app { grid-template-columns: 230px minmax(0, 1fr) 280px; } }
@media (max-width: 1060px) { .gallery-app { grid-template-columns: 1fr; } }
.g-wire .log li .what { white-space: normal; overflow: visible; }
:root[data-theme="light"] .btn-ghost { border-color: #B8C5DA; background: #F8FAFD; }
.steps3 code { white-space: nowrap; }
@media (min-width: 641px) { .sc-caption { right: 196px; } }

/* ------------------------------------------------------------------ shop: buy.html, license.html (store.js) */
.shop { padding: 40px 0 112px; }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; box-shadow: var(--shadow); }
.card + .card { margin-top: 20px; }
.card h3 { margin: 0 0 12px; font-size: 17px; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-row h3 { margin: 0; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field > label, .field-label { font-weight: 600; font-size: 14px; }
.hint, .muted { color: var(--text-3); }
.small { font-size: 13.5px; }
.input { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 15px; box-sizing: border-box; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(60, 196, 238, .2); }
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plan-pick button { min-height: 64px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; text-align: left; padding: 10px 14px; display: grid; gap: 2px; }
.plan-pick button b { font-size: 15px; }
.plan-pick button span { font-size: 13px; color: var(--text-3); }
.plan-pick button[aria-pressed="true"] { border-color: var(--accent); box-shadow: var(--glow); }
.domain-row { display: flex; gap: 8px; }
.domain-row + .domain-row { margin-top: 8px; }
.domain-row .icon-btn[hidden] { display: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; justify-self: start; }
.link-btn[hidden] { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); margin-bottom: 20px; }
.check input { margin-top: 3px; accent-color: #0D4CF2; width: 16px; height: 16px; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); }
.notice-error { border-color: rgba(248, 113, 113, .5); background: rgba(248, 113, 113, .1); color: #fca5a5; }
:root[data-theme="light"] .notice-error { color: #b42318; }
.notice[hidden] { display: none; }
.summary .price-line { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0; }
.summary .price-line strong { font-size: 28px; letter-spacing: -.02em; }
.summary .launch-note { display: block; margin: 10px 0 16px; padding: 10px 12px; border-radius: 10px; background: var(--grad-soft); font-size: 14px; }
.summary ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.summary li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }
.wide { width: 100%; justify-content: center; }
.pay-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; font-size: 13px; color: var(--text-3); }
.keybox { margin: 0; padding: 14px; border-radius: 10px; background: var(--code-bg); color: var(--code-text); font-size: 12.5px; white-space: pre-wrap; word-break: break-all; border: 1px solid var(--line); }
.lic-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.lic-head h1 { margin: 6px 0 4px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; }
.lic-head p { margin: 0; }
.lic-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.lic-side form { display: grid; gap: 8px; }
.lic-wait { display: flex; gap: 18px; align-items: center; padding: 28px; }
.lic-wait h2 { margin: 0 0 6px; }
.lic-wait p { margin: 0; color: var(--text-2); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.status { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line-2); white-space: nowrap; }
.status-active { color: var(--ok); border-color: rgba(52, 211, 153, .4); }
.status-canceling, .status-past_due { color: var(--warn); border-color: rgba(251, 191, 36, .4); }
.lic-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 14px; font-size: 14px; }
.lic-facts dt { color: var(--text-3); }
.lic-facts dd { margin: 0; overflow-wrap: anywhere; }
.keep { margin-top: 24px; text-align: center; }
.code-card + .muted { margin-top: 14px; }
@media (max-width: 900px) {
	.shop-grid, .lic-grid { grid-template-columns: minmax(0, 1fr); }
	.lic-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) { .plan-pick { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ accounts (account.html) */
.auth-wrap { display: grid; place-items: center; padding: 24px 0; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { margin: 6px 0 6px; font-size: 30px; letter-spacing: -.02em; }
.auth-card > p { margin: 0 0 22px; }
.auth-switch { margin: 18px 0 0; text-align: center; color: var(--text-2); }
.lic-list { display: grid; gap: 12px; }
.lic-list .card + .card { margin-top: 0; }
.lic-item { display: flex; flex-direction: row; text-align: left; justify-content: space-between; align-items: center; gap: 16px; color: var(--text); text-decoration: none; transition: border-color .2s var(--ease); }
.lic-item:hover { border-color: var(--accent); text-decoration: none; }
.lic-item h3 { margin: 0 0 4px; }
.lic-item p { margin: 0; }
.lic-item-side { display: grid; justify-items: end; gap: 6px; text-align: right; }
#buy-signin[hidden], #buy-form[hidden] { display: none; }
@media (max-width: 640px) { .lic-item { flex-direction: column; align-items: flex-start; } .lic-item-side { justify-items: start; text-align: left; } }
/* Sign in stays in the header on small screens too (the other header buttons move into the menu). */
@media (max-width: 860px) { .header-actions #account-btn { display: inline-flex; } }
.auth-wide { width: min(600px, 100%); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238797B8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.check a { color: var(--accent); }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }

/* Shop cards are plain blocks: the landing's .card is a column flexbox, which glued text to buttons and stretched them full width */
.shop .card:not(.lic-item) { display: block; }
.shop .card > p { flex: none; }
.shop .card > .btn { margin-top: 18px; }
.shop .card > .btn + .btn { margin-left: 8px; }

/* Landing showcase: the caption sits under the desktop window, clear of the phone */
.sc-caption { position: static; margin-top: 20px; padding-right: 150px; }
@media (max-width: 600px) { .sc-caption { padding-right: 0; margin-top: 16px; } }
/* the "New here?" line under the button (.auth-card > p would otherwise zero its top margin) */
.auth-card > p.auth-switch { margin: 20px 0 0; line-height: 1.6; }
.auth-card { padding: 32px; }
.auth-card > .eyebrow { display: flex; }
@media (max-width: 560px) { .auth-card { padding: 24px 20px; } }
/* loading states: the global .spinner centers itself with auto margins, which pushed the text to the far side */
.lic-wait .spinner { margin: 0; flex: none; }
/* keys grow with every domain (Enterprise has no limit): scroll inside the box */
.keybox { max-height: 240px; overflow-y: auto; }

/* Legal pages */
.legal-links { display: flex; gap: 18px; }
.legal-links a { color: var(--text-2); }
.legal-links a:hover { color: var(--text); }
.legal-page { padding: 48px 0 112px; }
.legal-page .prose > section { margin-bottom: 40px; }
.legal-page .prose h2 { font-size: 22px; margin-bottom: 12px; }
.legal-page .prose a { color: var(--accent); }
