/*
 * SoloPage — front-end styles.
 *
 * Everything is driven by custom properties. The two accent colours arrive as
 * inline style from functions.php; the five skins below re-map surfaces,
 * borders, shadows and the hero treatment around them.
 *
 * Order: tokens -> skins -> radius -> typography -> base -> components.
 */

/* ------------------------------------------------------------------ tokens */

:root {
	--accent: #e11d48;
	--accent-2: #0ea5e9;

	--bg: #ffffff;
	--bg-2: #f6f7f9;
	--surface: #ffffff;
	--surface-2: #f2f4f7;
	--ink: #0d1220;
	--ink-2: #4a5568;
	--ink-3: #7b8794;
	--line: #e3e7ed;
	--line-strong: #cfd6de;

	--ring: color-mix(in srgb, var(--accent) 35%, transparent);
	--tint: color-mix(in srgb, var(--accent) 8%, transparent);
	--tint-2: color-mix(in srgb, var(--accent-2) 10%, transparent);

	--shadow-sm: 0 1px 2px rgba(13, 18, 32, .05);
	--shadow: 0 2px 8px rgba(13, 18, 32, .06), 0 12px 32px -18px rgba(13, 18, 32, .35);
	--shadow-lg: 0 24px 60px -30px rgba(13, 18, 32, .45);

	--r: 14px;
	--r-sm: 8px;
	--r-lg: 22px;

	--wrap: 1080px;
	--sec-y: clamp(2.75rem, 7vw, 5.5rem);

	--font-head: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
	--font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

	--head-weight: 700;
	--head-tracking: -0.02em;
}

/* ------------------------------------------------------------------- skins */

