@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,500&display=swap');

/* ====================================================================
   refresh.css: the look of tamitos.com/investors, laid over the existing
   stylesheets. Loaded last, and every selector starts with `html` so it
   also wins against the <style> blocks that sit inside the templates.
   Colours come from the TAMITOS wordmark, softened to pastel.
   ==================================================================== */

html {
  color-scheme: light;
  --ink: #16121f;
  --ink-soft: #4a4557;
  --ink-faint: #6f6a7c;
  --line: #efe6ee;
  --line-strong: #e4d6e2;
  --surface: #ffffff;
  --surface-muted: #fdf6fa;
  --cyan: #ff8cd7;
  --cyan-dark: #ff8cd7;
  --purple: #caa6ff;
  --r-card: 36px;
  --r-pill: 999px;
  --shadow-card: 0 24px 60px rgba(180, 90, 150, 0.14);
  --shadow-pill: none;

  --p-pink: #ffd3ee;   --p-pink-2: #ffaee0;
  --p-amber: #ffe4ad;  --p-amber-2: #ffd27a;
  --p-purple: #e2d0ff; --p-purple-2: #caa6ff;
  --p-blue: #cfe4ff;   --p-blue-2: #9dcaff;
  --p-mint: #caf6df;   --p-mint-2: #9debc2;
  --p-yellow: #fff0a8; --p-yellow-2: #f9e270;

  --edge-a: none; --edge-b: none; --edge-c: none;
  --halo-a: none; --halo-b: none; --halo-c: none;
}

html body {
  font-family: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 900px at 50% 620px, #f7c4e3 0%, rgba(247, 196, 227, 0.5) 38%, transparent 72%),
    radial-gradient(760px 540px at 94% -60px, #fff1c7 0%, transparent 70%),
    #fffafb;
  background-repeat: no-repeat;
}

/* ------------------------------------------------------------- type */
html h1, html h2, html h3,
html .section-title, html .pledge__title, html .story-page__title,
html .stat__value, html .pledge__num, html .card__title, html .post__title,
html .faq__q, html .brand__tag {
  font-family: 'Baloo 2', 'Arial Rounded MT Bold', sans-serif;
}
html h1, html h2, html .section-title, html .pledge__title, html .story-page__title {
  font-style: italic;
  font-synthesis: style;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--ink);
}
html .hero h1, html .hero__text h1 { font-size: clamp(42px, 4.8vw, 70px); line-height: 1; }
html .hero h1 span, html .hero h1 em, html .hero h1 .thread {
  color: var(--ink);
  -webkit-text-fill-color: currentColor;
  background: none;
}
html .section-title { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; }
html .hero__lede, html .pledge__lede, html .story-page__teaser { color: var(--ink-soft); }
html .link { color: #b0306e; }

/* -------------------------------------------------------------- nav */
html .nav, html .site-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 251, 0.78) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.3) !important;
  backdrop-filter: blur(14px) saturate(1.3) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}
