/* Self-hosted variable fonts (latin subset) */
@font-face { font-family: "DM Sans"; font-weight: 400 500; font-display: swap; src: url("fonts/dm-sans.woff2") format("woff2"); }
@font-face { font-family: Lexend; font-weight: 500 700; font-display: swap; src: url("fonts/lexend.woff2") format("woff2"); }

:root {
  --text: #14161d;
  --muted: #4a4f5c;
  --blue: #1565e0;
  --tint: #e7f6ff;
  --dark: #070817;
  --overlay: rgba(20, 22, 45, .78);
  --wrap: 1140px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font: 16px/1.7 "DM Sans", sans-serif; color: var(--text); background: #fff; }
h1, h2, h3, h4 { font-family: Lexend, sans-serif; line-height: 1.3; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: #fff; padding: 8px 12px; }

/* Header */
header { position: absolute; inset: 0 0 auto; z-index: 10; padding: 24px 0; }
header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo img { display: block; }
nav { display: flex; gap: 24px; flex-wrap: wrap; }
nav a { color: #fff; font-size: 15px; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--tint); }
nav a[aria-current="page"] { border-color: #fff; }
.menu-btn { display: none; }

/* Home hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; color: #fff;
  background: linear-gradient(var(--overlay), var(--overlay)), url("home-hero-bg.jpg") center/cover;
}
.hero .inner { max-width: 620px; padding: 120px 0 80px; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 24px; }
.hero p { font-size: 15px; opacity: .9; }
.hero .tagline { font: 500 18px/1.3 Lexend, sans-serif; opacity: 1; margin-bottom: 16px; }

/* Inner-page banner */
.page-hero {
  color: #fff; text-align: center; padding: 180px 0 110px;
  background: linear-gradient(var(--overlay), var(--overlay)), url("about-bg-img.jpg") center/cover;
}
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); }
.page-hero p { max-width: 720px; margin: 12px auto 0; font-size: 18px; opacity: .9; }

/* Sections */
.section { padding: 96px 0; }
.tint { background: var(--tint); }
.intro { text-align: center; max-width: 820px; margin: 0 auto 64px; }
.intro h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.intro p { color: var(--muted); font-size: 15px; margin-top: 16px; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 24px; }
.prose p { color: var(--muted); margin-bottom: 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: #fff; padding: 40px; border-radius: 4px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(21, 101, 224, .1); }
.card svg { width: 40px; height: 40px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; margin: 12px 0 16px; }
.card p { color: var(--muted); font-size: 15px; }
.plain .card { border: 1px solid #dde6f3; }

/* Stats */
.stats { display: flex; justify-content: center; gap: 80px; flex-wrap: wrap; text-align: center; }
.stats strong { display: block; font: 600 56px/1.1 Lexend, sans-serif; color: var(--blue); }
.stats span { color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact h2 { font-size: 32px; margin-bottom: 16px; }
.contact > div > p { color: var(--muted); }
.reach { list-style: none; padding: 0; display: grid; gap: 20px; }
.reach li { display: flex; gap: 16px; align-items: flex-start; }
.reach svg { flex: none; width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.reach a:hover { color: var(--blue); }

/* Footer */
footer { background: var(--dark); color: #fff; }
.foot { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding: 72px 16px; }
.flogo { display: block; max-width: 100%; height: auto; margin-bottom: 32px; }
.foot p { font-size: 15px; opacity: .9; }
.foot h2 { font-size: 22px; margin-bottom: 24px; }
.foot a { color: #4a8dff; }
.foot .reach { gap: 14px; font-size: 15px; }
.foot .reach svg { width: 20px; height: 20px; stroke: #4a8dff; }
.foot .reach a:hover { color: #fff; }
.copy { border-top: 1px solid rgba(255, 255, 255, .15); text-align: center; padding: 32px 16px; font-size: 15px; }
.top {
  position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 8px;
  background: var(--blue); display: grid; place-items: center;
}
.top svg { width: 20px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* Content pages */
.card h3 a::after { content: " A"; color: var(--blue); }
.card h3 a:hover { color: var(--blue); }
.prose h2:not(:first-child) { margin-top: 40px; }
.prose ul, .prose ol { color: var(--muted); margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose a, .faq a, .intro a { color: var(--blue); text-decoration: underline; }
.table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 14px; border: 1px solid #dde6f3; vertical-align: top; }
.table th { background: var(--tint); font-family: Lexend, sans-serif; font-weight: 500; }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid #dde6f3; padding: 16px 0; }
.faq summary { cursor: pointer; font: 500 18px/1.4 Lexend, sans-serif; }
.faq p { color: var(--muted); margin-top: 12px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; list-style: none; padding: 0; }
.steps li { counter-increment: step; background: #fff; padding: 28px; border-radius: 4px; }
.steps li::before { content: counter(step); display: block; font: 600 32px/1 Lexend, sans-serif; color: var(--blue); margin-bottom: 12px; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }
.cta { background: #101a40; color: #fff; text-align: center; }
.cta h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 12px; }
.cta p { opacity: .9; max-width: 640px; margin: 0 auto; }
.cta .btn-line { color: #fff; border-color: #fff; }
.cta .btn-line:hover { background: #fff; color: var(--dark); }
.links { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; list-style: none; padding: 0; margin-top: 20px; }
.links a { color: var(--blue); text-decoration: underline; }
.copy a { margin: 0 8px; }
.copy a:hover { text-decoration: underline; }


@media (max-width: 768px) {
  .foot, .contact { grid-template-columns: 1fr; }
  .card { padding: 32px 24px; }
  .section { padding: 64px 0; }
  .page-hero { padding: 150px 0 80px; }

  /* Mobile menu: the button is only unhidden by the header script */
  .menu-btn:not([hidden]) {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 1px solid rgba(255, 255, 255, .4); border-radius: 8px; cursor: pointer;
  }
  .menu-btn svg { width: 22px; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
  .menu-btn:not([hidden]) ~ nav { display: none; }
  header.open .menu-btn ~ nav {
    display: flex; flex-direction: column; gap: 0; width: 100%;
    background: var(--dark); border-radius: 8px; padding: 8px 0;
  }
  header.open nav a { padding: 12px 20px; border-bottom: 0; }
  header.open nav a[aria-current="page"] { color: #4a8dff; }
}

/* Buttons */
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 500; border: 2px solid var(--blue); }
.btn:hover { background: #0f4fb3; border-color: #0f4fb3; }
.btn-line { background: none; color: var(--blue); }
.btn-line:hover { background: var(--blue); color: #fff; }

address { font-style: normal; margin-bottom: 16px; }
