/* ==== Home page (loaded on the front page only) ==== */

/* Rhythm */
.site-main > .section { padding-block: var(--space-5); }
@media (min-width: 900px) { .site-main > .section { padding-block: var(--space-6); } }
.section--flush { padding-block: 0 !important; }
body.home .site-main { padding-bottom: 0; }
.section__head--center { display: block; max-width: 40rem; margin: 0 auto var(--space-4); text-align: center; }
.section__head h2 { font-size: var(--text-2xl); }
.section__head .eyebrow { margin-bottom: var(--space-1); }
.section__sub { margin: var(--space-2) 0 0; color: var(--color-muted); }
.eyebrow { font-family: var(--font-body); }

/* Hero */
.hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(60rem 30rem at 85% -10%, var(--color-primary-soft), transparent 60%),
		radial-gradient(40rem 24rem at -10% 110%, var(--color-accent-soft), transparent 60%),
		var(--color-tint);
}
.hero__inner { display: grid; gap: var(--space-5); align-items: center; padding-block: var(--space-5) calc(var(--space-5) + 2.5rem); }
.hero__pill {
	display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: var(--space-3); padding: 0.35rem 0.9rem 0.35rem 0.7rem;
	background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-pill);
	font-size: var(--text-sm); font-weight: 600; color: var(--color-accent);
}
.hero__pill .icon { width: 1.1rem; height: 1.1rem; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem); line-height: 1.02; letter-spacing: -0.01em; margin-bottom: var(--space-3); }
.hero h1 em { font-style: normal; color: var(--color-brand-orange); }
.hero__lead { font-size: var(--text-lg); color: var(--color-muted); max-width: 32rem; margin-bottom: var(--space-4); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
@media (max-width: 479px) { .hero__cta .btn { flex: 1 1 100%; justify-content: center; } }
.btn--lg { min-height: 52px; padding: 0.8rem 1.75rem; font-size: var(--text-lg); }
.hero .btn--outline { background: var(--color-surface); }
.hero__proof { display: flex; align-items: center; gap: 0.75rem; margin: 0; font-size: var(--text-sm); color: var(--color-muted); }
.hero__proof strong { color: var(--color-text); }
.hero__proof-link { display: inline-flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; }
.hero__proof-link > .icon { width: 1rem; height: 1rem; flex: none; transition: transform 0.15s ease; }
.hero__proof-link:hover span:not(.hero__stars) { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.hero__proof-link:hover > .icon { transform: translateX(3px); color: var(--color-primary); }
@media (prefers-reduced-motion: reduce) { .hero__proof-link > .icon { transition: none; } }
.hero__stars { display: inline-flex; color: var(--color-gold); }
.hero__stars .icon { width: 1.05rem; height: 1.05rem; fill: currentColor; }

.hero__art { position: relative; max-width: 560px; margin-inline: auto; width: 100%; padding-bottom: 2.5rem; }
.hero__bg { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__bg--photo { aspect-ratio: 7 / 6; object-fit: cover; }
.hero__products { position: absolute; left: -0.5rem; bottom: 0; display: grid; width: min(23rem, 94%); }
.hero__product {
	display: flex; align-items: center; gap: var(--space-3);
	padding: 0.6rem 1rem 0.6rem 0.6rem;
	background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); text-decoration: none; color: var(--color-text);
	transition: transform 0.2s;
}
.hero__product:hover { transform: translateY(-3px); color: var(--color-text); }
/* Slides share one grid cell so the card keeps the height of the tallest; only the active one is visible. */
.hero__slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity 0.4s, visibility 0.4s, transform 0.2s; }
.hero__slide.is-active { visibility: visible; opacity: 1; }
.hero__products:not([data-hero-slides]) .hero__slide { visibility: visible; opacity: 1; }
.hero__controls { position: absolute; top: calc(100% + 0.25rem); right: 0; left: 0; display: flex; align-items: center; width: fit-content; margin-inline: auto; }
.hero__ctrl { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; background: transparent; border: 0; border-radius: 50%; color: var(--color-muted); cursor: pointer; }
.hero__prev, .hero__next, .hero__toggle { opacity: 0.65; transition: opacity 0.2s; }
.hero__controls:hover .hero__ctrl, .hero__controls:focus-within .hero__ctrl, .hero__products:hover .hero__ctrl { opacity: 1; }
.hero__ctrl:hover { color: var(--color-text); }
.hero__ctrl svg { width: 0.75rem; height: 0.75rem; fill: none; stroke: currentcolor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hero__dot::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--color-muted); opacity: 0.5; transition: opacity 0.2s, transform 0.2s; }
.hero__dot[aria-current="true"]::before { opacity: 0.9; transform: scale(1.2); }
.hero__product-media { flex: none; width: 4.5rem; height: 4.5rem; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-tint); }
.hero__product-media img { width: 100%; height: 100%; object-fit: cover; }
.hero__product-info { display: grid; gap: 0.1rem; min-width: 0; flex: 1; line-height: 1.3; }
.hero__product-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-sale); }
.hero__product-name { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero__product-price { font-size: var(--text-sm); color: var(--color-muted); }
.hero__product-price ins { color: var(--color-sale); font-weight: 700; text-decoration: none; }
.hero__product-go { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--color-primary); color: #fff; }
.hero__product-go .icon { width: 1rem; height: 1rem; }
.hero__chip {
	position: absolute; top: 1rem; right: -0.5rem; display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.55rem 0.95rem;
	background: var(--color-surface); border-radius: var(--radius-pill); box-shadow: var(--shadow); font-size: var(--text-sm); font-weight: 700;
}
.hero__chip .icon { color: var(--color-accent); width: 1.1rem; height: 1.1rem; }
@media (min-width: 900px) {
	.hero__inner { grid-template-columns: 1.05fr 1fr; padding-block: var(--space-6) calc(var(--space-6) + 1.5rem); }
	.hero__products { left: -2.5rem; }
	.hero__chip { right: -1.5rem; top: 2rem; }
}

/* Trust card overlapping the hero */
.trust { position: relative; z-index: 2; margin-top: -3rem; }
.trust__list {
	list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); padding: var(--space-3);
	background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.trust__list li { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; font-size: var(--text-sm); line-height: 1.35; }
.trust__list .icon { flex: none; box-sizing: content-box; width: 1.35rem; height: 1.35rem; padding: 0.6rem; border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent); }
.trust__list strong { display: block; font-size: var(--text-base); }
.section__head .link-arrow { flex: none; white-space: nowrap; }
@media (min-width: 900px) {
	.trust__list { grid-template-columns: repeat(4, 1fr); padding: var(--space-4); gap: var(--space-4); }
	.trust__list li { flex-direction: row; align-items: center; gap: 0.75rem; }
	.trust__list li + li { padding-left: var(--space-4); border-left: 1px solid var(--color-border); }
}

