/* ===========================================================================
   UNSI LABS — app.css
   One product, one funnel: Landing (index.html) → Checkout (build.html).
   Mobile-first. Desktop is an enhancement layer (min-width queries only).
   Design tokens lifted from the operator's source design.
   =========================================================================== */

:root {
	--paper:    #FAF7F3;   /* primary surface            */
	--paper-2:  #F5F1EA;   /* slightly recessed surface  */
	--sand:     #E9E6E1;   /* page backdrop accent       */
	--ink:      #211E1A;   /* primary text / dark section*/
	--ink-2:    #2C2823;   /* dark section stripe        */
	--ink-soft: #46413A;   /* hero lead                  */
	--muted:    #7A7368;   /* body muted                 */
	--muted-2:  #9A8F80;   /* fine print                 */
	--muted-3:  #A59B8C;   /* faintest print             */
	--gold:     #C2B6A4;   /* serif numerals / accents   */
	--line:     #E8E1D8;   /* hairlines                  */
	--line-2:   #E3DCCF;   /* card borders               */
	--ph:       #B6AB9B;   /* placeholder labels         */
	--paper-dim:#C9BEAE;   /* on-dark sub text           */

	--serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
	--sans:  Helvetica, Arial, system-ui, -apple-system, sans-serif;
	--mono:  'SF Mono', ui-monospace, Menlo, monospace;

	--maxw: 1080px;
	--pad: 26px;
	--radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

.eyebrow {
	display: block;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--muted-2);
}

/* ── buttons ────────────────────────────────────────────────────────── */
.btn {
	--bg: var(--ink);
	--fg: var(--paper);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: var(--bg);
	color: var(--fg);
	text-decoration: none;
	padding: 16px 30px;
	border: 0;
	border-radius: 40px;
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .3px;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
	-webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn__arrow { font-size: 16px; line-height: 1; }
.btn--ink { --bg: var(--ink); --fg: var(--paper); font-weight: 500; }
.btn--sm { padding: 11px 20px; font-size: 13px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: .55;
	transform: none;
}

/* Hero CTA: the leopard texture shows through, like the source design. */
.btn--hero {
	background-image: url("uploads/hero-mobile.webp");
	background-size: 320px;
	background-position: center;
	color: var(--paper);
	font-weight: 600;
	box-shadow: 0 7px 22px rgba(40,34,28,.22);
}

/* ── header ─────────────────────────────────────────────────────────── */
.site-head {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(250,247,243,.82);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease;
}
.site-head.is-stuck { border-bottom-color: var(--line); }
.site-head__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 16px;
}
.brand {
	font-family: var(--serif);
	font-weight: 500;
	font-size: 18px;
	letter-spacing: .5px;
	text-decoration: none;
	color: var(--ink);
	white-space: nowrap;
}
.brand__dot { opacity: .4; }
.brand--sm { font-size: 15px; }

.site-nav { display: none; }
.site-head__cta { display: none; }

.navtoggle {
	display: inline-flex;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	padding: 6px 2px;
	cursor: pointer;
}
.navtoggle span {
	width: 22px; height: 1.5px;
	background: var(--ink);
	display: block;
	transition: transform .25s ease, opacity .2s ease;
}
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }

.mobilemenu {
	display: none;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.mobilemenu.is-open { display: block; }
.mobilemenu a {
	display: block;
	padding: 16px var(--pad);
	text-decoration: none;
	color: var(--ink);
	font-size: 16px;
	border-top: 1px solid var(--line);
}
.mobilemenu a:first-child { border-top: 0; }
.mobilemenu__cta { font-weight: 600; }

/* ── shared section rhythm ──────────────────────────────────────────── */
.section { padding-block: 54px; }
.section__title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(26px, 7vw, 30px);
	line-height: 1.2;
	margin-bottom: 26px;
}

