/* Vaultio site. No external fonts, scripts or trackers: system fonts and this file only. */

:root {
  color-scheme: light dark;
  --bg: #f5f8f8;
  --surface: #ffffff;
  --surface-2: #eaf1f1;
  --text: #13242b;
  --muted: #4a5e65;
  --border: #d6e1e2;
  --brand: #1a6670;
  --brand-strong: #0e4a53;
  --on-brand: #ffffff;
  --accent: #9a5410;
  --note-bg: #fff6e6;
  --note-border: #f0c77d;
  --focus: #c46d12;
  --radius: 14px;
  --measure: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1317;
    --surface: #111f26;
    --surface-2: #162a33;
    --text: #e6eff0;
    --muted: #a9bcc1;
    --border: #243b45;
    --brand: #7fd3ca;
    --brand-strong: #a6e4dc;
    --on-brand: #06262b;
    --accent: #f2b452;
    --note-bg: #2a2212;
    --note-border: #7a5a1e;
    --focus: #f2b452;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-strong); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--focus);
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .inner,
.site-footer .inner,
main {
  max-width: calc(var(--measure) + 2rem);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom: 2px solid var(--brand);
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .inner { padding-top: 1.5rem; padding-bottom: 2.5rem; }
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.site-footer p { margin: 0.25rem 0; }

/* Content */

main { padding-top: 2rem; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.6rem); margin: 0 0 0.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.12rem; margin: 1.75rem 0 0.4rem; }

p, ul, ol, table { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }

.lede { font-size: 1.2rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.95rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 0 0 1rem;
}
.card > :last-child { margin-bottom: 0; }

.note {
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.note > :last-child { margin-bottom: 0; }

.summary {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0 2rem;
}
.summary ul { margin: 0; padding-left: 1.2rem; }

/* Home page */

.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 1rem 0 2.5rem;
}
.hero img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(10, 42, 56, 0.25);
}
.hero h1 { margin-bottom: 0.4rem; }
.hero .lede { margin-bottom: 1.1rem; }

.button {
  display: inline-block;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
}
.button:hover { background: var(--brand-strong); color: var(--on-brand); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.grid .card h3 { margin-top: 0; }

.price-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 0.75rem;
}
.price-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 0;
}
.price-list strong { display: block; font-size: 1.3rem; }

/* Tables */

.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.98rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--border);
}
thead th { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }

/* FAQ */

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 0 0.75rem;
  padding: 0 1.1rem;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.9rem 0;
  list-style-position: inside;
}
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 0.75rem; }
details > :last-child { margin-bottom: 1rem; }

kbd {
  font-family: inherit;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .hero { grid-template-columns: 1fr; text-align: left; gap: 1rem; }
  .hero img { width: 96px; height: 96px; border-radius: 22px; }
}

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

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