/* ==========================================================================
   EFCore Crypto DataEncryption — shared stylesheet for the feature pages
   (security.html, performance.html, alerts.html)
   Tokens mirror docs.html so the whole site reads as one product.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #fbfaff;
  --ink-1: #181a2a;
  --ink-2: #565c78;
  --ink-3: #878da6;
  --accent: #6a3fe0;
  --accent-2: #8763f0;
  --accent-hover: #5a2fc7;
  --accent-light: #f1ecfd;
  --line: #e8eaf2;
  --line-2: #dfe2ee;
  --ok: #16a75c;
  --crit: #b3261e;
  --warn: #9a6b00;
  --info: #1f4e79;
  --paper: #ffffff;
  --paper-ink: #1f2430;
  --paper-line: #e2e4e8;
  --paper-mute: #6b7280;
  --display: 'Sora', -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --shadow: 0 1px 2px rgba(24, 26, 42, .04), 0 8px 24px -12px rgba(24, 26, 42, .12);
  --shadow-lg: 0 2px 4px rgba(24, 26, 42, .04), 0 24px 48px -20px rgba(106, 63, 224, .28);
  --haze: #f1f0f7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Smooth cross-document navigation so the header/footer stay put
   instead of flashing/reloading on every menu click. */
@view-transition {
  navigation: auto;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 148px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  overflow-y: scroll;
}

body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-top: 134px;
  padding-bottom: 70px;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  color: var(--ink-1);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

code {
  font-family: var(--mono);
  font-size: .88em;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 5px;
}

/* ------------------------------------------------------------ announce bar */
.announce {
  background: linear-gradient(90deg, #f4effe, #efeafe 50%, #f4effe);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  overflow: hidden;
}

.ann-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.announce a {
  flex: none;
  white-space: nowrap;
}

.ann-pill {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-right: 9px;
  vertical-align: middle;
  box-shadow: 0 2px 8px -2px rgba(106, 63, 224, .5);
}

.announce a {
  color: var(--accent-hover);
  font-weight: 600;
}

.announce a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------- navbar */
.site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--haze);
  view-transition-name: site-header;
}

nav.masthead {
  background: transparent;
  border-bottom: none;
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
  margin: 12px auto;
  padding: 0 14px 0 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px -16px rgba(24, 26, 42, .30);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-1);
  letter-spacing: -.01em;
  flex: none;
}

.brand .glyph {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 4px 12px -3px rgba(106, 63, 224, .5);
}

.brand .glyph svg {
  width: 17px;
  height: 17px;
}

.brand span {
  color: var(--ink-3);
  font-weight: 400;
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink-2);
  transition: color .15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* platform dropdown */
.nav-dd {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.nav-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-dd-btn svg {
  width: 13px;
  height: 13px;
  transition: transform .2s;
}

.nav-dd:hover .nav-dd-btn,
.nav-dd:focus-within .nav-dd-btn,
.nav-dd.active .nav-dd-btn {
  color: var(--accent);
}

.nav-dd:hover .nav-dd-btn svg,
.nav-dd:focus-within .nav-dd-btn svg {
  transform: rotate(180deg);
}

.nav-dd-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 216px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s, transform .16s, visibility .16s;
  z-index: 30;
}

.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dd-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
  white-space: nowrap;
}

.nav-dd-menu a:hover,
.nav-dd-menu a.active {
  background: var(--accent-light);
  color: var(--accent);
}

.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle-cb {
  position: absolute;
  left: -9999px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  place-items: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink-1);
  border-radius: 2px;
  transition: .2s;
  position: relative;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

body.nav-open .nav-toggle span,
.nav-toggle-cb:checked ~ .nav-toggle span {
  background: transparent;
}

