/* Brivant website: brand tokens from brand/README.md */
:root {
  --navy: #101B33;
  --navy-2: #1B2A4A;
  --cyan: #06B6D4;        /* accent only, never body text */
  --cyan-deep: #0E7490;   /* links and buttons on white */
  --ice: #ECFEFF;
  --white: #FFFFFF;
  --ink-2: #475569;       /* secondary text */
  --line: #E2E8F0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 27, 51, .06), 0 8px 24px rgba(16, 27, 51, .08);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan-deep); }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.todo { background: #FEF3C7; color: #92400E; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { color: var(--cyan-deep); border-color: #A5DCE6; background: #fff; }
.btn-ghost:hover { border-color: var(--cyan-deep); color: var(--navy); }
.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-cyan:hover { background: #22D3EE; color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--cyan-deep); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, #fff 0%, var(--ice) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); margin-bottom: 20px; }
.sep { width: 2px; height: 14px; background: var(--cyan); display: inline-block; }
.dot { display: inline-block; width: .17em; height: .17em; background: var(--cyan); margin-left: .06em; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 560px; }
.aside { font-weight: 600; color: var(--navy); }
.hero .cta-row { margin-top: 28px; }

/* Portal mock-up */
.portal { margin: 0; background: #fff; border-radius: 16px; box-shadow: 0 2px 4px rgba(16,27,51,.06), 0 24px 60px rgba(16,27,51,.16); overflow: hidden; border: 1px solid var(--line); }
.portal-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #F8FAFC; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; display: block; }
.url { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; }
.url svg { color: var(--cyan-deep); }
.portal-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.portal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ph-title { margin: 0; font-weight: 800; font-size: 17px; }
.ph-sub { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.chip { font-size: 12px; font-weight: 700; background: var(--ice); color: var(--cyan-deep); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.kpi span { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.kpi strong { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.kpi em { font-style: normal; font-size: 11.5px; font-weight: 700; }
.kpi .up { color: #047857; }
.kpi .down { color: var(--cyan-deep); }
.charts { display: grid; grid-template-columns: 1.7fr 1fr; gap: 10px; }
.chart { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; }
.chart svg { width: 100%; height: 110px; }
.chart-title { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.bars rect { fill: var(--navy); rx: 3px; }
.bars .hi { fill: var(--cyan); }
.target { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 5 5; }
.line { fill: none; stroke: var(--cyan); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pt { fill: var(--navy); }
.ai-note { display: flex; gap: 10px; align-items: flex-start; background: var(--navy); color: #fff; border-radius: 10px; padding: 12px 14px; }
.ai-note p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.ai-badge { flex-shrink: 0; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--cyan); color: var(--navy); padding: 3px 8px; border-radius: 6px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: #F6FBFC; border-top: 1px solid #E6F1F3; border-bottom: 1px solid #E6F1F3; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan-deep); margin-bottom: 10px; }
.section-lead { font-size: 1.1rem; color: var(--ink-2); max-width: 680px; margin-bottom: 40px; }

/* Services */
.services { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 20px; margin-top: 8px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--ink-2); }
.card-feature { background: var(--navy); color: #fff; border-color: var(--navy); }
.card-feature p, .card-feature li { color: #D7DEEA; }
.tag { position: absolute; top: 20px; right: 20px; font-size: 12px; font-weight: 800; background: var(--cyan); color: var(--navy); padding: 4px 10px; border-radius: 999px; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--ice); color: var(--cyan-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; }
.card-feature .icon, .icon-light { background: rgba(6,182,212,.16); color: var(--cyan); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--cyan); border-bottom: 3px solid var(--cyan); transform: rotate(-45deg); }
.automation-band { margin-top: 20px; display: flex; gap: 20px; align-items: flex-start; background: var(--ice); border: 1px solid #BDEFF6; border-radius: var(--radius); padding: 24px 28px; }
.automation-band .icon { margin: 0; flex-shrink: 0; background: var(--navy); color: var(--cyan); }
.automation-band p { margin: 0; color: var(--ink-2); }

/* Why */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 32px 0 48px; }
.benefit { border-top: 3px solid var(--cyan); padding-top: 18px; }
.benefit p { color: var(--ink-2); margin: 0; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 15.5px; }
.compare caption { caption-side: bottom; text-align: left; padding: 14px 20px; font-size: 14px; color: var(--ink-2); }
.compare th, .compare td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 14px; font-weight: 800; }
.compare tbody th { font-weight: 600; color: var(--ink-2); width: 26%; }
.compare .col-hi { background: var(--ice); font-weight: 700; }
.compare thead .col-hi { background: var(--navy); color: #fff; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.steps p { color: var(--ink-2); margin: 0; }
.step-n { display: inline-flex; width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 16px; }
.steps li:last-child .step-n { background: var(--cyan); color: var(--navy); }

/* Live demos */
.demos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 56px; }
.demo-card { display: flex; flex-direction: column; gap: 6px; background: var(--navy); color: #fff; text-decoration: none; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 2px solid var(--navy); transition: border-color .15s, transform .15s; }
.demo-card:hover { color: #fff; border-color: var(--cyan); transform: translateY(-2px); }
.demo-card h3 { font-size: 1.3rem; margin: 6px 0 2px; }
.demo-card p { color: #D7DEEA; margin: 0 0 8px; }
.demo-tag { align-self: flex-start; font-size: 12px; font-weight: 800; background: var(--cyan); color: var(--navy); padding: 4px 10px; border-radius: 999px; }
.demo-link { margin-top: auto; font-weight: 700; color: var(--cyan); }
.sub-head { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }

/* Case study */
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.case-head { padding: 28px 32px 8px; }
.case-tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--cyan-deep); background: var(--ice); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.case-head h3 { font-size: 1.4rem; }
.case-grid { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 24px; align-items: start; padding: 16px 32px 32px; }
.case-arrow { align-self: center; }
.case-label { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.case-col p:last-child { margin: 0; }
.case-arrow svg { width: 56px; height: 56px; }

/* About */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
.about-photo { aspect-ratio: 1; border-radius: 20px; background: repeating-linear-gradient(45deg, #F1F5F9, #F1F5F9 12px, #E2E8F0 12px, #E2E8F0 24px); display: flex; align-items: center; justify-content: center; color: var(--ink-2); font-weight: 700; }
.about p { color: var(--ink-2); max-width: 640px; }
.about .tools { font-weight: 700; color: var(--navy); font-size: 15px; }
.about .signoff { font-weight: 800; color: var(--navy); margin: 0; }
.about-facts { display: grid; gap: 14px; align-self: start; }
.fact { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 2px; }
.fact strong { font-size: 2.2rem; font-weight: 800; line-height: 1.1; color: var(--cyan); letter-spacing: -0.02em; }
.fact span { color: #D7DEEA; font-size: 15px; font-weight: 500; }
.case-gap { margin-top: 20px; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; font-weight: 600; color: var(--cyan-deep); line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding: 0 22px 18px; margin: 0; color: var(--ink-2); }

/* Contact */
.contact { background: var(--navy); color: #fff; padding: 96px 0; text-align: center; }
.contact-inner { max-width: 760px; }
.contact p { color: #D7DEEA; font-size: 1.1rem; margin-bottom: 28px; }

/* Footer */
.site-footer { background: #0A1224; color: #AEB9CC; padding: 40px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer-inner p { margin: 0; }
.footer-inner .small { margin-left: auto; }
.site-footer a { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .services { grid-template-columns: 1fr 1fr; }
  .card-feature { grid-column: 1 / -1; }
  .benefits, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .brand img { width: 124px; }
  .header-actions .btn-sm { display: none; }
  .services, .benefits, .steps, .demos { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .charts { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; padding: 8px 20px 24px; }
  .case-head { padding: 24px 20px 4px; }
  .case-arrow svg { transform: rotate(90deg); width: 40px; height: 40px; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about-facts { grid-template-columns: 1fr; }
  .footer-inner .small { margin-left: 0; }
  .cta-row .btn { width: 100%; }
  .eyebrow { font-size: 11px; letter-spacing: .1em; gap: 8px; }
  .automation-band { flex-direction: column; gap: 14px; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
