/* VisionSafe — site styles
   Palette: navy, teal, white, restrained orange (primary CTA only). */
:root {
  --navy-900: #081c34;
  --navy-800: #0b2545;
  --navy-700: #13345c;
  --navy-100: #e7edf5;
  --teal-700: #0a6e6c;   /* text-safe teal (5.9:1 on white) */
  --teal-600: #0e8583;
  --teal-400: #2cb5ae;
  --teal-50:  #e8f6f5;
  --orange-500: #f28c28; /* used with navy text only */
  --orange-600: #e0761a;
  --ink: #16263a;
  --muted: #4a5a6e;      /* 7:1 on white */
  --line: #d9e1ea;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 8px 24px rgba(11, 37, 69, .07);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { color: var(--navy-800); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; scroll-margin-top: 72px; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-800); color: #dbe6f2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--navy .section-head p { color: #c3d3e5; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-700); margin-bottom: 12px;
}
.section--navy .eyebrow { color: var(--teal-400); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy-800);
  color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 10px; font-weight: 700;
  font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
  font-family: inherit; line-height: 1.2; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--orange-600); color: var(--navy-900); }
.btn--teal { background: var(--teal-700); color: #fff; }
.btn--teal:hover { background: var(--navy-800); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn--ghost:hover { background: var(--navy-800); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: #fff; color: var(--navy-800); }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-800); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; }
.brand span b { color: var(--teal-700); font-weight: 800; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: 8px; }
.site-nav a:not(.btn):hover { background: var(--teal-50); color: var(--teal-700); }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--line); border-radius: 10px;
  width: 48px; height: 48px; cursor: pointer; color: var(--navy-800); padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .site-nav a:not(.btn) { padding: 12px; }
  .site-nav .btn { width: 100%; margin-top: 8px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 100% 0%, rgba(44,181,174,.20), transparent 60%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #d6e2ef; padding: clamp(56px, 9vw, 104px) 0 clamp(56px, 8vw, 96px);
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--teal-400); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: #cfdcea; max-width: 38em; margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .98rem; color: #cfdcea; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--teal-400); flex: none; }
.hero-art { position: relative; }
.hero-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.hero-card h2 { font-size: 1.05rem; margin: 0 0 14px; }
.hero-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); font-size: .95rem; line-height: 1.4; }
.hero-card li b { display: block; color: var(--navy-800); }
.hero-card li span { color: var(--muted); font-size: .88rem; }
.hero-card .num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-700); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.hero-card .note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }
.hero-glasses { width: 100%; max-width: 380px; margin: 0 auto 18px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
}
@media (max-width: 520px) { .hero .btn-row .btn { width: 100%; } }

