/* Vaulteric Software website
   Tokens follow the Vaulteric Hub design system: paper ground, ink text, one blue accent, navy emphasis blocks. */

:root {
  --paper: #f5f0e7;
  --paper-bright: #fcfaf5;
  --cream: #ebe2d2;
  --sky-wash: #e8effa;
  --glow-blue: rgba(198, 219, 255, 0.62);
  --glow-gold: rgba(241, 218, 176, 0.38);

  --ink: #17221f;
  --muted: #5d6863;
  --line: #d9d3c8;
  --line-strong: #c4bba9;
  --input-border: #8a8474;
  --line-blue: #c6d3e9;

  --blue: #2563d9;
  --blue-dark: #174cad;
  --blue-pale: #e8f0ff;
  --blue-wash: #dbe8ff;
  --blue-line: #acc2ec;
  --grid-line: rgba(54, 95, 166, 0.055);

  --navy: #112960;
  --navy-light: #1a418f;
  --on-navy-muted: #c5d6f6;
  --sky: #9dc1ff;

  --radius-sm: 5px;
  --radius-md: 9px;
  --radius-lg: 13px;
  --radius-xl: 17px;
  --radius-pill: 999px;

  --shadow-card: 0 10px 24px rgba(77, 73, 64, 0.045);
  --shadow-hard: 4px 4px 0 rgba(18, 49, 114, 0.22);
  --shadow-lift: 0 12px 23px rgba(34, 90, 202, 0.3);
  --shadow-window: 0 22px 48px rgba(35, 52, 92, 0.12);
  --shadow-pop: 0 18px 50px rgba(43, 49, 42, 0.10);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;

  --content-max: 1120px;
  --header-h: 77px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 3%, var(--glow-blue), transparent 24rem),
    radial-gradient(circle at 6% 32%, var(--glow-gold), transparent 25rem),
    var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.06em; }
h1 { font-size: clamp(46px, 7.2vw, 88px); line-height: 0.96; font-weight: 760; }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1; font-weight: 740; }
h3 { line-height: 1.08; font-weight: 720; }

