/* Easy Payday Loans — design concepts v4. Bright, Canadian, keyword-led. */
:root {
  --font-display: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-num: "IBM Plex Sans", "Segoe UI", sans-serif;
  --ink: #1a1a1a;
  --muted: #4a4a4a;
  --paper: #ffffff;
  --void: #ffffff;
  --accent: #e11d2e;
  --accent-2: #b51220;
  --line: rgba(26,26,26,.12);
  --card: #ffffff;
  --glow: 0 10px 24px rgba(225,29,46,.28);
  --radius: 1.15rem;
  --max: 72rem;
  --ease: cubic-bezier(.22,1,.36,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.25rem; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--void);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 40;
  background: #111; color: #fff; padding: .5rem 1rem; border-radius: .5rem;
}
.skip:focus { top: 1rem; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

body.white-maple {
  --void: #ffffff;
  --paper: #fff7f7;
  --ink: #1a1a1a;
  --muted: #4d4d4d;
  --accent: #e11d2e;
  --accent-2: #b51220;
  --line: rgba(225,29,46,.16);
  --card: #ffffff;
  --font-display: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --hero-bg: linear-gradient(180deg, #fff 0%, #fff7f7 70%, #fff 100%);
}
body.daybreak {
  --void: #fff8f0;
  --paper: #fff3e4;
  --ink: #2a1a12;
  --muted: #5c4638;
  --accent: #c7452c;
  --accent-2: #d4a03c;
  --line: rgba(199,69,44,.18);
  --card: #fffdf9;
  --font-display: "Source Sans 3", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --glow: 0 10px 24px rgba(199,69,44,.25);
  --hero-bg: linear-gradient(180deg, #fff8f0 0%, #ffe9d2 55%, #fff8f0 100%);
}
body.clearwater {
  --void: #f4f9fc;
  --paper: #eaf3f9;
  --ink: #143044;
  --muted: #3b5568;
  --accent: #e11d2e;
  --accent-2: #2f6f9e;
  --line: rgba(47,111,158,.2);
  --card: #ffffff;
  --font-display: "DM Sans", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --glow: 0 10px 24px rgba(47,111,158,.22);
  --hero-bg: linear-gradient(180deg, #f4f9fc 0%, #e7f1f8 60%, #f4f9fc 100%);
}

.brand { display: flex; align-items: center; text-decoration: none; color: inherit; }
.brand-lockup { height: 2.85rem; width: auto; display: block; }
@media (max-width: 800px) {
  .brand-lockup { height: 2.35rem; }
}

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: center; padding: .75rem 0;
  background: var(--void);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.nav.is-scrolled, .nav.is-solid, .nav.apply-top {
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.nav-in { display: flex; align-items: center; gap: 1rem; width: min(var(--max), calc(100% - 2rem)); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 1.15rem; }
.nav-links a { text-decoration: none; font-size: .94rem; color: var(--ink); }
.nav-links a:hover { color: var(--accent); }
.nav-toggle {
  display: none; margin-left: auto;
  width: 2.6rem; height: 2.6rem; border-radius: .8rem;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; font: inherit;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 700; letter-spacing: .01em;
  border-radius: 999px; padding: .95rem 1.45rem; border: 0; cursor: pointer;
  font-family: inherit; font-size: 1rem; line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.btn-glow { background: var(--accent); color: #fff; box-shadow: var(--glow); }
.btn-glow:hover { transform: translateY(-2px); background: var(--accent-2); }
body.daybreak .btn-glow { color: #fff; }
body.daybreak .btn-glow:hover { background: #a33622; color: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: center;
  background: var(--hero-bg);
  padding: 7.2rem 0 4rem;
  overflow: hidden;
}
.hero-in {
  position: relative; z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  display: grid; gap: 2.2rem; align-items: center;
}
@media (min-width: 960px) {
  .hero-in { grid-template-columns: 1.08fr .92fr; gap: 3rem; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  letter-spacing: .16em; text-transform: uppercase; font-size: .72rem;
  color: var(--accent); font-weight: 700; margin: 0 0 .85rem;
}
.eyebrow .maple {
  width: 1rem; height: 1rem; display: block;
  background: currentColor;
  -webkit-mask: url("../logos/maple.svg") center / contain no-repeat;
  mask: url("../logos/maple.svg") center / contain no-repeat;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.02;
  font-size: clamp(2.5rem, 6.6vw, 4.6rem);
  margin: 0 0 .9rem;
  max-width: 16ch;
  color: var(--ink);
}
.hero-lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 1.4rem; max-width: 38rem; }

.amount-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem 1.2rem;
  box-shadow: 0 18px 40px rgba(0,0,0,.07);
  max-width: 34rem;
}
.amount-card h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 .45rem;
  color: var(--ink);
  font-weight: 700;
}
.amount-display {
  font-family: var(--font-num);
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--accent);
  margin: 0 0 .3rem;
  line-height: 1;
}
.amount-note { margin: 0 0 1rem; color: var(--muted); font-size: .92rem; }
.amount-slider {
  width: 100%; appearance: none; -webkit-appearance: none;
  height: .4rem; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  outline: none; margin: .2rem 0 1.05rem; cursor: pointer;
}
.amount-slider::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.amount-slider::-moz-range-thumb {
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
}
.amount-actions { display: flex; flex-wrap: wrap; gap: .65rem; }

.hero-photo-wrap {
  position: relative;
  border-radius: 1.35rem;
  overflow: hidden;
  min-height: 16rem;
  box-shadow: 0 24px 50px rgba(0,0,0,.12);
  border: 1px solid var(--line);
}
.hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; min-height: 22rem; }

.section, .finale, #how, #easy, #loans, #stories, #why, #find, #contact, #apply { scroll-margin-top: 5.5rem; }
.section { padding: 4.6rem 0; position: relative; background: var(--void); }
.section.alt { background: var(--paper); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  line-height: 1.12; letter-spacing: -.03em; margin: 0 0 .6rem;
  font-weight: 700;
}
.section-head p { margin: 0; color: var(--muted); }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.05);
}
.card .num { font-family: var(--font-display); color: var(--accent); font-size: 1.35rem; font-weight: 700; margin-bottom: .3rem; }
.card h3 { margin: 0 0 .3rem; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.loan-grid { display: grid; gap: .7rem; grid-template-columns: repeat(3, 1fr); }
.loan-card {
  display: flex; gap: .8rem; align-items: flex-start;
  border-radius: 1rem; border: 1px solid var(--line);
  background: var(--card); padding: 1rem 1.05rem;
  text-decoration: none;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.loan-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.loan-card svg { width: 1.65rem; height: 1.65rem; flex: 0 0 auto; color: var(--accent); margin-top: .1rem; }
.loan-card strong { display: block; margin-bottom: .12rem; }
.loan-card span { color: var(--muted); font-size: .88rem; }

.split { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 2.4rem; } }
.split img, .frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 1.2rem; min-height: 17rem; }
.frame { border-radius: 1.2rem; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.1); }

.benefits { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
.benefit {
  border: 1px solid var(--line); border-radius: 1rem;
  padding: 1.1rem 1.15rem; background: var(--card);
}
.benefit strong { display: block; margin-bottom: .2rem; }
.benefit p { margin: 0; color: var(--muted); font-size: .95rem; }

.city-grid { display: grid; gap: .65rem; grid-template-columns: repeat(5, 1fr); }
.city-link {
  display: block; border: 1px solid var(--line); border-radius: .9rem;
  padding: .85rem 1rem; background: var(--card); font-weight: 650;
}
.city-link small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; margin-top: .15rem; }

.finale { text-align: center; padding: 4.4rem 0 5.6rem; background: var(--paper); }
.finale h2 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.3rem); margin: 0 0 .75rem; letter-spacing: -.03em; }
.finale p { color: var(--muted); margin: 0 auto 1.4rem; max-width: 34rem; }

.footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.6rem;
  color: var(--muted);
  background: var(--paper);
}
.foot-in { display: grid; gap: .85rem; }
.foot-name { margin: 0 0 .2rem; color: var(--ink); font-weight: 700; }
.foot-address, .foot-hours { margin: 0 0 .2rem; font-size: .95rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .85rem 1.2rem; }
.foot-nav a { text-decoration: none; color: var(--ink); }
.foot-nav a:hover { color: var(--accent); }
.legal { font-size: .86rem; margin: .4rem 0 0; }

body.apply-page { background: #fff; }
.apply-shell { min-height: 100svh; display: flex; flex-direction: column; }
.apply-top { position: static; }
.apply-body { flex: 1; width: min(56rem, calc(100% - 1.5rem)); margin: 1.5rem auto 2rem; }
.apply-body iframe { width: 100%; min-height: 78vh; border: 0; border-radius: 1rem; background: #fff; border: 1px solid var(--line); }
.amount-chosen { margin: 0 0 1rem; color: var(--muted); }
.contact-page { padding: 8.5rem 0 4rem; min-height: 70svh; background: var(--void); }
.contact-block h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.03em; margin: 0 0 .8rem; }
.contact-block .addr, #contact .addr { font-size: 1.15rem; margin: 0 0 .35rem; line-height: 1.5; }
.contact-block .hours, #contact .hours { color: var(--muted); margin: 0 0 1.2rem; }

.contact-form {
  max-width: 32rem;
  margin: 0 0 1.6rem;
  display: grid;
  gap: .85rem;
}
.contact-form .field { display: grid; gap: .35rem; }
.contact-form label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.contact-form .optional { font-weight: 400; color: var(--muted); font-size: .88em; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .9rem;
  padding: .85rem 1rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.contact-form .btn { justify-self: start; margin-top: .15rem; }
.contact-form .form-status {
  margin: 0;
  padding: .85rem 1rem;
  border-radius: .9rem;
  background: #eef8f0;
  color: #1a5c2e;
  font-weight: 600;
}
.contact-form .form-status[hidden] { display: none; }
.contact-form.is-sent .btn { display: none; }
.contact-apply { margin: 0; }
#contact a[href*="contact.html"] { color: var(--accent); font-weight: 600; text-decoration: none; }
#contact a[href*="contact.html"]:hover { text-decoration: underline; }


.concept-chip {
  position: fixed; right: .85rem; top: 5.15rem; z-index: 25;
  font-size: .75rem; letter-spacing: .04em;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: .4rem .8rem;
  text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.concept-chip:hover { border-color: var(--accent); color: var(--accent); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

body.gallery { background: #fff; color: #1a1a1a; font-family: "IBM Plex Sans", "Segoe UI", sans-serif; }
.gallery-hero { padding: 4.5rem 0 2rem; }
.gallery-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: 0 0 .6rem; letter-spacing: -.03em; line-height: 1.08; }
.gallery-hero p { color: #4a4a4a; max-width: 44rem; }
.concept-cards { display: grid; gap: 1.2rem; grid-template-columns: 1fr; padding-bottom: 4rem; }
@media (min-width: 900px) { .concept-cards { grid-template-columns: repeat(3, 1fr); } }
.pick {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid rgba(26,26,26,.12); border-radius: 1.3rem; overflow: hidden;
  background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.05);
  transition: transform .35s var(--ease), border-color .35s;
}
.pick:hover { transform: translateY(-5px); border-color: #e11d2e; }
.pick-photo { aspect-ratio: 16/11; object-fit: cover; width: 100%; }
.pick-body { padding: 1.1rem 1.15rem 1.3rem; }
.pick-logo { margin-bottom: .7rem; }
.pick-logo img { width: 100%; height: auto; }
.pick p { margin: 0; color: #4a4a4a; font-size: .95rem; }

@media (max-width: 800px) {
  .grid-3, .loan-grid, .city-grid, .benefits { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
    padding: 1rem 1.25rem 1.2rem;
    background: var(--void);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0,0,0,.08);
  }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero { padding-top: 6.4rem; }
  .hero-photo-wrap img { min-height: 15rem; }
}
@media (max-width: 520px) {
  .grid-3, .loan-grid, .benefits { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .pick { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

img[src*="photo-canadian-flag"] { object-position: 70% 72%; }

/* --- Wow layer: bright full-bleed heroes, glass, glow, sticky bar, motion --- */
.btn-glow {
  position: relative;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent), var(--glow); }
  50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--accent) 0%, transparent), 0 12px 36px color-mix(in srgb, var(--accent) 42%, transparent); }
}

.hero.fullbleed {
  min-height: 100svh;
  padding: 7.4rem 0 5.5rem;
  background: var(--void);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hero-bg img, .finale-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
}
.hero-bg img { animation: ken 22s ease-in-out alternate infinite; }
@keyframes ken {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-wash {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--void) 94%, transparent) 0%, color-mix(in srgb, var(--void) 82%, transparent) 38%, color-mix(in srgb, var(--void) 30%, transparent) 72%, color-mix(in srgb, var(--void) 18%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--void) 55%, transparent) 0%, transparent 22%, transparent 78%, var(--void) 100%);
  pointer-events: none;
}
body.daybreak .hero-wash {
  background:
    linear-gradient(105deg, rgba(255,248,240,.95) 0%, rgba(255,243,228,.82) 36%, rgba(255,233,210,.28) 70%, rgba(255,248,240,.12) 100%),
    linear-gradient(180deg, rgba(255,248,240,.5) 0%, transparent 24%, transparent 76%, #fff8f0 100%);
}
body.daybreak .hero-wash::before {
  content: "";
  position: absolute; inset: -10% 20% auto auto; width: 55%; height: 70%;
  background: radial-gradient(circle at 70% 20%, rgba(212,160,60,.35), transparent 62%);
  animation: sun 10s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes sun { from { opacity: .55; transform: scale(1); } to { opacity: 1; transform: scale(1.08); } }
body.clearwater .hero-wash {
  background:
    linear-gradient(105deg, rgba(244,249,252,.95) 0%, rgba(234,243,249,.8) 36%, rgba(244,249,252,.28) 70%, rgba(244,249,252,.12) 100%),
    linear-gradient(180deg, rgba(244,249,252,.5) 0%, transparent 24%, transparent 76%, #f4f9fc 100%);
}
.hero.fullbleed .hero-in {
  z-index: 3;
  grid-template-columns: 1fr;
  max-width: min(40rem, calc(100% - 2rem));
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  width: auto;
}

.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,255,255,.68));
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 22px 50px rgba(0,0,0,.08);
}
.amount-card.glass { max-width: 34rem; }
.card.glass, .loan-card.glass, .benefit.glass, .city-link.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(255,255,255,.76));
}

