/* Sharpn — marketing & legal site
   Dark, branded to match the app (green #34d399 on near-black #0B1220). */

:root {
  --bg:        #0B1220;
  --surface:   #172033;
  --border:    #243049;
  --text:      #E6EAF2;
  --muted:     #93A0B5;
  --green:     #34d399;
  --green-dim: #34d39922;
  --maxw:      760px;
  --radius:    16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ── Header ─────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); }
.brand-logo { width: 30px; height: 30px; display: block; }
.brand:hover { text-decoration: none; }

/* Hero logo (landing) — transparent solid-green mark with a shape-following glow */
.hero-logo { width: 104px; height: 104px; display: block; margin: 0 auto 24px; filter: drop-shadow(0 8px 26px rgba(52,211,153,0.32)); }
nav.site a { color: var(--muted); font-size: 14px; font-weight: 600; margin-left: 18px; }
nav.site a:hover { color: var(--text); text-decoration: none; }

/* ── Hero (landing) ─────────────────────────────────────── */
.hero { text-align: center; padding: 88px 0 56px; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.05; letter-spacing: -1.5px; margin: 0 0 16px; }
.hero h1 .accent { color: var(--green); }
.hero p.lede { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 auto 32px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 48px 0; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.badge {
  display: inline-block; background: var(--green-dim); color: var(--green);
  border: 1px solid var(--green); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 700;
}

/* ── Legal / content pages ──────────────────────────────── */
main.doc { padding: 40px 0 80px; }
main.doc h1 { font-size: 32px; letter-spacing: -0.5px; margin: 0 0 6px; }
main.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
main.doc h2 { font-size: 20px; margin: 38px 0 10px; padding-top: 8px; }
main.doc h3 { font-size: 16px; margin: 22px 0 6px; color: var(--text); }
main.doc p, main.doc li { color: #C9D2E0; }
main.doc ul { padding-left: 22px; }
main.doc li { margin: 4px 0; }
main.doc strong { color: var(--text); }

.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--green); border-radius: 10px;
  padding: 14px 18px; margin: 20px 0;
}
.callout.warn { border-left-color: #F59E0B; }

table.tp { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
table.tp th, table.tp td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.tp th { color: var(--muted); font-weight: 600; }

.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 22px; margin: 0 0 28px; }
.toc h2 { margin: 0 0 8px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; padding: 0; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin: 2px 0; font-size: 14px; }

.lic { font-size: 14px; }
.lic .pkg { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.lic .pkg .name { color: var(--text); font-weight: 600; }
.lic .pkg .ver { color: var(--muted); font-weight: 400; font-size: 13px; }
.lic .pkg .type { color: var(--green); font-size: 13px; white-space: nowrap; }

/* ── Footer ─────────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; }
footer.site a { color: var(--muted); font-weight: 600; }
footer.site a:hover { color: var(--text); text-decoration: none; }
footer.site .links a { margin-right: 18px; }

@media (max-width: 560px) {
  .toc ol { columns: 1; }
  nav.site a { margin-left: 12px; }
}
