/* Verenity brand styles, shared by every Verenity site. System fonts, no external resources.
   Source of truth: shared/brand.css. Do not edit the copies in <site>/assets/. Light and dark. */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #edf1f8;
  --text: #111a2b;
  --muted: #4b5a70;
  --border: #d8dfeb;
  --accent: #1f5fd1;
  --accent-hover: #1a50b0;
  --accent-ink: #ffffff;
  --accent-soft: #e5edfc;
  --hero-glow: rgba(31, 95, 209, 0.14);
  --ok-bg: #dff3e8;
  --ok-text: #0b5a37;
  --mid-bg: #fdf0cf;
  --mid-text: #6b4800;
  --soon-bg: #ece8fb;
  --soon-text: #43328f;
  --shadow: 0 1px 2px rgba(17, 26, 43, 0.06), 0 12px 32px rgba(17, 26, 43, 0.1);
  --radius: 14px;
  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c111a;
    --surface: #151c28;
    --surface-2: #1b2433;
    --text: #e8edf6;
    --muted: #a0afc4;
    --border: #2a3547;
    --accent: #7aa5f5;
    --accent-hover: #9bbbf8;
    --accent-ink: #0b1220;
    --accent-soft: #1d2e4d;
    --hero-glow: rgba(122, 165, 245, 0.16);
    --ok-bg: #123524;
    --ok-text: #8fe0b4;
    --mid-bg: #3a2f10;
    --mid-text: #f3d98a;
    --soon-bg: #2a2450;
    --soon-text: #c9bff7;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  --bg: #0c111a;
  --surface: #151c28;
  --surface-2: #1b2433;
  --text: #e8edf6;
  --muted: #a0afc4;
  --border: #2a3547;
  --accent: #7aa5f5;
  --accent-hover: #9bbbf8;
  --accent-ink: #0b1220;
  --accent-soft: #1d2e4d;
  --hero-glow: rgba(122, 165, 245, 0.16);
  --ok-bg: #123524;
  --ok-text: #8fe0b4;
  --mid-bg: #3a2f10;
  --mid-text: #f3d98a;
  --soon-bg: #2a2450;
  --soon-text: #c9bff7;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

:root[data-theme="light"] { color-scheme: light; }

/* ---- base ---------------------------------------------------------------------- */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
[hidden] { display: none !important; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- header -------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; gap: 14px; min-height: 64px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text);
  font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; margin-right: auto;
}
.brand b { font-weight: 800; }
.brand:hover { color: var(--text); }
.logo { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.menu-btn, .theme-btn {
  font: inherit; font-weight: 600; color: var(--text); background: transparent;
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; cursor: pointer; line-height: 1;
}
.theme-btn { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; }
.theme-btn svg { width: 20px; height: 20px; }
.menu-btn:hover, .theme-btn:hover { background: var(--surface-2); }

/* With JS the nav collapses on narrow screens. Without JS it simply wraps. */
@media (max-width: 880px) {
  .js .nav { display: none; width: 100%; order: 10; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 12px; }
  .bar .btn.small { display: none; }
}
@media (min-width: 881px) { .menu-btn { display: none !important; } }

/* ---- buttons ------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; line-height: 1.1;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.secondary:hover { background: var(--surface-2); color: var(--text); }
.btn.small { padding: 9px 16px; font-size: 0.95rem; border-radius: 10px; }
.btn:active { transform: translateY(1px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- hero text ----------------------------------------------------------------- */

.eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 38em; margin-bottom: 1.6em; }
.fine { font-size: 0.9rem; color: var(--muted); }

/* ---- sections ------------------------------------------------------------------ */

.section { padding: clamp(44px, 7vw, 84px) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 46em; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.facts {
  list-style: none; margin: 0; padding: 18px 0; display: grid; gap: 10px 28px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.facts li { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.facts svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.strip { background: var(--surface); border-block: 1px solid var(--border); }

.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.section.alt .card { background: var(--bg); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.icon {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; }

.soon { background: var(--soon-bg); color: var(--soon-text); font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; display: inline-block; margin-bottom: 12px; }

.cta {
  text-align: center; padding: clamp(44px, 7vw, 80px) 20px; border-radius: 22px;
  background: var(--accent-soft); border: 1px solid var(--border);
}
.cta p { color: var(--muted); max-width: 36em; margin-inline: auto; margin-bottom: 1.4em; }
.cta .actions { justify-content: center; }

/* ---- footer -------------------------------------------------------------------- */

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 44px 0 28px; margin-top: 40px; }
.cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 28px; }
.cols h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 12px; }
.cols ul { list-style: none; margin: 0; padding: 0; }
.cols li { margin-bottom: 8px; }
.cols a { text-decoration: none; color: var(--text); }
.cols a:hover { color: var(--accent); text-decoration: underline; }
.cols p { color: var(--muted); font-size: 0.95rem; max-width: 22em; }
.site-footer .fine { border-top: 1px solid var(--border); padding-top: 18px; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .skip { display: none; }
  body { background: #fff; color: #000; }
}
