/* Marketup — data products brand system
 * Mirrors marketup.cz: bright off-white surface, deep ink, royal blue accent.
 * Biennale-style grotesk (Inter fallback). Confident, Czech-direct.
 */

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

:root {
  /* Palette — sampled from marketup.cz */
  --ink:        #202B3B;        /* primary text — rgb(32,43,59) */
  --ink-2:      #0E1623;
  --ink-soft:   #4A5568;
  --ink-muted:  #8A93A2;
  --line:       #E4EAF2;
  --line-2:     #CFD8E5;
  --paper:      #F8FBFD;        /* page bg — rgb(248,251,253) */
  --paper-2:    #EEF3F9;
  --paper-3:    #E2EAF4;
  --white:      #FFFFFF;

  --blue:       #0052C9;        /* primary accent — rgb(0,82,201) */
  --blue-deep:  #003E99;
  --blue-soft:  #CADAF2;        /* rgb(202,218,242) */
  --blue-tint:  #E8EFFB;

  --yellow:      #fbba02;        /* Marketup brand yellow — official */
  --yellow-deep: #d9a002;
  --yellow-soft: #fff1a8;

  --good:       #0052C9;
  --bad:        #C2410C;

  /* Type */
  --font-sans: "Inter", "Biennale", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(32,43,59,0.04), 0 1px 3px rgba(32,43,59,0.06);
  --shadow-md: 0 4px 12px rgba(32,43,59,0.06), 0 2px 6px rgba(32,43,59,0.04);
  --shadow-lg: 0 24px 60px rgba(32,43,59,0.08), 0 8px 24px rgba(32,43,59,0.06);

  --maxw: 1280px;
  --gutter: 48px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--blue); color: var(--white); }

/* ===== TYPE ===== */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
}
.h-display { font-size: clamp(56px, 8.4vw, 132px); font-weight: 800; line-height: 0.96; letter-spacing: -0.04em; }
.h-section { font-size: clamp(40px, 5.4vw, 76px); font-weight: 700; line-height: 1.0; letter-spacing: -0.035em; }
.h-sub     { font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--ink-soft); margin: 0 0 24px; max-width: 640px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--blue);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--blue); display: inline-block;
}
.section--blue .eyebrow::before { background: rgba(255,255,255,0.7); }

p { margin: 0 0 16px; }
small, .meta { color: var(--ink-muted); font-size: 13px; }

/* Hashtag tagline — distinctive Marketup voice element */
.hashtag {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 14px; color: var(--blue); letter-spacing: -0.005em;
}
.hashtag-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ===== LAYOUT ===== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 880px; }
.section { padding: 120px var(--gutter); }
.section--sm { padding: 80px var(--gutter); }
.section--cream { background: var(--paper-2); }
.section--paper { background: var(--paper); }
.section--blue { background: var(--blue); color: var(--white); }
.section--blue h1, .section--blue h2, .section--blue h3 { color: var(--white); }
.section--blue .eyebrow { color: rgba(255,255,255,0.85); }
.section--blue .lead { color: rgba(255,255,255,0.85); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 880px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ===== TOPBAR =====
 * Default: fixed, transparent — splývá s tmavým hero.
 * Po scrollu: .is-sticky → paper background, dark text.
 */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding: 0 var(--gutter);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 8px 0;
  min-height: 91px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0;
  color: var(--white);
}
.brand__logo { height: 75px; width: auto; display: block; transition: opacity .2s ease; }
.brand__wordmark {
  display: none;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--blue);
  transition: color .2s ease;
}
.brand__sub { font-weight: 500; color: rgba(255,255,255,0.65); font-size: 14px; letter-spacing: 0; margin-left: 12px; }

.topbar__nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.topbar__nav a { color: rgba(255,255,255,0.80); transition: color .15s; }
.topbar__nav a:hover { color: var(--white); }

.topbar__cta {
  background: var(--yellow); color: var(--white); padding: 12px 22px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px; transition: background .15s, color .15s;
}
.topbar__cta:hover { background: var(--yellow-deep); color: var(--white); }

/* Sticky scrolled state — bílá varianta */
.topbar.is-sticky {
  background: var(--paper);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(32,43,59,0.06);
}
.topbar.is-sticky .topbar__nav a { color: var(--ink-soft); }
.topbar.is-sticky .topbar__nav a:hover { color: var(--ink); }
/* Logo PNG → modrý wordmark ve sticky stavu */
.topbar.is-sticky .brand__logo { display: none; }
.topbar.is-sticky .brand__wordmark { display: inline-block; }

@media (max-width: 880px) { .topbar__nav { display: none; } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  text-decoration: none; line-height: 1; white-space: nowrap;
  font-family: inherit;
}
.btn--lg { padding: 18px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--yellow); color: var(--white);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
  padding: 14px 26px;
}
.btn--primary:hover { background: var(--yellow-deep); color: var(--white); }
.btn--primary.btn--lg { padding: 18px 32px; font-size: 14px; }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-deep); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--blue); }
.btn--ghost {
  background: transparent; border-color: var(--ink); color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
}
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--ghost-light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.88); color: var(--ink); border-color: rgba(255,255,255,0.88); }
.btn--arrow::after {
  content: "→"; font-size: 1.1em; transition: transform .2s;
}
.btn--arrow:hover::after { transform: translateX(3px); }

