/* SecureChat site styles.
 *
 * Brand: dark + warm. Accent: a soft cyan that reads well on both
 * dark and light backgrounds. The visual language is deliberately
 * different from Loupe's indigo/turquoise so that a beta user who
 * sees both products does not confuse them. Layout primitives
 * (header / trust-bar / hero / grid / footer) are inspired by the
 * Loupe site so that the engineering effort stays in the relay +
 * iOS app, not in re-inventing the marketing CSS.
 */

:root {
  --bg: #0d1117;
  --bg-elev: #151b24;
  --fg: #e6edf3;
  --fg-muted: #8b949e;
  --border: #30363d;
  --accent: #58a6ff;
  --accent-2: #79c0ff;
  --warn: #d29922;
  --good: #3fb950;
  --bad: #f85149;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", monospace;
  --max-w: 1100px;
  --radius: 8px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 16px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-elev: #f6f8fa;
    --fg: #1f2328;
    --fg-muted: #57606a;
    --border: #d0d7de;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.08);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 600;
  font-size: 18px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}
.site-nav a { color: var(--fg-muted); }
.site-nav a:hover { color: var(--fg); text-decoration: none; }

main { padding: 48px 0 96px; }

.hero {
  padding: 32px 0 56px;
  text-align: left;
}
.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 640px;
  margin: 0 0 28px;
}

.trust-bar {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0 40px;
}
.trust-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  font-size: 14px;
}

.section { padding: 32px 0; }
.section-title {
  font-size: 24px;
  margin: 0 0 16px;
  font-weight: 600;
}
.section-lead {
  color: var(--fg-muted);
  max-width: 640px;
  margin: 0 0 24px;
}

.grid {
  display: grid;
  gap: 16px;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}
.card p { margin: 0 0 12px; color: var(--fg-muted); font-size: 14px; }

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #0d1117;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  text-decoration: none;
}
.btn-secondary {
  background: var(--bg-elev);
  color: var(--fg);
}
.btn-secondary:hover { border-color: var(--fg-muted); text-decoration: none; }

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
}
.pill-shipped { background: rgba(63, 185, 80, 0.12); color: var(--good); border-color: var(--good); }
.pill-beta    { background: rgba(210, 153, 34, 0.12); color: var(--warn); border-color: var(--warn); }
.pill-planned { background: rgba(139, 148, 158, 0.12); color: var(--fg-muted); }
.pill-muted   { color: var(--fg-muted); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
th { color: var(--fg-muted); font-weight: 500; }

code, pre {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}
pre {
  padding: 12px 16px;
  overflow-x: auto;
  line-height: 1.5;
}
pre code { background: transparent; border: none; padding: 0; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--fg-muted);
  font-size: 13px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: var(--fg-muted); }
.site-footer a:hover { color: var(--fg); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.callout {
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  background: var(--bg-elev);
  margin: 16px 0;
  font-size: 14px;
}
.callout-warn  { border-left-color: var(--warn); }
.callout-bad   { border-left-color: var(--bad); }
.callout-good  { border-left-color: var(--good); }