.drift { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.drift-leaf {
  position: absolute; top: -8%;
  width: 18px; height: 18px;
  background: var(--accent);
  opacity: .42;
  -webkit-mask: url("../logos/maple.svg") center / contain no-repeat;
  mask: url("../logos/maple.svg") center / contain no-repeat;
  animation-name: fall-a;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
body.daybreak .drift-leaf:nth-child(odd) { background: #d4a03c; }
body.clearwater .drift-leaf:nth-child(odd) { background: #2f6f9e; }
.drift-leaf.s2 { animation-name: fall-b; }
.drift-leaf.s3 { animation-name: fall-c; }
@keyframes fall-a {
  0% { transform: translate3d(0,-6vh,0) rotate(0); }
  50% { transform: translate3d(36px,50vh,0) rotate(170deg); }
  100% { transform: translate3d(-18px,110vh,0) rotate(360deg); }
}
@keyframes fall-b {
  0% { transform: translate3d(0,-6vh,0) rotate(24deg); }
  50% { transform: translate3d(-44px,52vh,0) rotate(-150deg); }
  100% { transform: translate3d(28px,110vh,0) rotate(-340deg); }
}
@keyframes fall-c {
  0% { transform: translate3d(0,-6vh,0) rotate(-20deg); }
  50% { transform: translate3d(22px,48vh,0) rotate(200deg); }
  100% { transform: translate3d(50px,110vh,0) rotate(400deg); }
}

.stats {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin: -2.2rem auto 0; position: relative; z-index: 4;
  width: min(var(--max), calc(100% - 2rem));
}
.stat {
  text-align: center; padding: 1.15rem .8rem 1.05rem;
}
.stat-num {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 700; letter-spacing: -.04em;
  color: var(--accent); line-height: 1;
}
.stat small { display: block; margin-top: .35rem; color: var(--muted); font-size: .92rem; }

.people-frame { overflow: hidden; border-radius: 1.2rem; box-shadow: 0 22px 50px rgba(0,0,0,.1); }
.people-frame img { width: 100%; height: 100%; object-fit: cover; min-height: 18rem; }

.finale.fullbleed {
  position: relative; overflow: hidden;
  padding: 5.6rem 0 6.4rem;
  background: var(--paper);
  min-height: 28rem;
}
.finale-bg { position: absolute; inset: 0; z-index: 0; }
.finale-wash {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--void) 55%, transparent), color-mix(in srgb, var(--void) 82%, transparent) 45%, color-mix(in srgb, var(--void) 92%, transparent));
}
.finale.fullbleed .wrap { position: relative; z-index: 2; }

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: .85rem;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--void) 92%, #fff);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0,0,0,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
  color: var(--ink);
  font-weight: 700;
}
.sticky-bar.show { transform: none; }
.sticky-bar p { margin: 0; font-size: .95rem; }
.sticky-bar .btn { padding: .8rem 1.25rem; }
body.has-sticky { padding-bottom: 4.6rem; }
.concept-chip { top: 5.15rem; bottom: auto; right: .85rem; }

