/* PulseLyf subpages: support, privacy, terms, delete-account, about,
   exercises, vs, guides. Uses the homepage palette, Inter and button style.
   Static only: no 3D, no ambient animation. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ---------- Tokens (match index.html :root) ---------- */
:root {
  --bg: #07090c;
  --surface: #111418;
  --surface-2: #171b21;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --accent: #3dd6e8;
  --accent-soft: rgba(61,214,232,0.12);
  --green: #34d399;
  --text: #f2f5f8;
  --body: #c3cad4;
  --muted: #8b95a3;
  --grad: linear-gradient(135deg, #3dd6e8 0%, #34d399 100%);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: clip;
  /* Stacking context so the fixed ::before/::after sit above body's background, below content. */
  isolation: isolate;
}

/* ---------- Ambient background (homepage .ambient + .grid-overlay, static) ---------- */
/* Glows: blurred circles approximated as soft radial gradients. Teal top-left, green bottom-right. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle 55vmax at 10vmax 6vmax, rgba(61,214,232,.22), transparent 65%),
    radial-gradient(circle 50vmax at calc(100% - 8vmax) calc(100% - 4vmax), rgba(52,211,153,.18), transparent 65%);
}
/* Grid: same as homepage, fading out from the top. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}
[id] { scroll-margin-top: 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 20px 80px; }
@media (max-width: 640px) { .wrap { padding: 0 16px 64px; } }

/* ---------- Header / nav (homepage logo and glass nav, flat) ---------- */
header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px;
  padding: 24px 0; border-bottom: 1px solid var(--border);
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: #fff; text-decoration: none;
}
.logo .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
header nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  margin-left: 20px; transition: color .2s;
}
header nav a:hover { color: var(--text); }

/* ---------- Headings and copy ---------- */
h1 {
  color: #fff; font-size: clamp(30px, 5vw, 40px); line-height: 1.08; font-weight: 800;
  letter-spacing: -0.03em; margin: 32px 0 10px;
}
h2 {
  color: #fff; font-size: clamp(20px, 3vw, 24px); line-height: 1.25; font-weight: 700;
  letter-spacing: -0.02em; margin: 40px 0 14px;
}
h3 { color: #fff; font-weight: 700; letter-spacing: -0.01em; }
p, li { color: var(--body); font-size: 16px; line-height: 1.7; margin-bottom: 12px; }
ul, ol { padding-left: 22px; margin-bottom: 14px; }
ol li { margin-bottom: 8px; }
ul li::marker, ol li::marker { color: var(--muted); }
strong { color: var(--text); font-weight: 600; }
.updated { color: var(--muted); font-size: 13px; margin-bottom: 36px; }

/* ---------- Links ---------- */
a { color: var(--accent); text-underline-offset: 3px; }
p a, li a, td a, .callout a, .card a:not(.btn) {
  text-decoration: underline;
  text-decoration-color: rgba(61,214,232,.5);
}
p a:hover, li a:hover, td a:hover, .callout a:hover, .card a:not(.btn):hover {
  text-decoration-color: var(--accent);
}
a.inline { color: var(--accent); font-weight: 600; }

/* ---------- Callout and cards ---------- */
.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 12px;
  padding: 16px 18px; margin: 20px 0;
}
.callout p { color: var(--text); font-size: 15px; margin-bottom: 0; }
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 22px; margin-bottom: 14px;
  transition: border-color .3s;
}
.card:hover { border-color: rgba(61,214,232,.25); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { margin-bottom: 0; }
.card p + .btn { margin-top: 14px; }
.list-cards a { color: #fff; text-decoration: none; }
.list-cards .card h3 a { color: #fff; text-decoration: none; }
.list-cards .card h3 a:hover { color: var(--accent); }
.list-cards .card p { color: var(--body); }

/* ---------- Buttons (homepage btn-primary) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; margin-top: 6px;
  border-radius: 999px; background: var(--grad); color: #04110f;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 28px -12px rgba(61,214,232,.55);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { color: #04110f; transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(61,214,232,.7); }
.cta-row { margin-top: 10px; }

/* ---------- Lists, figures, breadcrumbs ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-top: 22px; }
.crumbs a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(139,149,163,.5); }
.crumbs a:hover { color: var(--accent); text-decoration-color: var(--accent); }
figure { margin: 18px 0 8px; }
figure img {
  display: block; max-width: 100%; height: auto; border-radius: 14px;
  border: 1px solid var(--border-strong); background: var(--surface);
}
figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ---------- Tables (dark surface, high-contrast header) ---------- */
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--border); border-radius: 14px; }
table {
  width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface);
  margin: 16px 0 22px;
}
.table-wrap table { margin: 0; }
th, td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border);
  vertical-align: top; line-height: 1.5; font-size: 14px; overflow-wrap: break-word;
}
tbody th { min-width: 120px; }
tr:last-child > * { border-bottom: 0; }
thead th { color: #fff; font-weight: 600; background: var(--surface-2); }
tbody th { color: #fff; font-weight: 600; background: transparent; }
td { color: var(--body); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border); margin-top: 56px; padding: 28px 0 40px;
  text-align: center; color: var(--muted); font-size: 13px; line-height: 1.7;
}
footer p { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
footer a { color: var(--body); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .btn:hover, .card:hover { transform: none; }
}
