/*
 * Home page sections: the colour row, the generators strip, the browse links
 * and the copy block.
 *
 * Loaded by [gradients_app] only. Card, grid, pill and pagination styles come
 * from core.css, which this sits on top of and does not contradict.
 */

/* ─── Home hero specifics ──────────────────────────────────
 * The shared hero shell, mesh and header-inside layout are in hero.css (all
 * hero pages). What is here is only the home page's own: the full first
 * screen, the "New" eyebrow, the two-tone headline and the brand strip.
 */
.home .ga-hero { min-height: min(860px, calc(100svh - 20px)); padding-bottom: 0 !important; }

/* "New · Grainy gradients →" above the headline. */
.ga-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 14px 5px 5px;
	margin: 0 0 22px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .75);
	border: 1px solid rgba(17, 17, 17, .08);
	box-shadow: 0 2px 10px rgba(17, 17, 17, .05);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-size: 13px;
	font-weight: 500;
	color: #333 !important;
	text-decoration: none !important;
	transition: transform .15s;
}
.ga-eyebrow:hover { transform: translateY(-1px); }
.ga-eyebrow b { background: #111; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }

/* Two-tone headline: grey first clause, black second, gradient on the brands.
 * balance stops a lone word wrapping onto the last line. */
.home .ga-hero h1 {
	font-size: clamp(34px, 5.2vw, 68px) !important;
	line-height: 1.04 !important;
	letter-spacing: -0.035em !important;
	max-width: 15ch;
}
.home .ga-hero h1 em { font-style: normal; color: #73737E; }  /* #9A9AA3 was ~2:1 over the pink field; this is ~3.5:1 there, above the 3:1 WCAG floor for text this large, and still reads as the lighter tone */
.home .ga-hero h1 { font-weight: 800 !important; color: #0A0A0A !important; margin-top: 0 !important; margin-bottom: 16px !important; }
.home .ga-hero p {
	font-size: 17px !important;
	line-height: 1.6 !important;
	color: #666 !important;
	max-width: 480px;
	margin: 0 auto 30px !important;
}

/* "Inspired by" brand strip along the bottom of the hero: a CSS marquee of
 * the list printed twice (app.php), translating by exactly one copy. */
.ga-strip {
	align-self: stretch;
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 44px -24px 0;
	padding: 18px 28px 22px;
	border-top: 1px solid rgba(17, 17, 17, .06);
}
.ga-strip-label { flex-shrink: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6E6E78; }
.ga-strip-viewport {
	flex: 1;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ga-strip-track { display: flex; width: max-content; animation: ga-marquee 60s linear infinite; }
.ga-strip:hover .ga-strip-track,
.ga-strip:focus-within .ga-strip-track { animation-play-state: paused; }
.ga-strip-set { display: flex; gap: 26px; padding-right: 26px; }
.ga-strip-item { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #4A4A52 !important; text-decoration: none !important; white-space: nowrap; transition: color .15s; }
.ga-strip-item:hover { color: #111 !important; }
.ga-strip-sw { width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
@keyframes ga-marquee { to { transform: translateX(-50%); } }

@media (max-width: 640px) {
	.home .ga-hero { min-height: 0; }
	.ga-strip { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 32px; padding: 14px 0 18px; }
	.ga-strip-label { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.ga-strip-track { animation: none; }
	.ga-strip-viewport { overflow-x: auto; }
}

/* ─── Browse by colour ───────────────────────────────────── */

.ga-hue-grid {
	display: grid;
	/* Explicit column counts rather than auto-fit: there are exactly eight
	   swatches, and auto-fit leaves one orphaned on its own row at most
	   viewport widths. 2 / 4 / 8 always divides cleanly. */
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

@media (min-width: 560px)  { .ga-hue-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .ga-hue-grid { grid-template-columns: repeat(8, 1fr); } }

.ga-hue {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #F0F0F0;
	border-radius: 999px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	text-decoration: none;
	color: #111;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ga-hue:hover {
	border-color: #DDD;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* The swatch is the point of the row, so it gets real size rather than a dot. */
.ga-hue-chip {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	flex-shrink: 0;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.ga-hue-name {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -.01em;
}

.ga-hue-n {
	margin-left: auto;
	font-size: 12px;
	color: #6E6E78;
	font-variant-numeric: tabular-nums;
}

/* ─── The six generators ─────────────────────────────────── */

.ga-tool-grid {
	display: grid;
	/* Six tools: 3 x 2 reads as a set, where auto-fit gave 4 + 2. */
	grid-template-columns: 1fr;
	gap: 12px;
}

@media (min-width: 560px) { .ga-tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ga-tool-grid { grid-template-columns: repeat(3, 1fr); } }

.ga-tool {
	display: block;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid #F0F0F0;
	border-radius: 22px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	text-decoration: none;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ga-tool:hover {
	border-color: #DDD;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.ga-tool h3 {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	color: #111;
	letter-spacing: -.01em;
}

.ga-tool p {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: #6B6B73;
}

.ga-tools .ga-sec-hd span {
	font-size: 13px;
	color: #6E6E78;
}

/* ─── About: intro + feature tiles ───────────────────────── */

.ga-about {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	gap: 40px;
	align-items: start;
	padding: 36px;
	border-radius: 28px;
	background: linear-gradient(135deg, #FAFAFC, #F4F2FB);
	border: 1px solid #EFEDF5;
}
.ga-about h2 {
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #6E6E78 !important;
	margin: 0 0 14px !important;
}
.ga-about-intro p { font-size: 15px; line-height: 1.7; color: #4A4A52; margin: 0 0 14px; }
.ga-about-intro .ga-about-lede {
	font-size: clamp(20px, 2.2vw, 26px);
	line-height: 1.35;
	font-weight: 700;
	letter-spacing: -.02em;
	color: #111;
}
.ga-about-intro .ga-about-note { font-size: 13px; color: #6E6E78; margin: 0; }
.ga-about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ga-feature {
	background: #fff;
	border: 1px solid #EFEDF5;
	border-radius: 20px;
	padding: 18px;
}
.ga-feature i { display: block; width: 36px; height: 36px; border-radius: 11px; margin-bottom: 12px; }
.ga-feature h3 { font-size: 15px !important; font-weight: 700 !important; color: #111 !important; margin: 0 0 6px !important; }
.ga-feature p { font-size: 13.5px; line-height: 1.6; color: #5A5A64; margin: 0; }

@media (max-width: 900px) {
	.ga-about { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
}
@media (max-width: 640px) {
	.ga-about-grid { grid-template-columns: 1fr; }
	.ga-about { padding: 20px; border-radius: 22px; }
}

@media (max-width: 600px) {
	.ga-hue-grid { gap: 8px; }
	.ga-hue { padding: 8px 10px; gap: 8px; }
	.ga-hue-chip { width: 28px; height: 28px; border-radius: 50%; }
}

@media (prefers-reduced-motion: reduce) {
	.ga-hue, .ga-tool { transition: none; }
	.ga-hue:hover, .ga-tool:hover { transform: none; }
}

/* A new tool leads the grid at full width, so the other six stay 3 × 2. */
.ga-tool-new { grid-column: 1 / -1; background: linear-gradient(120deg, #FFF5EF, #F4F0FF 55%, #ECFBF7); border-color: #EEE6FA; }
.ga-tool-new h3 b { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: #111; color: #fff; padding: 2px 8px; border-radius: 999px; vertical-align: 2px; margin-left: 6px; }