@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr; margin-top: -1.2rem; }
  .hero.fullbleed .hero-in { margin-inline: auto; max-width: min(var(--max), calc(100% - 2rem)); }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-glow, .hero-bg img, .drift-leaf, .hero-wash::before { animation: none !important; }
  .sticky-bar { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .drift { display: none; }
}

@media (max-width: 800px) {
  .hero-wash, body.daybreak .hero-wash, body.clearwater .hero-wash {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--void) 86%, transparent) 0%, color-mix(in srgb, var(--void) 70%, transparent) 42%, color-mix(in srgb, var(--void) 38%, transparent) 100%);
  }
}


/* --- White Maple home preview: blended, loan-related photography (no hard square frames) --- */
.foot-brand { display: inline-block; text-decoration: none; margin-bottom: .55rem; }
.foot-brand img { height: 2.35rem; width: auto; display: block; }

/* Shared picture fill. Photos stay visible even if a mask is ignored. */
.how-photo picture, .easy-photo picture, .story-photo picture, .why-photo picture, .finale-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}
.bleed-photo img,
.story-photo img,
.how-photo img,
.easy-photo img,
.why-photo img,
.finale-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  min-height: 0;
}

/* Soft edge fades use CSS gradients only (no mask file that can 404 and hide the photo).
   Always set the -webkit- prefix for Safari. Overlay fades still show the photo if mask is ignored. */
