/*
 * Lifestyle Loans and Lending — the whole site's styles.
 *
 * Rebuilt from the old SilverStripe theme (Tailwind CSS, compiled), without Tailwind:
 * every measurement here reproduces what the old theme drew, so the pages look the same,
 * but the markup is plain semantic HTML with one class per component.
 *
 * 1. Tokens      — brand palette, then the roles components use. Change colours and
 *                  type HERE; components never use a raw colour.
 * 2. Base        — a reset (the same starting point the old theme had), then elements.
 * 3. Layout      — the page width and the page header (banner photo, title).
 * 4. Components  — header, hero, cards, sections, forms, FAQs, articles, footer…
 * 5. Referral tool — the installable app's own header and form.
 */

/* ── 1. Tokens ─────────────────────────────────────────────────────────────── */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/poppins-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/poppins-800-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Brand palette: navy-to-blue "primary", farm-green "secondary", slate and stone greys */
  --ll-primary-50: rgb(234 242 251);
  --ll-primary-100: rgb(214 229 247);
  --ll-primary-200: rgb(173 202 240);
  --ll-primary-300: rgb(133 175 232);
  --ll-primary-400: rgb(92 148 225);
  --ll-primary-500: rgb(50 121 217);
  --ll-primary-700: rgb(28 81 152);
  --ll-primary-800: rgb(21 61 114);
  --ll-primary-900: rgb(14 42 77);
  --ll-secondary-700: rgb(31 114 64);
  --ll-secondary-800: rgb(21 78 44);
  --ll-slate-50: rgb(248 250 252);
  --ll-slate-100: rgb(241 245 249);
  --ll-slate-200: rgb(226 232 240);
  --ll-slate-300: rgb(203 213 225);
  --ll-slate-400: rgb(148 163 184);
  --ll-slate-500: rgb(100 116 139);
  --ll-slate-600: rgb(71 85 105);
  --ll-slate-700: rgb(51 65 85);
  --ll-slate-800: rgb(30 41 59);
  --ll-slate-900: rgb(15 23 42);
  --ll-stone-100: rgb(245 245 244);
  --ll-stone-600: rgb(87 83 78);
  --ll-stone-700: rgb(68 64 60);
  --ll-stone-800: rgb(41 37 36);
  --ll-stone-950: rgb(12 10 9);
  --ll-gray-200: rgb(229 231 235);
  --ll-gray-500: rgb(107 114 128);
  --ll-gray-700: rgb(55 65 81);
  --ll-gray-900: rgb(17 24 39);
  --ll-white: #fff;

  /* Roles */
  --color-page: var(--ll-slate-50);
  --color-surface: var(--ll-white);
  --color-panel: var(--ll-stone-100);          /* form and article side panels */
  --color-text: var(--ll-slate-800);
  --color-text-soft: var(--ll-slate-600);       /* body copy in prose */
  --color-text-muted: var(--ll-slate-500);      /* dates, small labels */
  --color-text-strong: var(--ll-slate-900);
  --color-heading-form: var(--ll-gray-900);
  --color-rule: var(--ll-slate-200);
  --color-rule-strong: var(--ll-slate-300);
  --color-hr: var(--ll-gray-200);
  --color-marker: var(--ll-slate-400);
  --color-brand: var(--ll-primary-700);
  --color-brand-strong: var(--ll-primary-800);
  --color-brand-deep: var(--ll-primary-900);
  --color-brand-tint: var(--ll-primary-50);
  --color-brand-tint-strong: var(--ll-primary-100);
  --color-on-brand: var(--ll-white);
  --color-on-deep: var(--ll-primary-100);       /* footer text */
  --color-link: var(--ll-primary-700);
  --color-link-hover: var(--ll-primary-800);
  --color-link-active: var(--ll-primary-900);
  --color-link-line: var(--ll-primary-300);
  --color-link-line-hover: var(--ll-primary-400);
  --color-link-line-active: var(--ll-primary-500);
  --color-focus: var(--ll-primary-500);
  --color-call: var(--ll-secondary-700);
  --color-call-hover: var(--ll-secondary-800);
  --color-hero-shade: rgb(14 42 77 / 60%);
  --color-page-current: #476d95;               /* the current page in pagination */
  --color-error: rgb(239 68 68);
  --color-success: var(--ll-secondary-700);

  /* Type. The body text is the visitor's system font: the old theme asked for
     Source Sans 3, but wrote it in a way browsers ignore, so the system font is what
     people have always seen. Headings are Poppins. */
  --font-body: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-display: Poppins, ui-sans-serif, system-ui, "Segoe UI", Arial;
  --text-xs: .75rem;   --leading-xs: 1rem;
  --text-sm: .875rem;  --leading-sm: 1.25rem;
  --text-base: 1rem;   --leading-base: 1.5rem;
  --text-lg: 1.125rem; --leading-lg: 1.75rem;
  --text-xl: 1.25rem;  --leading-xl: 1.75rem;
  --text-2xl: 1.5rem;  --leading-2xl: 2rem;
  --text-3xl: 1.875rem; --leading-3xl: 2.25rem;
  --text-4xl: 2.25rem; --leading-4xl: 2.5rem;
  --text-5xl: 3rem;
  --leading-relaxed: 1.625;

  /* Space, shape, depth */
  --wrap: 80rem;
  --radius-sm: .375rem;
  --radius: .5rem;
  --radius-lg: .75rem;
  --radius-xl: 1rem;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
  --shadow-soft: 0 10px 30px -12px rgb(0 0 0 / .15);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --lift: translateY(-.125rem);
}

