/* tci-landing — shared stylesheet. No preprocessor, no framework.
   Palette + typography mirror the Phase 42 product (services/web-ui)
   so the public landing reads as the same brand. */

:root {
  --bg: hsl(222 47% 11%);          /* #0F172A slate-900 — D-03 canvas */
  --surface: hsl(217 33% 17%);     /* #1E293B slate-800 — lifted card */
  --fg: hsl(210 40% 96%);          /* #F1F5F9 slate-100 */
  --fg-muted: hsl(215 20% 65%);    /* #94A3B8 slate-400 */
  --border: hsl(215 25% 27%);      /* slate-700 — subtle dividers */
  --accent: hsl(217 91% 60%);      /* #3B82F6 blue-500 — D-05 */
  --tagline: #9f9b6e;              /* warm gold-grey — matches AuthBrand */
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  margin: 0;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  body {
    font-size: 17px;
  }
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

@media (min-width: 768px) {
  .container {
    padding: 64px 40px 64px;
  }
}

/* Brand header — centered on every page (matches AuthBrand on /login). */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  margin-bottom: 56px;
}

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 4px;
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

@media (min-width: 768px) {
  .brand img {
    height: 48px;
  }
}

.brand-tagline {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tagline);
}

/* Typography */
h1, h2, h3 {
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--fg);
  letter-spacing: -0.01em;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 18px;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 20px;
  }
}

p {
  margin: 0 0 16px;
  color: var(--fg);
}

p.lead {
  font-size: 17px;
  color: var(--fg);
}

@media (min-width: 768px) {
  p.lead {
    font-size: 19px;
  }
}

/* Links + mono email emphasis */
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 120ms ease;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

a.mono {
  font-family: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95em;
}

/* Home — content sits on a card surface for visual separation from canvas. */
.home-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
}

@media (min-width: 768px) {
  .home-card {
    padding: 40px;
  }
}

/* Long-form pages (privacy/terms) sit directly on canvas — no card. */
section + section {
  margin-top: 36px;
}

/* Draft banner — used on /privacy + /terms */
.draft-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: hsl(40 80% 12%);
  border: 1px solid hsl(40 60% 30%);
  color: hsl(40 80% 80%);
  font-size: 14px;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 36px;
  line-height: 1.5;
}

.draft-banner::before {
  content: "⚠";
  font-size: 16px;
  line-height: 1.4;
}

/* Footer */
footer {
  color: var(--fg-muted);
  font-size: 13px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

@media (min-width: 480px) {
  footer {
    flex-direction: row;
    justify-content: space-between;
  }
}

footer a {
  color: var(--fg-muted);
}

footer a:hover {
  color: var(--fg);
}

.footer-links {
  display: inline-flex;
  gap: 10px;
}

.footer-sep {
  color: var(--border);
}
