/* Brand: no colour, in the manner of Tesla's site. Black and white over the generated tokens,
   landing only: the accent is the text colour, labels on it are the page colour, status colours
   are greys, and the dark page is a neutral charcoal. */
:root {
  --vd-color-accent: #171a20;
  --vd-color-accent-hover: #393c41;
  --vd-color-accent-pressed: #000000;
  --vd-color-accent-soft: #eeeeee;
  --vd-color-accent-text: #171a20;
  --vd-color-label-on-accent: #ffffff;
  --vd-color-focus-ring: #171a20;
  --vd-color-success: #171a20;
  --vd-color-folder-back: #9a9da3;
  --vd-color-folder-front: #b9bcc1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --vd-color-canvas: #171a20;
    --vd-color-surface: #222429;
    --vd-color-surface-subtle: #2a2c31;
    --vd-color-surface-raised: #222429;
    --vd-color-surface-pressed: #393c41;
    --vd-color-text: #f4f4f4;
    --vd-color-text-muted: #b6b8ba;
    --vd-color-text-faint: #8e9094;
    --vd-color-placeholder: #8e9094;
    --vd-color-border: #393c41;
    --vd-color-accent: #f4f4f4;
    --vd-color-accent-hover: #d0d1d2;
    --vd-color-accent-pressed: #ffffff;
    --vd-color-accent-soft: #393c41;
    --vd-color-accent-text: #f4f4f4;
    --vd-color-label-on-accent: #171a20;
    --vd-color-focus-ring: #f4f4f4;
    --vd-color-success: #f4f4f4;
    --vd-color-folder-back: #6f7378;
    --vd-color-folder-front: #8c9095;
  }
}

:root {
  --ink: var(--vd-color-text);
  --muted: var(--vd-color-text-muted);
  --line: color-mix(in oklab, var(--vd-color-text) 9%, transparent);
  --line-strong: color-mix(in oklab, var(--vd-color-text) 16%, transparent);
  --wash: var(--vd-color-surface);
  --card: color-mix(in oklab, var(--vd-color-surface-raised) 92%, var(--vd-color-text));
  --shade: color-mix(in oklab, var(--vd-color-text) 14%, transparent);
  --shade-soft: color-mix(in oklab, var(--vd-color-text) 6%, transparent);
  /* Soft lift for the app window in the hero: a hairline, a close contact shadow and a wide, faint fall-off. */
  --lift: 0 0 0 1px var(--line), 0 2px 4px rgb(15 17 22 / 0.06), 0 16px 40px -8px rgb(15 17 22 / 0.16), 0 50px 100px -20px rgb(15 17 22 / 0.24);
  --page: min(72rem, 100% - var(--vd-space-xl));
  --gap-section: clamp(4.5rem, 8vw, 7rem);
  --squircle-button: 18px;
  --ember-deep: color-mix(in oklab, var(--vd-color-danger) 72%, var(--vd-color-text));
  --ember: color-mix(in oklab, var(--vd-color-danger) 78%, var(--vd-color-warning));
  --ember-light: color-mix(in oklab, var(--vd-color-danger) 45%, var(--vd-color-warning));
  --ember-pale: color-mix(in oklab, var(--vd-color-danger) 14%, var(--vd-color-canvas));
  --night: color-mix(in oklab, var(--vd-color-text) 94%, var(--vd-color-canvas));
  --squircle-link: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --lift: 0 0 0 1px var(--line), 0 2px 4px rgb(0 0 0 / 0.30), 0 16px 40px -8px rgb(0 0 0 / 0.50), 0 50px 100px -20px rgb(0 0 0 / 0.60); }
}
* { box-sizing: border-box; }
html { color-scheme: light dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--vd-color-canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--vd-color-accent-text); text-decoration: none; }
:focus-visible { outline: 2px solid var(--vd-color-focus-ring); outline-offset: 3px; border-radius: var(--vd-radius-sm); }

header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: var(--vd-space-md);
  padding: var(--vd-space-md) max(var(--vd-space-md), (100% - 72rem) / 2);
  background: color-mix(in oklab, var(--vd-color-canvas) 72%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: radial-gradient(circle at 50% 50%, var(--vd-color-label-on-accent) 0 26%, transparent 27%), var(--vd-color-accent);
}
nav { display: flex; gap: var(--vd-space-xs); }
nav a { padding: 6px 12px; border-radius: 8px; corner-shape: squircle; color: var(--muted); font-size: 14px; font-weight: 500; }
nav a:hover { color: var(--ink); background: var(--shade-soft); }

