/* OG VIBE APPS — shared static site styles.
   No frameworks, no build step, no external fonts. */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --border: #e7e5e2;
  --text: #1c1b1a;
  --text-muted: #57534f;
  --accent: #5b3df0;
  --accent-ink: #2c1f7a;
  --max-width: 1080px;
  --max-width-prose: 760px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  text-decoration-color: currentColor;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Layout shells ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.site-header nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  margin-left: 24px;
}

.site-header nav a:hover {
  color: var(--text);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 96px;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer__links a {
  color: var(--text-muted);
  margin-right: 20px;
}

.site-footer__links a:last-child {
  margin-right: 0;
}

/* ---------- Home page ---------- */

.hero {
  padding: 96px 0 64px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: #efeafd;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.hero p.lede {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.apps-section {
  padding: 48px 0 96px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}

.app-card__main {
  flex: 1 1 360px;
  min-width: 0;
}

.app-card__name {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
}

.app-card__tagline {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
  margin: 0 0 16px;
}

.app-card__description {
  color: var(--text-muted);
  margin: 0;
  max-width: 52ch;
}

.app-card__links {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.app-card__links a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-ink);
}

.app-card__links a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .hero {
    padding: 64px 0 40px;
  }

  .app-card {
    padding: 28px;
  }
}

/* ---------- Legal / policy pages ---------- */

.policy-header {
  padding: 56px 0 8px;
  max-width: var(--max-width-prose);
  margin: 0 auto;
}

.policy-header .back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.policy-header .back-link:hover {
  color: var(--text);
}

.policy-header h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 14px;
  color: var(--text-muted);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.policy-meta strong {
  color: var(--text);
  font-weight: 600;
}

.policy-content {
  max-width: var(--max-width-prose);
  margin: 0 auto;
  padding-bottom: 96px;
}

.policy-content h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
}

.policy-content h2:first-child {
  margin-top: 32px;
}

.policy-content h3 {
  font-size: 16px;
  margin: 28px 0 8px;
}

.policy-content p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.policy-content ul,
.policy-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-muted);
}

.policy-content li {
  margin-bottom: 6px;
}

.policy-content strong {
  color: var(--text);
}

.policy-toc {
  max-width: var(--max-width-prose);
  margin: 0 auto 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
}

.policy-toc p {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.policy-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
  font-size: 14px;
}

.policy-toc li {
  margin-bottom: 6px;
  break-inside: avoid;
}

.policy-toc a {
  text-decoration: none;
  color: var(--text);
}

.policy-toc a:hover {
  color: var(--accent-ink);
}

@media (max-width: 560px) {
  .policy-toc ol {
    columns: 1;
  }
}
