/* Vesperis AI — shared site styles. Black, silver, eclipse red. */
:root {
  --bg: #000;
  --text: #e6e6ea;
  --silver: #d9d9de;
  --muted: #8b8b94;
  --dim: #a6a6ae;
  --faint: #5c5c64;
  --line: #1a1a1e;
  --line-2: #242429;
  --card: #070708;
  --red: #e3181f;
  --red-hi: #ff2a31;
  --red-lo: #b30f15;
  --gutter: 16px;
  --max: 1120px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(227, 24, 31, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: #111; color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 780px; }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.eyebrow {
  font: 500 12px/1 Cinzel, serif;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  margin-right: 14px;
  vertical-align: middle;
  background: linear-gradient(90deg, transparent, var(--red));
}
.center { text-align: center; }
.center .eyebrow::before { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  padding: max(12px, env(safe-area-inset-top)) 0 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.92), rgba(0,0,0,.72));
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 32px; height: auto; mix-blend-mode: screen; }
.brand span { font: 500 13px/1 Cinzel, serif; letter-spacing: .38em; color: var(--silver); white-space: nowrap; }
.brand span b { color: var(--red); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.text { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a.text:hover, .nav-links a.text[aria-current="page"] { color: var(--silver); }
.nav-cta {
  font-size: 14px; letter-spacing: .03em; text-decoration: none; white-space: nowrap;
  color: var(--silver);
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(227, 24, 31, .55);
  background: rgba(10, 10, 12, .6);
  transition: background .2s, box-shadow .2s, color .2s;
}
.nav-cta:hover { background: var(--red); color: #fff; box-shadow: 0 0 24px rgba(227, 24, 31, .4); }
@media (max-width: 860px) { .nav-links a.hide-sm { display: none; } .nav-links { gap: 18px; } }
@media (max-width: 520px) { .nav-links a.hide-xs { display: none; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* ---------- Buttons ---------- */
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  border-radius: 999px; text-decoration: none; text-align: center;
  font-size: 15px; font-weight: 500; letter-spacing: .02em;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--red-hi), var(--red-lo));
  box-shadow: 0 0 0 1px rgba(255, 80, 86, .35) inset, 0 10px 34px rgba(227, 24, 31, .32);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 120, 124, .5) inset, 0 12px 44px rgba(227, 24, 31, .5); transform: translateY(-1px); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { color: var(--silver); border: 1px solid #26262b; background: rgba(12, 12, 14, .7); }
.btn-ghost:hover { border-color: #3a3a41; transform: translateY(-1px); }
.link-quiet { color: var(--muted); font-size: 14.5px; text-decoration: none; border-bottom: 1px solid #2a2a30; padding-bottom: 2px; }
.link-quiet:hover { color: var(--silver); border-color: var(--red); }
.micro { margin-top: 16px; color: var(--faint); font-size: 13px; letter-spacing: .03em;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 8px; }
.micro span { white-space: nowrap; }
.micro span + span::before { content: "·"; margin-right: 8px; color: #3a3a41; }
@media (max-width: 480px) { .micro { flex-direction: column; align-items: center; gap: 4px; } .micro span + span::before { content: none; } }

/* Grid children must be allowed to shrink below their content (prevents mobile overflow). */
.band > *, .calc > *, .compare > *, .steps3 > *, .flow > *, .grid2 > *, .grid3 > *,
.privacy-grid > *, .contact-grid > *, .split > * { min-width: 0; }

/* ---------- Sections ---------- */
section { position: relative; padding: clamp(72px, 10vw, 124px) 0; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, #2a2a30 20%, rgba(227, 24, 31, .55) 50%, #2a2a30 80%, transparent); }
h1, h2, h3 { text-wrap: balance; }
h2 {
  margin: 18px 0 0;
  font: 400 clamp(26px, 3.6vw, 40px)/1.2 Inter, system-ui, sans-serif;
  letter-spacing: -.015em; color: var(--text);
  max-width: 24ch;
}
.center h2 { margin-left: auto; margin-right: auto; }
.section-lede { margin: 14px 0 0; color: var(--muted); max-width: 40em; }
.center .section-lede { margin-left: auto; margin-right: auto; }
.grad-text {
  background: linear-gradient(180deg, #ffffff 0%, #d9d9de 55%, #8b8b94 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Panels & cards */
.panel {
  position: relative; overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, #0b0b0d, #050506);
  border: 1px solid var(--line);
}
.dot-list { margin: 16px 0 0; padding: 0; list-style: none; }
.dot-list li { position: relative; padding-left: 20px; color: #b2b2ba; font-size: 15px; margin-top: 10px; }
.dot-list li::before {
  content: ""; position: absolute; left: 0; top: .66em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 8px rgba(227, 24, 31, .7);
}

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 0; font-size: 16.5px; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 10px; height: 10px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s, border-color .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); border-color: var(--red-hi); }
.faq summary:hover { color: #fff; }
.faq .a { padding: 0 0 22px; color: var(--muted); max-width: 46em; }
.faq .a p { margin: 0 0 10px; }
.faq .a a { color: var(--silver); }

/* Closing band */
.closing {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 84px) clamp(22px, 5vw, 64px);
  border-radius: 28px;
  border: 1px solid #1d1d22;
  background:
    radial-gradient(60% 90% at 0% 100%, rgba(227, 24, 31, .16), transparent 60%),
    radial-gradient(50% 80% at 100% 0%, rgba(255, 255, 255, .05), transparent 60%),
    #050506;
  text-align: center;
}
.closing .ring {
  position: absolute; z-index: 0; pointer-events: none;
  width: 420px; height: 420px; border-radius: 50%;
  right: -250px; top: -270px;
  box-shadow: -6px 8px 0 -4px rgba(255, 255, 255, .35), -14px 22px 50px -10px rgba(227, 24, 31, .45);
  opacity: .5;
}
@media (max-width: 640px) { .closing .ring { width: 300px; height: 300px; right: -205px; top: -215px; } }
.closing > *:not(.ring) { position: relative; z-index: 1; }
.closing h2 { margin: 18px auto 0; }
.closing p { margin: 14px auto 0; color: var(--muted); max-width: 36em; }

/* Footer */
footer.site { padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
footer.site .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
footer.site .brand-col { max-width: 320px; }
footer.site .brand-col p { margin: 14px 0 0; color: var(--faint); font-size: 13.5px; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 28px 56px; }
footer.site h4 { margin: 0 0 12px; font: 500 11px/1 Cinzel, serif; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
footer.site ul { margin: 0; padding: 0; list-style: none; }
footer.site li { margin: 8px 0; }
footer.site li a { color: var(--dim); font-size: 14px; text-decoration: none; }
footer.site li a:hover { color: var(--silver); }
footer.site .bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--faint); font-size: 12.5px; }

/* ---------- Legal / text pages ---------- */
.doc-head { padding-top: clamp(56px, 8vw, 96px); padding-bottom: 24px; }
.doc-head h1 {
  margin: 18px 0 0;
  font: 300 clamp(32px, 5vw, 50px)/1.12 Inter, system-ui, sans-serif; letter-spacing: -.02em;
}
.doc-head .meta { margin-top: 14px; color: var(--faint); font-size: 14px; }
.doc { padding-top: 8px; padding-bottom: clamp(72px, 9vw, 110px); }
.doc h2 { font-size: clamp(20px, 2.4vw, 24px); max-width: none; margin-top: 44px; }
.doc h3 { margin: 26px 0 0; font-size: 17px; font-weight: 500; color: var(--text); }
.doc p, .doc li { color: #b2b2ba; }
.doc p { margin: 12px 0 0; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 22px; }
.doc li { margin-top: 6px; }
.doc a { color: var(--silver); }
.doc strong { color: var(--text); font-weight: 500; }
.doc .toc { margin-top: 8px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: #050506; }
.doc .toc ol { margin: 6px 0 0; columns: 2 220px; }
.doc .toc a { text-decoration: none; color: var(--dim); }
.doc .toc a:hover { color: var(--silver); }
.ph { color: #ff8a8e; background: rgba(227, 24, 31, .1); border-radius: 4px; padding: 0 4px; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { color: var(--muted); font-weight: 500; font-size: 13px; letter-spacing: .03em; background: #070708; }
table.data td { color: #c4c4cb; }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes drift { from { transform: translate(-8px, -8px); opacity: 0; } to { transform: none; opacity: .9; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
