/*
 * EPS public site (epsdr.com) - shared styles.
 * Plain CSS, no build step. Colours follow the EPS app tokens
 * (src/styles/tokens.css) and the app's dialog title bar gradient.
 *
 * Design-token rule exception: this folder is a standalone static site that is
 * copied to a web root on its own, so it cannot import src/styles/tokens.css
 * (that file is part of the React bundle and does not exist next to these pages).
 * Every colour is declared once in :root (copies of those tokens, plus the few
 * tints the marketing pages need); the rules below use only the variables.
 */
:root {
  --navy-900: #0f172a;
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --green-600: #059669;
  --red-600: #dc2626;
  --white: #fff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --blue-300: #93c5fd;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --green-50: #ecfdf5;
  --green-700: #047857;
  --white-a08: rgba(255, 255, 255, .08);
  --white-a16: rgba(255, 255, 255, .16);
  --white-a45: rgba(255, 255, 255, .45);
  --white-a94: rgba(255, 255, 255, .94);
  --blue-400-a0: rgba(96, 165, 250, 0);
  --blue-400-a28: rgba(96, 165, 250, .28);
  --blue-500-a25: rgba(59, 130, 246, .25);
  --blue-600-a35: rgba(37, 99, 235, .35);
  --slate-400-a25: rgba(148, 163, 184, .25);
  --ink-a45: rgba(2, 6, 23, .45);
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, .12);
  --wrap: 1120px;
  --brand-gradient: linear-gradient(115deg, #0f172a 0%, #1e1b4b 35%, #312e81 65%, #1e3a8a 100%);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--gray-900); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--white); color: var(--blue-800); padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow-md);
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white-a94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--gray-900); }
.brand:hover { text-decoration: none; }
/* The EPS icon is the Flex application icon (EPSAIR icons/app_icon_*.png), copied as assets/eps-icon-*.png. */
.brand-mark { display: block; flex: none; width: 40px; height: 40px; border-radius: 9px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-size: 18px; letter-spacing: .02em; }
.brand-name span { font-size: 11.5px; color: var(--gray-500); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a.nav-link {
  padding: 8px 14px; border-radius: 8px;
  color: var(--gray-700); font-size: 15px; font-weight: 500;
}
.site-nav a.nav-link:hover { background: var(--gray-100); color: var(--gray-900); text-decoration: none; }
.site-nav a.nav-link[aria-current] { color: var(--blue-700); background: var(--blue-50); }
.site-nav .btn { margin-left: 10px; }

/* The drop-down menus: the Flash main menu of the 2009 site (menu.xml), in HTML. A menu opens on hover and
   on keyboard focus; its own link leads to the section's first page, where the side menu shows the rest. */
.nav-item { position: relative; }
.site-nav a.has-menu { display: inline-flex; align-items: center; gap: 5px; }
.site-nav .caret { flex: none; opacity: .7; }
.submenu {
  display: none; position: absolute; left: 0; top: 100%; z-index: 60; min-width: 236px;
  padding: 8px; border: 1px solid var(--gray-200); border-radius: 12px;
  background: var(--white); box-shadow: var(--shadow-md);
}
.nav-item:hover > .submenu, .nav-item:focus-within > .submenu { display: block; }
.submenu a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--gray-700); font-size: 14.5px; font-weight: 500; white-space: nowrap;
}
.submenu a:hover { background: var(--gray-100); color: var(--gray-900); text-decoration: none; }
.submenu a[aria-current="page"] { color: var(--blue-700); background: var(--blue-50); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: 8px;
  border: 1px solid var(--gray-300); background: var(--white); color: var(--gray-700); cursor: pointer;
  align-items: center; justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue-600); color: var(--white); box-shadow: 0 1px 2px var(--blue-600-a35); }
.btn-primary:hover { background: var(--blue-700); }
.btn-outline { background: var(--white); color: var(--blue-700); border-color: var(--blue-200); }
.btn-outline:hover { background: var(--blue-50); border-color: var(--blue-500); }
.btn-light { background: var(--white); color: var(--blue-900); }
.btn-light:hover { background: var(--blue-50); }
.btn-ghost { background: var(--white-a08); color: var(--white); border-color: var(--white-a45); }
.btn-ghost:hover { background: var(--white-a16); }
.btn-lg { padding: 13px 26px; font-size: 16px; }

