/*
 * Vesper — getvesperapp.com
 *
 * Palette and radii are lifted from the desktop app's Nocturne stylesheet so
 * the site and the product look like one thing: surface #232532, text #e9e9ed,
 * the accent rotated to green (#00aa8f / #10b194), radii 4 / 8 / 14. The page
 * background is a shade deeper than the app's #161826 because a full-bleed web
 * page needs more room underneath the content than a 1200px app window does.
 *
 * No webfonts, no scripts, no third-party anything: the privacy page claims the
 * site loads nothing from another origin and build.mjs fails the build if that
 * stops being true.
 */

/* ── tokens ─────────────────────────────────────────────────────────────── */

:root {
  --bg: #0f1119;
  --bg-raise: #12141f;
  --surface: #171a27;
  --surface-2: #1d2130;

  --line: rgba(233, 233, 237, 0.09);
  --line-mid: rgba(233, 233, 237, 0.14);
  --line-strong: rgba(233, 233, 237, 0.22);

  --text: #e9e9ed;
  --muted: #a4a9ba;
  --dim: #767c90;

  --accent: #10b194;
  --accent-bright: #59cfb4;
  --accent-soft: #6dbba7;
  --accent-glow: rgba(16, 177, 148, 0.16);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: 24px;
}

/* ── reset ──────────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; font-weight: 600; letter-spacing: -0.018em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0 0 0 1.15em; }

a { color: var(--accent-bright); text-decoration-color: rgba(89, 207, 180, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  z-index: 100;
}
.skip:focus { left: 12px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 25, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark { display: block; flex: none; }
.brand-word { font-size: 17px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 7px 12px;
  border-radius: var(--radius-md);
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav-link:hover { color: var(--text); background: rgba(233, 233, 237, 0.05); }
.nav-link.is-current { color: var(--text); background: rgba(233, 233, 237, 0.07); }

.header-cta { flex: none; }

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #06251e;
}
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-soft); background: rgba(233, 233, 237, 0.04); }
.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn:active { transform: translateY(1px); }

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-glow), transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  margin-bottom: 22px;
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  background: rgba(233, 233, 237, 0.03);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero h1 {
  max-width: 17ch;
  font-size: clamp(38px, 6.2vw, 62px);
  letter-spacing: -0.032em;
  margin-bottom: 22px;
}
.hero h1 .soft { color: var(--accent-soft); }

.lede {
  max-width: 62ch;
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.cta-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--dim);
}

/* ── sections ───────────────────────────────────────────────────────────── */

.section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.section.tight { padding: 56px 0; }

.section-head { max-width: 68ch; margin-bottom: 44px; }
.kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.section-title { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.026em; }
.section-sub { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* ── feature list ───────────────────────────────────────────────────────── */

.ticks { list-style: none; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); font-size: 15.5px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks strong { color: var(--text); font-weight: 600; }

/* ── spec table ─────────────────────────────────────────────────────────── */

.specs {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.specs dt, .specs dd {
  margin: 0;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.specs dt { background: rgba(0, 0, 0, 0.16); color: var(--dim); font-weight: 500; }
.specs dd { color: var(--text); }
.specs > :nth-last-child(1), .specs > :nth-last-child(2) { border-bottom: 0; }

/* ── CTA band ───────────────────────────────────────────────────────────── */

.band {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.band .wrap { position: relative; }
.band h2 { font-size: clamp(25px, 3.4vw, 34px); letter-spacing: -0.026em; }
.band p { margin: 16px auto 0; max-width: 56ch; color: var(--muted); }
.band .cta-row, .cta-row.is-centered { justify-content: center; }

/* ── prose (about / support / legal) ────────────────────────────────────── */

.page-head {
  padding: 66px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(32px, 4.6vw, 46px); letter-spacing: -0.03em; }
.page-head .lede { margin-top: 18px; }
.page-head .stamp { margin-top: 18px; font-size: 14px; color: var(--dim); }

.prose { max-width: 74ch; padding: 52px 0 72px; }
.prose h2 {
  margin: 46px 0 16px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 23px;
  letter-spacing: -0.02em;
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin: 30px 0 12px; font-size: 17.5px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 16px; }
.prose ul, .prose ol { margin-top: 14px; display: grid; gap: 9px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .lead { color: var(--text); font-size: 18px; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: rgba(0, 0, 0, 0.2); color: var(--text); font-weight: 600; }
.prose td { color: var(--muted); }

.note {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line-mid);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  background: rgba(16, 177, 148, 0.05);
  font-size: 15.5px;
}
.note strong { color: var(--text); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 10px; margin-top: 8px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
.faq summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent-bright);
  font-size: 20px;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 16px 20px 20px; color: var(--muted); font-size: 15.5px; }
.faq .answer p + p { margin-top: 13px; }

/* ── contact cards ──────────────────────────────────────────────────────── */

.contact-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.contact-card h3 { font-size: 16px; margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: 15px; }
.contact-card .big {
  display: block;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 500;
  word-break: break-word;
}
.contact-card address { font-style: normal; margin-top: 12px; color: var(--text); font-size: 15.5px; line-height: 1.7; }

/* ── 404 ────────────────────────────────────────────────────────────────── */

.center-page {
  min-height: 62vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 80px 0;
}
.center-page .code {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--accent-soft);
  margin-bottom: 18px;
}
.center-page h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.028em; }
.center-page p { margin: 16px auto 28px; max-width: 46ch; color: var(--muted); }

/* ── footer ─────────────────────────────────────────────────────────────── */

.site-footer { background: var(--bg-raise); }
.footer-inner {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.6fr 1fr 1fr;
  padding-top: 56px;
  padding-bottom: 44px;
}
.brand-footer { pointer-events: none; }
.footer-tag { margin-top: 14px; max-width: 34ch; color: var(--dim); font-size: 14.5px; }
.footer-h {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
}
.footer-address { font-style: normal; font-size: 14.5px; color: var(--muted); line-height: 1.8; }
.footer-address strong { color: var(--text); font-weight: 600; }
.footer-contact { margin-top: 14px; font-size: 14.5px; }
.footer-links { display: grid; gap: 10px; font-size: 14.5px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 34px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13.5px;
}
.footer-base p { margin: 0; }

/* ── responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-org { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }
  .hero { padding: 60px 0 52px; }
  .section { padding: 56px 0; }
  .header-inner { flex-wrap: wrap; min-height: 0; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .header-cta { margin-left: auto; }
  .specs { grid-template-columns: 1fr; }
  .specs dt { border-bottom: 0; padding-bottom: 0; background: none; }
  .specs dd { padding-top: 4px; }
  .specs > :nth-last-child(2) { border-bottom: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .prose { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ── print: the legal pages get printed and filed ───────────────────────── */

@media print {
  :root { --wrap: none; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .site-header, .site-footer, .skip, .band, .cta-row, .faq summary::after { display: none !important; }
  .page-head { border: 0; padding: 0 0 12pt; }
  .prose { max-width: none; padding: 0; }
  .prose h2 { border-top: 1px solid #ccc; }
  .prose p, .prose li, .prose td { color: #333; }
  .note { border: 1px solid #ccc; background: none; }
  a { color: #111; text-decoration: underline; }
  .faq details { border: 1px solid #ccc; }
  .faq details .answer { display: block; }
}
