/* Tech4Fin design tokens (from the Tech4Fin design system) */
:root {
  --navy: #1a2f5e;
  --navy-deep: #13214a;
  --navy-line: #22325c;
  --ink-footer: #0b1530;
  --bg: #f4f7fc;
  --white: #ffffff;
  --border: #e0e7f5;
  --muted: #55627f;
  --cyan: #00a3c4;
  --cyan-light: #5fd6ec;
  --teal: #00728a;
  --link: #2962c8;
  --pale: #e8eef9;
  --cyan-pale: #dcf3f8;
  --slate: #7a8aac;
  --on-dark: #b9c6e2;
  --on-dark-strong: #e8eef9;
  --accent: #2962c8; /* overridden per site in settings */

  --font-display: Manrope, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --radius: 14px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--navy); }
a:focus-visible, summary:focus-visible, .nav-toggle:focus-visible + label {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 4px;
}
p, h1, h2, h3, h4, ul, ol { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 12px); }
.grid { display: grid; gap: var(--gap, 24px); grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 300px), 100%), 1fr)); }
.measure { max-width: 820px; }
.measure-sm { max-width: 760px; }
.center { align-items: center; }
.start { align-items: start; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.dark .eyebrow, .eyebrow--light { color: var(--cyan-light); }
.eyebrow--muted { color: var(--muted); }
h1, h2, h3, h4, .display { font-family: var(--font-display); }
.h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; max-width: 880px; }
.h2 { font-size: clamp(28px, 3.6vw, 36px); line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }
.h2--sm { font-size: clamp(26px, 3.2vw, 32px); }
.h2--xs { font-size: 28px; }
.h2--lg { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.h3 { font-size: 20px; font-weight: 700; }
.h3--lg { font-size: 24px; line-height: 1.3; }
.h3--product { font-size: clamp(26px, 3vw, 32px); font-weight: 800; letter-spacing: -0.015em; }
.h4 { font-size: 18px; font-weight: 700; }
.h4--lg { font-size: 22px; }
.lead { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.35; }
.intro { font-size: 18px; color: var(--muted); }
.dark .intro { color: var(--on-dark); }
.muted { color: var(--muted); }
.dark .muted { color: var(--on-dark); }
.small { font-size: 15px; }
.xsmall { font-size: 13px; }
.num { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--teal); }
.num--sm { font-size: 13px; }
.bar { width: 56px; height: 4px; background: var(--cyan); border-radius: 2px; }

/* ---------- Sections ---------- */
.section { padding: 96px 24px; }
.section--tight { padding: 88px 24px; }
.section--short { padding: 72px 24px; }
.section--tall { padding: 104px 24px; }
.section--white { background: var(--white); }
.section--light { background: var(--bg); }
.section--border { border-top: 1px solid var(--border); }
.dark { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--navy); border-bottom: 1px solid var(--navy-line); }
.nav { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.nav-logo { display: inline-flex; align-items: center; min-height: 44px; }
.nav-logo img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.nav-links a:not(.btn) { color: var(--on-dark); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--white); }
.nav-links a[aria-current="page"] { color: var(--white); font-weight: 600; border-bottom: 2px solid var(--cyan); padding-bottom: 2px; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; color: var(--white); cursor: pointer; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; border: 1px solid var(--slate); border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; padding: 0 14px; }
@media (max-width: 1080px) {
  .nav-burger { display: inline-flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 0 4px; }
  .nav-links a:not(.btn) { padding: 10px 0; }
  .nav-links a[aria-current="page"] { border-bottom: 0; color: var(--cyan-light); }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 16px; text-decoration: none; }
