/* ==========================================================================
   SoloPage — front-end
   Display: Bricolage Grotesque · Body: Instrument Sans · Data: IBM Plex Mono
   ========================================================================== */

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

	--ink: #14121f;
	--ink-2: #4a4560;
	--paper: #fff;
	--wash: #f2f4f9;
	--line: #e2e5ee;
	--mint: #0f9d6e;

	--display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
	--body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

	--wrap: 76rem;
	--r: 14px;
	--pad: 1.25rem;
}

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

body {
	margin: 0;
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--accent-2);
	outline-offset: 2px;
	border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip {
	position: absolute; left: -9999px;
	background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

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

/* ---------- Type ---------- */

h1, h2, h3, h4 {
	font-family: var(--display);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 .5em;
}

.section-title {
	font-size: clamp(1.6rem, 4.5vw, 2.35rem);
	margin-bottom: 1.5rem;
}
.section-title::after {
	content: "";
	display: block;
	width: 2.5rem; height: 3px;
	background: var(--accent);
	margin-top: .7rem;
	border-radius: 2px;
}

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

.prose p { margin: 0 0 1.1em; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.6em; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 3.25rem;
	padding: .85rem 1.75rem;
	border-radius: 999px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-accent {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-ghost {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, .55);
}

/* ---------- Header ---------- */

.site-head {
	position: sticky; top: 0; z-index: 40;
	background: rgba(255, 255, 255, .88);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }

.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand-logo { max-height: 2.4rem; width: auto; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }

.nav-toggle {
	background: none; border: 0; cursor: pointer;
	width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
	transition: transform .2s ease, opacity .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: -7px; }
.nav-toggle-bars::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
	display: block;
	position: absolute; inset-inline: 0; top: 100%;
	background: var(--paper); border-bottom: 1px solid var(--line);
	padding: .5rem var(--pad) 1rem;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
	display: block; padding: .75rem 0;
	color: var(--ink); text-decoration: none; font-weight: 500;
	border-bottom: 1px solid var(--line);
}
.site-nav a:hover { color: var(--accent); }

@media (min-width: 900px) {
	.nav-toggle { display: none; }
	.site-nav { display: block; }
	.site-nav ul { display: flex; gap: 1.75rem; }
	.site-nav a { border: 0; padding: .25rem 0; font-size: .95rem; }
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	background: var(--ink);
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
	padding-block: clamp(3rem, 9vw, 5.5rem);
}
.hero.has-bg::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(20, 18, 31, .84), rgba(20, 18, 31, .93));
}
.hero-inner { position: relative; }

.hero-badge {
	width: 92px; height: 92px; margin: 0 auto 1.25rem;
	border-radius: 22px; background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .18);
	display: grid; place-items: center; padding: 10px;
	box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
}
.hero-badge img { max-height: 100%; width: auto; }

.hero-title {
	font-size: clamp(1.9rem, 6.2vw, 3.5rem);
	font-weight: 800;
	max-width: 20ch;
	margin-inline: auto;
}
.hero-text {
	color: rgba(255, 255, 255, .78);
	max-width: 60ch; margin: 0 auto 2rem;
	font-size: clamp(1rem, 2.4vw, 1.15rem);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }
.hero-cta .btn { flex: 1 1 15rem; max-width: 22rem; }

.hero-note {
	margin-top: 1.1rem;
	font-family: var(--mono);
	font-size: .8rem;
	letter-spacing: .02em;
	color: rgba(255, 255, 255, .55);
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(2.75rem, 7vw, 4.5rem); }
.section:nth-of-type(even) { background: var(--wash); }

/* ---------- Notice ---------- */