/* ---------- Hero (home) ---------- */
.hero { background: var(--brand-gradient); color: var(--indigo-100); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -180px; top: -220px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--blue-400-a28), var(--blue-400-a0));
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  padding-top: 84px; padding-bottom: 92px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p.lead { font-size: 1.125rem; color: var(--indigo-200); max-width: 36em; margin-bottom: 30px; }
.hero p.lead strong { color: var(--white); font-weight: 600; }

/* The Flash intro of the 2009 home page, in HTML: its lines come in one after another, in the same order,
   over rising blue bars. With "reduce motion" set, everything is simply there. */
.hero h1.intro-title { font-size: clamp(1.7rem, 3.3vw, 2.5rem); line-height: 1.22; margin-bottom: 14px; }
.intro-title .intro-name { font-size: 1.9em; line-height: 1.05; letter-spacing: .01em; color: var(--blue-300); }
.intro-slogan {
  margin: 0 0 22px; font-size: 13.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--indigo-300);
}
.intro-line { display: block; opacity: 0; transform: translateY(14px); animation: intro-in .7s ease forwards; }
.intro-1 { animation-delay: .15s; }
.intro-2 { animation-delay: .65s; }
.intro-3 { animation-delay: 1.2s; }
.intro-4 { animation-delay: 1.75s; }
.intro-5 { animation-delay: 2.3s; }
.intro-6 { animation-delay: 3.1s; }
@keyframes intro-in { to { opacity: 1; transform: none; } }

.hero-bars {
  position: absolute; left: 0; right: 0; bottom: 0; height: 58%;
  display: flex; align-items: flex-end; gap: 1.1%; padding: 0 3%;
  opacity: .2; pointer-events: none;
}
.hero-bars span {
  flex: 1; height: 20%; border-radius: 3px 3px 0 0; transform-origin: bottom;
  background: linear-gradient(to top, var(--blue-500), var(--blue-400-a0));
  animation: bar-rise 3.6s ease-in-out infinite alternate;
}
.hero-bars span:nth-child(1) { height: 18%; }
.hero-bars span:nth-child(2) { height: 24%; animation-delay: -.4s; }
.hero-bars span:nth-child(3) { height: 21%; animation-delay: -.9s; }
.hero-bars span:nth-child(4) { height: 30%; animation-delay: -1.3s; }
.hero-bars span:nth-child(5) { height: 27%; animation-delay: -.2s; }
.hero-bars span:nth-child(6) { height: 38%; animation-delay: -1.7s; }
.hero-bars span:nth-child(7) { height: 34%; animation-delay: -.6s; }
.hero-bars span:nth-child(8) { height: 46%; animation-delay: -2.1s; }
.hero-bars span:nth-child(9) { height: 41%; animation-delay: -1.1s; }
.hero-bars span:nth-child(10) { height: 55%; animation-delay: -.3s; }
.hero-bars span:nth-child(11) { height: 50%; animation-delay: -1.9s; }
.hero-bars span:nth-child(12) { height: 66%; animation-delay: -.8s; }
.hero-bars span:nth-child(13) { height: 61%; animation-delay: -2.4s; }
.hero-bars span:nth-child(14) { height: 78%; animation-delay: -1.5s; }
.hero-bars span:nth-child(15) { height: 88%; animation-delay: -.5s; }
.hero-bars span:nth-child(16) { height: 100%; animation-delay: -2s; }
@keyframes bar-rise { from { transform: scaleY(.78); } to { transform: scaleY(1); } }
.eyebrow {
  display: inline-block; margin-bottom: 18px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600);
}
.hero .eyebrow { color: var(--blue-300); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 22px 0 0; font-size: 14px; color: var(--indigo-300); }

