/* Alignd — shared design system for every public/demo page.
   Load with: <link rel="stylesheet" href="/site.css"> (before any page-local <style>).
   Page-local <style> blocks should only contain what's unique to that page. */

:root {
  --ink: #14151f;
  --surface: #1b1d2c;
  --surface-2: #232640;
  --hairline: rgba(237, 235, 245, 0.09);
  --hairline-strong: rgba(237, 235, 245, 0.18);
  --text: #edebf5;
  --text-soft: #c9c7d6;
  --muted: #9694ad;
  --muted-2: #6a6885;
  --purple: #6b4fbb;
  --purple-soft: #a894e8;
  --amber: #e2a73e;
  --red: #dd6b7f;
  --green: #4fbb8a;
  --display: "Instrument Serif", Georgia, serif;
  --body: "Work Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", Consolas, monospace;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--purple-soft);
  outline-offset: 3px;
  border-radius: 4px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---- Buttons ---- */
.btn {
  font-family: var(--mono);
  font-size: 13px;
  padding: 13px 20px;
  border-radius: 8px;
  display: inline-block;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.btn-primary {
  background: var(--amber);
  color: #14151f;
  font-weight: 500;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(226, 167, 62, 0.5);
}
/* Main CTA inside a card: full width on phones, content width (min 280px) from 640px. */
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}
@media (min-width: 640px) {
  .btn-block {
    display: inline-block;
    width: auto;
    min-width: 280px;
  }
}
.btn-ghost {
  border: 1px solid var(--hairline-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--purple-soft);
}
.link-secondary {
  color: var(--purple-soft);
  border-bottom: 1px solid rgba(168, 148, 232, 0.35);
  font-size: 14px;
}
.link-secondary:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ---- Full nav (every public page except onboarding's minimal setup bar) ---- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(20, 21, 31, 0.75);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.logo {
  font-family: var(--display);
  font-size: 21px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(79, 187, 138, 0.2);
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 6px;
  transition:
    color 0.2s,
    background 0.2s;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(237, 235, 245, 0.05);
}
.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  padding: 9px 15px;
  border-radius: 6px;
  background: var(--purple);
  color: #fff;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(107, 79, 187, 0.6);
}
@media (max-width: 640px) {
  .nav {
    padding: 12px 16px;
  }
  .logo {
    font-size: 19px;
  }
  .nav-link {
    padding: 8px 8px;
    font-size: 11.5px;
  }
  .nav-link[data-hide-sm] {
    display: none;
  }
  .nav-cta {
    padding: 9px 12px;
    font-size: 11px;
    white-space: nowrap;
  }
}

/* ---- Text-page furniture (about, privacy, terms, security) ---- */
/* .app is the shared content wrapper for text pages. book.html and
   intervention.html override the max-width locally (820px vs this 760px default). */
.app {
  max-width: 760px;
  margin: 0 auto;
}
main {
  padding: 34px 26px 80px;
}
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 38px);
  line-height: 1.12;
  margin: 12px 0 20px;
}
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  margin: 34px 0 10px;
}
p {
  color: var(--muted);
  font-size: 15px;
  max-width: 68ch;
  margin-bottom: 12px;
}
p b,
li b {
  color: var(--text);
  font-weight: 500;
}
.list {
  list-style: none;
  margin: 6px 0 14px;
}
.list li {
  position: relative;
  padding: 7px 0 7px 18px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 68ch;
}
.list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--purple-soft);
}
.facts {
  list-style: none;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  margin: 18px 0 8px;
}
.facts li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14.5px;
  color: var(--muted);
  background: var(--surface);
}
.facts li:last-child {
  border-bottom: none;
}
.facts b {
  font-weight: 500;
  min-width: 160px;
  color: var(--text);
}
a.inline {
  color: var(--purple-soft);
}
@media (max-width: 600px) {
  main {
    padding: 24px 16px 60px;
  }
  .facts b {
    min-width: 0;
    display: block;
  }
}

/* ---- Footer (markup injected server-side by src/lib/site-chrome.ts) ---- */
.alignd-footer {
  border-top: 1px solid var(--hairline);
  padding: 24px 26px calc(34px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
}
.alignd-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.alignd-footer nav a {
  color: inherit;
  text-decoration: none;
}
.alignd-footer nav a:hover {
  color: var(--text);
}
.alignd-footer-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
}
@media (max-width: 600px) {
  .alignd-footer {
    padding: 20px 16px calc(30px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* "Coming in the pilot" label: marks features that are described but not live yet. */
.soon {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}
