/* ClickLogic product demos: the one sign-in page for every demo.
   Light enterprise look: white surfaces on a cool grey canvas, deep ink for type and the
   main action, the product's own accent only for its marks, icons and the preview wash.
   No inline styles or scripts anywhere (the page is served with a strict CSP). */

@font-face {
	font-family: "Geist";
	src: url("../fonts/geist-latin.woff2") format("woff2");
	font-weight: 100 900; font-style: normal; font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Geist";
	src: url("../fonts/geist-latin-ext.woff2") format("woff2");
	font-weight: 100 900; font-style: normal; font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Geist Mono";
	src: url("../fonts/geist-mono-latin.woff2") format("woff2");
	font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
	--canvas: #f3f5f8;
	--surface: #ffffff;
	--ink: #0f1a2b;
	--ink-2: #1c2a41;
	--text: #3a4557;
	--mute: #667085;
	--faint: #8b94a4;
	--line: #e3e7ed;
	--line-2: #d1d7e0;
	--signal: #0891a3;
	--warn: #b45309;
	--acc: #2a6fb0;
	--ui: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--pop: 0 16px 40px -12px rgba(15, 26, 43, 0.22), 0 2px 6px rgba(15, 26, 43, 0.06);
	--pad-x: clamp(16px, 3.2vw, 48px);
	color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
	background: var(--canvas);
	color: var(--text);
	font: 14px/1.5 var(--ui);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "ss01" 0;
	overflow: hidden;
}
p { margin: 0; }
button { font: inherit; color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.short { display: none; }

.app {
	height: 100vh; height: 100dvh;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	grid-template-columns: minmax(0, 1fr);
}

/* ---------- header: brand left, the two switches right ---------- */
.top {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: 68px; padding: 0 var(--pad-x);
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font: 600 17px/1 var(--ui); letter-spacing: -0.015em; color: var(--ink); }
.brand-sep { width: 1px; height: 20px; background: var(--line-2); }
.brand-tag { font-size: 13.5px; color: var(--mute); white-space: nowrap; }

.pickers { display: flex; gap: 10px; }
.pick { position: relative; }
.pick-btn {
	display: flex; align-items: center; gap: 10px;
	height: 46px; min-width: 228px; padding: 0 10px 0 10px;
	background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px;
	cursor: pointer; text-align: left;
	box-shadow: 0 1px 2px rgba(15, 26, 43, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pick-btn:hover { border-color: #b4bdca; }
.pick-btn[aria-expanded="true"] { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(15, 26, 43, 0.07); }
.pick-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pick-label { font-size: 11.5px; line-height: 1.2; color: var(--mute); }
.pick-val { font: 500 14px/1.35 var(--ui); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-val small { color: var(--mute); font-weight: 400; font-size: 13px; }
.pick-btn .chev { width: 16px; height: 16px; color: var(--faint); transition: transform 0.15s ease; }
.pick-btn[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--ink); }
.mark { width: 26px; height: 26px; border-radius: 6px; flex: none; }
.avatar {
	width: 28px; height: 28px; border-radius: 50%; flex: none;
	display: grid; place-items: center;
	font: 600 11px/1 var(--ui); letter-spacing: 0.02em;
	color: color-mix(in srgb, var(--acc) 72%, var(--ink));
	background: color-mix(in srgb, var(--acc) 13%, #fff);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 22%, transparent);
}

.menu {
	position: absolute; right: 0; top: calc(100% + 6px);
	min-width: 100%; width: max-content; max-width: min(420px, calc(100vw - 32px)); max-height: min(64vh, 520px); overflow: auto;
	margin: 0; padding: 6px; list-style: none;
	background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
	box-shadow: var(--pop);
	z-index: 20;
}
.menu[hidden] { display: none; }
.opt { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 7px; cursor: pointer; }
.opt.active { background: var(--canvas); }
.opt-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.opt-main { font: 500 14px/1.3 var(--ui); color: var(--ink); }
.opt-sub { font-size: 12.5px; color: var(--mute); line-height: 1.35; }
.opt .tick { color: var(--ink); visibility: hidden; width: 16px; height: 16px; }
.opt[aria-selected="true"] .tick { visibility: visible; }

/* ---------- notice ---------- */
.notice {
	position: absolute; left: 50%; top: 80px; transform: translateX(-50%); z-index: 4;
	display: flex; align-items: center; gap: 12px;
	max-width: min(640px, calc(100vw - 32px));
	padding: 10px 10px 10px 14px; border-radius: 9px;
	background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--signal);
	color: var(--text); font-size: 13.5px;
	box-shadow: var(--pop);
}
.notice[hidden] { display: none; }
.notice.warn { border-left-color: var(--warn); }
.notice a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.notice button { background: none; border: 0; color: var(--faint); cursor: pointer; padding: 3px; display: grid; border-radius: 5px; }
.notice button:hover { color: var(--ink); background: var(--canvas); }

/* ---------- stage ---------- */
.stage {
	width: 100%; max-width: 1560px; justify-self: center;
	min-height: 0;
	display: grid;
	grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
	gap: clamp(28px, 4.6vw, 80px);
	padding: clamp(16px, 3.6vh, 44px) var(--pad-x);
}

/* the way in: product, who you will be, one button */
.entry { align-self: center; display: flex; flex-direction: column; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 13.5px; font-weight: 500; color: var(--mute); }
.eyebrow-mark { width: 22px; height: 22px; border-radius: 5px; }
h1 { margin: 0; font: 600 clamp(30px, 2.8vw, 42px)/1.08 var(--ui); letter-spacing: -0.03em; color: var(--ink); }
.h1-pre { color: var(--faint); font-weight: 500; }
.lede { margin-top: 12px; font-size: 15.5px; line-height: 1.55; color: var(--text); max-width: 40ch; }

.who {
	margin-top: clamp(18px, 3.4vh, 30px);
	background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
	padding: 14px 14px 14px 16px;
	box-shadow: 0 1px 2px rgba(15, 26, 43, 0.04);
}
.who-top { display: flex; align-items: center; gap: 12px; }
.avatar-lg { width: 40px; height: 40px; font-size: 13.5px; }
.who-txt { min-width: 0; flex: 1; }
.who-name { font: 600 15px/1.3 var(--ui); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-role { font-size: 13px; line-height: 1.35; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-change {
	flex: none; height: 30px; padding: 0 11px; border-radius: 7px; cursor: pointer;
	background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2);
	font-size: 13px; font-weight: 500;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.who-change:hover { border-color: #b4bdca; background: var(--canvas); }
.who-about {
	margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line);
	font-size: 13.5px; line-height: 1.5; color: var(--mute);
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.who-about:empty { display: none; }

#go { margin: 16px 0 0; }
.enter {
	width: 100%; height: 50px; padding: 0 20px; border: 0; border-radius: 10px; cursor: pointer;
	display: flex; align-items: center; justify-content: center; gap: 10px;
	background: var(--ink); color: #fff; font: 600 15px/1 var(--ui); letter-spacing: -0.005em;
	box-shadow: 0 1px 2px rgba(15, 26, 43, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	transition: background 0.15s ease, transform 0.1s ease;
}
.enter span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enter .icon { width: 17px; height: 17px; transition: transform 0.15s ease; }
.enter:hover { background: #1d2c45; }
.enter:hover .icon { transform: translateX(3px); }
.enter:active { transform: translateY(1px); }
.enter[disabled] { opacity: 0.65; cursor: progress; }
.alt {
	align-self: center; margin-top: 10px;
	display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
	background: none; border: 0; padding: 5px 8px; border-radius: 6px; cursor: pointer;
	color: var(--mute); font-size: 13.5px;
}
.alt:hover { color: var(--ink); }
.alt .icon { width: 15px; height: 15px; }

.ai { margin-top: clamp(14px, 3vh, 26px); padding-top: clamp(12px, 2.4vh, 18px); border-top: 1px solid var(--line); }
.ai-h { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.ai-h .icon { width: 15px; height: 15px; color: var(--acc); }
.ai-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ai-list li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.ai-list li::before { content: ""; position: absolute; left: 3px; top: 0.6em; width: 5px; height: 5px; border-radius: 1px; background: color-mix(in srgb, var(--acc) 70%, #fff); }
.ai-list li.more { color: var(--mute); }
.ai-list li.more::before { background: var(--line-2); }
.ai-sum { display: none; margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.ai.none .ai-h .icon { color: var(--faint); }

/* the real product, in a browser frame, on a wash of its own colour */
.preview {
	position: relative; min-width: 0; min-height: 0; max-height: 100%; align-self: center;
	display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 2.4vh, 22px);
	padding: clamp(16px, 2.6vw, 36px);
	border-radius: 18px;
	background: color-mix(in srgb, var(--acc) 7%, #f8fafc);
	border: 1px solid color-mix(in srgb, var(--acc) 12%, var(--line));
	overflow: hidden;
	transition: background-color 0.4s ease, border-color 0.4s ease;
}
/* the dot field: ClickLogic's pixel mark as a texture, strongest at the edges */
.preview::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(circle, color-mix(in srgb, var(--acc) 26%, transparent) 1.1px, transparent 1.6px);
	background-size: 16px 16px; background-position: 8px 8px;
	-webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 42%, transparent 45%, #000 100%);
	mask-image: radial-gradient(ellipse 80% 75% at 50% 42%, transparent 45%, #000 100%);
	transition: background-image 0.4s ease;
}
.frame {
	position: relative; z-index: 1; margin: 0;
	flex: 0 1 auto; min-height: 120px; width: 100%;
	aspect-ratio: 1440 / 860;
	display: flex; flex-direction: column;
	background: var(--surface);
	border: 1px solid rgba(15, 26, 43, 0.09); border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 26, 43, 0.06), 0 12px 24px -12px rgba(15, 26, 43, 0.14), 0 32px 64px -24px rgba(15, 26, 43, 0.3);
}
.frame-bar {
	flex: none; height: 40px; padding: 0 12px;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	background: #f9fafb; border-bottom: 1px solid var(--line);
}
.addr {
	display: inline-flex; align-items: center; gap: 7px; min-width: 0;
	height: 26px; padding: 0 11px; border-radius: 7px;
	background: var(--canvas); border: 1px solid var(--line);
	font: 400 12.5px/1 var(--mono); color: var(--text);
}
.addr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr .icon { width: 13px; height: 13px; color: #15803d; stroke-width: 2; }
.frame-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--mute); white-space: nowrap; }
.frame-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.frame-view { position: relative; flex: 1; min-height: 0; background: var(--canvas); }
.frame-view img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: left top;
	transition: opacity 0.25s ease;
}
.preview.swap .frame-view img { opacity: 0; }

.caps {
	position: relative; z-index: 1; flex: none;
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	background: var(--surface); border: 1px solid rgba(15, 26, 43, 0.08); border-radius: 12px;
	box-shadow: 0 1px 2px rgba(15, 26, 43, 0.05);
	overflow: hidden;
}
.cap { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; align-items: start; padding: 14px 16px; box-shadow: -1px 0 0 var(--line); }
.cap-ico {
	width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
	background: color-mix(in srgb, var(--acc) 9%, #fff); color: color-mix(in srgb, var(--acc) 85%, var(--ink));
}
.cap-ico .icon { width: 17px; height: 17px; }
.cap-t { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.3; color: var(--ink); }
.cap-d { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.42; color: var(--mute); }

/* ---------- footer ---------- */
.foot {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: 48px; padding: 10px var(--pad-x) calc(10px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line); background: var(--surface);
	color: var(--mute); font-size: 12.5px;
}
.assure { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.assure li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.assure .icon { width: 15px; height: 15px; color: var(--faint); }
.by { color: var(--mute); text-decoration: none; font: 400 12px/1 var(--mono); white-space: nowrap; }
.by:hover { color: var(--ink); }

/* ---------- fitting every screen without scrolling ---------- */
@media (max-width: 1679px) {
	.caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cap { box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
}
@media (max-width: 980px) {
	.brand-sep, .brand-tag { display: none; }
}
@media (max-width: 1100px) {
	.stage { grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); gap: 32px; }
	.cap-d { display: none; }
	.cap { align-items: center; padding: 11px 14px; }
}
@media (max-height: 820px) and (min-width: 901px) {
	.cap-d { display: none; }
	.cap { align-items: center; padding: 11px 14px; }
	.ai-list { display: none; }
	.ai-sum { display: block; }
}
@media (max-height: 700px) and (min-width: 901px) {
	.who-about { -webkit-line-clamp: 2; line-clamp: 2; }
	.lede { font-size: 15px; }
}
@media (max-height: 620px) and (min-width: 901px) {
	.who-about, .caps { display: none; }
	.ai { display: none; }
}
/* tablets and phones: the way in only, centred */
@media (max-width: 900px) {
	.preview { display: none; }
	.stage { grid-template-columns: minmax(0, 440px); justify-content: center; align-content: center; }
	.ai-list { display: none; }
	.ai-sum { display: block; }
}
@media (max-width: 760px) {
	.top { flex-wrap: wrap; row-gap: 10px; padding-top: 10px; padding-bottom: 12px; }
	.brand-mark { width: 26px; height: 26px; }
	.pickers { width: 100%; }
	.pick { flex: 1; min-width: 0; }
	.pick-btn { min-width: 0; width: 100%; }
	.pick-val small, .pick-val .long { display: none; }
	.menu { left: 0; right: auto; }
	#pick-person .menu { left: auto; right: 0; }
	.notice { top: 128px; left: 16px; right: 16px; transform: none; max-width: none; }
	.foot { justify-content: center; }
	.assure { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 12px; width: 100%; }
	.assure li { white-space: normal; align-items: flex-start; line-height: 1.35; }
	.by { display: none; }
	h1 { font-size: 30px; }
	.lede { font-size: 14.5px; margin-top: 8px; }
	.eyebrow { margin-bottom: 10px; }
}
@media (max-width: 400px) {
	.pick-label .long { display: none; }
	.pick-label .short { display: inline; }
	.brand-tag { font-size: 13px; }
	h1 { font-size: 27px; }
}
@media (max-height: 760px) and (max-width: 900px) {
	.who-about { -webkit-line-clamp: 2; line-clamp: 2; }
}
@media (max-height: 690px) and (max-width: 900px) {
	.who-about { display: none; }
	.assure li:nth-child(n+3) { display: none; }
	.who { margin-top: 16px; padding: 12px 12px 12px 14px; }
	.ai { margin-top: 12px; padding-top: 10px; }
}
@media (max-height: 560px) and (max-width: 900px) {
	.lede, .ai, .foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
