/* FitKlib — site styles (home page and policy pages) */

:root {
  --bg: #0a0c0b;
  --bg-2: #101412;
  --panel: #151a17;
  --panel-2: #1c221e;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f1f4ef;
  --muted: #a1aaa4;
  --soft: #6f7a73;
  --lime: #c8f53c;
  --lime-2: #b2e01f;
  --lime-glow: rgba(200, 245, 60, 0.18);
  --ink: #0a0c0b;
  --danger: #ff8a7a;
  --ok: #c8f53c;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--lime); color: var(--ink); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-glow); }

.title-xl, .title-lg, .title-md {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.005em; line-height: 0.95; text-wrap: balance;
}
.title-xl { font-size: clamp(48px, 9vw, 112px); }
.title-lg { font-size: clamp(38px, 6vw, 68px); }
.title-md { font-size: clamp(24px, 3vw, 30px); line-height: 1.05; font-weight: 700; }
.hl { color: var(--lime); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--lime); color: var(--ink);
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 30px -10px rgba(200, 245, 60, 0.55);
}
.btn:hover { background: var(--lime-2); transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn svg { width: 18px; height: 18px; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,.06); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 11, 0.72);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.topbar[data-scrolled="true"] { border-bottom-color: var(--line); background: rgba(10, 12, 11, 0.9); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: 0.01em; text-transform: uppercase;
}
.logo b { color: var(--lime); font-weight: 800; }

.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }

.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .topbar__cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; gap: 0; padding: 12px var(--gutter) 20px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--text); }
  .nav li:last-child a { border-bottom: 0; }
  .nav__cta { display: block; padding-top: 16px; }
  .nav__cta .btn { display: flex; width: 100%; padding: 0 28px; border: 0; border-radius: 999px; color: var(--ink); font-weight: 700; }
}
@media (min-width: 961px) { .nav__cta { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section__head .title-lg { margin-bottom: 18px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 8vw, 100px); text-align: center; position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -10% 0 auto; height: 720px; z-index: -1;
  background:
    radial-gradient(600px 340px at 50% 10%, rgba(200, 245, 60, 0.16), transparent 70%),
    radial-gradient(900px 500px at 50% 0%, rgba(200, 245, 60, 0.05), transparent 70%);
  pointer-events: none;
}
.hero .title-xl { max-width: 980px; margin: 0 auto 24px; }
.hero__line { display: block; }
.hero .lead { margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.hero__media { position: relative; margin: clamp(48px, 7vw, 72px) auto 0; max-width: 1040px; }
.chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(21, 26, 23, 0.88); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  font-size: 13px; color: var(--muted); line-height: 1.3;
}
.chip strong { display: block; color: var(--text); font-size: 15px; }
.chip__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--lime); color: var(--ink); display: grid; place-items: center; flex: none; }
.chip__icon svg { width: 20px; height: 20px; }
.chip--a { left: -24px; top: 18%; }
.chip--b { right: -24px; bottom: 14%; }
@media (max-width: 1100px) { .chip--a { left: 16px; top: 16px; } .chip--b { right: 16px; bottom: 16px; } }
@media (max-width: 560px) { .chip { display: none; } }

/* ---------- Photo slots ---------- */
/* Each slot shows a labelled placeholder until the photo file exists.
   The <img> sits on top and removes itself if the file is missing. */
.photo {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 14px, transparent 14px 28px),
    var(--panel);
  border: 1px dashed rgba(200, 245, 60, 0.45);
}
.photo--wide { aspect-ratio: 16 / 9; }
.photo--tall { aspect-ratio: 3 / 4; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.photo:has(img) { border-style: solid; border-color: var(--line); }
.photo__label {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 20px; text-align: center; color: var(--muted); font-size: 14px;
}
.photo__label svg { width: 40px; height: 40px; color: var(--lime); margin-bottom: 6px; }
.photo__label strong { color: var(--text); font-size: 16px; }
.photo__label code { font-size: 13px; color: var(--lime); background: rgba(200,245,60,.08); padding: 2px 8px; border-radius: 6px; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 1040px; margin: 0 auto; }
.stat { background: var(--bg); padding: 28px 16px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 52px); line-height: 1; color: var(--lime); }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; text-align: center; padding: 40px 28px 32px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px;
  border-radius: 50%; border: 1px solid rgba(200,245,60,.4); color: var(--lime);
  font-family: var(--display); font-weight: 800; font-size: 22px;
}
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ---------- Programmes ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -16px auto 36px; }
.filter {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--muted); font: 600 14px/1 var(--body); cursor: pointer;
  transition: all .2s ease;
}
.filter:hover { color: var(--text); }
.filter[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--ink); }