body.nav-open .nav-toggle span::before,
.nav-toggle-cb:checked ~ .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle span::after,
.nav-toggle-cb:checked ~ .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 980px) {
  body {
    padding-top: 112px;
  }

  .site-top {
    background: #fff;
  }

  nav.masthead {
    border-bottom: 1px solid var(--line);
  }

  .nav-in {
    margin: 0;
    height: 72px;
    padding: 0 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .announce {
    height: 40px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    white-space: nowrap;
    overflow: hidden;
  }

  .ann-text {
    display: none;
  }

  .brand span {
    display: none;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 112px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 10px 24px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 150;
  }

  .nav-links a {
    font-size: 17px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-1);
  }

  .nav-dd {
    display: block;
    align-self: stretch;
  }

  .nav-dd-btn {
    display: none;
  }

  .nav-dd-menu {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    gap: 0;
  }

  .nav-dd-menu a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    font-size: 17px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-1);
    white-space: normal;
  }

  .nav-cta {
    display: none;
  }

  body.nav-open .nav-links,
  .nav-toggle-cb:checked ~ .nav-links {
    display: flex;
  }

  body.nav-open .nav-cta,
  .nav-toggle-cb:checked ~ .nav-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    z-index: 151;
  }

  body.nav-open .nav-cta .btn,
  .nav-toggle-cb:checked ~ .nav-cta .btn {
    width: 100%;
  }

  .nav-toggle {
    display: grid;
  }
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 14px 12px 24px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
  white-space: nowrap;
}

/* circular arrow badge — the "rich" CTA accent */
.btn.primary::after,
.btn.outline::after {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1);
}

.btn.primary::after {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a3fe0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

.btn.outline::after {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

.btn.primary:hover::after,
.btn.outline:hover::after {
  transform: translateX(3px);
}

.btn.ghost {
  border-radius: 999px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(106, 63, 224, .55);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -8px rgba(106, 63, 224, .65);
}

.btn.outline {
  border-color: var(--line-2);
  color: var(--ink-1);
  background: #fff;
}

.btn.outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn.ghost {
  color: var(--ink-2);
  background: transparent;
}

.btn.ghost:hover {
  color: var(--ink-1);
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 120% at 85% -10%, rgba(135, 99, 240, .16), transparent 60%),
    radial-gradient(50% 100% at 4% 0%, rgba(106, 63, 224, .12), transparent 55%),
    var(--haze);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 64px;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 800;
  max-width: 22ch;
  margin-bottom: 16px;
}

.hero .lede {
  font-size: 17.5px;
  color: var(--ink-2);
  max-width: 70ch;
  line-height: 1.65;
}

.hero .lede b {
  color: var(--ink-1);
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.chip {
  font-size: 13px;
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

.chip b {
  color: var(--ink-1);
  font-weight: 600;
}

.chip.good {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.chip.good b {
  color: var(--ok);
}

/* -------------------------------------------------------------- sections */
section {
  padding: 104px 0;
}

section.alt {
  background: var(--haze);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-head {
  max-width: 680px;
  margin: 0 auto 60px;
  text-align: center;
}

.sec-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.sec-head h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin: 14px 0 16px;
}

.sec-head p {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.6;
}

@media (max-width: 680px) {
  section {
    padding: 68px 0;
  }

  .sec-head {
    margin-bottom: 44px;
  }

  .sec-head p {
    font-size: 16px;
  }
}

/* ----------------------------------------------------------------- cards */
.grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.grid.c2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid.c3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.c4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {

  .grid.c3,
  .grid.c4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {

  .grid.c2,
  .grid.c3,
  .grid.c4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.card.flag {
  border-color: var(--accent);
  background: #faf5ff;
}

.card h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
}

.card p + p {
  margin-top: 10px;
}

.tier {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.tier.free {
  color: var(--ok);
  background: #ecfdf5;
}

/* --------------------------------------------------------------- metrics */
.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.metric .v {
  font-size: 27px;
  font-weight: 800;
  color: var(--ink-1);
  letter-spacing: -.03em;
  line-height: 1.1;
}

.metric .v.accent {
  color: var(--accent);
}

.metric .l {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ---------------------------------------------------------------- tables */
.tbl-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 680px;
}

table.data th {
  background: var(--surface-2);
  color: var(--ink-1);
  font-weight: 700;
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

table.data td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}

table.data tbody td:first-child {
  color: var(--ink-1);
  font-weight: 600;
}

table.data tr:last-child td {
  border-bottom: none;
}

.num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-1);
  white-space: nowrap;
}

.gain {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ok);
  white-space: nowrap;
}

.yes {
  color: var(--ok);
  font-weight: 600;
}

.no {
  color: var(--crit);
  font-weight: 600;
}

.sev {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 5px;
  padding: 2px 9px;
  color: #fff;
}

.sev.crit {
  background: var(--crit);
}

.sev.warn {
  background: var(--warn);
}

.sev.info {
  background: #4a5568;
}

/* --------------------------------------------------------------- code/pre */
pre {
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 18px 0;
}

pre code {
  font-size: inherit;
}

pre .k {
  color: #c4b5fd;
}

pre .s {
  color: #86efac;
}

pre .n {
  color: #fbbf24;
}

pre .c {
  color: #7c8aa0;
}

p code,
li code,
td code,
.note code,
.card code {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2px 6px;
  color: #c026d3;
}

/* ----------------------------------------------------------------- notes */
.note {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-top: 24px;
}

.note.warn {
  background: #fffbeb;
  border-left-color: #f59e0b;
}

.note b {
  color: var(--ink-1);
}

.note a {
  color: var(--accent);
  text-decoration: underline;
}

.caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}

/* -------------------------------------------------------------- pipeline */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.stage {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
}

.stage:last-child {
  border-right: none;
}

.stage .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .1em;
}

.stage .h {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-1);
  margin: 9px 0 7px;
}