section { position: relative; padding: var(--gap-section) 0; }
.content { width: var(--page); margin: 0 auto; text-align: center; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; font-weight: 500; letter-spacing: -0.02em; max-width: 18ch; margin: 0 auto; }
h1 .soft { display: inline; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.08; font-weight: 500; letter-spacing: -0.015em; max-width: 18ch; margin: 0 auto; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; color: var(--muted); text-wrap: pretty; }
.lead { max-width: 34rem; margin: var(--vd-space-lg) auto 0; font-size: clamp(17px, 1.6vw, 19px); }
.note { max-width: 36rem; margin: var(--vd-space-lg) auto 0; font-size: 14px; line-height: 1.55; color: var(--vd-color-text-faint); }

/* z-index keeps the app window's shadow above the next section, which would otherwise paint over it. */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 0; isolation: isolate; z-index: 1; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -10% 30%;
  display: none;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--vd-space-lg);
  padding: 0;
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--vd-color-warning); }
.hero p { max-width: 34rem; margin: var(--vd-space-lg) auto 0; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--vd-space-md); margin-top: var(--vd-space-xl); }
.button, button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 13rem; padding: 11px 24px; border: 0; border-radius: 10px; corner-shape: squircle;
  background: var(--vd-color-accent); color: var(--vd-color-label-on-accent);
  font: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0; cursor: pointer;
  box-shadow: none;
}
.button:hover, button:hover { background: var(--vd-color-accent-hover); }
.button:active, button:active { background: var(--vd-color-accent-pressed); }
.button.quiet { background: var(--vd-color-surface); color: var(--ink); }
.button.quiet:hover { background: var(--vd-color-surface-pressed); }
.more { color: var(--ink); font-size: 15px; font-weight: 500; }
.more::after { content: "\2192"; display: inline-block; margin-left: 6px; transition: transform var(--vd-motion-standard) ease; }
.more:hover::after { transform: translateX(3px); }

