/* Crushoo · čekací listina, potvrzení, patička, plovoucí tlačítko a okno s údaji */

.join { padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
.join .bokeh i:nth-child(1) { --x: 70%; --y: 3%;  --s: 170px; --c: var(--tang);  --o: .2;  --t: 21s; }
.join .bokeh i:nth-child(2) { --x: -10%; --y: 16%; --s: 130px; --c: var(--pink);  --o: .17; --t: 18s; --dx: 18px; }
.join .bokeh i:nth-child(3) { --x: 84%; --y: 40%; --s: 84px;  --c: var(--lilac); --o: .2;  --t: 15s; }
.join .bokeh i:nth-child(4) { --x: 6%;  --y: 52%; --s: 60px;  --c: var(--lime);  --o: .14; --t: 19s; }
.join .bokeh i:nth-child(5) { --x: 40%; --y: 70%; --s: 150px; --c: var(--peach); --o: .1;  --t: 26s; --dy: 20px; }

.join__grid { display: grid; gap: 30px; }
.join__copy { margin-bottom: 0; }
.perks { display: grid; gap: 10px; margin-top: 4px; }
.perks li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.4; }
.perks .ico { margin-top: .08em; color: var(--lime); }

/* ---------- formulář ---------- */

.card {
  --focus: var(--ink);
  padding: 22px 20px 24px; border-radius: 28px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85);
}
.form { display: grid; gap: 20px; }
/* Bez JavaScriptu by formulář poslal údaje v adrese stránky, proto se schová a ukáže se vysvětlení. */
html:not(.js) .form, html:not(.js) [data-open] { display: none; }
.nojs { font-weight: 600; line-height: 1.5; }
.field { display: grid; gap: 8px; }
.field > label, .field legend { padding: 0; font-size: .98rem; font-weight: 700; }
.field legend { margin-bottom: 8px; }

.field input[type="email"], .field input[type="text"] {
  width: 100%; min-height: 56px; padding: 0 18px;
  border: 2px solid rgba(37, 16, 43, .32); border-radius: 16px;
  background: var(--paper); color: var(--ink); font-size: 1.06rem;
  transition: border-color .15s;
}
.field input::placeholder { color: #7a6580; opacity: 1; }
.field input[type="email"]:hover, .field input[type="text"]:hover { border-color: var(--ink); }
.field input[type="email"]:focus-visible, .field input[type="text"]:focus-visible { outline-offset: 2px; border-color: var(--ink); border-radius: 16px; }
.field input[aria-invalid="true"] { border-color: var(--danger); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: grid; place-items: center; min-height: 56px;
  border: 2px solid rgba(37, 16, 43, .32); border-radius: 16px;
  background: var(--paper); font-weight: 700;
  transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease);
}
.seg label:hover span { border-color: var(--ink); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.seg input:active + span { transform: scale(.97); }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.seg input[aria-invalid="true"] + span { border-color: var(--danger); }

.hint { font-size: .88rem; color: var(--ink-2); }
.err { display: flex; align-items: flex-start; gap: .5em; font-size: .9rem; font-weight: 600; line-height: 1.4; color: var(--danger); }
.err::before {
  content: "!"; flex: none; display: grid; place-items: center; width: 1.45em; height: 1.45em;
  border-radius: 50%; background: var(--danger); color: #fff; font-size: .78em; font-weight: 800;
}

.field > .check { font-weight: 500; }
.check { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .95rem; line-height: 1.45; cursor: pointer; }
.check input {
  -webkit-appearance: none; appearance: none;
  display: grid; place-items: center; width: 28px; height: 28px; margin: 0;
  border: 2px solid rgba(37, 16, 43, .5); border-radius: 9px; background: var(--paper); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.check input::after {
  content: ""; width: 14px; height: 8px; margin-top: -3px;
  border: solid var(--lime); border-width: 0 0 3px 3px; rotate: -45deg; opacity: 0;
}
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { opacity: 1; }
.check input[aria-invalid="true"] { border-color: var(--danger); }
.field--consent .textbtn { justify-self: start; margin-left: 40px; font-size: .92rem; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: .92rem; font-weight: 600; text-align: center; }
.form__status:empty { display: none; }

/* ---------- potvrzení ---------- */

.done { display: grid; gap: 10px; justify-items: center; padding: 30px 6px; text-align: center; outline: none; }
.done__eyes { font: 800 4.6rem/1 var(--font-display); letter-spacing: -.03em; animation: pop .6s var(--ease) both; }
.done__eyes .oo { --pupil: var(--ink); }
.done h3 { font-size: 1.7rem; font-weight: 800; }
.done__demo { margin-top: 8px; padding: .55em .95em; border-radius: 12px; background: rgba(37, 16, 43, .08); font-size: .85rem; color: var(--ink-2); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.94); } }

/* ---------- patička ---------- */

.foot { display: grid; gap: 16px; margin-top: 72px; padding-top: 30px; border-top: 1px solid var(--line-night); }
.foot__logo { font: 800 clamp(2.6rem, 16.4vw, 10.5rem)/.95 var(--font-display); letter-spacing: -.055em; white-space: nowrap; color: var(--cream); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; font-size: .9rem; color: var(--dim); }

/* ---------- plovoucí tlačítko ---------- */

.dock {
  position: fixed; z-index: 30; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateY(170%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s .45s;
}
.dock.is-on { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.dock .btn { width: 100%; min-height: 56px; box-shadow: 0 5px 0 var(--tang-deep), 0 16px 32px -6px rgba(26, 10, 32, .8); }

/* ---------- okno s údaji ---------- */

.modal {
  --focus: var(--ink);
  width: min(100% - 32px, 520px); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 28px; overflow: auto;
  background: var(--cream); color: var(--ink);
}
.modal::backdrop { background: rgba(26, 10, 32, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .35s var(--ease); }
.modal__box { position: relative; display: grid; gap: 16px; padding: 28px 22px 24px; }
.modal h2 { padding-right: 48px; font-size: 1.4rem; line-height: 1.2; }
.modal dl { display: grid; gap: 4px; }
.modal dt { margin-top: 10px; font-weight: 700; }
.modal dd { color: var(--ink-2); font-size: .96rem; line-height: 1.5; }
.modal__x {
  position: absolute; top: 16px; right: 16px; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(37, 16, 43, .09);
}
.modal__x:hover { background: rgba(37, 16, 43, .16); }
.modal__note { padding: .75em 1em; border-radius: 14px; background: rgba(37, 16, 43, .07); font-size: .88rem; color: var(--ink-2); }
.modal .btn { justify-self: start; }
html:has(.modal[open]) { overflow: hidden; }

@media (min-width: 760px) {
  .card { padding: 32px 30px 34px; border-radius: 34px; }
  .modal__box { padding: 36px 34px 32px; }
  .dock { left: auto; right: 24px; bottom: 24px; }
  .dock .btn { width: auto; }
  .foot { margin-top: 110px; }
}

@media (min-width: 900px) {
  .join__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 72px; align-items: center; }
}
