@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #05060a;
  --ink: #efe9dd;
  --ink-2: rgba(239, 233, 221, 0.66);
  --ink-3: rgba(239, 233, 221, 0.34);
  --amber: #e8a33d;
  --blue: #4a84d2;
  --teal: #14967f;
  --one: linear-gradient(100deg, var(--amber) 0%, var(--blue) 58%, var(--teal) 100%);
  --col: min(40rem, calc(100vw - 3.2rem));
  --fs: clamp(0.91rem, 0.686rem + 0.735vw, 1.4rem); /* 30% smaller than the first version */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --kb: 0px;
}

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

html, body {
  height: 100%;
  background: var(--void);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body { position: fixed; inset: 0; overflow: hidden; overscroll-behavior: none; }
::selection { background: rgba(20, 150, 127, 0.38); color: #fff; }
a { color: inherit; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---- the light ------------------------------------------------------------ */
#aura { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.nogl body {
  background:
    radial-gradient(60% 50% at 16% 80%, rgba(232, 163, 61, 0.15), transparent 70%),
    radial-gradient(55% 50% at 86% 46%, rgba(74, 132, 210, 0.12), transparent 70%),
    radial-gradient(60% 45% at 50% 0%, rgba(20, 150, 127, 0.1), transparent 70%),
    var(--void);
}
.nogl #aura { display: none; }

/* ---- the conversation ---------------------------------------------------------- */
main { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

/* the stage: text appears at one fixed place, is read, and fades; nothing is pushed away or scrolled */
#log {
  position: absolute;
  left: 50%;
  top: 24vh;
  width: var(--col);
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 2.6s var(--ease), filter 2.6s var(--ease);
}
#log.recede { opacity: 0.14; filter: blur(3px); }

/* every block starts exactly at the stage's origin: one that fades and one that arrives never push each other */
.m { position: absolute; left: 0; top: 0; width: 100%; margin: 0; font-weight: 300; letter-spacing: -0.012em; line-height: 1.4; }
/* a block is in exactly one of three states: shown, fading away (ends at 0, then it is taken out), or a faint trace */
/* a message is one block of short paragraphs with air between them, never everything squeezed into one lump */
.para { display: block; }
.para + .para { margin-top: 0.95em; }
.m.ai { transition: opacity var(--fade-ms, 5.6s) ease-in-out; }
.m.fading { opacity: 0; }
.m.trace { opacity: var(--trace, 0.14); }
.ai { --c: var(--ink); font-size: var(--fs); color: var(--ink); }
.ai.soft { --c: var(--ink-2); color: var(--ink-2); }

#you {
  position: absolute;
  left: 50%;
  bottom: calc(76vh + 1.2em);
  width: var(--col);
  transform: translate(-50%, 6px);
  font-size: max(11px, calc(var(--fs) * 0.72));
  letter-spacing: 0.012em;
  background: var(--one);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
#you.in { opacity: 0.92; transform: translate(-50%, 0); }
#you.out { opacity: 0; transform: translate(-50%, -4px); transition-duration: 3.4s; }

.w { white-space: nowrap; }
.c { color: transparent; }
.c.on { animation: ignite 0.9s var(--ease) both; }
@keyframes ignite {
  from { color: transparent; text-shadow: 0 0 0.5em rgba(232, 163, 61, 0.95); }
  to { color: var(--c, var(--ink)); text-shadow: 0 0 0 rgba(232, 163, 61, 0); }
}

.fast .c.on { animation: none; color: var(--c, var(--ink)); }
.c.last { position: relative; }
.c.last::after {
  content: "";
  position: absolute;
  left: 100%;
  margin-left: 0.07em;
  top: 0.12em;
  bottom: 0.02em;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(var(--amber), var(--teal));
  box-shadow: 0 0 14px rgba(232, 163, 61, 0.6);
  opacity: 1;
  transition: opacity 1.4s ease-in-out;
}
.c.last.off::after { opacity: 0; } /* the typing caret rests, then fades away */
.tc {
  display: inline-block;
  width: 2px;
  height: 1em;
  vertical-align: -0.12em;
  border-radius: 1px;
  background: linear-gradient(var(--amber), var(--teal));
  box-shadow: 0 0 14px rgba(232, 163, 61, 0.55);
  animation: breathe 1.9s ease-in-out infinite;
}
/* the waiting caret appears only when what was there before has gone, and it comes up slowly */
.wait .tc { opacity: 0; animation: none; }
.wait.ready .tc { animation: wake 1.2s ease-out forwards, breathe 1.9s ease-in-out 1.2s infinite; }
@keyframes wake { from { opacity: 0; } to { opacity: 0.2; } }
@keyframes breathe { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

/* a link is written like all other text; its letters carry their own place on the gradient (set per letter in typewriter.js) */
.lk { text-decoration: none; cursor: pointer; pointer-events: auto; } /* the text stage lets clicks through to the light behind it, but a link in it must be clickable */
.lk:hover, .lk:focus-visible { text-decoration: underline; text-decoration-color: rgba(239, 233, 221, 0.45); text-decoration-thickness: 1px; text-underline-offset: 0.2em; outline: none; }

/* ---- the Colabido ONE mark, small, top right ---------------------------------------------- */
#mark {
  --mark-o: 0.7; /* slightly transparent */
  position: fixed;
  z-index: 3;
  top: calc(max(env(safe-area-inset-top, 0px), 0px) + 1.4rem);
  right: 1.6rem;
  width: 38px;
  height: auto;
  opacity: var(--mark-o);
  animation: markin 5s var(--ease) both; /* it arrives with the light, not at once */
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
@keyframes markin { from { opacity: 0; } to { opacity: var(--mark-o); } }

/* ---- the one line you write on ---------------------------------------------------- */
#dock {
  position: fixed;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(max(env(safe-area-inset-bottom, 0px), 0px) + var(--kb) + 28vh);
  width: var(--col);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dockdur, 2.4s) var(--ease);
}
#dock.on { opacity: var(--fade, 1); pointer-events: auto; }
#dock.on.busy { opacity: calc(var(--fade, 1) * 0.4); }
#dock.on.away { opacity: 0; pointer-events: none; transition-duration: 2.4s; } /* the booking sheet is open */

#field {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  outline: 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  padding: 0.4em 0;
  font: inherit;
  font-weight: 300;
  font-size: max(16px, calc(var(--fs) * 0.78));
  letter-spacing: -0.005em;
  color: var(--ink-2);
  caret-color: transparent; /* the browser's own caret is off: the page has exactly one caret, the breathing bar below */
}
#field::placeholder { color: transparent; }
/* what the visitor just sent leaves the line as slowly as everything else (it now stands above the stage) */
#dock.sent #field { color: transparent; transition: color 1.6s var(--ease); }

