/*
  The public website (streamlitesystems.com): one stylesheet for every page.
  Same look as the portal (packages/ui-tokens/tokens.css), copied here on purpose:
  this site is plain files on Cloudflare Pages and builds nothing.
*/

:root {
  --ground: #f4f3f1;
  --surface: #ffffff;
  --border: #e2e1dc;
  --text: #0a0a0a;
  --muted: #5c5c58;
  --ink: #1d5fbf; /* pen blue: links only */
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Dark mode: only the tokens change. */
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #111111;
    --surface: #1a1a1a;
    --border: #2c2c2a;
    --text: #f2f2f0;
    --muted: #a3a39e;
    --ink: #7fb0ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}

header { margin-bottom: 40px; }
.brand { font-weight: 700; letter-spacing: 0.02em; color: var(--text); text-decoration: none; }

h1 { font-size: 32px; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 20px; margin: 40px 0 8px; }
p, li { color: var(--text); }
.lead { font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); font-size: 15px; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}

ol, ul { padding-left: 22px; }

footer {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* sms-opt-in.html: copies of the form and the first text, and the exact words under them. */
figure { margin: 24px 0 8px; }
figure img {
  display: block;
  max-width: 100%;
  height: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
figcaption { color: var(--muted); font-size: 15px; margin-top: 8px; }
blockquote {
  margin: 8px 0 16px;
  padding: 12px 16px;
  background: var(--surface);
  border-left: 3px solid var(--border);
  border-radius: 4px;
}

/* The copy of the portal's "Text messages" box. */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.demo h3 { margin: 0 0 6px; font-size: 17px; }
.demo .muted { margin: 0; }
.demo-body { display: grid; gap: 8px; font-size: 15px; }
.demo-joined { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-joined input {
  flex: 1 1 180px;
  font: inherit;
  padding: 8px 10px;
  color: var(--text);
  background: var(--ground);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.demo-joined button {
  font: inherit;
  padding: 8px 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.demo-check { display: flex; gap: 8px; align-items: flex-start; max-width: 60ch; }
.demo-check input { margin-top: 5px; flex: none; }
.demo-note { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .demo { grid-template-columns: 1fr; } }

/* The copy of the first text on a phone. */
.phone {
  max-width: 340px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
}
.phone-from { margin: 0 0 8px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.bubble {
  margin: 0;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.45;
  background: var(--border);
  border-radius: 18px 18px 18px 4px;
}