.stage .d {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

.stage .t {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ok);
}

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

  .stage:nth-child(2) {
    border-right: none;
  }

  .stage:nth-child(1),
  .stage:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

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

  .stage {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .stage:last-child {
    border-bottom: none;
  }
}

/* -------------------------------------------------- alert email specimen */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 34px 0 18px;
}

.tab {
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 9px 15px;
  cursor: pointer;
  transition: .16s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab:hover {
  color: var(--ink-1);
  border-color: var(--ink-3);
}

.tab[aria-selected="true"] {
  color: var(--accent);
  background: var(--accent-light);
  border-color: var(--accent);
}

.tab .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.tab .dot.crit {
  background: var(--crit);
}

.tab .dot.warn {
  background: var(--warn);
}

.tab .dot.info {
  background: var(--info);
}

.client {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 20px 50px -30px rgba(15, 23, 42, .5);
}

.client-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.client-bar .dots {
  display: flex;
  gap: 6px;
}

.client-bar .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
  display: block;
}

.client-bar .subject {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  margin-left: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-head {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 5px 12px;
  font-size: 13px;
}

.client-head dt {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .07em;
  padding-top: 2px;
}

.client-head dd {
  color: var(--ink-2);
}

.client-head dd b {
  color: var(--ink-1);
  font-weight: 600;
}

.client-body {
  padding: 26px 22px;
  background: #eef0f4;
}

.mail {
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  overflow: hidden;
  color: var(--paper-ink);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.mail-head {
  padding: 16px 24px;
  color: #fff;
}

.mail-head.crit {
  background: var(--crit);
}

.mail-head.warn {
  background: var(--warn);
}

.mail-head.info {
  background: var(--info);
}

.mail-head .t {
  font-size: 16px;
  font-weight: 600;
}

.mail-head .s {
  font-size: 12px;
  opacity: .85;
  margin-top: 4px;
  font-family: var(--mono);
}

.mail-item {
  padding: 20px 24px;
  border-bottom: 1px solid #eef0f3;
}

.mail-badge {
  display: inline-block;
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: .4px;
  font-family: var(--mono);
}

.mail-badge.crit {
  background: var(--crit);
}

.mail-badge.warn {
  background: var(--warn);
}

.mail-badge.info {
  background: #4a5568;
}

.mail-kind {
  margin-left: 8px;
  font-size: 12px;
  color: var(--paper-mute);
  font-family: var(--mono);
}

.mail-title {
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
}

.mail-body {
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.5;
}

.mail-src {
  font-size: 12px;
  color: var(--paper-mute);
  margin-top: 6px;
}

.mail-attach {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.mail-attach span {
  font-family: var(--mono);
  font-size: 11.5px;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  padding: 5px 9px;
  color: #4a5568;
  background: #fafbfc;
}

table.kv {
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 12px;
  width: 100%;
  font-family: var(--mono);
}

table.kv td {
  padding: 4px 8px;
  border: 1px solid #eef0f3;
}

table.kv td:first-child {
  background: #fafbfc;
  color: var(--paper-mute);
  white-space: nowrap;
  width: 1%;
}

.mail-foot {
  padding: 14px 24px;
  font-size: 11px;
  color: #9aa1ab;
}

/* ------------------------------------------------------ compliance sheet */
.report-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: start;
  margin-top: 26px;
}

@media (max-width: 960px) {
  .report-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.qa {
  border-left: 2px solid var(--line);
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.qa-item .q {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-1);
  position: relative;
}

.qa-item .q::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.qa-item .a {
  margin-top: 7px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
}

.qa-item .a b {
  color: var(--ink-1);
  font-weight: 600;
}

.sheet {
  background: var(--paper);
  color: var(--paper-ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 30px 24px;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 24px 60px -34px rgba(15, 23, 42, .6);
}

.sheet h4 {
  font-size: 19px;
  margin-bottom: 4px;
  font-weight: 700;
}

.sheet .meta {
  color: var(--paper-mute);
  font-size: 11px;
  margin-bottom: 18px;
  font-family: var(--mono);
}

.sheet .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 20px;
}

.sheet .c {
  border: 1px solid var(--paper-line);
  border-radius: 7px;
  padding: 9px 11px;
}

.sheet .c .v {
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sheet .c .l {
  font-size: 8.5px;
  color: var(--paper-mute);
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-top: 1px;
}

.sheet .c.good .v {
  color: var(--ok);
}

.sheet .c.bad .v {
  color: var(--crit);
}

.sheet h5 {
  font-size: 11.5px;
  margin: 16px 0 7px;
  border-bottom: 2px solid var(--info);
  padding-bottom: 3px;
  color: var(--info);
  font-weight: 600;
}

.sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  margin-bottom: 6px;
}

.sheet th,
.sheet td {
  border: 1px solid var(--paper-line);
  padding: 4px 6px;
  text-align: left;
  vertical-align: top;
}

.sheet th {
  background: #f4f5f7;
  font-weight: 600;
}

.sheet td.mono {
  font-family: var(--mono);
  font-size: 9.5px;
}

.sheet .sev-c {
  color: var(--crit);
  font-weight: 700;
}

.sheet .sev-w {
  color: var(--warn);
  font-weight: 600;
}

.sheet .foot {
  margin-top: 14px;
  padding-top: 9px;
  border-top: 1px solid var(--paper-line);
  font-size: 9px;
  color: #9aa1ab;
}

.fade-bottom {
  position: relative;
}

.fade-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  border-radius: 0 0 6px 6px;
}

@media (max-width: 600px) {
  .sheet {
    padding: 22px 18px 18px;
  }

  .sheet .cards {
    grid-template-columns: 1fr 1fr;
  }

  .client-body {
    padding: 16px 12px;
  }

  .mail-item,
  .mail-head,
  .mail-foot {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ------------------------------------------------------------ closing CTA */
section.close {
  background: var(--ink-1);
  padding: 62px 0;
  text-align: center;
}

section.close h2 {
  color: #fff;
  font-size: clamp(24px, 3.2vw, 33px);
  margin-bottom: 12px;
}

section.close p {
  color: #cbd5e1;
  font-size: 16.5px;
  max-width: 62ch;
  margin: 0 auto;
}

section.close .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

section.close .btn.ghost {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, .25);
}

section.close .btn.ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}

/* ---------------------------------------------------------------- footer */
footer.site {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-top: 1px solid var(--line);
  background: #fff;
  view-transition-name: site-footer;
}

footer.site .wrap {
  padding-top: 18px;
  padding-bottom: 18px;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 13.5px;
}

@media (max-width: 680px) {
  section {
    padding: 68px 0;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .hero .lede {
    font-size: 16px;
  }

  .foot-bottom {
    font-size: 12px;
  }
}