/* ── 2. Base ───────────────────────────────────────────────────────────────── */

*, ::before, ::after { box-sizing: border-box; border: 0 solid var(--ll-gray-200); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; font-family: var(--font-body); -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background: var(--color-page);
}
@media (min-width: 768px) { body { font-size: 18px; } }
hr { height: 0; color: inherit; border-top-width: 1px; margin: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
blockquote, dl, dd, figure, p, pre { margin: 0; }
ol, ul, menu { list-style: none; margin: 0; padding: 0; }
img, svg, video, iframe { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button, input, optgroup, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; padding: 0; }
button, select { text-transform: none; }
button, input[type="button"], input[type="submit"] { -webkit-appearance: button; background: transparent; }
button, [role="button"] { cursor: pointer; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { opacity: 1; color: var(--color-marker); }
summary { display: list-item; }
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
[hidden] { display: none !important; }

/* The page heading. Inner pages draw theirs smaller (see .page-title). */
h1 { margin-bottom: 1rem; font-family: var(--font-display); font-size: var(--text-4xl); line-height: 1.4; font-weight: 800; }
@media (min-width: 768px) { h1 { font-size: var(--text-5xl); } }

/* Icons are inline SVGs sized like the text around them. */
.icon { display: inline-block; width: auto; height: 1em; overflow: visible; fill: currentColor; vertical-align: -.125em; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: .5rem 1rem; background: var(--color-surface); color: var(--color-link); }
.skip-link:focus { left: 0; }

/* ── 3. Layout ─────────────────────────────────────────────────────────────── */

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }
/* Inner pages widen their side margins from 1024px. */
.wrap--page { padding-inline: 1rem; }
@media (min-width: 1024px) { .wrap--page { padding-inline: 1.5rem; } }

/* Inner pages: a wide, short photo across the top… */
.page-banner { position: relative; isolation: isolate; overflow: hidden; width: 100%; aspect-ratio: 1920 / 260; background: #000; }
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* …then the page's title. */
.page-title { max-width: var(--wrap); margin: 2.5rem auto 1rem; }
.page-title h1 { font-size: var(--text-3xl); line-height: var(--leading-3xl); font-weight: 600; }
@media (min-width: 768px) { .page-title h1 { font-size: 50px; } }

/* A white band of content below the title. */
.band { background: var(--color-surface); padding-block: 1.5rem; }
@media (min-width: 768px) { .band { padding-block: 3rem; } }

/* ── 4. Components ─────────────────────────────────────────────────────────── */

/* Prose: text written in the CMS (articles, legal pages, intros). */
.prose h2 { font-family: var(--font-display); font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: 700; }
.prose h3 { font-family: var(--font-display); font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: 700; }
.prose h4 { font-family: var(--font-display); font-size: var(--text-base); line-height: var(--leading-base); font-weight: 700; }
@media (min-width: 768px) {
  .prose h2 { font-size: var(--text-2xl); line-height: var(--leading-2xl); }
  .prose h3 { font-size: var(--text-xl); line-height: var(--leading-xl); }
  .prose h4 { font-size: var(--text-lg); line-height: var(--leading-lg); }
}
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; }
/* Legal-page contact tables (privacy policy and complaints): stay inside the page
   on a phone, and let long web addresses and email addresses wrap instead of
   widening the page. On a narrow screen each row stacks, so a label sits above
   its details. */
.privacy-policy table,
.complaints table { width: 100%; table-layout: fixed; margin-bottom: 1rem; border-collapse: collapse; }
.privacy-policy td,
.complaints td { vertical-align: top; overflow-wrap: anywhere; padding: .75rem .75rem .75rem 0; }
.privacy-policy td p,
.complaints td p { margin-bottom: 0; }
.privacy-policy tr + tr td,
.complaints tr + tr td { border-top: 1px solid var(--color-rule); }
.complaints { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .privacy-policy table, .privacy-policy tbody, .privacy-policy tr, .privacy-policy td,
  .complaints table, .complaints tbody, .complaints tr, .complaints td { display: block; width: 100%; }
  .privacy-policy td,
  .complaints td { padding: .2rem 0; }
  .privacy-policy td:first-child,
  .complaints td:first-child { padding-top: .85rem; }
  .privacy-policy tr + tr td,
  .complaints tr + tr td { border-top: 0; }
  .privacy-policy tr + tr td:first-child,
  .complaints tr + tr td:first-child { border-top: 1px solid var(--color-rule); padding-top: .85rem; }
}
.prose ul, .prose ol { color: var(--ll-slate-700); }
.prose ul:not(.checklist) { list-style: disc; padding-left: 1.5rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; font-variant-numeric: tabular-nums; }
.prose ul > li + li, .prose ol > li + li { margin-top: .5rem; }
.prose li::marker { color: var(--color-marker); }
.prose li > ul, .prose li > ol { margin-block: .5rem; padding-left: 1.5rem; }
.prose li > ul > li + li, .prose li > ol > li + li { margin-top: .25rem; }
.prose ul ul { list-style: circle; }
.prose li { line-height: var(--leading-relaxed); }
.prose p, .prose li { color: var(--color-text-soft); }
.prose a:not(.button) {
  color: var(--color-link);
  text-decoration: underline 2px var(--color-link-line);
  text-underline-offset: 4px;
  transition: color .15s var(--ease), text-decoration-color .15s var(--ease);
}
.prose a:not(.button):visited { color: rgb(28 81 152 / 90%); }
.prose a:not(.button):hover { color: var(--color-link-hover); text-decoration-color: var(--color-link-line-hover); }
.prose a:not(.button):active { color: var(--color-link-active); text-decoration-color: var(--color-link-line-active); }
.prose a:not(.button):focus-visible { border-radius: .125rem; outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--color-link-line); }
.prose .photo-credit { margin-bottom: 0; }
/* Small print ("general in nature" notices) at the end of an article. */
.prose p.disclaimer { font-size: 12px; line-height: 1.4; }
.prose img.right { float: right; max-width: 50%; margin: 0 0 15px 15px; }
.prose img.left { float: left; max-width: 50%; margin: 0 15px 15px 0; }
/* Prose on a dark photo or band. */
.prose--on-dark h1, .prose--on-dark h2, .prose--on-dark h3, .prose--on-dark p, .prose--on-dark li { color: var(--color-on-brand); }
/* A section's own heading (larger than a heading inside text). */
.section-title, .prose .section-title { font-family: var(--font-display); font-size: var(--text-3xl); line-height: var(--leading-3xl); font-weight: 800; }
@media (min-width: 768px) { .section-title, .prose .section-title { font-size: var(--text-4xl); line-height: var(--leading-4xl); } }

