/* Marketing pages: "/" and "/za-klubove". Mobile-first; values from design/README.md. */

.marketing { overflow-x: hidden; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-pad) 0; }
.section--hero { padding: clamp(var(--space-32), 7vw, 88px) 0 var(--section-pad); }

/* ---------- Typography ---------- */
.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display-2xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display-lg);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  text-wrap: balance;
}

.h2--narrow { max-width: 16em; }

.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-3xl);
  line-height: var(--leading-snug);
  color: var(--ink);
}
.h3--lg { font-size: var(--text-4xl); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--purple);
}

.body-lg { font-size: var(--text-xl); line-height: var(--leading-relaxed); max-width: 30em; text-wrap: pretty; }
.muted { font-size: var(--text-base); line-height: var(--leading-relaxed); color: var(--text-muted); text-wrap: pretty; }
.muted--lg { font-size: var(--text-xl); }

.link-strong { font-weight: 500; }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: var(--space-10); }
.logo__mark { flex: none; }
.logo__dot { fill: var(--yellow); }
.logo__card { fill: var(--purple); }
.logo__line { fill: var(--white); }

.logo__wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-4xl);
  letter-spacing: var(--tracking-snug);
  color: var(--ink);
}

.logo__sub { color: var(--purple); }
.logo--dark { gap: var(--space-10); }
.logo--dark .logo__card { fill: var(--purple-light); }
.logo--dark .logo__wordmark { font-size: var(--text-3xl); letter-spacing: 0; color: var(--white); }
.logo--dark .logo__sub { color: var(--yellow); }
.logo--on-purple .logo__card { fill: var(--white); }
.logo--on-purple .logo__line { fill: var(--purple); }
.logo--on-purple .logo__wordmark { color: var(--white); }
.logo--on-purple .logo__sub { color: var(--yellow); }

.app-icon__dot { fill: var(--yellow); }
.app-icon__card { fill: var(--white); }
.app-icon__line { fill: var(--purple); }
.app-icon__line--soft { fill: var(--lilac-soft); }

.mascot__body { fill: var(--purple); }
.mascot__eye { fill: var(--white); }
.mascot__pupil { fill: var(--ink); }
.mascot__smile { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.mascot__card { fill: var(--white); stroke: var(--line-lilac); stroke-width: 2; }
.mascot__chip { fill: var(--yellow); }
.mascot__line { fill: var(--purple); }
.mascot__line--soft { fill: var(--lilac-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(var(--paper-rgb) / .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-fine);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  min-height: var(--header-height);
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.site-nav { display: flex; align-items: center; gap: var(--space-10); }

/* "Prijavi svoj klub" shortens to "Prijavi klub" on phones. */
.site-nav__narrow { display: none; }

@media (max-width: 859px) {
  .site-nav__wide { display: none; }
  .site-nav__narrow { display: inline; }
}

/* ---------- Footer ---------- */
.site-footer { color: var(--text-muted); background: var(--white); border-top: var(--border-hairline) solid var(--line-fine); }

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16) var(--space-24);
  padding-top: var(--space-28);
  padding-bottom: var(--space-28);
}

.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-24); font-size: var(--text-base); }
.site-footer__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.site-footer__link:hover { color: var(--purple); }
/* ---------- The OktoKard accent (people/_member_card) ---------- */
.kard__accent { color: var(--yellow); }

/* ---------- Cards, chips and results (the public directory pages) ---------- */

.card {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--line-lilac);
  border-radius: var(--radius-card);
}

.chips { display: flex; flex-wrap: wrap; gap: var(--space-8); margin-top: var(--space-2); }

.chip {
  min-height: 40px;
  padding: 0 var(--space-14);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line-lilac);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.chip:hover { border-color: var(--purple); }

.result {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-12) var(--space-14);
  border: 1.5px solid var(--line-fine);
  border-radius: var(--radius-md);
}

.result__text { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.result__name { font-size: var(--text-base); font-weight: 600; color: var(--ink); }
.result__meta { font-size: var(--text-sm); color: var(--text-muted); }
.result__badge { margin-left: auto; padding: var(--space-4) var(--space-10); }

.directory__empty {
  padding: var(--space-16) var(--space-16);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-muted);
  border: 1.5px dashed var(--line-lilac);
  border-radius: var(--radius-md);
}

/* ---------- Panels ---------- */
.panel { border-radius: var(--radius-panel); }
.panel--white { background: var(--white); border: 1.5px solid var(--line-lilac); }
.panel--purple { background: var(--purple); color: var(--white); }

