/* Home page. Owner: home area. Mobile first (base = phones; 640 / 860 / 1080 / 1180 add the larger layouts).
   Structure: SPEC.md "Home page"; look: Figma (Landing 32729:1055 / 32739:1985). */

/* ---------- Rhythm: one --section-y gap between sections ---------- */
.home-sec { padding-top: var(--section-y); }

/* ---------- Shared section heading ---------- */
.home-head { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 32px; text-align: center; }
.home-head--start { align-items: flex-start; margin-bottom: 0; text-align: start; }
.home-kicker {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
	border-radius: var(--r-tag); background: var(--wash-accent); color: var(--accent-d);
	font: 500 12px/1.2 var(--font-text); letter-spacing: .14em; text-transform: uppercase;
}
.home-kicker__icon { width: 12px; height: 12px; flex: none; }
/* Display headings wrap here, so they get a looser line-height than base.css (.86–.9 makes wrapped lines collide). */
.home-h2 { font: 500 38px/1 var(--font-display); letter-spacing: -.045em; text-wrap: balance; }
.home-h2__star { color: var(--accent); }
.home-head__lead { max-width: 620px; margin: 0; color: var(--ink-70); font-size: 16px; line-height: 1.45; }
@media (min-width: 860px) {
	.home-head { margin-bottom: 48px; }
	.home-head--start { margin-bottom: 0; }
	.home-h2 { font-size: clamp(42px, 4.2vw, 58px); line-height: .96; letter-spacing: -.05em; }
	.home-head__lead { font-size: 18px; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	background: linear-gradient(172deg, var(--hero-bot) 38%, var(--hero-top) 100%);
	color: var(--paper);
}
.hero__inner {
	display: flex; flex-direction: column; gap: 40px;
	width: var(--wrap); margin-inline: auto;
	padding: calc(var(--header-h, 56px) + 28px) 0 40px;
}
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }

.hero__status {
	display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 9px 14px;
	border-radius: var(--r-pill);
	background: color-mix(in srgb, var(--paper) 8%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paper) 14%, transparent);
	color: var(--on-dark); font: 500 13px/1.2 var(--font-text);
}
.hero__pulse {
	position: relative; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--mint);
	animation: home-pulse 2.6s ease-out infinite;
}
@keyframes home-pulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mint) 70%, transparent); }
	70%, 100% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--mint) 0%, transparent); }
}

.hero__title { font: 400 42px/.98 var(--font-display); letter-spacing: -.05em; text-wrap: balance; }
.hero__title-grad {
	display: block; background: var(--grad-text-dark); -webkit-background-clip: text; background-clip: text; color: transparent;
	padding-bottom: .06em; /* keeps descenders inside the clipped background */
}
.hero__lead { max-width: 46ch; margin: 0; color: var(--on-dark); font-size: 16px; line-height: 1.45; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.hero__ctas .btn { flex: 1 1 auto; min-height: 48px; padding-inline: 24px; }

.hero__proof {
	display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 4px 0 0; padding: 20px 0 0; list-style: none;
	border-top: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
}
.hero__proof li { display: flex; align-items: center; gap: 10px; color: var(--paper); font-size: 14px; line-height: 1.3; }
.hero__proof-icon { width: 18px; height: 18px; flex: none; color: var(--accent); }

@media (min-width: 640px) {
	.hero__title { font-size: 56px; }
	.hero__lead { font-size: 18px; }
	.hero__ctas { width: auto; }
	.hero__ctas .btn { flex: none; padding-inline: 32px; }
	.hero__proof { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }
}

@media (min-width: 1080px) {
	.hero {
		display: flex; align-items: center;
		min-height: clamp(640px, calc(100svh - var(--strip-h, 32px)), 780px);
		background: linear-gradient(100deg, var(--hero-bot) 40%, var(--hero-top) 100%);
	}
	.hero__inner {
		display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 44px;
		padding: calc(var(--header-h, 76px) + 32px) 0 56px;
	}
	.hero__text { gap: 24px; }
	.hero__title { font-size: clamp(56px, 5.2vw, 78px); line-height: .96; }
}

/* ---------- Product stage (hero + final CTA): three renders on white tiles, overlapping ---------- */
.stage { position: relative; isolation: isolate; width: 100%; max-width: 520px; aspect-ratio: 10 / 9; margin-inline: auto; }
.stage__glow {
	position: absolute; inset: -12% -18%; z-index: -2;
	background: var(--glow-dark); filter: blur(14px); pointer-events: none;
}
.stage__star { position: absolute; left: 14%; top: 4%; z-index: -1; width: 72%; height: auto; opacity: .1; }
.stage__item {
	position: absolute; display: block; overflow: hidden;
	border-radius: var(--r-card); background: var(--grad-tile);
	box-shadow: 0 0 0 1px var(--line-dark), var(--sh-ink), var(--sh-lg);
}
.stage__img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.stage__item--1 { z-index: 3; left: 25%; top: 10%; width: 50%; }
.stage__item--2 { z-index: 2; left: 1%; top: 32%; width: 38%; transform: rotate(-6deg); }
.stage__item--3 { z-index: 1; right: 1%; top: 26%; width: 38%; transform: rotate(6deg); }
/* Hero tiles link to their product (owner, 8 Nov) */
a.stage__item { transition: translate .3s var(--ease); }
a.stage__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) { a.stage__item:hover { translate: 0 -6px; } }

