/*
 * ShivaVault (Shiva by Blackfish): the one copy of the brand, shared by the console (Shiva.Portal) and the public site
 * (Shiva.Site). "Blackfish Enterprise Dark": surface tiers instead of shadows, Geist for headings, labels and telemetry,
 * Inter for body text, electric blue for actions and cyan for status, Industry Ultra for the logotype only.
 * Only this file declares the design's tokens (:root) and fonts (@font-face); tests/Shiva.Architecture.Tests checks it.
 * No inline styles in the pages (the Content-Security-Policy of both hosts allows only their own files).
 */

@font-face { font-family: 'Geist'; src: url('../fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
/* Industry Ultra (Fort Foundry; web licence confirmed by the user on 2026-11-12), for the ShivaVault logotype only. */
@font-face { font-family: 'Industry'; src: url('../fonts/Industry-Ultra.woff') format('woff'); font-weight: 900; font-display: swap; }

:root {
    color-scheme: dark;
    /* Surfaces, lowest to highest */
    --c-lowest: #080e1b;
    --c-base: #0b111e;
    --c-bg: #0d1320;
    --c-raised: #111827;
    --c-container: #1a1f2d;
    --c-card: #1e293b;
    --c-high: #242a38;
    --c-highlight: #334155;
    /* Lines */
    --c-border: #1e293b;
    --c-border-strong: #334155;
    /* Text */
    --c-text: #f8fafc;
    --c-on-surface: #dde2f5;
    --c-text-2: #94a3b8;
    /* The design's text-muted is #64748b (3.1 to 4.0:1 on these surfaces); lightened to pass WCAG AA (4.5:1) everywhere. */
    --c-text-3: #8593a8;
    --c-variant: #c3c6d7;
    /* Accents */
    --c-blue: #2563eb;
    --c-blue-hover: #1d4ed8;
    --c-ocean: #0284c7;
    --c-cyan: #38bdf8;
    --c-sky: #93ccff;
    --c-green: #10b981;
    --c-red: #ef4444;
    --c-red-soft: #ffb4ab;
    --c-teal: #2dd4bf;
    --r-sm: 2px;   /* the design's "rounded" */
    --r-lg: 4px;   /* "rounded-lg": inputs, tiles, profile cards */
    --r-xl: 8px;   /* "rounded-xl": panels, drop zone */
    --f-head: 'Geist', 'Inter', system-ui, sans-serif;
    --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --sidebar: 288px;
    --topbar: 64px;
    --glow: inset 0 0 12px rgba(56, 189, 248, 0.08);
    --c-amber: #fbbf24;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--c-bg);
    color: var(--c-on-surface);
    font: 400 15px/24px var(--f-body);
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
}
a { color: var(--c-cyan); text-decoration: none; }
code { font-family: var(--f-mono); font-size: 0.85em; color: var(--c-cyan); }
h1, h2, h3, p { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; }

/* ---- Type --------------------------------------------------------------------------------------------------------- */

h1 { font: 600 40px/48px var(--f-head); letter-spacing: -0.02em; color: var(--c-text); }
.vv-corporate { font: 700 14px/20px var(--f-head); letter-spacing: 0.05em; text-transform: uppercase; color: var(--c-text); display: block; }
/* Tailwind's tracking-wider (0.05em) wins over title-corporate's 0.12em on the uppercase titles; the others keep 0.12em. */
.vv-corporate.vv-normal { text-transform: none; letter-spacing: 0.12em; }
.vv-code { font: 500 11px/14px var(--f-head); letter-spacing: 0.08em; }
.vv-label { font: 600 11px/14px var(--f-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-2); }
.vv-small { font: 400 13px/20px var(--f-body); }
.vv-lead { font: 400 15px/24px var(--f-body); color: var(--c-text-2); margin-top: 0.5rem; max-width: 60rem; }
.vv-mono { font-family: var(--f-mono); }
.vv-upper { text-transform: uppercase; }
.vv-muted { color: var(--c-text-3); }
.vv-secondary { color: var(--c-text-2); }
.vv-strong { color: var(--c-text); font-weight: 700; }
.vv-text-cyan { color: var(--c-cyan); }
.vv-text-secondary { color: var(--c-sky); }
.vv-text-green { color: var(--c-green); }
.vv-code.vv-muted, .vv-code.vv-secondary { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---- Icons, dots, chips ------------------------------------------------------------------------------------------- */

.vv-icon { width: 18px; height: 18px; flex: none; }
.vv-icon-sm { width: 15px; height: 15px; }
.vv-icon-lg { width: 24px; height: 24px; }

.vv-pulse, .vv-dot-green {
    display: inline-block; width: 6px; height: 6px; border-radius: 9999px; background: var(--c-green); flex: none;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); animation: vv-pulse 2s infinite;
}
.vv-dot-green { width: 8px; height: 8px; }
@keyframes vv-pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); } 70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
@media (prefers-reduced-motion: reduce) { .vv-pulse, .vv-dot-green { animation: none; } }

