/* TheVault website. Plain CSS, no build step, fonts self-hosted (OFL, assets/fonts/).
   Look: light cool grey, cobalt accent, Onest + JetBrains Mono (from mockup-v4, 2026-11). */
@font-face { font-family: "Onest"; font-weight: 400 700; font-display: swap; src: url("fonts/onest-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-500-latin.woff2") format("woff2"); }

:root {
  --bg: #eef0f3;
  --surface: #e2e5ea;
  --ink: #0b0c0e;
  --muted: #5d6470;
  --line: rgb(11 12 14 / .11);
  --line-strong: rgb(11 12 14 / .2);
  --accent: #1f2de6;
  --accent-hover: #1823c4;
  --inv-bg: #0b0c0e;
  --inv-ink: #eef0f3;
  --inv-muted: #8e8f92;
  --font: "Onest", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --r: 12px; --r-sm: 8px;
  --gutter: clamp(16px, 5.5vw, 80px);
  --wrap: 1280px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1 { font-size: clamp(38px, 6.2vw, 88px); line-height: 1.02; letter-spacing: -0.04em; max-width: 17ch; }
h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -0.035em; max-width: 22ch; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
p + p { margin-top: var(--s-4); }
code { font: 500 .9em var(--mono); background: var(--surface); padding: 1px 5px; border-radius: 4px; }
b, strong { font-weight: 600; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s-4); top: var(--s-3); z-index: 30; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: var(--r-sm); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- header ------------------------------------------------------------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgb(238 240 243 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head__bar { display: flex; align-items: center; gap: var(--s-5); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { font-size: 15px; font-weight: 500; text-decoration: none; padding: 7px 12px; border-radius: var(--r-sm); }
.site-nav a:hover { background: var(--surface); }
.site-nav a[aria-current] { background: var(--surface); }
.head__buy { margin-left: var(--s-4); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--surface); }
.menu nav { position: absolute; right: 0; top: 52px; min-width: 220px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px -20px rgb(11 12 14 / .35); padding: var(--s-2); display: grid; }
.menu nav a { padding: 12px 14px; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; }
.menu nav a:hover, .menu nav a[aria-current] { background: var(--surface); }
@media (max-width: 1060px) {
  .site-nav { display: none; }
  .menu { display: block; }
  .head__bar { height: 60px; gap: var(--s-2); }
  .brand { font-size: 18px; }
  .head__buy { margin-left: 0; padding: 0 14px; }
}

/* ---- buttons and links -------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border-radius: var(--r-sm);
  font: 500 15px/1.2 var(--font); text-decoration: none; text-align: center; border: 1px solid transparent; background: var(--accent); color: #fff; cursor: pointer; }
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--secondary, .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover, .btn--ghost:hover { background: var(--surface); color: var(--ink); }
.btn--wide { width: 100%; }
@media (max-width: 639px) { .btn-row .btn { width: 100%; } }
.link { font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.link::after { content: " \2192"; }
.more { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }

/* ---- sections ----------------------------------------------------------- */
.section { padding: var(--s-9) 0; }
.section + .section { border-top: 1px solid var(--line); }
.hero { padding: var(--s-9) 0; }
@media (max-width: 639px) { .section, .hero { padding: var(--s-8) 0; } }
.kicker { font: 500 13px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kicker + h1, .kicker + h2 { margin-top: var(--s-4); }
.kicker .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.kicker .dot--plan { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.lede, .lead { font-size: clamp(17px, .3vw + 15.9px, 20px); line-height: 1.5; max-width: 46ch; margin-top: var(--s-5); }
.reassure { margin-top: var(--s-4); font-size: 14px; color: var(--muted); }
.reassure + .reassure { margin-top: 4px; }
.also { margin-top: var(--s-7); max-width: 62ch; color: var(--muted); }

/* 12-column grid, used for the side-by-side sections */
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; }
.start-6 { grid-column-start: 6; } .start-7 { grid-column-start: 7; }
.span-6.start-7 { grid-column: 7 / span 6; } .span-7.start-6 { grid-column: 6 / span 7; }
@media (max-width: 1023px) { .grid12 > * { grid-column: 1 / -1 !important; } .grid12 { row-gap: var(--s-6); } }

/* ruled columns: a rule, a title, a short paragraph */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--s-6); margin-top: var(--s-8); }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols--1 { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-6); }
.cols > div { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.cols p { margin-top: var(--s-2); color: var(--muted); }
.cols p + p { margin-top: var(--s-3); }
@media (max-width: 1023px) { .cols:not(.cols--1) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .cols, .cols--2 { grid-template-columns: minmax(0, 1fr) !important; gap: var(--s-6); margin-top: var(--s-7); } }

/* products: one row per product */
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: center; margin-top: var(--s-8); }
.product + .product { padding-top: var(--s-8); border-top: 1px solid var(--line); }
.product h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 400; letter-spacing: -0.035em; margin-top: var(--s-3); }
.product > div > p { margin-top: var(--s-4); max-width: 44ch; }
.product--plan { align-items: start; }
.product--plan .cols { margin-top: 0; padding-top: var(--s-3); }
.hero .product { margin-top: 0; }
.hero .product h1 { font-size: clamp(38px, 4.4vw, 64px); }
@media (max-width: 1023px) { .product { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }

/* screenshots: always the whole image at its own shape */
.shot { margin: 0; line-height: 0; background: var(--inv-bg); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 0 0 1px rgb(11 12 14 / .12), 0 18px 40px -24px rgb(11 12 14 / .45); }
.shot img { width: 100%; height: auto; }
.guide .shot, .page .shot { margin-top: var(--s-5); line-height: 1.4; }
.shot figcaption { line-height: 1.4; padding: 10px 14px; background: var(--surface); color: var(--muted); font-size: 14px; }

/* offer */
.offer { margin-top: var(--s-5); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.offer__now { font-size: 28px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; }
.offer__was { color: var(--muted); font-weight: 400; }
h2 .offer__was { font-size: .5em; vertical-align: middle; margin-left: .2em; }
.offer__note { flex-basis: 100%; font-size: 15px; color: var(--muted); }
.price-h { font-size: clamp(44px, 5vw, 64px); letter-spacing: -0.04em; }
.gets { list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.gets li { padding: var(--s-3) 0 var(--s-3) 28px; border-top: 1px solid var(--line); position: relative; }

/* tick lists */
.gets li::before, .check li::before { content: ""; position: absolute; left: 4px; top: calc(var(--s-3) + 6px); width: 10px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.check { list-style: none; padding: 0; margin: var(--s-4) 0 0; }
.check li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.check li::before { top: .5em; }

/* spec table */
.spec { width: 100%; border-collapse: collapse; margin-top: var(--s-6); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.spec th { width: 28%; font-weight: 500; padding-right: var(--s-5); }
.spec td { color: var(--muted); }
@media (max-width: 639px) { .spec th, .spec td { display: block; width: auto; padding: 0; border: 0; } .spec tr { display: block; padding: var(--s-4) 0; border-top: 1px solid var(--line); } .spec td { margin-top: 4px; } }

/* FAQ */
.faq__item { padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.faq__item p { margin-top: var(--s-2); color: var(--muted); }
.terms-line { margin-top: var(--s-5); color: var(--muted); }

/* founder */
.founder__photo { margin-top: var(--s-5); aspect-ratio: 4 / 5; max-width: 260px; border-radius: var(--r); background: var(--surface); object-fit: cover; width: 100%; }
.founder__quote { font-size: clamp(24px, 2.9vw, 38px); line-height: 1.18; letter-spacing: -0.03em; max-width: none; }
.founder__body { margin-top: var(--s-6); max-width: 60ch; }
.founder__sig { margin-top: var(--s-6); font: 500 14px/1.6 var(--mono); color: var(--muted); }
@media (max-width: 1023px) { .founder__photo { max-width: 180px; } }
div.founder__photo { display: none; } /* empty placeholder until the photo exists; the <img> swap is unaffected */

/* dark call-to-action band */
.cta-band { background: var(--inv-bg); color: var(--inv-ink); }
.cta-band + .section, .section + .cta-band { border-top: 0; }
.cta-band .lede { color: var(--inv-muted); max-width: 54ch; }
.cta-band .btn--primary { background: var(--inv-ink); color: var(--inv-bg); }
.cta-band .btn--primary:hover { background: #fff; }
.cta-band .btn--secondary { color: var(--inv-ink); border-color: rgb(238 240 243 / .35); }
.cta-band .btn--secondary:hover { background: rgb(238 240 243 / .08); }

/* ---- content pages (docs, legal, data) ---------------------------------- */
.page { padding-top: var(--s-8); padding-bottom: var(--s-9); }
.page > section + section { margin-top: var(--s-8); }
.page h1 { font-size: clamp(36px, 5vw, 64px); }
.page h2 { font-size: clamp(26px, 2.6vw, 34px); }
.page .kicker { margin-bottom: var(--s-4); }
.page .kicker + h1, .page .kicker + h2 { margin-top: 0; }
.page h1 + p, .page h1 + .lead { margin-top: var(--s-5); }
.page h2 + p, .page h2 + ul, .page h3 + p { margin-top: var(--s-3); }
.page p { max-width: 72ch; }
.page section > p, .page .doc > p { margin-top: var(--s-4); }
.page .btn { margin-top: var(--s-2); }
.doc { max-width: 760px; }
.doc h2 { margin-top: var(--s-7); }
.doc h3 { margin-top: var(--s-5); }
.doc ul, .doc ol { padding-left: 1.2em; margin: var(--s-3) 0 0; }
.doc li { margin-bottom: 8px; }
.updated { color: var(--muted); font: 500 13px var(--mono); margin-top: var(--s-3); }
.todo { background: #fff3cd; padding: 0 4px; border-radius: 3px; }

.grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: var(--s-5); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (min-width: 900px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 400px) { .grid, .grid.two { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border-radius: var(--r); padding: var(--s-5); }
.card h2 { font-size: 24px; letter-spacing: -0.02em; }
.card h3 + p { margin-top: var(--s-2); }
.card ul:not(.check) { padding-left: 1.2em; margin: var(--s-3) 0 0; }
.card li { margin-bottom: 10px; }
.notify { max-width: 760px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: s; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 500 13px var(--mono); color: var(--accent); margin-bottom: var(--s-2); }

/* install guide */
.guide { counter-reset: g; list-style: none; padding: 0; margin: var(--s-5) 0 0; max-width: 860px; }
.guide > li { counter-increment: g; position: relative; padding: 0 0 var(--s-7) 56px; border-left: 1px solid var(--line-strong); margin-left: 18px; }
.guide > li:last-child { border-left-color: transparent; }
.guide > li::before { content: counter(g); position: absolute; left: -18px; top: -4px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent); color: var(--accent); font: 500 14px var(--mono); }
.guide h2 { font-size: 24px; letter-spacing: -0.02em; }
.guide .spec { margin-top: var(--s-4); }
.shot--todo { display: grid; place-items: center; aspect-ratio: 16 / 10; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--muted); font-size: 14px; text-align: center; padding: 16px; background: none; box-shadow: none; }
@media (max-width: 560px) { .guide > li { padding-left: 32px; } }

/* ---- footer ------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); padding: var(--s-9) 0 var(--s-7); }
.foot__grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: var(--s-6); }
.foot__brand p { margin-top: var(--s-4); color: var(--muted); font-size: 15px; max-width: 30ch; }
.foot__col h3 { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: var(--s-4); }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot__col a { font-size: 14px; text-decoration: none; }
.foot__col a:hover { text-decoration: underline; }
.foot__legal { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); font-size: 13px; color: var(--muted); }
.foot__legal a { color: var(--muted); }
@media (max-width: 900px) { .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 639px) { .site-foot { padding-top: var(--s-8); } .foot__col a { display: inline-block; padding: 6px 0; } }
.product .cols h3 { font-size: 19px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; margin-top: 0; }
.shot--cap { line-height: 1.4; }
.shot--cap figcaption { background: var(--inv-bg); color: var(--inv-muted); font-size: 13px; padding: 10px 14px; }

/* raw data samples (data-sample) */
.raw { margin: var(--s-3) 0 0; max-height: 420px; overflow: auto; padding: 12px 14px; background: var(--surface); border-radius: var(--r); font: 500 12px/1.55 var(--mono); white-space: pre; }