.claim {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(var(--space-24), 4vw, var(--space-56));
  padding: clamp(var(--space-28), 5vw, var(--space-56));
}

.claim__icon { flex: none; width: clamp(96px, 14vw, 140px); }
.claim__text { flex: 1 1 340px; display: flex; flex-direction: column; gap: var(--space-16); }

.claim__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display-md);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.claim__body { font-size: var(--text-lead); line-height: var(--leading-normal); max-width: 32em; text-wrap: pretty; }
.claim__cta { align-self: flex-start; margin-top: var(--space-4); }
.claim__invite { margin: 0; }
.claim :is(a, .btn):focus-visible { outline-color: var(--yellow); }

/* ---------- Payment demo ---------- */
.demo {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  width: min(100%, 500px);
  margin: 0 auto;
  padding: clamp(var(--space-16), 3vw, var(--space-24));
  background: var(--white);
  border: 1.5px solid var(--line-lilac);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hero-card);
}

.demo__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-12); }
.demo__club { font-family: var(--font-display); font-weight: 700; font-size: var(--text-3xl); color: var(--ink); }
.demo__period { font-size: var(--text-md); color: var(--text-muted); }

.demo__summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  padding: var(--space-16);
  background: var(--lilac);
  border-radius: var(--radius-lg);
}

.demo__sum { font-size: var(--text-lg); color: var(--ink); }
.demo__sum-value { font-family: var(--font-display); font-weight: 700; font-size: var(--text-5xl); }

.demo__bar {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 10px;
  overflow: hidden;
  background: var(--line-lilac);
  border: 0;
  border-radius: var(--radius-pill);
}

.demo__bar::-webkit-progress-bar { background: var(--line-lilac); border-radius: var(--radius-pill); }

.demo__bar::-webkit-progress-value {
  background: var(--purple);
  border-radius: var(--radius-pill);
  transition: width .4s ease;
}

.demo__bar::-moz-progress-bar { background: var(--purple); border-radius: var(--radius-pill); }

.demo__rows { display: flex; flex-direction: column; }

.demo__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-10);
  min-height: 58px;
  padding: var(--space-8) var(--space-2);
  border-bottom: 1px solid var(--line-fine);
}

.demo__name { flex: 1 1 140px; font-size: var(--text-lg); font-weight: 500; color: var(--ink); }
.demo__hint { font-size: var(--text-sm); color: var(--text-muted); }

/* ---------- Pricing (/za-klubove) ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-16);
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  padding: var(--space-28) var(--space-24);
  background: var(--white);
  border: 1.5px solid var(--line-lilac);
  border-radius: var(--radius-card);
}

.plan--featured { border: 2.5px solid var(--purple); box-shadow: var(--shadow-featured); }

.plan__tag {
  position: absolute;
  top: -14px;
  left: 24px;
  padding: var(--space-4) var(--space-12);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  background: var(--yellow);
  border-radius: var(--radius-pill);
}

.plan__head { display: flex; flex-direction: column; gap: var(--space-8); }
.plan__limit { font-size: var(--text-lg); color: var(--text-muted); }

.plan__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}

.plan__period { font-family: var(--font-body); font-weight: 500; font-size: var(--text-xl); letter-spacing: 0; color: var(--text-muted); }

.plan__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  margin: 0;
  padding: 0;
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  list-style: none;
}

.plan__features li { display: flex; gap: var(--space-10); }
.plan__bullet { flex: none; display: inline-flex; margin-top: 3px; color: var(--status-paid); }

.spots { display: flex; gap: var(--space-12); }
.spot { width: 22px; height: 22px; border: 2px solid var(--dark-outline); border-radius: 50%; }
.spot--free { background: var(--yellow); border-color: var(--yellow); }

/* ---------- Public directory ---------- */
.directory-page { display: flex; flex-direction: column; gap: var(--space-16); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6) var(--space-8); font-size: var(--text-md); color: var(--text-muted); }
.crumbs__link { color: var(--purple-deep); text-decoration: underline; text-underline-offset: 3px; }

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: var(--space-12);
  margin: var(--space-10) 0 0;
  padding: 0;
  list-style: none;
}

.city-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-16) var(--space-16);
  background: var(--white);
  border: 1.5px solid var(--line-lilac);
  border-radius: var(--radius-card);
  text-decoration: none;
}