.vv-chip {
    display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap;
    font: 500 11px/14px var(--f-head); letter-spacing: 0.05em; text-transform: uppercase;
    padding: 0.25rem 0.625rem; border-radius: var(--r-sm); background: var(--c-card); color: var(--c-text-2);
}
.vv-chip-cyan { color: var(--c-cyan); letter-spacing: 0.1em; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.vv-chip-green { color: var(--c-green); }
.vv-chip-teal { color: var(--c-teal); background: rgba(45, 212, 191, 0.08); box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.25); }
.vv-chip-dark { background: var(--c-base); text-transform: none; letter-spacing: 0.02em; }

.vv-page { max-width: 1440px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.vv-page-head { display: flex; flex-direction: column; gap: 1rem; }
.vv-meta-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.vv-meta-left { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.vv-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; padding-bottom: 0.5rem; }
.vv-trust { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 1rem; border-radius: var(--r-lg); background: var(--c-card); flex: none; }
.vv-trust-icon { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--c-high); color: var(--c-cyan); display: grid; place-items: center; }
.vv-trust .vv-code { display: block; margin-top: 0.15rem; }

.vv-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 2rem; align-items: start; }
.vv-col-main, .vv-col-side, .vv-stack { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }

.vv-panel {
    background: var(--c-raised); border-radius: var(--r-xl); padding: 2rem;
    display: flex; flex-direction: column; gap: 1.5rem; min-width: 0;
}
.vv-panel-tight { padding: 1.5rem; gap: 1.1rem; }
.vv-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.vv-step-head { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.vv-step-head h2 { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.vv-step-head p { margin-top: 0.1rem; }
.vv-step-no {
    width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--c-blue); color: #eeefff; flex: none;
    display: grid; place-items: center; font: 700 18px/1 var(--f-head);
}
.vv-step-icon { width: 28px; height: 28px; border-radius: var(--r-sm); background: rgba(37, 99, 235, 0.15); color: var(--c-cyan); display: grid; place-items: center; flex: none; }
.vv-side-title { display: flex; align-items: center; gap: 0.6rem; }
.vv-side-title .vv-icon { width: 20px; height: 20px; }

/* ---- Buttons ------------------------------------------------------------------------------------------------------ */

.vv-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border: 0; cursor: pointer;
    font: 600 12px/16px var(--f-head); letter-spacing: 0.06em; padding: 0.625rem 1rem; border-radius: var(--r-sm);
    color: var(--c-text); transition: background 0.15s, transform 0.1s; text-decoration: none; white-space: nowrap;
}
.vv-btn:active { transform: scale(0.99); }
.vv-btn-raised { background: var(--c-high); }
.vv-btn-raised:hover { background: var(--c-highlight); }
.vv-btn-primary { background: var(--c-blue); color: #fff; }
.vv-btn-primary:hover { background: var(--c-blue-hover); }
.vv-btn-hero {
    background: var(--c-blue); color: #fff; padding: 0.875rem 2rem;
    font: 700 14px/20px var(--f-head); letter-spacing: 0.05em; text-transform: uppercase;
    box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.8);
}
.vv-btn-hero:hover { background: var(--c-blue-hover); }
.vv-btn-hero .vv-icon { width: 20px; height: 20px; }
.vv-btn-block { width: 100%; }
.vv-btn-kill { background: #dc2626; color: #fff; font-weight: 700; }
.vv-btn-kill:hover { background: #b91c1c; }
.vv-btn:disabled, fieldset:disabled .vv-btn { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.vv-action-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem; border-radius: var(--r-xl); background: var(--c-raised); }
.vv-action-left { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; }
.vv-actions { display: flex; flex-wrap: nowrap; gap: 0.5rem; margin-left: auto; }
.vv-actions form { margin: 0; }

/* relative: an absolutely placed child (.vv-sr-only) scrolls with the table instead of widening the page. */
.vv-table-wrap { overflow-x: auto; position: relative; }
.vv-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 20px; }
.vv-table th { text-align: left; font: 500 11px/14px var(--f-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-3); padding: 0 1rem 0.6rem 0; border-bottom: 1px solid var(--c-border-strong); }
.vv-table td { padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--c-border); vertical-align: top; color: var(--c-on-surface); white-space: nowrap; }
.vv-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