.notice-box {
	margin-top: 1.75rem;
	border-left: 4px solid var(--accent);
	background: color-mix(in srgb, var(--accent) 6%, #fff);
	border-radius: 0 var(--r) var(--r) 0;
	padding: 1.1rem 1.25rem;
}
.notice-box strong { font-family: var(--display); display: block; margin-bottom: .35rem; }
.notice-box p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- Features ---------- */

.feature-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.feature {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 1.4rem;
}
.feature-icon {
	display: grid; place-items: center;
	width: 2.75rem; height: 2.75rem; margin-bottom: .9rem;
	border-radius: 10px;
	background: color-mix(in srgb, var(--accent) 10%, #fff);
	font-size: 1.35rem;
}
.feature h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- Receipt (signature element) ---------- */

.receipt {
	max-width: 34rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r) var(--r) 0 0;
	box-shadow: 0 24px 50px -30px rgba(20, 18, 31, .45);
	overflow: hidden;
}
.receipt-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1rem 1.25rem;
	background: var(--ink); color: #fff;
	font-family: var(--display); font-weight: 700;
}
.receipt-stamp {
	font-family: var(--mono); font-size: .7rem; letter-spacing: .18em;
	border: 1px solid rgba(255, 255, 255, .35);
	padding: .2rem .5rem; border-radius: 4px;
	color: rgba(255, 255, 255, .8);
}

.receipt-rows { margin: 0; padding: .5rem 1.25rem 1.25rem; }
.receipt-row {
	display: flex; align-items: baseline; gap: .75rem;
	padding: .7rem 0;
	border-bottom: 1px dashed var(--line);
}
.receipt-row:last-child { border-bottom: 0; }
.receipt-row dt {
	font-size: .75rem; text-transform: uppercase; letter-spacing: .09em;
	color: var(--ink-2); white-space: nowrap;
}
/* dotted leader between label and value */
.receipt-row dt::after {
	content: "";
	display: inline-block;
	width: 100%;
}
.receipt-row dd {
	margin: 0 0 0 auto;
	font-family: var(--mono);
	font-weight: 500;
	text-align: right;
}

.receipt-tear {
	height: 12px;
	background:
		repeating-conic-gradient(from 45deg at 50% 0,
			var(--paper) 0deg 90deg, transparent 90deg 180deg) 0 0 / 16px 12px;
	filter: drop-shadow(0 1px 0 var(--line));
	margin-top: -1px;
}

/* ---------- Screenshots ---------- */

.shots {
	list-style: none; margin: 0; padding: 0 var(--pad) .5rem;
	display: flex; gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}
.shots li { flex: 0 0 auto; scroll-snap-align: center; }
.shots img {
	width: 15rem;
	border-radius: 18px;
	border: 1px solid var(--line);
	box-shadow: 0 20px 40px -26px rgba(20, 18, 31, .6);
}

/* ---------- Steps ---------- */

.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.steps li {
	counter-increment: s;
	position: relative;
	padding: .9rem 0 .9rem 3.25rem;
	border-bottom: 1px solid var(--line);
	color: var(--ink-2);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
	content: counter(s, decimal-leading-zero);
	position: absolute; left: 0; top: .95rem;
	font-family: var(--mono); font-size: .8rem;
	color: var(--accent);
	border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
	border-radius: 6px;
	padding: .15rem .4rem;
}

/* ---------- Table ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.pay-table { width: 100%; border-collapse: collapse; min-width: 30rem; }
.pay-table th, .pay-table td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
.pay-table th {
	font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
	color: var(--ink-2); background: var(--wash); font-weight: 500;
}
.pay-table tr:last-child td { border-bottom: 0; }

/* ---------- Pros & cons ---------- */

.pc { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.pc-col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; }
.pc-col h3 { font-size: 1.05rem; }
.pc-col ul { list-style: none; margin: 0; padding: 0; }
.pc-col li { position: relative; padding: .45rem 0 .45rem 1.75rem; color: var(--ink-2); font-size: .95rem; }
.pc-col li::before { position: absolute; left: 0; font-family: var(--mono); }
.pc-pros li::before { content: "+"; color: var(--mint); }
.pc-cons li::before { content: "!"; color: var(--accent); }

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