.city-tile:hover { border-color: var(--purple); }
.city-tile__name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-3xl); color: var(--ink); }
.city-tile__meta { font-size: var(--text-md); color: var(--text-muted); }

.chip--link { display: inline-flex; align-items: center; gap: var(--space-8); text-decoration: none; }
.chip__count { font-size: var(--text-sm); color: var(--text-muted); }

.directory-list { display: flex; flex-direction: column; gap: var(--space-8); max-width: 720px; margin: 0; padding: 0; list-style: none; }
.result--link { min-height: 60px; background: var(--white); text-decoration: none; }
.result--link:hover { border-color: var(--purple); }

.club-profile__head { display: flex; flex-direction: column; gap: var(--space-8); }
.club-profile__badges { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.club-profile__badges:empty { display: none; }
.club-profile__description { max-width: 44em; font-size: var(--text-xl); line-height: var(--leading-relaxed); }
.club-profile__description p + p { margin-top: var(--space-10); }

.club-profile__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--space-16);
  align-items: start;
}

.club-profile__panel { display: flex; flex-direction: column; gap: var(--space-14); padding: clamp(var(--space-16), 3vw, var(--space-24)); border-radius: var(--radius-card); }

.club-facts { display: grid; grid-template-columns: auto 1fr; gap: var(--space-10) var(--space-16); margin: 0; font-size: var(--text-lg); }
.club-profile__member { margin-top: auto; padding-top: var(--space-14); border-top: 1px solid var(--line-fine); }
.club-facts dt { color: var(--text-muted); }
.club-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.club-locations { display: flex; flex-direction: column; gap: var(--space-14); margin: 0; padding: 0; list-style: none; }
.club-location { display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-lg); }
.club-location__name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); font-weight: 600; color: var(--ink); }
.club-location__meta { color: var(--text-muted); }

@media (max-width: 399px) {
  .site-header .logo__wordmark { display: none; }
}

/* Entrance: each piece rises in after the one before. */
.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.rise--d1 { animation-delay: .08s; }
.rise--d2 { animation-delay: .2s; }
.rise--d3 { animation-delay: .32s; }
.rise--d4 { animation-delay: .44s; }
.rise--scale { animation-name: rise-scale; animation-duration: 1.1s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes rise-scale {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(.85); }
  to { opacity: 1; transform: none; }
}

/* ---------- Scroll reveal (reveal_controller.js) ---------- */
.reveal--pending {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--reveal-order, 0) * 90ms);
}

.reveal--pending.reveal--visible { opacity: 1; transform: none; }

/* ---------- Reduced motion: everything visible and still ---------- */
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .reveal--pending { opacity: 1; transform: none; transition: none; }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Claim panel ---------- */
.claim { position: relative; overflow: hidden; isolation: isolate; }

.claim__icon .app-icon__ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 24s linear infinite;
}
.plan { transition: transform var(--duration-base) ease, box-shadow var(--duration-base) ease; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-panel); }
.plan--featured { animation: plan-glow 3.6s ease-in-out infinite; }
.plan--featured:hover { box-shadow: 0 24px 56px rgb(var(--purple-rgb) / .3); }

@keyframes plan-glow {
  0%, 100% { box-shadow: 0 18px 44px rgb(var(--purple-rgb) / .14); }
  50% { box-shadow: 0 22px 60px rgb(var(--purple-rgb) / .32); }
}
.spot--free { animation: spot-pulse 2.4s ease-out infinite; }
.spot--free:nth-child(2) { animation-delay: .3s; }
.spot--free:nth-child(3) { animation-delay: .6s; }
.spot--free:nth-child(4) { animation-delay: .9s; }
.spot--free:nth-child(5) { animation-delay: 1.2s; }

@keyframes spot-pulse {
  0% { box-shadow: 0 0 0 0 rgb(var(--yellow-rgb) / .55); }
  70%, 100% { box-shadow: 0 0 0 10px rgb(var(--yellow-rgb) / 0); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal--visible .badge, .claim__icon .app-icon__ring, .plan--featured, .spot--free { animation: none; }
}

/* ======================================================================================================
   Calm marketing pages (US-0.4): white, lilac mist and one deep purple card at the end; display-font
   headings; one main action per section. Shared by "/" and "/za-klubove".
   ====================================================================================================== */

/* ---------- Header: the logo, "Prijavi se" and one main action ---------- */
.site-nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-12); font-weight: 600; color: var(--ink); }
.site-nav__link:hover { color: var(--purple); }
.btn--ink { color: var(--white); background: var(--ink); }
.btn--ink:hover { color: var(--white); background: var(--night); }

