/* Bloom.Landing — ported from the approved design (variant 13, bloom-13.html).
   Colours come from tokens.css (var(--color-*)/var(--st-*)); fonts from tokens.css (var(--font-*)).
   The tag/avatar palette below (client/master avatars, tag chips) is the one exception — it
   mirrors Bloom.Domain/TagPalette.cs and is intentionally literal hex, not a CSS var. */
/* Landing-only elevation: the hero screen floats above the page in a way no product surface does.
   Same rgba base as tokens.css --sh-1..3. Substituting --sh-3 here flattens all five mockups. */
:root{ --sh-4:0 28px 70px rgba(34,35,31,.15), 0 8px 20px rgba(34,35,31,.07); }

*{box-sizing:border-box;margin:0;padding:0}

/* the artifact could not load webfonts (CSP); the real page can. */
body{font-family:var(--font-body)}
.claim13,.mark,h1,h2,h3,h4,h6{font-family:var(--font-display)}

/* nav */
.nav{display:flex;align-items:center;padding:16px 40px;position:sticky;top:0;z-index:20;height:58px;
     background:color-mix(in srgb, var(--color-bg) 90%, transparent);backdrop-filter:saturate(140%) blur(10px)}
.brand{display:inline-flex;align-items:center;text-decoration:none}
.brand-logo{height:30px;width:auto;display:block}
.nav-r{margin-left:auto;display:flex;gap:8px;align-items:center}
.btn{font-family:var(--font-body);font-weight:600;border:none;border-radius:var(--r-sm);padding:9px 16px;cursor:pointer;
     font-size:13.5px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;
     min-height:44px;transition:background .15s,box-shadow .15s}
.btn-primary{background:var(--color-primary);color:#fff;box-shadow:var(--sh-1)}
.btn-primary:hover{background:var(--color-primary-hover);box-shadow:var(--sh-2)}
.btn-lg{padding:14px 28px;font-size:15.5px;border-radius:var(--r-md)}
.btn-soon{background:none;color:var(--color-text-faint);border:1px dashed var(--color-border-strong);cursor:not-allowed}
.soon-tag{font-family:var(--font-mono);font-size:9px;font-weight:700;background:var(--color-accent);color:#fff;border-radius:4px;
          padding:1px 5px;text-transform:uppercase}

/* ── HERO shared ── */
.hero{padding:88px 40px 0;max-width:940px;margin:0 auto;text-align:center}
.mark{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-display);font-weight:800;
      font-size:19px;letter-spacing:-.03em;color:var(--color-text)}
.mark i{width:11px;height:11px;border-radius:50%;background:var(--color-accent)}
.hero .cta{display:flex;gap:10px;justify-content:center;margin-top:36px;flex-wrap:wrap}
.hero .hero-cta{display:none} /* desktop: register lives in the nav; shown on mobile (nav-signup hidden) */
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* HERO 13 — the hero IS the «Записи» section. Short text, then the product playing for real.
   Same tempo as the tour: label → one claim → big screen. */
.h13{max-width:1000px;padding-top:76px}
.h13 .claim13{font-family:var(--font-display);font-size:clamp(32px,5.2vw,58px);font-weight:800;letter-spacing:-.048em;
              line-height:1;margin-top:22px;text-wrap:balance;animation:rise .5s cubic-bezier(.2,.7,.3,1) .05s backwards}
.h13 .deny13{color:var(--color-text-muted);font-size:clamp(14.5px,1.6vw,17.5px);margin-top:16px;letter-spacing:-.01em;
             animation:rise .5s cubic-bezier(.2,.7,.3,1) .2s backwards}
.h13 .cta{margin-top:30px;animation:rise .5s cubic-bezier(.2,.7,.3,1) .35s backwards}
.livewrap{margin:44px auto 0;max-width:760px;animation:rise .6s cubic-bezier(.2,.7,.3,1) .5s backwards}

/* the 5-second day. plays once, then rests. */
.live .am-body{overflow:hidden}
.live .ev.fresh{animation:pop .5s cubic-bezier(.2,.9,.3,1.2) 2s backwards}
@keyframes pop{from{opacity:0;transform:scale(.86)}to{opacity:1;transform:none}}
.live .toast{position:absolute;right:10px;z-index:6;font-size:10.5px;font-weight:700;color:#fff;border-radius:999px;
             padding:4px 10px;opacity:0;pointer-events:none}
.live .t-new{top:44px;background:var(--st-checked);animation:toast 2.2s ease 1.9s backwards}
.live .t-paid{top:44px;background:var(--color-primary);animation:toast 2.2s ease 5.1s backwards}
@keyframes toast{0%{opacity:0;transform:translateY(-6px)}14%{opacity:1;transform:none}72%{opacity:1}100%{opacity:0}}

