/* CopticLife landing site — shared styles. Self-contained, theme-aware. */

:root {
  --gold: #c9a84c;
  --gold-dim: #a8893a;
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --border: #262626;
  --text: #f2f2f2;
  --text-dim: #a3a3a3;
  --radius: 14px;
  --maxw: 760px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf8f3;
    --bg-elev: #ffffff;
    --border: #e5e0d5;
    --text: #1a1a1a;
    --text-dim: #5c5c5c;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a; --bg-elev: #141414; --border: #262626;
  --text: #f2f2f2; --text-dim: #a3a3a3;
}
:root[data-theme="light"] {
  --bg: #faf8f3; --bg-elev: #ffffff; --border: #e5e0d5;
  --text: #1a1a1a; --text-dim: #5c5c5c;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 0;
}

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

/* Header */
header.site {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  z-index: 10;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; text-decoration: none; color: var(--text); }
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: inline-block;
}
header.site nav a { color: var(--text-dim); text-decoration: none; margin-left: 18px; font-size: 14px; }
header.site nav a:hover { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 72px 0 40px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.5px; }
.hero p.lead { font-size: 18px; color: var(--text-dim); max-width: 540px; margin: 0 auto 28px; }
.badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-elev); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
}
.badge:hover { border-color: var(--gold); }
.badge small { display: block; color: var(--text-dim); font-weight: 400; font-size: 11px; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 48px 0; }
.feature { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* Legal / content pages */
.doc { padding: 48px 0 80px; }
.doc h1 { font-size: 30px; margin: 0 0 6px; }
.doc .updated { color: var(--text-dim); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 20px; margin: 34px 0 10px; }
.doc h3 { font-size: 16px; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc a { color: var(--gold); }
.doc ul { padding-left: 20px; }
.doc .note {
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 10px; padding: 12px 16px; font-size: 14px; color: var(--text-dim);
}

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 28px 0; color: var(--text-dim); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
footer.site a { color: var(--text-dim); text-decoration: none; }
footer.site a:hover { color: var(--text); }
footer.site .links a { margin-left: 16px; }

/* Deep-link redirect page */
.redirect { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.redirect .spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--gold); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