/* ---------- Sections ---------- */
.mk-section { padding: clamp(var(--space-48), 7vw, 88px) 0; }
.mk-section--mist { background: var(--lilac-mist); }
.mk-section--tight { padding: var(--space-24) 0; }
.mk-section--last { padding-top: var(--space-24); }
.mk-stack { display: flex; flex-direction: column; gap: clamp(var(--space-28), 4vw, var(--space-40)); }
.mk-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-16) var(--space-32); }
.mk-section__intro { display: flex; flex-direction: column; gap: var(--space-10); max-width: 40em; }
.mk-section__lead { margin: 0; font-size: var(--text-xl); line-height: var(--leading-relaxed); color: var(--text); }

.mk-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--lilac-soft);
}

.mk-link:hover { color: var(--purple); }

.mk-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-6) var(--space-14);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--purple-deep);
  background: var(--white);
  border: var(--border-hairline) solid var(--line-lilac);
  border-radius: var(--radius-pill);
}

.mk-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status-paid); }

/* ---------- Hero ---------- */
.mk-hero {
  padding: clamp(var(--space-32), 6vw, 88px) 0 clamp(var(--space-40), 6vw, 72px);
  background:
    radial-gradient(900px 500px at 85% 15%, var(--lilac-glow) 0%, transparent 70%),
    linear-gradient(180deg, var(--lilac-mist) 0%, var(--white) 100%);
}

.mk-hero__grid { display: grid; gap: var(--space-48); align-items: center; }
.mk-hero__copy { display: flex; flex-direction: column; gap: var(--space-20); min-width: 0; }

.mk-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 60px);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--ink);
  text-wrap: balance;
}

.mk-hero__accent { color: var(--purple); }
.mk-hero__lead { margin: 0; max-width: 32em; font-size: var(--text-lead); line-height: var(--leading-relaxed); color: var(--text); text-wrap: pretty; }
.mk-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12) var(--space-20); }
.mk-hero__cta { box-shadow: 0 10px 24px rgb(var(--purple-rgb) / .3); }
.mk-hero__note { font-size: var(--text-md); color: var(--text-muted); }
.mk-hero__aside { margin: 0; font-size: var(--text-base); color: var(--text); }
.mk-hero__aside a { font-weight: 600; color: var(--purple-deep); }

@media (min-width: 1024px) {
  .mk-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--space-56); }
}

/* The dashboard in a phone, with the OktoKard tilted behind it. */
.mk-visual { position: relative; min-height: 520px; }
.mk-visual__card { position: absolute; left: calc(-1 * var(--space-24)); bottom: var(--space-24); z-index: 0; width: min(250px, 62%); transform: rotate(-9deg); }
.mk-visual__card .member-card-wrap { max-width: none; }

.mk-device {
  position: absolute;
  right: var(--space-16);
  top: 0;
  z-index: 1;
  width: 270px;
  height: 520px;
  padding: var(--space-10);
  background: var(--ink);
  border-radius: 40px;
  box-shadow: 0 40px 80px rgb(var(--ink-rgb) / .28);
}

.mk-device__screen { display: flex; flex-direction: column; gap: var(--space-10); height: 100%; padding: var(--space-32) var(--space-14) var(--space-14); overflow: hidden; background: var(--canvas); border-radius: 31px; }
.mk-device__greeting { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; color: var(--ink); }
.mk-device__summary { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-14); background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow-notification); }
.mk-device__label { font-size: var(--text-2xs); color: var(--text-muted); }
.mk-device__amount { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; color: var(--ink); }
.mk-device__bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.mk-device__segment { height: 6px; background: var(--line-lilac); border-radius: var(--radius-pill); }
.mk-device__segment--ok { background: var(--status-paid); }
.mk-device__segment--due { background: var(--status-due); }
.mk-device__count { font-size: var(--text-2xs); color: var(--text); }
.mk-device__late { font-weight: 600; color: var(--error-field); }
.mk-device__person { margin-top: var(--space-4); font-size: var(--text-sm); font-weight: 700; color: var(--ink); }
.mk-device__clubs { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); }
.mk-device__club { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); padding: var(--space-10) var(--space-12); }
.mk-device__club + .mk-device__club { border-top: var(--border-hairline) solid var(--line-fine); }
.mk-device__club-text { display: flex; flex-direction: column; min-width: 0; font-size: var(--text-xs); color: var(--ink); }
.mk-device__club-text .status-dot { font-size: var(--text-2xs); }
.mk-device__club-amount { font-size: var(--text-xs); color: var(--ink); white-space: nowrap; }
.mk-device__club-amount--due { color: var(--error-field); }
.mk-device__club-amount--ok { color: var(--text-muted); }

