/* ============================================================
   HOME — front page
   ============================================================
   Ink manifesto hero with the featured pick card, light guides
   row, warm picks shelf, dark trust band with the category
   index. Chrome (header/footer) styles live in the root
   style.css; this file is the page only.
   Design source: work/design/home/home.html.
   ============================================================ */

:root{
	/* Aqua palette (matches bathroom-cleaning and shop) */
	--bg:        #F4F7F6;
	--bg-warm:   #EDF3F2;
	--bg-sub:    #E2ECEB;
	--card:      #FFFFFF;
	--ink:       #0F2225;
	--ink-2:     #3A4F52;
	--ink-3:     #6B7D80;
	--rule:      #D6DEDE;
	--accent:    #1F6F7A;
	--accent-2:  #6FB4BA;
	--accent-soft:#CDE2E3;

	--serif: 'Newsreader', 'Times New Roman', serif;
	--sans:  'DM Sans', system-ui, sans-serif;
	--mono:  'IBM Plex Mono', ui-monospace, monospace;
}

/* ============================================================
   HERO — ink band, split with the featured pick card
   ============================================================ */
.home-hero{
	background: var(--ink);
	color: var(--bg);
	padding: clamp(56px, 7vw, 96px) 0;
	position: relative;
	overflow: hidden;
}
.home-hero::after{
	content: "";
	position: absolute; inset: 0;
	background: radial-gradient(90% 70% at 85% 110%, color-mix(in oklab, var(--accent) 45%, transparent) 0%, transparent 65%);
	pointer-events: none;
}
.home-hero .wrap-bleed{ position: relative; z-index: 1; }
.hero-grid{
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}
.home-hero h1{
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(42px, 4.8vw, 72px);
	line-height: 1.04;
	letter-spacing: -0.015em;
	margin: 0 0 22px;
}
.home-hero h1 .accent{ color: var(--accent-2); }
.hero-sub{
	color: color-mix(in oklab, var(--bg) 78%, transparent);
	font-size: 18px;
	max-width: 48ch;
	margin: 0 0 32px;
}
.hero-ctas{ display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn{
	display: inline-flex; align-items: center; gap: 8px;
	padding: 13px 24px; border-radius: var(--r-pill);
	font-size: 15px; font-weight: 600;
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-light{ background: var(--bg); color: var(--ink); }
.btn-light:hover{ background: var(--accent-2); color: var(--ink); }
.home-hero .btn-ghost{ border: 1px solid color-mix(in oklab, var(--bg) 40%, transparent); color: var(--bg); }
.home-hero .btn-ghost:hover{ border-color: var(--bg); }
.btn .arrow{ transition: transform .2s ease; }
.btn:hover .arrow{ transform: translateX(3px); }
.hero-disclosure{
	margin: 24px 0 0; font-size: 12px;
	color: color-mix(in oklab, var(--bg) 55%, transparent);
	max-width: 48ch;
}

/* Featured pick card — the bathroom-page hero card, restaged on ink */
.pick-card{
	background: var(--card);
	color: var(--ink);
	border-radius: var(--r-lg);
	padding: 22px;
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.55);
	position: relative;
}
.pick-tag{
	position: absolute; top: -12px; left: 22px;
	background: var(--accent);
	color: #fff;
	font-family: var(--mono);
	font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
	padding: 6px 12px; border-radius: var(--r-pill);
}
/* Square slot, clean card fill, no frame — matches the bathroom
   page's pick card: mixed-ratio product shots contain, never crop. */
.pick-img{
	background: var(--card);
	border-radius: var(--r-md);
	aspect-ratio: 1/1;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
	margin-bottom: 18px;
}
.pick-img img{ width: 100%; height: 100%; object-fit: contain; padding: 6%; box-sizing: border-box; }
.pick-header{
	display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
	margin-bottom: 8px;
}
.pick-title{
	font-family: var(--serif);
	font-size: 24px; font-weight: 500; line-height: 1.15;
}
.pick-price{ font-family: var(--mono); font-size: 15px; white-space: nowrap; }
.pick-desc{ color: var(--ink-2); font-size: 14.5px; margin: 0 0 18px; }
.pick-row{ display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-buy{
	background: var(--ink); color: var(--bg);
	padding: 11px 20px; border-radius: var(--r-pill);
	font-size: 14px; font-weight: 600;
	display: inline-flex; align-items: center; gap: 8px;
	transition: background .15s ease;
}
.btn-buy:hover{ background: var(--accent); color: #fff; }
.btn-buy .arrow{ transition: transform .2s ease; }
.btn-buy:hover .arrow{ transform: translateX(3px); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sec-head{ margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head h2{
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(30px, 3.6vw, 48px);
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0 0 10px;
}
.sec-head .sub{ color: var(--ink-2); font-size: 16px; max-width: 58ch; margin: 0; }

/* ============================================================
   LATEST GUIDES
   ============================================================ */
.guides-grid{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.guide-card{
	display: flex; flex-direction: column;
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: var(--r-md);
	overflow: hidden;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
a.guide-card:hover{
	transform: translateY(-3px);
	border-color: var(--accent);
	box-shadow: 0 10px 30px -10px color-mix(in oklab, var(--accent) 30%, transparent);
}
.gc-img{
	aspect-ratio: 16/10;
	background:
		radial-gradient(circle at 30% 25%, color-mix(in oklab, var(--accent-soft) 70%, white) 0%, transparent 60%),
		var(--bg-warm);
	border-bottom: 1px solid var(--rule);
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
	position: relative;
}
.gc-img img{ width: 100%; height: 100%; object-fit: cover; }
.gc-body{ padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gc-meta{
	font-family: var(--mono);
	font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--ink-3);
}
.gc-meta .cat{ color: var(--accent); }
.gc-title{
	font-family: var(--serif);
	font-size: clamp(24px, 2.2vw, 30px);
	font-weight: 500;
	line-height: 1.12;
	margin: 0;
}
.gc-desc{ color: var(--ink-2); font-size: 14.5px; margin: 0; }
.gc-more{
	margin-top: auto; padding-top: 14px;
	font-size: 13px; font-weight: 600; color: var(--accent);
	display: inline-flex; align-items: center; gap: 6px;
}
.gc-more .arrow{ transition: transform .2s ease; }
a.guide-card:hover .gc-more .arrow{ transform: translateX(3px); }

/* Coming-soon: feature image ghosted back, tag on top */
.guide-card.soon .gc-img img{
	filter: grayscale(60%);
	opacity: 0.35;
}
.soon-tag{
	position: absolute;
	font-family: var(--mono);
	font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--ink);
	background: color-mix(in oklab, var(--card) 88%, transparent);
	border: 1px solid var(--rule);
	padding: 7px 14px; border-radius: var(--r-pill);
}
.guide-card.soon .gc-title{ color: var(--ink-2); }
.guide-card.soon .gc-desc{ color: var(--ink-3); }

/* ============================================================
   EDITORS' PICKS — warm shelf band, fcard grid
   ============================================================ */
.picks{ background: var(--bg-warm); border-top: 1px solid var(--rule); }
.picks-grid{
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.fcard{
	display: flex; flex-direction: column;
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: var(--r-md);
	overflow: hidden;
	position: relative;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.fcard:hover{
	transform: translateY(-3px);
	border-color: var(--accent);
	box-shadow: 0 10px 30px -10px color-mix(in oklab, var(--accent) 30%, transparent);
}
.fcard .img{
	aspect-ratio: 1/1;
	background: var(--card);
	display: flex; align-items: center; justify-content: center;
	border-bottom: 1px solid var(--rule);
	overflow: hidden;
}
.fcard .img img{ width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.fcard .img .ph{
	font-family: var(--mono); font-size: 10px;
	letter-spacing: 0.08em;
	color: var(--ink-2);
	background: color-mix(in oklab, var(--bg) 85%, transparent);
	padding: 5px 9px; border-radius: var(--r-pill);
	text-align: center;
}
.fcard .body{ padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fcard .cat{
	font-family: var(--mono);
	font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--accent);
}
.fcard .title{
	font-family: var(--serif);
	font-size: 21px; line-height: 1.15;
	color: var(--ink); font-weight: 400;
}
.fcard .foot{
	margin-top: auto; padding-top: 14px;
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.fcard .price{ font-family: var(--mono); font-size: 13px; color: var(--ink); }
.fcard .cta{
	background: var(--ink); color: var(--bg);
	padding: 8px 14px; border-radius: var(--r-pill);
	font-size: 12px; font-weight: 600;
	display: inline-flex; align-items: center; gap: 6px;
	transition: background .15s ease, color .15s ease;
}
.fcard:hover .cta{ background: var(--accent); color: #fff; }
.picks-foot{ margin-top: clamp(28px, 4vw, 40px); display: flex; justify-content: center; }
.btn-primary{ background: var(--ink); color: var(--bg); }
.btn-primary:hover{ background: var(--accent); color: #fff; }

/* Shop-all placement: header row on desktop, footer button on mobile */
.picks-head{
	display: flex; justify-content: space-between; align-items: flex-start;
	gap: 24px;
}
.picks-shop-top{ flex-shrink: 0; margin-top: 8px; }
.picks-shop-bottom{ display: none; }
@media (max-width: 980px){
	.picks-shop-top{ display: none; }
	.picks-shop-bottom{ display: inline-flex; }
}

/* ============================================================
   TRUST BAND — ink, icon columns + category index
   ============================================================ */
.trust{
	background: var(--ink);
	color: var(--bg);
}
.trust .sec-head h2{ color: var(--bg); }
.trust-grid{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(24px, 4vw, 56px);
}
.trust-item .material-symbols-outlined{
	font-size: 26px;
	color: var(--accent-2);
	background: color-mix(in oklab, var(--accent) 35%, transparent);
	border-radius: var(--r-pill);
	padding: 12px;
	margin-bottom: 16px;
}
.trust-item h3{
	font-family: var(--serif);
	font-weight: 500;
	font-size: 23px;
	margin: 0 0 8px;
	color: var(--accent-2);
}
.trust-item p{
	color: color-mix(in oklab, var(--bg) 72%, transparent);
	font-size: 15px; margin: 0; max-width: 34ch;
}
.trust-cats{
	margin-top: clamp(40px, 5vw, 64px);
	padding-top: clamp(28px, 4vw, 40px);
	border-top: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
	display: flex; flex-wrap: wrap; gap: 10px;
}
.cat-pill{
	border: 1px solid color-mix(in oklab, var(--bg) 28%, transparent);
	border-radius: var(--r-pill);
	padding: 10px 18px;
	font-size: 14px; font-weight: 500;
	color: color-mix(in oklab, var(--bg) 82%, transparent);
	transition: border-color .15s ease, color .15s ease;
}
.cat-pill:hover{ border-color: var(--bg); color: var(--bg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px){
	.hero-grid{ grid-template-columns: 1fr; }
	.guides-grid{ grid-template-columns: 1fr; }
	.picks-grid{ grid-template-columns: repeat(2, 1fr); }
	.trust-grid{ grid-template-columns: 1fr; gap: 28px; }
}
/* Picks stay 2-up on phones (a 1-col collapse makes the section a
   scroll canyon); the cards tighten instead. */
@media (max-width: 560px){
	.picks-grid{ gap: 10px; }
	.fcard .body{ padding: 12px; gap: 4px; }
	.fcard .title{ font-size: 16px; }
	.fcard .foot{ padding-top: 10px; }
	.fcard .price{ font-size: 12px; }
	.fcard .cta{ padding: 6px 10px; font-size: 11px; }
}

/* ============================================================
   MOTION + FOCUS
   ============================================================ */
/* Anchor jumps glide and land clear of the sticky header */
@media (prefers-reduced-motion: no-preference){
	html{ scroll-behavior: smooth; }
}
#picks, #guides{ scroll-margin-top: 76px; }

/* Keyboard focus */
a:focus-visible, button:focus-visible{
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: var(--r-sm);
}
.home-hero a:focus-visible, .trust a:focus-visible{ outline-color: var(--accent-2); }

/* One authored moment: the hero settles in on load, card a beat behind */
@media (prefers-reduced-motion: no-preference){
	@keyframes hero-settle{
		from{ opacity: 0; transform: translateY(14px); }
		to{ opacity: 1; transform: none; }
	}
	.hero-grid > div{ animation: hero-settle .6s cubic-bezier(0.16, 1, 0.3, 1) both; }
	.hero-grid > .pick-card{ animation: hero-settle .6s cubic-bezier(0.16, 1, 0.3, 1) .12s both; }
}

@media (prefers-reduced-motion: reduce){
	*, *::before, *::after{ transition: none !important; }
}