/* Aurora — soft mesh gradients behind glassy cards. */
.sp-skin-aurora {
	--bg: #fbfbfd;
	--surface: rgba(255, 255, 255, .72);
	--surface-2: rgba(255, 255, 255, .55);
	--line: color-mix(in srgb, var(--accent) 12%, #e5e9ef);
	--card-blur: saturate(160%) blur(14px);
	background-image:
		radial-gradient(60rem 40rem at 8% -8%, var(--tint), transparent 60%),
		radial-gradient(50rem 34rem at 105% 4%, var(--tint-2), transparent 62%);
	background-attachment: fixed;
}

/* Paper — flat, printed, high contrast, no shadows. */
.sp-skin-paper {
	--bg: #fffdf8;
	--bg-2: #f6f1e6;
	--surface: #fffdf8;
	--surface-2: #f6f1e6;
	--ink: #16130d;
	--line: #ddd5c4;
	--line-strong: #b9ae97;
	--shadow-sm: none;
	--shadow: none;
	--shadow-lg: none;
	--card-border: 1px solid var(--line-strong);
}

/* Neon — dark UI, glowing edges. */
.sp-skin-neon {
	--bg: #070911;
	--bg-2: #0d1120;
	--surface: #101424;
	--surface-2: #141a2e;
	--ink: #f2f5ff;
	--ink-2: #a9b2cc;
	--ink-3: #6f7999;
	--line: #232b47;
	--line-strong: #333d63;
	--shadow-sm: none;
	--shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent), 0 18px 60px -30px var(--accent);
	--shadow-lg: 0 0 60px -20px var(--accent);
	color-scheme: dark;
	background-image:
		radial-gradient(48rem 30rem at 50% -12%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
		radial-gradient(40rem 26rem at 90% 10%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%);
}

/* Brutal — thick borders, hard offset shadows, no blur. */
.sp-skin-brut {
	--bg: #fdfdfb;
	--surface: #ffffff;
	--surface-2: #ffffff;
	--ink: #0a0a0a;
	--line: #0a0a0a;
	--line-strong: #0a0a0a;
	--shadow-sm: 3px 3px 0 var(--ink);
	--shadow: 5px 5px 0 var(--ink);
	--shadow-lg: 8px 8px 0 var(--ink);
	--card-border: 2px solid var(--ink);
	--head-weight: 800;
	--head-tracking: -0.035em;
}

/* Minimal — hairlines, lots of air. */
.sp-skin-minimal {
	--bg: #ffffff;
	--surface: #ffffff;
	--surface-2: #fafafa;
	--line: #ececec;
	--line-strong: #dcdcdc;
	--shadow-sm: none;
	--shadow: none;
	--shadow-lg: none;
	--card-border: 1px solid var(--line);
	--sec-y: clamp(3.5rem, 9vw, 7rem);
	--head-weight: 600;
}

/* Optional dark mode for the light skins. */
@media (prefers-color-scheme: dark) {
	.sp-auto-dark:not(.sp-skin-neon) {
		--bg: #0b0d13;
		--bg-2: #12151d;
		--surface: #141822;
		--surface-2: #1a1f2b;
		--ink: #eef1f7;
		--ink-2: #a8b0c0;
		--ink-3: #767f92;
		--line: #262c3a;
		--line-strong: #333a4b;
		--shadow: 0 2px 10px rgba(0, 0, 0, .4);
		--card-blur: none;
		color-scheme: dark;
	}
	.sp-auto-dark.sp-skin-brut {
		--line: #eef1f7;
		--line-strong: #eef1f7;
		--card-border: 2px solid #eef1f7;
		--shadow: 5px 5px 0 #000;
		--shadow-sm: 3px 3px 0 #000;
	}
}

/* ------------------------------------------------------------------ radius */

.sp-radius-none { --r: 0px;  --r-sm: 0px;  --r-lg: 0px; }
.sp-radius-sm   { --r: 6px;  --r-sm: 4px;  --r-lg: 10px; }
.sp-radius-md   { --r: 14px; --r-sm: 8px;  --r-lg: 22px; }
.sp-radius-lg   { --r: 20px; --r-sm: 12px; --r-lg: 30px; }
.sp-radius-xl   { --r: 28px; --r-sm: 16px; --r-lg: 40px; }

/* -------------------------------------------------------------- typography */

.sp-type-editorial {
	--font-head: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, sans-serif;
	--head-tracking: -0.01em;
}
.sp-type-techno {
	--font-head: "Space Grotesk", system-ui, sans-serif;
	--font-body: "Inter", system-ui, sans-serif;
}
.sp-type-system {
	--font-head: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: ui-monospace, Menlo, monospace;
}

/* -------------------------------------------------------------------- base */

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
	margin: 0;
	background-color: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: var(--head-weight);
	letter-spacing: var(--head-tracking);
	line-height: 1.15;
	margin: 0 0 .5em;
	text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: color-mix(in srgb, var(--accent) 75%, var(--ink)); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(100% - 2.25rem, var(--wrap)); margin-inline: auto; }

.section { padding-block: var(--sec-y); }
.section + .section { padding-top: 0; }

.sec-title { font-size: clamp(1.6rem, 1.15rem + 2vw, 2.4rem); margin-bottom: .35em; }
.sec-intro { color: var(--ink-2); max-width: 68ch; margin-bottom: 2rem; }
.sub-title { font-size: 1.15rem; margin-top: 2rem; }

.mono { font-family: var(--font-mono); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap;
}

.skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--accent); color: #fff; padding: .75rem 1.25rem; }
.skip:focus { left: .5rem; top: .5rem; }

