/* =========================================================================
 * Fetch Fancy — Home page styles
 * Loads only on pages using the "Fetch Fancy — Home" template.
 * Reuses tokens, buttons, .ff-reveal and the animation engine from global.css/fancy-fx.js.
 * ========================================================================= */

.ff[data-ff-page="home"] {
	background: var(--ff-cream);
	overflow: hidden;
}

/* Shared bits ----------------------------------------------------------- */
.ff-grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.ff-grid--4 { grid-template-columns: repeat(4, 1fr); }

.ff-section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.ff-section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.ff-section-lede { color: var(--ff-ink-soft); font-size: 1.05rem; margin-top: .9rem; }
.ff-section-lede--light { color: rgba(255,255,255,.78); }

/* ============================================================ HERO ============================================================ */
.ff-hero {
	position: relative; min-height: 94vh; display: flex; align-items: center;
	color: #fff; padding: clamp(9rem, 16vh, 12rem) 0 6rem; isolation: isolate;
}
.ff-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.ff-hero__photo {
	position: absolute; inset: 0; background-size: cover; background-position: center 30%;
	transform: scale(1.08); will-change: transform; z-index: 0;
}
.ff-hero__mesh {
	position: absolute; inset: 0; z-index: 1;
	background:
		radial-gradient(circle at 12% 18%, rgba(182,228,69,.45) 0%, transparent 45%),
		radial-gradient(circle at 88% 10%, rgba(34,211,238,.40) 0%, transparent 45%),
		radial-gradient(circle at 30% 95%, rgba(251,191,36,.30) 0%, transparent 50%),
		linear-gradient(180deg, rgba(10,25,41,.55) 0%, rgba(10,25,41,.85) 100%);
	animation: ff-mesh-drift 22s ease-in-out infinite alternate;
}
@keyframes ff-mesh-drift { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(-2%,1%,0) scale(1.08); } }
.ff-hero__inner { position: relative; z-index: 2; }
.ff-hero .ff-eyebrow { color: var(--ff-lime); }
.ff-hero__title { font-size: clamp(2.6rem, 6.5vw, 5.4rem); line-height: 1.0; color: #fff; margin: 0 0 1.5rem; letter-spacing: -0.02em; }
.ff-word { display: inline-block; }
.ff-word--accent { background: linear-gradient(120deg, var(--ff-brand) 0%, var(--ff-lime) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ff-word--gold { background: linear-gradient(120deg, var(--ff-gold) 0%, var(--ff-coral) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ff-hero__lede { max-width: 640px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255,255,255,.85); margin: 0 0 2.2rem; }
.ff-hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.ff-hero__stats { display: grid; grid-template-columns: repeat(3, max-content); gap: clamp(1.5rem, 4vw, 3rem); padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.18); }
.ff-stat__num { display: block; font-family: var(--ff-font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--ff-lime); line-height: 1; }
.ff-stat__label { display: block; margin-top: .4rem; font-size: .85rem; color: rgba(255,255,255,.75); max-width: 15ch; }
.ff-hero__scroll { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; z-index: 3; }
.ff-hero__scroll span { display: block; width: 3px; height: 8px; margin: 6px auto 0; background: #fff; border-radius: 2px; animation: ff-scroll-dot 1.8s ease-in-out infinite; }
@keyframes ff-scroll-dot { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(14px); opacity: 0; } 61% { transform: translateY(0); opacity: 0; } }

/* ============================================================ INTRO (split) ============================================================ */
.ff-intro { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--ff-cream); }
.ff-intro__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ff-intro__copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 1rem; }
.ff-intro__copy p { color: var(--ff-ink-soft); font-size: 1.05rem; }
.ff-intro__media { position: relative; }
.ff-intro__photo { aspect-ratio: 4/3; border-radius: var(--ff-radius-lg); background-size: cover; background-position: center; box-shadow: var(--ff-shadow-xl); }
.ff-intro__tag { position: absolute; bottom: -18px; left: -18px; background: #fff; border-radius: var(--ff-radius); padding: .9rem 1.2rem; box-shadow: var(--ff-shadow-md); }
.ff-intro__tag-big { display: block; font-family: var(--ff-font-display); font-size: 1.3rem; color: var(--ff-ink); line-height: 1; }
.ff-intro__tag-small { display: block; font-size: .85rem; color: var(--ff-brand-deep); font-weight: 700; margin-top: .2rem; }

/* ============================================================ BENEFITS (cards) ============================================================ */
.ff-why { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--ff-paper); }
.ff-card { background: #fff; border-radius: var(--ff-radius-lg); padding: 2rem 1.6rem; box-shadow: var(--ff-shadow-sm); border: 1px solid var(--ff-line); transition: transform .35s var(--ff-ease-out), box-shadow .35s ease; position: relative; overflow: hidden; }
.ff-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--ff-lime), var(--ff-brand)); transform: scaleX(0); transform-origin: left center; transition: transform .5s var(--ff-ease-out); }
.ff-card:hover { transform: translateY(-6px); box-shadow: var(--ff-shadow-md); }
.ff-card:hover::after { transform: scaleX(1); }
.ff-card__icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--ff-lime) 0%, var(--ff-brand) 100%); color: var(--ff-ink); display: grid; place-items: center; margin-bottom: 1.2rem; }
.ff-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.ff-card p { color: var(--ff-ink-soft); font-size: .95rem; }

