/* PortisDesk website. No JavaScript and no inline styles (the CSP forbids both), so every
   interaction here is CSS: the mobile menu and FAQ are <details>, the pricing period switch is a
   pair of radio buttons. Light by default, dark when the system asks for it. */

:root {
  /* Blues from the logo: the portal's royal-blue rim, its cyan light and the navy tile. */
  --ink: #12213a;
  --ink-2: #475a72;
  --surface: #ffffff;
  --canvas: #f3f6fb;
  --brand: #1d4ed8;
  --brand-hover: #1e40af;
  --brand-soft: #e3ecff;
  --on-brand: #ffffff;
  --line: #dce3ee;
  --accent: #f2b66d;
  --ok: #1f9d63;
  --danger: #b83e47;
  --warn-ink: #7a4d0c;
  --warn-bg: #fdf0dc;
  --band: #0d2547;
  --band-ink: #dbe8fb;
  --band-ink-2: #a9bfdc;
  --band-cta: #67d0f5;
  --band-cta-hover: #9be1fa;
  --band-cta-ink: #0d2547;
  --shadow: 0 30px 70px -36px rgba(18, 33, 58, 0.38);
  --radius: 18px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e3ebf7;
    --ink-2: #9eb0c8;
    --surface: #0b1524;
    --canvas: #08111d;
    --brand: #6ea8ff;
    --brand-hover: #9cc4ff;
    --brand-soft: #15284a;
    --on-brand: #061630;
    --line: #1d2c44;
    --ok: #3ccf8a;
    --danger: #e26a73;
    --warn-ink: #f6c98a;
    --warn-bg: #3a2a14;
    --band: #102a4d;
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.85rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
code, pre { font-family: var(--mono); }

.icon { width: 24px; height: 24px; flex: none; }
.wrap { width: min(100% - 32px, 1180px); margin-inline: auto; }
@media (min-width: 640px) { .wrap { width: min(100% - 48px, 1180px); } }
.narrow { max-width: 780px; }
.narrow-hero { max-width: 860px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 20; padding: 10px 16px; background: var(--ink); color: var(--surface); border-radius: 10px; }
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.15rem var(--font-display); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { border-radius: 8px; }
.nav { margin-inline-start: 12px; }
.nav ul { display: flex; gap: 4px; }
.nav a, .menu-panel a {
  display: block; padding: 8px 12px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-weight: 500;
}
.nav a:hover, .menu-panel a:hover { color: var(--ink); background: var(--canvas); }
.nav a[aria-current="page"], .menu-panel a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 10px 10px 0 0; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.menu { position: relative; display: none; }
.menu summary {
  list-style: none; cursor: pointer; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px; color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: var(--canvas); }
.menu-panel {
  position: absolute; inset-inline-end: 0; top: 52px; width: min(280px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow);
}
.menu-panel a { padding: 12px 14px; }
@media (max-width: 920px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 380px) {
  .header-actions .btn-small span { display: none; }
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-primary:active { transform: translateY(1px); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn-quiet { color: var(--ink); padding: 0 14px; }
.btn-quiet:hover { color: var(--brand); }
.btn-quiet .icon { width: 18px; height: 18px; transition: transform 160ms ease; }
.btn-quiet:hover .icon { transform: translateX(3px); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.text-link, .card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 22px;
  font-weight: 600; text-decoration: none;
}
.text-link .icon, .card-link .icon { width: 18px; height: 18px; transition: transform 160ms ease; }
.text-link:hover .icon, .card-link:hover .icon { transform: translateX(3px); }

/* Breadcrumbs */
.crumbs { padding-top: 20px; font-size: 0.9rem; color: var(--ink-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* Heroes */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 104px); overflow: clip; }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.page-hero { padding-block: clamp(36px, 6vw, 84px) clamp(28px, 4vw, 48px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--brand); font-weight: 600; font-size: 0.95rem; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lead { margin-top: 22px; max-width: 62ch; color: var(--ink-2); font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.actions.center { justify-content: center; }
.cta-note { margin-top: 16px; color: var(--ink-2); font-size: 0.92rem; }

/* Proof strip */
.proof { border-block: 1px solid var(--line); background: var(--canvas); }
.proof-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 24px; padding-block: 22px; }
.proof-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.proof-list .icon { color: var(--brand); }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-tight { padding-block: clamp(32px, 5vw, 64px); }
.tinted { background: var(--canvas); }
.section-head { max-width: 740px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 1.1rem; }
.section > .wrap > h2 + p, .section-tight .wrap > h2 + p { margin-top: 14px; color: var(--ink-2); }
.note { margin-top: 28px; color: var(--ink-2); }

/* Cards */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards.two, .cards.three, .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.four { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column;
}
.card > .icon { width: 28px; height: 28px; color: var(--brand); margin-bottom: 18px; }
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 14px; background: var(--brand-soft); color: var(--brand);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); }
.card p + p { margin-top: 12px; }
.card .card-link { margin-top: auto; padding-top: 20px; }

/* Split sections */
.split { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
.split.even { align-items: start; }
.split > *, .hero-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse > :first-child { order: 2; }
}
.split-copy > p { margin-top: 18px; color: var(--ink-2); font-size: 1.08rem; }
.split.even p { margin-top: 14px; color: var(--ink-2); }
.split.even h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.checks { display: grid; gap: 12px; margin-top: 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--brand); }
.checks span { color: var(--ink-2); }
.checks strong { color: var(--ink); }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini-grid.wide { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.mini-grid li {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-weight: 500;
}
.mini-grid .icon { color: var(--brand); }
@media (max-width: 400px) { .mini-grid { grid-template-columns: 1fr; } }

/* Steps and numbered lists */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { counter-increment: step; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); }
.numbered { counter-reset: n; display: grid; gap: 18px; margin-top: 26px; }
.numbered li { counter-increment: n; position: relative; padding-inline-start: 48px; color: var(--ink-2); }
.numbered li::before {
  content: counter(n); position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 0.95rem;
}
.numbered strong { color: var(--ink); }
.soon-list { display: grid; gap: 12px; margin-top: 22px; }
.soon-list li { position: relative; padding-inline-start: 22px; color: var(--ink-2); }
.soon-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); }
.soon-list strong { color: var(--ink); }
.soon-list.compact { gap: 10px; }
.plain-list { display: grid; gap: 16px; margin-top: 22px; }
.plain-list li { color: var(--ink-2); }
.plain-list strong { color: var(--ink); }
.link-list { display: grid; gap: 10px; margin-top: 18px; }
.link-list a { font-weight: 500; }
.disclosure { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); }
.takeaways { background: var(--brand-soft); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.takeaways h2 { font-size: 1.3rem; }
.takeaways .checks span { color: var(--ink); }

/* FAQ */
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: 1.12rem; font-weight: 600; }
.faq-list summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-inline-end: 6px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg) translateY(-3px); transition: transform 200ms ease;
}
.faq-list details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq-list summary:hover h3 { color: var(--brand); }
.faq-list details p { padding: 0 4px 24px; max-width: 70ch; color: var(--ink-2); }