.faq { max-width: 48rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
	list-style: none; cursor: pointer;
	padding: 1.1rem 2.5rem 1.1rem 0;
	position: relative;
	font-family: var(--display); font-weight: 700; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+";
	position: absolute; right: .25rem; top: 50%; translate: 0 -50%;
	font-family: var(--mono); color: var(--accent); font-size: 1.25rem;
	transition: rotate .2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-a { padding: 0 0 1.15rem; }
.faq-a p { margin: 0; color: var(--ink-2); }

/* ---------- Closing CTA ---------- */

.closer { background: var(--ink); color: #fff; text-align: center; padding-block: clamp(2.75rem, 7vw, 4.5rem); }
.closer h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); max-width: 22ch; margin-inline: auto; }

/* ---------- Footer ---------- */

.site-foot { background: var(--wash); border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: .95rem; }
.foot-text, .foot-mail { color: var(--ink-2); margin: 0 0 .75rem; max-width: 60ch; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0 0 1rem; padding: 0; }
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
.foot-copy { font-family: var(--mono); font-size: .78rem; color: var(--ink-2); margin: 0; }

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

.install-bar {
	position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: .7rem var(--pad);
	background: rgba(255, 255, 255, .95);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--line);
	box-shadow: 0 -8px 24px -18px rgba(20, 18, 31, .6);
	transform: translateY(100%);
	transition: transform .25s ease;
	padding-bottom: max(.7rem, env(safe-area-inset-bottom));
}
.install-bar.is-up { transform: translateY(0); }
.install-bar[hidden] { display: none; }
.install-bar-meta { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.install-bar-meta img { width: 2.25rem; height: 2.25rem; border-radius: 8px; object-fit: contain; }
.install-bar-meta span {
	font-family: var(--display); font-weight: 700; font-size: .95rem;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.install-bar .btn { min-height: 2.75rem; padding: .5rem 1.35rem; font-size: .95rem; }

@media (min-width: 900px) { .install-bar { display: none; } }

/* ---------- Inner pages ---------- */

.page-body { padding-block: clamp(2.5rem, 6vw, 4rem); max-width: 48rem; }
.page-title { font-size: clamp(1.8rem, 5vw, 2.6rem); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.btn:hover { transform: none; }
}

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

/* ==========================================================================
   Button styles — driven by the Download & buttons tab (body classes)
   ========================================================================== */

/* Shape */
.sp-shape-pill    .btn { border-radius: 999px; }
.sp-shape-rounded .btn { border-radius: 12px; }
.sp-shape-square  .btn { border-radius: 6px; }
.sp-shape-sharp   .btn { border-radius: 0; }

/* Size */
.sp-size-sm .btn { min-height: 2.75rem; padding: .6rem 1.35rem; font-size: .95rem; }
.sp-size-md .btn { min-height: 3.25rem; padding: .85rem 1.75rem; font-size: 1.05rem; }
.sp-size-lg .btn { min-height: 3.85rem; padding: 1.05rem 2.35rem; font-size: 1.18rem; }

/* Fill */
.sp-fill-gradient .btn-accent {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 65%, transparent);
}
.sp-fill-outline .btn-accent {
	background: transparent;
	color: var(--accent);
	border: 2px solid var(--accent);
	box-shadow: none;
}
.sp-fill-glow .btn-accent {
	box-shadow:
		0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent),
		0 14px 34px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}

/* Outline fill needs a readable ghost button on the dark hero */
.sp-fill-outline .hero .btn-accent { color: #fff; border-color: #fff; }

/* Full-width on mobile */
@media (max-width: 640px) {
	.sp-block .hero-cta .btn,
	.sp-block .closer .btn { width: 100%; flex: 1 1 100%; max-width: none; }
	.sp-block .install-bar .btn { width: auto; }
}

/* Pulse */
@keyframes sp-pulse {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.028); }
}
.sp-shine .hero-cta .btn-accent { animation: sp-pulse 2.4s ease-in-out infinite; }
.sp-shine .hero-cta .btn-accent:hover { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
	.sp-shine .hero-cta .btn-accent { animation: none; }
}

/* ---------- Countdown gate ---------- */

.btn.is-waiting {
	pointer-events: none;
	opacity: .72;
	cursor: progress;
}
.btn.is-waiting .sp-count {
	font-family: var(--mono);
	font-variant-numeric: tabular-nums;
	margin-left: .5rem;
	opacity: .85;
}
.btn.is-ready { animation: none; }