.prose { max-width: 74ch; }
.prose h2 { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 2em; }
.prose p { color: var(--ink-2); }
.prose ul, .prose ol { color: var(--ink-2); padding-left: 1.2em; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------------- icons */

/*
 * Icons are inline SVG, so they inherit currentColor and never cost a request.
 * The wrapper keeps them optically centred next to text of any size.
 */
.ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 1.15em;
	height: 1.15em;
	line-height: 1;
}
.ico svg {
	width: 100%;
	height: 100%;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
/* Fallback for legacy emoji values saved before the icon library existed. */
.ico-txt { font-style: normal; font-size: 1em; }

/* ----------------------------------------------------------------- buttons */

.btn {
	--btn-py: .78rem;
	--btn-px: 1.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	padding: var(--btn-py) var(--btn-px);
	border: 0;
	border-radius: 999px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.02rem;
	letter-spacing: -.01em;
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-accent:hover { color: #fff; background: color-mix(in srgb, var(--accent) 88%, #000); }

.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--accent); }

.btn-ico { width: 1.1em; height: 1.1em; }
.btn-label { display: inline-block; }

/* Shape */
.sp-shape-rounded .btn { border-radius: var(--r); }
.sp-shape-square  .btn { border-radius: 6px; }
.sp-shape-sharp   .btn { border-radius: 0; }

/* Size */
.sp-size-sm .btn { --btn-py: .55rem; --btn-px: 1.1rem; font-size: .92rem; }
.sp-size-lg .btn { --btn-py: 1rem;   --btn-px: 2rem;   font-size: 1.12rem; }

/* Fill */
.sp-fill-gradient .btn-accent { background: linear-gradient(115deg, var(--accent), var(--accent-2)); }
.sp-fill-outline  .btn-accent { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.sp-fill-outline  .btn-accent:hover { background: var(--accent); color: #fff; }
.sp-fill-glow     .btn-accent { box-shadow: 0 0 0 1px var(--accent), 0 14px 40px -12px var(--accent); }

.sp-skin-brut .btn { box-shadow: var(--shadow-sm); border: 2px solid var(--ink); }
.sp-skin-brut .btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }

/* Shine */
@keyframes sp-pulse {
	0%, 100% { box-shadow: 0 0 0 0 var(--ring); }
	50%      { box-shadow: 0 0 0 .65rem transparent; }
}
.sp-shine .btn-accent { animation: sp-pulse 2.4s ease-out infinite; }

@media (max-width: 640px) {
	.sp-block .hero-cta .btn,
	.sp-block .closer .btn { width: 100%; }
}

/* Countdown gate — attributes set by main.js while the timer runs. */
.btn[data-gate][aria-disabled="true"] {
	pointer-events: none;
	opacity: .72;
	filter: grayscale(.35);
	animation: none;
}

/* ---------------------------------------------------------------- progress */

.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	transition: width .1s linear;
}

/* ------------------------------------------------------------------ header */

.site-head {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.sp-skin-brut .site-head { border-bottom-width: 2px; }

.head-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; text-decoration: none; color: var(--ink); }
.brand-logo { width: 2.35rem; height: 2.35rem; border-radius: var(--r-sm); object-fit: cover; }
.brand-words { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.05rem; letter-spacing: -.02em; }
.brand-tag { font-size: .74rem; color: var(--ink-3); }

.site-nav ul { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
	display: block;
	padding: .4rem .7rem;
	border-radius: 999px;
	font-size: .9rem;
	font-weight: 500;
	color: var(--ink-2);
	text-decoration: none;
}
.site-nav a:hover,
.site-nav a.is-active { background: var(--surface-2); color: var(--ink); }

.nav-toggle {
	display: none;
	width: 2.6rem; height: 2.6rem;
	align-items: center; justify-content: center;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	cursor: pointer;
	color: var(--ink);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	display: block; width: 1.05rem; height: 2px;
	background: currentColor; border-radius: 2px;
	transition: transform .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.head-inner { position: relative; }
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: absolute;
		inset: 100% 0 auto 0;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		padding: .75rem 0 1.125rem;
		display: none;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; gap: .1rem; }
	.site-nav a { padding: .6rem .5rem; }
}

/* ------------------------------------------------------------- breadcrumbs */

.crumbs { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.crumbs ol {
	display: flex; flex-wrap: wrap; gap: .5rem;
	list-style: none; margin: 0; padding: .6rem 0;
	font-size: .82rem; color: var(--ink-3);
}
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* -------------------------------------------------------------------- hero */

.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 4.75rem) clamp(2rem, 4vw, 3rem); overflow: hidden; }

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 78%, transparent), var(--bg) 92%);
}

.hero-inner { position: relative; z-index: 1; }