/* A list of reasons, each ticked. */
.checklist { display: grid; gap: 1rem; margin-top: 1.5rem; margin-bottom: 1rem; }
.checklist li { position: relative; padding-left: 2.5rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .375rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-sm);
  background: var(--color-brand-tint-strong);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: .4375rem;
  top: .75rem;
  width: .875rem;
  height: 1rem;
  background: var(--color-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Buttons. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-lg);
  color: var(--color-on-brand);
  background: var(--color-brand);
  box-shadow: var(--shadow-soft);
  transition: all .2s var(--ease);
}
.button:hover { transform: var(--lift); background: var(--color-brand-strong); box-shadow: var(--shadow-lg); }
.button:focus-visible, .button-light:focus-visible, .button-outline:focus-visible, .call-button:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--color-focus); }
/* White on a photo or the blue band. */
.button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  color: var(--color-brand-deep);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  transition: all .2s var(--ease);
}
.button-light:hover { transform: var(--lift); box-shadow: var(--shadow-lg); }
/* An outline on the blue band. */
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: var(--radius-lg);
  font-weight: 600;
  color: var(--color-on-brand);
  transition: all .2s var(--ease);
}
.button-outline:hover { background: rgb(255 255 255 / 10%); }

/* The strip across the top of every page. */
.topbar { color: var(--color-on-brand); background: var(--color-brand-deep); }
.topbar p { display: flex; align-items: center; justify-content: center; padding-block: .5rem; font-size: var(--text-sm); line-height: var(--leading-sm); }
@media (min-width: 768px) { .topbar p { font-size: var(--text-base); line-height: var(--leading-base); } }