.wrap { width: min(var(--content-max), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 104px 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.kicker, .section-number { margin: 0 0 var(--space-5); font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.kicker { color: var(--blue); }
.section-number { color: var(--muted); }
.lead { max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.7; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.skip-link { position: absolute; z-index: 100; top: -60px; left: 16px; padding: 12px 16px; color: #fff; background: var(--ink); border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(245, 240, 231, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: var(--space-5); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; font-weight: 750; letter-spacing: -0.035em; text-decoration: none; }
.brand-logo { width: 26px; height: 26px; flex: none; color: var(--ink); }
.primary-nav { display: flex; gap: 26px; margin-left: auto; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.primary-nav a:hover { color: var(--blue); }
.primary-nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.support-button { min-height: 44px; padding: 0 16px; color: var(--blue-dark); background: var(--blue-pale); border: 1px solid var(--blue-line); border-radius: var(--radius-sm); font: 700 13px/1 var(--font-sans); cursor: pointer; transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.support-button:hover { background: #fff; box-shadow: 0 5px 13px rgba(44, 90, 176, 0.14); transform: translateY(-1px); }

/* ---------- Buttons and links ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin-top: var(--space-4); padding: 0 20px; color: #fff; background: var(--blue); border: 1px solid var(--blue-dark); border-radius: var(--radius-sm); box-shadow: var(--shadow-hard); font: 750 13px/1.2 var(--font-sans); text-decoration: none; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.button:hover { background: var(--blue-dark); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.button.is-quiet { color: var(--ink); background: var(--paper-bright); border: 1.5px solid var(--ink); }
.button.is-quiet:hover { background: #fff; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); }
.button-row .button { margin-top: var(--space-4); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: var(--space-4); color: var(--blue); font-size: 13px; font-weight: 750; text-decoration: none; border-bottom: 1px solid transparent; }
.text-link:hover { border-bottom-color: currentColor; }
.link-button { padding: 0; color: inherit; background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.prose-link, .product-copy a:not(.button):not(.text-link), .doc-body a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 88px; }
.hero h1 { max-width: 980px; text-wrap: balance; }
.typed { color: var(--blue); white-space: nowrap; }
.typed i { display: inline-block; width: 2px; height: 0.78em; margin-left: 6px; vertical-align: -0.06em; background: currentColor; animation: cursor-blink 1.05s step-end infinite; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-7); margin-top: var(--space-7); }
.hero-foot .lead { margin: 0; }
.hero-foot .button-row { flex: none; }
.glance { margin-top: var(--space-7); border-block: 1px solid var(--line); }
.glance dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.glance div { padding: var(--space-5) var(--space-5) var(--space-5) 0; }
.glance div + div { padding-left: var(--space-5); border-left: 1px solid var(--line); }
.glance dt { margin-bottom: var(--space-2); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.glance dd { margin: 0; font-size: 15px; line-height: 1.55; }

/* ---------- Divisions (about) ---------- */
.split-head { display: grid; grid-template-columns: 1fr 0.7fr; gap: var(--space-7); align-items: end; }
.split-head .lead { margin: 0; }
.division-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: var(--space-7); }
.division-card { display: flex; flex-direction: column; gap: 14px; min-height: 270px; padding: 30px; color: var(--ink); text-decoration: none; background: rgba(252, 250, 245, 0.78); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.division-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(77, 73, 64, 0.1); }
.division-index { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.division-card h3 { margin: 0; font-size: 30px; }
.division-card p { margin: 0; max-width: 440px; color: var(--muted); line-height: 1.65; }
.division-items { margin-top: auto; font-size: 13px; font-weight: 750; }
.division-card.is-baas { color: #fff; background: linear-gradient(125deg, var(--navy), var(--navy-light)); border-color: var(--navy); box-shadow: 0 16px 30px rgba(22, 55, 129, 0.2); }
.division-card.is-baas .division-index { color: var(--sky); }
.division-card.is-baas p { color: var(--on-navy-muted); }
.division-card.is-baas:focus-visible { outline-color: var(--blue); }

/* ---------- Product bands ---------- */
.band { position: relative; overflow: hidden; padding: 104px 0; }
.band-grid { background-color: var(--sky-wash); background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 28px 28px; border-block: 1px solid var(--line-blue); }
.band-grid::after { content: ""; position: absolute; right: 7%; bottom: 8%; width: 108px; height: 108px; border: 1px solid rgba(53, 108, 215, 0.18); pointer-events: none; }
.band-navy { color: #fff; background-color: var(--navy); background-image: linear-gradient(125deg, var(--navy), var(--navy-light)); }
.band-navy::after { content: ""; position: absolute; width: 640px; height: 640px; right: -170px; top: -380px; border: 1px solid rgba(197, 219, 255, 0.17); border-radius: 50%; box-shadow: 0 0 0 90px rgba(197, 219, 255, 0.04); pointer-events: none; }
.band .wrap { position: relative; z-index: 1; }
.band-navy .kicker, .band-navy .section-number { color: var(--sky); }
.band-navy p, .band-navy .lead { color: var(--on-navy-muted); }
.band-navy a:not(.button):not(.text-link) { color: #fff; }
.band-navy .text-link { color: var(--sky); }
.band-navy :focus-visible { outline-color: var(--sky); }
.band-navy .button { color: var(--navy); background: #fff; border-color: #fff; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25); }
.band-navy .button:hover { background: var(--blue-pale); }

.product-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 34px; }
.product-head .kicker { margin-bottom: 17px; }
.product-head h2 { margin-bottom: 0; }
.product-head > p { max-width: 300px; margin: 0 0 5px; color: var(--muted); line-height: 1.65; }
.product-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; margin-top: 56px; }
.product-copy .product-tag { margin-bottom: 17px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.band-navy .product-copy .product-tag { color: var(--sky); }
.product-copy h3 { margin-bottom: 18px; font-size: 32px; }
.product-copy > p:not(.product-tag) { color: var(--muted); font-size: 15px; line-height: 1.75; }
.band-navy .product-copy > p:not(.product-tag) { color: var(--on-navy-muted); }

.product-facts { margin: 0; padding: 8px 28px; background: var(--paper-bright); border: 1px solid #b5c4df; border-radius: var(--radius-md); box-shadow: 0 18px 50px rgba(43, 49, 42, 0.1); }
.product-facts div { display: grid; grid-template-columns: 30% 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid #dde4ef; }
.product-facts div:last-child { border-bottom: 0; }
.product-facts dt { padding-top: 4px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.product-facts dd { margin: 0; font-size: 15px; line-height: 1.55; }
.band-navy .product-facts { background: rgba(255, 255, 255, 0.05); border-color: rgba(197, 219, 255, 0.3); box-shadow: none; }
.band-navy .product-facts div { border-bottom-color: rgba(197, 219, 255, 0.18); }
.band-navy .product-facts dt { color: var(--sky); }
.band-navy .product-facts dd { color: #fff; }

.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 var(--space-4); padding: 6px 12px; color: var(--blue-dark); background: var(--blue-pale); border: 1px solid var(--blue-line); border-radius: var(--radius-pill); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.pill::before { content: ""; width: 7px; height: 7px; border: 2px solid currentColor; border-radius: 50%; }
.band-navy .pill { color: var(--sky); background: rgba(255, 255, 255, 0.06); border-color: rgba(197, 219, 255, 0.35); }

/* ---------- Cards, roles, steps ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: var(--space-7); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 26px; background: rgba(252, 250, 245, 0.78); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover { border-color: var(--blue-line); box-shadow: 0 14px 28px rgba(38, 83, 169, 0.1); transform: translateY(-3px); }
.card-index { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px; color: var(--blue-dark); background: var(--blue-pale); border-radius: var(--radius-md); font-size: 11px; font-weight: 800; }
.card h3 { margin: 30px 0 10px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.band-navy .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(197, 219, 255, 0.28); box-shadow: none; }
.band-navy .card:hover { border-color: rgba(197, 219, 255, 0.55); box-shadow: none; }
.band-navy .card-index { color: var(--sky); background: rgba(157, 193, 255, 0.14); }
.band-navy .card p { color: var(--on-navy-muted); }
.band-navy .card h3 { color: #fff; }

.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: var(--space-7); }
.role { padding: 30px; background: var(--paper-bright); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.role.is-vaulteric { background: var(--blue-pale); border-color: var(--blue-line); }
.role h3 { margin: 0 0 12px; font-size: 24px; }
.role ul { margin: 0; padding: 0; list-style: none; }
.role li { position: relative; padding: 10px 0 10px 22px; color: var(--ink); font-size: 15px; line-height: 1.55; border-top: 1px solid var(--line); }
.role.is-vaulteric li { border-top-color: var(--blue-line); }
.role li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 8px; border: 2px solid var(--blue); border-radius: 50%; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: var(--space-7) 0 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; padding: 26px; background: var(--paper-bright); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 28px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; }
.steps h3 { margin: 0 0 10px; font-size: 21px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.ecosystem-list { margin-top: var(--space-7); border-top: 1px solid var(--line); }
.ecosystem-list article { display: grid; grid-template-columns: 28% 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding 0.25s ease; }
.ecosystem-list article:hover { padding-left: 10px; }
.ecosystem-list article > span { color: var(--blue); font-size: 12px; font-weight: 800; }
.ecosystem-list h3 { margin-bottom: 8px; font-size: 24px; }
.ecosystem-list p { max-width: 540px; margin: 0; color: var(--muted); line-height: 1.65; }

/* ---------- Principles ---------- */
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: var(--space-7); }
.principle-grid article { display: flex; flex-direction: column; min-height: 230px; padding: 28px; background: rgba(252, 250, 245, 0.78); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.principle-grid article::before { content: ""; display: block; width: 8px; height: 8px; margin-bottom: 36px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 0 5px var(--blue-wash); }
.principle-grid h3 { margin-bottom: 10px; font-size: 20px; }
.principle-grid p { max-width: 300px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.principle-grid .text-link { margin-top: auto; padding-top: var(--space-2); }

/* ---------- Closing ---------- */
.finale { display: flex; flex-direction: column; }
.finale > .closing, .finale > .band { flex: 1 0 auto; }
.finale > .band { display: flex; align-items: center; }
.is-tight { padding-top: 8px; }
.closing { display: flex; align-items: center; padding: 104px 0; color: #fff; background: linear-gradient(125deg, var(--navy), var(--navy-light)); }
.closing .kicker { color: var(--sky); }
.closing h2 { margin-bottom: 20px; }
.closing p { max-width: 520px; color: var(--on-navy-muted); }
.closing .button { color: var(--navy); background: #fff; border-color: #fff; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25); }
.closing .button:hover { background: var(--blue-pale); }
.closing :focus-visible { outline-color: var(--sky); }

/* ---------- Product pages ---------- */
.hub-hero { padding: 112px 0 72px; }
.hub-hero h1 { max-width: 940px; }
.hub-hero .lead { margin: 32px 0 0; }
.hub-summary { display: grid; grid-template-columns: 28% 1fr; gap: 38px; padding: 96px 0; border-top: 1px solid var(--line); }
.hub-summary h2 { max-width: 720px; margin-bottom: 24px; }
.hub-summary p:not(.section-number) { max-width: 620px; color: var(--muted); line-height: 1.75; }
.page-head { margin-bottom: var(--space-7); }
.page-head h2 { max-width: 760px; margin-bottom: 0; }

.feature-window { overflow: hidden; background: var(--paper-bright); border: 1px solid #b5c4df; border-radius: var(--radius-md); box-shadow: var(--shadow-window); }
.feature-window-bar { height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 17px; color: #4c617f; background: linear-gradient(90deg, #edf3ff, #e4edff); border-bottom: 1px solid #c6d4ec; font-size: 12px; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { display: block; width: 8px; height: 8px; background: #bac8e2; border-radius: 50%; }
.window-dots i:first-child { background: #6091ec; }
.window-status { margin-left: auto; font-size: 11px; }
.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.directory-grid article { position: relative; min-height: 215px; padding: 26px 23px 28px; border-right: 1px solid #e2ded6; border-bottom: 1px solid #e2ded6; transition: background 0.2s ease; }
.directory-grid article:hover { background: #f3f7ff; }
.directory-grid article:nth-child(3n) { border-right: 0; }
.directory-grid article:nth-last-child(-n + 3) { border-bottom: 0; }
.directory-grid h3 { margin: 36px 0 10px; font-size: 18px; }
.directory-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.directory-grid mark { padding: 1px 4px; color: var(--blue-dark); background: var(--blue-wash); border-radius: 4px; }
.directory-grid .acai-feature { background: linear-gradient(145deg, #eff4ff, #e5eeff); }
.feature-index { position: absolute; top: 22px; right: 22px; color: var(--blue-dark); font-size: 11px; font-weight: 800; }

.faq { margin-top: var(--space-6); border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); min-height: 64px; padding: 14px 0; font-size: 18px; font-weight: 700; letter-spacing: -0.03em; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--blue); font-size: 24px; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { max-width: 680px; margin: 0 0 24px; color: var(--muted); line-height: 1.7; }

.availability { display: grid; grid-template-columns: 1fr 380px; gap: 72px; align-items: center; }
.availability h2 { margin-bottom: 22px; }
.availability .lead { margin: 0; }
.status-card { display: flex; flex-direction: column; padding: 32px; background: linear-gradient(145deg, #edf3ff, #dce9ff); border: 1px solid var(--blue-line); border-radius: var(--radius-md); box-shadow: var(--shadow-window); }
.status-label, .status-note { color: #3f5683; font-size: 13px; }
.status-card strong { margin: 8px 0 4px; color: var(--blue-dark); font-size: 44px; line-height: 1.02; letter-spacing: -0.06em; }
.status-card .button, .status-card .text-link { align-self: flex-start; }

/* ---------- Document pages (privacy, security) ---------- */
.doc-hero { padding: 104px 0 56px; }
.doc-hero h1 { max-width: 900px; font-size: clamp(40px, 6vw, 68px); }
.doc-hero .lead { margin: 28px 0 0; }
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; padding-bottom: 104px; }
.doc-toc { position: sticky; top: 100px; align-self: start; }
.doc-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.doc-toc a { display: block; padding: 8px 0 8px 16px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.doc-toc a:hover { color: var(--blue); }
.doc-body > section { padding: 36px 0; border-top: 1px solid var(--line); }
.doc-body > section:first-child { border-top: 0; padding-top: 0; }
.doc-body h2 { margin-bottom: 18px; font-size: clamp(26px, 3vw, 34px); }
.doc-body h3 { margin: 24px 0 8px; font-size: 18px; letter-spacing: -0.03em; }
.doc-body p, .doc-body li { max-width: 68ch; line-height: 1.75; }
.doc-body ul { padding-left: 22px; }
.doc-body li + li { margin-top: 6px; }
.doc-note { max-width: 68ch; margin: 20px 0 0; padding: 16px 18px; background: var(--blue-pale); border: 1px solid var(--blue-line); border-radius: var(--radius-md); font-size: 14px; line-height: 1.65; }
.def-list { max-width: 720px; margin: 20px 0 0; border-top: 1px solid var(--line); }
.def-list div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.def-list dt { font-weight: 700; }
.def-list dd { margin: 0; color: var(--muted); line-height: 1.65; }
.def-list dd strong { color: var(--ink); }
code { padding: 1px 6px; background: var(--blue-wash); border-radius: 4px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; color: var(--ink); background: var(--paper-bright); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 0.7fr 1.5fr; gap: var(--space-6); padding: 64px 0 48px; }
.footer-about p { max-width: 300px; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.footer-title { margin: 0 0 14px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 4px; }
.footer-col li a, .footer-col li .link-button { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; font-weight: 600; text-decoration: none; }
.footer-col li .link-button { text-decoration: none; }
.footer-col li a:hover, .footer-col li .link-button:hover { color: var(--blue); text-decoration: underline; }
.footer-contact dl { margin: 0; }
.footer-contact dl div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.footer-contact dl div:first-child { padding-top: 0; border-top: 0; }
.footer-contact dt { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-contact dd { margin: 0; }
.footer-contact a { color: var(--blue-dark); font-size: 14px; font-weight: 700; word-break: break-word; }
.footer-contact span { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--space-5); padding: 22px 0 32px; color: var(--muted); font-size: 12px; line-height: 1.6; border-top: 1px solid var(--line); }
.footer-bottom > span { flex: none; }
.footer-bottom p { margin: 0; max-width: 640px; }

/* ---------- Support dialog ---------- */
.support-dialog { width: min(480px, calc(100% - 32px)); margin: auto; padding: 26px; color: var(--ink); background: var(--paper-bright); border: 1px solid var(--blue-line); border-radius: var(--radius-xl); box-shadow: 0 28px 90px rgba(22, 33, 58, 0.32); }
.support-dialog::backdrop { background: rgba(15, 26, 49, 0.44); backdrop-filter: blur(4px); }
.support-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.support-dialog .kicker { margin-bottom: 9px; }
.support-dialog h2 { margin: 0; font-size: 28px; }
.dialog-close { flex: none; width: 44px; height: 44px; color: var(--ink); background: #fff; border: 1px solid var(--input-border); border-radius: 50%; font: 500 22px/1 var(--font-sans); cursor: pointer; }
.dialog-close:hover { background: var(--blue-pale); }
.support-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.support-list a { display: grid; gap: 2px; padding: 14px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.support-list a:hover strong { color: var(--blue); }
.support-list strong { font-size: 15px; }
.support-list span { color: var(--muted); font-size: 13px; }
.support-list em { color: var(--blue-dark); font-size: 13px; font-style: normal; font-weight: 700; }

/* ---------- Cookie banner ---------- */
.consent { position: fixed; z-index: 60; left: 24px; bottom: 24px; width: min(480px, calc(100% - 48px)); padding: 24px; color: var(--ink); background: var(--paper-bright); border: 1px solid var(--line-strong); border-radius: var(--radius-xl); box-shadow: 0 28px 70px rgba(22, 33, 58, 0.28); }
.consent[hidden] { display: none; }
.consent .kicker { margin-bottom: 10px; }
.consent h2 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.04em; line-height: 1.08; }
.consent p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.consent-list { margin: 0 0 16px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.consent-list li { padding: 10px 0; color: var(--muted); font-size: 13px; line-height: 1.55; border-bottom: 1px solid var(--line); }
.consent-list strong { color: var(--ink); }
.consent-state { color: var(--ink); font-weight: 700; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-actions .button { width: 100%; margin: 0; padding: 0 12px; text-align: center; }
.consent-more { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; }

/* ---------- Motion ---------- */
.reveal { transition: opacity 0.65s ease, transform 0.65s cubic-bezier(.2, .75, .25, 1); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes cursor-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .typed i { animation: none; }
}

/* ---------- Full-screen scroll (all screen sizes, motion allowed) ----------
   site.js adds body.deck-mode. Each section becomes one screen; a screen taller than the window scrolls inside itself. */
.screen-deck-indicator, .screen-deck-hint { display: none; }

body.deck-mode { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; overscroll-behavior: none; }
body.deck-mode .site-header { flex: none; position: relative; }
body.deck-mode main { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; overflow: hidden; }
body.deck-init main > .screen, body.deck-init .screen-deck-indicator button::before { transition: none !important; }
body.deck-mode main > .screen { position: absolute; inset: 0; z-index: 1; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; padding-block: 16px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(52px) scale(0.985); transition: opacity 0.64s ease, transform 0.76s cubic-bezier(.2, .75, .25, 1), visibility 0s linear 0.7s; }
body.deck-mode main > .screen:not(.hub-summary):not(.finale) { display: flex; flex-direction: column; }
body.deck-mode main > .screen:not(.finale) > :first-child { margin-top: auto; }
body.deck-mode main > .screen:not(.finale) > :last-child { margin-bottom: auto; }
body.deck-mode main > .screen.finale { padding-block: 0; }
body.deck-mode main > .screen.screen-active { z-index: 2; opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }

body.deck-mode .screen-deck-indicator { position: fixed; z-index: 30; top: 50%; right: 10px; display: flex; flex-direction: column; transform: translateY(-50%); }
.screen-deck-indicator button { position: relative; width: 24px; height: 24px; padding: 0; background: none; border: 0; cursor: pointer; }
.screen-deck-indicator button::before { content: ""; position: absolute; left: 8px; top: 8px; width: 8px; height: 8px; background: var(--input-border); border-radius: 50%; transition: top 0.2s ease, height 0.2s ease, background 0.2s ease; }
.screen-deck-indicator button.is-active::before { top: 3px; height: 18px; background: var(--blue); border-radius: 99px; }
.screen-deck-indicator.is-light button::before { background: rgba(255, 255, 255, 0.6); }
.screen-deck-indicator.is-light button.is-active::before { background: var(--sky); }
body.deck-mode .screen-deck-hint { position: fixed; z-index: 30; right: 24px; bottom: 16px; display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.screen-deck-hint.is-light { color: var(--on-navy-muted); }
.screen-deck-hint[hidden] { display: none !important; }

@media (min-width: 761px) {
  body.deck-mode main > .screen.wrap { width: auto; margin: 0; padding-inline: max(48px, calc((100% - var(--content-max)) / 2)); }
  body.deck-mode .wrap { width: min(var(--content-max), calc(100% - 96px)); }

  body.deck-mode .hero { padding-block: 28px; }
  body.deck-mode .hero-foot { margin-top: 32px; }
  body.deck-mode .glance { margin-top: 32px; }
  body.deck-mode .glance div { padding-block: 16px; }
  body.deck-mode .hub-hero { padding-block: 28px; }
  body.deck-mode .hub-hero .lead { margin-top: 24px; }
  body.deck-mode .hub-summary { align-content: center; border-top: 0; }
  body.deck-mode .division-grid, body.deck-mode .role-grid, body.deck-mode .card-grid, body.deck-mode .principle-grid, body.deck-mode .steps, body.deck-mode .ecosystem-list { margin-top: 28px; }
  body.deck-mode .division-card { min-height: 220px; padding: 26px; }
  body.deck-mode .principle-grid article { min-height: 160px; padding: 22px; }
  body.deck-mode .principle-grid article::before { margin-bottom: 20px; }
  body.deck-mode .card { padding: 20px; }
  body.deck-mode .card h3 { margin: 22px 0 8px; }
  body.deck-mode .role { padding: 24px; }
  body.deck-mode .steps li { padding: 22px; }
  body.deck-mode .steps li::before { margin-bottom: 18px; }
  body.deck-mode .ecosystem-list article { padding-block: 20px; }
  body.deck-mode .product-layout { margin-top: 32px; }
  body.deck-mode .product-copy h3 { margin-bottom: 12px; font-size: 28px; }
  body.deck-mode .product-copy > p:not(.product-tag) { font-size: 14.5px; line-height: 1.65; }
  body.deck-mode .product-copy .pill { margin-bottom: 10px; }
  body.deck-mode .product-copy .product-tag { margin-bottom: 12px; }
  body.deck-mode .product-facts { padding-block: 4px; }
  body.deck-mode .product-facts div { padding-block: 11px; }
  body.deck-mode .page-head { margin-bottom: 28px; }
  body.deck-mode .directory-grid article { min-height: 136px; padding: 16px 20px 18px; }
  body.deck-mode .directory-grid h3 { margin: 24px 0 6px; font-size: 16px; }
  body.deck-mode .directory-grid p { font-size: 12px; line-height: 1.5; }
  body.deck-mode .feature-index { top: 16px; right: 18px; }
  body.deck-mode .feature-window-bar { height: 40px; }
  body.deck-mode .faq { margin-top: 8px; }
  body.deck-mode .faq summary { min-height: 56px; padding-block: 8px; font-size: 17px; }
  body.deck-mode .status-card { padding: 22px 26px; }
  body.deck-mode .status-card strong { font-size: 36px; }
  body.deck-mode .status-card .button { margin-top: 10px; }
  body.deck-mode .status-card .text-link { margin-top: 0; }
  body.deck-mode .closing, body.deck-mode .finale > .band { padding-block: 24px; }
  body.deck-mode .availability { gap: 56px; }
  body.deck-mode .availability h2 { margin-bottom: 14px; font-size: clamp(30px, 3.6vw, 44px); }
  body.deck-mode .closing .kicker { margin-bottom: 14px; }
  body.deck-mode .closing h2 { margin-bottom: 14px; font-size: clamp(34px, 4.2vw, 46px); }
  body.deck-mode .closing p:not(.kicker) { margin-bottom: 4px; }
  body.deck-mode .footer-grid { padding: 20px 0 12px; }
  body.deck-mode .footer-bottom { padding: 10px 0 14px; }
  body.deck-mode .footer-contact dl div { padding-block: 6px; }

  body.deck-mode #principles::after { content: "VAULTERIC"; position: absolute; right: -24px; bottom: 0; z-index: 0; overflow: hidden; color: rgba(41, 91, 191, 0.055); font-size: clamp(86px, 14vw, 205px); font-weight: 800; letter-spacing: -0.1em; line-height: 1; pointer-events: none; }
  body.deck-mode #principles > * { position: relative; z-index: 1; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .header-inner { gap: var(--space-4); }
  .primary-nav { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .availability { grid-template-columns: 1fr; gap: 40px; }
  .doc { grid-template-columns: 1fr; gap: 32px; }
  .doc-toc { position: static; }
  .doc-toc ol { display: flex; flex-wrap: wrap; gap: 4px 20px; border-left: 0; }
  .doc-toc a { padding: 6px 0; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .wrap { width: min(100% - 36px, var(--content-max)); }
  .section, .band, .closing { padding: 72px 0; }
  .header-inner { flex-wrap: wrap; gap: 0 var(--space-3); min-height: 0; padding: 10px 0 0; }
  .support-button { margin-left: auto; }
  .primary-nav { order: 3; width: 100%; margin: 0; padding-bottom: 2px; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .primary-nav a { flex: none; }
  .hero { padding: 72px 0 64px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 0; }
  .glance dl { grid-template-columns: 1fr; }
  .glance div, .glance div + div { padding: 18px 0; border-left: 0; }
  .glance div + div { border-top: 1px solid var(--line); }
  .split-head { grid-template-columns: 1fr; gap: 20px; }
  .division-grid, .role-grid, .card-grid, .card-grid.cols-2, .card-grid.cols-4, .principle-grid, .steps { grid-template-columns: 1fr; gap: 13px; margin-top: 36px; }
  .division-card { min-height: 0; padding: 24px; }
  .product-head { display: block; }
  .product-head > p { margin-top: 20px; }
  .product-layout { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .product-facts { padding: 4px 20px; }
  .product-facts div { grid-template-columns: 1fr; gap: 4px; padding: 15px 0; }
  .ecosystem-list article { grid-template-columns: 1fr; gap: 10px; }
  .principle-grid article { min-height: 0; }
  .hub-hero { padding: 72px 0 56px; }
  .hub-summary { grid-template-columns: 1fr; gap: 24px; padding: 72px 0; }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-grid article, .directory-grid article:nth-child(3n) { min-height: 0; border-right: 0; border-bottom: 1px solid #e2ded6; }
  .directory-grid article:last-child { border-bottom: 0; }
  .window-status { display: none; }
  .def-list div { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; padding: 48px 0 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px; }
  .consent-actions { grid-template-columns: 1fr; }
  body.deck-mode main > .screen { scrollbar-width: none; }
  body.deck-mode main > .screen::-webkit-scrollbar { display: none; }
  body.deck-mode main > .screen.wrap { width: auto; margin: 0; padding-inline: 24px; }
  body.deck-mode .wrap { width: min(100% - 48px, var(--content-max)); }
  body.deck-mode .hero, body.deck-mode .hub-hero, body.deck-mode .section, body.deck-mode .band, body.deck-mode .closing { padding-block: 36px; }
  body.deck-mode .finale > .band { padding-block: 32px; }
  body.deck-mode .footer-grid { padding: 32px 0 24px; }
  body.deck-mode .screen-deck-indicator { right: 2px; }
  body.deck-mode .screen-deck-indicator button { width: 20px; height: 22px; }
  body.deck-mode .screen-deck-indicator button::before { left: 7px; top: 8px; width: 6px; height: 6px; }
  body.deck-mode .screen-deck-indicator button.is-active::before { top: 4px; height: 14px; }
  body.deck-mode .screen-deck-hint { right: 16px; bottom: 10px; font-size: 10px; }
}
