/* The public site (ADR-025). One stylesheet, system fonts, no external request. */
:root {
  color-scheme: light dark;
  --ink: #142030;
  --muted: #3d4c5c;
  --paper: #f7fafc;
  --line: #c9d4de;
  --accent: #0b5d73;
  font-family:
    system-ui,
    -apple-system,
    'PingFang TC',
    'Noto Sans TC',
    sans-serif;
  line-height: 1.7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7eef5;
    --muted: #b9c6d3;
    --paper: #0f1720;
    --line: #2f3d4b;
    --accent: #7fd3e6;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
}

.site-header,
main,
.site-footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 16px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.site-header nav {
  display: flex;
  gap: 12px;
}

.site-brand {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--accent);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}

table {
  border-collapse: collapse;
  min-width: 100%;
  font-size: 0.95rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

pre {
  overflow-x: auto;
  padding: 12px;
  border: 1px solid var(--line);
}

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

/* Pricing (#1675). The no-rescue sentence is body text at full size, never a footnote. */
.pricing-table caption {
  text-align: left;
  color: var(--muted);
  padding-bottom: 6px;
}

.pricing-table th[scope='row'] {
  font-weight: 600;
}

.no-rescue {
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--accent);
}

.no-rescue-text {
  font-size: 1rem;
  font-weight: 600;
}

/* Homepage (#1674). */
.hero h1 {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  line-height: 1.3;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 16px;
  margin: 2rem 0;
}

.screens figure {
  margin: 0;
}

.screens img {
  display: block;
  width: 100%;
  max-width: 18rem;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.screens figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}