/* drag: one column wide, so translateX(200%) is exactly two columns — stays right at any width.
   z-index 3 = above cards (.ev.tall is 2), BELOW .now (4) — the now-line must overlay bookings,
   exactly like the real product (bloom.css:392 .now-line z-index:4 over .slot.evt z-index:2). */
.live .ghost{position:absolute;left:46px;top:123px;width:calc((100% - 46px) / 3);height:44px;padding:3px;z-index:3;
             animation:dragmove 1.5s cubic-bezier(.5,0,.2,1) 3.6s backwards}
.live .ghost .ev{box-shadow:var(--sh-3)}
@keyframes dragmove{
  0%{transform:translateX(0) scale(1);opacity:0}
  10%{opacity:1;transform:translateX(0) scale(1.05)}
  75%{transform:translateX(200%) scale(1.05)}
  88%,100%{transform:translateX(200%) scale(1);opacity:1}
}
.live .ev.pay{animation:paid .6s cubic-bezier(.2,.7,.3,1) 5.2s backwards}
@keyframes paid{from{background:var(--color-primary)}to{background:var(--color-success)}}
.live .ev.pay .tick{opacity:0;animation:tickin .4s ease 5.35s forwards}
@keyframes tickin{to{opacity:1}}

@media(prefers-reduced-motion:reduce){
  .h13 .claim13,.h13 .deny13,.h13 .cta,.livewrap,
  .live .ev.fresh,.live .ghost,.live .ev.pay,.live .ev.pay .tick{animation:none}
  .live .toast{display:none}
  .live .ghost{transform:translateX(200%)}
  .live .ev.pay .tick{opacity:1}
}

/* 2 — PRODUCT TOUR: sticky strip + scroll sections */
.tourtop{position:sticky;top:58px;z-index:15;background:color-mix(in srgb, var(--color-bg) 92%, transparent);backdrop-filter:saturate(140%) blur(10px);
         border-bottom:1px solid var(--color-border);padding:10px 20px}
.strip{display:flex;gap:2px;justify-content:center;flex-wrap:wrap}
.tb{border:none;background:none;padding:7px 13px;border-radius:999px;cursor:pointer;font-family:var(--font-body);
    font-weight:600;font-size:13px;color:var(--color-text-muted);transition:background .15s,color .15s;
    display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.tb svg{width:13px;height:13px;opacity:.7;flex:0 0 auto}
.tb:hover{color:var(--color-text);background:var(--color-surface-alt)}
.tb[aria-current="true"]{background:var(--color-text);color:var(--color-bg)}
.tb[aria-current="true"] svg{opacity:1}
.ps{min-height:620px;display:flex;flex-direction:column;justify-content:center;padding:56px 40px;scroll-margin-top:104px;
    border-top:1px solid var(--color-border)}
.ps:first-of-type{border-top:none}
.ps-h{max-width:780px;margin:0 auto 28px;text-align:center}
.ps-h .lab{font-family:var(--font-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--color-accent-strong);
           font-weight:700;display:inline-flex;align-items:center;gap:7px}
.ps-h .lab svg{width:13px;height:13px}
.ps-h h2{font-family:var(--font-display);font-size:clamp(25px,3.4vw,38px);font-weight:800;letter-spacing:-.035em;
         margin-top:11px;text-wrap:balance;line-height:1.1}
.ps-s{max-width:900px;margin:0 auto;width:100%}

/* 3 — DAY */
.band{padding:104px 40px;border-top:1px solid var(--color-border)}
.sec-h{max-width:640px;margin:0 auto 36px;text-align:center}
.sec-h .n{font-family:var(--font-mono);font-size:11px;color:var(--color-accent-strong);font-weight:700;letter-spacing:.12em}
.sec-h h2{font-family:var(--font-display);font-size:clamp(24px,3vw,32px);font-weight:800;letter-spacing:-.03em;margin-top:10px}
.sec-h .one{color:var(--color-text-muted);font-size:14.5px;margin-top:14px}
.day{max-width:620px;margin:0 auto}
.d{display:grid;grid-template-columns:58px 1fr;gap:28px;padding:22px 0;align-items:baseline;border-top:1px solid var(--color-border)}
.d:first-child{border-top:none}
.d .t{font-family:var(--font-mono);font-size:12.5px;font-weight:700;color:var(--color-accent-strong);letter-spacing:-.02em}
.d .l{font-size:17px;line-height:1.5;letter-spacing:-.01em}
.d .l em{font-style:normal;color:var(--color-text-muted)}

/* 4 — PROOF */
.proof{max-width:620px;margin:0 auto;text-align:center}
.proof .n{font-family:var(--font-mono);font-size:11px;color:var(--color-accent-strong);font-weight:700;letter-spacing:.12em}
.proof .big{font-family:var(--font-display);font-size:clamp(22px,2.6vw,28px);font-weight:700;letter-spacing:-.028em;
            line-height:1.35;text-wrap:balance;margin-top:14px}
.proof .sub{color:var(--color-text-muted);font-size:14.5px;margin-top:14px}
.proof .meta{display:inline-flex;align-items:center;gap:8px;margin-top:24px;font-size:12.5px;color:var(--color-text-muted);
             border:1px solid var(--color-border);border-radius:999px;padding:7px 15px;background:var(--color-surface)}
.proof .meta i{width:7px;height:7px;border-radius:50%;background:var(--color-primary-light);box-shadow:0 0 0 3px rgba(82,183,136,.2)}

/* 5 — CTA */
.end{text-align:center;padding:104px 40px 112px;border-top:1px solid var(--color-border);background:var(--color-surface)}
.end h2{font-family:var(--font-display);font-size:clamp(24px,3vw,32px);font-weight:800;letter-spacing:-.03em}
.end .cta{display:flex;gap:10px;justify-content:center;margin-top:26px;flex-wrap:wrap}
.foot{padding:24px 40px;color:var(--color-text-faint);font-size:12.5px;display:flex;gap:9px;align-items:center;border-top:1px solid var(--color-border)}
.foot i{width:9px;height:9px;border-radius:50%;background:var(--color-accent)}

/* ── screens ── */
.mk{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--r-lg);box-shadow:var(--sh-4);overflow:hidden}
.am-top{display:flex;align-items:center;gap:8px;padding:11px 14px;border-bottom:1px solid var(--color-border)}
.am-pill{font-size:11px;font-weight:700;color:var(--color-text-muted);background:var(--color-surface-alt);border:1px solid var(--color-border);
         border-radius:999px;padding:3px 10px}
