:root {
  --dprime-blue: #134e8e;
  --dprime-ink: #172536;
  --dprime-gold: #ffb33f;
  --dprime-orange: #ff4400;
  --dprime-cloud: #f5f8fc;
  --dprime-white: #ffffff;
  --bg: var(--dprime-ink);
  --bg-raised: #1d3046;
  --bg-soft: #22384f;
  --line: #3b4f64;
  --line-strong: #526981;
  --text: var(--dprime-white);
  --text-muted: #c8d3de;
  --accent: var(--dprime-blue);
  --accent-strong: #1d64ab;
  --accent-dark: #183a5e;
  --action: var(--dprime-orange);
  --action-hover: var(--dprime-gold);
  --action-ink: var(--dprime-white);
  --focus: var(--dprime-gold);
  --radius: 14px;
  --shell: 1180px;
  --pricing-width: 920px;
  --header-height: 72px;
}

.legal-page {
  min-height: 70vh;
  padding: clamp(5rem, 11vw, 10rem) 0;
  background: var(--bg);
}

.legal-page__inner {
  max-width: 880px;
}

.legal-page__back {
  display: inline-block;
  margin-bottom: 3rem;
  color: var(--action-hover);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-page h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(3rem, 9vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.legal-page__lead {
  max-width: 60ch;
  margin: 1.6rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.legal-page__date {
  margin: 1rem 0 4rem;
  color: var(--line-strong);
  font-size: 0.76rem;
}

.legal-page__sections {
  display: grid;
  gap: 0;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.legal-page__sections section {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: 2rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.legal-page__sections h2 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.legal-page__sections p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

@media (max-width: 640px) {
  .legal-page__sections section {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  scrollbar-color: var(--line-strong) var(--bg);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--bg);
}

*::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg);
  border-radius: 999px;
  background: var(--line-strong);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: var(--dprime-white);
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 6vw, 5.5rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4vw, 3.75rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgb(59 72 85 / 0.7);
  background: rgb(23 37 54 / 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-slot {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand__wordmark {
  width: 174px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.site-nav__list a,
.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav__list a:hover,
.text-link:hover {
  color: var(--text);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle__label {
  font-size: 0.84rem;
  font-weight: 700;
}

.nav-toggle__lines {
  display: grid;
  width: 18px;
  gap: 5px;
}

.nav-toggle__lines span {
  display: block;
  height: 1px;
  background: currentcolor;
  transition: transform 160ms ease;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--action);
  border-radius: var(--radius);
  background: var(--action);
  color: var(--action-ink);
  font-weight: 760;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  border-color: var(--action-hover);
  background: var(--action-hover);
}

.button:active {
  transform: translateY(1px);
}

.button--small {
  min-height: 40px;
  padding: 10px 15px;
  font-size: 0.86rem;
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--bg-raised);
  color: var(--text);
}

.button--secondary:hover {
  border-color: var(--accent);
  background: var(--accent-dark);
  color: var(--dprime-white);
}

.text-link--accent {
  display: inline-flex;
  color: var(--dprime-gold);
  font-weight: 720;
  text-decoration: underline;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - var(--header-height));
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.hero__backdrop::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgb(23 37 54 / 0.98) 0%,
      rgb(23 37 54 / 0.9) 34%,
      rgb(23 37 54 / 0.4) 62%,
      rgb(23 37 54 / 0.16) 100%
    ),
    linear-gradient(180deg, rgb(23 37 54 / 0.2), transparent 42%, rgb(23 37 54 / 0.56));
  content: '';
}

.hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  align-items: center;
  padding-block: clamp(72px, 12vh, 132px);
}

.hero__copy {
  max-width: 650px;
}

.hero__summary {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.23rem);
  line-height: 1.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.boundary {
  border-block: 1px solid var(--line);
  background: var(--bg-raised);
}

.boundary__inner {
  display: grid;
  gap: 20px;
  padding-block: clamp(62px, 8vw, 98px);
}

.boundary h2 {
  max-width: 720px;
  margin: 0;
}

.boundary p {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
}

.section {
  padding-block: clamp(84px, 10vw, 132px);
}

.section-heading {
  position: relative;
  max-width: 720px;
  margin-bottom: clamp(42px, 6vw, 72px);
  padding-top: 24px;
}

.section-heading::before,
.agent-section__copy::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  content: '';
}

.section-heading p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-heading--narrow {
  max-width: 680px;
}

.security-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.security-item {
  min-height: 250px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--bg-raised);
}

.security-item__icon {
  display: block;
  color: var(--dprime-gold);
  font-size: 2.2rem;
  line-height: 1;
}

.security-item--lead {
  min-height: 330px;
}

.security-item--tint {
  background: #173f68;
}

.security-item--quiet {
  background: var(--bg-soft);
}

.security-item h3 {
  max-width: 420px;
  margin-top: 26px;
}

.security-item p:last-child {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--text-muted);
}

.agent-section {
  border-block: 1px solid var(--line);
  background: var(--bg-raised);
}

.agent-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  align-items: start;
  gap: clamp(48px, 10vw, 140px);
}

.agent-section__copy {
  position: sticky;
  top: calc(var(--header-height) + 44px);
  padding-top: 24px;
}

