/* flk-base.css — Fliko base tokens, resets, typography */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* =====================================================
   TOKENS
   ===================================================== */
:root {
  /* Brand palette */
  --flk-bg:           #0E0F14;
  --flk-bg-alt:       #161720;
  --flk-bg-card:      #1C1D2A;
  --flk-light:        #F7F6F4;
  --flk-light-alt:    #EDECEA;
  --flk-white:        #FFFFFF;

  /* Accent */
  --flk-hot:          #FF2D5E;
  --flk-hot-aa-light: #C4003F;
  --flk-hot-body:     #FF6B8A;
  --flk-violet:       #6C47FF;
  --flk-violet-dark:  #4B2ECC;
  --flk-violet-light: #9B7FFF;
  --flk-blik:         #F5C200;

  /* Foreground on dark */
  --flk-fg-d1: #F7F6F4;
  --flk-fg-d2: #9A9BA8;
  --flk-fg-d3: #5C5D69;

  /* Foreground on light */
  --flk-fg-l1: #0E0F14;
  --flk-fg-l2: #44454F;
  --flk-fg-l3: #72737E;

  /* Borders */
  --flk-border-dark:  #2C2D3A;
  --flk-border-light: #D8D7D4;

  /* Typography */
  --flk-font-head: 'Space Grotesk', system-ui, sans-serif;
  --flk-font-body: 'Inter', system-ui, sans-serif;
  --flk-font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --flk-container: 1200px;
  --flk-section-y: clamp(4rem, 8vw, 7rem);
  --flk-gap:       1.5rem;
  --flk-radius:    0.75rem;
  --flk-radius-sm: 0.375rem;

  /* Transitions */
  --flk-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --flk-dur:  180ms;
}

/* =====================================================
   RESET
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--flk-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--flk-fg-d1);
  background: var(--flk-bg);
  overflow-x: hidden;
}

body.flk-page--light-top {
  background: var(--flk-light);
  color: var(--flk-fg-l1);
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }

/* =====================================================
   TYPOGRAPHY SCALE
   ===================================================== */
.flk-h1 {
  font-family: var(--flk-font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.flk-h2 {
  font-family: var(--flk-font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.flk-h3 {
  font-family: var(--flk-font-head);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.flk-body-lg { font-size: 1.125rem; line-height: 1.7; }
.flk-body    { font-size: 1rem;     line-height: 1.65; }
.flk-caption { font-size: 0.875rem; line-height: 1.55; }

.flk-label {
  font-family: var(--flk-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flk-mono {
  font-family: var(--flk-font-mono);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* =====================================================
   CONTAINER & LAYOUT UTILITIES
   ===================================================== */
.flk-container {
  max-width: var(--flk-container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.flk-section {
  padding: var(--flk-section-y) 0;
}

.flk-section--dark     { background: var(--flk-bg); }
.flk-section--dark-alt { background: var(--flk-bg-alt); }
.flk-section--dark-card{ background: var(--flk-bg-card); }
.flk-section--light    { background: var(--flk-light); }
.flk-section--light-alt{ background: var(--flk-light-alt); }
.flk-section--white    { background: var(--flk-white); }

/* Grid helpers */
.flk-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--flk-gap);
}
.flk-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--flk-gap);
}
.flk-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--flk-gap);
}

@media (max-width: 900px) {
  .flk-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flk-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .flk-grid-2,
  .flk-grid-3,
  .flk-grid-4 { grid-template-columns: 1fr; }
}

/* =====================================================
   SECTION HEADING BLOCK
   ===================================================== */
.flk-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.flk-section-head .flk-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--flk-hot);
}

.flk-page--light-top .flk-section-head .flk-label,
.flk-section--light   .flk-section-head .flk-label,
.flk-section--light-alt .flk-section-head .flk-label,
.flk-section--white   .flk-section-head .flk-label {
  color: var(--flk-hot-aa-light);
}

.flk-section--dark   .flk-section-head .flk-h2,
.flk-section--dark-alt .flk-section-head .flk-h2,
.flk-section--dark-card .flk-section-head .flk-h2 {
  color: var(--flk-fg-d1);
}

.flk-section--light   .flk-section-head .flk-h2,
.flk-section--light-alt .flk-section-head .flk-h2,
.flk-section--white   .flk-section-head .flk-h2 {
  color: var(--flk-fg-l1);
}

.flk-section--dark   .flk-section-head p,
.flk-section--dark-alt .flk-section-head p,
.flk-section--dark-card .flk-section-head p {
  color: var(--flk-fg-d2);
}

.flk-section--light   .flk-section-head p,
.flk-section--light-alt .flk-section-head p,
.flk-section--white   .flk-section-head p {
  color: var(--flk-fg-l2);
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

*:focus-visible {
  outline: 2px solid var(--flk-hot);
  outline-offset: 3px;
}

/* =====================================================
   COOKIE BANNER
   ===================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--flk-bg-alt);
  border-top: 1px solid var(--flk-border-dark);
  padding: 1rem 0;
}

.cookie-banner__inner {
  max-width: var(--flk-container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--flk-fg-d2);
  min-width: 200px;
}

.cookie-banner__text a {
  color: var(--flk-hot-body);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-banner__btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--flk-radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--flk-dur) var(--flk-ease);
}

.cookie-banner__btn--primary {
  background: var(--flk-hot);
  color: #fff;
  border-color: var(--flk-hot);
}

.cookie-banner__btn--primary:hover {
  background: #e01f4e;
}

.cookie-banner__btn--secondary {
  background: transparent;
  color: var(--flk-fg-d2);
  border-color: var(--flk-border-dark);
}

.cookie-banner__btn--secondary:hover {
  border-color: var(--flk-fg-d3);
  color: var(--flk-fg-d1);
}

/* body padding for banner */
body.cookie-visible {
  padding-bottom: 80px;
}