.am-live{margin-left:auto;display:flex;align-items:center;gap:5px;font-size:10.5px;color:var(--color-text-muted);font-weight:600}
.am-live i{width:6px;height:6px;border-radius:50%;background:var(--color-primary-light);box-shadow:0 0 0 3px rgba(82,183,136,.22);
           animation:pulse 2.4s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
.am-grid{display:grid;grid-template-columns:46px repeat(3,1fr);font-size:11px}
.am-h{padding:9px 4px;border-bottom:1px solid var(--color-border);font-weight:700;color:var(--color-text-muted);text-align:center;font-size:11px}
.am-h:first-child{border-right:1px solid var(--color-border)}
.am-time{border-right:1px solid var(--color-border);color:var(--color-text-faint);font-family:var(--font-mono);font-size:9.5px;text-align:right;
         padding:3px 6px 0 0;height:44px}
.am-cell{border-bottom:1px solid var(--color-surface-alt);border-right:1px solid var(--color-surface-alt);height:44px;padding:3px;position:relative}
.ev{border-radius:6px;padding:5px 7px;font-size:10.5px;line-height:1.3;height:100%;overflow:hidden;color:#fff;font-weight:600}
.ev.c{background:var(--color-primary)} .ev.p{background:var(--color-accent)} .ev.k{background:var(--color-primary-light)}
.ev.tall{height:calc(200% + 1px);position:absolute;left:3px;right:3px;top:3px;z-index:2}
.ev small{display:block;font-weight:400;opacity:.85;font-size:9px}
.am-body{position:relative}
/* Static: no JS ticker on the landing. 80px crosses the tall Фарбування card on purpose —
   the now-line must be seen overlaying a booking, which is the whole point of z-index:4. */
.now{position:absolute;left:46px;right:0;top:80px;height:0;z-index:4;pointer-events:none}
.now::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--color-error)}
.now::after{content:"";position:absolute;left:-4px;top:-3px;width:8px;height:8px;border-radius:50%;background:var(--color-error)}
@media(prefers-reduced-motion:reduce){.am-live i{animation:none}}

