/* SpeciVanta — site styles. Palette from brand/prompts (clinical navy + signal teal). */
:root {
  --navy-950: #061528;
  --navy-900: #0A1F36;
  --navy: #0E2A47;
  --navy-600: #1B3A5C;
  --teal: #14B8A6;
  --teal-ink: #0B7A6F;   /* teal for text on white (AA contrast) */
  --teal-soft: #7DD3C5;
  --teal-wash: #E6F7F5;
  --slate: #5B7689;
  --gray: #8A99A8;
  --line: #E1E8EE;
  --bg-soft: #F4F7FA;
  --white: #FFFFFF;
  --ink: #12263D;
  --ink-2: #44596D;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(10, 31, 54, .06), 0 8px 24px rgba(10, 31, 54, .08);
  --max: 1160px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 700 .98rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: var(--navy-950); }
.btn--primary:hover { background: #2BCBB8; color: var(--navy-950); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-600); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn svg { width: 18px; height: 18px; }

/* Utility bar + header */
.utility { background: var(--navy-950); color: #B8C7D6; font-size: .82rem; }
.utility .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.utility a { color: var(--teal-soft); text-decoration: none; }
.utility a:hover { color: var(--white); }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.22rem; letter-spacing: .08em; color: var(--navy); }
.brand-tag { font-size: .58rem; font-weight: 700; letter-spacing: .16em; color: var(--slate); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-ink); }
.nav .btn { color: var(--navy-950); padding: 11px 18px; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #D5E1EC;
  background:
    radial-gradient(ellipse 60% 70% at 8% 55%, rgba(20, 184, 166, .22), transparent 60%),
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(27, 58, 92, .9), transparent 70%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: radial-gradient(rgba(125, 211, 197, .35) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 45%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 45%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lead { color: #C3D2E0; }
.hero .eyebrow { color: var(--teal-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 0; margin: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .84rem; font-weight: 600; color: #DCE7F1;
  padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  background: rgba(255, 255, 255, .04);
}
.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.pulse { position: absolute; left: 0; right: 0; bottom: 34px; height: 60px; width: 100%; opacity: .55; pointer-events: none; }
.pulse path { stroke: var(--teal); stroke-width: 2; fill: none; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Custody card (hero visual) */
.custody {
  background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35); padding: 26px 26px 18px;
  border-top: 4px solid var(--teal);
}
.custody-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.custody-head strong { color: var(--navy); font-size: 1.02rem; }
.custody-head span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding-bottom: 18px; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 16px; top: 34px; bottom: 2px; width: 2px; background: var(--line);
}
.steps .dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal-wash); color: var(--teal-ink); font-weight: 800; font-size: .9rem;
}
.steps b { display: block; color: var(--navy); font-size: .98rem; }
.steps small { color: var(--ink-2); font-size: .86rem; line-height: 1.45; display: block; }

/* Backup band */
.band {
  background: var(--teal-wash); border: 1px solid #C5ECE6; border-radius: 20px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding: 44px; align-items: center;
}
.band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.band li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--navy); }

/* Grids + cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: #BFE3DE; box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--ink-2); margin-bottom: 0; font-size: .97rem; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .9rem; color: var(--teal-ink); }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: var(--teal); margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; }
.tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; margin-top: 2px; }
.tick svg { width: 13px; height: 13px; }

/* How it works */
.how { counter-reset: how; }
.how .card { position: relative; padding-top: 58px; }
.how .card::before {
  counter-increment: how; content: "0" counter(how);
  position: absolute; top: 22px; left: 28px; font-weight: 800; font-size: .95rem; color: var(--teal-ink); letter-spacing: .08em;
}

/* Industries */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tags li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: .94rem; color: var(--navy); }