.stage { position: relative; width: min(80rem, 100%); margin: clamp(3rem, 5vw, 4rem) auto 0; perspective: 1400px; }
.stage { padding: 0 8%; }
.window {
  display: grid; grid-template-columns: 13.5rem 1fr; min-height: 27rem; overflow: hidden; text-align: left;
  border-radius: 14px; background: var(--vd-color-canvas);
  box-shadow: var(--lift);
  font-size: 13px; line-height: 1.4; color: var(--ink);
}
.side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: var(--wash); box-shadow: 1px 0 0 var(--line); }
.side b { margin: 14px 8px 4px; font-size: 11px; font-weight: 600; color: var(--vd-color-text-faint); }
.lights { display: flex; gap: 7px; padding: 2px 8px 6px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.item { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 7px; color: var(--ink); }
.item.on { background: var(--shade-soft); font-weight: 500; }
label.item:hover { background: var(--shade-soft); }
/* The hero preview works without a script: hidden radio buttons hold the vault, the view and
   each view's selection, and :has() shows what they choose. */
.window { position: relative; user-select: none; }
/* The hero shows the app itself in its demo mode (D-216). On narrow screens the picture stands
   in: the frame is hidden there, and a hidden lazy frame is never loaded. */
.poster { display: none; }
.live iframe { display: block; width: 100%; height: min(46rem, 82vh); border: 0; border-radius: 14px; box-shadow: var(--lift); background: var(--vd-color-canvas); }
.window input { position: absolute; width: 1px; height: 1px; margin: 0; clip-path: inset(50%); pointer-events: none; }
.window label { margin-bottom: 0; font-size: inherit; font-weight: 400; color: inherit; cursor: default; }
.vault, .view-list, .view-icons, .view-cols { display: none; }
.window:has(#vd-personal:checked) .v-personal,
.window:has(#vd-family:checked) .v-family,
.window:has(#vd-studio:checked) .v-studio { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.window:has(#vd-personal:checked) label[for="vd-personal"],
.window:has(#vd-family:checked) label[for="vd-family"],
.window:has(#vd-studio:checked) label[for="vd-studio"] { background: var(--shade-soft); font-weight: 500; }
.window:has(#vd-list:checked) .view-list { display: block; }
.window:has(#vd-icons:checked) .view-icons { display: grid; }
.window:has(#vd-cols:checked) .view-cols { display: block; }
.window:has(#vd-list:checked) .views label[for="vd-list"],
.window:has(#vd-icons:checked) .views label[for="vd-icons"],
.window:has(#vd-cols:checked) .views label[for="vd-cols"] { background: var(--vd-color-canvas); color: var(--ink); box-shadow: 0 1px 2px var(--shade); }
@media (prefers-color-scheme: dark) {
  .window:has(#vd-list:checked) .views label[for="vd-list"],
  .window:has(#vd-icons:checked) .views label[for="vd-icons"],
  .window:has(#vd-cols:checked) .views label[for="vd-cols"] { background: var(--vd-color-surface-pressed); box-shadow: none; }
}
.main { display: flex; flex-direction: column; min-width: 0; }
.bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; box-shadow: 0 1px 0 var(--line); }
.bar strong { font-size: 14px; font-weight: 600; }
.bar .nav, .bar .views { display: flex; gap: 6px; }
.bar .nav i { width: 9px; height: 9px; box-shadow: inset 2px -2px 0 var(--vd-color-text-faint); transform: rotate(45deg); opacity: 0.7; }
.bar .nav i + i { transform: rotate(-135deg); opacity: 0.35; }
.bar .views { margin-left: auto; padding: 3px; border-radius: 8px; background: var(--shade-soft); }
.bar .views label { margin: 0; padding: 2px 9px; border-radius: 5px; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.bar .views label:hover { color: var(--ink); }
.search { width: 9rem; padding: 4px 10px; border-radius: 8px; background: var(--shade-soft); color: var(--vd-color-text-faint); }
.head, .row { display: grid; grid-template-columns: minmax(0, 2.4fr) 1.3fr 0.7fr 0.8fr; gap: 12px; padding: 7px 16px; margin: 0 8px; border-radius: 7px; }
.head { padding-top: 10px; color: var(--vd-color-text-faint); font-size: 11.5px; font-weight: 500; }
.row span + span { color: var(--muted); }
.row input + span { display: flex; align-items: center; gap: 9px; white-space: nowrap; overflow: hidden; }
.row:hover { background: var(--shade-soft); }
.row:has(:checked) { background: var(--vd-color-accent); }
.row:has(:checked) span, .row:has(:checked) span + span { color: var(--vd-color-label-on-accent); }
.status { display: flex; justify-content: space-between; margin-top: auto; padding: 10px 16px; box-shadow: 0 -1px 0 var(--line); color: var(--vd-color-text-faint); font-size: 12px; }
.status span { display: inline-flex; align-items: center; gap: 6px; }
.fold { flex: none; width: 17px; height: 13px; border-radius: 3px; background: linear-gradient(var(--vd-color-folder-front), var(--vd-color-folder-front)) 0 3px / 100% 10px no-repeat, linear-gradient(var(--vd-color-folder-back), var(--vd-color-folder-back)) 0 0 / 55% 5px no-repeat; }
.doc { flex: none; width: 13px; height: 16px; border-radius: 2.5px; background: var(--vd-color-canvas); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.row:has(:checked) .doc, .view-cols > input:checked + .crow .doc { box-shadow: none; }
.view-icons { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); align-content: start; gap: 6px; padding: 18px 16px; }
.cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px; text-align: center; }
.cell .pic { display: grid; place-items: center; width: 74px; height: 64px; border-radius: 8px; }
.cell .fold { width: 54px; height: 42px; border-radius: 6px; background-position: 0 8px, 0 0; background-size: 100% 34px, 50% 14px; }
.cell .doc { width: 38px; height: 48px; border-radius: 5px; }
.cell .label { max-width: 100%; padding: 1px 6px; border-radius: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.cell:hover .pic, .cell:has(:checked) .pic { background: var(--shade-soft); }
.cell:has(:checked) .label { background: var(--vd-color-accent); color: var(--vd-color-label-on-accent); }
.view-cols { position: relative; min-height: 19rem; padding-top: 8px; }
.crow { display: flex; align-items: center; gap: 9px; width: 34%; padding: 6px 10px; margin-left: 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; }
.crow span { overflow: hidden; text-overflow: ellipsis; }
.crow.dir::after { content: "\203A"; margin-left: auto; color: var(--vd-color-text-faint); }
.view-cols > .crow:hover { background: var(--shade-soft); }
.view-cols > input:checked + .crow { background: var(--vd-color-accent); color: var(--vd-color-label-on-accent); }
.view-cols > input:checked + .crow::after { color: inherit; }
.pane { display: none; position: absolute; inset: 0 0 0 calc(34% + 16px); box-shadow: -1px 0 0 var(--line); }
.view-cols > input:checked + .crow + .pane { display: grid; grid-template-columns: 1fr 1fr; }
.sub { display: flex; flex-direction: column; gap: 2px; padding: 8px; box-shadow: 1px 0 0 var(--line); }
.sub .crow { width: auto; margin: 0; }
.sub .crow:hover { background: var(--shade-soft); }
.preview { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.preview .doc { width: 64px; height: 82px; margin-bottom: 10px; border-radius: 7px; }
.preview small { color: var(--vd-color-text-faint); font-size: 12px; }
.dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--vd-color-text-faint); opacity: 0.6; }
.dot.ok { background: var(--vd-color-success); opacity: 1; }

.icon { display: block; width: var(--vd-space-2xl); height: var(--vd-space-2xl); color: var(--vd-color-accent-text); }
.icon svg { display: block; width: 100%; height: 100%; }
.tile {
  position: relative; display: grid; place-items: center; width: 4.25rem; height: 4.25rem; margin: 0 auto var(--vd-space-lg);
  border-radius: 18px; padding: 4px;
  background: none;
}
.tile::before { content: ""; position: absolute; inset: 0; border-radius: 12px; background: var(--vd-color-surface); }
.tile .icon { position: relative; width: 1.9rem; height: 1.9rem; }

.pillars { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--vd-space-2xl); margin: clamp(3.5rem, 6vw, 5rem) 0 0; padding: 0; list-style: none; }
.pillars::before { content: ""; position: absolute; top: 2.1rem; left: 16%; right: 16%; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.pillars li { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--vd-space-sm); }
.pillars .tile { margin-bottom: var(--vd-space-sm); }
.pillars p { max-width: 17rem; }

.feature { display: grid; grid-template-columns: 1fr 1.45fr; align-items: center; gap: clamp(2rem, 6vw, 5.5rem); margin-top: clamp(4.5rem, 9vw, 8rem); text-align: left; }
.feature.flip { grid-template-columns: 1.45fr 1fr; }
.feature.flip .copy { order: 2; }
.copy .icon { width: 2rem; height: 2rem; margin-bottom: var(--vd-space-md); }
.copy h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.015em; font-weight: 500; }
.copy p { margin-top: var(--vd-space-md); max-width: 24rem; font-size: 17px; }
.shot {
  position: relative; display: grid; place-items: center; min-height: 20rem; padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 12px; background: var(--wash);
  overflow: hidden; font-size: 13px; color: var(--ink);
}
.shot .card { display: flex; flex-direction: column; gap: 10px; width: min(20rem, 100%); padding: 22px; border-radius: 16px; background: var(--vd-color-canvas); box-shadow: 0 0 0 1px var(--line); }
.shot small { color: var(--vd-color-text-faint); font-size: 12px; }
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.15fr; width: 100%; min-height: 15rem; border-radius: 14px; overflow: hidden; text-align: left; background: var(--vd-color-canvas); box-shadow: 0 0 0 1px var(--line); }
.columns .col { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; box-shadow: 1px 0 0 var(--line); }
.columns span { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; }
.columns .col span.on { background: var(--shade-soft); }
.columns .col.focus span.on { background: var(--vd-color-accent); color: var(--vd-color-label-on-accent); }
.columns .preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; }
.columns .page { width: 56px; height: 72px; margin-bottom: 8px; border-radius: 6px; background: repeating-linear-gradient(var(--vd-color-canvas) 0 10px, var(--line) 10px 11px) 10px 14px / calc(100% - 20px) 46px no-repeat, var(--vd-color-canvas); box-shadow: 0 0 0 1px var(--line-strong); }
.code { font: 600 26px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.08em; color: var(--ink); }
.words { display: flex; flex-wrap: wrap; gap: 6px; }
.words i { padding: 4px 10px; border-radius: 999px; background: var(--vd-color-accent-soft); color: var(--vd-color-accent-text); font-style: normal; font-weight: 500; }
.opt { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line) inset; }
.opt.on { box-shadow: 0 0 0 1.5px var(--vd-color-accent-text) inset; font-weight: 500; }
.check { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, var(--vd-color-label-on-accent) 0 2.5px, var(--vd-color-accent) 3px); }
.devs { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; color: var(--muted); }
.devs span { display: flex; align-items: center; gap: 8px; }

.art { color: var(--vd-color-text-faint); }
.mesh { width: min(40rem, 100%); margin: clamp(3rem, 6vw, 4.5rem) auto 0; }
.mesh svg { display: block; width: 100%; height: auto; overflow: visible; }
.mesh .link { stroke: var(--line-strong); stroke-dasharray: 2 8; stroke-width: 2; }
.mesh .halo { display: none; }
.mesh .node { fill: var(--vd-color-canvas); stroke: var(--line-strong); }
.mesh path:not(.link) { stroke: var(--vd-color-accent-text); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--vd-space-2xl); margin: var(--vd-space-2xl) 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: var(--vd-space-md); border-radius: 50%; background: var(--vd-color-accent-soft); color: var(--vd-color-accent-text); font-size: 13px; font-weight: 600; }
.steps p { margin-top: var(--vd-space-sm); }

.content.wide { width: min(76rem, 100% - var(--vd-space-xl)); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--vd-space-md); margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0; list-style: none; text-align: left; }
.bento li { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--vd-space-lg); min-height: 17rem; padding: var(--vd-space-xl); border-radius: 12px; background: var(--wash); overflow: hidden; }
.bento li.big { grid-column: span 2; flex-direction: row; align-items: flex-end; }
.bento .text { max-width: 22rem; }
.bento .icon { width: 1.9rem; height: 1.9rem; margin-bottom: var(--vd-space-lg); }
.bento p { margin-top: var(--vd-space-sm); font-size: 16px; }
.term { display: flex; flex-direction: column; gap: 4px; flex: none; padding: 16px 18px; border-radius: 14px; background: var(--vd-color-canvas); box-shadow: 0 0 0 1px var(--line); font: 13px/1.6 ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); transform: translateY(12%) rotate(-2deg); }
.term span::before { content: "\25B8  "; color: var(--vd-color-accent-text); }
.stack { display: flex; flex-direction: column; gap: 8px; flex: none; width: 16rem; transform: translateY(14%); }
.stack span { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--vd-color-canvas); box-shadow: 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; }
.stack small { grid-column: 2; color: var(--vd-color-text-faint); font-size: 12px; font-weight: 400; }

.kitwords { display: flex; flex-wrap: wrap; gap: 6px; }
.kitwords i { padding: 5px 11px; border-radius: 8px; background: var(--vd-color-canvas); box-shadow: 0 0 0 1px var(--line); font: 500 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; font-style: normal; color: var(--ink); }
.people { display: flex; flex-direction: column; gap: 8px; }
.people span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--vd-color-canvas); box-shadow: 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; }
.people em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 500; color: var(--vd-color-success); }
.people .off { color: var(--vd-color-text-faint); }
.people .off em { color: var(--vd-color-text-faint); }
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: var(--vd-space-md); max-width: 46rem; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; text-align: left; }
.ledger > div { padding: var(--vd-space-xl); border-radius: 12px; background: var(--wash); }
.ledger h3 { font-size: 15px; margin-bottom: var(--vd-space-md); }
.ledger ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.ledger li { display: flex; align-items: center; gap: 10px; }
.ledger li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, var(--vd-color-label-on-accent) 0 2.5px, var(--vd-color-accent) 3px); }
.ledger .side-b li::before { background: radial-gradient(circle, var(--vd-color-canvas) 0 2.5px, var(--vd-color-text-faint) 3px); }
.faq .content { max-width: 44rem; }
.faq h2 { margin-bottom: var(--vd-space-xl); }
details { text-align: left; border-radius: 12px; background: var(--wash); }
details + details { margin-top: var(--vd-space-sm); }
summary { display: flex; justify-content: space-between; align-items: center; gap: var(--vd-space-md); padding: 20px 22px; cursor: pointer; list-style: none; color: var(--ink); font-size: 17px; font-weight: 550; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--shade-soft); color: var(--muted); font-weight: 400; transition: transform var(--vd-motion-standard); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 22px 22px; }