.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program {
  display: flex; flex-direction: column; text-align: left;
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease;
}
.program:hover { transform: translateY(-4px); border-color: rgba(200,245,60,.35); }
.program[hidden] { display: none; }
.program__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.program__icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(200,245,60,.1); color: var(--lime); display: grid; place-items: center; }
.program__icon svg { width: 24px; height: 24px; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); padding: 5px 10px; border-radius: 999px; }
.program h3 { margin-bottom: 10px; }
.program p { color: var(--muted); font-size: 15px; flex: 1; }
.program__meta { display: flex; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.program__meta b { color: var(--text); font-weight: 600; }
@media (max-width: 960px) { .programs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .programs { grid-template-columns: 1fr; } }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  display: grid; gap: 10px; justify-items: center; align-content: start; text-align: center;
  padding: 32px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.feature__icon { width: 48px; height: 48px; margin-bottom: 6px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--lime); display: grid; place-items: center; }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 15px; max-width: 320px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s ease; }
.faq details[open] { border-color: rgba(200,245,60,.35); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8f53c' stroke-width='2.5'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 24px 22px; color: var(--muted); }
.faq__body a { color: var(--lime); }

/* ---------- Contact ---------- */
.contact-page { padding-bottom: clamp(64px, 9vw, 112px); }
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; max-width: 1000px; margin: 0 auto; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line-2);
  font: 400 16px/1.4 var(--body); transition: border-color .2s ease, box-shadow .2s ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1aaa4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-glow); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.agree input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--lime); flex: none; }
.agree a { color: var(--lime); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.status { margin: 0; font-size: 15px; }
.status[data-tone="ok"] { color: var(--ok); }
.status[data-tone="bad"] { color: var(--danger); }
.status[data-tone="wait"] { color: var(--muted); }

.info { display: grid; gap: 24px; align-content: start; }
.info h3 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.info p, .info address { font-style: normal; color: var(--text); }
.info a { color: var(--lime); text-decoration: none; }
.info a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* ---------- Closing banner ---------- */
.closer {
  max-width: 1040px; margin: 0 auto; text-align: center;
  padding: clamp(44px, 7vw, 72px) var(--gutter); border-radius: var(--radius-lg);
  background: var(--lime); color: var(--ink);
}
.closer .title-lg { margin-bottom: 14px; }
.closer p { color: rgba(10,12,11,.72); max-width: 520px; margin: 0 auto 28px; font-size: 18px; }
.closer .btn { background: var(--ink); color: var(--text); box-shadow: none; }
.closer .btn:hover { background: #222826; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; text-align: center; }
.footer .logo { margin-bottom: 14px; }
.footer__blurb { color: var(--muted); max-width: 460px; margin: 0 auto 28px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; list-style: none; margin: 0 0 32px; padding: 0; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer__links a:hover { color: var(--lime); }
.footer__legal { border-top: 1px solid var(--line); padding-top: 24px; font-size: 13px; color: var(--soft); display: grid; gap: 6px; }
.footer__legal a { color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 50%; bottom: 20px; z-index: 80;
  width: min(760px, calc(100% - 32px));
  transform: translate(-50%, 140%); opacity: 0; visibility: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .3s ease, visibility 0s linear .4s;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
  padding: 20px 22px; display: flex; gap: 20px; align-items: center;
}
.cookie[data-show="true"] { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.cookie p { margin: 0; font-size: 14px; color: var(--muted); }
.cookie a { color: var(--lime); }
.cookie__btns { display: flex; gap: 10px; flex: none; }
@media (max-width: 640px) {
  .cookie { flex-direction: column; align-items: stretch; text-align: center; bottom: 12px; }
  .cookie__btns .btn { flex: 1; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Policy pages ---------- */
.legal-hero { text-align: center; padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 48px); }
.legal-hero .title-lg { margin-bottom: 14px; }
.legal-hero p { color: var(--muted); max-width: 600px; margin: 0 auto; }
.legal { max-width: 820px; margin: 0 auto; padding-bottom: clamp(64px, 9vw, 112px); }
.legal__intro { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--lime); border-radius: 14px; padding: 22px 24px; margin-bottom: 40px; color: var(--muted); }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 26px; letter-spacing: .01em; margin-bottom: 14px; }
.legal h3 { font-size: 17px; font-weight: 700; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); font-weight: 600; }
.legal ul { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--lime); }
.legal a { color: var(--lime); }
.legal address { font-style: normal; color: var(--text); }