/* ---- Protection layers, the leak trace and the limits (the site's Security page, the console's lists) ------------- */

.vv-layer-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 0.875rem; }
.vv-layer { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem; border-radius: var(--r-lg); background: var(--c-base); }
.vv-layer p { margin: 0; }
.vv-layer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; }
.vv-layer-head h3 { margin: 0; flex: 1 1 auto; font-size: 15px; line-height: 20px; }
.vv-layer-icon { display: inline-flex; color: var(--c-cyan); }
.vv-layer-icon .vv-icon { width: 20px; height: 20px; }
.vv-trace { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.875rem; }
.vv-trace li { display: flex; align-items: flex-start; gap: 0.875rem; padding: 0.875rem 1rem; border-radius: var(--r-lg); background: var(--c-base); }
.vv-trace p { margin: 0.25rem 0 0; }
.vv-limits { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.625rem; font-size: 13px; line-height: 20px; color: var(--c-text-2); }

.vv-btn-ghost { background: var(--c-base); color: var(--c-text); width: 100%; padding: 0.75rem 1rem; }
.vv-btn-ghost:hover { background: var(--c-card); color: var(--c-cyan); }

/* Links inside running text are underlined, not told apart by color alone (WCAG 1.4.1). */
.vv-lead a, .vv-small a, .vv-banner a { text-decoration: underline; text-underline-offset: 2px; }
.vv-chip-red { color: var(--c-red-soft); background: rgba(239, 68, 68, 0.1); box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.35); }

/* ---- Fixes from the visual review ----------------------------------------------------------------------------------- */

/* 5. A chip that carries a status value keeps its colour and font (declared after .vv-chip). */
.vv-chip.vv-text-cyan { color: var(--c-cyan); }
.vv-chip.vv-text-green { color: var(--c-green); }
.vv-chip.vv-mono { font-family: var(--f-mono); text-transform: none; letter-spacing: 0.02em; }


.vv-logotype { font-family: 'Industry', var(--f-head); font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }

.vv-mark { width: 22px; height: 22px; flex: none; }

.vv-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.vv-btn-small { padding: 0.4rem 0.7rem; font-size: 11px; gap: 0.35rem; }
.vv-btn-small .vv-icon { width: 14px; height: 14px; }

/* A link inside a line of text is underlined: colour alone does not set it apart (WCAG 1.4.1). */
.vv-inline-link { text-decoration: underline; text-underline-offset: 2px; }

