/* Gym Register website. Palette and shapes are the apps' own (dark by default, light when the visitor's system asks for it). */
:root {
  --brand: #1f6feb;
  --brand-dark: #14508f;
  --logo-top: #003098;
  --logo-bottom: #001449;
  --bg: #0f1420;
  --card: #1a2233;
  --text: #eef1f6;
  --muted: #97a3b8;
  --border: #2a3448;
  --ok: #4ade80;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --elevation-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  --elevation-2: 0 4px 8px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6f8;
    --card: #ffffff;
    --text: #1a1f26;
    --muted: #6b7280;
    --border: #e2e5ea;
    --ok: #1e8a4c;
    --elevation-1: 0 1px 2px rgba(16, 24, 40, 0.08), 0 1px 3px rgba(16, 24, 40, 0.06);
    --elevation-2: 0 4px 8px rgba(16, 24, 40, 0.1), 0 2px 4px rgba(16, 24, 40, 0.06);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

img { max-width: 100%; height: auto; }

.wrap { width: min(1080px, 100% - 2rem); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; padding-block: 0.7rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 22%; }
.spacer { flex: 1; }
.nav { display: flex; gap: 1.25rem; align-items: center; }
.nav a { color: var(--muted); font-size: 0.95rem; }
.nav a:hover { color: var(--text); text-decoration: none; }

.lang { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.lang button {
  background: transparent; color: var(--muted); border: 0; padding: 0.3rem 0.8rem; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--brand); color: #fff; }

@media (max-width: 760px) { .nav .hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--logo-top), var(--logo-bottom));
  color: #fff;
  padding: 4.5rem 0 4rem;
}
.hero .wrap { display: grid; gap: 2.5rem; grid-template-columns: 1.2fr 0.8fr; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 0 1rem; letter-spacing: -0.02em; }
.hero p { font-size: 1.15rem; color: #c7d6f0; margin: 0 0 1.75rem; max-width: 34em; }
.hero .logo { justify-self: center; width: min(280px, 60vw); border-radius: 22%; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
@media (max-width: 820px) {
  .hero { padding: 3rem 0; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .hero .logo { order: -1; width: 140px; }
}

.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.8rem 1.5rem; border-radius: var(--radius-pill); font-weight: 600; font-size: 1rem;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
}
.btn:hover { text-decoration: none; background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn.secondary { background: transparent; color: var(--brand); }
.btn.secondary:hover { background: color-mix(in srgb, var(--brand) 12%, transparent); }

/* ---------- sections ---------- */
section { padding: 4rem 0; }
section.alt { background: color-mix(in srgb, var(--card) 55%, var(--bg)); border-block: 1px solid var(--border); }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.5rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.2; margin: 0 0 0.75rem; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 46em; margin: 0 0 2rem; }

.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--elevation-1);
}
.card h3 { margin: 0.75rem 0 0.35rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.two { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.audience h2 { margin-bottom: 1rem; }
.checks { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.7rem; }
.checks li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; }
.checks li::before { content: "✓"; color: var(--ok); font-weight: 700; }

.steps { counter-reset: step; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 0.75rem;
}
.steps h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.cta {
  text-align: center; background: linear-gradient(180deg, var(--logo-top), var(--logo-bottom)); color: #fff; border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
}
.cta p { color: #c7d6f0; max-width: 36em; margin: 0 auto 1.5rem; }
.cta .actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- legal pages ---------- */
.legal { padding: 3rem 0 4rem; }
.legal .wrap { width: min(780px, 100% - 2rem); }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.15; margin: 0 0 0.4rem; letter-spacing: -0.02em; }
.legal .updated { color: var(--muted); margin: 0 0 2rem; }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 0.6rem; }
.legal h3 { font-size: 1.05rem; margin: 1.4rem 0 0.4rem; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: 0.4rem; }
.legal .note {
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--radius-md);
  padding: 1rem 1.2rem; margin: 1.5rem 0;
}
.legal .toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem 1.4rem; margin-bottom: 2rem; }
.legal .toc ol { margin: 0.4rem 0 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
@media (max-width: 640px) { .legal .toc ol { columns: 1; } }
.legal .toc a { color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--border); }
.legal th { color: var(--muted); font-weight: 600; }

/* ---------- 404 ---------- */
.center { text-align: center; padding: 6rem 0; }
.center img { width: 96px; border-radius: 22%; margin-bottom: 1.5rem; }

/* ---------- language: with JS only the chosen language shows; without JS both are readable one after the other ---------- */
.js [data-lang]:not(.active) { display: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .site-footer, .lang { display: none; }
  body { background: #fff; color: #000; }
  .legal p, .legal li { color: #000; }
}
.center .actions { justify-content: center; }