/* Closing call to action */
.cta-band { padding-block: clamp(40px, 6vw, 80px); }
.cta-band-inner {
  display: grid; gap: 28px; align-items: center;
  background: var(--band); color: var(--band-ink); border-radius: 28px; padding: clamp(28px, 5vw, 56px);
}
@media (min-width: 900px) { .cta-band-inner { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { color: var(--band-ink); font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.cta-band p { margin-top: 12px; color: var(--band-ink-2); font-size: 1.08rem; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-band .btn-primary { background: var(--band-cta); color: var(--band-cta-ink); }
.cta-band .btn-primary:hover { background: var(--band-cta-hover); color: var(--band-cta-ink); }
.cta-band .btn-quiet { color: var(--band-ink); }
.cta-band .btn-quiet:hover { color: var(--band-cta-hover); }

/* Footer */
.site-footer { background: var(--canvas); border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid { display: grid; gap: 32px; padding-block: 56px 40px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }
.footer-brand p { margin-top: 14px; max-width: 34ch; color: var(--ink-2); }
.site-footer h2 { font-size: 0.95rem; font-family: var(--font); font-weight: 600; margin-bottom: 14px; letter-spacing: 0; }
.site-footer nav ul { display: grid; gap: 10px; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--brand); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-2); }
.muted { color: var(--ink-2); }

/* Product illustrations (HTML and CSS, hidden from screen readers; the caption says what they are) */
.mock-figure { margin: 0; }
.mock-figure figcaption { margin-top: 14px; text-align: center; font-size: 0.85rem; color: var(--ink-2); }
.app-mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); font-size: 0.82rem; color: var(--ink);
}
.app-bar { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; background: var(--canvas); border-bottom: 1px solid var(--line); }
.app-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.app-title img { border-radius: 4px; }
.win-ctrls { display: inline-flex; align-items: center; gap: 16px; }
.win-ctrls i { display: block; width: 10px; height: 10px; border: 1.5px solid var(--ink-2); border-radius: 2px; opacity: 0.55; }
.win-ctrls i:first-child { height: 0; border-width: 1.5px 0 0; border-radius: 0; }
.win-ctrls i:last-child { border: 0; background: linear-gradient(45deg, transparent 44%, var(--ink-2) 44%, var(--ink-2) 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--ink-2) 44%, var(--ink-2) 56%, transparent 56%); }
.app-body { display: grid; grid-template-columns: 158px 1fr; min-height: 330px; }
.app-side { padding: 12px 10px; border-inline-end: 1px solid var(--line); display: grid; align-content: start; gap: 4px; }
.app-side span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); white-space: nowrap; }
.app-side .icon { width: 16px; height: 16px; }
.app-side .active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.app-main { padding: 16px 20px 20px; min-width: 0; }
.app-label { margin: 14px 0 8px; font-weight: 600; color: var(--ink-2); font-size: 0.76rem; }
.app-label:first-child { margin-top: 0; }
.id-card { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 16px; background: var(--canvas); border-radius: 12px; }
.id-card span { display: block; color: var(--ink-2); font-size: 0.74rem; }
.id-card strong { display: block; margin-top: 2px; font: 700 1.3rem var(--font-display); letter-spacing: 0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.id-card .code { color: var(--brand); }
.input-row { display: flex; gap: 8px; }
.fake-input { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); }
.fake-btn { padding: 8px 14px; border-radius: 8px; background: var(--brand); color: var(--on-brand); font-weight: 600; white-space: nowrap; }
.fake-btn.danger { background: var(--danger); color: #fff; }
.recent { display: grid; gap: 2px; }
.recent span { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); opacity: 0.4; }
.dot.on { background: var(--ok); opacity: 1; }
@media (max-width: 520px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
}
.list-mock { padding: 6px 16px 14px; }
.list-mock .group { display: flex; justify-content: space-between; margin: 12px 0 4px; font-weight: 600; }
.list-mock .group span { color: var(--ink-2); font-weight: 400; }
.list-mock .row { display: grid; grid-template-columns: 8px minmax(0, 1fr) 72px auto 16px; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.list-mock .row strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-mock .row .icon { width: 16px; height: 16px; color: var(--brand); }
.meter { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter b { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.meter.warn b { background: var(--accent); }
.w0 { width: 0; } .w20 { width: 20%; } .w30 { width: 30%; } .w50 { width: 50%; } .w90 { width: 90%; }
.tag { padding: 2px 9px; border-radius: 999px; background: var(--canvas); color: var(--ink-2); font-size: 0.74rem; white-space: nowrap; }
.tag.warn { background: var(--warn-bg); color: var(--warn-ink); }
@media (max-width: 460px) {
  .list-mock .row { grid-template-columns: 8px minmax(0, 1fr) auto 16px; }
  .list-mock .meter { display: none; }
}
.session-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--band); color: var(--band-ink); font-weight: 600; }
.session-banner span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.settings-mock { padding: 16px 18px 10px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.toggle { position: relative; flex: none; width: 36px; height: 20px; border-radius: 999px; background: var(--line); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.toggle.on { background: var(--brand); }
.toggle.on::after { left: 19px; }

/* Trust diagram */
.diagram { margin: 0; }
.flow { display: grid; gap: 34px; }
@media (min-width: 560px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
.node {
  position: relative; display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: 22px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.node.relay { border-style: dashed; background: transparent; }
.node strong { font-size: 0.98rem; }
.node > span:last-child { color: var(--ink-2); font-size: 0.86rem; line-height: 1.45; }
.node-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.node:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -24px; width: 12px; height: 12px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: translateX(-50%) rotate(45deg);
}
@media (min-width: 560px) {
  .node:not(:last-child)::after { left: auto; right: -21px; bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }
}
.diagram figcaption { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; color: var(--brand); font-weight: 600; font-size: 0.92rem; text-align: center; }
.diagram figcaption .icon { width: 18px; height: 18px; }

/* Code */
.code-figure { margin: 22px 0 0; padding: 20px 22px; border-radius: var(--radius); background: var(--band); color: var(--band-ink); }
.code-figure figcaption { font-size: 0.85rem; color: var(--band-ink-2); margin-bottom: 10px; }
.code-figure pre { margin: 0; overflow-x: auto; font-size: 0.9rem; line-height: 1.7; }
.code-figure p { margin-top: 12px; color: var(--band-ink-2); font-size: 0.92rem; }

/* Tables */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 24px; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.compare th, .compare td { padding: 14px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { background: var(--canvas); font-weight: 600; font-size: 0.92rem; }
.compare tbody th { font-weight: 500; }
.compare td { color: var(--ink-2); }
.qa-table tbody th { width: 46%; }
.plans-table { min-width: 720px; }
.plans-table td { text-align: center; vertical-align: middle; }
.plans-table thead th:not(:first-child) { text-align: center; }
.row-desc { display: block; margin-top: 2px; color: var(--ink-2); font-size: 0.84rem; font-weight: 400; }
.yes { display: inline-grid; place-items: center; color: var(--brand); }
.yes .icon { width: 20px; height: 20px; }
.no { color: var(--ink-2); }

/* Pricing */
.currency { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-bottom: 22px; color: var(--ink-2); font-size: 0.92rem; }
.currency ul { display: flex; flex-wrap: wrap; gap: 6px; }
.currency a { display: block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.currency a:hover { border-color: var(--brand); color: var(--brand); }
.currency a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.pricing { position: relative; }
.period-radio { position: absolute; opacity: 0; pointer-events: none; }
.period-switch { display: flex; width: fit-content; margin: 0 auto 32px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); }
.period-switch label { padding: 9px 22px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--ink-2); transition: background-color 160ms ease, color 160ms ease; }
#period-month:checked ~ .period-switch label[for="period-month"],
#period-year:checked ~ .period-switch label[for="period-year"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(18, 33, 58, 0.16); }
#period-month:focus-visible ~ .period-switch label[for="period-month"],
#period-year:focus-visible ~ .period-switch label[for="period-year"] { outline: 3px solid var(--brand); outline-offset: 2px; }
.price-year { display: none; }
#period-year:checked ~ .plans .price-year { display: block; }
#period-year:checked ~ .plans .price-month { display: none; }
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.plan { display: flex; flex-direction: column; padding: 26px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.plan-name { font-size: 1.35rem; }
.plan-desc { margin-top: 6px; color: var(--ink-2); font-size: 0.95rem; }
.plan-price { margin-top: 18px; }
@media (min-width: 640px) { .plan-desc { min-height: 3em; } .plan-price { min-height: 76px; } }
.price-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price-amount strong { font: 700 2.1rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.price-amount span { color: var(--ink-2); font-size: 0.9rem; }
.price-amount .price-contact { font-size: 1.35rem; line-height: 1.3; }
.price-sub { margin-top: 6px; color: var(--ink-2); font-size: 0.86rem; }
.plan-limits { display: grid; gap: 10px; margin-top: 18px; font-size: 0.95rem; }
.plan-limits li { display: flex; gap: 10px; align-items: flex-start; }
.plan-limits .icon { width: 20px; height: 20px; color: var(--brand); }
.plan-cta { margin-top: 22px; }
.plan-cta .btn { width: 100%; padding-inline: 16px; }
.plan-features { display: grid; gap: 9px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.plan-features .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--brand); }
.soon { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font: 600 0.72rem/1.6 var(--font); font-style: normal; white-space: nowrap; vertical-align: 1px; }
.pricing-note { margin-top: 28px; text-align: center; color: var(--ink-2); }
.notice { max-width: 640px; margin: 0 auto; padding: 32px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); }
.notice h2 { font-size: 1.4rem; }
.notice p { margin-top: 10px; color: var(--ink-2); }

/* Articles */
.article-head { padding-top: clamp(24px, 4vw, 48px); }
.article-head h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.meta { margin-top: 18px; color: var(--ink-2); font-size: 0.9rem; }
.prose { padding-block: 32px 24px; font-size: 1.08rem; line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.45rem, 2.4vw, 1.8rem); }
.prose h2 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--brand); }
.prose .takeaways { margin-bottom: 1em; font-size: 1rem; }
.prose .takeaways ul { margin-top: 12px; }
.articles h2 { font-size: 1.25rem; line-height: 1.3; }
.articles h2 a { color: var(--ink); text-decoration: none; }
.articles h2 a:hover { color: var(--brand); text-decoration: underline; }
.articles .meta { margin-top: auto; padding-top: 18px; }
.articles p:not(.meta) { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .menu { display: none; }
  body { color: #000; background: #fff; }
}

/* Download page */
.downloads-table th[scope="row"] { font-weight: 600; }
.downloads-table .dl-cell { text-align: end; vertical-align: middle; white-space: nowrap; }
.downloads-table .sha-row td { padding-top: 0; }
.downloads-table tr:has(+ .sha-row) > * { border-bottom: 0; }
.downloads-table code { font-size: 0.78rem; word-break: break-all; color: var(--ink-2); }
.older { margin-top: 20px; }
.older summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.older .link-list { margin-top: 14px; }

/* Home hero: a navy "gate" whose picture is the zero-trust idea itself (what you see beside what
   our servers see), instead of the usual headline-and-screenshot split. */
.gate-hero {
  position: relative; overflow: clip; color: var(--band-ink);
  padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px);
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(29, 78, 216, 0.55), transparent 70%),
    radial-gradient(45% 55% at 0% 100%, rgba(34, 211, 238, 0.14), transparent 70%),
    var(--band);
}
.kicker { margin-bottom: 22px; color: var(--band-cta); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; }
.gate-hero h1 { max-width: 15ch; color: #fff; font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.02; letter-spacing: -0.03em; }
.gate-hero h1 em { font-style: normal; color: var(--band-cta); }
.gate-row { display: grid; gap: 28px; margin-top: clamp(24px, 3vw, 40px); align-items: end; }
@media (min-width: 900px) { .gate-row { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.gate-lead { max-width: 58ch; color: var(--band-ink-2); font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.6; }
.gate-cta .actions { margin-top: 0; }
.gate-hero .btn-primary { background: var(--band-cta); color: var(--band-cta-ink); }
.gate-hero .btn-primary:hover { background: var(--band-cta-hover); color: var(--band-cta-ink); }
.gate-hero .btn-quiet { color: var(--band-ink); }
.gate-hero .btn-quiet:hover { color: var(--band-cta-hover); }
.gate-hero .cta-note { color: var(--band-ink-2); }
.gate-hero .cta-note a { color: var(--band-cta); }
.gate-hero :focus-visible { outline-color: var(--band-cta); }

.seen { margin: clamp(40px, 6vw, 72px) 0 0; }
.seen-panes {
  display: grid; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(219, 232, 251, 0.16); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7);
}
@media (min-width: 860px) { .seen-panes { grid-template-columns: 1.15fr 0.85fr; } }
.pane { position: relative; min-width: 0; padding: 20px; }
.pane-label { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.pane-label .icon { width: 16px; height: 16px; }
.pane-you { display: flex; flex-direction: column; background: rgba(219, 232, 251, 0.07); }
.pane-you .screen { flex: 1; display: flex; flex-direction: column; }
.pane-you .desk { flex: 1; }
.pane-you .pane-label { color: var(--band-ink); }
.pane-us { display: flex; flex-direction: column; background: rgba(4, 12, 26, 0.55); border-top: 1px solid rgba(219, 232, 251, 0.12); }
@media (min-width: 860px) { .pane-us { border-top: 0; border-inline-start: 1px solid rgba(219, 232, 251, 0.12); } }
.pane-us .pane-label { color: var(--band-cta); }

.screen { border-radius: 12px; overflow: hidden; background: #fff; color: #12213a; font-size: 0.78rem; }
.screen-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: #12213a; color: #dbe8fb; font-weight: 600; }
.screen-bar span:first-child { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-bar .icon { width: 14px; height: 14px; }
.screen-bar .end { flex: none; padding: 3px 10px; border-radius: 6px; background: #b83e47; color: #fff; }
.desk { position: relative; min-height: 268px; background: radial-gradient(120% 90% at 100% 100%, #5aa9f0 0%, #2c6fd6 45%, #183f86 100%); }
.win { position: absolute; overflow: hidden; background: #fff; border-radius: 10px; box-shadow: 0 14px 30px -12px rgba(8, 20, 45, 0.55); }
.win-title { padding: 7px 12px; background: #f3f6fb; border-bottom: 1px solid #dce3ee; font-weight: 600; }
.win-body { padding: 4px 12px 12px; }
.win-a { left: 6%; top: 10%; width: 58%; }
.win-a .toggle-row { padding: 8px 0; border-top-color: #dce3ee; }
.win-a .toggle-row:first-child { border-top: 0; }
.win-a .toggle { background: #dce3ee; }
.win-a .toggle.on { background: #1d4ed8; }
.win-a .toggle::after { background: #fff; }
.win-a .fake-btn { display: inline-block; margin-top: 6px; background: #1d4ed8; color: #fff; }
.win-b { right: 5%; top: 46%; width: 44%; }
.files { display: grid; gap: 6px; padding-top: 10px; }
.files span { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.files .icon { flex: none; width: 15px; height: 15px; color: #1d4ed8; }
.cursor { position: absolute; left: 47%; top: 66%; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 8px; padding: 7px; background: rgba(243, 246, 251, 0.82); }
.taskbar i { width: 18px; height: 18px; border-radius: 5px; background: #c4d2e6; }
.taskbar i:first-child { background: #1d4ed8; }
@media (max-width: 520px) {
  .desk { min-height: 230px; }
  .win-a { left: 5%; width: 80%; }
  .win-b { display: none; }
}

.cipher {
  flex: 1; display: grid; align-content: start; gap: 4px; overflow: hidden;
  font: 500 0.82rem/1.55 var(--mono); color: rgba(103, 208, 245, 0.55); letter-spacing: 0.04em;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.cipher span { white-space: nowrap; }
.cipher span:nth-child(3n) { color: rgba(103, 208, 245, 0.35); }
.cipher span:nth-child(4n + 1) { color: rgba(219, 232, 251, 0.5); }
.cipher-note { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(219, 232, 251, 0.12); color: var(--band-ink); font-size: 0.92rem; font-weight: 500; }
.cipher-note .icon { width: 18px; height: 18px; color: var(--band-cta); }
.seen figcaption { margin-top: 14px; color: var(--band-ink-2); font-size: 0.85rem; }
@media (max-width: 859px) { .cipher { max-height: 190px; } }

/* Language menu (header) and language links (footer) */
.menu.lang-menu { display: block; }
.lang-menu summary { width: auto; gap: 6px; padding: 0 10px; display: flex; align-items: center; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; color: var(--ink-2); }
.lang-menu summary .icon { width: 20px; height: 20px; }
.lang-menu[open] summary, .lang-menu summary:hover { color: var(--ink); }
.lang-panel { width: 180px; }
.lang-panel a[aria-current] { color: var(--ink); font-weight: 600; background: var(--canvas); }
@media (max-width: 480px) { .lang-menu summary span { display: none; } .lang-menu summary { padding: 0; width: 40px; justify-content: center; } }
.footer-langs ul { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-langs a { color: var(--ink-2); text-decoration: none; }
.footer-langs a:hover { color: var(--brand); text-decoration: underline; }
.footer-langs a[aria-current] { color: var(--ink); font-weight: 600; }

/* Arabic: right to left. Arabic letters join, so no letter-spacing, and a taller line. The
   product illustrations, code and prices stay left to right (dir="ltr" in the markup). */
:root:lang(ar) {
  --font: "Segoe UI", "Noto Sans Arabic", Tahoma, system-ui, sans-serif;
  --font-display: "Segoe UI", "Noto Sans Arabic", Tahoma, system-ui, sans-serif;
}
[lang="ar"] body { line-height: 1.8; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] .kicker, [lang="ar"] .brand,
[lang="ar"] .price-amount strong { letter-spacing: 0; }
[lang="ar"] h1 { line-height: 1.3; }
[lang="ar"] h2 { line-height: 1.4; }
[lang="ar"] .gate-hero h1 { line-height: 1.25; max-width: 18ch; }
[lang="ar"] .lead, [lang="ar"] .gate-lead, [lang="ar"] .prose { line-height: 1.9; }
[dir="rtl"] .btn-quiet .icon, [dir="rtl"] .text-link .icon, [dir="rtl"] .card-link .icon { transform: scaleX(-1); }
[dir="rtl"] .btn-quiet:hover .icon, [dir="rtl"] .text-link:hover .icon, [dir="rtl"] .card-link:hover .icon { transform: scaleX(-1) translateX(3px); }
@media (min-width: 560px) {
  [dir="rtl"] .node:not(:last-child)::after { right: auto; left: -21px; transform: translateY(-50%) rotate(135deg); }
}
