/* SkinOS shared tokens. Fonts are self-hosted to save data and avoid third-party requests. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url("../fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-latin-600-normal.woff2") format("woff2"); }

:root {
	--sk-white: #FFFFFF;
	--sk-stone: #F6F5F4;
	--sk-stone-2: #EDEBE8;
	--sk-ink: #292824;
	--sk-ink-70: rgba(41, 40, 36, .7);
	--sk-ink-50: rgba(41, 40, 36, .5);
	--sk-ink-10: rgba(41, 40, 36, .1);
	--sk-ink-06: rgba(41, 40, 36, .06);
	--sk-blue: #5163FF;
	--sk-blue-lt: #EEEFFF;
	--sk-mint: #2FA36B;
	--sk-mint-lt: #E3F6EC;
	--sk-amber: #E09A2B;
	--sk-amber-lt: #FDF1DD;
	--sk-rose: #E5566F;
	--sk-rose-lt: #FDE8EC;
	--sk-iris: linear-gradient(100deg, #667FFF 0%, #CEA2FF 50%, #FF85B1 100%);
	--sk-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--sk-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--sk-r-sm: 10px;
	--sk-r-md: 16px;
	--sk-r-lg: 24px;
	--sk-r-xl: 32px;
	--sk-shadow: 0 1px 2px rgba(41, 40, 36, .04), 0 12px 32px -12px rgba(41, 40, 36, .12);
	--sk-ease: cubic-bezier(.2, .7, .2, 1);
	/* Theme tokens */
	--sk-ink-rgb: 41, 40, 36;
	--sk-card: #FFFFFF;
	--sk-card-rgb: 255, 255, 255;
	--sk-bg-rgb: 255, 255, 255;
	--sk-solid: #292824;
	--sk-panel: #292824;
	--sk-on-mint: #1D7A4D;
	--sk-on-rose: #B23A51;
	--sk-on-amber: #9A5B07;
	--sk-on-blue: #3443C9;
	--sk-on-orange: #D9661F;
	--sk-on-violet: #6A55D8;
	--sk-on-sky: #2A6BD6;
	color-scheme: light;
}

/* Dark mode: set by the theme switch (Light, Dark or System) through html.is-dark. */
html.is-dark {
	--sk-white: #111114;
	--sk-stone: #1C1C21;
	--sk-stone-2: #26262C;
	--sk-ink: #F1EFEC;
	--sk-ink-rgb: 241, 239, 236;
	--sk-ink-70: rgba(241, 239, 236, .74);
	--sk-ink-50: rgba(241, 239, 236, .56);
	--sk-ink-10: rgba(241, 239, 236, .14);
	--sk-ink-06: rgba(241, 239, 236, .08);
	--sk-blue-lt: rgba(110, 125, 255, .2);
	--sk-mint-lt: rgba(47, 179, 107, .2);
	--sk-amber-lt: rgba(224, 154, 43, .2);
	--sk-rose-lt: rgba(229, 86, 111, .2);
	--sk-card: #24242A;
	--sk-card-rgb: 36, 36, 42;
	--sk-bg-rgb: 17, 17, 20;
	--sk-solid: #5262F5;
	--sk-panel: #1A1A20;
	--sk-on-mint: #74DCA6;
	--sk-on-rose: #FF9FB2;
	--sk-on-amber: #F4C36E;
	--sk-on-blue: #AEB8FF;
	--sk-on-orange: #FFA36E;
	--sk-on-violet: #C2B4FF;
	--sk-on-sky: #8EC2FF;
	--sk-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
	color-scheme: dark;
}
html.is-dark body.skinos-canvas { background: var(--sk-white); }
html.sk-theme-anim, html.sk-theme-anim * { transition: background-color .3s ease, color .3s ease, border-color .3s ease !important; }

