/**
 * EP Rewards landing — page styles.
 *
 * Ported 1:1 from the design handoff (dist/index.html <style>). Loaded ONLY on
 * pages using the "EP Rewards Landing" template, after the pinned eag-frontend
 * snapshot. Every selector is scoped to body.ep-rl so plugin CSS that survives
 * pruning cannot out-specify it. The handoff's :root rules are applied to
 * body.ep-rl, which is visually identical because html carries no background.
 */

html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body.ep-rl { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #0c375a; background: #f7fafc; font-synthesis: none; margin: 0; min-width: 320px; }
/* Element resets use :where() so they keep the handoff's element-level
   specificity and never override .eag-btn / .eag-input / .eag-terms a. */
:where(body.ep-rl) *,
:where(body.ep-rl) { box-sizing: border-box; }
:where(body.ep-rl) button,
:where(body.ep-rl) input { font: inherit; }
:where(body.ep-rl) button,
:where(body.ep-rl) a { -webkit-tap-highlight-color: transparent; }
:where(body.ep-rl) a { color: inherit; }

.ep-rl .container { width: min(100% - 48px, 1200px); margin-inline: auto; }

.ep-rl .landing {
	--eag-primary: #1970b7;
	--eag-accent: #2d89ef;
	--eag-ink: #0f2740;
	--eag-ink-2: #45566d;
	--eag-ink-3: #64748b;
	--eag-line: rgba(15, 40, 70, .12);
	--eag-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
	--eag-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding: 40px 0 48px;
	background: radial-gradient(circle at 15% 16%, #eaf4fb 0, transparent 32%), linear-gradient(180deg, #f7fafc 0%, #fff 100%);
}
.ep-rl .landing > .container { width: min(100% - 48px, 1120px); }

.ep-rl .page-logo { display: flex; align-items: center; justify-content: center; gap: 11px; width: max-content; max-width: 100%; margin: 0 auto 25px; text-decoration: none; }
.ep-rl .page-logo img:first-child { display: block; width: 49px; height: auto; }
.ep-rl .page-logo img:last-child { display: block; width: 180px; height: auto; }
.ep-rl .page-logo:focus-visible { outline: 3px solid #6bb9ef; outline-offset: 5px; border-radius: 4px; }

.ep-rl .layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: stretch; box-shadow: 0 25px 55px #0c375a14; border: 1px solid #dbe7f0; border-radius: 20px; overflow: hidden; background: #fff; }

.ep-rl .offer { background: linear-gradient(155deg, #0c375a 0%, #104774 59%, #1970b7 130%); color: #fff; padding: 51px 50px 44px; min-height: 635px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.ep-rl .offer::before { content: ""; position: absolute; width: 450px; height: 450px; border: 1px solid #ffffff1d; border-radius: 50%; right: -240px; top: 7%; box-shadow: 0 0 0 70px #ffffff09, 0 0 0 140px #ffffff07; pointer-events: none; }
.ep-rl .offer > * { position: relative; }
.ep-rl .offer-label { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; border: 1px solid #ffffff4d; background: #ffffff14; border-radius: 999px; padding: 8px 12px; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 700; }
.ep-rl .offer-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #77d3ff; }
.ep-rl .points-lockup { margin-top: 58px; display: flex; align-items: baseline; gap: 13px; }
.ep-rl .points-number { font-size: clamp(6.2rem, 10.5vw, 10.25rem); line-height: .85; font-weight: 800; letter-spacing: -.095em; color: #fff; font-variant-numeric: tabular-nums; }
.ep-rl .points-word { font-size: 1.42rem; line-height: 1.1; font-weight: 750; letter-spacing: -.035em; }
.ep-rl .offer h1 { font-size: clamp(2rem, 3vw, 2.85rem); line-height: 1.09; letter-spacing: -.045em; margin: 30px 0 14px; max-width: 420px; }
.ep-rl .offer-copy { font-size: 1.04rem; line-height: 1.65; color: #d8ebf9; max-width: 410px; margin: 0; }
.ep-rl .offer-bottom { margin-top: auto; padding-top: 42px; border-top: 1px solid #ffffff33; display: flex; align-items: center; gap: 12px; font-size: .89rem; line-height: 1.45; color: #dceefa; }
.ep-rl .offer-bottom svg { flex: 0 0 auto; color: #a9dcfa; }
/* Was an inline style attribute in the handoff. */
.ep-rl .offer-bottom a { color: #fff; text-underline-offset: 3px; }

.ep-rl .signup { padding: 43px 51px 40px; }
.ep-rl .signup-kicker { color: #1970b7; font-size: .73rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 8px; }
.ep-rl .signup h2 { font-size: 2rem; line-height: 1.16; letter-spacing: -.045em; margin: 0 0 7px; color: #0c375a; }
.ep-rl .signup-intro { font-size: .91rem; line-height: 1.55; color: #5b7185; margin: 0 0 25px; }
.ep-rl .signup .eag-grid { gap: 16px; }
.ep-rl .signup .eag-label { font-size: .72rem; margin-bottom: 7px; }
.ep-rl .signup .eag-input { border-color: #cddbe6; }
.ep-rl .signup .eag-terms { font-size: .86rem; line-height: 1.45; color: #39556b; margin: 18px 0 0; }
.ep-rl .signup .eag-terms a { text-decoration: underline; text-underline-offset: 2px; border: 0; }
.ep-rl .newsletter-choice { padding: 16px 17px; background: #eff7fd; border: 1px solid #c9e3f5; border-radius: 10px; }
.ep-rl .newsletter-choice .eag-check { margin-top: 2px; }
.ep-rl .newsletter-copy { display: block; color: #0c375a; line-height: 1.42; font-size: .93rem; }
.ep-rl .newsletter-copy strong { display: block; font-weight: 750; }
.ep-rl .newsletter-copy small { display: block; color: #526f85; font-size: .83rem; margin-top: 3px; }
.ep-rl .signup .eag-actions { margin-top: 21px; }
.ep-rl .signup-foot { margin: 17px 0 0; color: #6b7e8d; text-align: center; font-size: .82rem; line-height: 1.5; }
.ep-rl .signup-foot a { font-weight: 650; color: #1970b7; text-underline-offset: 3px; }
.ep-rl .privacy-note { font-size: .78rem; color: #738494; text-align: center; margin: 11px 0 0; }
.ep-rl .privacy-note a { color: #1970b7; text-underline-offset: 2px; }

.ep-rl .site-disclaimer { background: #fff; padding: 27px 0; border-top: 1px solid #edf1f5; color: #7a8791; font-size: .72rem; line-height: 1.65; text-align: center; }
.ep-rl .site-disclaimer p { margin: 0 auto; max-width: 1120px; }

/* ── Live form states (not in the static handoff; hidden until needed) ──── */
.ep-rl .signup .eag-error,
.ep-rl .signup .eag-note { margin-top: 16px; }
.ep-rl .signup .eag-error:focus { outline: none; }
.ep-rl .signup .eag-input[aria-invalid="true"] { border-color: #d6455a; }
.ep-rl .signup .eag-input[aria-invalid="true"]:focus { border-color: #d6455a; box-shadow: 0 0 0 3px rgba(214, 69, 90, .16); }
.ep-rl .signup .eag-terms.is-invalid .eag-check { border-color: #d6455a; }
.ep-rl .signup .eag-btn:disabled { cursor: default; }

/* ── Access-gate neutralisation (belt and braces; its hooks are removed) ── */
html.eag-has-overlay:has(> body.ep-rl) { overflow: visible !important; }
body.ep-rl #eag-overlay { display: none !important; }

@media (max-width: 1120px) {
	.ep-rl .offer { padding-inline: 37px; }
	.ep-rl .signup { padding-inline: 38px; }
}

@media (max-width: 850px) {
	.ep-rl .layout { grid-template-columns: 1fr; }
	.ep-rl .offer { min-height: 0; padding: 33px 38px 30px; }
	.ep-rl .points-lockup { margin-top: 18px; }
	.ep-rl .points-number { font-size: 6.6rem; }
	.ep-rl .offer h1 { font-size: 2rem; margin: 18px 0 9px; }
	.ep-rl .offer-bottom { margin-top: 23px; padding-top: 18px; }
	.ep-rl .signup { padding: 36px 38px 40px; }
}

@media (max-width: 560px) {
	.ep-rl .container,
	.ep-rl .landing > .container { width: min(100% - 32px, 1120px); }
	.ep-rl .landing { padding: 32px 0 38px; }
	.ep-rl .page-logo { margin-bottom: 21px; }
	.ep-rl .page-logo img:first-child { width: 42px; }
	.ep-rl .page-logo img:last-child { width: 155px; }
	.ep-rl .layout { border-radius: 14px; }
	.ep-rl .offer { padding: 25px 25px 24px; }
	.ep-rl .offer-label { font-size: .64rem; }
	.ep-rl .points-lockup { margin-top: 20px; gap: 10px; }
	.ep-rl .points-number { font-size: 5.25rem; }
	.ep-rl .points-word { font-size: 1.07rem; }
	.ep-rl .offer h1 { font-size: 1.7rem; margin-top: 16px; }
	.ep-rl .offer-copy { font-size: .93rem; line-height: 1.5; }
	.ep-rl .offer-bottom { margin-top: 19px; padding-top: 15px; font-size: .77rem; }
	.ep-rl .signup { padding: 30px 24px 32px; }
	.ep-rl .signup h2 { font-size: 1.73rem; }
	.ep-rl .signup-intro { margin-bottom: 20px; }
	.ep-rl .signup .eag-grid { grid-template-columns: 1fr; gap: 14px; }
	.ep-rl .signup .eag-col-2 { grid-column: auto; }
}