.stage__badge {
	position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
	padding: 8px 14px 8px 8px; border-radius: var(--r-md);
	background: var(--paper); color: var(--ink); box-shadow: var(--sh-lg);
	animation: home-bob 7s ease-in-out infinite;
}
.stage__badge--1 { left: 0; top: 0; }
.stage__badge--2 { right: 0; bottom: 2%; animation-duration: 8.4s; animation-delay: -3s; }
.stage__badge--3 { left: 0; bottom: 24%; animation-duration: 7.7s; animation-delay: -5s; }
.stage__badge-icon {
	display: grid; place-items: center; width: 34px; height: 34px; flex: none;
	border-radius: 10px; background: var(--wash-accent); color: var(--accent-d);
}
.stage__badge-icon svg { width: 18px; height: 18px; }
.stage__badge-text { display: flex; flex-direction: column; gap: 2px; }
.stage__badge-text strong { font: 500 13px/1.2 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.stage__badge-text small { color: var(--ink-70); font-size: 11px; line-height: 1.2; white-space: nowrap; }
/* the sub line as a link (hero: lot report → /check/); the padding widens the tap area without moving the text */
.stage__badge-link { display: inline-block; margin: -8px -6px; padding: 8px 6px; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@keyframes home-bob { 50% { transform: translateY(-6px); } }

@media (min-width: 640px) {
	.stage__badge { padding-inline-end: 16px; }
	.stage__badge-text strong { font-size: 15px; }
	.stage__badge-text small { font-size: 12px; }
}
@media (min-width: 1080px) {
	.hero__stage { max-width: 560px; }
	.stage__badge--1 { left: -4%; }
}

/* ---------- Product-name rail ---------- */
.rail {
	position: relative; overflow: hidden; padding-block: 12px;
	-webkit-mask-image: linear-gradient(90deg, transparent, var(--ink) 8%, var(--ink) 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, var(--ink) 8%, var(--ink) 92%, transparent);
}
.rail__track { display: flex; width: max-content; animation: home-rail 42s linear infinite; }
.rail:hover .rail__track, .rail:focus-within .rail__track { animation-play-state: paused; }
.rail__list { display: flex; gap: 10px; margin: 0; padding: 0 10px 0 0; list-style: none; }
.rail__chip {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
	border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper); color: var(--ink);
	font: 500 13px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; text-decoration: none;
	transition: border-color .2s, color .2s;
}
.rail__chip:hover { border-color: var(--orange-200); color: var(--accent-d); }
@keyframes home-rail { to { transform: translateX(-50%); } }
@media (min-width: 1080px) { .rail { margin-top: 16px; } }
@media (prefers-reduced-motion: reduce) {
	.rail { overflow-x: auto; scrollbar-width: none; }
	.rail__list[aria-hidden="true"] { display: none; }
	.stage__badge, .hero__pulse { animation: none; }
}

/* ---------- Bestsellers carousel ---------- */
.home-best__head { display: flex; flex-direction: column; gap: 24px; margin-bottom: 24px; }
.home-best__actions { display: none; }
.home-best__arrow {
	display: grid; place-items: center; width: 48px; height: 48px; flex: none; padding: 0;
	border: 1px solid var(--line-2); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer;
	transition: border-color .2s, background-color .2s, color .2s, opacity .2s;
}
.home-best__arrow:hover:not(:disabled) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.home-best__arrow:disabled { opacity: .35; cursor: default; }
.home-best__arrow-icon { width: 18px; height: 18px; }
.home-best__arrow-icon--prev { transform: rotate(180deg); }

/* The row spans the section (no 100vw, so no scrollbar overflow) and is padded to the content edge:
   the next card peeks in from the right. Vertical padding leaves room for the card lift + shadow. */
.home-best__track {
	--edge: calc((100% - var(--wrap)) / 2);
	display: flex; gap: 12px; margin: -12px 0 -40px; padding: 12px var(--edge) 40px;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--edge); scrollbar-width: none; list-style: none;
}
.home-best__track::-webkit-scrollbar { display: none; }
.home-best__track:focus-visible { outline-offset: -2px; }
.home-best__item { flex: 0 0 66%; min-width: 0; scroll-snap-align: start; }
.home-best__foot { display: flex; justify-content: center; margin-top: 24px; }

