:root {
  --xp-blue: #245edb;
  --xp-blue-deep: #003399;
  --xp-blue-dark: #002f8f;
  --xp-blue-soft: #eaf2ff;
  --xp-sky: #3c8cf4;
  --xp-green: #6fbf3a;
  --xp-green-deep: #3f8f20;
  --xp-green-soft: #eef9e9;
  --ink: #17233b;
  --muted: #58667c;
  --paper: #ffffff;
  --wash: #f6f9ff;
  --line: #d7e3f7;
  --max: 1160px;
  --shadow: 0 18px 55px rgba(18, 65, 145, .11);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color:var(--ink); background:var(--paper); line-height:1.65; font-size:18px; }
a { color:var(--xp-blue-deep); }
a:hover { color:var(--xp-blue); }
.wrap { width:min(calc(100% - 40px), var(--max)); margin:0 auto; }
.skip-link { position:absolute; left:-9999px; }
.skip-link:focus { left:16px; top:16px; z-index:999; background:white; padding:12px 16px; border:3px solid var(--xp-green); border-radius:8px; }
.site-header { position:sticky; top:0; z-index:20; background:rgba(255,255,255,.96); backdrop-filter:blur(14px); border-bottom:1px solid var(--line); }
.header-inner { min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.brand { display:inline-flex; flex-direction:column; text-decoration:none; color:var(--ink); line-height:1.05; }
.brand strong { font-size:1.28rem; letter-spacing:-.035em; }
.brand strong::after { content:""; display:inline-block; width:9px; height:9px; background:var(--xp-green); border-radius:50%; margin-left:8px; }
.brand span { color:var(--muted); font-size:.76rem; margin-top:7px; }
nav { display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
nav a { color:var(--ink); text-decoration:none; font-size:.94rem; font-weight:700; }
nav a:hover, nav a[aria-current="page"] { color:var(--xp-blue); }
.nav-cta { background:var(--xp-blue); color:white !important; padding:10px 18px; border-radius:999px; box-shadow:0 5px 16px rgba(36,94,219,.2); }
.hero { position:relative; overflow:hidden; padding:104px 0 88px; background:linear-gradient(135deg, #fff 0%, var(--xp-blue-soft) 62%, #edf8ff 100%); border-bottom:1px solid var(--line); }
.hero::after { content:""; position:absolute; width:560px; height:250px; right:-120px; bottom:-135px; background:var(--xp-green); border-radius:50% 50% 0 0 / 100% 100% 0 0; transform:rotate(-5deg); opacity:.94; }
.hero::before { content:""; position:absolute; width:420px; height:190px; right:150px; bottom:-128px; background:#8ed04e; border-radius:50% 50% 0 0 / 100% 100% 0 0; transform:rotate(7deg); opacity:.82; }
.hero > .wrap { position:relative; z-index:2; }
.hero-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:64px; align-items:center; }
.eyebrow { margin:0 0 15px; color:var(--xp-blue-deep); font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.1em; }
h1,h2,h3 { line-height:1.12; letter-spacing:-.035em; }
h1 { margin:0 0 25px; font-size:clamp(2.75rem,6vw,5.35rem); max-width:900px; }
h2 { margin:0 0 18px; font-size:clamp(2rem,4vw,3.15rem); }
h3 { margin:0 0 10px; font-size:1.28rem; }
.lede { max-width:790px; margin:0; color:var(--muted); font-size:1.28rem; }
.actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:32px; }
.button { min-height:54px; display:inline-flex; align-items:center; justify-content:center; padding:0 23px; border-radius:12px; font-weight:800; text-decoration:none; border:2px solid var(--xp-blue); transition:transform .15s ease, box-shadow .15s ease; }
.button:hover { transform:translateY(-1px); }
.button.primary { background:var(--xp-blue); color:white; box-shadow:0 8px 22px rgba(36,94,219,.22); }
.button.primary:hover { background:var(--xp-blue-deep); color:white; }
.button.secondary { background:white; color:var(--xp-blue-deep); }
.hero-card { background:rgba(255,255,255,.92); border:1px solid rgba(36,94,219,.16); border-top:5px solid var(--xp-green); border-radius:20px; padding:32px; box-shadow:var(--shadow); }
.hero-card p:last-child { margin-bottom:0; }
.section { padding:82px 0; }
.section.alt { background:var(--wash); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section.narrow .wrap { max-width:850px; }
.intro { max-width:790px; color:var(--muted); font-size:1.1rem; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:36px; }
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:30px; margin-top:36px; }
.card { background:white; border:1px solid var(--line); border-radius:18px; padding:28px; box-shadow:0 8px 26px rgba(18,65,145,.06); }
.card::before { content:""; display:block; width:42px; height:5px; border-radius:99px; background:linear-gradient(90deg,var(--xp-blue),var(--xp-green)); margin-bottom:22px; }
.card p { margin-bottom:0; color:var(--muted); }
.quote { margin:0; font-size:1.58rem; line-height:1.42; border-left:6px solid var(--xp-green); padding-left:26px; }
.checks { padding:0; margin:28px 0 0; list-style:none; }
.checks li { position:relative; margin:12px 0; padding-left:32px; }
.checks li::before { content:"✓"; position:absolute; left:0; color:var(--xp-green-deep); font-weight:900; }
.notice { margin:30px 0; padding:20px 24px; background:var(--xp-green-soft); border:1px solid #cfe8bf; border-left:6px solid var(--xp-green); border-radius:12px; }
.contact-panel { position:relative; overflow:hidden; background:linear-gradient(135deg,var(--xp-blue-deep),var(--xp-blue)); color:white; padding:38px; border-radius:20px; box-shadow:var(--shadow); }
.contact-panel::after { content:""; position:absolute; width:180px; height:85px; right:-30px; bottom:-50px; background:var(--xp-green); border-radius:50% 50% 0 0 / 100% 100% 0 0; }
.contact-panel > * { position:relative; z-index:2; }
.contact-panel a { color:white; }
.contact-panel .button { border-color:white; color:var(--xp-blue-deep); background:white; }
.small { font-size:.94rem; color:var(--muted); }
.site-footer { padding:42px 0 54px; background:white; }
.footer-inner { display:flex; justify-content:space-between; gap:28px; flex-wrap:wrap; border-top:1px solid var(--line); padding-top:30px; }
.footer-inner p { margin:0; color:var(--muted); font-size:.92rem; }
.footer-inner strong { color:var(--xp-blue-deep); }
@media(max-width:820px){ body{font-size:17px}.header-inner{align-items:flex-start;padding:16px 0}.hero{padding:66px 0 68px}.hero-grid,.grid-3,.grid-2{grid-template-columns:1fr;gap:24px}.hero-grid{gap:38px}.hero::after{right:-260px}.hero::before{right:-20px}nav{justify-content:flex-end;gap:12px 16px} }
@media(max-width:620px){ .wrap{width:min(calc(100% - 28px),var(--max))}.header-inner{display:block}nav{margin-top:16px;justify-content:flex-start}nav a{font-size:.88rem}.nav-cta{padding:8px 13px}.section{padding:60px 0}.contact-panel{padding:28px}h1{font-size:clamp(2.55rem,14vw,4rem)} }
.hero-tagline {
  margin:-12px 0 20px;
  color:var(--xp-green-deep);
  font-size:clamp(1.35rem,2.6vw,2rem);
  font-weight:800;
  letter-spacing:-.025em;
}
.help-carousel {
  margin-top:26px;
  padding-top:22px;
  border-top:1px solid var(--line);
}
.carousel-kicker {
  margin:0 0 7px;
  color:var(--muted);
  font-size:.85rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.carousel-text {
  min-height:2.8em;
  margin:0;
  color:var(--xp-blue-deep);
  font-size:1.25rem;
  font-weight:800;
  line-height:1.35;
  transition:opacity .18s ease, transform .18s ease;
}
.carousel-text.changing { opacity:0; transform:translateY(4px); }
.carousel-dots { display:flex; gap:7px; margin-top:14px; }
.carousel-dots .dot { width:8px; height:8px; border-radius:50%; background:#c7d5ec; }
.carousel-dots .dot.active { background:var(--xp-green); }
.quick-help { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.quick-help span { display:inline-flex; align-items:center; min-height:44px; padding:8px 16px; background:white; border:1px solid var(--line); border-radius:999px; font-weight:750; color:var(--ink); box-shadow:0 4px 15px rgba(18,65,145,.04); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .carousel-text { transition:none; }
}

/* Home page service groups */
.services-home .intro { max-width:720px; }
.service-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:34px; }
.service-simple { background:white; border:1px solid var(--line); border-radius:18px; padding:26px; box-shadow:0 7px 22px rgba(18,65,145,.05); }
.service-simple h3 { color:var(--xp-blue-deep); }
.service-simple p { margin:0; color:var(--muted); }
.service-simple.featured-service { background:linear-gradient(145deg,var(--xp-blue-deep),var(--xp-blue)); border-color:transparent; color:white; }
.service-simple.featured-service .eyebrow { color:#dff4d4; margin-bottom:10px; }
.service-simple.featured-service h3, .service-simple.featured-service p { color:white; }
.pace-section h2 { max-width:720px; }
.pace-copy { max-width:760px; margin:0; color:var(--muted); font-size:1.13rem; }
.audience-grid { margin-top:0; }
.audience-card { padding-right:28px; }
@media(max-width:900px){ .service-grid{grid-template-columns:repeat(2,1fr)} }
@media(max-width:620px){ .service-grid{grid-template-columns:1fr}.service-simple{padding:22px} }

/* Contact form */
.contact-form { margin-top:28px; }
.form-field { margin-bottom:20px; }
.form-field label { display:block; margin-bottom:7px; font-weight:800; color:var(--ink); }
.form-field input,
.form-field textarea {
  width:100%;
  border:1px solid #b9cae7;
  border-radius:12px;
  background:white;
  color:var(--ink);
  font:inherit;
  font-size:1rem;
  padding:13px 14px;
  box-shadow:inset 0 1px 2px rgba(18,65,145,.04);
}
.form-field textarea { resize:vertical; min-height:150px; }
.form-field input:focus,
.form-field textarea:focus { outline:3px solid rgba(36,94,219,.18); border-color:var(--xp-blue); }
.contact-form button { cursor:pointer; font:inherit; }
.form-note { margin:16px 0 0; color:var(--muted); font-size:.92rem; }
.honeypot { position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden; }

/* Expandable home page service cards */
.service-card {
  appearance:none;
  width:100%;
  text-align:left;
  font:inherit;
  color:inherit;
  cursor:pointer;
  position:relative;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover { transform:translateY(-3px); box-shadow:0 13px 30px rgba(18,65,145,.11); border-color:#b7cbef; }
.service-card:focus-visible { outline:4px solid rgba(36,94,219,.24); outline-offset:3px; }
.service-card-face { display:block; }
.service-more { display:inline-block; margin-top:18px; color:var(--xp-blue-deep); font-size:.9rem; font-weight:800; }
.service-more::after { content:"  →"; }
.featured-service .service-more { color:white; }

.service-dialog[hidden] { display:none; }
.service-dialog { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:24px; }
.service-dialog-backdrop { position:absolute; inset:0; width:100%; height:100%; border:0; background:rgba(31,39,53,.52); backdrop-filter:blur(2px) grayscale(.25); cursor:pointer; opacity:0; transition:opacity .18s ease; }
.service-dialog-card {
  position:relative;
  z-index:1;
  width:min(720px,100%);
  max-height:min(82vh,760px);
  overflow:auto;
  background:white;
  border:1px solid var(--line);
  border-top:6px solid var(--xp-green);
  border-radius:22px;
  padding:38px;
  box-shadow:0 28px 80px rgba(13,38,86,.28);
  opacity:0;
  transform:perspective(900px) rotateY(-10deg) scale(.94);
  transition:transform .2s ease, opacity .18s ease;
}
.service-dialog.is-open .service-dialog-backdrop { opacity:1; }
.service-dialog.is-open .service-dialog-card { opacity:1; transform:perspective(900px) rotateY(0) scale(1); }
.service-dialog-close { position:absolute; top:14px; right:16px; width:44px; height:44px; border:0; border-radius:50%; background:var(--xp-blue-soft); color:var(--xp-blue-deep); font-size:2rem; line-height:1; cursor:pointer; }
.service-dialog-close:hover { background:#dce9ff; }
.service-dialog-card h2 { padding-right:42px; font-size:clamp(2rem,5vw,3rem); }
.service-dialog-intro { margin:0 0 24px; color:var(--muted); font-size:1.08rem; }
.service-dialog-list { margin:0 0 26px; padding:0; list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 24px; }
.service-dialog-list li { position:relative; padding-left:28px; }
.service-dialog-list li::before { content:"✓"; position:absolute; left:0; color:var(--xp-green-deep); font-weight:900; }
.service-dialog-note { padding:17px 19px; background:var(--xp-green-soft); border-left:5px solid var(--xp-green); border-radius:10px; }
body.dialog-open { overflow:hidden; }
@media(max-width:620px){
  .service-dialog { padding:14px; }
  .service-dialog-card { padding:30px 22px 24px; max-height:88vh; }
  .service-dialog-list { grid-template-columns:1fr; gap:9px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-card, .service-dialog-backdrop, .service-dialog-card { transition:none; }
  .service-card:hover { transform:none; }
}
