/* The shell of the simple public pages (templates/includes/public_base.html):
   the ROI calculator, Terms of Service and Privacy Policy. Brand (style
   guide v2.0): navy header with a cyan line, cloud and navy surfaces, deep
   teal on light, cyan on dark. Inter for text, Sora for headings. Follows
   the visitor's light/dark preference. */
:root {
  --pub-bg: #f7fafc;
  --pub-surface: #ffffff;
  --pub-surface-2: #eef3f7;
  --pub-border: #dfe7ed;
  --pub-text: #0b1b26;
  --pub-muted: #5b7080;
  --pub-accent: #087f8c;
  --pub-accent-soft: rgb(8 127 140 / 0.08);
  --pub-accent-line: rgb(8 127 140 / 0.25);
  --pub-loss: #b42318;
  --pub-navy: #102431;
  --pub-cyan: #00dde0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --pub-bg: #0a1820;
    --pub-surface: #102431;
    --pub-surface-2: #172d3b;
    --pub-border: #23404f;
    --pub-text: #f7fafc;
    --pub-muted: #9db1bf;
    --pub-accent: #00dde0;
    --pub-accent-soft: rgb(0 221 224 / 0.08);
    --pub-accent-line: rgb(0 221 224 / 0.3);
    --pub-loss: #ff8a80;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body.pub {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--pub-bg);
  color: var(--pub-text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.pub h1,
.pub h2,
.pub h3,
.pub h4 {
  font-family: "Sora", "Inter", sans-serif;
}
.pub-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.pub-main {
  flex: 1;
  padding-top: 32px;
  padding-bottom: 48px;
}

/* Header */
.pub-bar {
  background: var(--pub-navy);
  border-bottom: 4px solid var(--pub-cyan);
}
.pub-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.pub-logo img {
  display: block;
  height: 40px;
  width: auto;
}
.pub-bar-tag,
.pub-bar a {
  color: #cfe3ea;
  font-size: 0.875rem;
}
.pub-bar a {
  text-decoration: none;
}
.pub-bar a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Footer */
.pub-footer {
  padding: 24px 16px 40px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--pub-muted);
}
.pub-footer a {
  color: inherit;
}

/* Legal documents (legal/document.html): long-form text at a readable
   width; the version history slides in from the right (static/js/legal.js). */
.legal-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.legal-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 8px 0 24px;
}
.legal-meta {
  margin: 0;
  color: var(--pub-muted);
}
.legal-meta-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.legal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid var(--pub-border);
  border-radius: 999px;
  background: var(--pub-surface);
  color: var(--pub-text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.legal-pill svg {
  width: 16px;
  height: 16px;
}
.legal-pill:hover {
  border-color: var(--pub-accent);
  color: var(--pub-accent);
}
.legal-pill:focus-visible,
.legal-drawer-close:focus-visible,
.legal-history a:focus-visible {
  outline: 2px solid var(--pub-accent);
  outline-offset: 2px;
}
.legal-notice {
  max-width: 44rem;
  margin: 0 0 24px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--pub-accent-line);
  background: var(--pub-accent-soft);
}
.legal-notice a,
.legal-prose a {
  color: var(--pub-accent);
  text-decoration: underline;
}
.legal-article {
  padding: 32px clamp(16px, 4vw, 48px);
  border: 1px solid var(--pub-border);
  border-radius: 10px;
  background: var(--pub-surface);
}
.legal-prose {
  max-width: 44rem;
  font-size: 1rem;
  line-height: 1.7;
}
.legal-prose h1,
.legal-prose h2,
.legal-prose h3,
.legal-prose h4 {
  margin: 2em 0 0.6em;
  font-weight: 600;
  line-height: 1.3;
  scroll-margin-top: 16px;
}
.legal-prose > :first-child {
  margin-top: 0;
}
.legal-prose h1 {
  font-size: 1.5rem;
}
.legal-prose h2 {
  font-size: 1.25rem;
  padding-top: 0.75em;
  border-top: 1px solid var(--pub-border);
}
.legal-prose h3 {
  font-size: 1.075rem;
}
.legal-prose h4 {
  font-size: 1rem;
}
.legal-prose p,
.legal-prose ul,
.legal-prose ol,
.legal-prose blockquote,
.legal-prose table {
  margin: 0 0 1em;
}
.legal-prose ul,
.legal-prose ol {
  padding-inline-start: 1.5em;
}
.legal-prose li {
  margin-bottom: 0.35em;
}
.legal-prose li::marker {
  color: var(--pub-accent);
}
.legal-prose strong {
  font-weight: 600;
}
.legal-prose blockquote {
  padding: 8px 16px;
  border-inline-start: 4px solid var(--pub-accent);
  background: var(--pub-surface-2);
}
.legal-prose blockquote p:last-child {
  margin-bottom: 0;
}
.legal-prose hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--pub-border);
}
.legal-prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}
.legal-prose th,
.legal-prose td {
  padding: 6px 10px;
  border: 1px solid var(--pub-border);
  text-align: left;
}

/* Version history panel: overlays the text; full width on phones. */
.legal-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(16 36 49 / 0.45);
}
.legal-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 61;
  display: flex;
  flex-direction: column;
  width: min(24rem, 100vw);
  padding: 20px;
  overflow-y: auto;
  background: var(--pub-surface);
  box-shadow: -12px 0 40px rgb(16 36 49 / 0.25);
}
.legal-drawer[hidden],
.legal-drawer-backdrop[hidden] {
  display: none;
}
.legal-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.legal-drawer-head h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
}
.legal-drawer-close {
  display: inline-flex;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--pub-muted);
  cursor: pointer;
}
.legal-drawer-close svg {
  width: 20px;
  height: 20px;
}
.legal-drawer-close:hover {
  color: var(--pub-text);
  background: var(--pub-surface-2);
}
.legal-history ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.legal-history a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--pub-text);
  text-decoration: none;
}
.legal-history a:hover {
  background: var(--pub-surface-2);
}
.legal-history a.is-selected {
  font-weight: 600;
  background: var(--pub-accent-soft);
  color: var(--pub-accent);
}
.legal-badge {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #166534;
  background: #dcfce7;
}
.legal-badge.is-upcoming {
  color: #854d0e;
  background: #fef9c3;
}

/* The trade show banner and the flyer's fine print
   (templates/marketing/includes/), shared with the landing page. */
.aw-offer-bar {
  background: var(--pub-cyan);
  color: var(--pub-navy);
  text-align: center;
  font-size: 0.9375rem;
  padding: 10px 20px;
}

.aw-offer-bar a {
  color: var(--pub-navy);
  font-weight: 700;
  white-space: nowrap;
}

.aw-fine {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 0;
  color: var(--pub-muted);
  font-size: 0.8125rem;
}

.aw-fine a {
  color: var(--pub-muted);
}