.panel { position: relative; max-width: 34rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 12px; text-align: left; background: var(--wash); }
.panel h2 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 2.6rem); text-align: center; max-width: none; }
.panel > p { margin: var(--vd-space-md) auto var(--vd-space-xl); text-align: center; }
label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
input, textarea {
  display: block; width: 100%; margin-bottom: var(--vd-space-md); padding: 12px 14px;
  border: 1px solid var(--vd-color-border); border-radius: 10px; corner-shape: squircle;
  background: var(--vd-color-canvas); color: var(--ink); font: inherit; font-size: 15px;
}
input::placeholder, textarea::placeholder { color: var(--vd-color-placeholder); }
textarea { resize: vertical; }
.panel button { width: 100%; margin-top: var(--vd-space-sm); }
.panel .note { margin: var(--vd-space-md) 0 0; text-align: center; }

footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--vd-space-md) var(--vd-space-xl); width: var(--page); margin: 0 auto; padding: var(--vd-space-2xl) 0; box-shadow: 0 -1px 0 var(--line); color: var(--muted); font-size: 14px; }
footer ul { display: flex; gap: var(--vd-space-lg); margin: 0; padding: 0; list-style: none; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
footer p { flex-basis: 100%; font-size: 13px; color: var(--vd-color-text-faint); }

@keyframes vd-rise { from { opacity: 0; transform: translateY(var(--vd-space-md)); } to { opacity: 1; transform: none; } }

/* The live app rides the scroll (D-217): it starts tilted back like a screen on a desk,
   straightens and comes to full strength as it scrolls into view, holds while it is read, and
   fades and settles back as it leaves the top. Scroll-linked, so it has no duration; browsers
   without view timelines show it still, and reduced motion turns it off with the rest. */
@keyframes vd-reveal {
  0% { opacity: 0.55; transform: perspective(1600px) rotateX(18deg) scale(0.92); }
  38%, 70% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(calc(-1 * var(--vd-space-2xl))) scale(0.95); }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .live { transform-origin: 50% 0; animation-name: vd-reveal; animation-timing-function: linear; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
section:first-of-type .content { animation: vd-rise var(--vd-motion-calm) ease-out; }
.button, button { transition: background-color var(--vd-motion-quick); }

@media (max-width: 860px) {
  .live { display: none; }
  .poster { display: block; }
  .stage { padding-bottom: 6rem; -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 99%); mask-image: linear-gradient(to bottom, black 80%, transparent 99%); }
  .window { grid-template-columns: 1fr; transform: rotateX(8deg); }
  .side { display: none; }
  .head, .row { grid-template-columns: minmax(0, 1fr) auto; }
  .head span + span, .row span + span { display: none; }
  .search { display: none; }
  .pillars, .steps { grid-template-columns: 1fr; gap: var(--vd-space-xl); }
  .pillars::before { display: none; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
  .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .columns .col.focus, .columns .preview { display: none; }
  .bento, .ledger { grid-template-columns: 1fr; }
  .bento li.big { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .stack { width: 100%; }
  nav a:not(:last-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none; transition: none; } html { scroll-behavior: auto; } }

/* Squircle corners where the browser draws them; a plain rounded corner elsewhere. A squircle
   corner needs a larger radius to look as round, so it uses the squircle sizes from :root. */
@supports (corner-shape: squircle) {
  .button, button, input, textarea { border-radius: var(--squircle-button); }
  nav a { border-radius: var(--squircle-link); }
}

/* x.ai-informed hero (D-219): an announcement pill and a light, tight headline. */
.announce { display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--vd-space-xl); padding: 6px 14px 6px 6px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-size: 14px; font-weight: 500; }
.announce:hover { box-shadow: 0 0 0 1px var(--line-strong); }
.announce .new { padding: 3px 9px; border-radius: 999px; background: var(--ember-pale); color: var(--ember); font-size: 13px; }
.announce .sep { color: var(--vd-color-text-faint); }
.announce { white-space: nowrap; }
.hero h1 { max-width: 20ch; font-weight: 400; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -0.03em; }
.hero h1 .rot { position: relative; display: inline-block; white-space: nowrap; text-align: left; }
.hero h1 .rot b { font-weight: inherit; }
.hero h1 .rot .ch { display: inline-block; }
.hero h1 .rot .probe { position: absolute; left: 0; top: 0; color: transparent; pointer-events: none; }

/* Product cards: a live demo above, the name and Explore below. */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--vd-space-md); margin-top: clamp(2.5rem, 5vw, 3.5rem); text-align: left; }
.card-x { position: relative; display: flex; flex-direction: column; min-height: 26rem; padding: var(--vd-space-lg); border-radius: 20px; background: var(--wash); color: var(--ink); overflow: hidden; }
.card-x .demo { flex: 1; display: flex; flex-direction: column; }
.card-x .cap { padding-top: var(--vd-space-lg); }
.card-x .cap h3 { font-size: 19px; }
.card-x .cap p { margin-top: 6px; font-size: 15px; line-height: 1.5; }
.card-x:hover .cap h3 { text-decoration: underline; text-underline-offset: 3px; }
/* The three demos: what you see against what Voidrive stores, files online or here, the kit. */
.card-x .label { color: var(--vd-color-text-faint); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; }
.card-x .thumb { flex: none; width: 34px; height: 34px; border-radius: 7px; background: linear-gradient(140deg, var(--ember-pale), var(--ember-light) 70%, var(--ember)); }
.sealed { gap: 10px; justify-content: center; }
.sealed .file { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--vd-color-canvas); box-shadow: 0 0 0 1px var(--line); }
.sealed .file b { flex: 1; font-weight: 500; font-size: 15px; }
.sealed .file small { color: var(--vd-color-text-faint); font-size: 13px; }
.sealed .lock { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px 14px; color: var(--ember); font-size: 13px; font-weight: 500; }
.sealed .lock i { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }
.sealed .bytes { padding: 12px 14px; border-radius: 12px; background: var(--vd-color-canvas); box-shadow: 0 0 0 1px var(--line); color: var(--vd-color-text-faint); font: 12.5px/1.7 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.02em; }
.online { gap: 2px; justify-content: center; padding: 10px; border-radius: 14px; background: var(--vd-color-canvas); box-shadow: 0 0 0 1px var(--line); }
.online .row { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 8px; font-size: 14px; }
.online .row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.online .row .thumb { width: 18px; height: 18px; border-radius: 4px; }
.online em { font-style: normal; font-size: 12px; color: var(--vd-color-text-faint); }
.online em.here { color: var(--ink); }
.online em.here::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--ember); vertical-align: 1px; }
.online .hint { margin: 8px 8px 2px; color: var(--vd-color-text-faint); font-size: 12px; }
.kit { gap: 12px; justify-content: center; padding: 18px; border-radius: 14px; background: var(--vd-color-canvas); box-shadow: 0 0 0 1px var(--line); }
.kit .groups { display: flex; gap: 8px; font: 600 18px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; color: var(--ink); }
.kit .groups b { font-weight: 600; }
.kit .words { display: flex; flex-wrap: wrap; gap: 6px; }
.kit .words i { padding: 3px 9px; border-radius: 7px; background: var(--wash); font-style: normal; font-size: 13px; color: var(--muted); }
.kit .note-line { display: flex; align-items: center; gap: 8px; color: var(--ember); font-size: 13px; font-weight: 500; }
.kit .note-line i { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }

/* Your server: copy and small numbers beside a terminal in a grainy ember frame. */
.dev { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); text-align: left; }
.dev h2 { margin: 0; max-width: none; font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.04; }
.dev-copy p { margin-top: var(--vd-space-lg); max-width: 28rem; color: var(--ink); font-size: 18px; }
.eyebrow { display: block; margin-bottom: var(--vd-space-md); color: var(--muted); font-size: 15px; }
.mini { display: flex; gap: var(--vd-space-xl); margin: var(--vd-space-xl) 0 0; }
.mini dt { color: var(--ink); font-size: 17px; }
.mini dd { margin: 0; color: var(--vd-color-text-faint); font-size: 14px; }
.ember { position: relative; padding: clamp(2rem, 4vw, 3.25rem);
  background:
    radial-gradient(color-mix(in oklab, var(--vd-color-canvas) 18%, transparent) 0.5px, transparent 0.8px) 0 0 / 2px 2px,
    radial-gradient(color-mix(in oklab, var(--ember-deep) 22%, transparent) 0.5px, transparent 0.8px) 1px 1px / 3px 3px,
    radial-gradient(70% 60% at 6% 4%, var(--ember-pale) 0 22%, transparent 62%),
    linear-gradient(140deg, var(--ember-pale) 0%, var(--ember) 42%, var(--ember-deep) 62%, var(--ember-light) 100%); }
