/*
 * Hero section — copy side (headline, lede, CTAs, rating strip).
 * Visual (image + category overlay) lives in log-hero-visual.css.
 * @package log-core
 */

.hero {
	position: relative;
	/* Side gutter matches sitewide .wrap convention (log-cat-grid.css etc).
	   Previously 0 — fine above 1340px since .hero-grid's own max-width
	   centers it, but between 761–1339px (tablets, small laptops: 1024,
	   1280, 1366) the grid had nothing keeping it off the viewport edge. */
	padding: 80px 40px 140px;
	overflow: clip;
	background: linear-gradient(160deg, var(--sage-100) 0%, var(--sage-50) 45%, var(--plum-50) 100%);
	color: var(--ink-900);
}

.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at var(--mx, 18%) var(--my, 20%), rgba(255, 255, 255, .5), transparent 42%);
	transition: background .25s linear;
	pointer-events: none;
}

.hero-grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: 56px;
	align-items: center;
	max-width: var(--max-width);
	margin: 0 auto;
}

.eyebrow-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(249, 115, 22, .10);
	color: var(--sage-700);
	border: 1px solid rgba(249, 115, 22, .30);
	padding: 7px 18px;
	border-radius: var(--r-pill);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 24px;
	animation: log-eyebrow-pulse 3s ease-in-out 1s infinite;
}

@keyframes log-eyebrow-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(26, 85, 196, .25); }
	50% { box-shadow: 0 0 0 8px rgba(26, 85, 196, 0); }
}

.eyebrow-pill .icon { width: 13px; height: 13px; }

.hero h1 {
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.06;
	font-size: clamp(34px, 4.6vw, 58px);
	letter-spacing: -.02em;
	color: var(--ink-900);
	margin: 0 0 28px;
}

.hero h1 em {
	font-style: italic;
	font-weight: 500;
	background: linear-gradient(100deg, var(--sage-700) 20%, var(--sage-600) 50%, var(--sage-700) 80%);
	background-size: 220% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: log-hero-shimmer 5s linear infinite;
}

@keyframes log-hero-shimmer {
	to { background-position: -220% center; }
}

.hero p.lede {
	margin: 0 0 34px;
	max-width: 500px;
	color: var(--ink-400);
	font-size: 17px;
	line-height: 1.75;
	font-weight: 450;
}

.trust-pills { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 36px; }

.trust-pill {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid rgba(249, 115, 22, .25);
	color: var(--ink-700);
	padding: 9px 16px;
	border-radius: var(--r-pill);
	font-size: 12.5px;
	font-weight: 600;
	box-shadow: 0 2px 12px rgba(8, 30, 80, .06);
}

.trust-pill .icon { width: 14px; height: 14px; color: var(--sage-600); }

.trust-pill {
	animation: log-trust-pop .55s cubic-bezier(.22, .61, .36, 1) both;
}

.trust-pill:nth-child(1) { animation-delay: .3s; }
.trust-pill:nth-child(2) { animation-delay: .42s; }
.trust-pill:nth-child(3) { animation-delay: .54s; }
.trust-pill:nth-child(4) { animation-delay: .66s; }

@keyframes log-trust-pop {
	from { opacity: 0; transform: translateY(8px) scale(.93); }
	to { opacity: 1; transform: none; }
}

.hero-btn-row { display: flex; gap: 14px; margin-bottom: 32px; flex-wrap: wrap; }

.rating-row {
	display: flex;
	align-items: center;
	gap: 16px;
	background: linear-gradient(130deg, var(--ink-900) 0%, var(--sage-800) 100%);
	border-left: 3px solid var(--sage-600);
	border-radius: 16px;
	padding: 16px 20px;
	color: #fff;
	flex-wrap: wrap;
	box-shadow: 0 20px 50px -12px rgba(8, 29, 80, .3);
}

.stars-gold { color: var(--sage-600); display: flex; gap: 3px; }
.stars-gold .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.rating-text strong { display: block; font-family: var(--display); font-size: 18px; font-weight: 700; color: #ffab6e; }
.rating-text span { display: block; font-size: 12px; color: rgba(255, 255, 255, .7); margin-top: 2px; }
.rating-sep { width: 1px; min-height: 40px; align-self: stretch; background: rgba(255, 255, 255, .3); }

.cert-row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }

.cert-row .icon {
	width: 36px; height: 36px; padding: 8px;
	border-radius: 50%;
	background: rgba(255, 138, 61, .25);
	border: 1px solid rgba(255, 138, 61, .35);
	color: var(--sage-600);
}

.scroll-hint {
	display: none;
	margin-top: 26px;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	font-size: 11px;
	letter-spacing: .12em;
	color: var(--ink-400);
	font-weight: 700;
	text-align: center;
}

.mouse-ic { width: 22px; height: 34px; border: 2px solid rgba(11, 29, 58, .25); border-radius: 14px; display: flex; justify-content: center; padding-top: 6px; }
.mouse-ic span { width: 3px; height: 7px; border-radius: 2px; background: var(--sage-600); animation: log-scroll-dot 1.6s ease-in-out infinite; }

@keyframes log-scroll-dot {
	0% { transform: translateY(0); opacity: 1; }
	70% { transform: translateY(9px); opacity: 0; }
	100% { opacity: 0; }
}

@media (max-width: 1024px) {
	.hero { padding: 64px 24px 90px; }
	.hero-grid { grid-template-columns: 1fr; gap: 44px; }
	.hero h1 { font-size: clamp(32px, 7vw, 52px); }
}

@media (max-width: 760px) {
	.hero { padding: 52px 20px 64px; }

	.hero-grid > div:first-child { text-align: center; display: flex; flex-direction: column; align-items: center; }

	.hero h1 { font-size: clamp(28px, 9vw, 40px); margin-bottom: 20px; }
	.hero p.lede { margin: 0 auto 28px; text-align: center; font-size: 15.5px; }
	.trust-pills { justify-content: center; margin-bottom: 24px; gap: 8px; }
	.trust-pill { font-size: 12px; padding: 7px 13px; }
	.hero-btn-row { justify-content: center; width: 100%; flex-direction: column; align-items: stretch; margin-bottom: 24px; }
	.rating-row { display: none; }
}

/* ── Homepage-scoped accent correction ───────────────────────────────
 * design-tokens.css's shared `.eyebrow` / `h2.headline em` rules read
 * var(--plum-500/700) expecting orange (pre-swap meaning); on this site
 * those tokens now resolve blue, so every section eyebrow + headline
 * emphasis renders the wrong hue vs the reference. Can't edit
 * design-tokens.css, so override homepage-only here (body.log-frontpage
 * beats the shared rules' specificity regardless of stylesheet order). */
body.log-frontpage .eyebrow,
body.log-frontpage .on-deep .eyebrow {
	color: var(--sage-600);
}

body.log-frontpage h2.headline em,
body.log-frontpage .on-deep h2.headline em {
	background: linear-gradient(100deg, var(--sage-700) 20%, var(--sage-600) 50%, var(--sage-700) 80%);
	background-size: 220% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ── Magnetic heading text (log-heading-magnet.js) ─────────────────
 * JS splits h1 / h2.headline / .step-card h4 / .index-tab h5 into
 * per-character spans that repel from the cursor, matching reference. */
.mag-char { display: inline-block; will-change: transform; }
.mag-word { display: inline-flex; white-space: nowrap; }