.flow-card {
  background: var(--white); color: var(--gray-700); border-radius: 16px; padding: 26px 26px 14px;
  box-shadow: 0 30px 60px var(--ink-a45);
}
.flow-card h2 { font-size: 15px; font-weight: 700; letter-spacing: 0; margin-bottom: 14px; color: var(--gray-900); }
.flow-list { list-style: none; margin: 0; padding: 0; }
.flow-list li {
  display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--gray-100);
}
.flow-list li:first-child { border-top: 0; }
.flow-icon {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--blue-50); color: var(--blue-700);
}
.flow-list strong { display: block; color: var(--gray-900); font-size: 15px; line-height: 1.3; }
.flow-list strong a { color: inherit; }
.flow-list strong a:hover { color: var(--blue-700); }
.flow-list span { font-size: 13.5px; color: var(--gray-500); }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--gray-200); background: var(--white); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item svg { flex: none; color: var(--green-600); margin-top: 3px; }
.trust-item strong { display: block; color: var(--gray-900); font-size: 15px; line-height: 1.35; }
.trust-item span { font-size: 13.5px; color: var(--gray-500); line-height: 1.45; display: block; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.05rem; color: var(--gray-600); margin: 0; }
.section-foot { text-align: center; margin-top: 40px; }

.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 15px; color: var(--gray-600); }
.card .icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  background: var(--blue-50); color: var(--blue-700);
}
a.card { display: block; color: inherit; transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease; }
a.card:hover { text-decoration: none; border-color: var(--blue-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.card .more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--blue-700); }

.feature { display: flex; gap: 20px; align-items: flex-start; }
.feature .icon { flex: none; margin-bottom: 0; }
.feature h2 { font-size: 1.2rem; letter-spacing: -.01em; margin-bottom: 8px; }

/* ---------- Split band (pricing teaser) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 9px 0 9px 34px; color: var(--gray-700); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
.price-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 34px; box-shadow: var(--shadow-md); }
.price-card .tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
  background: var(--green-50); color: var(--green-700); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.price-card h2, .price-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.price-card p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta { background: var(--brand-gradient); color: var(--indigo-200); text-align: center; padding: 72px 0; }
.cta h2 { color: var(--white); }
.cta p { max-width: 640px; margin: 0 auto 28px; font-size: 1.05rem; }
.cta a.inline { color: var(--white); text-decoration: underline; }
.cta .hero-actions { justify-content: center; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--brand-gradient); color: var(--indigo-200); padding: 64px 0 60px; }
.page-head h1 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.page-head p { margin: 0; max-width: 720px; font-size: 1.08rem; }
.page-head .eyebrow { color: var(--blue-300); margin-bottom: 12px; }

.page-head a.inline-light { color: var(--white); text-decoration: underline; }

.mx-auto { margin-left: auto; margin-right: auto; }
.actions-gap { margin-top: 22px; }
.split-top { align-items: start; }

/* ---------- Section pages (Solutions, Clients, Support): side menu + content ---------- */
/* The side menu is what the Flash left menu showed on these pages. */
.with-side { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.side-nav { position: sticky; top: 92px; }
.side-nav h2 {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 12px;
}
.side-nav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--gray-200); }
.side-nav li { margin: 0; }
.side-nav a {
  display: block; margin-left: -2px; padding: 8px 14px; border-left: 2px solid transparent;
  color: var(--gray-600); font-size: 15px; font-weight: 500;
}
.side-nav a:hover { color: var(--gray-900); text-decoration: none; border-left-color: var(--gray-300); }
.side-nav a[aria-current="page"] { color: var(--blue-700); border-left-color: var(--blue-600); background: var(--blue-50); }