.ember .px { position: absolute; width: 14px; height: 14px; background: var(--vd-color-canvas); }
.ember .a { top: 0; left: 0; } .ember .b { top: 0; right: 0; } .ember .c { bottom: 0; left: 0; } .ember .d { bottom: 0; right: 0; }
.codebox { border-radius: 14px; background: var(--vd-color-canvas); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -24px var(--shade); overflow: hidden; }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; box-shadow: 0 1px 0 var(--line); color: var(--vd-color-text-faint); font-size: 13px; }
.code-bar .dots { display: flex; gap: 7px; }
.code-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.codebox pre { margin: 0; letter-spacing: 0; padding: 18px 20px 22px; overflow: hidden; font: 14px/1.75 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); white-space: pre; }
.codebox pre b { color: var(--ember); font-weight: 400; }
.codebox pre em { font-style: normal; color: var(--vd-color-text-faint); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(3.5rem, 7vw, 5.5rem); padding: clamp(2rem, 4vw, 3rem) 0; box-shadow: 0 -1px 0 var(--line), 0 1px 0 var(--line); text-align: left; }
.stats > div { padding: 0 clamp(1rem, 3vw, 2.5rem); box-shadow: -1px 0 0 var(--line); }
.stats > div:first-child { padding-left: 0; box-shadow: none; }
.stats b { display: block; color: var(--ink); font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.stats span { display: block; margin-top: var(--vd-space-md); color: var(--muted); font-size: 16px; }

@media (max-width: 860px) {
  .cards, .dev, .stats { grid-template-columns: 1fr; }
  .announce .tail { display: none; }
  .stats > div { padding: var(--vd-space-lg) 0; box-shadow: 0 -1px 0 var(--line); }
  .stats > div:first-child { box-shadow: none; }
}

/* Motion (D-219): only without reduced motion. Each card's demo rows arrive as it scrolls in.
   The headline's phrases are headline.js's (D-220). */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sealed > span, .online .row, .kit > span { animation-name: vd-rise; animation-timing-function: ease-out; animation-fill-mode: both; animation-timeline: view(); animation-range: entry 20% entry 70%; }
    .sealed > span + span, .online .row + .row, .kit > span + span { animation-range: entry 30% entry 80%; }
    .sealed > span + span + span, .online .row + .row + .row, .kit > span + span + span { animation-range: entry 40% entry 90%; }
    .sealed > span + span + span + span, .online .row + .row + .row + .row, .kit > span + span + span + span { animation-range: entry 50% entry 100%; }
    .sealed > span + span + span + span + span, .online .row + .row + .row + .row + .row { animation-range: entry 60% cover 30%; }
  }
}

