/*
 * The public affiliate page (/affiliate). Loaded after ai-visibility-landing.css,
 * whose .geol-* rules (creative set A: Navy hero, Maven Pro, cards, steps, end
 * band) the page is built on, as the Workbench hub is; this file adds only
 * the page's own pieces, scoped to .affl.
 *
 * Colours are the landing's variables, so light and dark follow it. Amber
 * appears once per composition: the bonus line in the hero's worked example,
 * and the bow on the gift in the bonus band's figure.
 *
 * 2026-10-26 JD
 */

/* Short sections need a tighter rhythm than the shared long-form landing. */
.affl .geol-section,
.affl .geol-end {
	padding: 48px 0;
}

.affl .geol-head {
	margin-bottom: 32px;
}

/* Keep hero anchor links clear of the fixed desktop and mobile header. */
.affl .geol-section {
	scroll-margin-top: 88px;
}

/* ---------------------------------------------------------------------------
   The worked example in the hero
   --------------------------------------------------------------------------- */

.affl-mock {
	position: relative;
	font-family: var(--gl-display);
}

/* The pill links to the bonus band while the bonus is on. */
.affl .affl-pill,
.affl .affl-pill:hover,
.affl .affl-pill:focus {
	color: rgba(255, 255, 255, .88);
}

.affl .affl-pill:hover {
	background: rgba(255, 255, 255, .12);
	border-color: rgba(255, 255, 255, .24);
}

.affl .affl-mock .geol-window-body {
	padding: 20px 22px 22px;
}

.affl-mock-title {
	margin-bottom: 14px !important;
	color: var(--gl-navy);
	font-size: 16px;
	font-weight: 800;
}

.affl-mock-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.affl-mock-rows li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	border-top: 1px solid #EEF2F5;
	color: var(--gl-ink);
	font-size: 14px;
	font-weight: 600;
}

.affl-mock-rows li:first-child {
	border-top: 0;
}

.affl-mock-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #EAF7FE;
	color: var(--gl-deep);
	font-size: 14px;
	line-height: 1;
}

.affl-mock-rows li > span:not(.affl-mock-icon) {
	flex: 1;
	min-width: 0;
}

.affl-mock-rows b,
.affl-mock-rows em {
	flex: 0 0 auto;
	font-size: 14px;
	font-style: normal;
	font-weight: 800;
	color: #12936A;
	white-space: nowrap;
}

.affl-mock-rows em {
	color: var(--gl-small);
	font-weight: 700;
}

/* The composition's one Amber accent: the bonus, the point of the page. */
.affl-mock-first {
	margin: 4px -10px 0;
	padding: 11px 10px !important;
	border-top: 0 !important;
	border-radius: 12px;
	background: #FFF7E8;
}

.affl-mock-first + li {
	border-top: 0;
}

.affl-mock-first .affl-mock-icon {
	background: var(--gl-amber);
	color: var(--gl-navy);
}

.affl-mock-rows .affl-amber {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--gl-amber);
	color: var(--gl-navy);
	font-size: 12px;
}

.affl-mock-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
	padding: 14px 16px;
	border-radius: 14px;
	background: #F5F8FA;
	color: var(--gl-small);
	font-size: 13px;
	font-weight: 700;
}

.affl-mock-total b {
	color: var(--gl-navy);
	font-size: 22px;
	font-weight: 800;
}

/* ---------------------------------------------------------------------------
   What the program paid out, counted
   --------------------------------------------------------------------------- */

.affl-stats {
	padding: 30px 0;
	border-bottom: 1px solid var(--gl-line);
	background: var(--gl-page);
}

.affl-stats ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 44px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.affl-stats li {
	display: flex;
	align-items: center;
	gap: 14px;
}

.affl-stat-icon,
.affl-bonus-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--gl-tint);
	color: var(--gl-deep);
	font-size: 20px;
	line-height: 1;
}

.dark-theme .affl-stat-icon,
.dark-theme .affl-bonus-icon {
	color: var(--gl-sky);
}

.affl-stats b {
	display: block;
	font-family: var(--gl-display);
	font-size: 30px;
	font-weight: 800;
	line-height: 1.05;
	color: var(--gl-strong);
}

.affl-stats small {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	color: var(--gl-muted);
}

.affl-stats .affl-stat-note {
	flex: 1 1 320px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--gl-muted);
}

/* ---------------------------------------------------------------------------
   The new-buyer bonus
   --------------------------------------------------------------------------- */

.affl-bonus {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}

.affl .affl-bonus-figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 40px 28px;
	text-align: center;
}

