/* ===================================================================
   Easy As Loans — styles
   Brand: Purple #48206E · Grey #58595B (from brand identity guidelines)
   Type:  Mulish (web), Arial fallback. No gradients. Clean & sharp.
   =================================================================== */

:root {
  --purple: #48206e;
  --purple-dark: #371851;
  --purple-tint: #f5f2f9;
  --purple-line: #e6dff0;
  --grey: #58595b;
  --ink: #2c2c2f;
  --muted: #6c6c70;
  --white: #ffffff;
  --bg-alt: #f7f5fa;
  --line: #e7e4ec;
  --border: #b6b6b6;     /* neutral hairline for form controls */
  --track: #d4d4d4;      /* neutral grey for bars/sliders */
  --radius: 5px;
  --maxw: 1140px;
  --pad: 24px;
  --font: "Mulish", Arial, "Helvetica Neue", Helvetica, sans-serif;
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--ink); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* --------------------------- Typography -------------------------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--purple);
}
.section-sub {
  margin-top: 14px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ----------------------------- Buttons --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--purple); color: var(--white); border-color: var(--purple); }
.btn-primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); }

.btn-ghost { background: transparent; color: var(--purple); border-color: var(--purple-line); }
.btn-ghost:hover { border-color: var(--purple); background: var(--purple-tint); }

.btn-light { background: var(--white); color: var(--purple); border-color: var(--white); }
.btn-light:hover { background: var(--purple-tint); border-color: var(--purple-tint); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ------------------------------ Logo ----------------------------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 52px; height: auto; }
.logo-stroke {
  fill: none;
  stroke: var(--purple);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo-words { display: flex; flex-direction: column; line-height: 1; }
.logo-easy {
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--purple);
}
.logo-loans {
  font-weight: 900;
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--grey);
  align-self: flex-end;
  margin-top: 1px;
}
/* Reversed (on purple) */
.logo-reversed .logo-stroke { stroke: var(--white); }
.logo-reversed .logo-easy { color: var(--white); }
.logo-reversed .logo-loans { color: rgba(255,255,255,.85); }

/* ----------------------------- Header ---------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
}
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; flex-direction: column; text-align: right; line-height: 1.2; }
.header-phone-label { font-size: 0.72rem; color: var(--muted); letter-spacing: .02em; }
.header-phone-number { font-size: 1.15rem; font-weight: 800; color: var(--purple); }
.header-phone:hover .header-phone-number { color: var(--purple-dark); }

/* ------------------------------ Hero ----------------------------- */
.hero {
  padding: clamp(56px, 8vw, 96px) 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero-title {
  font-size: clamp(2.1rem, 5.4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--purple);
  margin-bottom: 22px;
  overflow-wrap: break-word;
}
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--grey); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.hero-media { display: flex; justify-content: flex-end; }
.hero-img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
}

/* ----------------------------- Reviews --------------------------- */
.reviews { padding: clamp(56px, 8vw, 90px) 0; background: var(--bg-alt); overflow: hidden; }
.reviews-head { margin-bottom: 40px; }

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Soft fade on the edges, solid colours only (no gradient fill on content) */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.review-card {
  margin: 0;
  width: 300px;
  height: 380px;
  flex: 0 0 auto;
  background: var(--purple-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.review-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --------------------------- Why choose -------------------------- */
.why { padding: clamp(56px, 8vw, 96px) 0; }
.why-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.why-item { background: var(--white); padding: 30px 28px; }
.why-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--purple-line);
}
.why-item p { color: var(--grey); font-size: 0.97rem; }

