:root {
  color-scheme: light;
  --bg: #fafaf8;
  --surface: #ffffff;
  --ink: #111111;
  --ink-strong: #0f172a;
  --muted: #5f6b7a;
  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(15, 23, 42, 0.18);
  --accent: #e8601c;
  --accent-dark: #d45414;
  --brand: #17325f;
  --blue: #2455d6;
  --radius: 8px;
  --nav-rail: 1060px;
  --page-rail: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 0% 92px, rgba(255, 196, 143, 0.18) 0%, rgba(255, 196, 143, 0) 32%),
    radial-gradient(circle at 100% 112px, rgba(146, 175, 230, 0.15) 0%, rgba(146, 175, 230, 0) 34%),
    linear-gradient(180deg, #fffefb 0%, #f9fbff 42%, var(--bg) 72%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-200%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: var(--surface);
}

.skip-link:focus-visible {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.notary-nav {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: visible;
  width: min(var(--nav-rail), calc(100% - 64px));
  max-width: var(--nav-rail);
  margin: 14px auto 0;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 26px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(249, 250, 252, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 14px 34px rgba(15, 23, 42, 0.08),
    0 34px 80px rgba(15, 23, 42, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding-right: 24px;
  position: relative;
}

.brand::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 30px;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.12);
}

.brand img:first-child {
  width: 32px;
  height: 32px;
  border-radius: 11px;
}

.brand img:last-child {
  width: auto;
  height: 23px;
}

.notary-nav nav {
  position: absolute;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  padding: 3px;
  background: rgba(15, 23, 42, 0.04);
}

.notary-nav nav a,
.notary-footer a,
.notary-footer span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 20px;
  color: #4d5c71;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.notary-nav nav a:hover,
.notary-footer a:hover {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
}

.nav-cta {
  min-height: 38px;
  border: 1px solid var(--brand);
  padding: 0 18px;
  background: linear-gradient(180deg, #254476 0%, var(--brand) 100%);
  color: #ffffff;
  font-size: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 18px rgba(23, 50, 95, 0.22);
}

.notary-hero,
.notary-stack,
.bridge-panel,
.notary-footer {
  width: min(var(--page-rail), calc(100% - 64px));
  max-width: var(--page-rail);
  margin: 0 auto;
}

.notary-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 30px;
  padding: 68px 0 48px;
}

.notary-hero::before,
.notary-hero::after {
  content: "";
  position: absolute;
  inset: -128px 50% -24px auto;
  z-index: 0;
  width: 100vw;
  transform: translateX(50%);
  pointer-events: none;
}

.notary-hero::before {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background:
    radial-gradient(circle at 0% 16%, rgba(255, 196, 143, 0.25) 0%, rgba(255, 196, 143, 0) 34%),
    radial-gradient(circle at 100% 18%, rgba(146, 175, 230, 0.18) 0%, rgba(146, 175, 230, 0) 30%),
    linear-gradient(180deg, rgba(255, 254, 251, 0.86) 0%, rgba(249, 251, 255, 0.9) 56%, #f1f6fc 100%);
}

.notary-hero::after {
  background-image:
    linear-gradient(rgba(72, 96, 132, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 96, 132, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.2) 18%, rgba(0, 0, 0, 0) 82%);
}

.notary-hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.panel-label {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  color: #17181b;
  font-size: clamp(2.75rem, 4.5vw, 4.1rem);
  font-weight: 600;
  line-height: 0.94;
}

h2 {
  color: #17181b;
  font-size: clamp(1.9rem, 2.8vw, 2.45rem);
  line-height: 1;
}

h3 {
  color: #17181b;
  font-size: 1.24rem;
  line-height: 1.12;
}

.hero-lede {
  max-width: 710px;
  color: #596779;
  font-size: 1.04rem;
  line-height: 1.58;
}

.hero-actions,
.bridge-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  padding: 0.72rem 1.1rem;
  font-size: 0.9rem;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover,
.button.primary:focus-visible {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.button.secondary {
  background: #ffffff;
  color: var(--ink);
}

.notary-engine {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(rgba(23, 50, 95, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 50, 95, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 247, 239, 0.74) 0%, rgba(255, 255, 255, 0.96) 42%, rgba(243, 248, 255, 0.96) 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

.engine-column {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.engine-column.is-runtime {
  background: #eff6ff;
}

.engine-column strong {
  color: #17181b;
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-size: 1.18rem;
  line-height: 1.18;
}

.notary-stack {
  padding: 58px 0 66px;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.section-heading h2 {
  max-width: 780px;
}

.notary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.notary-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #ffffff;
}

.notary-card > span {
  color: var(--blue);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notary-card p,
.bridge-panel p {
  color: #5f6b7a;
  font-size: 0.98rem;
  line-height: 1.54;
}

.notary-card dl {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.notary-card dl div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fbfdff;
}

.notary-card dt {
  color: #8a97aa;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notary-card dd {
  min-width: 0;
  margin: 0;
  color: #172033;
  font-size: 0.84rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.notary-card a {
  color: #17325f;
}

.bridge-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: linear-gradient(90deg, rgba(255, 247, 239, 0.82) 0%, rgba(255, 255, 255, 0.95) 45%, rgba(243, 248, 255, 0.95) 100%);
}

.bridge-panel > div:first-child {
  display: grid;
  gap: 10px;
}

.bridge-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.notary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 42px 0;
}

.notary-footer a,
.notary-footer span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

@media (max-width: 920px) {
  .notary-engine,
  .notary-grid,
  .bridge-panel {
    grid-template-columns: 1fr;
  }

  .notary-hero {
    padding-top: 44px;
  }
}

@media (max-width: 680px) {
  .notary-nav,
  .notary-hero,
  .notary-stack,
  .bridge-panel,
  .notary-footer {
    width: min(100% - 32px, var(--page-rail));
  }

  .notary-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 24px;
    gap: 8px;
    padding: 8px 10px;
  }

  .notary-nav nav {
    position: static;
    grid-column: 1 / -1;
    transform: none;
    width: 100%;
  }

  .notary-nav nav a {
    flex: 1;
  }

  .brand {
    padding-right: 0;
  }

  .brand::after {
    display: none;
  }

  .brand img:first-child {
    width: 34px;
    height: 34px;
  }

  .brand img:last-child {
    height: 18px;
  }

  .nav-cta {
    min-height: 36px;
    padding: 0 14px;
  }

  h1 {
    font-size: 2.36rem;
  }

  .notary-card dl div {
    grid-template-columns: 1fr;
  }

  .button,
  .hero-actions a,
  .bridge-actions a {
    width: 100%;
  }

  .notary-footer {
    align-items: stretch;
    flex-direction: column;
  }
}