.btn--sm { min-height: 44px; padding: 12px 20px; font-size: 15px; }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { color: var(--white); filter: brightness(1.1); }
.btn--ghost { border: 1px solid var(--slate); color: var(--white); }
.btn--ghost:hover { color: var(--white); border-color: var(--white); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.text-link { font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Hero ---------- */
.hero { padding: 96px 24px 104px; }
.hero-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.hero-list li { display: flex; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--navy-line); }
.hero-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-list .eyebrow { flex-shrink: 0; width: 112px; }
.hero-list span:last-child { font-size: 17px; line-height: 1.5; color: var(--on-dark-strong); }
.hero-list strong { color: var(--white); }
@media (max-width: 520px) { .hero-list li { flex-direction: column; gap: 4px; } }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card--light { background: var(--bg); }
.card--dark { background: var(--navy); color: var(--white); border: 0; }
.card--deep { background: var(--navy-deep); border-color: var(--navy-line); color: var(--white); padding: 24px; gap: 8px; }
.card--lg { padding: 32px; gap: 14px; }
.card--wide { padding: 28px 32px; gap: 16px; }
.card--featured { border: 1.5px solid var(--link); }
.card--topline { border-top: 4px solid var(--cyan); }
.card--timeline { border-top: 4px solid var(--navy); }
.card--timeline.is-highlight { background: var(--navy); color: var(--white); border: 0; border-top: 4px solid var(--cyan); }
.card--timeline.is-highlight .year { color: var(--cyan-light); }
.card--timeline.is-highlight p { color: var(--on-dark); }
.card--timeline .year { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--teal); line-height: 1.2; }
.card .muted.small, .card p.muted { font-size: inherit; }
.card .small { font-size: 15px; }
.dark .card--dark p, .card--dark p { color: var(--on-dark); }

.panel { border-radius: var(--radius); border-top: 4px solid var(--cyan); padding: 48px 40px; }
@media (max-width: 600px) { .panel { padding: 32px 22px; } }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 8px 14px; font-size: 15px; font-weight: 500; }
.tag--dark { background: var(--navy-deep); border-color: var(--navy-line); color: var(--white); }
.tag--pale { background: var(--pale); border: 0; padding: 6px 12px; font-size: 14px; font-weight: 400; }
.tag--plain { font-size: 14px; font-weight: 400; }
.badge { background: var(--cyan-pale); color: var(--navy); border-radius: 4px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.badge--dark { background: var(--navy-deep); border: 1px solid var(--navy-line); color: var(--on-dark); }
.pill { background: var(--navy); color: var(--white); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 500; }
.chip-link { border: 1px solid var(--slate); color: var(--navy); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 15px; font-weight: 500; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.chip-link:hover { border-color: var(--navy); }
.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Offer rows ---------- */
.offer-row { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: grid; gap: 20px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.offer-row .chips { grid-column: span 2; }
@media (max-width: 860px) { .offer-row .chips { grid-column: auto; } }
.offer-tile { border-radius: var(--radius-sm); padding: 20px 24px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.offer-tile strong { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.offer-tile span { font-size: 15px; }
.offer-tile--dark { background: var(--navy); color: var(--white); border-top: 3px solid var(--cyan); }
.offer-tile--dark span { color: var(--on-dark); }
.offer-tile--dark:hover { color: var(--white); background: var(--navy-deep); }
.offer-tile--light { background: var(--pale); color: var(--navy); }
.offer-tile--light span { color: var(--muted); }
.banner { border-radius: var(--radius); padding: 32px 36px; display: grid; gap: 24px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 170px), 100%), 1fr)); }
.steps li { background: var(--white); border-top: 4px solid var(--navy); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.steps--light li { background: var(--bg); }
.steps li.is-highlight { background: var(--cyan-pale); border-top-color: var(--cyan); }
.steps strong { font-family: var(--font-display); font-size: 17px; }
.steps .muted { font-size: 14px; }

/* ---------- Details / table ---------- */
details summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; color: var(--link); }
.dark details summary, .card--dark details summary { color: var(--cyan-light); }
.card--dark details { color: var(--on-dark); font-size: 15px; }
.details-list { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.notes { padding-left: 20px; color: var(--muted); font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.dark .notes, .panel .notes { color: var(--on-dark); font-size: 16px; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
th { padding: 10px 14px; text-align: right; font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--pale); }
td { padding: 10px 14px; border-top: 1px solid var(--border); text-align: right; font-family: var(--font-mono); font-size: 14px; }
th:first-child, td:first-child { text-align: left; }
td:first-child { font-family: var(--font-body); font-size: 15px; font-weight: 600; }
.method { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Contact ---------- */
.contact-card { background: var(--navy-deep); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.contact-card a:not(.btn) { color: var(--white); font-size: 17px; min-height: 44px; display: inline-flex; align-items: center; }
.contact-card .role { color: var(--cyan-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-footer); color: var(--on-dark); padding: 28px 24px; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .brand { display: inline-flex; align-items: center; gap: 12px; }
.site-footer img { width: 24px; height: 24px; display: block; }
.site-footer strong { color: var(--white); }

@media (max-width: 600px) {
  .section, .section--tight, .section--short, .section--tall { padding: 64px 16px; }
  .hero { padding: 64px 16px 72px; }
  .nav { padding: 12px 16px; }
  .card--wide, .banner { padding: 24px 20px; }
}