/* Header: logo, menu and call button; it stays at the top and slims down once the page scrolls. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 80%);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-rule);
}
.site-header__inner { max-width: var(--wrap); margin-inline: auto; padding-inline: .5rem; }
@media (min-width: 768px) { .site-header__inner { padding-inline: 1rem; } }
@media (min-width: 1024px) { .site-header__inner { padding-inline: 1.5rem; } }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .5rem; transition: padding .2s var(--ease); }
@media (min-width: 768px) { .site-header__bar { padding-block: 1rem; } }
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { width: auto; height: 5rem; margin-block: -.5rem; transition: all .2s var(--ease); }
@media (min-width: 768px) { .site-header__logo img { height: 120px; } }
.site-header.is-shrunk .site-header__bar { padding-block: .25rem; }
.site-header.is-shrunk .site-header__logo img { height: 3rem; }
.site-header.is-shrunk .call-button { padding: .5rem 1rem; font-size: var(--text-base); line-height: var(--leading-base); }
@media (min-width: 768px) {
  .site-header.is-shrunk .site-header__bar { padding-block: .5rem; }
  .site-header.is-shrunk .site-header__logo img { height: 3.5rem; }
}

.site-nav { display: none; align-items: center; gap: 1.75rem; font-size: var(--text-base); line-height: var(--leading-base); }
.site-nav a:hover { color: var(--color-brand); }
@media (min-width: 768px) { .site-nav { display: flex; font-size: var(--text-lg); line-height: var(--leading-lg); } }
.call-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  color: var(--color-on-brand);
  background: var(--color-brand);
  box-shadow: var(--shadow-sm);
  transition: all .2s var(--ease);
}
.call-button:hover { transform: var(--lift); background: var(--color-brand-strong); box-shadow: var(--shadow-lg); }
@media (min-width: 768px) { .call-button { font-size: var(--text-lg); line-height: var(--leading-lg); } }
.call-button--green { background: var(--color-call); }
.call-button--green:hover { background: var(--color-call-hover); }

/* Phones: a round call button and the menu button instead of the menu. */
.site-header__phone { display: flex; align-items: center; gap: .75rem; }
@media (min-width: 768px) { .site-header__phone { display: none; } }
.round-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  color: var(--color-on-brand);
  background: var(--color-call);
  box-shadow: var(--shadow-sm);
}
.round-call:hover { background: var(--color-call-hover); }
.menu-button { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm); font-size: var(--text-lg); }
.menu-button:hover { background: var(--ll-slate-100); }
.mobile-menu { border-top: 1px solid var(--color-rule); background: var(--color-surface); }
.mobile-menu ul { display: grid; gap: .75rem; padding: .75rem 1rem; font-size: var(--text-base); line-height: var(--leading-base); }
.mobile-menu a:hover { color: var(--color-brand); }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }
.site-nav a[aria-current="page"], .mobile-menu a[aria-current="page"] { color: inherit; }

