:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-tint: #eef3ff;
  --text: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #2456d6;
  --accent-dark: #1b44ad;
  --accent-soft: #e8efff;
  --navy: #0b1730;
  --radius: 14px;
  --max: 1120px;
  --shadow: 0 20px 44px -20px rgba(15, 23, 42, .28);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--text); letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
p, li { text-wrap: pretty; }
h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 14px; }
h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -.01em; }
p { margin: 0 0 16px; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid rgba(36, 86, 214, .45); outline-offset: 3px; border-radius: 6px; }

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

.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--text); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 32px; height: 32px; display: block; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: .06em; }
.brand-name small { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--muted); margin-left: 4px; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
nav a.nav-cta { color: #fff; background: var(--accent); padding: 9px 18px; border-radius: 8px; font-weight: 600; }
nav a.nav-cta:hover, nav a.nav-cta[aria-current="page"] { color: #fff; background: var(--accent-dark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 10px; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--bg-soft); color: var(--text); border-color: #cbd5e1; }
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow {
  display: inline-block; margin-bottom: 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.eyebrow.pill { background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }

/* Hero and page headers */
.hero, .page-head {
  background:
    radial-gradient(900px 420px at 90% -10%, var(--bg-tint), transparent 65%),
    radial-gradient(700px 360px at -10% 110%, #f3f6fc, transparent 60%);
  border-bottom: 1px solid var(--line);
}
.hero { padding: 88px 0 96px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 58px); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 22px; }
.hero .lead { font-size: 20px; margin-bottom: 34px; }

.page-head { padding: 80px 0 72px; }
.page-head h1 { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 18px; max-width: 760px; }
.page-head .lead { font-size: 19px; margin: 0; }

.lead { color: var(--muted); max-width: 620px; }

/* Sections */
section { padding: 96px 0; }
.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin: 0; }
.section-head.center .lead { margin: 0 auto; }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d5deeb; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 20px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }

/* Text + photo blocks: two columns on desktop, stacked below 860px */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.split.reverse { grid-template-columns: 1fr 1.05fr; }
.split .lead { margin-bottom: 28px; }
/* Desktop/tablet use a 5:4 landscape photo; phones (<=600px) get a different 4:5 portrait photo (see <picture> sources) */
picture { display: block; position: relative; isolation: isolate; }
.photo {
  display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: 18px; background: var(--bg-soft); box-shadow: var(--shadow);
}
.framed::before {
  content: ""; position: absolute; z-index: -1; inset: 28px -28px -28px 28px;
  border-radius: 20px; background: linear-gradient(135deg, var(--accent-soft), #dbe6ff);
}

.checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-weight: 500; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }

.prose p { font-size: 18px; }
.prose p:last-child { margin-bottom: 0; }

/* Process steps */
.steps { counter-reset: step; }
.step { border-top: 2px solid var(--line); padding-top: 24px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin-bottom: 12px;
}
.step::after { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--accent); }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* Call-to-action band */
.cta-section { padding: 0 0 96px; }
.soft + .cta-section, .cta-section.after-soft { padding-top: 96px; }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 56px 60px; border-radius: 24px; color: #dbe5ff;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, .16), transparent 60%),
    linear-gradient(135deg, #2456d6, #1a3a96);
  box-shadow: 0 30px 60px -30px rgba(27, 68, 173, .6);
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; max-width: 520px; font-size: 18px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-methods { display: grid; gap: 16px; }
.method {
  display: flex; align-items: center; gap: 20px; padding: 26px 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.method:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d5deeb; color: var(--text); }
.method .icon { margin: 0; flex: none; width: 52px; height: 52px; }
.method-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.method-value { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.method-arrow { margin-left: auto; color: var(--muted); flex: none; }
.method-arrow svg { width: 20px; height: 20px; display: block; }
.panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.panel h2 { font-size: 24px; margin-bottom: 24px; }
.numbered { list-style: none; padding: 0; margin: 0; counter-reset: n; display: grid; gap: 22px; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 36px 1fr; gap: 16px; }
.numbered li::before {
  content: counter(n); width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
}
.numbered strong { display: block; color: var(--text); margin-bottom: 2px; }
.numbered span { color: var(--muted); font-size: 16px; }

/* Footer */
.site-footer { background: var(--navy); color: #a3b1c9; font-size: 15px; padding: 72px 0 0; }
.site-footer a { color: #a3b1c9; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-name small { color: #7d8db0; }
.footer-grid p { max-width: 320px; margin: 0; }
.footer-grid h3 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 24px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #7d8db0; }

/* 404 */
.not-found { min-height: calc(100vh - 142px); display: flex; align-items: center; }
.not-found .wrap { width: 100%; }

/* Tablet */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .split, .split.reverse { gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > picture { order: -1; }
  .hero { padding: 64px 0 72px; }
  .framed::before { inset: 18px -14px -18px 18px; }
  section { padding: 72px 0; }
  .cta-section { padding-bottom: 72px; }
  .soft + .cta-section, .cta-section.after-soft { padding-top: 72px; }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .site-header .wrap { height: 64px; }
  .brand img { width: 28px; height: 28px; }
  .brand-name { font-size: 17px; }
  nav { gap: 16px; }
  nav a { font-size: 15px; }
  nav a.nav-cta { padding: 7px 12px; }
  .hero { padding: 44px 0 56px; }
  .hero .lead { font-size: 18px; margin-bottom: 28px; }
  .page-head { padding: 52px 0 48px; }
  .page-head .lead { font-size: 17px; }
  section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid { gap: 16px; }
  .card { padding: 22px; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; }
  .card .icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
  .card h3 { margin: 2px 0 4px; }
  .card:hover { transform: none; }
  .photo { aspect-ratio: 4 / 5; border-radius: 16px; }
  .framed::before { inset: 14px -10px -14px 14px; border-radius: 18px; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .prose p { font-size: 17px; }
  .cta-section { padding-bottom: 60px; }
  .soft + .cta-section, .cta-section.after-soft { padding-top: 60px; }
  .cta-band { padding: 40px 24px; text-align: center; justify-content: center; border-radius: 20px; }
  .cta-band .actions { width: 100%; }
  .method { padding: 20px; gap: 16px; }
  .method .icon { width: 44px; height: 44px; }
  .method-value { font-size: 18px; }
  .method-arrow { display: none; }
  .steps { gap: 32px; }
  .panel { padding: 28px 22px; }
  .site-footer { padding-top: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-bottom: 40px; }
}

@media (max-width: 380px) {
  .brand-name small { display: none; }
  nav { gap: 12px; }
  nav a.nav-cta { padding: 7px 10px; }
  .method-value { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.site-footer.slim { padding-top: 0; }
.site-footer.slim .footer-bottom { border-top: 0; }