/* Audience strip */
.audience { background: var(--teal-50); border-bottom: 1px solid #cfe9e7; }
.audience-inner { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: center; padding: 18px 20px; font-weight: 600; color: var(--navy-800); font-size: .98rem; text-align: center; }
.audience-inner span { color: var(--muted); font-weight: 500; }

/* Cards & grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 1px 2px rgba(11,37,69,.04);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.icon-badge {
  width: 48px; height: 48px; border-radius: 12px; background: var(--teal-50);
  color: var(--teal-700); display: grid; place-items: center; margin-bottom: 16px;
}
.icon-badge svg { width: 26px; height: 26px; }

.lead-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 48px; }
.lead-split p { color: var(--muted); }
.callout { border-left: 4px solid var(--teal-600); background: #fff; padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.callout p { color: var(--ink); margin: 0; }
@media (max-width: 860px) { .lead-split { grid-template-columns: 1fr; gap: 24px; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.step-num {
  width: 52px; height: 52px; border-radius: 14px; background: var(--navy-800); color: #fff;
  font-weight: 800; font-size: 1.2rem; display: grid; place-items: center;
}
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); }
.step-time {
  font-size: .85rem; font-weight: 600; color: var(--teal-700); background: var(--teal-50);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.steps-note { margin-top: 20px; font-size: .95rem; color: var(--muted); }
@media (max-width: 720px) {
  .step { grid-template-columns: 52px 1fr; }
  .step-time { grid-column: 2; justify-self: start; white-space: normal; }
}

/* Services */
.service-card { display: flex; flex-direction: column; }
.service-card ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.service-card li { display: flex; gap: 10px; color: var(--ink); font-size: .98rem; line-height: 1.5; }
.service-card li svg { width: 18px; height: 18px; color: var(--teal-600); flex: none; margin-top: 3px; }
.service-card .card-link { margin-top: auto; padding-top: 18px; font-weight: 700; }

/* Industries */
.industry { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px; }
.industry h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.industry h3 svg { width: 24px; height: 24px; color: var(--teal-400); flex: none; }
.industry p { color: #c3d3e5; margin: 0; font-size: .98rem; }
.industries-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.industries-cta p { margin: 0; color: #dbe6f2; }

/* Roles */
.role h3 { font-size: 1.1rem; }
.role p { font-size: .98rem; }

/* FAQ */
.faq { max-width: 860px; }
.faq-group { margin-bottom: 32px; }
.faq-group h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-700); margin-bottom: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700;
  color: var(--navy-800); position: relative; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px;
  border-right: 2.5px solid var(--teal-700); border-bottom: 2.5px solid var(--teal-700);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 22px 18px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-methods { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.contact-method {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink);
}
.contact-method:hover { border-color: var(--teal-600); color: var(--ink); }
.contact-method .icon-badge { margin: 0; width: 44px; height: 44px; flex: none; }
.contact-method small { display: block; color: var(--muted); font-size: .85rem; }
.contact-method strong { display: block; color: var(--navy-800); word-break: break-word; }
.next-steps { padding-left: 1.2em; color: var(--muted); }
.next-steps li { margin-bottom: 6px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.35rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy-800); font-size: .98rem; }
.req { color: #b3261e; }
.field .hint { display: block; font-size: .85rem; color: var(--muted); margin: -2px 0 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid #9aabbd; border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(14,133,131,.35); border-color: var(--teal-700); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #b3261e; background: #fff8f7; }
.error { display: block; color: #b3261e; font-size: .9rem; font-weight: 600; margin-top: 6px; min-height: 0; }
.error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--teal-700); }
.check label { font-weight: 500; color: var(--ink); margin: 0; }
.form-errors { border: 2px solid #b3261e; background: #fff8f7; border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; color: #7a1a14; }
.form-errors p { margin: 0 0 6px; }
.form-errors ul { margin: 0; }
.form-errors a { color: #7a1a14; }
.privacy-note { font-size: .9rem; color: var(--muted); background: var(--bg-soft); border-radius: 10px; padding: 14px 16px; margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--navy-900); color: #b8c8da; padding: 56px 0 28px; font-size: .96rem; }
.site-footer a { color: #e3ecf5; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand span b { color: var(--teal-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }

/* Simple pages (privacy, thank-you, 404) */
.page-hero { background: var(--navy-800); color: #cfdcea; padding: 56px 0 48px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-hero p { margin: 0; max-width: 42em; }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: 6px; }
mark.review { background: #fff1c2; color: #5a3b00; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.draft-banner { background: #fff1c2; border: 2px solid #e0a800; color: #4a3200; border-radius: 10px; padding: 16px 20px; margin-bottom: 32px; }
.draft-banner p { margin: 0; }
.success-box { max-width: 680px; margin: 0 auto; text-align: center; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; }
.success-icon svg { width: 38px; height: 38px; }
.success-box .btn-row { justify-content: center; margin-top: 24px; }
.success-box ol { text-align: left; display: inline-block; color: var(--muted); }
.about-facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.about-facts li { display: flex; gap: 10px; font-weight: 600; color: var(--navy-800); }
.about-facts svg { width: 20px; height: 20px; color: var(--teal-600); flex: none; margin-top: 3px; }
#about .lead-split { margin-bottom: 0; }
