/* GymClaw public site — landing, privacy policy, account deletion. */
:root {
  --bg: #f1ebe0;
  --card: #fffaf2;
  --text: #2a2622;
  --muted: #6f675d;
  --line: #ddd3c4;
  --accent: #c4553f;
  --accent-text: #fff;
  --error: #9a3b2a;
  --ok: #2f6b4f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1a17;
    --card: #292521;
    --text: #f1ebe0;
    --muted: #b3a99c;
    --line: #3d3731;
    --accent: #e0735c;
    --accent-text: #1d1a17;
    --error: #f08b74;
    --ok: #7fc8a4;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }

.site-header, .site-footer, main { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.site-nav { display: flex; gap: 16px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--text); }

main { padding-bottom: 48px; }
h1 { font-size: clamp(32px, 7vw, 48px); line-height: 1.1; letter-spacing: -0.03em; margin: 24px 0 12px; }
h2 { font-size: 22px; margin: 36px 0 8px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 20px 0 4px; }
p, li { color: var(--text); }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.muted { color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 16px 0; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 24px 0; }
.grid .card { margin: 0; }
.grid h3 { margin-top: 0; }

.badge { display: inline-block; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

.btn {
  display: inline-block; width: 100%; padding: 12px 16px; border-radius: 10px; border: none;
  background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 700; cursor: pointer; text-align: center;
}
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn--secondary { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn--danger { background: var(--error); color: var(--accent-text); }

label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
input[type="email"], input[type="text"] {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px;
}
input.code { font-family: ui-monospace, monospace; font-size: 22px; letter-spacing: 6px; text-align: center; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.status { margin: 12px 0 0; font-size: 15px; }
.status--error { color: var(--error); }
.status--ok { color: var(--ok); }

.policy h2 { border-top: 1px solid var(--line); padding-top: 24px; }
.policy table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }

.site-footer { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 32px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
