/* LifeSync — shared site styles.
   Palette is taken from the app's Tailwind config (client/tailwind.config.js) so the website and the
   app read as one product: warm dark neutrals with a terracotta accent, NOT the navy/orange this site
   used to carry. Dark only, deliberately — it matches the app's signature look. */
:root {
  color-scheme: dark;
  --bg:        #1a1613;  /* app background      (slate-900) */
  --surface:   #241f1a;  /* cards / surfaces    (slate-800) */
  --border:    #362f27;  /* borders             (slate-700) */
  --border-hi: #4c4339;  /* stronger dividers   (slate-600) */
  --text:      #efe8dd;  /* primary text        (slate-100) */
  --muted:     #a99b8b;  /* muted text          (slate-400) */
  --dim:       #80735f;  /* faint text          (slate-500) */
  --accent:    #d2814f;  /* links / icons       (brand-400) */
  --accent-hi: #eabfa6;  /* link hover          (brand-200) */
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Site header ─────────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, #000);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
.site-header .inner {
  max-width: 760px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; gap: 11px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.brand span { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }

/* ── Document pages (privacy / terms / delete) ───────────────────────────── */
main { max-width: 760px; margin: 0 auto; padding: 40px 22px 72px; }

h1 { font-size: 30px; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--text); }
h2 {
  font-size: 19px; letter-spacing: -0.01em; margin: 40px 0 10px; color: var(--text);
  padding-top: 20px; border-top: 1px solid var(--border);
}
h2:first-of-type { border-top: 0; padding-top: 0; }
h3 { font-size: 16px; margin: 26px 0 8px; color: var(--text); }
p  { margin: 0 0 14px; max-width: 68ch; }

.muted { color: var(--dim); font-size: 13.5px; }
.lede  { color: var(--muted); font-size: 16px; }

.box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; margin: 22px 0;
}
.box p:last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 14.5px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

ul, ol { padding-left: 20px; max-width: 68ch; }
li { margin: 7px 0; }

code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }

/* ── Site footer ─────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 56px;
  color: var(--dim); font-size: 13px;
}
.site-footer .inner {
  max-width: 760px; margin: 0 auto; padding: 22px;
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
}
.site-footer a { color: var(--muted); }
.site-footer .spacer { flex: 1 1 auto; }

/* ── Centred single-screen pages (landing, join) ─────────────────────────── */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.center-card { width: 100%; max-width: 420px; text-align: center; }
.center-card .mark { width: 76px; height: 76px; border-radius: 20px; margin: 0 auto 18px; display: block; }
.center-card h1 { font-size: 27px; margin: 0 0 10px; }
.center-card p { margin: 0 auto 18px; max-width: 38ch; color: var(--muted); font-size: 15px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px 24px; text-align: center; box-shadow: 0 24px 60px -28px rgba(0,0,0,.75);
}

.btn {
  display: block; width: 100%; padding: 13px; border-radius: 12px; font-weight: 600;
  font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: var(--font);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: #bf6536; color: #fbf1ea; }
.btn-primary:hover { background: #a4522a; color: #fbf1ea; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); margin-top: 10px; }
.btn-ghost:hover { color: var(--text); border-color: var(--border-hi); }

.links { margin-top: 26px; font-size: 13px; color: var(--dim); }
.links a { color: var(--muted); }

@media (max-width: 560px) {
  h1 { font-size: 25px; }
  main { padding: 30px 18px 56px; }
  table { font-size: 13.5px; }
  th, td { padding: 9px 8px; }
}

/* Warn variant of .box — used by terms §5 and the Drive section on the deletion page. */
.box.warn { border-color: #854120; background: #221912; }
.box.warn h2 { border-top: 0; padding-top: 0; margin-top: 0; }
code { background: var(--bg); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; font-size: 0.9em; }