/* Small notifications beside the visual; they never cover it. */
.mk-toast {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-10) var(--space-14);
  font-size: var(--text-sm);
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-notification), 0 14px 30px rgb(var(--ink-rgb) / .12);
  animation: mk-toast-in .6s var(--ease-out) .8s both;
}

.mk-toast--reminder { left: calc(-1 * var(--space-48)); top: var(--space-64); }
.mk-toast--attendance { left: calc(-1 * var(--space-24)); top: 0; }
.mk-toast--sent { right: calc(-1 * var(--space-16)); bottom: 0; animation-delay: 1.2s; }
.mk-toast__icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; color: var(--warning-text); background: var(--yellow-soft); border-radius: 50%; }
.mk-toast__icon--ok { color: var(--status-paid); background: var(--success-bg); }
.mk-toast__text { display: flex; flex-direction: column; }
.mk-toast__source { font-size: var(--text-xs); color: var(--text-muted); }

@keyframes mk-toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 479px) {
  .mk-visual { min-height: 470px; }
  .mk-device { right: 0; width: 230px; height: 460px; }
  .mk-visual__card { left: 0; width: 56%; }
  .mk-toast--reminder { left: 0; top: auto; bottom: 0; }
}

/* The club search: a pill on wide screens, a stacked card on phones. */
.mk-search {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin-top: var(--space-8);
  overflow: hidden;
  background: var(--white);
  border: var(--border-hairline) solid var(--line-lilac);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-panel);
}

.mk-search__field { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: var(--space-10) var(--space-20); }
.mk-search__field + .mk-search__divider + .mk-search__field { border-top: var(--border-hairline) solid var(--line-fine); }
.mk-search__label { font-size: var(--text-xs); font-weight: 700; color: var(--ink); }
.mk-search__select { min-height: 32px; padding: 0; font: inherit; color: var(--text); background: none; border: 0; }
.mk-search__select:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: var(--radius-2xs); }
.mk-search__divider { display: none; }

.mk-search__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: var(--control-md);
  margin: 0 var(--space-8) var(--space-8);
  padding: 0 var(--space-20);
  font: inherit;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius-lg);
}

.mk-search__button:hover { background: var(--night); }

@media (min-width: 640px) {
  .mk-search { flex-direction: row; align-items: center; padding: var(--space-8) var(--space-8) var(--space-8) var(--space-4); border-radius: var(--radius-pill); }
  .mk-search__field { padding: var(--space-4) var(--space-16); }
  .mk-search__field + .mk-search__divider + .mk-search__field { border-top: 0; }
  .mk-search__divider { display: block; flex: none; width: 1px; height: 32px; background: var(--line-lilac); }
  .mk-search__button { margin: 0; border-radius: var(--radius-pill); }
}

/* ---------- Three facts under the hero ---------- */
.mk-proof { padding: var(--space-8) 0 var(--space-24); }
.mk-proof__list { display: grid; gap: var(--space-16); margin: 0 auto; padding-top: var(--space-24); list-style: none; border-top: var(--border-hairline) solid var(--line-fine); }
.mk-proof__item { display: flex; align-items: center; gap: var(--space-14); }
.mk-proof__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; font-weight: 700; color: var(--purple-deep); background: var(--lilac); border-radius: var(--radius-lg); }
.mk-proof__text { display: flex; flex-direction: column; }
.mk-proof__title { color: var(--ink); }
.mk-proof__body { font-size: var(--text-md); color: var(--text-muted); }

@media (min-width: 860px) {
  .mk-proof__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); }
}

/* ---------- Four equal cards with a small preview; they scroll sideways on a phone ---------- */
.mk-cards {
  display: grid;
  grid-auto-columns: min(78%, 280px);
  grid-auto-flow: column;
  gap: var(--space-20);
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter) var(--space-8);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
}

