/* The welcome page: the first thing staff and guests see.
   The colours start from the navy of the Hotel Indigo logo. The logo itself
   is public/brand/logo-white.png; replace that file to change the artwork.
   This sheet is loaded after app.css and only by index.html. */

.w-root { background: #081c31; }

.welcome {
  --navy: #0e2e4f;      /* the logo's navy */
  --paper: #f7f4ee;     /* the Indigo AI box */
  --ink: #10243b;       /* text on paper */
  --mist: rgba(255, 255, 255, .76);
  --faint: rgba(255, 255, 255, .52);
  --hair: rgba(255, 255, 255, .14);
  --gold: #dcb978;
  --brand: var(--gold); /* focus rings, from app.css */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  /* Where the logo sits. The opening animation lands on the same spot. */
  --pad-top: clamp(28px, 7vh, 72px);
  --logo-w: 168px;
  --logo-h: calc(var(--logo-w) * 412 / 776);

  min-height: 100vh;
  min-height: 100dvh;
  color: #fff;
  background:
    radial-gradient(90% 520px at 50% -60px, #23578c 0%, rgba(35, 87, 140, 0) 72%),
    linear-gradient(180deg, #0e2e4f 0, #081c31 900px);
}

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

.w-page { max-width: 920px; margin: 0 auto; padding: var(--pad-top) clamp(16px, 4vw, 32px) 36px; }

.w-head { text-align: center; }
.w-logo { display: block; width: var(--logo-w); height: var(--logo-h); margin: 0 auto; }
.w-head h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 5.4vw, 3.3rem); line-height: 1.1;
  letter-spacing: -.01em; margin-top: clamp(16px, 3vh, 28px);
}
.w-lede { color: var(--mist); font-size: 1.08rem; margin-top: 10px; text-wrap: balance; }

.w-notes { max-width: 680px; margin: 0 auto; }
.w-notes .notice { margin-top: 20px; }

/* ---------- the Indigo AI box ---------- */

.w-ask {
  max-width: 680px; margin: clamp(20px, 4vh, 32px) auto 0; background: var(--paper); border-radius: 22px;
  box-shadow: 0 22px 60px rgba(2, 10, 20, .45); transition: box-shadow .2s ease;
}
.w-ask:focus-within { box-shadow: 0 22px 60px rgba(2, 10, 20, .45), 0 0 0 3px rgba(220, 185, 120, .8); }
.w-ask textarea {
  display: block; width: 100%; min-height: 0; max-height: 40vh; border: 0; border-radius: 22px 22px 0 0;
  background: transparent; color: var(--ink); font-size: 1.1rem; line-height: 1.5; padding: 18px 20px 4px; resize: none;
  overflow-y: hidden; /* index.html turns scrolling on once the box is at its tallest */
}
.w-ask textarea:focus { outline: none; } /* the whole box shows the focus instead */
.w-ask textarea::placeholder { color: #7d8998; }
.w-ask-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px 8px 20px; }
.w-ai {
  display: inline-flex; align-items: center; gap: 7px; color: #5b6878;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.w-ai svg { width: 16px; height: 16px; color: #b08a3e; flex: none; }
.w-send { background: var(--navy); border-color: var(--navy); color: #fff; border-radius: 999px; padding: 10px 16px 10px 20px; }
.w-send:hover { background: #17426f; border-color: #17426f; }
.w-send:focus-visible { outline-color: var(--navy); outline-offset: 2px; }
.w-send svg { width: 18px; height: 18px; flex: none; }

.w-ideas { max-width: 680px; margin: 14px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.w-chip {
  min-height: 36px; padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  color: var(--mist); background: rgba(255, 255, 255, .06); border-color: var(--hair);
}
.w-chip:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }

/* ---------- the three starting points ---------- */

.w-or {
  display: flex; align-items: center; gap: 16px; max-width: 680px; margin: clamp(24px, 5vh, 38px) auto 16px;
  color: var(--faint); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
}
.w-or::before, .w-or::after { content: ""; flex: 1; height: 1px; background: var(--hair); }

.w-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 860px; margin: 0 auto; }
.w-kinds.alone { margin-top: clamp(24px, 5vh, 38px); }
.w-kind {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
  padding: 20px; border-radius: 16px; text-align: left; font-weight: 400; color: #fff;
  background: rgba(255, 255, 255, .05); border-color: var(--hair);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.w-kind:hover:not(:disabled) { transform: translateY(-2px); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .32); }
.w-kind svg { width: 28px; height: 28px; color: var(--gold); flex: none; margin-bottom: 14px; }
.w-kind b { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; line-height: 1.2; }
.w-kind span span { display: block; color: var(--mist); font-size: .92rem; line-height: 1.4; margin-top: 6px; }

/* ---------- the quiet row at the bottom ---------- */

.w-foot {
  max-width: 860px; margin: clamp(30px, 6vh, 50px) auto 0; padding-top: 24px; border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 48px;
}
.w-foot > * { flex: 1 1 280px; max-width: 406px; }
.w-foot h2, .w-foot label {
  display: block; margin: 0 0 10px; color: var(--faint);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.w-join .row { flex-wrap: nowrap; }
.w-join input { background: rgba(0, 0, 0, .25); border-color: var(--hair); color: #fff; }
.w-join input::placeholder { color: rgba(255, 255, 255, .32); }
.w-join button { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.w-join button:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.w-recent a { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; color: #fff; text-decoration: none; border-top: 1px solid var(--hair); }
.w-recent a:first-child { border-top: 0; padding-top: 0; }
.w-recent a:hover .t { text-decoration: underline; }
.w-recent .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-recent .code { color: var(--faint); font-size: .85rem; }

.w-status { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 30px; color: var(--faint); font-size: .8rem; }
.w-status .dot { color: var(--ok); }

/* ---------- the small window for a name and the staff code ---------- */

.w-dialog {
  width: min(92vw, 420px); padding: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px;
  background: #10294a; color: #fff; box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}
.w-dialog[open] { animation: w-dialog-in .22s ease; }
.w-dialog::backdrop { background: rgba(4, 14, 26, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.w-dialog form { display: grid; gap: 14px; padding: 24px; }
.w-dialog h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; letter-spacing: 0; }
.w-dialog label { color: var(--mist); }
.w-dialog input { background: rgba(0, 0, 0, .28); border-color: rgba(255, 255, 255, .18); color: #fff; }
.w-dialog input::placeholder { color: rgba(255, 255, 255, .35); }
.w-dialog .hint { color: var(--faint); font-size: .85rem; margin-top: 6px; }
.w-dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.w-dialog .actions button { background: transparent; border-color: rgba(255, 255, 255, .26); color: #fff; min-width: 96px; }
.w-dialog .actions button.primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
@keyframes w-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- the opening ----------
   Played once per visit (index.html decides, and adds .play-intro to <html>).
   The logo appears in the middle of the screen, travels up to its place at
   the top of the page, and the page rises in behind it. A press or a key
   skips it, and people who have asked their device for less motion never
   see it. */

.intro { display: none; }

.play-intro .intro { display: block; position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.play-intro .intro::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 55% at 50% 46%, #1a4877 0%, #0c2947 62%, #081c31 100%);
  animation: intro-veil .6s ease 1s forwards;
}
.play-intro .intro img {
  position: absolute; left: 50%; top: 50%; width: min(64vw, 300px); height: auto; transform: translate(-50%, -50%);
  animation:
    intro-in .7s cubic-bezier(.2, .7, .2, 1) .1s both,
    intro-up .65s cubic-bezier(.6, 0, .2, 1) .95s forwards,
    intro-off .2s linear 1.6s forwards;
}
.play-intro .w-logo { animation: intro-on .2s linear 1.55s both; }
/* The page starts to rise as the logo arrives, so the logo never crosses the heading. */
.play-intro .rise { animation: rise .75s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(1.45s + var(--i, 0) * 70ms); }

@keyframes intro-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(.94); filter: blur(8px); }
  to { opacity: 1; transform: translate(-50%, -50%); filter: blur(0); }
}
@keyframes intro-up { to { top: calc(var(--pad-top) + var(--logo-h) / 2); width: var(--logo-w); } }
@keyframes intro-off { to { opacity: 0; } }
@keyframes intro-on { from { opacity: 0; } }
@keyframes intro-veil { to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  .play-intro .intro { display: none; }
  .play-intro .w-logo, .play-intro .rise, .w-dialog[open] { animation: none; }
  .w-kind { transition: none; }
}

/* ---------- short screens ----------
   A laptop with the browser's bars showing: pull things together so the
   three starting points are visible without scrolling. */

@media (max-height: 760px) and (min-width: 721px) {
  .welcome { --pad-top: 22px; --logo-w: 150px; }
  .w-head h1 { margin-top: 12px; font-size: 2.6rem; }
  .w-lede { margin-top: 6px; }
  .w-ask { margin-top: 18px; }
  .w-or { margin: 20px auto 14px; }
  .w-kind { padding: 16px 18px; }
  .w-kind svg { margin-bottom: 10px; }
}

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  .w-kinds { grid-template-columns: 1fr; gap: 10px; }
  .w-kind { flex-direction: row; align-items: center; gap: 16px; padding: 16px; }
  .w-kind svg { margin-bottom: 0; }
  .w-lede { font-size: 1rem; }
  .w-ask textarea { font-size: 1.05rem; }
}
@media (max-width: 420px) {
  .w-ai span { display: none; } /* the star alone, so the button keeps its room */
}