/* ----------------------------- Process --------------------------- */
.process { padding: clamp(56px, 8vw, 96px) 0; background: var(--bg-alt); }
.process-steps {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.process-num {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 900;
  font-style: italic;
  color: var(--purple);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.process-heading { font-size: 1.1rem; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.process-step p { color: var(--grey); font-size: 0.95rem; }

/* ------------------------------- FAQ ----------------------------- */
.faq { padding: clamp(56px, 8vw, 96px) 0; }
.faq-inner { max-width: 820px; }
.faq-list { margin-top: 36px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--purple);
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { color: var(--purple); }
.faq-body { padding: 0 40px 24px 0; }
.faq-body p { color: var(--grey); }

/* ---------------------------- CTA band --------------------------- */
.cta-band { background: var(--purple); color: var(--white); padding: clamp(52px, 7vw, 84px) 0; }
.cta-inner { max-width: 720px; }
.cta-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; color: var(--white); }
.cta-text { margin-top: 12px; color: rgba(255,255,255,.85); font-size: 1.05rem; }
.cta-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ----------------------------- Footer ---------------------------- */
.site-footer { background: var(--purple); color: rgba(255,255,255,.82); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.footer-tag { margin-top: 18px; max-width: 34ch; color: rgba(255,255,255,.72); font-size: 0.95rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,.55); font-weight: 700; margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,.85); transition: color .15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-static { color: rgba(255,255,255,.72); }

.footer-legal { border-top: 1px solid rgba(255,255,255,.15); padding: 26px 0 36px; }
.footer-licence { font-weight: 700; color: var(--white); font-size: 0.92rem; }
.footer-disclaimer { margin-top: 10px; font-size: 0.82rem; color: rgba(255,255,255,.6); max-width: 90ch; }
.footer-copy { margin-top: 14px; font-size: 0.82rem; color: rgba(255,255,255,.6); }

/* ------------------------------ Modal ---------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(28, 16, 44, .55); }
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid #999;
  border-radius: 3px;
  padding: 40px;
  box-shadow: 0 6px 22px rgba(0,0,0,.18);
}
.modal-close {
  position: absolute; top: 12px; right: 14px;
  width: 36px; height: 36px;
  border: none; background: transparent;
  font-size: 1.9rem; line-height: 1; color: var(--muted);
}
.modal-close:hover { color: var(--purple); }
.modal .btn { border-radius: 2px; }
.modal-title { font-size: 1.6rem; font-weight: 800; color: var(--purple); }
.modal-sub { margin-top: 10px; color: var(--grey); font-size: 0.98rem; }
.modal-sub a { color: var(--purple); font-weight: 700; }

/* ------------------------------- Form ---------------------------- */
.finance-form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.req { color: var(--purple); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--white);
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
}
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #c0392b; }
.field-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--grey); }
.field-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--purple); flex: 0 0 auto; }
.form-foot { font-size: 0.82rem; color: var(--muted); text-align: center; }
.form-error { color: #c0392b; font-size: 0.88rem; font-weight: 700; text-align: center; }

/* ----------------------- Multi-step lead form -------------------- */
.form-top { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin-bottom: 12px; }
.form-back {
  border: none; background: transparent; padding: 4px 8px 4px 0;
  font-family: inherit; font-weight: 700; font-size: 0.9rem; color: var(--purple);
}
.form-back:hover { color: var(--purple-dark); }
.form-step-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }

.form-progress { height: 4px; background: var(--track); margin-bottom: 28px; }
.form-progress-bar { height: 100%; width: 16%; background: var(--purple); }

.form-step { display: none; }
.form-step.is-active { display: block; }

.step-title { font-size: 1.35rem; font-weight: 800; color: var(--purple); line-height: 1.25; }
.step-sub { margin-top: 8px; color: var(--grey); font-size: 0.96rem; }
.step-actions { margin-top: 24px; }