.agent-section__copy p {
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.access-model {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.access-model > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) 1fr;
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.access-model strong {
  color: var(--text);
}

.access-model span {
  color: var(--text-muted);
}

.surface-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.surface-list > div {
  display: flex;
  min-height: 158px;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 26px;
  border-right: 1px solid var(--line);
  background: var(--bg-raised);
}

.surface-list > div:last-child {
  border-right: 0;
}

.surface-list > div:nth-child(2n) {
  background: var(--bg-soft);
}

.surface-list span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.pricing {
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.pricing .section-heading {
  max-width: var(--pricing-width);
  margin-inline: auto;
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--pricing-width);
  margin-inline: auto;
}

.plan {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.plan--featured {
  border-color: var(--accent);
  background: #173f68;
}

.plan h3 {
  font-size: 1.1rem;
  letter-spacing: 0;
}

.plan__price {
  margin-block: 30px 18px;
  color: var(--text-muted);
}

.plan__price span {
  color: var(--text);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 680;
  letter-spacing: -0.05em;
  line-height: 1;
}

.plan > div > p:last-child,
.plan li {
  color: var(--text-muted);
}

.plan ul {
  display: grid;
  gap: 12px;
  margin: 36px 0;
  padding-left: 22px;
}

.plan li::marker {
  color: var(--dprime-gold);
}

.plan .button {
  width: 100%;
  margin-top: auto;
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(48px, 9vw, 128px);
}

.faq__grid > div:first-child p {
  max-width: 460px;
  color: var(--text-muted);
}

.faq__items {
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 24px 44px 24px 0;
  font-size: 1.08rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  color: var(--dprime-gold);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  content: '+';
  transform: translateY(-50%);
}

.faq details[open] summary::after {
  content: '-';
}

.faq details p {
  max-width: 660px;
  padding: 0 44px 24px 0;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding-block: 54px 34px;
}

.site-footer p {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.footer-nav__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav__list a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-nav__list a:hover {
  color: var(--text);
}

.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.content-shell {
  min-height: 65dvh;
  padding-block: clamp(64px, 10vw, 120px);
}

.content-entry {
  max-width: 760px;
}

.content-entry + .content-entry {
  margin-top: 70px;
  padding-top: 70px;
  border-top: 1px solid var(--line);
}

.content-entry h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.content-entry h1 a {
  text-decoration: none;
}

.content-entry__body,
.content-entry__body p {
  color: var(--text-muted);
}

.empty-state {
  max-width: 640px;
}

@media (max-width: 1040px) {
  .site-nav {
    gap: 18px;
  }

  .site-nav__list {
    gap: 14px;
  }

  .site-nav__actions .text-link {
    display: none;
  }

  h1 {
    font-size: clamp(2.8rem, 5.8vw, 4.8rem);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 64px;
  }

  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .dprimevault-js .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 22px;
    padding: 20px 16px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-raised);
  }

  .dprimevault-js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
  }

  .dprimevault-js .site-nav.is-open {
    display: grid;
  }

  .site-nav__list {
    display: grid;
    gap: 0;
  }

  .site-nav__list a {
    display: block;
    padding-block: 10px;
  }

  .site-nav__actions {
    justify-content: space-between;
  }

  .site-nav__actions .text-link {
    display: inline-block;
  }

  .nav-toggle[aria-expanded='true'] .nav-toggle__lines span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .nav-toggle[aria-expanded='true'] .nav-toggle__lines span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .hero {
    min-height: calc(100svh - var(--header-height));
  }

  .hero__inner {
    padding-block: 72px;
  }

  .hero__copy {
    max-width: 640px;
  }

  .hero__backdrop::after {
    background:
      linear-gradient(
        90deg,
        rgb(23 37 54 / 0.98) 0%,
        rgb(23 37 54 / 0.92) 58%,
        rgb(23 37 54 / 0.58) 100%
      ),
      linear-gradient(180deg, rgb(23 37 54 / 0.16), transparent 34%, rgb(23 37 54 / 0.72));
  }

  .hero__backdrop img {
    object-position: 68% center;
  }

  .boundary__inner,
  .agent-section__grid,
  .faq__grid {
    grid-template-columns: 1fr;
  }

  .agent-section__copy {
    position: static;
  }

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

  .surface-list > div:nth-child(2) {
    border-right: 0;
  }

  .surface-list > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .plan {
    min-height: 470px;
  }
}

@media (max-width: 620px) {
  .site-header__inner {
    gap: 14px;
  }

  .brand__wordmark {
    width: 154px;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4.1rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero__summary {
    font-size: 1.03rem;
  }

  .hero__backdrop img {
    object-position: 72% center;
  }

  .button-row,
  .button-row .button {
    width: 100%;
  }

  .boundary__inner {
    padding-block: 58px;
  }

  .section {
    padding-block: 78px;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .security-item,
  .security-item--lead {
    min-height: auto;
  }

  .access-model > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .surface-list {
    grid-template-columns: 1fr;
  }

  .surface-list > div {
    min-height: 130px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .surface-list > div:nth-child(2) {
    border-right: 0;
  }

  .surface-list > div:last-child {
    border-bottom: 0;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .footer-nav__list {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-footer__legal {
    grid-column: auto;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .button-row {
    display: none;
  }

  body {
    background: #f7f7f7;
    color: #101214;
  }

  .hero,
  .section,
  .boundary {
    padding-block: 24px;
    background: transparent;
    color: inherit;
  }
}
