/* Fin Capital | site styles
   Palette taken from the Fin investor presentation and factsheet */
:root {
  --blue: #1377AF;
  --blue-dark: #0E5A85;
  --green: #6A963F;
  --yellow: #EFCA39;
  --ink: #2E3236;
  --gray: #54585C;
  --gray-light: #8E9296;
  --line: #D6E1E9;
  --wash: #EAF2F8;
  --white: #FFFFFF;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Lato", "Calibri", "Segoe UI", Arial, sans-serif;
  color: var(--gray);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--gray); font-size: .95rem; font-weight: 700; letter-spacing: .02em; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.nav .login {
  border: 1.5px solid var(--blue); color: var(--blue);
  padding: 7px 16px; border-radius: 4px;
}
.nav .login:hover { background: var(--blue); color: var(--white); }
.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--wash) 0%, var(--white) 100%); padding: 96px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px; display: block;
}
.hero h1 { color: var(--blue); }
.hero .lede { font-size: 1.2rem; color: var(--gray); max-width: 36em; }
.dots { display: flex; gap: 8px; margin: 26px 0 0; }
.dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: var(--blue); }
.dots i:nth-child(2) { background: var(--green); }
.dots i:nth-child(3) { background: var(--yellow); }
.hero-logo { justify-self: center; width: min(340px, 80%); }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--wash); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { font-size: 1.08rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 28px 28px 22px; border-top: 4px solid var(--blue);
}
.card.green { border-top-color: var(--green); }
.card.yellow { border-top-color: var(--yellow); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.1em; margin: 0; }
.card li { margin-bottom: .45em; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.stat { border-left: 3px solid var(--blue); padding: 4px 0 4px 20px; }
.stat strong { display: block; font-size: 2.2rem; color: var(--blue); line-height: 1.1; font-weight: 700; }
.stat span { font-size: .96rem; }
.source { font-size: .78rem; color: var(--gray-light); margin-top: 28px; }

.pull {
  font-size: 1.25rem; color: var(--ink); font-style: italic;
  border-left: 4px solid var(--green); padding: 4px 0 4px 22px; margin: 40px 0 0; max-width: 46em;
}

/* Process steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 22px 20px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-flex; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: var(--white); font-weight: 700; font-size: .9rem;
  align-items: center; justify-content: center; margin-bottom: 12px;
}
.steps h3 { font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.steps p { font-size: .94rem; margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.about .creds { background: var(--wash); border-radius: 6px; padding: 28px; }
.about .creds h3 { color: var(--blue); }
.about .creds ul { padding-left: 1.1em; margin: 0; }
.about .creds li { margin-bottom: .5em; }
.role { color: var(--blue); font-weight: 700; margin-top: -.4em; }

/* Insights */
.link-card { display: block; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.link-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(19,119,175,.12); }
.link-card .go { color: var(--blue); font-weight: 700; font-size: .95rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact dl { margin: 0; }
.contact dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-light); font-weight: 700; margin-top: 18px; }
.contact dd { margin: 4px 0 0; font-size: 1.1rem; color: var(--ink); }

/* Footer */
.site-footer { background: #24282C; color: #C3C7CB; padding: 56px 0 40px; font-size: .86rem; }
.site-footer a { color: #FFFFFF; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal { border-top: 1px solid #3A3F44; padding-top: 24px; line-height: 1.6; font-size: .8rem; color: #A3A8AD; }
.footer-legal p { margin-bottom: .8em; }

/* Legal pages */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 820px; }
.legal h1 { color: var(--blue); font-size: 2.2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal .updated { color: var(--gray-light); font-size: .9rem; }

/* Responsive */
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; }
  .nav .login { margin-top: 8px; width: auto; padding: 8px 16px; }
  .hero { padding: 56px 0 56px; }
  .hero .wrap, .about, .contact, .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo { display: none; }
  .stat-row { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .steps { grid-template-columns: 1fr; }
  .brand img { height: 42px; }
  body { font-size: 16px; }
}