.hero-center .hero-inner { text-align: center; max-width: 46rem; }
.hero-center .hero-pills,
.hero-center .hero-cta { justify-content: center; }
.hero-center .byline { justify-content: center; }
.hero-center .hero-text { margin-inline: auto; }

.hero-split .hero-inner {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}
@media (max-width: 880px) { .hero-split .hero-inner { grid-template-columns: 1fr; } }

.hero-title { font-size: clamp(2rem, 1.1rem + 4.2vw, 3.6rem); margin-bottom: .35em; }

.byline {
	display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
	font-size: .84rem; color: var(--ink-3); margin-bottom: 1rem;
}
.byline-ico { color: var(--accent); }
.byline-dot { opacity: .5; }

.hero-text { font-size: clamp(1.02rem, .98rem + .35vw, 1.2rem); color: var(--ink-2); max-width: 60ch; margin-bottom: 1.35rem; }

.hero-pills { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1.6rem; padding: 0; }
.hero-pills li {
	display: inline-flex; align-items: center; gap: .45rem;
	padding: .35rem .8rem;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	font-size: .84rem;
	font-weight: 500;
	color: var(--ink-2);
}
.hero-pills .ico { color: var(--accent); }
.sp-skin-brut .hero-pills li { border-width: 2px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { margin-top: .9rem; font-size: .84rem; color: var(--ink-3); }

/* Hero "at a glance" card (split layout). */
.hero-card {
	background: var(--surface);
	border: var(--card-border, 1px solid var(--line));
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-lg);
	padding: 1.4rem;
	backdrop-filter: var(--card-blur, none);
}
.hero-card-top { display: flex; align-items: center; gap: .85rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.hero-card-logo { width: 3.2rem; height: 3.2rem; border-radius: var(--r); object-fit: cover; color: var(--accent); }
.hero-card-top strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.hero-card-top span { font-size: .82rem; color: var(--ink-3); font-family: var(--font-mono); }

.hero-card-list { margin: 0; padding: 0; }
.hero-card-list > div {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: .62rem 0;
	border-bottom: 1px dashed var(--line);
	font-size: .9rem;
}
.hero-card-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-card-list dt { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-3); margin: 0; }
.hero-card-list dt .ico { color: var(--accent); }
.hero-card-list dd { margin: 0; font-weight: 600; text-align: right; }

/* Stat strip. */
.stats {
	position: relative; z-index: 1;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 1px;
	list-style: none; margin: 2.5rem 0 0; padding: 0;
	background: var(--line);
	border: var(--card-border, 1px solid var(--line));
	border-radius: var(--r);
	overflow: hidden;
}
.stats li { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: 1.15rem .75rem; background: var(--surface); text-align: center; }
.stat-ico { color: var(--accent); width: 1.4em; height: 1.4em; margin-bottom: .2rem; }
.stats strong { font-family: var(--font-head); font-size: 1.35rem; letter-spacing: -.02em; }
.stats span { font-size: .78rem; color: var(--ink-3); }

/* ------------------------------------------------------------------ notice */

.notice {
	display: flex;
	gap: 1rem;
	padding: 1.15rem 1.25rem;
	margin-top: 2rem;
	border-radius: var(--r);
	border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
	background: var(--tint);
}
.sp-skin-brut .notice { border: 2px solid var(--ink); box-shadow: var(--shadow-sm); }
.notice-ico { color: var(--accent); width: 1.6em; height: 1.6em; margin-top: .1rem; }
.notice-title { font-size: 1rem; margin-bottom: .2em; }
.notice p { font-size: .93rem; color: var(--ink-2); }

/* --------------------------------------------------------------------- TOC */

.toc {
	margin-top: 2.25rem;
	padding: 1.25rem 1.4rem;
	border: var(--card-border, 1px solid var(--line));
	border-radius: var(--r);
	background: var(--surface-2);
}
.toc-title { display: flex; align-items: center; gap: .55rem; font-size: .95rem; margin-bottom: .75rem; }
.toc-ico { color: var(--accent); }
.toc ol { columns: 2; column-gap: 2rem; margin: 0; padding-left: 1.15em; font-size: .93rem; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.toc li { margin-bottom: .3rem; break-inside: avoid; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--accent); text-decoration: underline; }

