/* Saanvi Cloud Labs — Theme A · Clinical Clarity
   Navy ink for authority, teal for care, amber only inside illustrations and highlights. */
:root {
  --ink: #0B1B2E;
  --text: #22323F;
  --muted: #556575;
  --line: #E1E8EE;
  --ice: #F4F8FA;
  --mint: #E7F4F1;
  --tint: #DDF1F0;
  --white: #FFFFFF;
  --teal-deep: #0B6E74;
  --teal: #0E9F9A;
  --amber: #E3A33B;
  --amber-soft: #FFF3DC;

  --display: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
  --body: "DM Sans", "Segoe UI", Helvetica, Arial, sans-serif;

  --radius: 8px;
  --radius-lg: 18px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.6vw, 62px); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.container {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--body);
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-deep);
}
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; }
.section { padding-block: var(--section); }
.section--ice { background: var(--ice); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 48px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100; border-radius: var(--radius); }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-size: 16px; font-weight: 700; text-decoration: none;
  border-radius: var(--radius); padding: 13px 22px; border: 2px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn--primary { background: var(--teal-deep); color: var(--white); }
.btn--primary:hover { background: var(--ink); color: var(--white); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; min-width: 0; flex-shrink: 0; }
.brand svg, .brand img { width: 48px; height: 48px; flex: none; object-fit: contain; }
.brand-name { font-family: var(--display); line-height: 1.05; white-space: nowrap; }
.brand-name b { display: block; font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.brand-name small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .2em; color: var(--muted); margin-top: 3px; }
.site-header .brand img, .site-header .brand svg { width: 42px; height: 42px; }
.site-header .brand-name b { font-size: 19px; }
.site-header .brand-name small { display: none; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.nav-links a:hover { color: var(--teal-deep); }
.nav .btn { padding: 10px 18px; font-size: 15px; }
.nav-toggle { display: none; flex-shrink: 0; background: none; border: 2px solid var(--line); border-radius: var(--radius); padding: 8px 10px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { display: block; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav .btn--primary.nav-cta { display: none; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links .mobile-cta { margin-top: 14px; }
  .nav-links .mobile-cta a { border: 0; color: var(--white); text-align: center; padding: 13px; }
}
@media (min-width: 1101px) { .nav-links .mobile-cta { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 88px) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 .accent { color: var(--teal-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 0; list-style: none; }
.stack li { font-size: 13.5px; font-weight: 700; color: var(--ink); background: var(--ice); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }
.hero-visual img { width: 100%; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
}

/* ---------- audiences ---------- */
.audiences { border-block: 1px solid var(--line); background: var(--white); }
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.audience { padding: 28px 24px; display: grid; gap: 6px; }
.audience + .audience { border-left: 1px solid var(--line); }
.audience h3 { font-size: 17px; }
.audience p { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) {
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .audience:nth-child(3) { border-left: 0; }
  .audience:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .audience-grid { grid-template-columns: 1fr; }
  .audience + .audience { border-left: 0; border-top: 1px solid var(--line); }
  .audience { padding-inline: 0; }
}

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
@media (hover: hover) {
  .service:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 6px 6px 0 var(--tint); }
}
.service .icon { width: 48px; height: 48px; }
.service p { color: var(--muted); font-size: 16px; }
.service ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.service li { font-size: 12.5px; font-weight: 700; color: var(--teal-deep); background: var(--tint); border-radius: 999px; padding: 4px 10px; }
@media (max-width: 980px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.principle { display: grid; gap: 8px; }
.principle h3 { font-size: 18px; }
.principle p { color: var(--muted); font-size: 16px; }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- products ---------- */
.product {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-block: 56px;
}
.product + .product { border-top: 1px solid var(--line); }
.product--flip .product-visual { order: -1; }
.product-copy { display: grid; gap: 18px; }
.product-tag { display: inline-flex; align-items: center; gap: 10px; }
.product-tag .by { font-size: 13px; color: var(--muted); font-weight: 500; }
.badge { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 4px 11px; }
.badge--live { background: var(--tint); color: var(--teal-deep); }
.product h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.product-copy > p { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.stat { padding: 16px 18px; display: grid; gap: 2px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.footnote { font-size: 13px; color: var(--muted); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product--flip .product-visual { order: 0; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- approach ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; display: grid; gap: 8px; align-content: start; padding-top: 58px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 17px;
  background: var(--teal); color: var(--white); border: 2.5px solid var(--ink);
}
.steps li::after { content: ""; position: absolute; top: 20px; left: 52px; right: -8px; border-top: 2px dashed #B9C7D2; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 18px; }
.steps p { font-size: 15.5px; color: var(--muted); }
.steps .owner { font-size: 13px; font-weight: 700; color: var(--teal-deep); }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 28px 62px; }
  .steps li::after { top: 48px; bottom: 6px; left: 20px; right: auto; border-top: 0; border-left: 2px dashed #B9C7D2; }
}

/* ---------- trust ---------- */
.trust-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.controls { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.controls li { display: grid; gap: 3px; }
.controls b { color: var(--ink); font-family: var(--display); font-size: 16.5px; }
.controls span { font-size: 15px; color: var(--muted); }
.plain-note {
  margin-top: 28px; padding: 18px 20px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); font-size: 15.5px;
}
.plain-note b { color: var(--ink); }
.plain-note--wide { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } .trust-visual { max-width: 480px; } }
@media (max-width: 520px) { .controls { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.cta-band { background: var(--ink); color: #C9D6E2; }
.cta-band h2 { color: var(--white); }
.cta-band .eyebrow { color: #7FD6D2; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-info { display: grid; gap: 22px; }
.contact-info .lede { color: #C9D6E2; }
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list b { color: var(--white); font-size: 15px; }
.contact-list a { color: #7FD6D2; font-weight: 700; word-break: break-word; }
.contact-list a:hover { color: var(--white); }
.contact-list span { font-size: 15px; }
.form {
  background: var(--white); color: var(--text); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px;
}
.form h3 { font-size: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid #CBD6DF; border-radius: var(--radius); padding: 11px 13px; 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(--teal); box-shadow: 0 0 0 3px var(--tint); }
.form-note { font-size: 13.5px; color: var(--muted); }
.form-status { font-size: 14.5px; font-weight: 700; color: var(--teal-deep); }
.form-status[data-error] { color: #B42318; }
.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form .btn:disabled { opacity: .7; cursor: wait; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: #07131F; color: #9FB0C0; padding-block: 56px 28px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand .brand-name b { color: var(--white); }
.footer-brand .brand-name small { color: #7F93A6; }
.footer-brand p { max-width: 34ch; }
.site-footer h2 { font-family: var(--body); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7F93A6; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #D5E0EA; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid #1C2B3A;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13.5px;
}
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 440px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- legal page ---------- */
.legal-hero { background: var(--ice); padding-block: 56px 44px; border-bottom: 1px solid var(--line); }
.legal-hero .container { display: grid; gap: 14px; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding-block: 56px 96px; }
.legal-toc { position: sticky; top: 100px; align-self: start; display: grid; gap: 4px; font-size: 15px; }
.legal-toc a { color: var(--muted); text-decoration: none; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); }
.legal-toc a:hover { color: var(--ink); border-left-color: var(--teal); }
.legal-body { max-width: 72ch; }
.legal-body section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.legal-body section:last-child { border-bottom: 0; }
.legal-body h2 { font-size: 28px; margin-bottom: 16px; }
.legal-body h3 { font-size: 18px; margin: 24px 0 8px; }
.legal-body p, .legal-body li { color: var(--text); }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { padding-left: 22px; display: grid; gap: 6px; margin: 12px 0 0; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; gap: 24px; } .legal-toc { position: static; } }

/* ---------- motion ---------- */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal.pending { opacity: .001; transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal.pending { opacity: 1; transform: none; }
}

/* ---------- device tuning ---------- */
/* Large desktops and TVs: a little more room, never wider than reads comfortably. */
@media (min-width: 1600px) {
  :root { --max: 1280px; }
  body { font-size: 18px; }
}
/* Tablets (portrait): two-up where it helps, centred visuals. */
@media (min-width: 601px) and (max-width: 900px) {
  .product-visual, .trust-visual { max-width: 640px; margin-inline: auto; width: 100%; }
}
/* Phones */
@media (max-width: 600px) {
  :root { --section: 56px; }
  body { font-size: 16px; }
  .lede { font-size: 17px; }
  .nav { min-height: 64px; gap: 12px; }
  .brand { min-width: 0; gap: 10px; }
  .brand img, .brand svg { width: 42px; height: 42px; }
  .brand-name b { font-size: 16.5px; }
  .brand-name small { font-size: 8.5px; letter-spacing: .16em; }
  .nav-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .nav-links { padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
  .hero { padding-block: 38px 52px; }
  .hero-copy { gap: 18px; }
  .hero h1 { font-size: clamp(35px, 10.5vw, 44px); line-height: 1.08; }
  .hero-visual { width: 100%; margin-top: 4px; }
  .hero-actions .btn, .product-actions .btn { flex: 1 1 100%; }
  .stack { margin-top: 4px; gap: 6px; }
  .section-head { margin-bottom: 32px; }
  .service { padding: 22px; }
  .product { padding-block: 40px; }
  .product-tag { flex-wrap: wrap; align-items: flex-start; }
  .product-visual { max-width: 400px; margin-inline: auto; }
  .form { padding: 22px 18px; }
  .form .btn { width: 100%; min-height: 48px; }
  .footer-bottom { margin-top: 34px; }
  .legal-hero { padding-block: 40px 32px; }
  .legal-layout { padding-block: 36px 64px; }
}
/* Very small phones (iPhone SE, older Android) */
@media (max-width: 360px) {
  h1, .hero h1 { font-size: 33px; }
  .brand img, .brand svg { width: 40px; height: 40px; }
  .brand-name b { font-size: 15.5px; }
  .brand-name small { display: none; }
  .stack li { font-size: 12.5px; padding: 5px 10px; }
  .btn { padding-inline: 16px; }
}
/* Phones in landscape: keep the sticky header short so content has room. */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header { position: relative; }
  .nav-links { max-height: 70vh; overflow-y: auto; }
  .hero { padding-block: 32px 40px; }
}
/* Touch devices: comfortable tap targets. */
@media (pointer: coarse) {
  .site-footer a { display: inline-block; padding-block: 4px; }
  .legal-toc a { padding-block: 10px; }
}
/* Footer safe area on notched phones */
.site-footer { padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); }

/* ---------- contained homepage sections ---------- */
.home-page { background: #EEF3F5; }
.home-page main { padding-block: 28px; }
.home-page main > section {
  margin: 0 auto 24px;
  padding: 0 max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px));
  border: 0;
  background: transparent;
  overflow: visible;
}
.home-page main > section:last-child { margin-bottom: 0; }
.home-page main > section > .container {
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid #D4E2E5;
  border-radius: 28px;
  background: #FFFFFF;
  box-shadow: 0 8px 28px -18px rgba(11, 27, 46, .18);
}
.home-page main > .hero > .container { background: linear-gradient(120deg, #FFFFFF 25%, #F0F8F6 100%); }
.home-page main > #services > .container { background: #F6F9FC; }
.home-page main > #products > .container { background: #E8F3F0; }
.home-page main > #approach > .container { background: #FFFFFF; }
.home-page main > #trust > .container { background: #EAF1F8; }
.home-page main > #contact > .container { background: linear-gradient(125deg, #10263C, #0B353C); border-color: #1F4351; }
.home-page main > .audiences > .container { background: #F6FAF9; padding-block: 12px; }
.home-page .audience { padding: 24px 18px; }
.home-page .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 32px; }
.home-page .hero h1 { font-size: clamp(36px, 4.25vw, 58px); }
.home-page .hero-copy { gap: 20px; }
.home-page .hero-copy .lede { font-size: 18px; }
.home-page :is(.hero-copy, .product-copy, .trust-grid > div, .contact-grid > *, .footer-top > *) { min-width: 0; }
.home-page :is(.hero-visual, .trust-visual, .product-visual) {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid #CFDFE2;
  border-radius: 22px;
  background: #F6FAF9;
}
.home-page .hero-visual { background: rgba(255, 255, 255, .75); }
.home-page .trust-visual { background: #F7FAFD; }
.home-page :is(.hero-visual, .trust-visual) img { width: 100%; height: auto; margin-block: 16px; }
.diagram-eyebrow { display: block; color: var(--teal-deep); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.diagram-caption { margin-top: 16px; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
.home-page .product {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: clamp(20px, 2.5vw, 32px);
  gap: 32px;
  border: 1px solid #D4E2E5;
  border-radius: 24px;
  background: var(--white);
}
.home-page .product + .product { margin-top: 28px; }
.home-page .product-tag { flex-wrap: wrap; }
.home-page .product-visual { max-width: none; }
.product-visual figcaption { display: grid; gap: 8px; margin-bottom: 22px; }
.product-visual figcaption strong { color: var(--ink); font-family: var(--display); font-size: 21px; line-height: 1.3; }
.lifecycle-stages { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lifecycle-stages li {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) minmax(0, .85fr);
  gap: 10px;
  align-items: center;
  padding: 14px 10px;
  border: 1px solid #D5E3E3;
  border-radius: 12px;
  background: var(--white);
}
.lifecycle-stages li + li::before { content: ""; position: absolute; left: 24px; top: -13px; height: 12px; border-left: 2px solid #A8C8C5; }
.stage-number { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-deep); color: white; font-size: 13px; font-weight: 700; }
.lifecycle-stages li > div { display: grid; gap: 3px; }
.lifecycle-stages b { font-size: 14px; color: var(--ink); }
.lifecycle-stages li > div > span { font-size: 12px; line-height: 1.4; color: var(--muted); }
.stage-owner { padding: 6px 8px; border-radius: 8px; background: #FFF3DC; color: #714C10; font-size: 11px; font-weight: 700; line-height: 1.4; text-align: center; }
.claim-inputs { display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); align-items: center; gap: 8px; }
.claim-inputs > div { display: grid; gap: 4px; padding: 12px 8px; background: white; border: 1px solid #C8DCDA; border-radius: 12px; text-align: center; }
.claim-inputs > div:last-child { background: #FFF6E6; border-color: #EBDAB7; }
.claim-inputs b { font-family: var(--display); font-size: 24px; color: var(--ink); }
.claim-inputs span { font-size: 12px; color: var(--muted); text-align: center; }
.flow-arrow { height: 28px; display: grid; place-items: center; color: var(--teal-deep); font-size: 22px; line-height: 1; }
.reconcile-node { display: grid; gap: 4px; padding: 16px 12px; border-radius: 12px; background: var(--teal-deep); color: white; text-align: center; }
.reconcile-node b { font-size: 16px; }
.reconcile-node span { font-size: 12px; color: #E4F5F3; }
.excluded-note { display: grid; gap: 4px; padding: 10px; border: 1px dashed #9CB7B4; border-radius: 10px; text-align: center; background: white; font-size: 12px; }
.excluded-note b { color: var(--ink); }
.excluded-note span { color: var(--muted); }
.worklist { background: white; border: 1px solid #C8DCDA; border-radius: 12px; padding: 14px; }
.worklist-heading { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.worklist table { width: 100%; border-collapse: collapse; font-size: 12px; }
.worklist :is(th, td) { padding: 10px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.worklist thead th { font-size: 10px; color: var(--muted); font-weight: 500; }
.worklist :is(th, td):last-child { padding-left: 12px; text-align: right; white-space: nowrap; }
.worklist tbody td { color: var(--teal-deep); font-weight: 700; font-variant-numeric: tabular-nums; }
.worklist small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.separate-loss { padding-top: 12px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.home-page .stat { padding: 14px 10px; }
.home-page .stat b { font-size: 23px; }
.home-page .stat span { font-size: 12px; }
.home-page .steps li { background: #F5F9F9; border: 1px solid #DBE7E7; border-radius: 14px; padding: 76px 16px 20px; }
.home-page .steps li::before { top: 18px; left: 16px; }
.home-page .steps li::after { top: 38px; left: 65px; right: -17px; }
.home-page .site-footer { margin: 0 16px 24px; padding: 40px 0 28px; border-radius: 28px; max-width: var(--max); }
@media (min-width: 1192px) { .home-page .site-footer { margin-inline: auto; } }
@media (min-width: 1600px) { .home-page .site-footer { max-width: var(--max); } }
@media (max-width: 1100px) {
  .home-page .hero-grid { grid-template-columns: 1fr; }
  .home-page .hero-visual { max-width: 600px; margin-inline: auto; }
  .home-page .product { grid-template-columns: 1fr; }
  .home-page .product--flip .product-visual { order: 0; }
  .home-page .product-visual { max-width: 600px; margin-inline: auto; }
  .home-page .trust-grid { grid-template-columns: 1fr; }
  .home-page .trust-visual { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 980px) {
  .home-page .steps { gap: 12px; }
  .home-page .steps li { padding: 20px 20px 20px 76px; }
  .home-page .steps li::after { top: 62px; bottom: -14px; left: 36px; right: auto; }
}
@media (max-width: 600px) {
  .home-page main { padding-block: 16px; }
  .home-page main > section { margin-bottom: 16px; padding-inline: 12px; }
  .home-page main > section > .container { padding: 24px 18px; border-radius: 20px; }
  .home-page .hero h1 { font-size: clamp(31px, 8.5vw, 44px); }
  .home-page .hero-copy .lede { font-size: 16px; }
  .home-page :is(.hero-visual, .trust-visual, .product-visual) { padding: 16px 12px; border-radius: 16px; }
  .home-page .product { padding: 18px 12px; border-radius: 16px; gap: 24px; }
  .home-page .product h3 { font-size: 27px; }
  .home-page .audience { padding: 20px 4px; }
  .home-page .lifecycle-stages li { grid-template-columns: 26px minmax(0, 1fr); padding: 12px 8px; }
  .home-page .stage-number { width: 26px; height: 26px; }
  .home-page .stage-owner { grid-column: 2; justify-self: start; }
  .home-page .lifecycle-stages li + li::before { left: 20px; }
  .home-page .worklist { padding: 10px; }
  .home-page .worklist :is(th, td):last-child { padding-left: 6px; }
  .home-page .form { padding: 22px 14px; }
  .home-page .site-footer { margin: 0 12px 16px; border-radius: 20px; }
}
/* Print: clean black-on-white copy */
@media print {
  .site-header, .nav-toggle, .form, .hero-visual, .product-visual, .trust-visual { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .section, .cta-band, .site-footer { background: none !important; color: #000; padding-block: 16pt; }
  .cta-band h2, .contact-list b, .contact-list a { color: #000; }
  .home-page main > section > .container { background: none !important; box-shadow: none; border: 0; padding: 16pt 0; }
}

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px;
  max-width: 760px; margin-inline: auto;
  display: flex; align-items: center; gap: 16px 24px;
  background: var(--white); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(11, 27, 46, .18);
  padding: 18px 20px;
}
.cookie-banner h2 { font-size: 17px; letter-spacing: -0.01em; margin-bottom: 4px; }
.cookie-banner p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn { padding: 10px 18px; font-size: 15px; }
@media (max-width: 620px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions .btn { flex: 1; }
}
@media print { .cookie-banner { display: none; } }

/* ---------- admin console ---------- */
.admin-page { background: var(--ice); min-height: 100vh; }
.admin-page [hidden] { display: none !important; }
.admin-dashboard { display: grid; gap: 28px; }
.admin-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.admin-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.admin-bar .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.admin-bar .brand-name b { font-family: var(--display); color: var(--ink); font-size: 17px; }
.admin-bar__user { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; color: var(--ink); }
.admin-bar__user[hidden] { display: none; }
.btn--small { padding: 8px 14px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.admin-main { padding-block: 32px 64px; display: grid; gap: 40px; }
.admin-notice { background: var(--amber-soft); color: var(--ink); border-radius: var(--radius); padding: 12px 16px; font-weight: 700; }
.admin-login { display: grid; place-items: center; padding-top: 6vh; }
.admin-login .form { width: min(100%, 400px); }
.admin-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); }
.admin-title { font-size: clamp(24px, 3vw, 30px); }
.admin-subtitle { font-size: 16px; margin-bottom: 14px; }
.admin-section { display: grid; gap: 18px; }
.admin-section__head { display: grid; gap: 6px; }
.admin-section__head .form-note { max-width: 80ch; }
.admin-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .admin-columns { grid-template-columns: 1fr; } }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; display: grid; gap: 2px; }
.stat-tile__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat-tile__value { font-family: var(--display); font-size: clamp(28px, 4vw, 36px); font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-tile__sub { font-size: 14px; color: var(--muted); }

.chart-card { position: relative; }
.bar-chart { display: grid; grid-template-columns: repeat(30, 1fr); grid-template-rows: 180px auto; column-gap: 2px; }
.bar-chart__col { grid-row: 1; display: flex; align-items: flex-end; height: 100%; cursor: default; outline-offset: 1px; }
.bar-chart__bar { width: 100%; min-height: 2px; background: var(--teal-deep); border-radius: 4px 4px 0 0; }
.bar-chart__bar.is-empty { background: var(--line); }
.bar-chart__col:hover .bar-chart__bar:not(.is-empty), .bar-chart__col:focus-visible .bar-chart__bar:not(.is-empty) { background: var(--ink); }
.bar-chart__axis {
  grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: space-between;
  border-top: 1px solid var(--line); margin-top: 0; padding-top: 8px; font-size: 13px; color: var(--muted);
}
.chart-tooltip {
  position: absolute; top: 44px; transform: translateX(-50%); pointer-events: none;
  display: grid; gap: 2px; background: var(--ink); color: var(--white);
  border-radius: var(--radius); padding: 8px 12px; font-size: 13.5px; white-space: nowrap;
}
.chart-tooltip[hidden] { display: none; }
.chart-table { margin-top: 14px; font-size: 14px; }
.chart-table summary { cursor: pointer; font-weight: 700; color: var(--teal-deep); }
.chart-table table, .admin-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.chart-table table { margin-top: 10px; }
.chart-table th, .chart-table td, .admin-table th, .admin-table td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.chart-table td + td, .admin-table td + td, .admin-table th + td, .chart-table th + th, .admin-table th + th { text-align: right; }
.admin-table th[scope="row"] { font-weight: 500; }
.admin-table thead th, .chart-table thead th { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.link-field { margin-bottom: 8px; }
.link-field__row { display: flex; gap: 10px; }
.link-field__row input { flex: 1; min-width: 0; }
.link-field .form-note { word-break: break-word; }
@media (max-width: 560px) { .link-field__row { flex-direction: column; } }
.admin-actions { display: flex; gap: 10px; }

.admin-columns--smtp { grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 900px) { .admin-columns--smtp { grid-template-columns: 1fr; } }
.smtp-state { border-radius: var(--radius); padding: 12px 16px; font-weight: 700; font-size: 15px; }
.smtp-state.is-ok { background: var(--mint); color: var(--teal-deep); }
.smtp-state.is-off { background: var(--amber-soft); color: #7A4B00; }
.smtp-advanced { margin: 4px 0 8px; }
.smtp-advanced summary { cursor: pointer; font-weight: 700; color: var(--teal-deep); font-size: 14.5px; margin-bottom: 12px; }
.smtp-help ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; }
.admin-actions { flex-wrap: wrap; }
.field select:disabled, .field input:disabled { background: var(--ice); cursor: not-allowed; }

/* admin tabs */
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.admin-tab {
  font: inherit; font-size: 15.5px; font-weight: 700; color: var(--muted); background: none;
  border: 0; border-bottom: 3px solid transparent; padding: 12px 16px 10px; margin-bottom: -1px;
  cursor: pointer; white-space: nowrap; border-radius: 6px 6px 0 0;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab[aria-selected="true"] { color: var(--teal-deep); border-bottom-color: var(--teal-deep); }
.admin-panel { display: grid; gap: 40px; }
.admin-panel:focus-visible { outline-offset: 8px; }

/* dashboard overview */
/* Visitors across the full row; solutions links and contact email share the row below. */
.overview-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.overview-card--full { grid-column: 1 / -1; }
.overview-card--half { grid-column: span 6; }
@media (max-width: 860px) { .overview-grid > .overview-card { grid-column: 1 / -1; } }
.overview-card { display: grid; gap: 14px; align-content: start; justify-items: start; }
.overview-card .admin-subtitle { margin-bottom: 0; }
.overview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.overview-stat { display: grid; gap: 2px; }
.overview-stat__value { font-family: var(--display); font-size: clamp(24px, 3vw, 30px); font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.overview-status { font-weight: 700; font-size: 15px; border-radius: var(--radius); padding: 6px 12px; }
.overview-status.is-ok { background: var(--mint); color: var(--teal-deep); }
.overview-status.is-off { background: var(--amber-soft); color: #7A4B00; }
.overview-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; }
.overview-list dt { color: var(--muted); }
.overview-list dd { margin: 0; color: var(--ink); word-break: break-word; }

/* SMTP view / edit */
.smtp-card { display: grid; gap: 8px; }
.smtp-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.smtp-card__head .admin-subtitle { margin-bottom: 0; }
.smtp-form { padding: 0; }
.settings-list { margin: 0 0 18px; }
.settings-list__row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.settings-list__row:first-child { border-top: 1px solid var(--line); }
.settings-list dt { color: var(--muted); }
.settings-list dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; color: var(--ink); min-width: 0; }
.settings-list__value { word-break: break-word; }
.source-badge { font-size: 12px; font-weight: 700; letter-spacing: .04em; border-radius: 999px; padding: 2px 10px; background: var(--ice); color: var(--muted); border: 1px solid var(--line); }
.source-badge--console { background: var(--mint); color: var(--teal-deep); border-color: transparent; }
@media (max-width: 560px) { .settings-list__row { grid-template-columns: 1fr; gap: 2px; } }
.overview-list a { color: var(--teal-deep); word-break: break-all; }