.mk-card { display: flex; flex-direction: column; gap: var(--space-14); scroll-snap-align: start; }
.mk-card__tile { display: flex; flex-direction: column; justify-content: center; gap: var(--space-8); min-height: 190px; padding: var(--space-20); border-radius: var(--radius-panel); }
.mk-card__tile--lilac { background: var(--lilac); }
.mk-card__tile--yellow { background: var(--warning-bg); }
.mk-card__tile--green { background: var(--success-bg); }
.mk-card__tile--violet { background: var(--lilac-glow); }
.mk-card__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); padding: var(--space-10) var(--space-12); font-size: var(--text-md); color: var(--ink); background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.mk-card__value { font-weight: 600; white-space: nowrap; }
.mk-card__value--muted { color: var(--text-muted); }
.mk-card__value--ok { color: var(--success-text); }
.mk-card__value--warn { color: var(--warning-text); }
.mk-card__value--due { color: var(--error-field); }
.mk-card__value--info { color: var(--purple-deep); }
.mk-card__title { margin: 0; font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 700; line-height: var(--leading-heading); color: var(--ink); }
.mk-card__body { margin: calc(-1 * var(--space-6)) 0 0; font-size: var(--text-lg); line-height: var(--leading-relaxed); color: var(--text); }

@media (min-width: 1024px) {
  .mk-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row; margin: 0; padding: 0; overflow: visible; }
}

/* ---------- Quiet numbered steps ---------- */
.mk-steps { position: relative; display: grid; gap: var(--space-24); margin: 0; padding: 0; list-style: none; }

.mk-steps::before {
  content: "";
  position: absolute;
  left: 23px;
  top: var(--space-24);
  bottom: var(--space-24);
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--lilac-soft) 0 8px, transparent 8px 14px);
}

.mk-step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--space-16); row-gap: var(--space-2); }
.mk-step__number { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; color: var(--purple); background: var(--white); border: 2px solid var(--purple); border-radius: 50%; }
.mk-step__title { margin: var(--space-4) 0 0; font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; color: var(--ink); }
.mk-step__body { margin: 0; font-size: var(--text-lg); color: var(--text); }

@media (min-width: 860px) {
  .mk-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-32); }
  .mk-steps::before { left: 28px; right: 33%; top: 27px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--lilac-soft) 0 8px, transparent 8px 14px); }
  .mk-step { grid-template-columns: 1fr; row-gap: var(--space-12); }
  .mk-step__number { grid-row: auto; width: 56px; height: 56px; font-size: var(--text-4xl); }
}

.mk-note { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--space-10); margin: 0; padding: var(--space-12) var(--space-20); font-size: var(--text-base); color: var(--ink); background: var(--white); border: var(--border-hairline) solid var(--line-lilac); border-radius: var(--radius-card); }
.mk-note b { color: var(--purple); }

/* ---------- Club cards, like listings ---------- */
.mk-clubs { display: grid; grid-auto-columns: min(70%, 240px); grid-auto-flow: column; gap: var(--space-20); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--space-8); overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
.mk-clubs > li { scroll-snap-align: start; }
.mk-club { position: relative; display: flex; flex-direction: column; gap: var(--space-4); color: var(--ink); text-decoration: none; }
.mk-club:hover { color: var(--ink); }
.mk-club:hover .mk-club__name { color: var(--purple); }
.mk-club__tile { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: var(--space-8); font-family: var(--font-display); font-size: clamp(32px, 4vw, 44px); font-weight: 700; border-radius: var(--radius-card); }
.mk-club__tile--green { color: var(--success-text); background: var(--success-bg); }
.mk-club__tile--pink { color: var(--error-text); background: var(--error-bg); }
.mk-club__tile--violet { color: var(--purple-deep); background: var(--lilac); }
.mk-club__tile--yellow { color: var(--warning-text); background: var(--warning-bg); }
.mk-club__badge { position: absolute; left: var(--space-12); top: var(--space-12); padding: var(--space-2) var(--space-10); font-size: var(--text-xs); font-weight: 600; color: var(--purple-deep); background: var(--white); border-radius: var(--radius-pill); }
.mk-club__name { font-weight: 600; overflow-wrap: anywhere; }
.mk-club__meta { font-size: var(--text-md); color: var(--text-muted); }
.mk-empty { margin: 0; padding: var(--space-20); font-size: var(--text-base); color: var(--text-muted); border: var(--border-hairline) dashed var(--line-lilac); border-radius: var(--radius-card); }
.mk-invite { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-14); margin: 0; color: var(--text); }
.mk-invite__note { font-size: var(--text-md); color: var(--text-muted); }