/* Theme switch (landing nav and app settings) */
.sk-theme { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--sk-stone); }
.sk-theme button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font: 500 13.5px var(--sk-sans); color: var(--sk-ink-50); cursor: pointer; }
.sk-theme button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sk-theme button[aria-pressed="true"] { background: var(--sk-card); color: var(--sk-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.sk-theme--icon button { padding: 0; width: 34px; justify-content: center; }

html { -webkit-text-size-adjust: 100%; }

body.skinos-canvas {
	margin: 0;
	background: var(--sk-white);
	color: var(--sk-ink);
	font-family: var(--sk-sans);
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: -.011em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.skinos-canvas *,
.skinos-canvas *::before,
.skinos-canvas *::after { box-sizing: border-box; }

.skinos-canvas img,
.skinos-canvas svg { display: block; max-width: 100%; }

:where(.skinos-canvas) a { color: inherit; }

.skinos-canvas :focus-visible {
	outline: 2px solid var(--sk-blue);
	outline-offset: 3px;
	border-radius: 8px;
}

.sk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 50px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	font: 500 16px/1 var(--sk-sans);
	letter-spacing: -.01em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, box-shadow .15s, transform .15s var(--sk-ease);
	-webkit-tap-highlight-color: transparent;
}
.sk-btn:active { transform: scale(.98); }
.sk-btn--primary { background:var(--sk-solid); color: #fff; }
.sk-btn--primary:hover { background: #000; }
.sk-btn--ghost { background: var(--sk-white); color: var(--sk-ink); box-shadow: inset 0 0 0 1px var(--sk-ink-10); }
.sk-btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--sk-ink-50); }
.sk-btn--quiet { background: var(--sk-stone); color: var(--sk-ink); }
.sk-btn--quiet:hover { background: var(--sk-stone-2); }
.sk-btn--blue { background: var(--sk-blue); color: #fff; }
.sk-btn--blue:hover { background: #3F50EE; }
.sk-btn[disabled] { opacity: .45; cursor: not-allowed; }

.sk-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Scan markers drawn over a face, shared by the landing page and the app */
.sk-face { position: relative; overflow: hidden; background: var(--sk-stone); container-type: size; }
/* A 3:4 frame that covers the box like object-fit: cover, so markers stay on the same spot of the face. */
.sk-face__frame { position: absolute; left: 50%; top: 50%; width: max(100cqw, 75cqh); aspect-ratio: 3 / 4; transform: translate(-50%, -50%); }
.sk-face__frame > img { width: 100%; height: 100%; object-fit: cover; }
.sk-face__frame.is-square { width: max(100cqw, 100cqh); aspect-ratio: 1 / 1; }
.sk-mark {
	position: absolute;
	left: var(--x); top: var(--y);
	width: 14px; height: 14px;
	margin: -7px 0 0 -7px;
	border-radius: 50%;
	background: var(--c, var(--sk-blue));
	box-shadow: 0 0 0 4px rgba(var(--sk-card-rgb), .7), 0 0 0 10px color-mix(in srgb, var(--c, #5163FF) 25%, transparent);
}
.sk-mark--zone {
	width: var(--w, 20%); height: var(--h, 8%);
	transform: translate(-50%, -50%);
	margin: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--c, #5163FF) 28%, transparent);
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c, #5163FF) 70%, transparent);
}

@media (prefers-reduced-motion: reduce) {
	.skinos-canvas *, .skinos-canvas *::before, .skinos-canvas *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* Add to home screen sheet (landing page and app) */
.sk-install { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; font-family: var(--sk-sans); color: var(--sk-ink); }
.sk-install__backdrop { position: absolute; inset: 0; background: rgba(20, 19, 17, .4); opacity: 0; transition: opacity .25s var(--sk-ease); }
.sk-install__panel {
	position: relative; width: 100%; max-width: 480px;
	padding: 24px 22px calc(22px + env(safe-area-inset-bottom));
	border-radius: 28px 28px 0 0; background: var(--sk-white);
	box-shadow: 0 -12px 40px -12px rgba(41, 40, 36, .3);
	transform: translateY(100%); transition: transform .3s var(--sk-ease);
}
.sk-install.is-open .sk-install__backdrop { opacity: 1; }
.sk-install.is-open .sk-install__panel { transform: none; }
.sk-install__close { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--sk-stone); cursor: pointer; }
.sk-install__close svg { width: 18px; height: 18px; margin: auto; fill: none; stroke: var(--sk-ink); stroke-width: 2; stroke-linecap: round; }
.sk-install__head { display: flex; align-items: center; gap: 14px; padding-right: 36px; }
.sk-install__head img { flex: none; width: 56px; height: 56px; border-radius: 14px; }
.sk-install__head h2 { margin: 0; font: 600 19px/1.2 var(--sk-display); letter-spacing: -.02em; }
.sk-install__head p { margin: 2px 0 0; font-size: 14px; color: var(--sk-ink-50); }
.sk-install__text { margin: 16px 0 0; font-size: 15px; line-height: 1.5; color: var(--sk-ink-70); }
.sk-install__steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.sk-install__steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--sk-stone); font-size: 15px; line-height: 1.35; }
.sk-install__n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sk-white); font-size: 13px; font-weight: 600; }
.sk-install__ic { display: inline-flex; align-items: center; gap: 4px; vertical-align: -4px; }
.sk-install__ic svg { width: 20px; height: 20px; fill: none; stroke: var(--sk-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sk-install__steps li:first-child .sk-install__ic svg circle { fill: var(--sk-blue); stroke: none; }
.sk-install__hint { margin: 10px 0 0; font-size: 13px; color: var(--sk-ink-50); }
.sk-install__actions { display: flex; gap: 8px; margin-top: 18px; }
.sk-install__actions .sk-btn { flex: 1; padding: 0 16px; white-space: nowrap; }
.sk-install__actions [data-sk-add] { flex: 1.6; }
@media (min-width: 720px) {
	.sk-install { align-items: center; }
	.sk-install__panel { border-radius: 28px; transform: translateY(24px); opacity: 0; transition: transform .3s var(--sk-ease), opacity .3s; }
	.sk-install.is-open .sk-install__panel { opacity: 1; }
}

/* v1.9 install sheet */
.sk-install__perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.sk-install__perks li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: var(--sk-stone); text-align: center; font-size: 12.5px; font-weight: 500; line-height: 1.25; }
.sk-install__perks svg { width: 22px; height: 22px; fill: none; stroke: var(--sk-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sk-install__actions .sk-btn svg { width: 20px; height: 20px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sk-install__actions a.sk-btn { text-decoration: none; }
.sk-install__fine { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--sk-ink-50); }
.sk-install__ic svg circle { fill: var(--sk-blue); stroke: none; }
.sk-install__steps--ios li { align-items: flex-start; }
.sk-install__copy { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; padding: 10px; border: 0; background: none; font: 500 14px var(--sk-sans); color: var(--sk-blue); cursor: pointer; }
.sk-install__copy svg, .sk-install__actions [data-sk-copy] svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.sk-install__qr { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 14px; border-radius: 18px; background: var(--sk-stone); }
.sk-install__qr [data-sk-qr] { flex: none; width: 120px; height: 120px; padding: 8px; border-radius: 12px; background: #fff; }
.sk-install__qr [data-sk-qr] svg { width: 100%; height: 100%; display: block; }
.sk-install__qr p { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.sk-install__qr small { font-weight: 400; color: var(--sk-ink-50); word-break: break-all; }
.sk-install__done { padding: 18px 0 4px; text-align: center; }
.sk-install__done > span { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #2FB36B; }
.sk-install__done svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sk-install__done h3 { margin: 12px 0 4px; font: 600 19px var(--sk-display); }
.sk-install__done p { margin: 0; color: var(--sk-ink-70); font-size: 15px; }
/* Pointer to Safari's Share button: bottom centre on iPhone, top right on iPad */
.sk-install__pointer { position: fixed; left: 50%; bottom: calc(6px + env(safe-area-inset-bottom)); z-index: 2; transform: translateX(-50%); pointer-events: none; animation: sk-point 1.2s ease-in-out infinite; }
.sk-install__pointer.is-top { left: auto; right: 74px; bottom: auto; top: 6px; transform: none; animation-name: sk-point-up; }
.sk-install__pointer span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sk-blue); box-shadow: 0 0 0 6px rgba(81, 99, 255, .25); }
.sk-install__pointer svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sk-install:not(.is-open) .sk-install__pointer { opacity: 0; }
@keyframes sk-point { 50% { transform: translate(-50%, 8px); } }
@keyframes sk-point-up { 50% { transform: translateY(-8px); } }
.sk-install[data-mode="ios"] .sk-install__panel { width: calc(100% - 20px); margin: 0 10px calc(66px + env(safe-area-inset-bottom)); border-radius: 28px; padding-bottom: 22px; }
@media (prefers-reduced-motion: reduce) { .sk-install__pointer { animation: none; } }
.sk-install__actions { flex-direction: column; }
.sk-install__actions .sk-btn { width: 100%; flex: none; }
.sk-install__panel:focus-within .sk-install__actions .sk-btn:focus:not(:focus-visible) { outline: none; box-shadow: none; }
