/* =================================================================
   Fonty hostované u nás (staženo z Google Fonts, subsetováno na
   latin + latin-ext). Žádný požadavek na fonts.googleapis.com ani
   fonts.gstatic.com – rychlejší a bez odesílání IP návštěvníka Googlu.
   Inter a Bricolage jsou variabilní: jeden soubor = všechny váhy.
   ================================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plexmono-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/plexmono-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plexmono-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/plexmono-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =================================================================
   The MarketingIn – společné styly webu (hlavička + patička).
   Prefix: site-  (fragmenty nástrojů používají tmi- , nesmí se to bít)

   Proměnné jsou schválně NE na :root, ale na .site-header / .site-footer,
   aby nemohly přetéct do fragmentů, které si vlastní --teal/--gold
   definují samy na .tmi.
   ================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2B2B2B;
  background: #F0EADD;
  -webkit-font-smoothing: antialiased;
}

.site-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #C49A5E;
  color: #123A33;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.site-skip:focus { left: 0; }

/* ---------------------------------------------------------------- HLAVIČKA
   Plovoucí glass pilulka podle hlavního webu themarketingin.com.
   Fixed (ne sticky): nesmí zabírat místo v layoutu, hero sekce nástrojů
   mají dost vysoký horní padding, takže pod ní nic nezmizí. */

.site-header {
  --site-teal: #1A4A42;
  --site-teal-deep: #123A33;
  --site-gold: #C49A5E;
  --site-gold-soft: #D8B985;
  --site-cream: #F0EADD;
  --site-disp: 'Bricolage Grotesque', -apple-system, sans-serif;
  --site-body: 'Inter', -apple-system, sans-serif;

  position: fixed;
  inset-inline: 0;
  top: 10px;
  z-index: 50;
  padding: 0 12px;
  font-family: var(--site-body);
  pointer-events: none; /* klikatelná je jen pilulka, ne celý pruh */
}
@media (min-width: 720px) { .site-header { top: 16px; padding: 0 24px; } }