/* the one caret of the page: the breathing Colabido bar, in the chat line and in the booking fields. caret.js keeps it
   exactly where the next character will appear, also after the first typed character. */
.caret {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 1em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s var(--ease);
}
.caret.placed { transition: opacity 0.9s var(--ease), transform 90ms ease-out; }
.caret::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1px;
  background: linear-gradient(var(--amber), var(--teal));
  box-shadow: 0 0 14px rgba(232, 163, 61, 0.55);
  animation: breathe 1.9s ease-in-out infinite;
}
.caret.hold { visibility: hidden; } /* while a piece of text is selected */
.ghost { position: absolute; left: 0; top: 0; visibility: hidden; white-space: pre; pointer-events: none; } /* measures the text for the caret */
#dock.on .caret { opacity: 1; }
#dock.sent .caret { opacity: 0; }

/* ---- legal: two quiet words ----------------------------------------------------------- */
#legal {
  position: fixed;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: calc(max(env(safe-area-inset-bottom, 0px), 0px) + 2.4vh);
  display: flex;
  justify-content: center;
  gap: 1.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
}
#legal a { color: var(--ink-3); text-decoration: none; transition: color 0.6s; }
#legal a:hover, #legal a:focus-visible { color: var(--ink-2); outline: none; }
@media (max-height: 480px) { #legal { display: none; } }

/* ---- booking: a pane of glass that arrives slowly ------------------------------------------ */
#book {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: max(9vh, 2rem) 1rem 2rem;
  pointer-events: none;
}
#book[hidden] { display: none; }

