/* Sidebit site. Plain CSS, no build step.
   Shape rule: buttons 10px, cards and images 14px.
   One accent (Sidebit blue), one theme per visit (follows the system). */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --tint: #e8eefc;
  --ink: #121a2b;
  --muted: #526079;
  --line: #d9e0eb;
  --accent: #2253d9;
  --accent-hover: #1a43b8;
  --on-accent: #ffffff;
  --shadow: 0 24px 60px rgb(24 42 84 / 0.16), 0 2px 8px rgb(24 42 84 / 0.08);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --page: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d121b;
    --surface: #151c29;
    --tint: #17223c;
    --ink: #e9eef6;
    --muted: #9ba8bc;
    --line: #273144;
    --accent: #86abff;
    --accent-hover: #a5c0ff;
    --on-accent: #0d121b;
    --shadow: 0 24px 60px rgb(0 0 0 / 0.5), 0 2px 8px rgb(0 0 0 / 0.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--page); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 650; font-size: 18px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 20px; border-radius: 10px;
  font: 600 15.5px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { color: var(--ink); border-color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding-top: 56px; padding-bottom: 0; }
.hero h1 {
  margin: 0; max-width: 17ch;
  font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04;
  font-weight: 680; letter-spacing: -0.035em; text-wrap: balance;
}
.hero p {
  margin: 22px 0 0; max-width: 54ch;
  font-size: clamp(17px, 1.5vw, 19.5px); color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-shot {
  margin-top: 52px; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .rise-2 { animation-delay: 90ms; }
  .rise-3 { animation-delay: 180ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- sections ---------- */
section { padding-top: 104px; padding-bottom: 0; }
h2 {
  margin: 0; max-width: 22ch;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1;
  font-weight: 650; letter-spacing: -0.028em; text-wrap: balance;
}
.lede { margin: 16px 0 0; max-width: 58ch; color: var(--muted); }

/* feature grid: five cells, 6 columns. 6 / 3+3 / 4+2 */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 44px; }
.cell {
  grid-column: span 3; display: flex; flex-direction: column;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); overflow: hidden;
}
.cell-wide { grid-column: span 6; }
.cell-4 { grid-column: span 4; }
.cell-2 { grid-column: span 2; }
.cell-tint { background: var(--tint); border-color: transparent; }
.cell-text { padding: 28px 28px 26px; }
.cell h3 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 620; letter-spacing: -0.015em; }
.cell p { margin: 8px 0 0; max-width: 52ch; color: var(--muted); font-size: 16px; }
.cell-img { margin: auto 28px 0; border-radius: 14px 14px 0 0; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; }
.cell-img.flush { margin-left: 0; margin-right: 0; border-left: 0; border-right: 0; border-radius: 0; }
.cell-img.center { align-self: center; margin: auto 28px 28px; border-radius: 14px; border: 0; box-shadow: var(--shadow); }
.cell-img img { width: 100%; }
.cell .spacer { flex: 1; }

/* privacy band */
.band {
  margin-top: 104px; padding-top: 72px; padding-bottom: 72px; background: var(--tint);
}
.band section { padding-top: 0; padding-bottom: 0; }
.band h2 { max-width: 18ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 40px 0 0; padding: 0; list-style: none; }
.facts strong { display: block; font-weight: 620; font-size: 18px; letter-spacing: -0.01em; }
.facts span { display: block; margin-top: 4px; color: var(--muted); font-size: 16px; }
.band .more { display: inline-block; margin-top: 36px; font-weight: 600; }

/* make it yours */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.pair img { border-radius: 14px; box-shadow: var(--shadow); }
.pair img:last-child { margin-top: 48px; }

/* footer */
footer { margin-top: 112px; border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 40px; font-size: 15px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- document pages (privacy, what's new) ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 24px 0; }
.doc h1 { margin: 0; font-size: clamp(34px, 5vw, 46px); line-height: 1.08; font-weight: 680; letter-spacing: -0.032em; }
.doc .meta { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 48px 0 0; max-width: none; font-size: 23px; line-height: 1.25; letter-spacing: -0.018em; }
.doc p, .doc li { color: var(--ink); }
.doc p { margin: 14px 0 0; }
.doc ul { margin: 14px 0 0; padding-left: 22px; }
.doc li { margin-top: 6px; }
.doc code { font: 500 0.88em var(--mono); background: var(--tint); padding: 2px 6px; border-radius: 5px; }
.callout { margin: 32px 0 0; padding: 24px 26px; border-radius: 14px; background: var(--tint); }
.callout p { margin: 0; font-size: 18px; }

.perms { margin: 22px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 16px 28px; }
.perms dt { font: 500 14.5px/1.7 var(--mono); color: var(--ink); }
.perms dd { margin: 0; color: var(--muted); font-size: 16px; }

.log { margin: 44px 0 0; padding: 0; list-style: none; }
.log > li { margin: 0; padding: 0 0 32px; display: grid; grid-template-columns: 132px 1fr; gap: 8px 24px; }
.log > li + li { padding-top: 32px; border-top: 1px solid var(--line); }
.ver { font: 500 15px/1.6 var(--mono); }
.ver time { display: block; color: var(--muted); font-size: 13.5px; }
.ver .latest { display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: 600 12px/1.4 var(--sans); }
.log h2 { margin: 0; font-size: 21px; }
.log ul { margin: 10px 0 0; }
.log ul li { color: var(--muted); font-size: 16px; }
.log ul li b { color: var(--ink); font-weight: 560; }
.earlier { margin: 8px 0 0; padding: 24px 26px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.earlier b { color: var(--ink); font-weight: 600; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  section { padding-top: 76px; }
  .grid { grid-template-columns: 1fr; }
  .cell, .cell-wide, .cell-4, .cell-2 { grid-column: auto; }
  .facts { grid-template-columns: 1fr; gap: 22px; }
  .band { margin-top: 76px; padding-top: 56px; padding-bottom: 56px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 36px; }
  .hero-shot { margin-top: 36px; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .doc { padding-left: 16px; padding-right: 16px; }
  .nav-links { gap: 18px; }
  .nav-links .hide-sm { display: none; }
  .cell-text { padding: 22px 20px 20px; }
  .cell-img { margin-left: 20px; margin-right: 20px; }
  .cell-img.center { margin: auto 20px 20px; }
  .perms { grid-template-columns: 1fr; gap: 2px 0; }
  .perms dd { margin-bottom: 14px; }
  .log > li { grid-template-columns: 1fr; }
  .pair img:last-child { margin-top: 24px; }
}