@media (min-width: 640px) {
	.home-best__item { flex-basis: 44%; }
}
@media (min-width: 860px) {
	.home-best__head { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
	.home-best__actions { display: flex; align-items: center; gap: 10px; flex: none; }
	.home-best__all { margin-inline-start: 8px; }
	.home-best__foot { display: none; }
	.home-best__item { flex-basis: calc((100% - 2 * 16px) / 3); }
	.home-best__track { gap: 16px; }
}
@media (min-width: 1180px) {
	.home-best__track { gap: 20px; }
	.home-best__item { flex-basis: calc((100% - 3 * 20px) / 4); }
}

/* ---------- Lab testing: dark card + test tiles ---------- */
.trust__card {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column; gap: 32px;
	padding: 32px 16px 16px; border-radius: var(--r-card); background: var(--ink); color: var(--paper);
}
.trust__card::before {
	content: ""; position: absolute; z-index: -1; top: -30%; right: -40%;
	width: min(560px, 120vw); aspect-ratio: 1; background: var(--glow-dark); opacity: .55; pointer-events: none;
}
.trust__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-inline: 8px; }
.trust__text .tag { white-space: normal; }
.trust__title { font: 500 32px/1 var(--font-display); letter-spacing: -.04em; }
.trust__lead { margin: 0; color: var(--on-dark); font-size: 16px; line-height: 1.45; }
.trust__bullets { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.trust__bullets li { position: relative; padding-inline-start: 17px; font-size: 16px; line-height: 1.35; }
.trust__bullets li::before {
	content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.trust__tiles-title { margin: 0 0 12px; padding-inline: 8px; color: var(--paper); font: 500 16px/1.2 var(--font-text); letter-spacing: 0; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.tile {
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; padding: 16px;
	border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); color: var(--ink);
}
/* .tile__icon is an .icon-circle (base.css) */
.tile--2 .tile__icon { background: var(--orange-200); }
.tile--3 .tile__icon { background: var(--orange-300); }
.tile--4 .tile__icon { background: var(--orange-400); }
.tile__title { font: 500 16px/1.2 var(--font-text); overflow-wrap: anywhere; }
.tile__sub { color: var(--ink-70); font-size: 13px; line-height: 1.3; }

.tile--wide { grid-column: 1 / -1; padding: 0; transition: border-color .2s; }
.tile--wide .tile__icon { background: var(--accent); color: var(--paper); }
.tile__link {
	display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px;
	color: inherit; text-decoration: none; border-radius: inherit;
}
.tile__link:hover { color: inherit; }
.tile__body { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.tile__arrow { width: 20px; height: 20px; flex: none; color: var(--accent-d); transition: transform .3s var(--ease); }
.tile--wide:hover { border-color: var(--orange-200); }
.tile--wide:hover .tile__arrow { transform: translateX(4px); }

@media (min-width: 640px) {
	.trust__card { padding: 48px 32px 32px; }
	.trust__title { font-size: 40px; }
	.trust__lead { font-size: 18px; }
	.tile, .tile__link { padding: 20px; }
	.tile--wide { padding: 0; }
	.tile__title { font-size: 18px; }
	.tile__sub { font-size: 14px; }
}
@media (min-width: 1080px) {
	.trust__card {
		display: grid; grid-template-columns: minmax(0, 528fr) minmax(0, 560fr); align-items: center; gap: 64px; padding: 64px;
	}
	.trust__card::before { top: -50%; right: -20%; }
	.trust__text, .trust__tiles-title { padding-inline: 0; }
	.trust__title { font-size: 48px; line-height: .98; letter-spacing: -.05em; }
	.tiles { gap: 12px; }
}

/* ---------- Verify CTA (32729:1761 / 32739:2544) ---------- */
.home-vfy__card {
	display: flex; flex-direction: column; align-items: center; gap: 24px;
	padding: 28px 20px; border-radius: var(--r-card); background: var(--ink); color: var(--paper); text-align: center;
}
.home-vfy__text { display: contents; }
.home-vfy__title { font: 500 30px/1 var(--font-display); letter-spacing: -.04em; }
.home-vfy__lead { margin: 0; color: var(--on-dark); font-size: 15px; line-height: 1.45; }
.home-vfy__link {
	order: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
	font-size: 14px; font-weight: 500; line-height: 1.2;
	text-decoration: underline var(--accent) 1.5px; text-underline-offset: 4px;
}
.home-vfy__link:hover { color: var(--paper); }
.home-vfy__arrow { flex: none; width: 14px; height: 14px; }
.home-vfy__form { display: flex; flex-direction: column; gap: 16px; width: 100%; text-align: start; }
.home-vfy__field { display: flex; flex-direction: column; gap: 8px; }
.home-vfy__label { font-size: 14px; line-height: 1.2; }
.home-vfy__input {
	width: 100%; min-height: 48px; padding: 12px; border: 1px solid transparent; border-radius: 6px;
	background: var(--ink-80); color: var(--paper); font-size: 16px; line-height: 1.3; letter-spacing: .02em;
	text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.home-vfy__input::placeholder { color: var(--on-dark); opacity: 1; text-transform: none; letter-spacing: 0; }
.home-vfy__input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.home-vfy__btn { width: 100%; min-height: 48px; }

@media (min-width: 640px) {
	.home-vfy__card { padding: 40px; }
	.home-vfy__lead { max-width: 520px; }
	.home-vfy__form { flex-direction: row; align-items: flex-end; gap: 12px; }
	.home-vfy__field { flex: 1; min-width: 0; }
	.home-vfy__btn { width: auto; }
}
@media (min-width: 860px) {
	.home-vfy__card { flex-direction: row; gap: 48px; padding: 48px; text-align: start; }
	.home-vfy__text { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }
	.home-vfy__title { font-size: 42px; line-height: .98; letter-spacing: -.05em; }
	.home-vfy__lead { font-size: 18px; }
	.home-vfy__link { min-height: 0; padding-block: 4px; }
	.home-vfy__form { flex: 1; }
}
@media (min-width: 1080px) {
	.home-vfy__card { gap: 80px; padding: 64px; }
	.home-vfy__form { flex: 0 1 560px; }
}

/* ---------- FAQ (32729:1790 / 32739:2573) ---------- */
.home-faq__inner { display: flex; flex-direction: column; gap: 28px; }
.home-faq__title { text-align: center; }
.home-faq__all { align-self: center; }

@media (min-width: 1080px) {
	.home-faq__inner {
		display: grid; grid-template-columns: minmax(0, 462fr) minmax(0, 738fr); grid-template-rows: auto 1fr;
		gap: 32px 80px; align-items: start;
	}
	.home-faq__title { grid-column: 1; grid-row: 1; text-align: start; }
	.home-faq__list { grid-column: 2; grid-row: 1 / span 2; }
	.home-faq__all { grid-column: 1; grid-row: 2; align-self: start; justify-self: start; }
}

/* ---------- Final CTA (spec "Final CTA") ---------- */
.home-cta { padding-bottom: var(--section-y); }
.home-cta__panel {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column; gap: 24px;
	padding: 36px 20px 28px; border-radius: var(--r-xl); background: var(--ink); color: var(--paper);
	box-shadow: var(--sh-lg);
}
.home-cta__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 600px; }
.home-cta__title { font: 500 34px/1 var(--font-display); letter-spacing: -.045em; }
.home-cta__lead { margin: 0; color: var(--on-dark); font-size: 16px; line-height: 1.45; }
.home-cta__note { margin: 0; color: var(--ink-50); font-size: 12px; line-height: 1.3; }
.home-cta__stage { max-width: 340px; aspect-ratio: 10 / 6.4; } /* no badges here, so a shorter stage */
.home-cta__stage .stage__item--1 { top: 2%; }
.home-cta__stage .stage__item--2 { top: 24%; }
.home-cta__stage .stage__item--3 { top: 18%; }

@media (min-width: 640px) {
	.home-cta__panel { padding: 48px 40px 40px; }
}
@media (min-width: 860px) {
	.home-cta__panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 40px; padding: 64px; }
	.home-cta__title { font-size: clamp(38px, 4.2vw, 54px); line-height: .98; letter-spacing: -.05em; }
	.home-cta__stage { max-width: 440px; }
}

/* ---------- Customer reviews ---------- */
.home-rev__track {
	--edge: calc((100% - var(--wrap)) / 2);
	display: flex; gap: 12px; margin: 0; padding: 0 var(--edge);
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--edge); scrollbar-width: none; list-style: none;
}
.home-rev__track::-webkit-scrollbar { display: none; }
.home-rev__track:focus-visible { outline-offset: -2px; }
.home-rev__item { display: flex; flex: 0 0 84%; min-width: 0; scroll-snap-align: start; }
.home-rev__card {
	position: relative;
	display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; padding: 20px;
	border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper);
}
.home-rev__text { flex: 1; margin: 0; color: var(--ink); font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.home-rev__by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; }
.home-rev__name { font: 500 16px/1.2 var(--font-display); letter-spacing: -.02em; }
.home-rev__product {
	display: flex; align-items: center; gap: 10px; align-self: stretch; min-height: 44px; padding-top: 12px;
	border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; line-height: 1.3; text-decoration: none;
}
.home-rev__product:hover { color: var(--accent-d); }
.home-rev__thumb { flex: none; width: 44px; height: 44px; overflow: hidden; border-radius: var(--r-img); background: var(--wash); }
.home-rev__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-rev__product-name { flex: 1; min-width: 0; }
.home-rev__arrow { flex: none; width: 16px; height: 16px; }

@media (min-width: 640px) {
	.home-rev__item { flex-basis: 46%; }
}
@media (min-width: 860px) {
	.home-rev__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: var(--wrap); margin-inline: auto; padding: 0; overflow: visible; }
	.home-rev__card { padding: 24px; }
	.home-rev__text { font-size: 18px; }
}