.bk-sheet {
  pointer-events: auto;
  width: min(36rem, 100%);
  max-height: 84vh;
  overflow: auto;
  scrollbar-width: none;
  padding: clamp(1.5rem, 3.4vw, 2.5rem);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(26px) saturate(1.25);
  backdrop-filter: blur(26px) saturate(1.25);
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.55), inset 0 0 70px rgba(255, 255, 255, 0.012);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--bk-dur, 5s) var(--ease), transform var(--bk-dur, 5s) var(--ease);
}
.bk-sheet::-webkit-scrollbar { display: none; }
#book.show .bk-sheet { opacity: 1; transform: none; }
#book:not(.show) .bk-sheet { transition-duration: var(--bk-out, 2.4s); } /* it leaves slowly, too */
/* when the answer replaces the form, the old words fade out first and the new ones come up slowly */
.bk-sheet > * { transition: opacity 2s var(--ease); }
.bk-sheet.swap > * { opacity: 0; }
.bk-sheet.done > * { animation: rise 2.2s var(--ease) both; }

.bk-lead { font-size: calc(var(--fs) * 1.25); font-weight: 300; letter-spacing: -0.012em; line-height: 1.3; color: var(--ink); margin-bottom: 1.1em; }

.bk-lead span { display: block; }
.bk-lead span + span { margin-top: 0.3em; }
.bk-days, .bk-times { display: flex; flex-wrap: wrap; gap: 0.25rem 0.4rem; }
.bk-days { margin-bottom: 1.1rem; }
.bk-times[hidden] { display: none; }

