:root {
  color-scheme: light;
  --bg: #f3f5fa;
  --paper: #fff;
  --ink: #0c1829;
  --muted: #4a5568;
  --line: #c6cdd7;
  --accent: #d4e3f7;
  --accent-soft: #eef3fb;
  --action: #1d4ed8;
  --action-hover: #173fae;
  --support: #7099d8;
  --red: #ff4b4b;
  --display: Montserrat, "Segoe UI", Arial, sans-serif;
  --body: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--body);
  line-height: 1.55;
}
a { color: inherit; }
button, summary { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(243, 245, 250, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  width: min(100%, 1280px);
  min-height: 80px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  gap: 3px;
  width: 34px;
}
.brand-mark i { display: block; height: 6px; border-radius: 2px; background: var(--ink); }
.brand-mark i:first-child { width: 34px; background: #d4e3f7; }
.brand-mark i:nth-child(2) { width: 26px; background: #7099d8; }
.brand-mark i:last-child { width: 14px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-right: auto;
  font-size: 14px;
  font-weight: 650;
}
.site-nav > a { text-decoration: none; }

.nav-group { position: relative; }
.nav-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
.nav-trigger::after {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
}
.nav-group:hover .nav-trigger::after,
.nav-trigger:focus-visible::after { transform: rotate(225deg) translate(-1px, -1px); }
.nav-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: -18px;
  width: 310px;
  display: none;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0,0,0,.1);
}
.nav-panel::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 18px;
  content: "";
}
.nav-group:hover .nav-panel,
.nav-trigger:focus-visible + .nav-panel,
.nav-panel:focus-within { display: block; }
.nav-panel a {
  display: block;
  padding: 11px 12px;
  text-decoration: none;
  line-height: 1.35;
}
.nav-panel a:hover, .nav-panel a:focus-visible { background: var(--accent); outline: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  font-weight: 700;
  text-decoration: none;
}
.button.primary { color: #fff; background: var(--action); border-color: var(--action); }
.button:hover, .button:focus-visible { color: #fff; background: var(--action-hover); border-color: var(--action-hover); outline: none; }

.mobile-menu { display: none; position: relative; }
.mobile-menu > summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 4px;
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu > summary i { width: 17px; height: 1.5px; background: var(--ink); }
.mobile-panel {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  display: grid;
  gap: 24px;
  max-height: calc(100vh - 68px);
  padding: 24px 18px 32px;
  overflow: auto;
  background: var(--paper);
  border-block: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
.mobile-panel div { display: grid; gap: 7px; }
.mobile-panel strong { font: 700 13px/1.2 var(--display); text-transform: uppercase; }
.mobile-panel a { padding: 6px 0; text-decoration: none; }

.page { overflow: clip; }
.hero, .section, .cta, .site-footer {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding-inline: 32px;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
  align-items: center;
  gap: 70px;
  padding-block: 80px;
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.02; letter-spacing: -.035em; }
h1 { max-width: 780px; font-size: clamp(48px, 6.1vw, 82px); }
h2 { font-size: clamp(36px, 4.3vw, 60px); }
h3 { font-size: 23px; line-height: 1.16; }
.lead { max-width: 690px; margin: 24px 0 0; color: var(--muted); font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.visual {
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 14px 14px 0 var(--support);
}
.visual__bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.visual__dots { display: flex; gap: 5px; }
.visual__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .25; }
.visual__body { padding: 22px; }
.visual-card {
  display: grid;
  gap: 7px;
  padding: 15px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.visual-card + .visual-card { margin-top: 10px; }
.visual-card small { color: var(--muted); }
.visual-card strong { font-size: 17px; }
.visual-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.tag { display: inline-flex; width: max-content; padding: 4px 8px; border: 1px solid var(--ink); background: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; }

.section { padding-block: 92px; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(230px,.55fr) minmax(0,1fr); gap: 60px; margin-bottom: 46px; }
.section-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 19px; }
.grid-3, .grid-4 { display: grid; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.info-card { min-height: 250px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.info-card__number { display: block; margin-bottom: 48px; font: 700 13px/1 var(--display); }
.info-card h3 { margin-bottom: 12px; }
.info-card p { margin: 0; color: var(--muted); }
.info-card.is-accent { background: var(--accent); }
.info-card.is-dark { color: #fff; background: var(--ink); }
.info-card.is-dark p { color: #c5d3e8; }

.comparison-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }
.comparison-wrap .comparison { width: 100%; min-width: 820px; border-collapse: collapse; }
.comparison-wrap .comparison th, .comparison-wrap .comparison td { padding: 18px; text-align: left; vertical-align: top; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.comparison-wrap .comparison th { font: 700 15px/1.25 var(--display); background: #e8ecf4; }
.comparison-wrap .comparison th.is-accent { background: var(--accent); }
.comparison-wrap .comparison td:first-child { width: 24%; font-weight: 700; }
.comparison-wrap .comparison tr:last-child td { border-bottom: 0; }
.comparison-wrap .comparison th:last-child, .comparison-wrap .comparison td:last-child { border-right: 0; }

.flow {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  border: 1px solid var(--ink);
  background: var(--paper);
}
.flow-step { position: relative; min-height: 210px; padding: 22px; border-right: 1px solid var(--ink); }
.flow-step:last-child { border-right: 0; }
.flow-step span { display: block; margin-bottom: 48px; font: 700 13px/1 var(--display); }
.flow-step p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.flow-step.is-accent { background: var(--accent); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { padding: 30px; border: 1px solid var(--line); background: var(--paper); }
.panel h3 { margin-bottom: 20px; }
.plain-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.plain-list li::before { content: "→"; margin-right: 10px; font-weight: 800; }
.note { padding: 22px; border-left: 5px solid var(--ink); background: var(--accent-soft); }
.note strong { display: block; margin-bottom: 6px; font-family: var(--display); }

.security-map { display: grid; grid-template-columns: 1fr 1.1fr 1fr; border: 1px solid var(--ink); background: var(--paper); }
.security-map > div { min-height: 290px; padding: 28px; border-right: 1px solid var(--ink); }
.security-map > div:last-child { border-right: 0; }
.security-map__core { background: var(--accent); }
.security-map h3 { margin-bottom: 16px; }
.security-map p { color: var(--muted); }
.security-map__core p { color: var(--ink); }
.role-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.role-chips span { padding: 7px 9px; border: 1px solid var(--ink); background: var(--paper); font-size: 12px; font-weight: 700; }

.cta { padding-block: 92px; display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; border-top: 1px solid var(--line); }
.cta h2 { max-width: 820px; }
.cta p { max-width: 650px; margin: 20px 0 0; color: var(--muted); font-size: 18px; }

.site-footer { width: 100%; max-width: none; padding: 48px max(32px, calc((100vw - 1216px) / 2)) 56px; display: grid; grid-template-columns: minmax(220px,.8fr) minmax(0,2fr); gap: 72px; border-top: 0; color: #b8c6db; background: var(--ink); }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand strong { color: #fff; font-size: 18px; }
.footer-brand p { max-width: 280px; margin: 0 0 10px; }
.footer-links { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; }
.footer-links div { display: flex; flex-direction: column; gap: 8px; }
.footer-links strong, .footer-links a { color: #fff; }
.footer-links a { text-underline-offset: 3px; }

/* Product explainers share the public shell but keep their own document-like diagrams. */
.product-page main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
}

.product-page .brand-mark {
  height: auto;
  place-items: initial;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.product-page .nav-panel a[aria-current="page"] {
  background: var(--accent);
  font-weight: 700;
}

.product-page .button.secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--ink);
}

.product-page .button:not(.primary) {
  color: var(--ink);
}

.product-page .button.primary {
  color: #fff;
}

.product-page .button:not(.primary):hover,
.product-page .button:not(.primary):focus-visible {
  color: #fff;
}

.product-page .button.secondary:hover,
.product-page .button.secondary:focus-visible {
  color: #fff;
  background: var(--action-hover);
  border-color: var(--action-hover);
}

.product-page .kicker {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.product-page .hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
}

.product-page .process-card,
.product-page .budget-card {
  position: relative;
  min-height: 340px;
  padding: 70px 28px 28px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: 14px 14px 0 var(--support);
}

.product-page .process-card::before,
.product-page .budget-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 18px;
  color: #9aa7b8;
  background: #f5f7fc;
  border-bottom: 1px solid var(--line);
  content: "●  ●  ●";
  font-size: 8px;
  letter-spacing: 4px;
}

.product-page .process-card strong {
  display: block;
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.2;
}

.product-page .process-card ol,
.product-page .process-card ul {
  margin: 0;
  padding: 0;
  display: grid;
  list-style: none;
  counter-reset: product-step;
}

.product-page .process-card li {
  min-height: 54px;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.product-page .process-card ol li::before {
  counter-increment: product-step;
  content: counter(product-step, decimal-leading-zero);
  color: var(--action);
  font: 700 11px/1.5 var(--display);
}

.product-page .process-card ul li::before {
  color: var(--action);
  content: "→";
  font-weight: 800;
}

.product-page .budget-card dl {
  margin: 0;
  display: grid;
}

.product-page .budget-card div {
  min-height: 52px;
  padding: 13px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.product-page .budget-card div:first-child {
  border-top: 0;
}

.product-page .budget-card div:last-child {
  margin: 8px -12px -12px;
  padding: 16px 12px;
  background: var(--accent);
  border-top-color: var(--ink);
}

.product-page .budget-card dt {
  color: var(--muted);
}

.product-page .budget-card dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.product-page .section {
  display: grid;
  grid-template-columns: minmax(230px, .55fr) minmax(0, 1fr);
  gap: 60px;
}

.product-page .section h2 {
  font-size: clamp(34px, 4vw, 54px);
}

.product-page .section > div:last-child > p {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 17px;
}

.product-page .section > div:last-child > h3 {
  margin: 30px 0 9px;
  font-size: 22px;
}

.product-page .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.product-page .item {
  min-height: 190px;
  padding: 22px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.product-page .item strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.25;
}

.product-page .item p {
  margin: 0;
  color: var(--muted);
}

.product-page .comparison table {
  width: 100%;
  min-width: 720px;
  border: 0;
  border-radius: 0;
}

.product-page .cta {
  color: var(--ink);
  background: var(--accent-soft);
  border-top-color: var(--ink);
  border-radius: 0;
}

.product-page .cta p {
  color: var(--muted);
}

@media (max-width: 1050px) {
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
  .mobile-menu { display: block; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .visual { max-width: 680px; }
  .product-page .hero { grid-template-columns: 1fr; }
  .product-page .process-card,
  .product-page .budget-card { max-width: 680px; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step { border-bottom: 1px solid var(--ink); }
  .flow-step:nth-child(2n) { border-right: 0; }
  .flow-step:last-child { border-right: 1px solid var(--ink); border-bottom: 0; }
}

@media (max-width: 760px) {
  .site-header__inner { min-height: 68px; padding: 12px 18px; gap: 12px; }
  .header-actions > .button:not(.primary) { display: none; }
  .header-actions > .button.primary { min-height: 44px; padding: 8px 11px; font-size: 12px; }
  .hero, .section, .cta, .site-footer { padding-inline: 18px; }
  .hero { gap: 52px; padding-block: 58px; }
  h1 { font-size: clamp(42px, 13vw, 64px); }
  .lead { font-size: 18px; }
  .visual { box-shadow: 8px 8px 0 var(--support); }
  .section { padding-block: 64px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 34px; }
  .grid-3, .grid-4, .split, .security-map, .flow { grid-template-columns: 1fr; }
  .product-page .section,
  .product-page .grid { grid-template-columns: 1fr; }
  .product-page .section { gap: 24px; }
  .product-page .process-card,
  .product-page .budget-card {
    min-height: 0;
    box-shadow: 8px 8px 0 var(--support);
  }
  .flow-step, .flow-step:nth-child(2n), .flow-step:last-child { min-height: 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .flow-step:last-child { border-bottom: 0; }
  .security-map > div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .security-map > div:last-child { border-bottom: 0; }
  .cta { align-items: stretch; flex-direction: column; gap: 28px; }
  .site-footer { grid-template-columns: 1fr; gap: 38px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 30px 18px; }
}

@media (max-width: 360px) {
  .site-header .brand > span:last-child { display: none; }
  .header-actions > .button.primary { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