/* ── hero ───────────────────────────────────────────────────────────── */
.hero {
	position: relative;
	overflow: hidden;
	background: var(--paper);
}
.hero__media {
	position: absolute; inset: 0;
	background: url("uploads/hero-mobile.webp") center / cover no-repeat;
}
.hero__veil {
	position: absolute; inset: 0;
	background: linear-gradient(
		rgba(250,247,243,.72) 0%,
		rgba(250,247,243,.80) 46%,
		rgba(250,247,243,.94) 76%,
		var(--paper) 100%);
}
.hero__inner { position: relative; padding-block: 64px 48px; }
.hero__title {
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(42px, 13vw, 58px);
	line-height: 1.05;
	letter-spacing: -.6px;
	max-width: 14ch;
	margin-bottom: 22px;
	/* leopard texture shows through the letters, as in the source design */
	background: url("uploads/hero-mobile.webp") center / 300px;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero__lead {
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink-soft);
	max-width: 34ch;
	margin-bottom: 30px;
}

/* ── proof (dark) ───────────────────────────────────────────────────── */
.proof {
	background: var(--ink);
	color: var(--paper);
	padding-block: 54px;
	margin-top: 28px;
}
.proof__title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(24px, 6.5vw, 28px);
	line-height: 1.25;
	margin-bottom: 24px;
}
.proof__grid { display: flex; flex-direction: column; gap: 14px; }
.vid {
	position: relative;
	display: block;
	width: 100%;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	background:
		repeating-linear-gradient(45deg,
			var(--ink-2), var(--ink-2) 9px,
			#34302A 9px, #34302A 18px);
}
.vid--lead { height: 230px; }
.proof__row { display: flex; gap: 12px; }
.proof__row .vid { flex: 1; height: 96px; border-radius: 8px; }
.vid__play {
	position: absolute; top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 60px; height: 60px; border-radius: 50%;
	background: rgba(250,247,243,.95);
}
.vid__play::after {
	content: ""; position: absolute; top: 50%; left: 54%;
	transform: translate(-50%, -50%);
	border-left: 16px solid var(--ink);
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
}
.vid__play--sm { width: 36px; height: 36px; }
.vid__play--sm::after {
	border-left-width: 10px; border-top-width: 6px; border-bottom-width: 6px;
}
.vid__meta {
	position: absolute; left: 16px; right: 16px; bottom: 14px;
	text-align: left;
}
.vid__name { display: block; font-size: 14px; font-weight: 500; }
.vid__role { display: block; font-size: 12px; color: var(--paper-dim); }

/* ── portfolio ──────────────────────────────────────────────────────── */
.work__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.shot { margin: 0; }
.shot__img {
	aspect-ratio: 3 / 4;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		repeating-linear-gradient(45deg,
			#ECE7DF, #ECE7DF 8px, #F4F0EA 8px, #F4F0EA 16px);
}
.shot__img::after {
	content: attr(data-label);
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--ph);
}
.shot figcaption {
	margin-top: 8px;
	font-size: 12px;
	color: var(--muted);
}

/* ── how it works ───────────────────────────────────────────────────── */
.steps { list-style: none; display: flex; flex-direction: column; }
.step {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding-block: 22px;
	border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step__n {
	font-family: var(--serif);
	font-size: 22px;
	color: var(--gold);
	min-width: 28px;
}
.step__body h3 { font-size: 15px; font-weight: 500; margin-bottom: 5px; }
.step__body p { font-size: 13px; line-height: 1.55; color: var(--muted); font-weight: 400; }

/* ── pricing ────────────────────────────────────────────────────────── */
.pricecard {
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	padding: 28px;
}
.pricecard__top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 8px;
}
.pricecard__name { font-size: 18px; font-weight: 500; }
.pricecard__amt { font-family: var(--serif); font-size: 30px; }
.pricecard__desc { font-size: 13px; line-height: 1.6; color: var(--muted); margin-bottom: 18px; }
.pricecard__sub { font-size: 11.5px; color: var(--muted-3); }
.price__fine {
	font-size: 12px; line-height: 1.55;
	color: var(--muted-2);
	margin: 18px 2px 26px;
}

.guarantee {
	margin-top: 46px;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	padding: 28px 24px;
	text-align: center;
}
.guarantee__h { font-family: var(--serif); font-size: 20px; line-height: 1.35; margin-bottom: 8px; }
.guarantee__p { font-size: 13px; line-height: 1.55; color: var(--muted); }

/* ── about ──────────────────────────────────────────────────────────── */
.about__lead {
	font-family: var(--serif);
	font-size: 19px;
	line-height: 1.5;
	margin-top: 14px;
	max-width: 30ch;
}

/* ── faq ────────────────────────────────────────────────────────────── */
.faq__list { display: flex; flex-direction: column; }
.qa {
	border-top: 1px solid var(--line);
	padding-block: 18px;
}
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__mark { color: var(--gold); font-size: 18px; transition: transform .2s ease; }
.qa[open] .qa__mark { transform: rotate(45deg); }
.qa p {
	font-size: 13px;
	line-height: 1.55;
	color: var(--muted);
	margin-top: 10px;
	max-width: 56ch;
}

/* ── final cta ──────────────────────────────────────────────────────── */
.finalcta { text-align: center; padding-block: 60px; }
.finalcta__title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(30px, 8.5vw, 40px);
	line-height: 1.2;
	margin-bottom: 14px;
}
.finalcta__lead { font-size: 14px; line-height: 1.6; color: var(--muted); margin-bottom: 26px; }

