/*
 * FlatEarn page (page-flatearn.php). Loaded on that page only.
 * Everything is scoped under .flatearn and prefixed fe- so the theme's global
 * rules (body Hellix 24px, a/span inline-block, Tailwind preflight, h1-h6 Roboto
 * Slab) are neutralised here and nothing leaks to the rest of the site.
 *
 * Colors: coral #FF7350, hover #F25831, accent #C2401F, text #3A3A3A,
 * peach #FFE8E3, dark panels #3A3A3A.
 */

/* ---------- Base / theme resets (page only) ---------- */
.flatearn {
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #3A3A3A;
	background: #FFFFFF;
	overflow-x: clip;
}
.flatearn *,
.flatearn *::before,
.flatearn *::after { box-sizing: border-box; }
/* :where() keeps these resets at element weight, so they undo the theme's
   global "a, span { display: inline-block }" but never beat a class rule
   such as the theme's own .btn, which the buttons on this page use. */
:where(.flatearn) a,
:where(.flatearn) span { display: inline; }
:where(.flatearn) a { color: #3A3A3A; }
:where(.flatearn) a:hover { color: #C2401F; }
.flatearn h1,
.flatearn h2,
.flatearn h3 { margin: 0; font-family: inherit; color: #3A3A3A; }
.flatearn p { margin: 0; }
.flatearn img { display: block; max-width: 100%; height: auto; }
.flatearn svg { display: block; flex: none; }
.flatearn b { font-weight: 600; }

/* ---------- Layout helpers ---------- */
.flatearn .fe-wrap { max-width: 1142px; margin: 0 auto; padding: 0 24px; }
.flatearn .fe-wrap--wide { max-width: 1240px; }
.flatearn .fe-wrap--faq { max-width: 900px; display: flex; flex-direction: column; gap: 28px; }
.flatearn .fe-stack-14 { display: flex; flex-direction: column; gap: 14px; }
.flatearn .fe-stack-36 { display: flex; flex-direction: column; gap: 36px; }
.flatearn .fe-stack-40 { display: flex; flex-direction: column; gap: 40px; }

/* ---------- Type ---------- */
.flatearn .fe-h1 {
	font-family: 'Roboto Slab', serif;
	font-weight: 500;
	font-size: 48px;
	line-height: 1.12;
	text-wrap: balance;
}
.flatearn .fe-h2 {
	font-family: 'Roboto Slab', serif;
	font-weight: 500;
	font-size: 40px;
	line-height: 1.2;
	text-align: center;
}
.flatearn .fe-h2--left { text-align: left; }
.flatearn .fe-h2--light { color: #FFFFFF; max-width: 760px; }
.flatearn .fe-h3 { font-size: 20px; font-weight: 600; line-height: 1.35; }
.flatearn .fe-h3--sm { font-size: 18px; }
.flatearn .fe-h3--lg { font-size: 22px; }
.flatearn .fe-h3--panel,
.flatearn .fe-h3--plan { font-family: 'Roboto Slab', serif; font-weight: 500; }
.flatearn .fe-h3--panel { font-size: 30px; line-height: 1.25; }
.flatearn .fe-h3--plan { font-size: 26px; line-height: 1.3; }
.flatearn .fe-eyebrow { color: #C2401F; font-size: 18px; font-weight: 500; }
.flatearn .fe-tm { font-size: 0.6em; vertical-align: super; line-height: 0; }
.flatearn .fe-lead { font-size: 18px; line-height: 1.6; }
.flatearn .fe-head { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.flatearn .fe-sub { font-size: 18px; line-height: 1.6; max-width: 760px; }

/* ---------- Buttons ----------
   The buttons are the theme's own .btn (coral fill, 2px coral border, 14px
   corners, glow from the inner <span>, inverts to coral text on hover), the
   same as on Home, Features and the footer. .fe-btn only pins the font and
   size the theme uses below 1920px, so they also look the same on big
   screens, where this page does not scale up like the theme does. */
.flatearn .fe-btn {
	font-family: "Hellix", sans-serif;
	font-size: 15.4px;
	font-weight: 500;
	line-height: 1;
	min-height: 0;
	padding: 16px 35px 18px;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
}
/* On Home, Features and in the footer the .btn buttons carry data-aos, and AOS
   replaces the theme's 0.2s colour transition, so their hover is instant.
   Match that. Buttons that carry data-aos here keep AOS's own transition. */
.flatearn .fe-btn:not([data-aos]) { transition: none; }
.flatearn .fe-btn:focus-visible { outline: 2px solid #C2401F; outline-offset: 3px; }
.flatearn .fe-btn--block { display: flex; width: 100%; }
.flatearn .fe-btn--cta { margin-top: 6px; }
/* White button on peach: dark text; on hover it fills coral with white text. */
.flatearn .fe-btn--light {
	background-color: #FFFFFF;
	border-color: #FFFFFF;
	color: #3A3A3A;
}
.flatearn .fe-btn--light:hover {
	background-color: #FF7350;
	border-color: #FF7350;
	color: #FFFFFF;
}

/* ---------- Shared mock pieces ---------- */
.flatearn .fe-browser {
	background: #FFFFFF;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(58, 58, 58, 0.14);
	overflow: hidden;
}
.flatearn .fe-browser__bar { height: 30px; background: #F2F2F2; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.flatearn .fe-dot { display: block; width: 9px; height: 9px; border-radius: 5px; background: #D2D2D2; flex: none; }
.flatearn .fe-url {
	display: inline-block;
	margin-left: 10px;
	background: #FFFFFF;
	border-radius: 5px;
	padding: 2px 10px;
	font-size: 11px;
	line-height: 1.5;
	color: #5E6162;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.flatearn .fe-shot { border-radius: 14px; box-shadow: 0 8px 28px rgba(58, 58, 58, 0.16); }

/* ---------- 1. Hero ---------- */
/* The theme header is fixed and transparent over the top of the page
   (about 140px tall), like on FlatCheck, so the peach runs up behind it. */
.flatearn .fe-hero { background: #FFE8E3; overflow: hidden; padding-top: 140px; }
.flatearn .fe-hero__inner { display: flex; gap: 48px; align-items: center; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.flatearn .fe-hero__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.flatearn .fe-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.flatearn .fe-checks { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; font-weight: 500; margin-top: 4px; }
.flatearn .fe-check { display: flex; align-items: center; gap: 8px; }
.flatearn .fe-hero__visual { flex: 1 1 520px; min-width: 0; position: relative; padding-bottom: 30px; }
.flatearn .fe-badge {
	position: absolute;
	right: 24px;
	top: -16px;
	z-index: 2;
	background: #3A3A3A;
	color: #FFFFFF;
	border-radius: 20px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	display: flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 8px 20px rgba(58, 58, 58, 0.2);
}
.flatearn .fe-hero__shot { height: 360px; overflow: hidden; }
.flatearn .fe-hero__shot img { width: 100%; }
.flatearn .fe-phone {
	position: absolute;
	right: -10px;
	bottom: 0;
	width: 170px;
	border: 7px solid #3A3A3A;
	border-radius: 28px;
	overflow: hidden;
	background: #FFFFFF;
	box-shadow: 0 14px 40px rgba(58, 58, 58, 0.25);
}
.flatearn .fe-phone img { width: 100%; }

/* ---------- 2. Steps ---------- */
.flatearn .fe-steps-sec { padding: 96px 0 40px; }
.flatearn .fe-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.flatearn .fe-step { display: flex; flex-direction: column; gap: 18px; }
.flatearn .fe-step__media {
	background: #FFE8E3;
	border-radius: 20px;
	height: 380px;
	padding: 28px 28px 0;
	overflow: hidden;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: flex-start;
}
.flatearn .fe-step__media--left { justify-content: flex-start; }
.flatearn .fe-step1__img { width: 280px; max-width: none; flex: none; }
.flatearn .fe-step2 { position: relative; width: 300px; flex: none; }
.flatearn .fe-step2__a { width: 250px; max-width: none; }
.flatearn .fe-step2__b { position: absolute; left: 70px; top: 150px; width: 230px; max-width: none; }
.flatearn .fe-step3__img { width: 540px; max-width: none; flex: none; }
.flatearn .fe-step__text { display: flex; gap: 14px; }
.flatearn .fe-step__text p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: #4F5253; }
.flatearn .fe-num {
	width: 40px;
	height: 40px;
	border-radius: 20px;
	background: #FF7350;
	color: #FFFFFF;
	font-weight: 600;
	font-size: 17px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

/* ---------- 3. Lives on your website ---------- */
.flatearn .fe-lives-sec { padding: 56px 0; }
.flatearn .fe-lives { display: flex; gap: 56px; align-items: center; flex-wrap: wrap; }
.flatearn .fe-lives__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.flatearn .fe-lives__visual { flex: 1 1 540px; min-width: 0; }
.flatearn .fe-point { display: flex; gap: 14px; }
.flatearn .fe-point p { margin-top: 4px; font-size: 16px; line-height: 1.55; color: #4F5253; }
.flatearn .fe-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #FFE8E3;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}
.flatearn .fe-site {
	height: 56px;
	padding: 0 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid #E6E6E6;
}
.flatearn .fe-site__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.flatearn .fe-site__logo { width: 32px; height: 32px; border-radius: 8px; background: #3A3A3A; display: flex; align-items: center; justify-content: center; flex: none; }
.flatearn .fe-site__links { display: flex; gap: 18px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.flatearn .fe-site__links .is-active { color: #C2401F; border-bottom: 2px solid #FF7350; padding-bottom: 3px; }
.flatearn .fe-embed { position: relative; }
.flatearn .fe-embed__shot { height: 330px; overflow: hidden; }
.flatearn .fe-embed__shot img { width: 100%; margin-top: -64px; }
.flatearn .fe-embed__outline { position: absolute; inset: 0; border: 2px dashed #FF7350; border-radius: 4px; pointer-events: none; }
.flatearn .fe-embed__tag {
	position: absolute;
	right: 12px;
	bottom: 12px;
	background: #FF7350;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	padding: 5px 10px;
	border-radius: 12px;
}

/* ---------- 4. Calculator ---------- */
.flatearn .fe-calc-sec { padding: 56px 0 72px; scroll-margin-top: 90px; }
.flatearn .fe-calc {
	background: #3A3A3A;
	color: #FFFFFF;
	border-radius: 24px;
	padding: 48px;
	display: flex;
	gap: 48px;
	flex-wrap: wrap;
	align-items: center;
}
.flatearn .fe-calc__inputs { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.flatearn .fe-h2--calc { color: #FFFFFF; font-size: 36px; text-align: left; }
.flatearn .fe-calc__intro { margin-top: 10px; font-size: 16px; line-height: 1.6; color: #F2F2F2; }
.flatearn .fe-range { display: flex; flex-direction: column; gap: 10px; font-size: 16px; cursor: pointer; }
.flatearn .fe-range__row { display: flex; justify-content: space-between; gap: 12px; }
.flatearn .fe-range input[type=range] {
	width: 100%;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	accent-color: #FF7350;
	cursor: pointer;
}
.flatearn .fe-calc__note { font-size: 13px; line-height: 1.5; color: #D2D2D2; }
.flatearn .fe-calc__result {
	flex: 1 1 320px;
	min-width: 0;
	background: #4A4A4A;
	border-radius: 18px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.flatearn .fe-calc__label { font-size: 14px; color: #D2D2D2; }
.flatearn .fe-calc__monthly { font-family: 'Roboto Slab', serif; font-size: 56px; font-weight: 600; color: #FF9A80; line-height: 1.1; }
.flatearn .fe-calc__yearly { font-family: 'Roboto Slab', serif; font-size: 36px; font-weight: 600; line-height: 1.2; }
.flatearn .fe-calc__rule { height: 1px; background: #5E5E5E; }

/* ---------- 5. Features ---------- */
.flatearn .fe-features-sec { padding: 40px 0 72px; }
.flatearn .fe-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.flatearn .fe-card { background: #F9F9F9; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.flatearn .fe-card__media { height: 280px; overflow: hidden; padding: 28px 28px 0; }
.flatearn .fe-card__img { width: 100%; border-radius: 12px 12px 0 0; box-shadow: 0 6px 24px rgba(58, 58, 58, 0.12); }
.flatearn .fe-card__img--pricing { width: 150%; max-width: none; margin-left: -28%; margin-top: -70px; }
.flatearn .fe-card__img--team { width: 150%; max-width: none; margin-left: -25%; margin-top: -40px; }
.flatearn .fe-card__media--pair { display: flex; justify-content: center; align-items: flex-start; gap: 16px; }
.flatearn .fe-pair__a,
.flatearn .fe-pair__b { width: 200px; flex: none; box-shadow: 0 6px 24px rgba(58, 58, 58, 0.12); }
.flatearn .fe-pair__b { margin-top: 30px; }
.flatearn .fe-card__body { padding: 24px 28px 28px; }
.flatearn .fe-card__body p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: #4F5253; }

/* ---------- 6. Audience tabs ---------- */
.flatearn .fe-tabs-sec { padding: 72px 0; background: #F9F9F9; }
.flatearn .fe-tabs-wrap { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.flatearn .fe-tablist {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
	background: #FFFFFF;
	border-radius: 30px;
	padding: 6px;
}
.flatearn .fe-tab {
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 24px;
	background: transparent;
	color: #3A3A3A;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}
.flatearn .fe-tab:hover { color: #C2401F; }
.flatearn .fe-tab[aria-selected="true"] { background: #FF7350; color: #FFFFFF; }
.flatearn .fe-tab:focus-visible { outline: 2px solid #C2401F; outline-offset: 2px; }
.flatearn .fe-panel {
	background: #FFFFFF;
	border-radius: 20px;
	padding: 40px;
	width: 100%;
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
	align-items: center;
}
.flatearn .fe-panels { width: 100%; }
.flatearn .fe-panel[hidden] { display: none; }
.flatearn .fe-panel__copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.flatearn .fe-panel__copy p { font-size: 17px; line-height: 1.6; }
.flatearn .fe-panel .fe-bul { flex: 1 1 340px; min-width: 0; }

/* Coral-dot bullet list (tabs + compare cards) */
.flatearn .fe-bul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.flatearn .fe-bul li { position: relative; padding-left: 24px; font-size: 17px; line-height: 1.5; }
.flatearn .fe-bul li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 8px;
	width: 11px;
	height: 11px;
	border-radius: 6px;
	background: #FF7350;
}

/* ---------- 7. Compare ---------- */
.flatearn .fe-compare-sec { padding: 96px 0 56px; }
.flatearn .fe-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.flatearn .fe-plan { border: 1px solid #E6E6E6; border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.flatearn .fe-plan--peach { background: #FFE8E3; border-color: #FFE8E3; }
.flatearn .fe-kicker { font-size: 14px; font-weight: 600; color: #5E6162; text-transform: uppercase; letter-spacing: 0.5px; }
.flatearn .fe-kicker--accent { color: #C2401F; }
.flatearn .fe-plan__btn { align-self: flex-start; }

/* ---------- 8. Partner quote (hidden until there is a real quote) ---------- */
.flatearn .fe-quote-sec { padding: 24px 0 56px; }
.flatearn .fe-quote {
	margin: 0;
	border: 2px dashed #D2D2D2;
	border-radius: 20px;
	padding: 40px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: center;
}
.flatearn .fe-quote blockquote { margin: 0; font-family: 'Roboto Slab', serif; font-size: 26px; line-height: 1.4; max-width: 820px; }
.flatearn .fe-quote figcaption { font-size: 16px; color: #4F5253; }

/* ---------- 9. FAQ ---------- */
.flatearn .fe-faq-sec { padding: 56px 0 96px; }
.flatearn .fe-faq { border-bottom: 1px solid #E6E6E6; }
.flatearn .fe-faq summary {
	list-style: none;
	min-height: 64px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 18px 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	color: #3A3A3A;
	cursor: pointer;
}
.flatearn .fe-faq summary::-webkit-details-marker { display: none; }
.flatearn .fe-faq summary:hover { color: #C2401F; }
.flatearn .fe-faq summary:focus-visible { outline: 2px solid #C2401F; outline-offset: 2px; }
.flatearn .fe-faq__sign { display: block; flex: none; width: 20px; text-align: center; line-height: 1; }
.flatearn .fe-faq__sign::before { content: "+"; font-size: 26px; color: #C2401F; }
.flatearn .fe-faq[open] .fe-faq__sign::before { content: "\2212"; }
.flatearn .fe-faq p { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: #4F5253; max-width: 780px; }

/* ---------- 10. CTA ---------- */
.flatearn .fe-cta-sec { padding: 0 0 96px; }
.flatearn .fe-cta {
	background: #3A3A3A;
	color: #FFFFFF;
	border-radius: 24px;
	padding: 64px 56px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 18px;
}
.flatearn .fe-cta p { font-size: 18px; line-height: 1.6; max-width: 700px; color: #F2F2F2; }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
	.flatearn .fe-hero { padding-top: 110px; }
	.flatearn .fe-steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; width: 100%; }
	.flatearn .fe-features,
	.flatearn .fe-compare { grid-template-columns: minmax(0, 1fr); }
	.flatearn .fe-features { max-width: 640px; margin: 0 auto; width: 100%; }
}

/* ---------- Mobile: everything stacks to one column ---------- */
@media (max-width: 767px) {
	.flatearn .fe-wrap { padding: 0 20px; }
	.flatearn .fe-hero { padding-top: 96px; }
	.flatearn .fe-hero__inner { padding-top: 32px; padding-bottom: 40px; gap: 40px; }
	.flatearn .fe-hero__copy,
	.flatearn .fe-hero__visual,
	.flatearn .fe-lives__copy,
	.flatearn .fe-lives__visual,
	.flatearn .fe-calc__inputs,
	.flatearn .fe-calc__result,
	.flatearn .fe-panel__copy,
	.flatearn .fe-panel .fe-bul { flex-basis: 100%; }
	.flatearn .fe-h1 { font-size: 36px; }
	.flatearn .fe-h2 { font-size: 30px; }
	.flatearn .fe-h2--calc { font-size: 28px; }
	.flatearn .fe-h3--panel { font-size: 24px; }
	.flatearn .fe-h3--plan { font-size: 22px; }
	.flatearn .fe-lead,
	.flatearn .fe-sub { font-size: 17px; }
	.flatearn .fe-phone { display: none; }
	.flatearn .fe-hero__visual { padding-bottom: 0; }
	.flatearn .fe-badge { right: 12px; }
	.flatearn .fe-hero__shot { height: auto; max-height: 260px; }

	.flatearn .fe-steps-sec { padding: 64px 0 32px; }
	.flatearn .fe-step__media { height: 340px; padding: 24px 20px 0; }
	.flatearn .fe-step1__img { width: 250px; }

	.flatearn .fe-lives-sec { padding: 40px 0; }
	.flatearn .fe-lives { gap: 36px; }
	.flatearn .fe-site { padding: 0 14px; }
	.flatearn .fe-site__links span:not(.is-active) { display: none; }
	.flatearn .fe-embed__shot { height: 240px; }
	.flatearn .fe-embed__shot img { margin-top: -40px; }

	.flatearn .fe-calc-sec { padding: 40px 0 56px; }
	.flatearn .fe-calc { padding: 28px 20px; gap: 32px; border-radius: 20px; }
	.flatearn .fe-calc__result { padding: 24px; }
	.flatearn .fe-calc__monthly { font-size: 44px; }
	.flatearn .fe-calc__yearly { font-size: 30px; }

	.flatearn .fe-features-sec { padding: 32px 0 56px; }
	.flatearn .fe-card__media { height: 220px; padding: 20px 20px 0; }
	.flatearn .fe-card__body { padding: 20px 20px 24px; }
	.flatearn .fe-pair__a,
	.flatearn .fe-pair__b { width: calc(50% - 8px); }

	.flatearn .fe-tabs-sec { padding: 56px 0; }
	.flatearn .fe-tablist { border-radius: 20px; }
	.flatearn .fe-tab { padding: 0 14px; font-size: 14px; }
	.flatearn .fe-panel { padding: 24px 20px; gap: 24px; }

	.flatearn .fe-compare-sec { padding: 64px 0 40px; }
	.flatearn .fe-plan { padding: 24px 20px; }

	.flatearn .fe-faq-sec { padding: 40px 0 64px; }
	.flatearn .fe-faq summary { font-size: 16px; }

	.flatearn .fe-cta-sec { padding: 0 0 64px; }
	.flatearn .fe-cta { padding: 40px 24px; border-radius: 20px; }
	.flatearn .fe-cta p { font-size: 16px; }
}