.soft-fade::after,
.how-photo::after,
.easy-photo::after,
.story-photo::after,
.why-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* HOW: decorative left photo; heading and three steps are centred so a missing photo
   cannot leave a blank column with the cards pushed right. */
.how-band {
  position: relative;
  overflow: hidden;
  background: var(--void);
}
.how-photo {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(38rem, 46%);
  z-index: 0;
  pointer-events: none;
  /* Two-layer mask: fade right into the page, and fade the hard top edge. */
  -webkit-mask-image:
    linear-gradient(90deg, #000 0%, #000 46%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 16%, #000 100%);
  mask-image:
    linear-gradient(90deg, #000 0%, #000 46%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 16%, #000 100%);
  -webkit-mask-size: 100% 100%, 100% 100%;
  mask-size: 100% 100%, 100% 100%;
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-repeat: no-repeat, no-repeat;
  -webkit-mask-position: center, center;
  mask-position: center, center;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.how-photo::after {
  background:
    linear-gradient(180deg, var(--void) 0%, transparent 22%),
    linear-gradient(90deg, transparent 28%, color-mix(in srgb, var(--void) 55%, transparent) 68%, var(--void) 100%);
}
.how-band .wrap { position: relative; z-index: 1; }
.how-band .section-head {
  margin-inline: auto;
  margin-bottom: 1.6rem;
  text-align: center;
  max-width: 40rem;
}
.how-band .grid-3 {
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  justify-content: center;
  text-align: left;
}
.how-band .center { text-align: center; }

/* EASY: full-width photo band that fades into the pink, then centred copy underneath.
   No clip-path ovals — soft CSS gradient masks only. */
.easy-band {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  padding: 0 0 4.4rem;
}
.easy-photo {
  position: relative;
  width: min(64rem, 100%);
  height: 36rem;
  margin: 0 auto;
  z-index: 0;
  pointer-events: none;
  -webkit-clip-path: none;
  clip-path: none;
  /* Soft fade on all four edges — not an oval, not a hard box — so the
     3:2 portrait (face + phone) can show in full. */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 76%, transparent 100%),
                      linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 76%, transparent 100%),
              linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.easy-photo img { object-position: 50% 42%; }
.easy-photo::after {
  background:
    linear-gradient(180deg, var(--paper) 0%, transparent 12%, transparent 74%, var(--paper) 100%),
    linear-gradient(90deg, var(--paper) 0%, transparent 5%, transparent 95%, var(--paper) 100%);
}
.easy-band .wrap {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: -1.8rem;
}
.easy-copy {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  margin-inline: auto;
  padding: 0.4rem 1.25rem 0;
  text-align: center;
  background: none;
  border-radius: 0;
}
.easy-copy .hero-lead { margin-inline: auto; }
.easy-copy .btn { margin-inline: auto; }

/* STORIES: two even columns (car left, home right, then business / education).
   Smaller heading, tighter spacing, CSS-only fades. */
.stories-band {
  position: relative;
  overflow: hidden;
  background: var(--void);
  padding-top: 3.8rem;
  padding-bottom: 3.6rem;
  scroll-margin-top: 6.5rem;
}
.stories-band .section-head {
  margin-inline: auto;
  margin-bottom: 1.35rem;
  text-align: center;
  max-width: 38rem;
}
.stories-band .section-head h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.stories-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .stories-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
.story {
  position: relative;
  min-height: 19.5rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--paper);
}
.story-photo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.story-photo::after {
  background:
    linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--void) 35%, transparent) 78%, var(--void) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--void) 55%, transparent) 0%, transparent 10%, transparent 90%, color-mix(in srgb, var(--void) 55%, transparent) 100%);
}
.story-card {
  position: relative;
  z-index: 2;
  max-width: 18.5rem;
  width: calc(100% - 2rem);
  margin: 0 1rem 1rem;
  padding: 1rem 1.1rem 1.1rem;
}
.story-card h3 { margin: 0 0 .3rem; font-size: 1.12rem; }
.story-card p { margin: 0 0 .8rem; color: var(--muted); font-size: .95rem; }