/* Square options with icons (step 1) */
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.opt {
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: var(--white); border: 1px solid var(--border); border-radius: 2px;
  font-family: inherit; cursor: pointer;
}
.opt:hover { border-color: #6e6e6e; }
.opt.is-selected { background: var(--purple); border-color: var(--purple); }
.opt-icon { width: 56px; height: 56px; color: var(--purple); }
.opt.is-selected .opt-icon { color: var(--white); }
.opt-label { font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.opt.is-selected .opt-label { color: var(--white); }

/* Choice cards (loan type, use) */
.choice-grid { display: grid; gap: 12px; margin-top: 24px; }
.choice-grid.two { grid-template-columns: 1fr 1fr; }
.choice {
  display: flex; flex-direction: column; gap: 5px; text-align: left;
  padding: 18px 18px; min-height: 104px;
  background: var(--white); border: 1px solid var(--border); border-radius: 2px;
  font-family: inherit; cursor: pointer;
}
.choice:hover { border-color: #6e6e6e; }
.choice.is-selected { border-color: var(--purple); background: var(--purple); }
.choice.is-selected .choice-title { color: var(--white); }
.choice.is-selected .choice-desc { color: rgba(255,255,255,.82); }
.choice-title { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.choice-desc { font-size: 0.88rem; color: var(--muted); }

/* Chips (term, state) */
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip-grid.states { display: grid; grid-template-columns: repeat(4, 1fr); }
.chip {
  padding: 11px 16px; background: var(--white); border: 1px solid var(--border);
  border-radius: 2px; font-family: inherit; font-weight: 700; font-size: 0.95rem;
  color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: #6e6e6e; }
.chip.is-selected { border-color: var(--purple); background: var(--purple); color: var(--white); }

/* Slider (amount, year) */
.slider-value { margin-top: 24px; text-align: center; font-size: 1.8rem; font-weight: 800; color: var(--purple); }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; margin-top: 18px; border-radius: 0; background: var(--track); outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 2px; background: var(--purple); cursor: pointer; border: 1px solid var(--purple-dark); }
.slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 2px; background: var(--purple); cursor: pointer; border: 1px solid var(--purple-dark); }
.slider-ends { display: flex; justify-content: space-between; margin-top: 12px; font-size: 0.8rem; color: var(--muted); font-weight: 600; }

/* --------------------------- Form success ------------------------ */
.modal-success { text-align: center; padding: 16px 0; }
.success-tick { width: 64px; height: 64px; margin: 0 auto 18px; }
.success-tick svg { width: 100%; height: 100%; }
.success-tick .logo-stroke { stroke: var(--purple); stroke-width: 5; }
.modal-success .btn { margin-top: 22px; }

/* --------------------------- Legal pages ------------------------- */
.legal { padding: clamp(48px, 7vw, 80px) 0; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--purple); }
.legal .legal-updated { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }
.legal .legal-note {
  margin: 26px 0;
  padding: 16px 20px;
  background: var(--purple-tint);
  border-left: 3px solid var(--purple);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--grey);
  font-size: 0.95rem;
}
.legal h2 { font-size: 1.25rem; font-weight: 800; color: var(--purple); margin: 36px 0 10px; }
.legal p { color: var(--grey); margin-bottom: 14px; }
.legal a.back-link { display: inline-block; margin-top: 30px; font-weight: 700; color: var(--purple); }

/* --------------------------- Accessibility ----------------------- */
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 3px; }
.body-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
}

/* ---------------------------- Responsive ------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { justify-content: flex-start; order: -1; }
  .hero-img { max-width: 420px; aspect-ratio: 16 / 10; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .header-phone-label { display: none; }
  .header-actions { gap: 12px; }
  .header-phone-number { font-size: 1rem; }
  .logo-easy { font-size: 1.45rem; }
  .logo-mark { width: 44px; }
  .why-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .modal-panel { padding: 28px 22px; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
  .choice-grid.two { grid-template-columns: 1fr; }
  .choice { min-height: 0; padding: 18px; }
  .step-title { font-size: 1.25rem; }
  .slider-value { font-size: 1.9rem; }
}
@media (max-width: 420px) {
  .header-actions .btn-primary { display: none; } /* keep header clean; phone + hero CTA remain */
}