.bk-day, .bk-time {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 300;
  color: var(--ink-3);
  border-radius: 14px;
  transition: color 0.5s var(--ease), background 0.5s var(--ease);
  animation: rise 0.9s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms + 400ms);
}
.bk-day { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; min-width: 3.2rem; padding: 0.55rem 0.6rem; }
.bk-day .wd { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }
.bk-day .dn { font-size: 1.2rem; line-height: 1.1; }
.bk-time { font-size: 0.98rem; padding: 0.5rem 0.75rem; font-variant-numeric: tabular-nums; }
.bk-day:hover, .bk-time:hover, .bk-day:focus-visible, .bk-time:focus-visible { color: var(--ink-2); outline: none; }
.bk-day[aria-pressed="true"], .bk-time[aria-pressed="true"] { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.bk-day[aria-pressed="true"] .dn, .bk-time[aria-pressed="true"] {
  background-image: var(--one);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bk-time[aria-pressed="true"] { background-color: rgba(255, 255, 255, 0.06); }

.bk-who { display: grid; gap: 0.95rem; margin-top: 1.5rem; }
.bk-who[hidden] { display: none; }
.bk-who.in { animation: rise 1s var(--ease) backwards; } /* backwards: when it is over, the form can fade out like everything else */
.bk-f { position: relative; display: grid; gap: 0.1rem; }
.bk-f > span:first-child { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.bk-f .caret { opacity: 0; }
.bk-f input:focus ~ .caret { opacity: 1; }
.bk-f input {
  background: rgba(255, 255, 255, 0.035); /* a surface, not a line: shows where to write */
  border: 0;
  outline: 0;
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-weight: 300;
  font-size: max(16px, 1.02rem);
  color: var(--ink);
  caret-color: transparent; /* the breathing bar is the caret here, too */
  transition: background 0.4s var(--ease);
}
.bk-f input:focus { background: rgba(255, 255, 255, 0.07); }
.bk-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.bk-go {
  justify-self: start;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  padding: 0.4rem 0;
  color: transparent;
  background: var(--one);
  -webkit-background-clip: text;
  background-clip: text;
  transition: opacity 0.6s var(--ease);
}
.bk-go:disabled { opacity: 0.22; cursor: default; }
.bk-note { min-height: 1.3em; margin-top: 1rem; font-size: 0.86rem; line-height: 1.4; color: var(--amber); }
.bk-note a { color: inherit; }
.bk-back { appearance: none; background: none; border: 0; cursor: pointer; font: inherit; font-size: 0.8rem; letter-spacing: 0.09em; color: var(--ink-3); margin-top: 0.4rem; padding: 0.3rem 0; transition: color 0.5s; }
.bk-back:hover, .bk-back:focus-visible { color: var(--ink-2); outline: none; }
.bk-sheet.done .bk-when { font-size: var(--fs); font-weight: 300; margin: 0.2em 0 0.7em; background: var(--one); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bk-sheet.done .bk-note { color: var(--ink-2); }

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

/* ---- no javascript -------------------------------------------------------------------------- */
.ns { position: fixed; z-index: 5; left: 50%; top: 22vh; transform: translateX(-50%); width: var(--col); font-size: 1.15rem; line-height: 1.5; color: var(--ink-2); }
.ns p { margin-bottom: 1em; }

/* ---- low windows: the stage moves up so that the lines never reach the writing line ------------------ */
@media (max-height: 660px) and (min-width: 561px) {
  #log { top: 15vh; }
  #you { bottom: calc(85vh + 1.2em); }
}

/* ---- small screens --------------------------------------------------------------------------- */
@media (max-width: 560px) {
  :root { --col: calc(100vw - 2.4rem); }
  #log { top: 21vh; }
  #you { bottom: calc(79vh + 1.2em); }
  #dock { bottom: calc(max(env(safe-area-inset-bottom, 0px), 0px) + var(--kb) + 24vh); }
  #mark { width: 32px; right: 1.2rem; top: calc(max(env(safe-area-inset-top, 0px), 0px) + 1.2rem); }
  #book { padding-top: 6vh; }
  .bk-sheet { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .c.on { animation-duration: 0.01s; }
  .tc { animation: none; opacity: 0.8; }
  .bk-day, .bk-time, .bk-who.in { animation-duration: 0.01s; animation-delay: 0s; }
  #log { transition-duration: 0.2s; }
}

/* ---- legal pages ------------------------------------------------------------------------------- */
html.doc, html.doc body { position: static; height: auto; min-height: 100%; overflow: auto; }
html.doc body {
  background:
    radial-gradient(60% 40% at 12% 0%, rgba(232, 163, 61, 0.08), transparent 70%),
    radial-gradient(50% 40% at 92% 20%, rgba(74, 132, 210, 0.07), transparent 70%),
    var(--void);
}
.page { max-width: 42rem; margin: 0 auto; padding: 4rem 1.4rem 6rem; font-size: 1.02rem; line-height: 1.7; color: var(--ink-2); }
.page .back { display: inline-block; margin-bottom: 3rem; font-size: 0.8rem; letter-spacing: 0.09em; color: var(--ink-3); text-decoration: none; transition: color 0.5s; }
.page .back:hover, .page .back:focus-visible { color: var(--ink); outline: none; }
.page h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 300; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 1.6rem; }
.page h2 { font-size: 1.05rem; font-weight: 400; color: var(--ink); margin: 2.2rem 0 0.5rem; }
.page p { margin-bottom: 0.9rem; }
.page a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(239, 233, 221, 0.3); text-underline-offset: 0.2em; }