.story--keys .story-card,
.story--home .story-card,
.story--biz .story-card,
.story--edu .story-card { margin-left: 1rem; margin-right: auto; }
.story--home .story-photo img { object-position: 50% 18%; }



/* WHY: photo is decorative on the right; benefit cards stay in normal flow. */
.why-band {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.why-photo {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(42rem, 48%);
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(270deg, #000 0%, #000 48%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 100%);
  mask-image:
    linear-gradient(270deg, #000 0%, #000 48%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 100%);
  -webkit-mask-size: 100% 100%, 100% 100%;
  mask-size: 100% 100%, 100% 100%;
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-repeat: no-repeat, no-repeat;
  -webkit-mask-position: center, center;
  mask-position: center, center;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.why-photo img { object-position: 30% 50%; }
.why-photo::after {
  background:
    linear-gradient(180deg, var(--paper) 0%, transparent 20%),
    linear-gradient(270deg, transparent 28%, color-mix(in srgb, var(--paper) 50%, transparent) 72%, var(--paper) 100%);
}
.why-band .wrap { position: relative; z-index: 1; }
.why-band .benefits { max-width: 38rem; }

@media (max-width: 800px) {
  .how-band .grid-3 { grid-template-columns: 1fr; max-width: 28rem; }
  .how-photo {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: 100%;
    height: 13.5rem;
    -webkit-mask-image: linear-gradient(180deg, #000 32%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 32%, transparent 100%);
    -webkit-clip-path: none;
    clip-path: none;
  }
  .how-photo::after { background: linear-gradient(180deg, transparent 36%, var(--void) 100%); }
  .how-band { padding-top: 10.5rem; }
  .easy-photo {
    position: relative;
    left: auto;
    top: auto;
    -webkit-transform: none;
    transform: none;
    width: 100%;
    height: 20rem;
    margin: 0 auto;
    -webkit-clip-path: none;
    clip-path: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 62%, transparent 100%),
                        linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 62%, transparent 100%),
                linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .easy-photo::after {
    background:
      linear-gradient(180deg, var(--paper) 0%, transparent 12%, transparent 60%, var(--paper) 100%),
      linear-gradient(90deg, var(--paper) 0%, transparent 8%, transparent 92%, var(--paper) 100%);
  }
  .easy-band .wrap { margin-top: -1.2rem; }
  .easy-copy { margin-inline: auto; padding: .2rem .2rem 0; background: none; text-align: center; }
  .why-photo {
    right: 0;
    left: 0;
    top: 0;
    bottom: auto;
    width: 100%;
    height: 13.5rem;
    -webkit-mask-image: linear-gradient(180deg, #000 32%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 32%, transparent 100%);
  }
  .why-photo::after { background: linear-gradient(180deg, transparent 36%, var(--paper) 100%); }
  .why-band { padding-top: 10.5rem; }
  .why-band .benefits { max-width: none; }
  .story { min-height: 18.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .how-photo img, .easy-photo img, .story-photo img, .why-photo img { animation: none !important; }
}

/* Province tiles on the home page link to province pages */
a.city-link { color: inherit; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
a.city-link:hover, a.city-link:focus-visible { border-color: var(--accent); transform: translateY(-2px); }

/* Top-right Apply now sits in .nav-links, whose link color is dark ink. Keep the button text white. */
.nav-links a.btn-glow,
.nav-links a.btn-glow:hover,
.nav-links a.btn-glow:focus { color: #fff; }