.feature-list { max-width: 760px; }
.feature-list .card { margin-bottom: 18px; }
.feature-list .card:last-child { margin-bottom: 0; }
.feature-list .card h2 { font-size: 1.15rem; letter-spacing: -.01em; margin-bottom: 8px; }
.feature-list .card p { font-size: 1rem; color: var(--gray-700); margin-bottom: .7em; }
.feature-list .card p:last-child { margin-bottom: 0; }
.feature-list .card .check-list li { padding-top: 6px; padding-bottom: 6px; }
.feature-list .card .check-list li::before { top: 9px; }
.section-intro { font-size: 1.1rem; color: var(--gray-700); margin-bottom: 24px; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 1.05rem; color: var(--gray-700); }
.prose ul { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { font-size: 1.05rem; color: var(--gray-700); margin-bottom: .5em; }

/* Privacy Policy page */
.policy h2 { font-size: 1.35rem; }
.policy address { font-style: normal; font-size: 1.05rem; line-height: 1.7; }

/* ---------- FAQ ---------- */
.faq-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.faq-nav a {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--gray-300); background: var(--white);
  color: var(--gray-700); font-size: 14.5px; font-weight: 500;
}
.faq-nav a:hover { border-color: var(--blue-500); color: var(--blue-700); text-decoration: none; }
.faq-group { margin-bottom: 56px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group > h2 { font-size: 1.4rem; margin-bottom: 18px; }
.faq { border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.faq details { border-top: 1px solid var(--gray-200); }
.faq details:first-child { border-top: 0; }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 56px 18px 22px; color: var(--gray-900); font-weight: 600; font-size: 1rem; line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--gray-500); border-bottom: 2px solid var(--gray-500);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:hover { background: var(--gray-50); }
.faq .answer { padding: 0 22px 20px; color: var(--gray-700); }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }
.faq .answer ul { margin: 0 0 1em; padding-left: 1.2em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-grid .card > h2 { font-size: 1.4rem; margin-bottom: 6px; }
.contact-grid .card > p { margin-bottom: 22px; }
.office { margin-bottom: 20px; }
.office:last-child { margin-bottom: 0; }
.office h3 { margin-bottom: 2px; }
.office .role { font-size: 13.5px; color: var(--gray-500); margin-bottom: 12px; }
.office address { font-style: normal; color: var(--gray-700); }
.office .line { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-size: 15px; }
.office .line svg { flex: none; color: var(--blue-700); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.field .req { color: var(--red-600); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--gray-900);
  padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: 8px; background: var(--white); width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-500-a25);
}
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 22px; }
.form-hint { font-size: 13.5px; color: var(--gray-500); margin: 0; }
.form-result {
  margin-top: 22px; padding: 18px; border-radius: 10px; border: 1px solid var(--blue-200); background: var(--blue-50);
}
.form-result[hidden] { display: none; }
.form-result p { font-size: 14.5px; margin-bottom: 10px; }
.form-result pre {
  margin: 0 0 12px; padding: 12px; border-radius: 8px; background: var(--white); border: 1px solid var(--gray-200);
  font: 13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word;
  color: var(--gray-900);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--slate-300); padding: 60px 0 28px; font-size: 14.5px; }
.site-footer a { color: var(--slate-200); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h2 {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer .brand-name span { color: var(--slate-400); }
.site-footer p { margin: 0; color: var(--slate-400); max-width: 30em; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--slate-400-a25);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--slate-400); font-size: 13.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; padding-top: 64px; padding-bottom: 72px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Narrow screens: the menu becomes one panel behind the menu button, with every sub-page listed under its
   menu (no hover on a touch screen). */
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-md);
    padding: 12px 24px 20px; max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-link { padding: 11px 10px; font-size: 16px; }
  .site-nav a.has-menu { display: flex; }
  .site-nav .caret { display: none; }
  .site-nav .btn { margin: 10px 0 0; }
  .submenu {
    display: block; position: static; min-width: 0; padding: 0 0 6px 14px;
    border: 0; border-radius: 0; box-shadow: none; background: none;
  }
  .submenu a { padding: 7px 12px; font-size: 15px; white-space: normal; }
}

@media (max-width: 820px) {
  .section { padding: 60px 0; }
  .with-side { grid-template-columns: 1fr; gap: 28px; }
  .side-nav { position: static; }
  .side-nav ul { display: flex; flex-wrap: wrap; gap: 8px; border-left: 0; }
  .side-nav a {
    margin-left: 0; padding: 7px 14px; border: 1px solid var(--gray-300); border-radius: 999px; font-size: 14px;
  }
  .side-nav a:hover { border-color: var(--blue-500); }
  .side-nav a[aria-current="page"] { border-color: var(--blue-600); }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .grid-4, .grid-2, .form-grid, .trust .wrap, .footer-grid { grid-template-columns: 1fr; }
  .brand-name span { display: none; }
  .feature { flex-direction: column; gap: 14px; }
  .price-card { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .intro-line { opacity: 1; transform: none; animation: none; }
  .hero-bars span { animation: none; }
}

@media print {
  .intro-line { opacity: 1; transform: none; animation: none; }
}