/* Home page hero: rotating photos under a blue shade, with the slogan over them. */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #000; }
.hero__slides { position: absolute; inset: 0; display: flex; transition: transform .6s var(--ease); }
.hero__slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__shade {
  position: absolute;
  inset: 0;
  background: var(--color-hero-shade);
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 30%, transparent 100%);
          mask-image: linear-gradient(to right, #000 0%, #000 30%, transparent 100%);
}
.hero__inner { position: relative; max-width: var(--wrap); min-height: 420px; margin-inline: auto; padding: 5rem 1rem; }
@media (min-width: 768px) { .hero__inner { min-height: 500px; padding-block: 6rem; } }
@media (min-width: 1024px) { .hero__inner { min-height: 600px; } }
.hero__text { max-width: 48rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.hero__call { display: inline-flex; align-items: center; gap: .5rem; color: rgb(255 255 255 / 90%); }
.hero__call:hover { color: var(--color-on-brand); }
@media (prefers-reduced-motion: reduce) { .hero__slides { transition: none; } }

/* Home page: four strengths in a strip under the hero. */
.strengths { background: var(--color-surface); border-bottom: 1px solid var(--color-rule); }
.strengths ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding-block: 1.5rem; font-size: var(--text-base); line-height: var(--leading-base); color: var(--ll-slate-700); }
.strengths li { display: flex; align-items: center; gap: 1rem; }
.strengths__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--radius); font-size: var(--text-xl); line-height: var(--leading-xl); color: var(--color-brand); background: var(--color-brand-tint); }
@media (min-width: 768px) { .strengths ul { grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: var(--text-lg); line-height: var(--leading-lg); } }

/* A block of CMS text (home intro, Brokers, Bank Statements). */
.text-block { padding-block: 3rem; }
.text-block .prose { max-width: 56rem; font-size: var(--text-lg); line-height: var(--leading-lg); color: var(--ll-slate-700); }
@media (min-width: 768px) { .text-block .prose { font-size: var(--text-xl); line-height: var(--leading-xl); } }

/* A home page section with its own heading. */
.feature-section { padding-block: 2rem; }
@media (min-width: 768px) { .feature-section { padding-block: 4rem; } }
.feature-section__head { padding-top: 1rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .feature-section__head { padding-top: 0; } }

/* Cards: a photo, a title and "Read more" (home page, Lending Insights). */
.card-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transition: all .3s var(--ease);
}
.card:hover { transform: translateY(-.25rem); border-color: var(--ll-primary-200); box-shadow: 0 0 0 1px var(--color-brand-tint-strong), var(--shadow-xl); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-xl) var(--radius-xl) 0 0; transition: transform .3s var(--ease); }
.card:hover img { transform: scale(1.02); }
.card__body { padding: 1.5rem; }
.card__title { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: 600; }
.card__more { display: inline-flex; align-items: center; gap: .5rem; margin-top: .75rem; color: var(--color-brand); }
.card__more:hover { color: var(--color-brand-strong); }
/* Lending Insights: an article's card has its date and summary too. */
.card-grid--articles { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1rem; }
@media (min-width: 640px) { .card-grid--articles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .card-grid--articles { gap: 2rem; } }
.card-grid--articles .card__title { margin-top: .25rem; font-size: inherit; line-height: inherit; }
.card-grid--articles .card__more:hover { text-decoration: underline; text-underline-offset: 4px; }
.card__date { font-size: var(--text-xs); line-height: var(--leading-xs); letter-spacing: .025em; text-transform: uppercase; color: var(--color-text-muted); }
.card__summary { font-size: var(--text-base); line-height: var(--leading-base); color: var(--color-text-strong); }

