/* Universal Stream LLC — site styles */
:root {
  --navy-900: #0b1f3a;
  --navy-800: #102a4c;
  --navy-700: #16375f;
  --blue-600: #1f6feb;
  --blue-500: #2f80ed;
  --blue-100: #e7f0fd;
  --green-600: #138a5b;
  --green-500: #1fa971;
  --green-100: #e3f6ed;
  --ink: #1b2533;
  --muted: #4a5668;
  --line: #dde3ec;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 8px 24px rgba(11, 31, 58, .07);
  --max: 1180px;
  --font: "Inter", 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%; height: auto; display: block; }
a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy-900); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-900); color: #dbe5f3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-600); margin-bottom: .75rem; }
.section--navy .eyebrow { color: #6fe0ae; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue-600); color: #fff; }
.btn--primary:hover { background: var(--navy-700); color: #fff; }
.btn--green { background: var(--green-600); color: #fff; }
.btn--green:hover { background: #0e6f49; color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--navy-900); background: #fff; }
.btn--ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--green-100); color: var(--navy-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* 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: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy-900); font-weight: 800; font-size: 1.1rem; line-height: 1.1; }
.brand small { display: block; font-weight: 600; font-size: .7rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.brand img { height: 56px; width: auto; display: block; }
.brand--footer { display: inline-block; background: #fff; border-radius: 12px; padding: .5rem .75rem; }
.brand--footer img { height: 64px; }
@media (max-width: 560px) { .brand img { height: 46px; } }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem .7rem; color: var(--navy-900); font: inherit; font-weight: 700; cursor: pointer; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.main-nav a { display: block; padding: .55rem .7rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .94rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--blue-600); background: var(--blue-100); }
.main-nav a.nav-ai { color: #fff; background: var(--navy-900); }
.main-nav a.nav-ai:hover, .main-nav a.nav-ai[aria-current="page"] { background: var(--blue-600); color: #fff; }
.main-nav a.nav-cta { color: #fff; background: var(--green-600); }
.main-nav a.nav-cta:hover { background: #0e6f49; color: #fff; }
.has-sub { position: relative; }
.has-sub > button { display: flex; align-items: center; gap: .3rem; padding: .55rem .7rem; border: 0; background: none; font: inherit; font-weight: 600; font-size: .94rem; color: var(--ink); cursor: pointer; border-radius: var(--radius-sm); }
.has-sub > button:hover, .has-sub.active > button { color: var(--blue-600); background: var(--blue-100); }
.submenu { position: absolute; top: 100%; left: 0; min-width: 290px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; display: none !important; flex-direction: column; align-items: stretch !important; }
.has-sub.open .submenu, .has-sub:focus-within .submenu { display: flex !important; }
@media (hover: hover) and (min-width: 1201px) { .has-sub:hover .submenu { display: flex !important; } }

@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; max-height: calc(100vh - 72px); overflow: auto; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .2rem; }
  .has-sub > button { width: 100%; justify-content: space-between; }
  .submenu { position: static; box-shadow: none; border: 0; padding: 0 0 0 .75rem; min-width: 0; }
}

/* Hero */
.hero { background: linear-gradient(180deg, #f3f7fd 0%, #ffffff 100%); padding: clamp(2.4rem, 5.6vw, 4.4rem) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero p.lead { margin-top: 1rem; }
.hero-art { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 1.25rem; }
.page-hero { background: linear-gradient(180deg, #f3f7fd 0%, #ffffff 100%); padding: clamp(2.2rem, 4.8vw, 3.6rem) 0 clamp(1.6rem, 3.2vw, 2.4rem); border-bottom: 1px solid var(--line); }
/* Intro sections: 20% smaller than default */
.hero h1, .page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.65rem); }
.hero .lead, .page-hero .lead { font-size: 1.08rem; }
.hero .btn-row, .page-hero .btn-row { margin-top: 1.4rem; }
.hero-art { max-width: 440px; justify-self: center; }
.page-hero .lead { margin-top: .5rem; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.trust-row { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.75rem; color: var(--muted); font-size: .95rem; }
.trust-row span { display: inline-flex; align-items: center; gap: .4rem; }
.trust-row svg { width: 18px; height: 18px; color: var(--green-600); }

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Cards & grids */
.grid { display: grid; gap: 1.25rem; }
.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: 980px) { .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: 1.5rem; height: 100%; }
.card p:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card--link:hover { border-color: var(--blue-500); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.card--link .more { margin-top: auto; padding-top: .75rem; color: var(--blue-600); font-weight: 700; font-size: .95rem; }
.card p { color: var(--muted); }
/* Icon and title on the same row inside cards */
.card:has(> .icon + h3), .ai-tile:has(> .icon + h3) { display: grid; grid-template-columns: auto 1fr; column-gap: .85rem; align-content: start; }
.card:has(> .icon + h3) > *, .ai-tile:has(> .icon + h3) > * { grid-column: 1 / -1; }
.card > .icon:has(+ h3), .ai-tile > .icon:has(+ h3) { grid-column: 1; margin: 0; align-self: center; }
.card > .icon + h3, .ai-tile > .icon + h3 { grid-column: 2; align-self: center; margin: 0; }
.card > .icon + h3 + *, .ai-tile > .icon + h3 + * { margin-top: .85rem; }
.card--link:has(> .icon + h3) { grid-template-rows: auto 1fr auto; }
.text-link { color: #6fe0ae !important; font-weight: 700; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); margin-bottom: 1rem; }
.icon svg { width: 24px; height: 24px; }
.icon--green { background: var(--green-100); color: var(--green-600); }
.icon--navy { background: var(--navy-900); color: #fff; }

/* AI feature band */
.ai-band { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .ai-band { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23138a5b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/70% no-repeat; }
.section--navy .check-list li::before { background-color: rgba(111, 224, 174, .18); }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; }
@media (max-width: 640px) { .check-list.cols-2 { grid-template-columns: 1fr; } }
.ai-tile { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 1.25rem; }
.ai-tile h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.ai-tile p { margin: 0; color: #b9c8dc; font-size: .97rem; }
.ai-tile .icon { background: rgba(111, 224, 174, .15); color: #6fe0ae; }

/* Process steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.2rem; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 800; margin-bottom: .9rem; }
.steps li:nth-child(n+4)::before { background: var(--green-600); }
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.stat strong { display: block; font-size: 2rem; color: var(--navy-900); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }

.note { background: var(--green-100); border-left: 4px solid var(--green-600); border-radius: var(--radius-sm); padding: 1rem 1.2rem; color: var(--ink); }
.note--blue { background: var(--blue-100); border-left-color: var(--blue-600); }

/* Prose for long content */
.prose { max-width: 48rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.55rem; }
.prose h3 { margin-top: 1.6rem; }
.prose li { margin-bottom: .35rem; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; background: #fff; margin-bottom: .75rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy-900); }
.faq details p { margin: .75rem 0 0; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #dbe5f3; border-radius: 22px; padding: clamp(2rem, 5vw, 3.25rem); display: grid; grid-template-columns: 1.4fr auto; gap: 1.5rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { margin: 0; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; color: var(--navy-900); }
label .req { color: #b42318; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1px solid #c5cfdc; border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--blue-600); outline: 3px solid rgba(31, 111, 235, .2); outline-offset: 0; }
textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .93rem; color: var(--muted); }
.consent input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--green-600); }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 1rem; }
.hp { position: absolute; left: -5000px; }
.form-status { margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius-sm); display: none; }
.form-status.ok { display: block; background: var(--green-100); color: #0b5c3c; }
.form-status.err { display: block; background: #fdecea; color: #8a1c13; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .icon { margin: 0; width: 42px; height: 42px; }
.contact-list strong { display: block; color: var(--navy-900); }

/* Article cards */
.tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--green-600); background: var(--green-100); border-radius: 999px; padding: .2rem .65rem; margin-bottom: .75rem; }

/* Footer */
.site-footer { background: var(--navy-900); color: #b9c8dc; padding: 4rem 0 2rem; margin-top: 0; font-size: .96rem; }
.site-footer a { color: #dbe5f3; text-decoration: none; }
.site-footer a:hover { color: #6fe0ae; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; }
.footer-grid h2 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand small { color: #9fb2cb; }
.social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--green-600); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Cookie / analytics consent */
.consent-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(11,31,58,.18); padding: 1rem 1.2rem; display: none; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: .93rem; }
.consent-bar.show { display: flex; }
.consent-bar p { margin: 0; flex: 1 1 320px; color: var(--muted); }
.consent-bar .btn { padding: .55rem 1rem; font-size: .9rem; }

.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