/* ===== TAGS / PILLS ===== */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line);
  font-size: 12px; font-weight: 500; color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.tag--blue   { background: var(--blue-soft); border-color: transparent; color: var(--blue-deep); }
.tag--blue-solid { background: var(--blue); color: var(--white); border-color: var(--blue); }
.tag--yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.tag--ink    { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag--live::before {
  content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--blue);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.35;} }

/* ===== CARDS ===== */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--blue); }
.card__num {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; color: var(--blue); text-transform: uppercase;
}
.card__title { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.card__body { color: var(--ink-soft); margin: 0; font-size: 15px; line-height: 1.55; }

/* ===== METRICS ===== */
.metric { font-size: 56px; font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; }
.metric--lg { font-size: 72px; }
.metric--blue { color: var(--blue); }
.metric--white { color: var(--white); }
.metric__label {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-muted); margin-top: 8px;
}
.metric--white + .metric__label, .section--blue .metric__label { color: rgba(255,255,255,0.7); }

/* ===== LOGO STRIP ===== */
.logo-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 48px 64px; opacity: 0.75;
}
.logo-strip__item {
  font-family: var(--font-sans); font-weight: 700; font-size: 22px;
  letter-spacing: -0.015em; color: var(--ink); white-space: nowrap;
}

/* ===== FAQ ===== */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; padding: 22px 0; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 19px; font-weight: 600; color: var(--ink); text-align: left;
  letter-spacing: -0.015em; font-family: inherit; line-height: 1.3;
}
.faq__q__icon {
  width: 32px; height: 32px; border-radius: 99px; background: var(--paper-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 16px; font-weight: 400; flex-shrink: 0;
  transition: transform .2s, background .2s, color .2s;
}
.faq__a {
  display: none; padding: 0 0 22px; color: var(--ink-soft); font-size: 16px;
  line-height: 1.6; max-width: 720px;
}
.faq__item.is-open .faq__a { display: block; }
.faq__item.is-open .faq__q__icon { background: var(--blue); color: var(--white); transform: rotate(45deg); border-color: var(--blue); }

/* ===== FORM ===== */
.form-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; text-align: left; border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px;
  font-family: var(--font-mono);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--paper); font-family: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 0; border-color: var(--blue); background: var(--white);
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
.site-footer { background: var(--blue); color: rgba(255,255,255,0.85); padding: 80px var(--gutter) 32px; }
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.site-footer h4 { color: var(--white); font-size: 13px; font-weight: 600; margin: 0 0 18px; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--font-mono); }
.site-footer__brand p { color: rgba(255,255,255,0.7); font-size: 14px; max-width: 320px; line-height: 1.55; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer a { color: rgba(255,255,255,0.85); transition: color .15s; }
.site-footer a:hover { color: var(--white); }
.site-footer__sources {
  max-width: var(--maxw); margin: 56px auto 0; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 13px; color: rgba(255,255,255,0.7);
}
.site-footer__sources h4 { margin-bottom: 14px; }
.site-footer__sources ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  counter-reset: sources;
  max-width: 760px;
}
.site-footer__sources ol li {
  counter-increment: sources;
  padding-left: 28px; position: relative;
  line-height: 1.55;
}
.site-footer__sources ol li::before {
  content: counter(sources);
  position: absolute; left: 0; top: 1px;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-weight: 600; letter-spacing: 0.04em;
  width: 20px; text-align: right;
}
.site-footer__sources strong { color: var(--white); font-weight: 600; }
.site-footer__sources a { text-decoration: underline; text-underline-offset: 3px; }

.site-footer__bottom {
  max-width: var(--maxw); margin: 48px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.18); display: flex; justify-content: space-between; gap: 16px;
  font-size: 13px; color: rgba(255,255,255,0.6); flex-wrap: wrap;
}
@media (max-width: 880px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ===== PHOTO PLACEHOLDER ===== */
.photo-ph {
  background: var(--blue-tint); border: 1px solid var(--blue-soft); border-radius: var(--radius-md);
  position: relative; overflow: hidden; display: grid; place-items: center;
  color: var(--blue-deep); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.photo-ph::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, transparent 49.5%, var(--blue-soft) 49.5%, var(--blue-soft) 50.5%, transparent 50.5%),
    linear-gradient(-45deg, transparent 49.5%, var(--blue-soft) 49.5%, var(--blue-soft) 50.5%, transparent 50.5%);
  opacity: 0.5;
}
.photo-ph > * { position: relative; z-index: 1; background: var(--blue-tint); padding: 4px 10px; }

/* underline accent for headlines */
.u-blue   { box-shadow: inset 0 -0.32em 0 var(--blue-soft); padding: 0 0.05em; }
.u-blue-strong { color: var(--blue); }
