/* Ownership Lens — public site shared styles.
 * Dark editorial theme matching the extension's welcome page.          */

:root {
  color-scheme: dark;
  --bg: #07080c;
  --bg-2: #0c0e14;
  --bg-3: #141621;
  --ink: #f4f5f8;
  --ink-dim: #b4bac8;
  --ink-faint: #6a7083;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #72a4f2;
  --red: #ef4444;
  --green: #10b981;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 15.5px/1.6 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}
.bg-glow-a { background: radial-gradient(circle, #10b981 0%, transparent 70%); top: -180px; left: -140px; }
.bg-glow-b { background: radial-gradient(circle, #ef4444 0%, transparent 70%); bottom: -220px; right: -120px; }

.shell {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 28px 96px;
}

.shell-wide { max-width: 1040px; }

/* Nav */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.brand-name {
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.005em;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 150ms ease;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 500; }

/* Type */

h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 16px;
}

h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 38px 0 14px;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--ink);
}

p { margin: 0 0 14px; color: var(--ink-dim); }

p strong { color: var(--ink); font-weight: 600; }

a { color: var(--accent); }
a:hover { text-decoration: underline; }

ul { color: var(--ink-dim); padding-left: 22px; margin: 0 0 14px; }
ul li { margin-bottom: 6px; }
ul li::marker { color: var(--ink-faint); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-dim);
  margin-bottom: 28px;
}

.muted { color: var(--ink-faint); font-size: 13.5px; }

.stamp {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* Buttons */

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 140ms ease, background 180ms ease, border-color 180ms ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, #ffffff, #e4e6ec);
  color: #07080c;
}

.btn-primary:hover { transform: translateY(-1px); text-decoration: none; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.kofi-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: #72a4f2;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform 140ms ease, background 140ms ease;
}

.kofi-btn:hover {
  transform: translateY(-1px);
  background: #5d93e8;
  text-decoration: none;
}

.kofi-cup { width: 18px; height: 18px; }

/* Cards / sections */

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  margin: 16px 0;
}

.card h3 { margin-top: 0; }

.card.accent {
  border-color: rgba(114, 164, 242, 0.3);
  background: rgba(114, 164, 242, 0.06);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }

/* Footer */

.ftr {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 12.5px;
}

.ftr a { color: var(--ink-faint); }
.ftr a:hover { color: var(--ink); text-decoration: none; }

.ftr-links {
  display: flex;
  gap: 16px;
}

/* Code / preformatted */

code {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--ink);
}

pre {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  font-size: 12.5px;
  color: var(--ink-dim);
}

pre code {
  background: transparent;
  padding: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

/* Table-ish lists for privacy policy */

.definition-list {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 10px 24px;
  margin: 12px 0;
}

@media (max-width: 620px) { .definition-list { grid-template-columns: 1fr; gap: 4px 0; } }

.definition-list dt {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
  padding-top: 4px;
}

.definition-list dd {
  margin: 0 0 10px;
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.55;
}