@media (min-width: 1024px) {
  .mk-clubs { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row; margin: 0; padding: 0; overflow: visible; }
}

/* ---------- Two calm cards in one row ---------- */
.mk-pair { display: grid; gap: var(--space-20); }
.mk-pair__card { display: flex; align-items: center; gap: var(--space-20); padding: clamp(var(--space-20), 3vw, var(--space-32)); border-radius: var(--radius-panel); }
.mk-pair__card--yellow { background: var(--warning-bg); }
.mk-pair__card--lilac { background: var(--lilac); }
.mk-pair__mascot { flex: none; width: 76px; height: auto; }
.mk-pair__icon { flex: none; display: grid; place-items: center; width: 76px; height: 76px; color: var(--purple); background: var(--white); border-radius: 50%; }
.mk-pair__text { display: flex; flex-direction: column; gap: var(--space-6); }
.mk-pair__title { margin: 0; font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 700; color: var(--ink); }
.mk-pair__body { margin: 0; font-size: var(--text-lg); color: var(--text); }

@media (min-width: 860px) {
  .mk-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-24); }
}

/* ---------- A bordered card that leads elsewhere ---------- */
.mk-link-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-16); padding: clamp(var(--space-24), 3vw, var(--space-32)) clamp(var(--space-24), 3vw, var(--space-40)); border: var(--border-hairline) solid var(--line-lilac); border-radius: var(--radius-panel); }
.mk-link-card__icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; color: var(--yellow); background: var(--ink); border-radius: var(--radius-card); }
.mk-link-card__app-icon { width: 64px; height: 64px; }
.mk-link-card__text { display: flex; flex-direction: column; gap: var(--space-4); }
.mk-link-card__heading { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: var(--tracking-snug); color: var(--ink); }
.mk-link-card__body { margin: 0; font-size: var(--text-lg); color: var(--text); }

@media (min-width: 860px) {
  .mk-link-card { flex-direction: row; align-items: center; gap: var(--space-32); }
  .mk-link-card__text { flex: 1; min-width: 0; }
  .mk-link-card__cta { flex: none; }
}

/* ---------- The closing purple card ---------- */
.mk-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  padding: clamp(var(--space-32), 5vw, var(--space-56)) clamp(var(--space-24), 5vw, var(--space-64));
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(500px 300px at 90% 0%, var(--purple-light) 0%, transparent 70%),
    linear-gradient(135deg, var(--purple-deep), var(--night-violet));
  border-radius: 36px;
}

.mk-cta__text { display: flex; flex-direction: column; gap: var(--space-10); }
.mk-cta__eyebrow { font-weight: 600; color: var(--yellow); }
.mk-cta__heading { margin: 0; font-family: var(--font-display); font-size: var(--text-display-md); font-weight: 700; line-height: var(--leading-heading); letter-spacing: var(--tracking-tight); text-wrap: balance; }
.mk-cta__accent { color: var(--yellow); }
.mk-cta__lead { margin: 0; font-size: var(--text-xl); color: var(--dark-text); }
.mk-cta__actions { display: flex; flex-direction: column; align-items: center; gap: var(--space-12); }
.mk-cta__note { font-size: var(--text-md); color: var(--dark-text); }
.mk-cta__note a { font-weight: 600; color: var(--white); }
.mk-cta .spots { justify-content: center; }
.mk-cta .spot { border-color: rgb(var(--white-rgb) / .5); }

@media (min-width: 1024px) {
  .mk-cta { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
  .mk-cta__text { max-width: 36em; }
  .mk-cta__actions { flex: none; }
}

/* ---------- /za-klubove: the try-it demo and the free-for-members line ---------- */
.mk-demo-stage { position: relative; padding: var(--space-40) 0 var(--space-48); }
.mk-demo-stage .demo { box-shadow: 0 30px 70px rgb(var(--ink-rgb) / .16); }
.demo__pay { min-height: 36px; }

@media (max-width: 639px) {
  .mk-toast--attendance { left: 0; }
  .mk-toast--sent { right: 0; }
}

.mk-check { display: flex; align-items: flex-start; gap: var(--space-8); margin: 0; color: var(--success-text); }
.mk-check__icon { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 2px; color: var(--status-paid); background: var(--success-bg); border-radius: 50%; }
.plan__name { margin: 0; font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 700; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .mk-toast { animation: none; }
}