/* Languages: the switcher in the header (a list of every language's page, by its own name) and
   language.js's offer, on the English page, to read it in the browser's language. */
nav { margin-left: auto; }
.lang { position: relative; border-radius: 8px; background: none; }
.lang summary { gap: 6px; padding: 6px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.lang summary::after { content: "\25BE"; width: auto; height: auto; background: none; color: inherit; font-size: 11px; }
.lang[open] summary::after { transform: rotate(180deg); }
.lang summary:hover, .lang[open] summary { color: var(--ink); background: var(--shade-soft); }
.lang .lang-code { display: none; text-transform: uppercase; }
.lang ul { position: absolute; right: 0; top: calc(100% + var(--vd-space-xs)); display: grid; grid-template-columns: repeat(2, max-content); gap: 2px var(--vd-space-xs); max-height: min(70vh, 32rem); margin: 0; padding: var(--vd-space-sm); overflow-y: auto; list-style: none; border-radius: 12px; background: var(--vd-color-surface-raised); box-shadow: var(--lift); }
.lang li a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.lang li a:hover { color: var(--ink); background: var(--shade-soft); }
.lang li a[aria-current] { color: var(--ink); font-weight: 600; }
.lang-hint { position: fixed; z-index: 20; left: 50%; bottom: var(--vd-space-md); display: flex; align-items: center; gap: var(--vd-space-xs); max-width: calc(100% - var(--vd-space-xl)); margin: 0; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--vd-color-surface-raised); box-shadow: var(--lift); font-size: 14px; transform: translateX(-50%); }
.lang-hint a { color: var(--ink); font-weight: 500; }
.lang-hint button { flex: none; min-width: 0; width: 28px; height: 28px; padding: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 18px; line-height: 1; }
.lang-hint button:hover { background: var(--shade-soft); color: var(--ink); }
@media (max-width: 560px) {
  .lang ul { grid-template-columns: max-content; }
  .lang .lang-name { display: none; }
  .lang .lang-code { display: inline; }
  .announce { white-space: normal; }
}

