/* Eezy Finance — shared styles for inner pages. Grey + blue palette, Concept A logo. */
:root {
  --bg: #EFEFEF;
  --surface: #FFFFFF;
  --ink: #1F1F21;
  --muted: #5A6270;
  --line: #D5D7DB;
  --accent: #042CC1;
  --accent-ink: #FFFFFF;
  --accent-soft: #E3E8FA;
  --em: #858D9D;
  --deep: #202833;
  --deep-ink: #EFEFEF;
  --deep-muted: #9CA3B5;
  --l-ink: #202833; --l-sub: #3B4753; --l-accent: #042CC1; --l-tile: #202833; --l-on-tile: #FFFFFF; --l-tile-accent: #7D96FF;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 14px;
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16191F; --surface: #1E232B; --ink: #EFEFEF; --muted: #A3A9B6; --line: #2E3540;
    --accent: #7D96FF; --accent-ink: #0A1236; --accent-soft: #1C2647; --em: #9CA3B5;
    --deep: #202833; --deep-ink: #EFEFEF; --deep-muted: #9CA3B5;
    --l-ink: #FFFFFF; --l-sub: #9CA3B5; --l-accent: #7D96FF; --l-tile: #EFEFEF; --l-on-tile: #202833; --l-tile-accent: #042CC1;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16191F; --surface: #1E232B; --ink: #EFEFEF; --muted: #A3A9B6; --line: #2E3540;
  --accent: #7D96FF; --accent-ink: #0A1236; --accent-soft: #1C2647; --em: #9CA3B5;
  --deep: #202833; --deep-ink: #EFEFEF; --deep-muted: #9CA3B5;
  --l-ink: #FFFFFF; --l-sub: #9CA3B5; --l-accent: #7D96FF; --l-tile: #EFEFEF; --l-on-tile: #202833; --l-tile-accent: #042CC1;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p, ul, ol { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--body); font-weight: 600; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/1 var(--body); padding: 15px 22px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.final .btn-ghost { background: transparent; color: var(--deep-ink); border-color: rgba(255,255,255,.3); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Prototype notice */
.proto { background: var(--accent-soft); font-size: 13.5px; }
.proto .wrap { padding-block: 8px; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo svg { height: 52px; width: auto; display: block; }
nav.main { display: flex; gap: 22px; font-size: 15.5px; color: var(--muted); }
nav.main a { text-decoration: none; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); }
nav.main a[aria-current="page"] { font-weight: 600; }
.head-actions { display: flex; align-items: center; gap: 10px; }
header .btn { padding: 11px 18px; font-size: 15px; }
.mnav { position: relative; display: none; }
.mnav summary { list-style: none; cursor: pointer; font: 600 15px var(--body); padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; display: grid; min-width: 220px; box-shadow: 0 20px 40px -20px rgba(32,40,51,.4); }
.mnav nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.mnav nav a:hover { background: var(--accent-soft); }
@media (max-width: 1120px) { nav.main { display: none; } .mnav { display: block; } }
@media (max-width: 480px) { header .btn { display: none; } .logo svg { height: 44px; } }

/* Page hero */
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-hero .wrap { padding-block: 40px 64px; display: grid; gap: 18px; }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 800; max-width: 16em; }
.page-hero h1 em { font-style: normal; color: var(--em); }
.page-hero .lede { font-size: 19.5px; color: var(--muted); max-width: 36em; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.cta-note { font-size: 14px; color: var(--muted); }

/* Sections */
section.band { padding-block: 72px; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
section.band .wrap > header { max-width: 42em; display: grid; gap: 12px; margin-bottom: 36px; }
section.band h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 700; }
section.band header p { color: var(--muted); font-size: 18px; }

.who { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.who li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: 15.5px; }

.help { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
.help article { display: grid; gap: 8px; align-content: start; border-top: 2px solid var(--ink); padding-top: 18px; }
.help h3 { font-size: 22px; font-weight: 700; }
.help p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.checklist { list-style: none; padding: 0; display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.checklist li { padding: 14px 18px 14px 50px; position: relative; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist li::before { content: ""; position: absolute; left: 18px; top: 18px; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--accent); }
.checklist small { display: block; color: var(--muted); font-size: 14px; }
.aside-note { background: var(--accent-soft); border-radius: var(--r); padding: 22px; display: grid; gap: 8px; }
.aside-note h3 { font-size: 19px; font-weight: 700; }
.aside-note p { color: var(--ink); font-size: 15.5px; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 52em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font: 600 18px/1.4 var(--body); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 500 24px var(--body); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 0 22px; color: var(--muted); display: grid; gap: 10px; max-width: 46em; }

/* Review */
.quote { background: var(--deep); color: var(--deep-ink); border-radius: 22px; padding: 40px; display: grid; gap: 18px; }
.quote blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; letter-spacing: -0.01em; }
.quote figcaption { color: var(--deep-muted); font-size: 15px; display: flex; gap: 12px; align-items: center; }
.stars { color: #E0A526; letter-spacing: 2px; }

/* Related */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.related a { background: var(--surface); padding: 24px; text-decoration: none; display: grid; gap: 6px; }
.related a:hover { background: var(--accent-soft); }
.related h3 { font-size: 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 10px; }
.related h3 span { color: var(--accent); font-family: var(--body); }
.related p { color: var(--muted); font-size: 15px; }

/* About */
.story { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.story .prose { display: grid; gap: 16px; font-size: 18px; max-width: 36em; }
.todo { background: color-mix(in srgb, #E0A526 16%, var(--surface)); border: 1px dashed #B8861A; border-radius: 10px; padding: 12px 14px; font-size: 15px; color: var(--ink); }
.todo b { font-weight: 600; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 12px; align-content: start; }
.photo { aspect-ratio: 4 / 3; max-width: 100%; border-radius: 12px; background: var(--deep); color: var(--deep-muted); display: grid; place-items: center; font: 500 14px var(--body); text-align: center; padding: 12px; }
.person h3 { font-size: 22px; font-weight: 700; }
.person .role { color: var(--accent); font-weight: 600; font-size: 15px; }
.person p { color: var(--muted); font-size: 15.5px; }
.person.hiring { background: transparent; border-style: dashed; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.values article { display: grid; gap: 8px; align-content: start; }
.values h3 { font-size: 20px; font-weight: 700; }
.values p { color: var(--muted); font-size: 15.5px; }
.licence { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 10px; max-width: 52em; }
.licence dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 15.5px; }
.licence dt { color: var(--muted); }
.licence dd { margin: 0; font-family: var(--mono); font-size: 14.5px; }

/* Final CTA */
.final { background: var(--deep); color: var(--deep-ink); }
.final .wrap { padding-block: 72px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; }
.final h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; }
.final p { color: var(--deep-muted); margin-top: 14px; font-size: 18px; }
.final .ctas { justify-content: flex-end; }
.final .btn-primary { background: var(--deep-ink); color: var(--deep); }

/* Footer */
footer.site { background: var(--surface); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer.site .wrap { padding-block: 44px; display: grid; gap: 28px; }
.foot-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-cols div { display: grid; gap: 6px; align-content: start; }
.foot-cols b { color: var(--ink); font-weight: 600; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--ink); }
.legal { display: grid; gap: 10px; max-width: 75em; font-size: 13px; line-height: 1.55; }

@media (max-width: 900px) {
  .help, .split, .story, .final .wrap { grid-template-columns: 1fr; }
  .related, .team { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .final .ctas { justify-content: flex-start; }
  section.band { padding-block: 56px; }
}
@media (max-width: 600px) {
  .related, .team, .values { grid-template-columns: 1fr; }
  .quote { padding: 26px; }
}

/* Legal documents */
.legal-doc .wrap { padding-block: 8px 80px; }
.doc { max-width: 46em; display: grid; gap: 14px; font-size: 16.5px; }
.doc h2 { font-size: 26px; font-weight: 700; margin-top: 30px; }
.doc h3 { font-size: 19px; font-weight: 700; margin-top: 12px; }
.doc ul { padding-left: 22px; display: grid; gap: 6px; }
.doc .meta { color: var(--muted); font-size: 14.5px; }
.doc .tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--line); }
.doc thead th { border-top: 0; font-weight: 600; background: var(--accent-soft); }
.doc .confirm { background: color-mix(in srgb, #E0A526 22%, transparent); border-radius: 4px; padding: 0 4px; font-size: 0.92em; white-space: nowrap; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; }
.toc ol { padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* Cookie consent */
.consent { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.consent-box { pointer-events: auto; max-width: 760px; margin: 0 auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(32,40,51,.45); padding: 18px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.consent-box p { flex: 1 1 320px; font-size: 14.5px; line-height: 1.5; margin: 0; }
.consent-box a { color: var(--accent); }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.consent-actions button { font: 600 14.5px/1 var(--body); padding: 11px 16px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.consent-actions button.accept { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.consent-actions button:focus-visible, .cookie-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cookie-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.cookie-link:hover { color: var(--ink); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 10px; align-content: start; }
.contact-grid .contact-card h2 { font-size: 22px; font-weight: 700; margin: 0; }
.contact-card p { color: var(--muted); font-size: 15.5px; }
.contact-card .big { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--ink); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact-card .btn { justify-self: start; margin-top: 6px; }
.contact-card.primary { background: var(--deep); border-color: var(--deep); color: var(--deep-ink); }
.contact-card.primary h2 { color: var(--deep-ink); }
.contact-card.primary p { color: var(--deep-muted); }
.contact-card.primary .btn-primary { background: var(--deep-ink); color: var(--deep); }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

/* Team headshots and credentials */
.headshot { width: 100%; height: auto; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 22%; border-radius: 12px; display: block; background: var(--deep); }
.creds { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.creds li { padding-left: 24px; position: relative; color: var(--ink); }
.creds li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.signoff { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); }
.signoff::before { content: ""; display: block; width: 32px; height: 3px; background: var(--accent); margin-bottom: 10px; }
.team-tile { --l-tile: #EFEFEF; --l-on-tile: #202833; --l-tile-accent: #042CC1; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 30; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 600; }
.skip:focus { left: 0; }
.contact-card .big a, footer.site p a { color: inherit; text-decoration: none; }
.contact-card .big a:hover, footer.site p a:hover { text-decoration: underline; }

/* Loan page header photos */
.hero-text { display: grid; gap: 18px; min-width: 0; }
.page-hero.with-photo .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; column-gap: 48px; }
.page-hero.with-photo h1 { font-size: clamp(36px, 4.6vw, 58px); }
.hero-photo { width: 100%; height: auto; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; display: block; box-shadow: 0 30px 60px -30px rgba(32,40,51,.45); }
@media (max-width: 900px) { .page-hero.with-photo .wrap { grid-template-columns: 1fr; row-gap: 28px; } }