/* ── footer ─────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); }
.site-foot__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-block: 28px;
}
.site-foot__copy {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 1px;
	color: var(--muted-3);
}

/* ===========================================================================
   CHECKOUT (build.html)
   =========================================================================== */
.checkout { max-width: 560px; }
.checkout__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 22px;
	border-bottom: 1px solid var(--line);
}
.checkout__secure {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 1px;
	color: var(--muted-3);
	text-transform: uppercase;
}

/* progress rail */
.steps-rail { display: flex; align-items: flex-start; padding-block: 26px 30px; }
.rail-step { display: flex; align-items: center; flex: 1; }
.rail-step:last-child { flex: 0 0 auto; }
.rail-step__dot {
	display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 34px;
}
.rail-step__circle {
	width: 34px; height: 34px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 500;
	background: var(--paper); color: var(--ph);
	border: 1.5px solid #E0D8CB;
	transition: .2s ease;
}
.rail-step__label {
	font-family: var(--mono);
	font-size: 10px; letter-spacing: .5px; text-transform: uppercase;
	color: var(--ph);
	transition: color .2s ease;
}
.rail-step__line {
	flex: 1; height: 1.5px; margin: 0 6px 22px;
	background: #E0D8CB;
	transition: background .2s ease;
}
.rail-step.is-active .rail-step__circle,
.rail-step.is-done .rail-step__circle {
	background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.rail-step.is-active .rail-step__label { color: var(--ink); }
.rail-step.is-done .rail-step__label { color: var(--muted); }
.rail-step.is-done .rail-step__line { background: var(--ink); }

/* checkout panels */
.panel { display: none; padding-bottom: 40px; }
.panel.is-active { display: block; }
.panel__title { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; margin-bottom: 6px; }
.panel__lead { font-size: 14px; line-height: 1.6; color: var(--muted); margin-bottom: 28px; }

.includes {
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	padding: 24px;
	margin-bottom: 20px;
}
.includes__h {
	font-family: var(--mono);
	font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
	color: var(--muted-2);
	margin-bottom: 18px;
}
.includes ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.includes li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.tick {
	width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
	background: var(--ink); color: var(--paper);
	display: flex; align-items: center; justify-content: center; font-size: 10px;
}

.summary {
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 22px;
}
.summary__row {
	display: flex; justify-content: space-between; align-items: center;
	padding: 18px 24px;
}
.summary__row--total {
	padding: 14px 24px;
	border-top: 1px solid #EFE9DF;
	background: var(--paper-2);
	font-weight: 500;
}
.summary__row span:first-child { font-size: 15px; }
.summary__amt { font-family: var(--serif); font-size: 18px; }

.agree {
	display: flex; gap: 12px; align-items: flex-start;
	cursor: pointer; margin-bottom: 22px;
	user-select: none;
}
.agree input { position: absolute; opacity: 0; pointer-events: none; }
.agree__box {
	width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	border: 1.5px solid #D8CFC0; background: #fff;
	color: var(--paper); font-size: 13px;
	transition: .15s ease;
}
.agree input:checked + .agree__box { background: var(--ink); border-color: var(--ink); }
.agree input:checked + .agree__box::after { content: "✓"; }
.agree input:focus-visible + .agree__box { outline: 2px solid var(--ink); outline-offset: 2px; }
.agree__text { font-size: 13px; line-height: 1.5; color: #5C554C; }
.agree__text a { color: var(--ink); text-decoration: underline; }

.pay-note {
	text-align: center;
	font-size: 11px; color: var(--muted-3);
	margin-top: 14px;
}
.pay-lead {
	margin: 0 0 16px;
	padding: 13px 15px;
	border: 1px solid var(--line-2);
	border-radius: 10px;
	background: #fff;
	font-size: 13px; line-height: 1.5;
	color: var(--muted);
}

/* onboarding form */
.field { margin-bottom: 18px; }
.field label {
	display: block;
	font-size: 13px; font-weight: 500;
	margin-bottom: 7px;
}
.field input, .field textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--line-2);
	border-radius: 10px;
	background: #fff;
	font-family: var(--sans);
	font-size: 14px;
	color: var(--ink);
	transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ph); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field__hint { font-size: 12px; color: var(--muted-2); margin-top: 6px; }