/* Page numbers under the article cards. */
.pagination { display: flex; align-items: center; justify-content: center; gap: .25rem; margin-top: 1.5rem; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  font-size: var(--text-base);
  line-height: var(--leading-base);
  font-weight: 500;
  color: var(--ll-gray-700);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.pagination a:hover { color: var(--color-on-brand); background: var(--ll-gray-500); }
.pagination [aria-current="page"] { font-weight: 600; color: var(--color-on-brand); background: var(--color-page-current); }
.pagination .pagination__step { color: var(--ll-gray-500); }
.pagination .pagination__step:hover { background: var(--ll-gray-700); }

/* Home page: photo beside a ticked list. */
.split { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; max-width: var(--wrap); margin: 0 auto 1rem; padding: 1rem; }
.split__photo { order: 1; width: 100%; }
.split__photo img { width: 100%; border: 1px solid var(--ll-gray-200); border-radius: var(--radius); background: var(--color-surface); }
.split__text { order: 2; width: 100%; }
.split__action { margin-top: 1.5rem; }
@media (min-width: 768px) {
  .split { flex-direction: row; gap: 2rem; }
  .split__photo { order: 2; width: 50%; }
  .split__text { order: 1; width: 50%; }
}

/* The blue "Ready to talk?" band. */
.cta-band { color: var(--color-on-brand); background: var(--color-brand); }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2.5rem; }
.cta-band__text { text-align: center; }
.cta-band h2 { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.25; font-weight: 700; }
.cta-band p { margin: .5rem 0 1rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.cta-band .button-light { padding-inline: 1.5rem; color: var(--color-brand-strong); }
@media (min-width: 768px) {
  .cta-band__inner { flex-direction: row; }
  .cta-band__text { text-align: left; }
  .cta-band h2 { font-size: var(--text-3xl); }
}

/* Home page: contact details beside the form, on a pale blue fade. */
.contact-section { position: relative; padding-block: 2rem; }
@media (min-width: 768px) { .contact-section { padding-block: 4rem; } }
.contact-section::before { content: ""; position: absolute; inset: 0; z-index: -10; background: linear-gradient(to bottom, var(--color-brand-tint), var(--color-surface)); }
.contact-section__inner { display: flex; flex-direction: column; gap: 1rem; }
.contact-section__details { padding: 1.5rem; }
.contact-section__details .section-title { margin-bottom: var(--leading-xl); }
.contact-section__form { margin-top: 2rem; padding: 2rem; }
@media (min-width: 768px) {
  .contact-section__inner { flex-direction: row; align-items: center; }
  .contact-section__details { order: 1; flex: 0 0 50%; }
  .contact-section__details .section-title { margin-bottom: var(--leading-2xl); }
  .contact-section__form { order: 2; flex: 0 1 50%; margin-top: 0; padding: 0 0 0 60px; }
}
@media (min-width: 1024px) {
  .contact-section__inner { gap: 3rem; }
  .contact-section__details { flex-basis: 33.333333%; }
  .contact-section__form { flex-basis: 66.666667%; }
}
.contact-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.contact-link .icon { font-size: var(--text-base); color: var(--color-brand-strong); }
/* A sub-heading in a contact block, drawn at the in-text heading size. */
.contact-section__details h3 { font-size: var(--text-xl); line-height: var(--leading-xl); }
@media (min-width: 768px) { .contact-section__details h3 { font-size: var(--text-2xl); line-height: var(--leading-2xl); } }

/* Forms. */
.form-card { display: grid; gap: 1.25rem; padding: 1.5rem; border: 1px solid var(--color-rule); border-radius: var(--radius-xl); font-size: var(--text-base); line-height: var(--leading-base); background: var(--color-surface); box-shadow: var(--shadow-soft); }
.form-panel { padding: 1.5rem; border-radius: var(--radius); background: var(--color-panel); box-shadow: var(--shadow-md); }
.form__fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.form__fields > * { grid-column: span 12 / span 12; }
.form__fields > .field--half { grid-column: span 6 / span 6; }
.form__group { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; grid-column: 1 / -1; }
.form__group > * { grid-column: span 12 / span 12; }
.form__group > .field--half { grid-column: span 6 / span 6; }
@media (min-width: 1024px) { .form__fields > .field--third-lg, .form__group > .field--third-lg { grid-column: span 4 / span 4; } }
.field label { display: inline; }
.form--strong-labels .field label { margin-bottom: 5px; font-weight: 700; }
.field__control {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  background: var(--color-surface);
}
.field__control:focus { outline: 2px solid transparent; border-color: var(--color-focus); box-shadow: 0 0 0 2px var(--ll-primary-200); }
.field__error { display: block; margin: -.75rem 0 .5rem; font-size: var(--text-sm); color: var(--color-error); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__gap { height: .5rem; }
.form__actions { display: flex; align-items: center; justify-content: center; margin-top: 1rem; }
.form__submit {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-lg);
  color: var(--color-on-brand);
  background: var(--color-brand);
  box-shadow: var(--shadow-soft);
  transition: all .2s var(--ease);
}
.form__submit:hover { transform: var(--lift); background: var(--color-brand-strong); box-shadow: var(--shadow-lg); }
.form__submit:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--color-focus); }
.form__message { margin-top: 1rem; font-weight: 600; text-align: center; }
.form__message.is-sent { color: var(--color-success); }
.form__message.is-error { color: var(--color-error); }
.form__heading { font-size: var(--text-3xl); line-height: var(--leading-3xl); font-weight: 600; color: var(--color-heading-form); }
.form__subheading { font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: 600; color: var(--color-heading-form); }