/* ============================================================ SPOIL (dark split) ============================================================ */
.ff-spoil {
	padding: clamp(4.5rem, 9vw, 7rem) 0; color: #fff;
	background:
		radial-gradient(circle at 85% 15%, rgba(251,191,36,.20) 0%, transparent 50%),
		radial-gradient(circle at 5% 90%, rgba(182,228,69,.16) 0%, transparent 50%),
		linear-gradient(135deg, var(--ff-ink) 0%, var(--ff-ink-2) 100%);
}
.ff-spoil__inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ff-spoil__media { aspect-ratio: 5/4; border-radius: var(--ff-radius-lg); background-size: cover; background-position: center; box-shadow: var(--ff-shadow-xl); }
.ff-spoil__copy h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 1rem; }
.ff-spoil__copy p { color: rgba(255,255,255,.82); font-size: 1.05rem; }
.ff-spoil__hl { background: linear-gradient(120deg, var(--ff-gold), var(--ff-coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ff-spoil__sub { margin-top: 1.2rem; padding: 1rem 1.2rem; background: rgba(255,255,255,.06); border-left: 3px solid var(--ff-gold); border-radius: 0 var(--ff-radius) var(--ff-radius) 0; color: rgba(255,255,255,.92); font-size: 1rem; }
.ff-spoil__sub strong { color: var(--ff-lime); font-family: var(--ff-font-display); font-weight: 400; }
.ff-spoil__sub--small { background: transparent; border-left: 0; padding: 0; margin-top: 1.2rem; color: rgba(255,255,255,.6); font-size: .88rem; font-style: italic; }
.ff-spoil__list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .7rem; }
.ff-spoil__list li { position: relative; padding-left: 2rem; color: rgba(255,255,255,.9); }
.ff-spoil__list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--ff-lime), var(--ff-brand)); box-shadow: 0 0 0 4px rgba(182,228,69,.15); }

/* ============================================================ HOW IT WORKS (steps) ============================================================ */
.ff-how { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--ff-cream); }
.ff-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); position: relative; }
.ff-steps::before { content: ""; position: absolute; top: 36px; left: 9%; right: 9%; height: 2px; background: repeating-linear-gradient(90deg, var(--ff-line) 0 6px, transparent 6px 12px); z-index: 0; }
.ff-step { position: relative; z-index: 1; background: #fff; border-radius: var(--ff-radius-lg); padding: 2rem 1.4rem 1.6rem; border: 1px solid var(--ff-line); }
.ff-step__num { position: absolute; top: -22px; left: 1.4rem; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--ff-ink), var(--ff-ink-2)); color: #fff; font-family: var(--ff-font-display); font-size: 1rem; display: grid; place-items: center; box-shadow: var(--ff-shadow-md); }
.ff-step h3 { margin-top: 1.5rem; font-size: 1.15rem; margin-bottom: .35rem; }
.ff-step p { font-size: .92rem; color: var(--ff-ink-soft); }

/* ============================================================ SAVINGS TEASER (dark) ============================================================ */
.ff-savings {
	padding: clamp(4.5rem, 9vw, 7rem) 0; color: #fff;
	background:
		radial-gradient(circle at 80% 10%, rgba(34,211,238,.18) 0%, transparent 50%),
		radial-gradient(circle at 10% 90%, rgba(182,228,69,.15) 0%, transparent 50%),
		var(--ff-ink);
}
.ff-savings h2 { color: #fff; }
.ff-teaser { display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap; }
.ff-teaser__stat { text-align: center; }
.ff-teaser__num { display: block; font-family: var(--ff-font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); background: linear-gradient(120deg, var(--ff-gold), var(--ff-coral)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.ff-teaser__label { display: block; margin-top: .5rem; color: rgba(255,255,255,.78); font-size: .95rem; }
.ff-teaser__divider { width: 1px; height: 60px; background: rgba(255,255,255,.18); }
.ff-teaser__cta { text-align: center; margin-top: 3rem; }

/* ============================================================ FINAL CTA ============================================================ */
.ff-cta {
	padding: clamp(4.5rem, 9vw, 7rem) 0; color: #fff;
	background:
		radial-gradient(circle at 0% 50%, rgba(182,228,69,.18) 0%, transparent 45%),
		radial-gradient(circle at 100% 80%, rgba(34,211,238,.18) 0%, transparent 50%),
		linear-gradient(135deg, var(--ff-ink) 0%, var(--ff-ink-2) 100%);
}
.ff-cta__inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem 4rem; align-items: center; }
.ff-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.08; }
.ff-cta__accent { background: linear-gradient(120deg, var(--ff-lime), var(--ff-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ff-cta p { color: rgba(255,255,255,.8); max-width: 56ch; }
.ff-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.ff-cta__finepr { font-size: .78rem; color: rgba(255,255,255,.55); margin-top: .3rem; }

/* ============================================================ RESPONSIVE ============================================================ */
@media (max-width: 1024px) {
	.ff-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.ff-steps { grid-template-columns: repeat(2, 1fr); }
	.ff-steps::before { display: none; }
	.ff-intro__inner, .ff-spoil__inner { grid-template-columns: 1fr; }
	.ff-spoil__media { order: -1; }
}
@media (max-width: 768px) {
	.ff-hero { min-height: 86vh; padding: 7rem 0 4rem; }
	.ff-hero__stats { grid-template-columns: 1fr 1fr; row-gap: 1.2rem; }
	.ff-grid--4 { grid-template-columns: 1fr; }
	.ff-steps { grid-template-columns: 1fr; }
	.ff-teaser__divider { display: none; }
	.ff-cta__inner { grid-template-columns: 1fr; }
	.ff-cta__actions { align-items: stretch; }
	.ff-cta__actions .ff-btn { justify-content: center; }
}
@media (max-width: 480px) {
	.ff-hero__title { font-size: clamp(2.2rem, 10vw, 3rem); }
	.ff-intro__tag { left: 50%; transform: translateX(-50%); bottom: -22px; }
}