/* Accounts, values and pricing (D-241): Log in in the header, a Create account call after the
   product cards and at the end, the three values, and the one plan beside how the account works. */
nav .login { color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong) inset; }
nav .login:hover { box-shadow: 0 0 0 1px var(--line-strong) inset; }
#storage .actions { margin-top: var(--vd-space-2xl); }
#privacy h3, #privacy p, #pricing h3, #pricing p, #pricing li, #join h2, #join p { overflow-wrap: break-word; hyphens: auto; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--vd-space-md); margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none; text-align: left; }
.values li { min-width: 0; padding: var(--vd-space-xl); border-radius: 12px; background: var(--wash); }
.values .icon { display: block; width: 1.9rem; height: 1.9rem; margin-bottom: var(--vd-space-lg); }
.values p { margin-top: var(--vd-space-sm); font-size: 16px; }
.plan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--vd-space-md); max-width: 52rem; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; text-align: left; }
.plan > div { min-width: 0; padding: var(--vd-space-xl); border-radius: 20px; background: var(--wash); }
.plan-main { display: flex; flex-direction: column; align-items: flex-start; }
.plan .price { margin-top: var(--vd-space-md); color: var(--ink); font-size: 18px; }
.plan .price b { margin-right: var(--vd-space-xs); font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.plan .year { margin-top: var(--vd-space-xs); font-size: 15px; }
.includes { display: flex; flex-direction: column; gap: 10px; margin: var(--vd-space-lg) 0; padding: 0; list-style: none; color: var(--ink); font-size: 15px; }
.includes li { display: flex; align-items: center; gap: 10px; }
.includes li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, var(--vd-color-label-on-accent) 0 2.5px, var(--vd-color-accent) 3px); }
.plan .button { align-self: stretch; min-width: 0; }
.pay { display: flex; flex-wrap: wrap; align-items: center; gap: var(--vd-space-sm); margin-top: var(--vd-space-lg); font-size: 13px; }
.chip { padding: 3px 9px; border-radius: 7px; background: var(--vd-color-canvas); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-size: 13px; white-space: nowrap; }
.plan-account h3 { margin-bottom: var(--vd-space-lg); }
.how { display: flex; flex-direction: column; gap: var(--vd-space-lg); margin: 0; padding: 0; list-style: none; counter-reset: how; color: var(--muted); font-size: 15px; }
.how li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 12px; counter-increment: how; }
.how li::before { content: counter(how); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--vd-color-accent-soft); color: var(--vd-color-accent-text); font-size: 13px; font-weight: 600; }
#pricing .note { max-width: 46rem; }
@media (max-width: 860px) {
  .values, .plan { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .values li, .plan > div { padding: var(--vd-space-lg); }
}