/* Categories */
/* Phones: one swipeable row (a 2-column grid left an orphan tile with 5 categories); the next tile peeks to show there is more. */
.category-grid {
	list-style: none; display: flex; gap: var(--space-3);
	margin-inline: calc(var(--gutter) * -1); padding: var(--space-2) var(--gutter); scroll-padding-inline: var(--gutter);
	overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.category-grid::-webkit-scrollbar { display: none; }
.category-tile { flex: 0 0 min(46%, 11rem); scroll-snap-align: start; }
@media (min-width: 700px) {
	.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: var(--space-4); margin-inline: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
	.category-tile { flex: none; }
}
.category-tile a {
	display: grid; justify-items: center; gap: 0.15rem; padding: var(--space-3) var(--space-3) var(--space-3); height: 100%;
	text-align: center; text-decoration: none; color: var(--color-text);
	background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.category-tile a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--color-primary-soft); color: var(--color-text); }
.category-tile__media { display: grid; place-items: center; width: 100%; aspect-ratio: 1; margin-bottom: var(--space-2); border-radius: var(--radius); overflow: hidden; background: var(--color-primary-soft); color: var(--color-primary); }
.category-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.category-tile a:hover .category-tile__media img { transform: scale(1.06); }
.category-tile__name { font: 800 var(--text-lg)/1.2 var(--font-heading); }
.category-tile__count { font-size: var(--text-sm); color: var(--color-muted); }
.category-tile--1 .category-tile__media { background: var(--color-accent-soft); }
.category-tile--3 .category-tile__media { background: #f4e6ff; }

/* Product tabs */
.tabs__list { display: none; justify-content: center; gap: 0.25rem; width: fit-content; max-width: 100%; margin: 0 auto var(--space-4); padding: 0.3rem; overflow-x: auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-pill); }
.is-tabs .tabs__list { display: flex; }
.tabs__tab { flex: none; min-height: 44px; padding: 0.5rem 1.25rem; background: transparent; border: 0; border-radius: var(--radius-pill); font: 600 var(--text-base)/1 var(--font-body); color: var(--color-muted); cursor: pointer; transition: background 0.15s, color 0.15s; }
.tabs__tab:hover { color: var(--color-text); }
.tabs__tab[aria-selected="true"] { background: var(--color-ink); color: #fff; }
.tabs__panel[hidden] { display: none; }
.tabs__panel + .tabs__panel { margin-top: var(--space-5); }
.is-tabs .tabs__panel + .tabs__panel { margin-top: 0; }
.tabs__more { margin: 0; text-align: center; }

/* Promo banners */
.promos { display: grid; gap: var(--space-3); }
.promo {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 12rem; padding: var(--space-4);
	overflow: hidden; border-radius: var(--radius-lg); color: #fff; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: #fff; }
.promo--sale { background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary)); }
.promo--new { background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent)); }
.promo::before { content: ""; position: absolute; width: 16rem; height: 16rem; right: -5rem; bottom: -7rem; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.promo__text { position: relative; display: grid; gap: 0.35rem; justify-items: start; }
.promo__eyebrow { font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.promo__title { font: 800 var(--text-xl)/1.15 var(--font-heading); max-width: 16rem; }
.promo__link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: var(--space-2); padding: 0.5rem 1rem; background: #fff; color: var(--color-ink); border-radius: var(--radius-pill); font-weight: 700; font-size: var(--text-sm); }
.promo__link .icon { width: 1rem; height: 1rem; }
.promo > .icon { position: relative; flex: none; width: 5.5rem; height: 5.5rem; opacity: 0.35; stroke-width: 1.25; }
@media (min-width: 800px) { .promos { grid-template-columns: 1fr 1fr; } .promo { min-height: 15rem; padding: var(--space-5); } .promo > .icon { width: 8rem; height: 8rem; } }

/* Why us (dark band) */
.why { background: var(--color-ink); color: var(--color-footer-text); }
.why__inner { display: grid; gap: var(--space-5); }
.why h2, .why h3 { color: #fff; }
.why h2 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.why .eyebrow { color: var(--color-footer-heading); }
.why__head p:last-child { max-width: 30rem; margin: 0; }
.why__grid { list-style: none; display: grid; gap: var(--space-4) var(--space-4); }
.why__icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: var(--space-2); border-radius: var(--radius); background: rgba(255, 255, 255, 0.08); color: var(--color-footer-heading); }
.why__item h3 { font-size: var(--text-lg); margin-bottom: 0.25rem; }
.why__item p { margin: 0; font-size: var(--text-sm); }
@media (min-width: 640px) { .why__grid { grid-template-columns: 1fr 1fr; } }

/* Phones: swipeable rows for the why-us cards and the journal posts (the next card peeks). */
@media (max-width: 639px) {
	.why__grid, .home .post-grid {
		display: flex; gap: var(--space-3); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
		overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
	}
	.why__grid::-webkit-scrollbar, .home .post-grid::-webkit-scrollbar { display: none; }
	.why__item { flex: 0 0 74%; scroll-snap-align: start; padding: var(--space-4); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-lg); }
	.home .post-grid { padding-block: var(--space-1); }
	.home .post-grid > .post-card { flex: 0 0 82%; scroll-snap-align: start; }
}

/* Journal carousel: same arrows as the reviews one. Swipe row on phones, 2 cards from 640px, 3 from 1000px. */
.journal-carousel { margin-bottom: var(--space-5); }
.journal-carousel .post-grid { margin-bottom: 0; }
.journal-carousel .reviews-nav { display: none; }
@media (min-width: 640px) {
	.journal-carousel .post-grid {
		display: flex; gap: var(--space-4); margin-inline: 0; padding: var(--space-1) 0; scroll-padding-inline: 0;
		overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
	}
	.journal-carousel .post-grid::-webkit-scrollbar { display: none; }
	.journal-carousel .post-grid > .post-card { flex: 0 0 calc((100% - var(--space-4)) / 2); scroll-snap-align: start; }
	.journal-carousel .reviews-nav { display: block; }
}
@media (min-width: 1000px) {
	.journal-carousel .post-grid > .post-card { flex-basis: calc((100% - 2 * var(--space-4)) / 3); }
}
@media (min-width: 1000px) { .why__inner { grid-template-columns: 0.9fr 1.3fr; align-items: center; } }

/* Section heads with a link on the right */
.section__head { margin-bottom: var(--space-4); }
.section__head--center { margin-bottom: var(--space-4); }

/* FAQ */
.faq-home { display: grid; gap: var(--space-4); }
.faq-home__head h2 { font-size: var(--text-2xl); }
.faq-home__head p:not(.eyebrow) { color: var(--color-muted); }
.faq-home__list { display: grid; gap: var(--space-2); align-content: start; }
@media (min-width: 900px) { .faq-home { grid-template-columns: 0.8fr 1.2fr; gap: var(--space-6); } }
.site-main > .section--compact { padding-block: var(--space-4) 0; }

/* Scroll-in reveal (script adds .reveal only to sections below the fold, and never with reduced motion) */
.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Newsletter */
.newsletter {
	position: relative; display: grid; gap: var(--space-3); align-items: center; padding: var(--space-4); overflow: hidden;
	background: var(--color-primary-soft); border-radius: var(--radius-lg);
}
.newsletter::after { content: ""; position: absolute; width: 14rem; height: 14rem; right: -4rem; top: -6rem; border-radius: 50%; background: rgba(255, 255, 255, 0.45); pointer-events: none; }
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 { font-size: var(--text-xl); margin-bottom: 0.25rem; }
.newsletter p { margin: 0; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.newsletter__form input[type="email"] { flex: 1 1 14rem; min-height: 52px; padding: 0 1.25rem; border: 1.5px solid transparent; border-radius: var(--radius-pill); background: var(--color-surface); font: inherit; color: var(--color-text); }
.newsletter__form .btn { min-height: 52px; padding-inline: 1.75rem; }
@media (max-width: 559px) { .newsletter__form .btn { flex: 1 1 100%; } }
.newsletter__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.newsletter__msg { grid-column: 1 / -1; font-weight: 600; }
.newsletter__msg--ok { color: var(--color-accent-dark); }
.newsletter__msg--invalid, .newsletter__msg--error, .newsletter__msg--throttled { color: var(--color-primary-dark); }
@media (min-width: 800px) { .newsletter { grid-template-columns: 1fr 1.1fr; padding: var(--space-5); } }

@media (prefers-reduced-motion: reduce) {
	.hero__product, .hero__slide, .hero__dot::before, .category-tile a, .category-tile__media img, .promo, .tabs__tab { transition: none; }
	.hero__product:hover, .category-tile a:hover, .promo:hover { transform: none; }
	.category-tile a:hover .category-tile__media img { transform: none; }
}

/* Reviews carousel: a scroll-snap row (swipe on touch, arrows from home.js on wider screens). Phones show one card with the next peeking, tablets two, desktop three per slide. */
.reviews-grid--home {
	display: flex; gap: var(--space-3); margin-inline: calc(var(--gutter) * -1); padding: var(--space-1) var(--gutter); scroll-padding-inline: var(--gutter);
	overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.reviews-grid--home::-webkit-scrollbar { display: none; }
.reviews-grid--home > .review-card { flex: 0 0 84%; scroll-snap-align: start; }
.reviews-nav { display: none; }
.reviews-carousel { position: relative; }
@media (min-width: 560px) {
	.reviews-grid--home { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; gap: var(--space-4); }
	.reviews-grid--home > .review-card { flex-basis: calc((100% - var(--space-4)) / 2); }
	.reviews-nav { display: block; }
}
@media (min-width: 800px) {
	.reviews-grid--home > .review-card { flex-basis: calc((100% - 2 * var(--space-4)) / 3); }
}
/* Side arrows sit centred on the card row, half over its outer edge */
.reviews-nav__btn { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; padding: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 50%; box-shadow: var(--shadow-sm, 0 1px 4px rgba(0, 0, 0, 0.12)); color: var(--color-text); cursor: pointer; }
.reviews-nav__btn:first-child { left: -1rem; }
.reviews-nav__btn:last-child { right: -1rem; }
.reviews-nav__btn:hover:not(:disabled) { background: var(--color-surface); border-color: var(--color-primary); }
.reviews-nav__btn:disabled { opacity: 0.4; cursor: default; }
.reviews-nav__btn svg { width: 0.9rem; height: 0.9rem; fill: none; stroke: currentcolor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { 