/* NYPTID Meridian site: tokens, chrome, and the components every page shares.
   Page-specific styles live in home.css (homepage) and account.css.
   Ink ground, one warm gold accent, steel and green for status. No full-page
   blur or noise layers: pages must render instantly. */

:root {
  --ink: #07090d;
  --ink-2: #0c1016;
  --surface: #10151d;
  --surface-2: #151b25;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef2f8;
  --dim: #97a3b6;
  --faint: #5f6b7e;
  --gold: #d9b77e;
  --gold-2: #f0d3a0;
  --gold-soft: rgba(217, 183, 126, 0.13);
  --steel: #7fa3bf;
  --green: #5fd3a2;
  --amber: #e8c07a;
  --red: #ec8a8a;
  --sans: "Geist", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --maxw: 1200px;
  --gutter: max(24px, calc((100vw - var(--maxw)) / 2 + 24px));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  min-width: 320px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
code { font-family: var(--mono); font-size: 0.92em; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- announcement + header ---------- */
.announce {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 16px;
  font-size: 13.5px; color: var(--dim);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(217, 183, 126, 0.06), transparent);
}
.announce:hover { color: var(--text); }
.announce b { color: var(--gold); font-weight: 500; }
.announce-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 999px;
  color: var(--ink); background: var(--gold);
}

/* Full-bleed bar so nothing scrolls visibly behind it at any width. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: rgba(7, 9, 13, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 26px; height: 26px; }
.brand-lockup { display: flex; flex-direction: column; line-height: 1.05; }
.brand-lockup small { font-size: 9.5px; letter-spacing: 0.22em; color: var(--faint); }
.brand-lockup strong { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.mainnav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; color: var(--dim); }
.mainnav a:hover, .mainnav a.active { color: var(--text); }
.mainnav .nav-signin { color: var(--text); }
.mainnav .nav-cta {
  color: var(--ink); background: var(--gold); font-weight: 600;
  padding: 9px 16px; border-radius: 999px;
}
.mainnav .nav-cta:hover, .mainnav .nav-cta.active { background: var(--gold-2); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; }
.nav-toggle i { display: block; width: 20px; height: 1.5px; background: var(--text); margin: 5px auto; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.actions.center { justify-content: center; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { border: 0; background: var(--gold); color: var(--ink); box-shadow: 0 8px 30px rgba(217, 183, 126, 0.22); }
.btn-primary:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.32); }
.fine { margin-top: 16px; font-size: 13px; color: var(--faint); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { max-width: var(--maxw); margin: 0 auto; padding: 84px 24px 8px; }
.page-hero.center { text-align: center; }
.page-hero.center .lede { margin-left: auto; margin-right: auto; }
.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(42px, 6.4vw, 80px);
  font-weight: 650; line-height: 1; letter-spacing: -0.045em;
  background: linear-gradient(180deg, #ffffff 30%, #c9d2df);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 22px; max-width: 640px; font-size: 19px; color: var(--dim); line-height: 1.55; }
.price-line { margin-top: 20px; font-size: 15px; color: var(--dim); }
.price-line b { color: var(--text); font-weight: 600; }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 110px 24px 0; }
.section.tight { padding-top: 64px; }
.section-head { max-width: 680px; }
.section-head.center { margin: 0 auto; text-align: center; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.section h2, .cta-band h2 {
  margin-top: 14px; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05;
  font-weight: 650; letter-spacing: -0.035em;
}
.section-head > p:last-child:not(.eyebrow) { margin-top: 16px; color: var(--dim); font-size: 17.5px; }

.feature-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-grid.two { grid-template-columns: repeat(2, 1fr); }
.feature {
  padding: 26px; border-radius: 16px;
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--ink-2));
}
.feature.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.feature h3 { margin-top: 10px; font-size: 20px; font-weight: 620; letter-spacing: -0.015em; line-height: 1.25; }
.feature.wide h3 { font-size: 28px; letter-spacing: -0.025em; }
.feature p:not(.eyebrow) { margin-top: 10px; color: var(--dim); font-size: 15px; }
.feature .eyebrow { font-size: 11px; }
.feature a.more { display: inline-block; margin-top: 14px; color: var(--gold); font-weight: 600; font-size: 14.5px; }
.feature a.more:hover { color: var(--gold-2); }
.feature ul { list-style: none; margin-top: 14px; display: grid; gap: 7px; font-size: 14.5px; }
.feature li::before { content: "—"; color: var(--gold); margin-right: 10px; }

.journal {
  display: flex; flex-direction: column; gap: 6px; padding: 18px;
  border-radius: 12px; border: 1px solid var(--line); background: #090c11;
}
.journal code { font-family: var(--mono); font-size: 13px; color: var(--dim); display: flex; gap: 10px; }
.journal code i { font-style: normal; width: 14px; }
.journal .ok { color: var(--green); }
.journal .warn { color: var(--amber); }

/* numbered steps */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.steps article {
  position: relative; padding: 26px 24px 24px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--ink-2);
}
.steps article::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 12px; color: var(--gold);
  display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--gold-soft);
}
.steps h3 { margin-top: 16px; font-size: 19px; font-weight: 620; letter-spacing: -0.015em; }
.steps p { margin-top: 8px; color: var(--dim); font-size: 15px; }

/* key/value spec list */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split > div > p:not(.eyebrow) { margin-top: 16px; color: var(--dim); font-size: 16.5px; max-width: 520px; }
.spec { border-top: 1px solid var(--line-2); }
.spec div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.spec b { font-size: 14.5px; font-weight: 600; }
.spec span { color: var(--dim); font-size: 14.5px; }

/* flow diagram */
.flow { margin-top: 44px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 14px; }
.flow article { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--ink-2); }
.flow small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--gold); }
.flow h3 { margin-top: 10px; font-size: 18px; font-weight: 620; }
.flow p { margin-top: 8px; color: var(--dim); font-size: 14.5px; }
.flow > i { align-self: center; color: var(--faint); font-style: normal; font-size: 20px; }

/* ---------- pricing ---------- */
.seg {
  display: inline-flex; padding: 4px; gap: 2px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--ink-2);
}
.seg button {
  border: 0; background: transparent; color: var(--dim); cursor: pointer;
  font-size: 14px; font-weight: 600; padding: 8px 18px; border-radius: 999px;
}
.seg button:hover { color: var(--text); }
.seg button.selected { background: var(--gold); color: var(--ink); }
.seg-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.seg-note { font-size: 12px; color: var(--green); font-weight: 600; margin-left: 4px; }
.seg button.selected .seg-note { color: var(--ink); opacity: 0.7; }

.plans { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plans article {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--ink-2);
}
.plans article.featured { border-color: rgba(217, 183, 126, 0.45); background: linear-gradient(180deg, rgba(217, 183, 126, 0.08), var(--ink-2) 60%); }
.plan-tag { position: absolute; top: -11px; left: 24px; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--ink); }
.plan-name { font-size: 14px; color: var(--dim); font-weight: 600; }
.plan-price { display: block; margin-top: 8px; font-size: 42px; font-weight: 650; letter-spacing: -0.04em; }
.plan-price small { font-size: 15px; color: var(--faint); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.plan-cadence { margin-top: 2px; font-size: 13px; color: var(--faint); }
.plans article > p:not(.plan-cadence) { margin-top: 12px; color: var(--dim); font-size: 14.5px; }
.plans ul { list-style: none; margin: 18px 0 22px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 14px; }
.plans li { display: flex; gap: 10px; }
.plans li::before { content: "✓"; color: var(--gold); font-weight: 700; }
.plans .plan-cta {
  margin-top: auto; display: flex; align-items: center; justify-content: center; height: 44px;
  border-radius: 999px; font-weight: 600; font-size: 14.5px;
  border: 1px solid var(--line-2); color: var(--text);
}
.plans .plan-cta:hover { border-color: rgba(255, 255, 255, 0.32); }
.plans article.featured .plan-cta { border: 0; background: var(--gold); color: var(--ink); }
.plans article.featured .plan-cta:hover { background: var(--gold-2); }
.plans article > a.link { margin-top: 18px; color: var(--gold); font-weight: 600; font-size: 14.5px; }
.plans article > a.link:hover { color: var(--gold-2); }
.plans-foot { margin-top: 22px; text-align: center; color: var(--dim); font-size: 14.5px; }
.plans-foot a { color: var(--gold); }

.packs { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.packs article {
  display: grid; gap: 4px; padding: 20px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--ink-2);
}
.packs b { font-size: 28px; font-weight: 650; letter-spacing: -0.03em; }
.packs span { color: var(--dim); font-size: 14px; }
.packs a { margin-top: 8px; color: var(--gold); font-weight: 600; font-size: 14px; }

/* ---------- faq ---------- */
.faq-list { margin-top: 36px; border-top: 1px solid var(--line); max-width: 860px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-list summary { cursor: pointer; font-size: 18px; font-weight: 580; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--gold); font-weight: 400; font-size: 22px; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin-top: 12px; color: var(--dim); font-size: 15.5px; max-width: 760px; }

/* ---------- release / download ---------- */
.release {
  margin-top: 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px;
  padding: 30px; border-radius: 18px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
}
.release h3 { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
.release .notes { margin-top: 12px; color: var(--dim); font-size: 15px; }
.release-side { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.checksum {
  padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #090c11;
  font-size: 12.5px; color: var(--dim);
}
.checksum code { display: block; margin-top: 6px; color: var(--text); font-size: 12px; word-break: break-all; }
.notice {
  margin-top: 16px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(232, 192, 122, 0.3); background: rgba(232, 192, 122, 0.06);
  color: #e2cfa6; font-size: 14px;
}
.notice strong { color: var(--amber); }

/* ---------- closing cta ---------- */
.cta-band {
  max-width: var(--maxw); margin: 120px auto 0; padding: 70px 24px; text-align: center;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(217, 183, 126, 0.1), transparent 70%);
}
.cta-band p { margin-top: 14px; color: var(--dim); font-size: 17px; }

/* ---------- long-form (legal) ---------- */
.prose { max-width: 780px; margin: 0 auto; padding: 72px 24px 96px; }
.prose p.eyebrow { margin-top: 0; color: var(--gold); font-size: 12.5px; line-height: 1.4; }
.prose h1 { margin-top: 14px; font-size: clamp(38px, 5vw, 58px); font-weight: 650; letter-spacing: -0.04em; line-height: 1.05; }
.prose .updated { margin-top: 14px; color: var(--faint); font-size: 14px; }
.prose section { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.prose h2 { font-size: 21px; font-weight: 620; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--dim); font-size: 16px; line-height: 1.7; }
.prose p { margin-top: 12px; }
.prose ul { margin-top: 12px; padding-left: 20px; display: grid; gap: 8px; }
.prose a { color: var(--gold); }

/* ---------- status ---------- */
.overall { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 15px; }
.overall i, .status-dot { width: 9px; height: 9px; min-width: 9px; border-radius: 50%; background: var(--faint); }
.overall.ok i, .status-dot.ok { background: var(--green); box-shadow: 0 0 10px rgba(95, 211, 162, 0.6); }
.overall.down i, .status-dot.down { background: var(--red); }
.status-dot.pending, .overall:not(.ok):not(.down) i { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.status-grid { margin: 28px 0 96px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.status-grid article {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--ink-2);
}
.status-grid .status-dot { margin-top: 7px; }
.status-grid strong { display: block; font-weight: 600; }
.status-grid span { display: block; color: var(--faint); font-size: 13.5px; font-family: var(--mono); }
.status-grid small { display: block; margin-top: 6px; color: var(--dim); font-size: 13.5px; }

/* ---------- footer ---------- */
.site-footer {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 40px;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; border-top: 1px solid var(--line);
}
.footer-brand p { margin-top: 14px; color: var(--dim); font-size: 14px; max-width: 280px; }
.footer-brand .status { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 12.5px; color: var(--faint); }
.footer-brand .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.footer-brand .status.ready i { background: var(--green); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-cols h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 12px; }
.footer-cols a { display: block; color: var(--dim); font-size: 14px; padding: 4px 0; }
.footer-cols a:hover { color: var(--text); }
.footer-copy { grid-column: 1 / -1; color: var(--faint); font-size: 13px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .mainnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 18px;
    background: var(--ink); border-bottom: 1px solid var(--line);
  }
  .mainnav a { padding: 12px 0; }
  .mainnav .nav-cta { text-align: center; margin-top: 8px; }
  .site-header.nav-open .mainnav { display: flex; }
  .nav-toggle { display: block; }
  .feature-grid, .feature-grid.two, .plans, .steps, .split, .release, .status-grid { grid-template-columns: 1fr; }
  .feature.wide { grid-template-columns: 1fr; }
  .packs { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow > i { justify-self: center; transform: rotate(90deg); }
  .site-footer { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 28px; }
}
@media (max-width: 560px) {
  .page-hero { padding-top: 56px; }
  .lede { font-size: 17px; }
  .announce { font-size: 12px; }
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .section { padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
