/* Kohal's small pages (create an account, sign in, the pages behind the confirmation link): the look of the landing page.
   A dark side panel with the pitch and a live picture, and the form in a card beside it. One column on a phone. */
:root {
  --bg: #f6f4ee; --card: #ffffff; --line: rgba(36, 40, 31, 0.12); --line-2: rgba(36, 40, 31, 0.06);
  --text: #24281f; --muted: #575c4f; --dim: #6e7364; --accent: #565d46; --accent-soft: rgba(86, 93, 70, 0.13);
  --dot: #e0482b; --night: #13150f; --err: #a63d28;
  --ease: cubic-bezier(0.32, 0.72, 0, 1); --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); font-family: Manrope, system-ui, sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 23px; letter-spacing: -0.045em; text-decoration: none; color: inherit; }
.brand .mark { width: 26px; height: 26px; flex: none; }

/* Two halves */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100vh; min-height: 100dvh; }
.side { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: 44px 56px 48px; display: flex; flex-direction: column; gap: 40px; }
.side::before { content: ""; position: absolute; width: 640px; height: 640px; right: -260px; top: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 72, 43, 0.5), transparent 62%); animation: glow 10s ease-in-out infinite alternate; }
.side::after { content: ""; position: absolute; width: 520px; height: 520px; left: -240px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(109, 122, 79, 0.42), transparent 64%); }
@keyframes glow { to { transform: translate(-70px, 60px) scale(1.14); } }
.side > * { position: relative; z-index: 1; }
.side-mid { margin: auto 0; display: flex; flex-direction: column; gap: 26px; max-width: 30em; }
.side h2 { font-size: clamp(34px, 3.6vw, 54px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; text-wrap: balance; }
.points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.points svg { width: 20px; height: 20px; margin-top: 3px; color: var(--dot); }
.side-foot { font-size: 13.5px; color: rgba(255, 255, 255, 0.55); }
.side-foot a { color: rgba(255, 255, 255, 0.8); }

/* The live picture: the visitor's own booking page, named as they type */
.peek { padding: 7px; border-radius: 26px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); max-width: 400px; }
.peek-in { border-radius: 20px; background: #fbfaf6; color: var(--text); overflow: hidden; box-shadow: inset 0 1px 0 #fff; }
.peek-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #efede5; font-size: 13px; font-weight: 600; color: var(--muted); }
.peek-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3cfc2; flex: none; }
.peek-url { flex: 1; min-width: 0; padding: 5px 11px; border-radius: 999px; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.peek-url b { color: var(--text); font-weight: 800; }
.peek-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; font-size: 14px; line-height: 1.3; }
.peek-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; min-width: 0; }
.peek-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peek-brand i { width: 34px; height: 34px; flex: none; border-radius: 11px; background: var(--text); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 15px; transition: transform 0.5s var(--spring); }
.peek.typed .peek-brand i { transform: scale(1.12) rotate(-6deg); }
.peek-row { display: flex; justify-content: space-between; gap: 10px; padding: 11px 13px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
.peek-row span { font-weight: 500; color: var(--muted); }
.peek-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.peek-times span { text-align: center; padding: 8px 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-variant-numeric: tabular-nums; }
.peek-times .on { background: var(--text); color: #fff; box-shadow: none; animation: pick 6s var(--ease) infinite; }
@keyframes pick { 0%, 40% { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); } 48%, 100% { background: var(--text); color: #fff; box-shadow: none; } }

/* The form half */
.main { display: flex; flex-direction: column; padding: 44px 24px 40px; }
.main-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 520px; width: 100%; margin: 0 auto; font-size: 14.5px; color: var(--muted); }
.main-top .brand { display: none; color: var(--text); }
.main-mid { margin: auto; width: 100%; max-width: 520px; padding: 40px 0; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }
.lead { color: var(--muted); }
.steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 13px; font-weight: 700; color: var(--dim); counter-reset: s; }
.steps li { flex: 1; display: flex; flex-direction: column; gap: 8px; counter-increment: s; }
.steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); transition: background-color 0.6s var(--ease); }
.steps li.on { color: var(--text); } .steps li.on::before { background: var(--text); } .steps li.now::before { background: var(--dot); }
.shell { padding: 7px; border-radius: 30px; background: rgba(36, 40, 31, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); }
.card, form.card { display: grid; gap: 18px; padding: 28px; border-radius: 23px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -36px rgba(44, 48, 34, 0.4); }
label { display: grid; gap: 7px; font-weight: 700; font-size: 14px; }
input[type="text"], input[type="email"], input:not([type]) { font: inherit; font-size: 16px; font-weight: 500; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf7; color: var(--text); width: 100%; transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s; }
input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.hint { font-weight: 500; font-size: 13.5px; color: var(--dim); }
.address { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf7; transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s; }
.address:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.address input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; padding-right: 4px; }
.address input:focus { box-shadow: none; background: transparent; }
.address span { padding-right: 16px; color: var(--muted); white-space: nowrap; font-size: 15px; font-weight: 600; }
.langs { display: flex; gap: 5px; padding: 5px; border-radius: 999px; background: #f1efe7; }
.langs button { flex: 1; min-height: 40px; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); background: transparent; border: 0; border-radius: 999px; cursor: pointer; transition: background-color 0.4s var(--ease), color 0.4s var(--ease); }
.langs button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(36, 40, 31, 0.14); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--text); }
.error { color: var(--err); font-size: 15px; font-weight: 600; }
.error:empty { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--text); color: #fff; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; box-shadow: 0 14px 30px -14px rgba(36, 40, 31, 0.7); transition: transform 0.5s var(--ease), background-color 0.4s var(--ease); }
.btn:hover { background: #33392b; }
.btn:active { transform: scale(0.97); }
.btn.has-ico { padding-right: 8px; }
.btn-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); transition: transform 0.5s var(--ease), background-color 0.4s var(--ease); }
.btn-ico svg { width: 18px; height: 18px; }
.btn:hover .btn-ico { transform: translate(3px, -1px) scale(1.06); background: var(--dot); }
/* While a request runs the pressed button keeps its colour, shows a spinner and says what is happening */
.btn[disabled] { cursor: wait; }
.btn[disabled] .btn-ico { display: none; }
.btn[disabled].has-ico { padding-right: 28px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.trap { position: absolute; left: -9999px; }
.below { font-size: 14.5px; color: var(--muted); }

/* A finished state: sent, ready, or something to do */
.state { justify-items: start; gap: 14px; animation: rise 0.8s var(--ease) both; }
.state h1, .state h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.state p { color: var(--muted); overflow-wrap: anywhere; }
.badge { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #e7f2ea; color: #23694a; animation: pop 0.7s var(--spring) 0.15s both; }
.badge.warn { background: #f8e9e4; color: var(--err); } .badge.wait { background: var(--accent-soft); color: var(--accent); }
.badge svg { width: 28px; height: 28px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.5); } }
.solo { max-width: 560px; margin: 0 auto; padding: 56px 20px 64px; display: flex; flex-direction: column; gap: 28px; min-height: 100vh; min-height: 100dvh; }
.solo .shell { margin: auto 0; }

@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: max(24px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); }
  .main-top .brand { display: inline-flex; }
  .main-mid { padding: 28px 0 12px; margin: 0 auto; }
  .card, form.card { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