/* Contact Us page: details on the left, form on the right. */
.contact-page { display: grid; align-items: start; gap: 3rem; }
@media (min-width: 768px) { .contact-page { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-details { margin-top: 2rem; }
.contact-details > * + * { margin-top: 1rem; }
.contact-details hr { border-color: var(--color-hr); }
.contact-details dt { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); }
.contact-details dd { font-weight: 600; color: var(--color-text); }
.contact-details dd a:hover { text-decoration: underline; }
.contact-details__phone { font-size: 20px; }

/* FAQs: questions that open to show their answer. */
.faqs-band { background: var(--color-surface); }
.faqs { max-width: 64rem; margin-inline: auto; padding: 3rem 1rem; }
.faqs__list { border: 1px solid var(--color-rule); border-radius: var(--radius-xl); background: var(--color-surface); }
.faqs__list > details + details { border-top: 1px solid var(--color-rule); }
.faqs details { padding: 1.25rem; }
.faqs summary { display: flex; align-items: center; justify-content: space-between; list-style: none; font-weight: 500; cursor: pointer; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary .icon { flex: none; transition: transform .15s var(--ease); }
.faqs details[open] summary .icon { transform: rotate(180deg); }
.faqs__answer { margin-top: .75rem; color: var(--color-text-soft); }

/* An article: its heading and the way back, then the text beside a details panel. */
.article-head { display: flex; flex-direction: column; align-items: flex-start; max-width: var(--wrap); margin: 2.5rem auto 1rem; }
.article-head h1 { order: 2; font-size: var(--text-3xl); line-height: var(--leading-3xl); font-weight: 600; }
.back-link {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  white-space: nowrap;
  color: var(--color-brand);
  transition: all .2s var(--ease);
}
.back-link:hover { color: var(--color-brand-strong); background: var(--color-page); }
@media (min-width: 768px) {
  .article-head { flex-direction: row; }
  .article-head h1 { order: 1; font-size: 50px; line-height: 1.3; }
  .back-link { order: 2; width: auto; margin: .5rem 0 0 3rem; padding: .5rem 1rem; border: 1px solid var(--color-brand); }
  .back-link:hover { transform: var(--lift); border-color: var(--color-brand-strong); }
}
.article { display: flex; flex-direction: column; max-width: var(--wrap); margin-inline: auto; }
.article__text { flex: 1 1 auto; width: 100%; min-width: 0; margin-bottom: 2rem; overflow-wrap: anywhere; }   /* long web addresses wrap on phones */
@media (min-width: 768px) { .article { flex-direction: row; } .article__text { padding-right: 4rem; } }
.article__details { flex: none; width: 100%; padding: .5rem; border-radius: var(--radius-sm); font-size: var(--text-base); line-height: var(--leading-base); color: var(--ll-stone-800); background: var(--color-panel); }
@media (min-width: 768px) { .article__details { width: 24rem; } }
.article__details > * + * { margin-top: 2rem; }
.article__details img { width: 100%; margin-bottom: 1rem; }
.article__details dl { display: flex; flex-direction: column; padding-inline: 1rem; }
.article__details dt { margin-bottom: .25rem; font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: 600; text-transform: uppercase; color: var(--ll-stone-950); }
.article__details dd { color: var(--ll-stone-700); }
.article__read { padding-inline: 1rem; font-style: italic; color: var(--ll-stone-600); }

/* Footer: logo and legal links, the menu, and the licence lines. */
.site-footer { color: var(--color-on-deep); background: var(--color-brand-deep); }
.site-footer__inner { display: grid; gap: 2rem; padding-block: 3rem; font-size: var(--text-base); line-height: var(--leading-base); }
@media (min-width: 768px) { .site-footer__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); } .site-footer__about { grid-column: span 2 / span 2; } }
.site-footer__logo { display: inline-flex; align-items: center; }
.site-footer__logo img { width: auto; height: 70px; }
.site-footer__about p:first-of-type { margin-top: .75rem; }
.site-footer__heading { font-weight: 600; }
.site-footer ul { margin-top: .75rem; }
.site-footer li + li { margin-top: .5rem; }
.site-footer a:hover { color: var(--color-on-brand); text-decoration: underline; text-underline-offset: 4px; }