.affl-bonus-icon {
	width: 64px;
	height: 64px;
	border-radius: 18px;
	font-size: 30px;
	margin-bottom: 8px;
}

.affl-bonus-figure b {
	font-family: var(--gl-display);
	font-size: clamp(48px, 5vw, 64px);
	font-weight: 800;
	line-height: 1;
	color: var(--gl-strong);
}

.affl-bonus-figure > span:not(.affl-bonus-icon) {
	font-size: 15px;
	font-weight: 600;
	color: var(--gl-muted);
}

.affl-bonus-copy h2 {
	font-size: clamp(30px, 3.6vw, 44px);
	line-height: 1.1;
	color: var(--gl-strong);
}

/*
 * The accent on a light band is Deep Sky (the link colour), not Sky: Sky on
 * Cloud is 2.5:1 and the guide forbids it; the link colour is 5.7:1 there
 * and Sky-bright on the dark theme. The hero's accent sits on Navy and keeps
 * the landing's Sky.
 */
.affl-bonus-copy h2 .geol-accent {
	color: var(--gl-link);
}

.affl-bonus-text {
	margin-top: 16px !important;
	max-width: 620px;
	font-size: 18px;
	line-height: 1.55;
	color: var(--gl-muted);
}

.affl-bonus-text strong {
	color: var(--gl-strong);
}

.affl-ticks {
	margin: 22px 0 28px;
	padding: 0;
	list-style: none;
	font-size: 16px;
	color: var(--gl-text);
}

.affl-ticks li {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 8px;
}

.affl-ticks .fas {
	color: var(--gl-link);
	font-size: 13px;
}

/* ---------------------------------------------------------------------------
   The rules: four cards
   --------------------------------------------------------------------------- */

.affl-rates {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.affl .affl-rate h3 {
	margin-bottom: 4px;
	font-size: 17px;
	color: var(--gl-muted);
}

.affl-rate-value {
	margin-bottom: 12px !important;
	font-family: var(--gl-display);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--gl-link) !important;
}

.affl .affl-rate p:not(.affl-rate-value) {
	font-size: 15px;
}

/* ---------------------------------------------------------------------------
   More ways to earn, and the ready-made storefronts
   --------------------------------------------------------------------------- */

.affl-more {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.affl .affl-more-card {
	display: flex;
	flex-direction: column;
}

.affl .affl-more-card p {
	font-size: 15px;
}

.affl-more-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	font-family: var(--gl-display);
	font-size: 15px;
	font-weight: 700;
	color: var(--gl-link);
}

.affl-more-link .fas {
	font-size: 12px;
}

.affl-build {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.affl .affl-build-card {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 28px;
}

.affl-build-art {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 150px;
	height: 150px;
	border-radius: 16px;
	background: var(--gl-tint);
}

.affl-build-art img {
	width: 110px;
	height: auto;
}

.affl-build-body {
	flex: 1;
	min-width: 0;
}

.affl .affl-build-body p {
	margin-bottom: 18px;
	font-size: 15px;
}

.affl .affl-build-body .geol-btn {
	min-height: 44px;
	width: auto;
	font-size: 15px;
}

/* ---------------------------------------------------------------------------
   Narrower screens
   --------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
	.affl-mock {
		max-width: 560px;
		width: 100%;
		margin: 0 auto;
	}

	.affl-rates {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.affl-more {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.affl-more .affl-more-card:last-child {
		grid-column: 1 / -1;
	}

	.affl-build {
		grid-template-columns: minmax(0, 1fr);
	}

	.affl-bonus {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.affl .affl-bonus-figure {
		flex-direction: row;
		justify-content: flex-start;
		gap: 20px;
		padding: 24px;
		text-align: left;
	}

	.affl-bonus-icon {
		margin-bottom: 0;
	}
}

@media (max-width: 767.98px) {
	.affl .geol-section,
	.affl .geol-end {
		padding: 32px 0;
	}

	.affl .geol-head {
		margin-bottom: 24px;
	}

	.affl-more {
		grid-template-columns: minmax(0, 1fr);
	}

	.affl .affl-build-card {
		flex-direction: column;
		align-items: stretch;
	}

	.affl-build-art {
		flex-basis: auto;
	}
}

@media (max-width: 575.98px) {
	.affl-rates {
		grid-template-columns: minmax(0, 1fr);
	}

	.affl .affl-bonus-figure {
		flex-wrap: wrap;
	}

	.affl-mock-rows li {
		flex-wrap: wrap;
		font-size: 13px;
	}

	.affl-stats .affl-stat-note {
		flex-basis: 100%;
	}
}
