/* Choreganize site styles. Pure CSS, no dependencies. */

:root {
  --teal: #14b8a6;
  --blue: #3b82f6;
  --ink: #0f172a;
  --muted: #475569;
  --bg-top: #f0fdfa;
  --bg-bot: #eff6ff;
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --maxw: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e2e8f0;
    --muted: #94a3b8;
    --bg-top: #0b1120;
    --bg-bot: #0f172a;
    --card: #111a2e;
    --border: rgba(148, 163, 184, 0.16);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg-top), var(--bg-bot));
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }

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

/* Header */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; border-radius: 9px; }

.site-head nav a {
  margin-left: 22px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--muted);
}

.site-head nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  text-align: center;
  padding: 56px 0 40px;
}

.hero .badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(20, 184, 166, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 22px 0 10px;
  background: linear-gradient(120deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .tagline {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 600;
  margin: 0 auto 14px;
  max-width: 620px;
}

.hero p.lede {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 30px;
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--teal), var(--blue));
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.3);
}

.btn-ghost {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
}

/* Features */
.section { padding: 40px 0; }

.section h2 {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.section .sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 36px;
  max-width: 540px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}

.card:hover { transform: translateY(-4px); }

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, rgba(20, 184, 166, 0.16), rgba(59, 130, 246, 0.16));
  margin-bottom: 16px;
}

.card .icon svg { width: 24px; height: 24px; stroke: var(--teal); }

.card h3 { margin: 0 0 6px; font-size: 1.12rem; letter-spacing: -0.01em; }

.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Privacy band */
.band {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 44px 36px;
  text-align: center;
  margin: 24px 0;
}

.band h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -0.02em; }

.band p { color: var(--muted); max-width: 560px; margin: 0 auto 22px; }

/* Footer */
.site-foot {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 30px 0 50px;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-foot a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.site-foot a:hover { color: var(--ink); }
.site-foot .foot-links { display: flex; flex-wrap: wrap; }

/* Article (privacy page) */
.article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 44px clamp(24px, 5vw, 56px);
  margin: 28px 0;
}

.article h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -0.02em; margin: 0 0 6px; }
.article .updated { color: var(--muted); font-style: italic; margin: 0 0 28px; }
.article h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 32px 0 8px; }
.article p { color: var(--ink); }
.article ul { color: var(--ink); padding-left: 22px; }
.article li { margin: 6px 0; }
.article code {
  background: rgba(20, 184, 166, 0.12);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}
.article .sign { color: var(--muted); margin-top: 36px; font-weight: 600; }
.back-link { display: inline-block; margin-top: 8px; font-weight: 600; text-decoration: none; }

/* 404 */
.center-screen {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.center-screen h1 { font-size: clamp(3rem, 12vw, 6rem); margin: 0; letter-spacing: -0.03em; }