/* ── 5. Referral tool ──────────────────────────────────────────────────────── */
/* The installable app: no top strip, a header that doesn't follow you down, and a
   home button in place of the menu. */
.tool-header { position: relative; }
.tool-header__actions { display: flex; align-items: center; gap: .75rem; }
.tool-header .call-button { display: none; }
@media (min-width: 768px) { .tool-header .call-button { display: inline-flex; } .tool-header .round-call { display: none; } }
.tool-title { max-width: var(--wrap); margin-inline: auto; padding: 3rem 1rem 0; }
.tool-title__install { width: 100%; text-align: center; }
@media (min-width: 768px) {
  .tool-title { display: flex; }
  .tool-title > :first-child { width: 66.666667%; }
  .tool-title__install { width: 33.333333%; margin: 1rem 0 0 1.5rem; text-align: right; }
}
.tool-body { padding-block: 1rem 2rem; }
@media (min-width: 1024px) { .tool-body { padding-bottom: 1rem; } }
.tool-body__inner { width: 100%; max-width: var(--wrap); margin-inline: auto; }
.tool-body__intro { width: 100%; margin-bottom: 1.5rem; padding-inline: 1rem; }
.tool-body__form { width: 100%; }
.tool-body__form .form-panel { margin-bottom: 3rem; padding: 1rem; border-radius: 0; box-shadow: none; }
@media (min-width: 768px) {
  .tool-body { padding-top: 2rem; }
  .tool-body__inner { display: flex; padding-inline: 1rem; }
  .tool-body__intro { width: 33.333333%; padding-inline: 0; }
  .tool-body__form { width: 66.666667%; margin-left: 1.5rem; }
  .tool-body__form .form-panel { padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-md); }
}
.site-footer--tool .site-footer__about { grid-column: auto; }
@media (min-width: 768px) { .site-footer--tool .site-footer__about { grid-column: span 3 / span 3; } }
.install-dialog { width: 100%; max-width: 28rem; padding: 1.5rem 1.5rem 1.25rem; border: 0; border-radius: var(--radius-xl); color: var(--ll-slate-700); background: var(--color-surface); box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); }
.install-dialog::backdrop { background: rgb(15 23 42 / 60%); }
.install-dialog h2 { margin-bottom: .75rem; font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: 600; color: var(--color-text-strong); }
.install-dialog__body { font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.install-dialog__body > * + * { margin-top: .75rem; }
.install-dialog__close { position: absolute; right: .75rem; top: .75rem; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid var(--color-rule); border-radius: 9999px; color: var(--color-text-muted); }
.install-dialog__close:hover { background: var(--ll-slate-100); }