.site-header__pill {
  pointer-events: auto;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px 7px 18px;
  border-radius: 999px;
  /* liquid glass: nad tmavým teal hero se propíše do tmavého skla,
     nad krémovými sekcemi do světlého - stejný recept jako hlavní web */
  background: linear-gradient(135deg, rgba(247, 242, 233, 0.16), rgba(247, 242, 233, 0.04));
  -webkit-backdrop-filter: blur(36px) saturate(2.1);
  backdrop-filter: blur(36px) saturate(2.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 8px 32px rgba(18, 58, 51, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.site-logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--site-disp);
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
}
.site-logo:hover { color: #FFFFFF; }
.site-logo__in { color: var(--site-gold); }
.site-logo:focus-visible,
.site-menu-btn:focus-visible,
.site-cta:focus-visible {
  outline: 2px solid var(--site-gold);
  outline-offset: 3px;
  border-radius: 999px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Tlačítko s nabídkou: ikona + popisek, otevírá sheet */
.site-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(240, 234, 221, 0.1);
  color: #FFFFFF;
  font-family: var(--site-body);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.site-menu-btn:hover { background: rgba(240, 234, 221, 0.2); border-color: rgba(255, 255, 255, 0.45); }
.site-menu-btn[aria-expanded="true"] { background: rgba(240, 234, 221, 0.24); }
.site-menu-btn svg { flex-shrink: 0; }
.site-menu-btn__short { display: none; }
@media (max-width: 640px) {
  .site-menu-btn__full { display: none; }
  .site-menu-btn__short { display: inline; }
}

/* Rezervace: jen zlatá ikona, ať pilulka zůstane vzdušná */
.site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--site-gold);
  color: var(--site-teal-deep);
  box-shadow: 0 4px 14px rgba(196, 154, 94, 0.4);
  transition: background 0.18s ease, transform 0.18s ease;
}
.site-cta:hover { background: var(--site-gold-soft); transform: translateY(-1px); }

/* Bez JS sheet neotevřeš - tlačítko nabídky schovej, navigaci nese patička. */
.site-header.no-js .site-menu-btn { display: none; }

/* ------------------------------------------------------------ VÝSUVNÝ SHEET
   Vzor etaxizlin: backdrop + panel zespodu, grip, na mobilu swipe-down.
   Na desktopu se panel zúží na kartu uprostřed dole. */

.site-sheet {
  --site-teal: #1A4A42;
  --site-teal-deep: #123A33;
  --site-gold: #C49A5E;
  --site-gold-soft: #D8B985;
  --site-cream: #F0EADD;
  --site-line: rgba(26, 74, 66, 0.2);
  --site-disp: 'Bricolage Grotesque', -apple-system, sans-serif;
  --site-body: 'Inter', -apple-system, sans-serif;
  --site-mono: 'IBM Plex Mono', monospace;

  position: fixed;
  inset: 0;
  z-index: 90;
  font-family: var(--site-body);
}
.site-sheet[hidden] { display: none; }

.site-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(18, 58, 51, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}
.site-sheet.is-open .site-sheet__backdrop { opacity: 1; }

.site-sheet__panel {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  max-height: 84vh;
  max-height: 84dvh;
  display: flex;
  flex-direction: column;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  background: #FFFFFF;
  border-top: 1px solid var(--site-line);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -20px 60px rgba(18, 58, 51, 0.35);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-sheet.is-open .site-sheet__panel { transform: none; }
@media (min-width: 760px) {
  .site-sheet__panel {
    inset-inline: auto;
    left: 50%;
    transform: translate(-50%, 110%);
    width: min(680px, calc(100vw - 48px));
    bottom: 24px;
    border-radius: 22px;
    border: 1px solid var(--site-line);
  }
  .site-sheet.is-open .site-sheet__panel { transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .site-sheet__backdrop, .site-sheet__panel { transition: none; }
}

.site-sheet__grip {
  flex-shrink: 0;
  width: 42px;
  height: 4px;
  margin: 2px auto 12px;
  border-radius: 999px;
  background: rgba(26, 74, 66, 0.22);
}
@media (min-width: 760px) { .site-sheet__grip { display: none; } }

.site-sheet__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.site-sheet__title {
  font-family: var(--site-disp);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--site-teal-deep);
}
.site-sheet__close {
  border: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(26, 74, 66, 0.08);
  color: var(--site-teal-deep);
  font-family: var(--site-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
}
.site-sheet__close:hover { background: rgba(26, 74, 66, 0.16); }

.site-sheet__body { overflow-y: auto; overscroll-behavior: contain; }

.site-sheet__h {
  margin: 14px 0 6px;
  font-family: var(--site-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--site-gold);
}

.site-sheet__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
@media (max-width: 540px) { .site-sheet__grid { grid-template-columns: 1fr; } }

.site-sheet__grid a,
.site-sheet__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(26, 74, 66, 0.1);
  text-decoration: none;
  color: #2B2B2B;
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.18s ease;
}
.site-sheet__grid a::after,
.site-sheet__list a::after {
  content: "\2192";
  color: var(--site-gold);
  flex-shrink: 0;
}
.site-sheet__grid a:hover,
.site-sheet__list a:hover { color: var(--site-teal); }
.site-sheet__grid a:focus-visible,
.site-sheet__list a:focus-visible {
  outline: 2px solid var(--site-gold);
  outline-offset: -2px;
  border-radius: 8px;
}

.site-sheet__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-sheet__list li:last-child a { border-bottom: 0; }

.site-sheet__cta {
  color: var(--site-teal-deep) !important;
  font-weight: 700 !important;
}

/* ---------------------------------------------------------------- PATIČKA */

.site-footer {
  --site-teal: #1A4A42;
  --site-teal-deep: #123A33;
  --site-gold: #C49A5E;
  --site-cream: #F0EADD;
  --site-disp: 'Bricolage Grotesque', -apple-system, sans-serif;
  --site-body: 'Inter', -apple-system, sans-serif;
  --site-mono: 'IBM Plex Mono', monospace;

  background: var(--site-teal-deep);
  color: rgba(240, 234, 221, 0.78);
  font-family: var(--site-body);
  font-size: 0.92rem;
  line-height: 1.65;
}

.site-footer__wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 28px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(240, 234, 221, 0.14);
}
@media (max-width: 860px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__wrap { padding-top: 44px; }
}

.site-footer .site-logo { font-size: 1.3rem; }

.site-footer__tagline {
  margin: 12px 0 0;
  max-width: 34ch;
  color: rgba(240, 234, 221, 0.62);
}

.site-footer__h {
  margin: 0 0 14px;
  font-family: var(--site-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--site-gold);
}

.site-footer address {
  font-style: normal;
  margin: 0;
}

.site-footer a {
  color: rgba(240, 234, 221, 0.82);
  text-decoration: none;
  transition: color 0.18s ease;
}
.site-footer a:hover { color: var(--site-gold); }
.site-footer a:focus-visible {
  outline: 2px solid var(--site-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer__link--strong {
  color: #FFFFFF;
  font-weight: 600;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__list li { margin-bottom: 6px; }

/* řádek s odkazy na všech 13 nástrojů */
.site-footer__tools { padding: 28px 0 24px; }

.site-footer__tools-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__tools-links li { display: inline-flex; align-items: center; }
.site-footer__tools-links li::after {
  content: "";
  width: 4px;
  height: 4px;
  margin: 0 12px;
  border-radius: 50%;
  background: rgba(240, 234, 221, 0.26);
}
.site-footer__tools-links li:last-child::after { display: none; }
.site-footer__tools-links a { font-size: 0.87rem; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(240, 234, 221, 0.14);
  font-size: 0.78rem;
  color: rgba(240, 234, 221, 0.5);
}
.site-footer__bottom p { margin: 0; }

/* ---------------------------------------------------------------- EXIT POPUP
   Sdílený na všech landing pages nástrojů. Prefix site-pop, vlastní barvy
   (nedědí z .tmi), aby fungoval nezávisle na fragmentu pod ním. */

.site-pop {
  --site-teal: #1A4A42;
  --site-teal-deep: #123A33;
  --site-gold: #C49A5E;
  --site-gold-soft: #D8B985;
  --site-cream: #F0EADD;
  --site-disp: 'Bricolage Grotesque', -apple-system, sans-serif;
  --site-body: 'Inter', -apple-system, sans-serif;
  --site-mono: 'IBM Plex Mono', monospace;

  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(18, 58, 51, 0.62);
  font-family: var(--site-body);
}
.site-pop.is-on { display: flex; animation: sitePopFade 0.25s ease; }
@keyframes sitePopFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sitePopUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.site-pop__box {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--site-teal);
  color: var(--site-cream);
  border-radius: 16px;
  padding: 38px 34px 30px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(18, 58, 51, 0.45);
  animation: sitePopUp 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
  .site-pop.is-on, .site-pop__box { animation: none; }
}

.site-pop__eyebrow {
  font-family: var(--site-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--site-gold);
  display: inline-block;
  margin-bottom: 14px;
}
.site-pop__h {
  font-family: var(--site-disp);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  font-size: clamp(1.5rem, 3.2vw, 1.95rem);
  margin: 0;
}
.site-pop__gold { color: var(--site-gold); }
.site-pop__p {
  color: rgba(240, 234, 221, 0.85);
  margin: 14px auto 22px;
  max-width: 44ch;
  font-size: 0.98rem;
  line-height: 1.6;
}

.site-pop__x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(240, 234, 221, 0.12);
  color: var(--site-cream);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease;
}
.site-pop__x:hover { background: rgba(240, 234, 221, 0.24); }
.site-pop__x:focus-visible {
  outline: 2px solid var(--site-gold);
  outline-offset: 2px;
}

.site-pop__form {
  display: flex;
  gap: 9px;
  max-width: 400px;
  margin: 0 auto;
}
@media (max-width: 520px) { .site-pop__form { flex-direction: column; } }
.site-pop__form input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid rgba(240, 234, 221, 0.28);
  border-radius: 8px;
  font-family: var(--site-body);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.95);
  color: #2B2B2B;
}
.site-pop__form input:focus-visible {
  outline: 2px solid var(--site-gold);
  outline-offset: 1px;
  border-color: var(--site-gold);
}
.site-pop__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 13px 22px;
  border: 0;
  border-radius: 8px;
  font-family: var(--site-body);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--site-gold);
  color: var(--site-teal-deep);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.site-pop__btn:hover { background: var(--site-gold-soft); transform: translateY(-1px); }
.site-pop__btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.site-pop__btn:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

.site-pop__fine {
  font-size: 0.76rem;
  color: rgba(240, 234, 221, 0.6);
  margin-top: 14px;
}
.site-pop__ok {
  display: none;
  font-family: var(--site-disp);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--site-gold-soft);
  padding: 6px 0;
}
.site-pop__box.is-done .site-pop__form,
.site-pop__box.is-done .site-pop__fine { display: none; }
.site-pop__box.is-done .site-pop__ok { display: block; }