/* ---- Pricing: the two offerings side by side, their plans, and the comparison table ------------------------------ */
.vv-offer-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); gap: 0.875rem; }
.vv-offer { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem; border-radius: var(--r-lg); background: var(--c-base); }
.vv-offer p { margin: 0; }
.vv-plan-list, .vv-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.vv-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; padding: 0.75rem 0.875rem; border-radius: var(--r-md, var(--r-lg)); background: var(--c-card); }
.vv-plan-name { font-size: 14px; line-height: 20px; }
.vv-plan-price { text-align: right; font-size: 13px; line-height: 20px; }
.vv-plan-price strong { font: 600 17px/20px var(--f-head); color: var(--c-cyan); }
.vv-plan .vv-small { grid-column: 1 / -1; }
.vv-check-list li { display: flex; align-items: flex-start; gap: 0.5rem; }
.vv-check-list .vv-icon { flex: 0 0 auto; margin-top: 0.2rem; }
.vv-compare { min-width: 60rem; table-layout: fixed; }
.vv-compare th, .vv-compare td { white-space: normal; overflow-wrap: break-word; }
.vv-compare th:first-child { width: 11rem; }
.vv-compare th[scope=row] { text-align: left; font: 500 13px/18px var(--f-body); letter-spacing: normal; text-transform: none; color: var(--c-text); padding: 0.6rem 1rem 0.6rem 0; border-bottom: 0; vertical-align: top; }
.vv-compare td { vertical-align: top; padding: 0.6rem 1rem 0.6rem 0; }
.vv-compare .vv-compare-own { background: rgba(56, 189, 248, 0.06); padding-left: 0.6rem; }
.vv-compare thead .vv-compare-own { color: var(--c-cyan); }
.vv-compare-notes { margin: 0.75rem 0 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.25rem; }
/* ---- Notes and key/value rows (the console's panels, the site's notices and lists) -------------------------------- */

.vv-note { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem; border-radius: var(--r-lg); background: var(--c-base); }
.vv-note > .vv-icon { width: 20px; height: 20px; margin-top: 0.15rem; }
.vv-note p { margin-top: 0.15rem; }
.vv-note-compact { padding: 0.85rem 1rem; }
.vv-note-compact p { margin: 0; }

.vv-rows { display: flex; flex-direction: column; gap: 0.75rem; margin: 0; }
.vv-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.625rem; border-radius: var(--r-sm); background: var(--c-base); font: 500 11px/14px var(--f-head); letter-spacing: 0.08em; }
.vv-rows dt { color: var(--c-text-3); text-transform: uppercase; }
/* Zero specificity: a status class on the value (.vv-text-green, .vv-text-cyan, .vv-muted) always wins. */
:where(.vv-rows) :where(dd) { margin: 0; color: var(--c-text); text-align: right; }
.vv-rows-plain > div { background: none; padding: 0; font: 400 14px/20px var(--f-body); letter-spacing: 0; }
.vv-rows-plain dt { color: var(--c-text-2); font-size: 13px; text-transform: none; }
.vv-rows-plain dd.vv-code { font: 600 11px/14px var(--f-head); letter-spacing: 0.08em; }
.vv-rows-strong dd:not(.vv-code) { font: 700 14px/20px var(--f-head); letter-spacing: 0.12em; }

/* ---- Narrow screens ------------------------------------------------------------------------------------------------ */

/* The 8/4 split leaves the side column too narrow for its values below this width (beside the console's 288px sidebar,
   and on the site's narrower pages alike): one column. */
@media (max-width: 1360px) {
    .vv-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1023px) {
    .vv-title-row { flex-direction: column; align-items: flex-start; }
    /* The meta bar's separator only where the bar stays on one line. */
    .vv-meta-bar .vv-meta-sep { display: none; }
}

@media (max-width: 767px) {
    h1 { font-size: 28px; line-height: 36px; }
    .vv-panel { padding: 1.25rem; }
    /* A plan's price under its name. */
    .vv-plan { grid-template-columns: minmax(0, 1fr); }
    .vv-plan-price { text-align: left; }
    .vv-offer { padding: 1rem; }
}