/* ------------------------------------------------------- app details: grid */

.spec-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: .85rem;
	margin: 0;
}
.spec-card {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: .9rem;
	align-items: center;
	padding: 1rem 1.1rem;
	background: var(--surface);
	border: var(--card-border, 1px solid var(--line));
	border-radius: var(--r);
	box-shadow: var(--shadow-sm);
	transition: transform .18s ease, box-shadow .18s ease;
	backdrop-filter: var(--card-blur, none);
}
.spec-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.spec-ico-wrap {
	grid-row: span 2;
	display: grid; place-items: center;
	width: 2.7rem; height: 2.7rem;
	border-radius: var(--r-sm);
	background: var(--tint);
	color: var(--accent);
}
.spec-ico { width: 1.35em; height: 1.35em; }
.spec-card dt { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); align-self: end; }
.spec-card dd { margin: 0; font-weight: 600; font-family: var(--font-mono); font-size: .95rem; align-self: start; word-break: break-word; }

/* ---------------------------------------------------- app details: receipt */

.receipt {
	max-width: 40rem;
	margin: 0;
	padding: 1.5rem 1.6rem;
	background: var(--surface);
	border: var(--card-border, 1px solid var(--line));
	border-radius: var(--r);
	box-shadow: var(--shadow);
}
.receipt-row { display: flex; align-items: baseline; gap: .6rem; padding: .55rem 0; }
.receipt-row + .receipt-row { border-top: 1px dashed var(--line); }
.receipt-row dt { order: 1; display: inline-flex; align-items: center; gap: .55rem; margin: 0; color: var(--ink-2); white-space: nowrap; }
.receipt-ico { color: var(--accent); }
/* The dotted leader is a flexible pseudo-element between label and value. */
.receipt-row::after {
	content: "";
	order: 2;
	flex: 1;
	border-bottom: 1px dotted var(--line-strong);
	transform: translateY(-.28em);
}
.receipt-row dd { order: 3; margin: 0; font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }

/* ---------------------------------------------------------------- features */

.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
	gap: 1rem;
	list-style: none; margin: 0; padding: 0;
}
.feature {
	padding: 1.4rem;
	background: var(--surface);
	border: var(--card-border, 1px solid var(--line));
	border-radius: var(--r);
	box-shadow: var(--shadow-sm);
	backdrop-filter: var(--card-blur, none);
	transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-ico-wrap {
	display: grid; place-items: center;
	width: 2.9rem; height: 2.9rem;
	margin-bottom: .9rem;
	border-radius: var(--r-sm);
	background: linear-gradient(140deg, var(--tint), var(--tint-2));
	color: var(--accent);
}
.feature-ico { width: 1.45em; height: 1.45em; }
.feature h3 { font-size: 1.08rem; margin-bottom: .35em; }
.feature p { font-size: .93rem; color: var(--ink-2); margin: 0; }

/* ------------------------------------------------------------- screenshots */

.shots {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(11rem, 14rem);
	gap: 1rem;
	list-style: none; margin: 0; padding: 0 0 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}
.shots li { scroll-snap-align: start; }
.shots img { width: 100%; border-radius: var(--r); border: var(--card-border, 1px solid var(--line)); box-shadow: var(--shadow); }

/* ------------------------------------------------------------------- steps */

.steps-time { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-3); margin-bottom: 1.6rem; }