.sp{display:grid;grid-template-columns:250px 1fr}
.sp-side{border-right:1px solid var(--color-border);padding:12px}
.sp-main{padding:18px 20px}
.row{display:flex;align-items:center;gap:10px;padding:8px 9px;border-radius:var(--r-sm);font-size:13px}
.row.sel{background:var(--color-primary-subtle)}
.av{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:10px;font-weight:700;flex:0 0 auto}
.nm{display:flex;flex-direction:column;line-height:1.3;min-width:0}
.nm b{font-weight:600;font-size:13px} .nm span{font-size:11px;color:var(--color-text-muted);font-family:var(--font-mono)}
.ch{display:flex;align-items:center;gap:10px;margin-bottom:15px}
.ch .big{width:44px;height:44px;border-radius:50%;background:#4F8A6B;color:#fff;display:grid;place-items:center;font-weight:700;font-size:14px}
.ch h6{font-family:var(--font-display);font-size:17px;font-weight:700;letter-spacing:-.015em}
.ch p{font-size:12px;color:var(--color-text-muted);font-family:var(--font-mono)}
.tg{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:13px}
.tg span{font-size:10.5px;font-weight:600;color:#fff;border-radius:999px;padding:3px 10px}
.fl{display:grid;gap:9px}
.f{border:1px solid var(--color-border);border-radius:var(--r-sm);padding:9px 11px;background:var(--color-surface-alt)}
.f .k{font-size:9.5px;text-transform:uppercase;letter-spacing:.07em;color:var(--color-text-faint);font-weight:700}
.f .v{font-size:13.5px;margin-top:2px}
.f.warn{background:var(--color-error-subtle);border-color:var(--color-error-border)} .f.warn .v{color:var(--color-error);font-weight:600}
.st3{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:13px}
.st{border:1px solid var(--color-border);border-radius:var(--r-sm);padding:9px 11px}
.st .n{font-family:var(--font-display);font-weight:800;font-size:19px;letter-spacing:-.02em}
.st .l{font-size:9.5px;color:var(--color-text-faint);font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.mr{display:grid;grid-template-columns:1fr 100px 84px;gap:12px;align-items:center;padding:13px 9px;
    border-bottom:1px solid var(--color-border);font-size:13px}
.mr:last-child{border-bottom:none}
.money{font-family:var(--font-mono);font-weight:700;text-align:right;font-variant-numeric:tabular-nums}
.bar2{height:6px;border-radius:999px;background:var(--color-surface-alt);overflow:hidden;margin-top:5px}
.bar2 i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--color-primary),var(--color-primary-light))}
.tot{font-family:var(--font-display);font-weight:800;font-size:36px;letter-spacing:-.03em}
.sb{display:flex;height:10px;border-radius:999px;overflow:hidden;margin:13px 0 9px}
.lg{display:flex;gap:16px;flex-wrap:wrap;font-size:11.5px;color:var(--color-text-muted)}
.lg i{width:8px;height:8px;border-radius:2px;display:inline-block;margin-right:5px}
.kpi{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.kpi>div{border:1px solid var(--color-border);border-radius:var(--r-sm);padding:13px 14px}
.kpi .n{font-family:var(--font-display);font-weight:800;font-size:24px;letter-spacing:-.025em}
.kpi .l{font-size:9.5px;color:var(--color-text-faint);font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-top:2px}
.kpi .dd{font-size:11px;font-weight:600;margin-top:3px}
.kpi .dd.up{color:var(--color-success)} .kpi .dd.dn{color:var(--color-error)}
.spark{margin-top:15px;border:1px solid var(--color-border);border-radius:var(--r-sm);padding:14px}
@media(max-width:700px){.sp{grid-template-columns:1fr}.sp-side{border-right:none;border-bottom:1px solid var(--color-border)}
  .kpi{grid-template-columns:repeat(2,1fr)}
  /* nav overflowed sideways at 375px: brand + full nav-r (Зареєструватися + Увійти) no longer fit
     in 40px-padded space. The nav «Зареєструватися» is hidden here and the hero CTA repeats it
     verbatim ~40px below, so it's the nav-only copy that goes, not the control itself — the
     hero/closing CTA versions are untouched (they live outside .nav). */
  .nav{padding:14px 16px}
  .nav .btn-soon,.nav .nav-signup{display:none}
  .hero{padding-left:20px;padding-right:20px}
  .hero .hero-cta{display:flex} /* mobile: nav «Зареєструватися» is hidden, so surface it in the hero */
  .ps{padding-left:20px;padding-right:20px}
  .band{padding-left:20px;padding-right:20px}
  .end{padding-left:20px;padding-right:20px}
  /* .mr's fixed 100px/84px columns overflowed a narrow card by ~6px; shrink them and the gap. */
  .mr{grid-template-columns:1fr 66px 62px;gap:8px}}

html{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Belt-and-braces behind <meta name="format-detection" content="telephone=no">.
   iOS Safari linkifies phone-shaped text on its own; the numbers in the client mock are
   invented, so a tappable tel: link there could dial a real stranger. The meta tag is the
   real fix — this keeps any link that slips through looking (and behaving) like plain text. */
.mk a[href^="tel:"]{color:inherit;text-decoration:none;pointer-events:none}