html .nav__links a { color: var(--ink); font-weight: 500; }
html .nav__links a.is-on { color: var(--ink); box-shadow: inset 0 -3px 0 var(--p-pink-2); }
html .nav__lang { background: #fff; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
html .nav__lang-on { background: var(--ink) !important; color: #fffafb !important; border-radius: 999px; }

/* ----------------------------------------------------------- buttons */
html .btn {
  border-radius: 999px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  min-height: 48px;
  transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), background 0.2s, box-shadow 0.2s;
}
html .btn--primary {
  background: #ff8cd7;
  color: #16121f;
  box-shadow: none;
  filter: none;
}
html .btn--primary:hover { background: #ff72cb; transform: translateY(-2px); filter: none; }
html .btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
html .btn--ghost:hover { background: #fff; transform: translateY(-2px); }
html .btn--primary:disabled, html .btn--primary[aria-disabled="true"] { background: var(--line-strong); color: #8d879d; transform: none; }
html :focus-visible { outline: 3px solid #b0306e; outline-offset: 3px; }

/* -------------------------------------------------------- glass cards */
html .card, html .post, html .ptile, html .tile, html .end, html .end--alt,
html .steps > li, html .hero__numbers .stat, html .stat, html .partner,
html .faq__item, html .panel, html .rail, html .live, html .pledge__fig, html .band__aside {
  --g: var(--p-pink);
  position: relative;
  isolation: isolate;
  border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: var(--r-card) !important;
  background: linear-gradient(150deg, color-mix(in srgb, var(--g) 86%, transparent), rgba(255, 255, 255, 0.5)) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 24px 60px rgba(180, 90, 150, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), box-shadow 0.45s !important;
}
html .card::before, html .post::before, html .ptile::before, html .tile::before,
html .end::before, html .steps > li::before, html .hero__numbers .stat::before {
  box-shadow: none !important;
  inset: -40% -60% auto auto !important;
  width: 70%;
  height: 90%;
  border-radius: 50% !important;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.7), transparent);
  opacity: 0.8 !important;
  z-index: 0 !important;
}
html .card:hover, html .post:hover, html .ptile:hover, html .tile:hover,
html .end:hover, html .steps > li:hover, html .partner:hover {
  --ty: -8px;
  box-shadow: 0 36px 80px rgba(180, 90, 150, 0.22), inset 0 1px 0 #fff !important;
}
html .card > *, html .post > *, html .ptile > *, html .tile > *, html .end > *, html .steps > li > * { position: relative; z-index: 1; }

/* the wordmark's colours, cycled through every set of siblings */
html :is(.card, .post, .ptile, .tile, .end, .steps > li, .stat, .partner, .faq__item, .pledge__fig):nth-child(6n + 1) { --g: var(--p-pink);   --g2: var(--p-pink-2); }
html :is(.card, .post, .ptile, .tile, .end, .steps > li, .stat, .partner, .faq__item, .pledge__fig):nth-child(6n + 2) { --g: var(--p-blue);   --g2: var(--p-blue-2); }
html :is(.card, .post, .ptile, .tile, .end, .steps > li, .stat, .partner, .faq__item, .pledge__fig):nth-child(6n + 3) { --g: var(--p-amber);  --g2: var(--p-amber-2); }
html :is(.card, .post, .ptile, .tile, .end, .steps > li, .stat, .partner, .faq__item, .pledge__fig):nth-child(6n + 4) { --g: var(--p-mint);   --g2: var(--p-mint-2); }
html :is(.card, .post, .ptile, .tile, .end, .steps > li, .stat, .partner, .faq__item, .pledge__fig):nth-child(6n + 5) { --g: var(--p-purple); --g2: var(--p-purple-2); }
html :is(.card, .post, .ptile, .tile, .end, .steps > li, .stat, .partner, .faq__item, .pledge__fig):nth-child(6n + 6) { --g: var(--p-yellow); --g2: var(--p-yellow-2); }

html .faq__item { --g: #ffffff; }
html .panel, html .rail, html .live { --g: #ffffff; }
html .band__aside { --g: var(--p-yellow); }

html .card__cover, html .post__cover { border-radius: calc(var(--r-card) - 6px) calc(var(--r-card) - 6px) 0 0 !important; overflow: hidden; }
html .card__who, html .post__cat, html .eyebrow, html .pledge__eyebrow { color: #b0306e !important; }
html .card__title, html .post__title, html .stat__value, html .pledge__num { color: var(--ink) !important; }

html .steps__n {
  background: var(--g2, #ffaee0) !important;
  color: var(--ink) !important;
  border-radius: 14px !important;
  width: 42px !important;
  height: 42px !important;
  font-weight: 800;
  box-shadow: none !important;
}

/* progress bars */
html .bar { background: rgba(255, 255, 255, 0.75) !important; border-radius: 999px; }
html .bar__fill, html .bar__movement { background: #ff8cd7 !important; border-radius: 999px; }
html .bar__direct { background: #caa6ff !important; }

/* ------------------------------------------------------- bands + blobs */
html .band--tint, html .band--stage, html .pledge, html .hero--full { background: transparent !important; }
html .stage__bg { opacity: 0.9; }
html .blob-host { position: relative; isolation: isolate; }
html .blobs { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
html .blobs i { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(60px); opacity: 0.7; animation: tm-drift 18s ease-in-out infinite alternate; }
html .blobs i:nth-child(1) { background: #ffc2e6; left: -140px; top: 8%; }
html .blobs i:nth-child(2) { background: #c9e2ff; right: -160px; top: 30%; animation-duration: 22s; }
html .blobs i:nth-child(3) { background: #fff0a8; left: 38%; bottom: -180px; animation-duration: 26s; }
html .blobs i:nth-child(4) { background: #d9c6ff; left: 58%; top: -140px; animation-duration: 20s; }
@keyframes tm-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.12); }
  100% { transform: translate(-40px, 50px) scale(0.95); }
}

/* the dark band of the live feed and the 20 000 € pledge get the wash */
html .pledge {
  background:
    radial-gradient(900px 520px at 25% 60%, rgba(251, 207, 232, 0.9), transparent 70%),
    radial-gradient(700px 480px at 85% 25%, rgba(207, 228, 255, 0.9), transparent 70%),
    radial-gradient(600px 400px at 70% 100%, rgba(255, 240, 168, 0.7), transparent 70%) !important;
}

/* -------------------------------------------------------------- footer */
html .foot {
  background:
    radial-gradient(900px 320px at 88% 0%, rgba(255, 174, 224, 0.4), transparent 68%),
    radial-gradient(700px 300px at 6% 100%, rgba(202, 166, 255, 0.28), transparent 68%),
    #fffafb !important;
}
html .social__tile { background: var(--p-pink) !important; border-radius: 16px; }

/* ------------------------------------------------------ form shell pages */
html .shell__left {
  background:
    radial-gradient(700px 520px at 20% 110%, #f7c4e3 0%, transparent 70%),
    radial-gradient(520px 420px at 100% 0%, #fff1c7 0%, transparent 70%),
    #fff4fa !important;
}
html .shell__lede h1 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.02; }
html .shell__rule { background: #ff8cd7 !important; }
html .shell__right { background: #fffafb; }
html .field input, html .field select, html .field textarea,
html .form input:not([type="checkbox"]):not([type="radio"]), html .form select, html .form textarea {
  border-radius: 18px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  font-family: 'DM Sans', system-ui, sans-serif;
}
html .field input:focus, html .field select:focus, html .field textarea:focus { border-color: #ff8cd7; box-shadow: 0 0 0 4px rgba(255, 140, 215, 0.25); outline: none; }
html .chip { border-radius: 999px; }
html .chip.is-on, html .chip[aria-pressed="true"] { background: var(--ink) !important; color: #fffafb !important; }

/* story page rail */
html .story-page__cover { border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px rgba(180, 90, 150, 0.16); }

@media (prefers-reduced-motion: reduce) {
  html .blobs i { animation: none; }
  html .card, html .post, html .ptile, html .tile, html .end, html .steps > li { transition: none !important; }
}

/* ================================================================ motion
   The same moments as tamitos.com/investors. All of it is under
   html.tm-js, which refresh.js sets first, so a browser that never runs the
   script sees every card in place. */

/* headings, numbers and card titles in the investor-page voice */
html h3, html .card__title, html .post__title, html .stat__value, html .pledge__num,
html .rail__raised, html .faq__q, html .partner__meta strong {
  font-style: italic;
  font-synthesis: style;
}
html .stat__value, html .pledge__num, html .rail__raised { font-weight: 800; }

/* cards arrive one after another as they scroll in */
html.tm-js :is(.card, .post, .ptile, .tile, .end, .steps > li, .stat, .partner, .faq__item, .pledge__fig, .panel, .rail):not(.tm-in) {
  opacity: 0;
  translate: 0 36px;
  scale: 0.97;
}
html.tm-js :is(.card, .post, .ptile, .tile, .end, .steps > li, .stat, .partner, .faq__item, .pledge__fig, .panel, .rail).tm-in {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  transition: opacity 0.7s ease var(--tm-d, 0s), translate 0.8s cubic-bezier(.2, .8, .2, 1) var(--tm-d, 0s),
              scale 0.8s cubic-bezier(.2, .8, .2, 1) var(--tm-d, 0s),
              transform 0.45s cubic-bezier(.2, .8, .2, 1), box-shadow 0.45s !important;
}

/* progress bars fill when their card arrives */
@keyframes tm-grow { from { width: 0; } }
html.tm-js .tm-in .bar__fill, html.tm-js .tm-in .bar__movement, html.tm-js .tm-in .bar__direct,
html.tm-js .rail.tm-in .bar__movement, html.tm-js .rail.tm-in .bar__direct {
  animation: tm-grow 1.4s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--tm-d, 0s) + 0.25s);
}

/* the Tamitos hand of cards under the landing hero */
html .tm-fan { position: relative; height: 290px; max-width: 1100px; margin: 0 auto 10px; }
html .tm-tile {
  position: absolute; left: 50%; top: 40px; width: 180px; height: 180px;
  border-radius: 40px; background: #fff; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 32px 80px rgba(180, 90, 150, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateX(calc(-50% + var(--k) * var(--gap, 146px))) rotate(var(--r));
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
  animation: tm-bob 6s ease-in-out infinite; animation-delay: var(--bd);
  z-index: var(--z);
}
html .tm-tile img { width: 84%; height: 84%; object-fit: contain; transition: height 0.4s, margin 0.4s; }
html .tm-tile span { position: absolute; bottom: 12px; font-weight: 700; font-size: 13px; opacity: 0; transition: opacity 0.2s; }
html .tm-tile:hover { transform: translateX(calc(-50% + var(--k) * var(--gap, 146px))) translateY(-22px) rotate(0deg); z-index: 9; }
html .tm-tile:hover img { height: 70%; margin-bottom: 18px; }
html .tm-tile:hover span { opacity: 1; }
@keyframes tm-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
html.tm-js .tm-fan .tm-tile { animation: tm-deal 0.9s cubic-bezier(.2, .8, .2, 1) both, tm-bob 6s ease-in-out 1s infinite; animation-delay: calc(var(--i) * 70ms), var(--bd); }
@keyframes tm-deal { from { opacity: 0; transform: translateX(-50%) translateY(80px) rotate(0); } }
@media (max-width: 900px) { html .tm-fan { height: 200px; --gap: 92px; } html .tm-tile { width: 124px; height: 124px; border-radius: 28px; top: 30px; } }
@media (max-width: 520px) { html .tm-fan { --gap: 50px; } html .tm-tile { width: 92px; height: 92px; border-radius: 22px; } }

/* a dark ribbon of proof, like the investor page */
html .tm-band { background: #16121f; color: #fffafb; padding: 16px 0; overflow: hidden; }
html .tm-band__track { display: flex; gap: 48px; width: max-content; animation: tm-marq 36s linear infinite; font-weight: 500; font-size: 16px; white-space: nowrap; }
html .tm-band__track b { font-family: 'Baloo 2', sans-serif; font-style: italic; font-weight: 800; }
@keyframes tm-marq { to { transform: translateX(-50%); } }

/* the bar slims down once the page scrolls */
html .nav { transition: padding 0.3s ease, box-shadow 0.3s ease; }
html .nav.tm-scrolled { padding-top: 10px; padding-bottom: 10px; box-shadow: 0 10px 30px rgba(180, 90, 150, 0.12); }

@media (prefers-reduced-motion: reduce) {
  html.tm-js :is(.card, .post, .ptile, .tile, .end, .steps > li, .stat, .partner, .faq__item, .pledge__fig, .panel, .rail):not(.tm-in) { opacity: 1; translate: none; scale: none; }
  html .tm-tile, html .tm-band__track, html.tm-js .tm-in .bar__fill, html.tm-js .tm-in .bar__movement, html.tm-js .tm-in .bar__direct { animation: none !important; }
}

/* /pre-firmy "Chcete prispieť hneď?": modern.css has a second `.give` (the
   radio pills of /podpor) that turns this two-column grid into a column,
   so the sticky intro and its picture slid over the donation form. */
html .band__inner.give {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 56px;
  align-items: start;
}
html .band__inner.give .give__form {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 36px;
  box-shadow: 0 24px 60px rgba(180, 90, 150, 0.14);
}
@media (max-width: 900px) {
  html .band__inner.give { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  html .band__inner.give .give__intro { position: static; }
}

/* On a phone the bar wraps to two rows, and pinned it would cover a third
   of the screen. It scrolls away with the page there. */
@media (max-width: 860px) {
  html .nav { position: relative; }
}

/* The header never breaks a label onto two lines ("Pre / firmy",
   "Požiadať o / pomoc"). Between a phone and a wide desktop the links get
   tighter instead, and on a narrow phone whole labels move to a second row. */
html .nav__links a, html .nav .btn { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1180px) {
  html .nav { gap: 16px; }
  html .nav__links { gap: 14px; }
  html .nav__links a { font-size: 14px; }
  html .nav .btn--small { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 900px) {
  html .nav__links { flex-wrap: wrap; gap: 4px 16px; }
}
@media (max-width: 420px) {
  html .nav__links { gap: 10px; }
  html .nav__links a { font-size: 13px; }
}

/* -------------------------------------------- a card with a give button */
/* The card is a div with two links (its page, and Podporiť priamo), so the
   link carries what the old `<a class="card">` did. */
html .card__link { display: block; color: inherit; text-decoration: none; }
html .card__give { padding: 0 20px 20px; }
html .card__give .btn { width: 100%; justify-content: center; }
html .card__note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft, #5b5570); }
html .card__goal { margin-top: 4px; font-size: 13px; color: var(--ink-soft, #5b5570); }
html .give-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft, #5b5570); text-align: center; }
