:root {
  color-scheme: light;
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --line: #e3e7ee;
  --paper: #ffffff;
  --card: #ffffff;
  --tint: #f5f7fa;
  --navy: #0f2a43;
  --teal: #0e7490;
  --teal-dark: #0a5a70;
  --amber: #667085;
  --radius: 6px;
  --maxw: 1120px;
  --pad: 56px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f7fb;
  --ink-soft: #d2dbea;
  --muted: #a9b6c8;
  --line: #2b3b50;
  --paper: #0b1220;
  --card: #111c2d;
  --tint: #0f1a2b;
  --teal: #2bb7c9;
  --teal-dark: #67d4df;
  --amber: #f0c36a;
}
@media (max-width: 900px) { :root { --pad: 32px; } }
@media (max-width: 640px) { :root { --pad: 20px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { overflow-x: clip; } /* prevent any element from causing a sideways scroll on mobile; 'clip' keeps the sticky header working */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Work Sans', Arial, sans-serif;
  line-height: 1.5;
}
body, header.site, nav.mobile-nav, .section.tint, .card, .chip, details.faq,
.field input, .field select, .field textarea, .lead-email, .btn-outline,
label.mobile-menu-btn {
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
h1, h2, h3 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; margin: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin: 0 0 12px; }
.section { padding: 88px 0; }
.section.tint { background: var(--tint); }
.btn { display: inline-block; padding: 14px 26px; border-radius: var(--radius); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; border: none; cursor: pointer; font-family: inherit; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.14); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { color: #fff; background: var(--teal-dark); }
.btn-outline { background: transparent; border: 1px solid #cfd4dc; color: var(--ink); }
.btn-outline:hover { color: var(--ink); background: var(--tint); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .15s, box-shadow .15s, background-color .2s ease, color .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* header + nav */
header.site {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; gap: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
}
html[data-theme="dark"] header.site { background: rgba(11,18,32,0.94); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { height: 32px; width: auto; }
.brand span { font-family: 'Source Serif 4', Georgia, serif; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
nav.desktop-nav { display: flex; gap: 18px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
nav.desktop-nav a { padding: 6px 2px; border-bottom: 2px solid transparent; color: var(--ink); }
nav.desktop-nav a:hover, nav.desktop-nav a[aria-current="page"] { border-bottom-color: var(--teal); color: var(--teal-dark); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-shrink: 0; }
.header-cta { flex-shrink: 0; white-space: nowrap; }
.mnav-check { display: none; }
label.mobile-menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid #cfd4dc; border-radius: 4px; background: var(--card); color: var(--ink); cursor: pointer; flex-shrink: 0;
}
label.mobile-menu-btn svg { stroke: currentColor; }
nav.mobile-nav { display: none; flex-direction: column; border-bottom: 1px solid var(--line); background: var(--card); }
nav.mobile-nav a { padding: 14px 20px; font-size: 14.5px; font-weight: 600; border-bottom: 1px solid var(--line); color: var(--ink); }

/* light / dark switch */
.theme-control { display: inline-flex; align-items: center; gap: 7px; }
.theme-icon { color: var(--muted); transition: color .2s ease, opacity .2s ease; }
.theme-icon-sun { color: #b7791f; }
html[data-theme="dark"] .theme-icon-sun { color: #667085; }
html[data-theme="dark"] .theme-icon-moon { color: #7dd3fc; }
.theme-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  padding: 0;
  border: 1px solid #c7ced8;
  border-radius: 999px;
  background: #d0d5dd;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.12);
  transition: background-color .2s ease, border-color .2s ease;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15,23,42,.28);
  transition: transform .2s ease;
}
html[data-theme="dark"] .theme-toggle { background: var(--teal); border-color: var(--teal); }
html[data-theme="dark"] .theme-toggle::after { transform: translateX(22px); background: #f8fafc; }

@media (max-width: 1080px) {
  nav.desktop-nav { display: none; }
  label.mobile-menu-btn { display: flex; }
  .mnav-check:checked ~ nav.mobile-nav { display: flex; }
}
@media (max-width: 760px) {
  .header-cta { display: none; }
  header.site { padding: 14px 16px; }
}
@media (max-width: 640px) {
  .theme-control { gap: 0; }
  .theme-control .theme-icon { display: none; }
  .brand span { font-size: 15px; }
}
@media (max-width: 560px) {
  .brand span { display: none; }
}

/* homepage visual adapts to the active theme */
.hero-visual text { fill: var(--ink-soft); }
html[data-theme="dark"] .hero-visual [fill="#0f2a43"] { fill: #7dd3fc; }
html[data-theme="dark"] .hero-visual [stroke="#0f2a43"] { stroke: #7dd3fc; }
html[data-theme="dark"] .hero-visual [fill="#0e7490"] { fill: #2dd4bf; }
html[data-theme="dark"] .hero-visual [stroke="#0e7490"] { stroke: #2dd4bf; }

/* dark-mode component refinements */
html[data-theme="dark"] .btn-primary { background: #e6f4f7; color: #0b1220; }
html[data-theme="dark"] .btn-primary:hover { background: #ffffff; color: #0b1220; }
html[data-theme="dark"] .btn-outline { border-color: var(--line); }
html[data-theme="dark"] .card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.34); }
html[data-theme="dark"] .lead-email,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea {
  background: var(--card) !important;
  color: var(--ink);
  border-color: var(--line) !important;
}
html[data-theme="dark"] .lead-email::placeholder,
html[data-theme="dark"] .field input::placeholder,
html[data-theme="dark"] .field textarea::placeholder { color: #8391a5; }

/* footer */
footer.site { padding: 56px 0 32px; border-top: 1px solid var(--line); background: var(--navy); color: #cbd5e1; }
footer.site .brand, footer.site .brand span, footer.site h4 { color: #ffffff; }
footer.site .footer-grid a, footer.site p { color: #cbd5e1; }
footer.site .footer-grid a:hover { color: #ffffff; }
footer.site .footer-bottom { color: #94a3b8; border-top-color: rgba(255,255,255,0.15); }
footer.site .footer-bottom a { color: #94a3b8; }
footer.site .footer-bottom a:hover { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.footer-grid a { display: block; font-size: 13.5px; margin-bottom: 8px; color: var(--ink); }
.footer-bottom { max-width: var(--maxw); margin: 32px auto 0; padding: 20px var(--pad) 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); }
.footer-bottom a { display: inline; margin: 0 0 0 16px; color: var(--muted); }

/* forms */
label.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.field input, .field select, .field textarea {
  padding: 13px 14px; border-radius: var(--radius); border: 1px solid #cfd4dc; background: var(--card);
  font-size: 15px; font-family: inherit; font-weight: 400; color: var(--ink);
}
.field textarea { resize: vertical; }
@media (max-width: 640px) { section svg[viewBox="0 0 1400 380"] { display: none; } }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* faq */
details.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 12px; overflow: hidden; }
details.faq summary { padding: 18px 22px; font-size: 15.5px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary:after { content: '+'; font-size: 20px; color: var(--teal); flex-shrink: 0; margin-left: 12px; }
details.faq[open] summary:after { content: '\2212'; }
details.faq p { margin: 0; padding: 0 22px 20px; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }

.chip { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 10px 18px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.chip:hover { border-color: var(--teal); color: var(--teal-dark); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