.field label .req { color: #B06A52; }
.field label .field__opt { color: var(--muted-3); font-weight: 400; }

.done { text-align: center; padding-block: 30px 10px; }
.done__check {
	width: 64px; height: 64px; border-radius: 50%;
	background: var(--ink); color: var(--paper);
	display: flex; align-items: center; justify-content: center;
	font-size: 28px; margin: 0 auto 22px;
}
.done__title { font-family: var(--serif); font-weight: 400; font-size: 30px; margin-bottom: 10px; }
.done__lead { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 38ch; margin: 0 auto 26px; }

.err {
	background: #FBECE9; border: 1px solid #E7C3BB; color: #8A2A1B;
	font-size: 13px; line-height: 1.5;
	border-radius: 10px; padding: 12px 14px; margin-bottom: 18px;
	display: none;
}
.err.is-shown { display: block; }

/* ===========================================================================
   DESKTOP ENHANCEMENT — the mobile design is canonical; these queries
   open it up into a real wide layout (no floating-phone look).
   =========================================================================== */
@media (min-width: 720px) {
	:root { --pad: 40px; }

	.navtoggle, .mobilemenu { display: none; }
	.site-nav {
		display: flex;
		gap: 30px;
		font-size: 14px;
	}
	.site-nav a { text-decoration: none; color: var(--ink-soft); transition: color .15s; }
	.site-nav a:hover { color: var(--ink); }
	.site-head__cta { display: inline-flex; }
	.site-head__bar { padding-block: 18px; }

	.section { padding-block: 80px; }
	.section__title { margin-bottom: 36px; }

	.hero__inner {
		padding-block: 120px 110px;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}
	.hero__title {
		font-size: clamp(64px, 8vw, 92px);
		background-size: 640px;
	}
	.hero__lead { font-size: 17px; max-width: 42ch; }
	.btn--hero { background-size: 640px; }

	.proof { padding-block: 84px; }
	.proof__grid { flex-direction: row; align-items: stretch; }
	.vid--lead { flex: 2; height: auto; min-height: 320px; }
	.proof__row { flex: 1; flex-direction: column; }
	.proof__row .vid { height: auto; flex: 1; }

	.work__grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }

	.how .wrap, .price .wrap, .faq .wrap, .about .wrap { max-width: 760px; }
	.steps { gap: 4px; }
	.step__n { font-size: 26px; min-width: 40px; }
	.step__body h3 { font-size: 17px; }
	.step__body p { font-size: 14px; }

	.price .wrap { display: flex; flex-direction: column; align-items: stretch; }
	.pricecard { padding: 40px; }
	.pricecard__amt { font-size: 38px; }
	.price__fine { text-align: center; }
	.price .btn--block { width: auto; align-self: center; padding-inline: 56px; }

	.about__lead { font-size: 24px; max-width: 40ch; }
	.finalcta { padding-block: 110px; }

	.checkout { padding-bottom: 20px; }
	.panel__title { font-size: 32px; }
}

@media (min-width: 1024px) {
	.hero__title { font-size: 104px; }
}

/* ── reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}
