/* Klubklar — Website. Self-hosted Inter, brand tokens, no external requests. */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  --navy: #0f4c81;
  --navy-800: #0d3f6b;
  --navy-900: #0a2f50;
  --teal: #4fc3a1;
  --teal-600: #35a888;
  --ink: #16212c;
  --muted: #5b6b7a;
  --line: #e5e9ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-tint: #eef3f8;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 33, 44, .06);
  --shadow: 0 10px 30px rgba(13, 63, 107, .10);
  --shadow-lg: 0 24px 60px rgba(13, 63, 107, .18);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--teal-600); margin-bottom: .8em; }
.lead { font-size: 1.18rem; color: var(--muted); }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 650; font-size: 1rem; padding: .8em 1.4em; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; transition: .15s ease; text-decoration: none;
}
.btn-primary { background: var(--teal); color: #08281f; }
.btn-primary:hover { background: var(--teal-600); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.10); text-decoration: none; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--navy); text-decoration: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav .brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); font-weight: 550; font-size: .98rem; }
.nav-links a:hover { color: var(--navy); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--ink); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-tint) 0%, #fff 100%); padding: 72px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--muted); }
.hero-shot { position: relative; }

/* Browser frame for screenshots */
.frame { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #f1f4f8; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.frame-bar i:nth-child(1){ background:#ff5f57; } .frame-bar i:nth-child(2){ background:#febc2e; } .frame-bar i:nth-child(3){ background:#28c840; }
.frame-bar span { margin-left: 10px; font-size: .78rem; color: #8a99a8; }
.frame img { width: 100%; display: block; cursor: zoom-in; }

/* Trust bar */
.trust { padding: 26px 0; border-bottom: 1px solid var(--line); }
.trust-row { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; font-size: .95rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 18px; height: 18px; stroke: var(--teal-600); }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 52px; align-items: center; padding: 40px 0; }
.feature.rev .feature-copy { order: 2; }
.feature.rev .feature-media { order: 1; }
.feature-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--ink); }
.feature-list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; stroke: var(--teal-600); }
.badge-soft { display: inline-block; background: var(--bg-tint); color: var(--navy); font-weight: 650; font-size: .82rem; padding: .3em .8em; border-radius: 999px; margin-bottom: 14px; }

/* Alt background */
.alt { background: var(--bg-soft); }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--bg-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .ico svg { width: 22px; height: 22px; stroke: var(--navy); }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Mobile band */
.phones { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.phone { width: 232px; border-radius: 30px; padding: 9px; background: #0d1b26; box-shadow: var(--shadow-lg); }
.phone img { width: 100%; border-radius: 22px; display: block; cursor: zoom-in; }

/* Operator band */
.operator { background: var(--navy); color: #eaf1f8; }
.operator .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.operator h2 { color: #fff; }
.operator p { color: #cdddf0; }
.operator .op-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 26px; }
.operator .op-card dt { color: #9fc0e0; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 12px; }
.operator .op-card dt:first-child { margin-top: 0; }
.operator .op-card dd { margin: 2px 0 0; color: #fff; font-weight: 600; }
.operator a { color: #bfe6d8; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #cdddf0; max-width: 620px; margin: 0 auto 26px; }

/* Footer */
.footer { background: #0a1720; color: #9fb2c2; padding: 48px 0 30px; font-size: .93rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.footer .brand img { height: 26px; margin-bottom: 12px; }
.footer a { color: #cdd9e4; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #7d93a4; }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 820px; }
.legal h1 { margin-bottom: .6em; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal h3 { margin-top: 1.4em; }
.legal p, .legal li { color: #33414f; }
.legal .back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 26px; font-weight: 600; }
.legal .note { background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--teal); padding: 14px 18px; border-radius: 10px; margin: 18px 0; font-size: .95rem; }
.legal address { font-style: normal; }

/* Cookie banner */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 18px 20px;
  display: none;
}
.cookie.show { display: block; }
.cookie p { font-size: .92rem; color: var(--ink); margin: 0 0 12px; }
.cookie .row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Lightbox — click a screenshot to enlarge */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(10, 23, 32, .82); cursor: zoom-out;
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: min(1160px, 96vw); max-height: 92vh; width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); cursor: default;
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; transition: background .15s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .3); }

@media (max-width: 900px) {
  .hero-grid, .feature, .feature.rev .feature-copy, .feature.rev .feature-media,
  .operator .wrap { grid-template-columns: 1fr; }
  .feature.rev .feature-copy, .feature.rev .feature-media { order: initial; }
  .feature-media { order: -1; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(13, 63, 107, .12);
    padding: 6px 20px 18px;
  }
  .nav-links.open a:not(.btn) {
    padding: 15px 4px; border-bottom: 1px solid var(--line);
    font-size: 1.05rem; font-weight: 600; color: var(--ink); text-align: left;
  }
  .nav-links.open a:not(.btn):hover { color: var(--navy); text-decoration: none; }
  .nav-links.open a.btn {
    margin-top: 16px; width: 100%; justify-content: center; padding: 14px; font-size: 1.02rem;
  }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}