.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding-bottom: 1.6rem; position: relative; }
.step:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 1.1rem;
	top: 2.6rem;
	bottom: .3rem;
	width: 2px;
	background: linear-gradient(180deg, var(--accent), transparent);
	opacity: .35;
}
.step-num {
	display: grid; place-items: center;
	width: 2.2rem; height: 2.2rem;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .95rem;
}
.sp-skin-brut .step-num { border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.step-body h3 { font-size: 1.05rem; margin-bottom: .25em; }
.step-body p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ------------------------------------------------------------- permissions */

.perms { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.perms li {
	display: flex;
	gap: .95rem;
	padding: .95rem 1.1rem;
	border: var(--card-border, 1px solid var(--line));
	border-radius: var(--r);
	background: var(--surface);
}
.perm-ico-wrap {
	display: grid; place-items: center;
	width: 2.3rem; height: 2.3rem; flex: none;
	border-radius: var(--r-sm);
	background: var(--surface-2);
	color: var(--accent);
}
.perms strong { font-size: .97rem; }
.perms p { margin: .15rem 0 0; font-size: .9rem; color: var(--ink-2); }

/* ------------------------------------------------------------------ tables */

.pay-table, .versions {
	width: 100%;
	border-collapse: collapse;
	font-size: .93rem;
	background: var(--surface);
	border: var(--card-border, 1px solid var(--line));
	border-radius: var(--r);
	overflow: hidden;
}
.pay-table th, .pay-table td,
.versions th, .versions td {
	padding: .85rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}
.pay-table thead th, .versions thead th {
	background: var(--surface-2);
	font-size: .74rem;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--ink-3);
	font-weight: 600;
}
.pay-table tbody th, .versions tbody th { font-weight: 600; white-space: nowrap; }
.pay-table tbody th { display: flex; align-items: center; gap: .55rem; }
.cell-ico { color: var(--accent); }
.pay-table tr:last-child td, .pay-table tr:last-child th,
.versions tr:last-child td, .versions tr:last-child th { border-bottom: 0; }
.versions tbody th { font-family: var(--font-mono); }

/* --------------------------------------------------------------- changelog */

.changelog { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .55rem; }
.changelog li { display: flex; align-items: flex-start; gap: .65rem; font-size: .95rem; color: var(--ink-2); }
.log-ico { color: var(--accent); margin-top: .18em; }

/* -------------------------------------------------------------- pros & cons */

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .proscons { grid-template-columns: 1fr; } }
.pros, .cons {
	padding: 1.35rem;
	border: var(--card-border, 1px solid var(--line));
	border-radius: var(--r);
	background: var(--surface);
}
.pros h3, .cons h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.pros h3 { color: #16a34a; }
.cons h3 { color: #dc2626; }
.pc-ico { width: 1.15em; height: 1.15em; }
.pros ul, .cons ul { margin: 0; padding-left: 1.15em; color: var(--ink-2); font-size: .94rem; }
.pros li, .cons li { margin-bottom: .35rem; }

/* ----------------------------------------------------------------- reviews */

.reviews {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
	gap: 1rem;
}
.review {
	padding: 1.25rem;
	border: var(--card-border, 1px solid var(--line));
	border-radius: var(--r);
	background: var(--surface);
}
.review-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.review-avatar {
	display: grid; place-items: center;
	width: 2.4rem; height: 2.4rem;
	border-radius: 999px;
	background: linear-gradient(140deg, var(--accent), var(--accent-2));
	color: #fff;
	font-family: var(--font-head);
	font-weight: 700;
	text-transform: uppercase;
}
.review-top strong { display: block; font-size: .95rem; }
.review-date { font-size: .78rem; color: var(--ink-3); }
.stars { display: flex; gap: .12rem; margin: 0 0 .5rem; color: var(--line-strong); }
.stars .star { width: 1em; height: 1em; }
.stars .star.on { color: #f59e0b; }
.stars .star.on svg { fill: currentColor; }
.review-text { font-size: .93rem; color: var(--ink-2); margin: 0; }
.reviews-note { margin-top: 1rem; font-size: .82rem; color: var(--ink-3); }

/* ----------------------------------------------------------------- related */

.related {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
	gap: .85rem;
}
.related li a {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	height: 100%;
	padding: 1.1rem;
	border: var(--card-border, 1px solid var(--line));
	border-radius: var(--r);
	background: var(--surface);
	text-decoration: none;
	color: var(--ink);
	transition: transform .18s ease, border-color .18s ease;
}
.related li a:hover { transform: translateY(-2px); border-color: var(--accent); }
.related-ico-wrap {
	display: grid; place-items: center;
	width: 2.4rem; height: 2.4rem;
	border-radius: var(--r-sm);
	background: var(--tint);
	color: var(--accent);
	margin-bottom: .3rem;
}
.related-text { font-size: .86rem; color: var(--ink-3); }

/* --------------------------------------------------------------------- FAQ */

.faq { display: grid; gap: .6rem; max-width: 52rem; }
.faq details {
	border: var(--card-border, 1px solid var(--line));
	border-radius: var(--r);
	background: var(--surface);
	overflow: hidden;
}
.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.2rem;
	cursor: pointer;
	list-style: none;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq-ico { color: var(--ink-3); transition: transform .2s ease; }
.faq details[open] .faq-ico { transform: rotate(180deg); color: var(--accent); }
.faq-a { padding: 0 1.2rem 1.15rem; }
.faq-a p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ------------------------------------------------------------------ closer */

.closer {
	text-align: center;
	padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
	border-radius: var(--r-lg);
	border: var(--card-border, 1px solid var(--line));
	background:
		radial-gradient(30rem 18rem at 50% -20%, var(--tint), transparent 70%),
		var(--surface);
	box-shadow: var(--shadow);
}
.closer h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
.closer p { color: var(--ink-3); font-size: .9rem; margin-bottom: 1.5rem; }
.closer .hero-cta { justify-content: center; }

/* ------------------------------------------------------------- back to top */

.to-top {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 40;
	width: 2.85rem; height: 2.85rem;
	display: grid; place-items: center;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink);
	box-shadow: var(--shadow);
	cursor: pointer;
}
.to-top[hidden] { display: none; }
.to-top:hover { color: var(--accent); border-color: var(--accent); }
.to-top .ico { width: 1.15em; height: 1.15em; }
@media (max-width: 640px) { .to-top { bottom: 5.25rem; } }

/* ------------------------------------------------------------------ footer */

.site-foot {
	margin-top: var(--sec-y);
	padding-block: 2.5rem 3rem;
	border-top: 1px solid var(--line);
	background: var(--bg-2);
	text-align: center;
}
.sp-skin-brut .site-foot { border-top-width: 2px; }
.foot-text { color: var(--ink-2); max-width: 60ch; margin-inline: auto; font-size: .92rem; }
.foot-mail a { font-size: .92rem; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; list-style: none; margin: 1.25rem 0; padding: 0; }
.foot-links a { color: var(--ink-2); font-size: .88rem; text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
.foot-copy { font-size: .82rem; color: var(--ink-3); margin: 0; }

/* ------------------------------------------------------------- install bar */

.install-bar {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 55;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .65rem .9rem;
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	backdrop-filter: saturate(180%) blur(12px);
	border-top: 1px solid var(--line);
	transform: translateY(110%);
	transition: transform .25s ease;
}
.install-bar.is-visible { transform: none; }
.install-bar-meta { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.install-bar-meta img { width: 2.1rem; height: 2.1rem; border-radius: var(--r-sm); }
.install-bar-meta span {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: .93rem;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.install-bar .btn { --btn-py: .55rem; --btn-px: 1.1rem; font-size: .9rem; flex: none; animation: none; }
@media (min-width: 900px) { .install-bar { display: none; } }

/* ---------------------------------------------------------------- page.php */

.page-title { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.75rem); margin-top: var(--sec-y); }
.page-body { max-width: 74ch; padding-bottom: var(--sec-y); }

/* ----------------------------------------------------------- reveal on scroll */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
	.reveal { opacity: 1; transform: none; }
	.spec-card:hover, .feature:hover, .btn:hover, .related li a:hover { transform: none; }
}

/* ------------------------------------------------------------------- print */

@media print {
	.site-head, .site-nav, .install-bar, .to-top, .progress, .hero-cta, .toc { display: none !important; }
	body { background: #fff; color: #000; }
	.section { padding-block: 1rem; }
}