/* Qualifications (dark section) */
.dark { background: var(--navy-900); color: #C3D2E0; }
.dark h2, .dark h3 { color: var(--white); }
.dark .eyebrow { color: var(--teal-soft); }
.dark .lead { color: #C3D2E0; }
.quals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.qual { border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 24px; background: rgba(255, 255, 255, .03); }
.qual h3 { font-size: 1.05rem; margin-bottom: 6px; }
.qual p { font-size: .92rem; margin: 0; color: #AFC0D0; }
.qual .icon { background: rgba(20, 184, 166, .14); }
.docs { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.docs strong { color: var(--white); }
.docs span { font-size: .92rem; }

/* Service area */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.rings { position: relative; aspect-ratio: 1; max-width: 440px; margin: 0 auto; width: 100%; }
.rings div { position: absolute; border-radius: 50%; display: grid; place-items: start center; }
.rings .r3 { inset: 0; border: 1px dashed #B7C6D3; }
.rings .r2 { inset: 15%; background: #E9F1F7; }
.rings .r1 { inset: 31%; background: var(--navy); place-items: center; }
.rings span { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: 7%; color: var(--slate); text-align: center; }
.rings .r1 span { color: var(--white); margin: 0; padding: 0 12%; font-size: .8rem; line-height: 1.3; }
.tiers { display: grid; gap: 14px; }
.tier { display: grid; grid-template-columns: 12px 1fr; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.tier i { width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; }
.tier p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.06rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-ink); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* CTA band */
.cta {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-900) 60%, #0C3B4A 100%);
  color: #C3D2E0; border-radius: 22px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px;
}
.cta h2 { color: var(--white); margin-bottom: 8px; }
.cta p { margin: 0; max-width: 56ch; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #C3D2E0; padding: 72px 0 64px; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero .lead { color: #C3D2E0; }
.page-hero .eyebrow { color: var(--teal-soft); }

/* Service detail rows */
.detail { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.detail:first-child { border-top: 0; padding-top: 0; }
.detail h2 { font-size: 1.6rem; }
.detail .kicker { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); }
.detail dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 20px; margin: 18px 0 0; }
.detail dt { font-weight: 700; color: var(--navy); font-size: .92rem; }
.detail dd { margin: 0; color: var(--ink-2); font-size: .95rem; }
.notice { border-left: 4px solid var(--teal); background: var(--bg-soft); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.notice--warn { border-left-color: #D97706; background: #FFF7EB; }
.nolist li { margin-bottom: 6px; color: var(--ink-2); }

/* Forms */
.form-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.form fieldset { border: 0; margin: 0 0 26px; padding: 0; }
.form legend { font-weight: 800; color: var(--navy); font-size: 1.05rem; margin-bottom: 14px; padding: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .radio-label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field label .opt { font-weight: 500; color: var(--gray); }
.field input, .field select, .field textarea {
  font: 500 1rem/1.4 var(--font); color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #CFD9E2; border-radius: 10px; background: var(--white); width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 4px rgba(20, 184, 166, .18); }
.field .hint { font-size: .8rem; color: var(--slate); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.segmented label {
  display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1.5px solid #CFD9E2; border-radius: 12px; cursor: pointer;
  font-weight: 700; color: var(--navy); font-size: .95rem;
}
.segmented label small { font-weight: 500; color: var(--slate); font-size: .8rem; }
.segmented input { position: absolute; opacity: 0; }
.segmented label:has(input:checked) { border-color: var(--teal); background: var(--teal-wash); box-shadow: 0 0 0 3px rgba(20, 184, 166, .15); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: none; margin-bottom: 20px; }
.form-alert.show { display: block; }
.form-alert:focus { outline: none; }
.aside-card { background: var(--bg-soft); border-radius: 18px; padding: 28px; position: sticky; top: 96px; }
.aside-card h3 { margin-bottom: 14px; }
.aside-card ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.aside-card li { font-size: .95rem; }
.aside-card li b { display: block; color: var(--navy); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose li { margin-bottom: 6px; }

/* Footer */
.footer { background: var(--navy-950); color: #9FB2C4; padding: 64px 0 28px; font-size: .93rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { color: var(--white); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: #C9D6E2; text-decoration: none; }
.footer a:hover { color: var(--teal-soft); }
.footer .brand-name { color: var(--white); }
.footer .brand-tag { color: var(--teal-soft); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .82rem; color: #7F95AA; }

/* Responsive */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; padding-top: 72px; }
  .quals, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .band, .area, .form-layout { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px; }
  .aside-card { position: static; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 74px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
  .utility .hide-sm { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .grid-3, .grid-2, .grid-4, .quals, .fields, .segmented { grid-template-columns: 1fr; }
  .band { padding: 28px 22px; }
  .cta { padding: 32px 22px; }
  .form { padding: 24px 18px; }
  .detail dl { grid-template-columns: 1fr; gap: 2px; }
  .detail dd { margin-bottom: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .pulse { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .pulse path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
