/* ==========================================================================
   demo.tioo.com/welcome/ — the live demo's launchpad (templates/demo/welcome_live.html).
   Built on the marketing kit (static/css/mkt/: tokens, base, components, pages,
   mocks); this file only adds the page's own pieces: the slim header, the live
   counts, the "Start here" panel, the "what to try" rows with their drawn minis, the honest-note ledger,
   the footer and the brand splash. Vanilla CSS, phone first, no sideways scroll.
   ========================================================================== */

/* ---- Header: logo · live-demo chip · languages · Exit demo ---------- */
.dw-head { background: #fff; border-bottom: 1px solid var(--line); }
.dw-head .mkt-container { display: flex; align-items: center; gap: 12px 16px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.dw-head__chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.dw-head .dw-head__lang { margin-left: auto; }
.dw-head__exit { --h: 40px; padding: 0 14px; font-size: 15px; }
.dw-head__exit svg { transform: rotate(180deg); }
.dw-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 14.5px; color: var(--ink-3); }
.dw-langs a, .dw-langs strong { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: var(--radius); }
.dw-langs a { color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.dw-langs a:hover { color: var(--ink); background: var(--bg-2); }
.dw-langs strong { color: var(--ink); font-weight: 600; }
/* The dot between languages hangs in the gap to the LEFT of each link, so a
   link that wraps to a new line has its dot clipped off at the row's edge —
   a line never starts with "·" (same trick as the marketing trust line). */
.dw-langs { gap: 4px 10px; overflow: clip; }
.dw-langs a, .dw-langs strong { position: relative; }
.dw-langs > * + *::before { content: "·"; position: absolute; left: -8px; top: 50%; transform: translateY(-50%); color: var(--ink-4); line-height: 1; pointer-events: none; }
/* The hero + sign-up note lines: same hanging dot, same clip. */
.dw .note-row { overflow: clip; row-gap: 4px; }
.dw .note-row span { position: relative; white-space: nowrap; }
.dw .note-row span + span::before { position: absolute; left: -11px; top: 50%; width: 3px; height: 3px; margin: -1px 0 0; }
@media (max-width: 639px) {
  .dw-head .mkt-container { min-height: 56px; padding-top: 8px; padding-bottom: 4px; }
  .dw-head__chip { display: none; }
  .dw-head__exit { --h: 38px; }
  .dw-langs a, .dw-langs strong { min-height: 40px; }
}

/* ---- Hero: words + the dashboard button left, the "Start here" panel right ---- */
.dw-hero h1 { max-width: 14ch; }
.dw-hero .lede { max-width: 54ch; }
.dw-hero .lede strong { color: var(--ink); }
.dw-counts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; font-size: var(--fs-s); color: var(--ink-3); }
.dw-counts span { display: inline-flex; align-items: baseline; gap: 8px; }
.dw-counts b { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
/* ---- The two practice-hotel buttons (docs/DEMO_PRACTICE_HOTEL_PLAN.md) ---- */
.dw-choose { margin: 28px 0 0; }
.dw-choose__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 620px; }
.dw-choice { display: flex; flex-direction: column; gap: 6px; min-height: 112px; padding: 18px 20px; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; transition: border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease), box-shadow var(--dur-1); }
.dw-choice b { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.dw-choice span { font-size: 14px; line-height: 1.45; color: var(--ink-3); text-wrap: pretty; }
.dw-choice:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 12px 28px -18px rgba(15, 23, 42, .35); }
.dw-choice:focus-visible { outline: 3px solid var(--focus, #93c5fd); outline-offset: 2px; }
.dw-choice--main { background: var(--ink); border-color: var(--ink); color: #fff; }
.dw-choice--main span { color: rgba(255, 255, 255, .78); }
.dw-choice--main:hover { border-color: var(--ink); }
.dw-choice:disabled { opacity: .7; cursor: progress; transform: none; }
.dw-choose .tioo-turnstile { margin: 12px 0 0 !important; }
.dw-look { margin: 14px 0 0; font-size: 15px; }
@media (max-width: 539px) {
  .dw-choose__grid { grid-template-columns: minmax(0, 1fr); }
  .dw-choice { min-height: 0; padding: 16px 18px; }
}
/* ---- "Start here": the panel of real links in the hero (plan §14.1) ---- */
.dw-start { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -20px rgba(15, 23, 42, .25); }
.dw-start__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.dw-start__list { list-style: none; margin: 0; padding: 0; }
.dw-start__item + .dw-start__item { border-top: 1px solid var(--line); }
.dw-start__item a { display: grid; grid-template-columns: 28px minmax(0, 1fr) 22px; gap: 14px; align-items: center; min-height: 56px; padding: 11px 0; color: inherit; text-decoration: none; }
.dw-start__n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-2); font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.dw-start__item--first .dw-start__n { background: var(--ink); border-color: var(--ink); color: #fff; }
.dw-start__txt { min-width: 0; }
.dw-start__txt b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.dw-start__txt span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); text-wrap: pretty; }
.dw-start__item--first .dw-start__txt span { color: var(--ink-2); }
.dw-start__go { width: 22px; height: 22px; display: grid; place-items: center; color: var(--ink-3); transition: transform var(--dur-1) var(--ease), color var(--dur-1); }
.dw-start__go svg { width: 18px; height: 18px; }
.dw-start__item a:hover .dw-start__go { transform: translateX(4px); color: var(--ink); }
.dw-start__item a:hover .dw-start__txt b { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.dw-start__item a:focus-visible { outline: 3px solid var(--focus, #93c5fd); outline-offset: 2px; border-radius: 8px; }
@media (max-width: 999px) {
  .dw-start { padding: 14px 16px 4px; }
  .dw-start__txt b { font-size: 15.5px; }
  .dw-start__item a { min-height: 52px; padding: 9px 0; gap: 12px; }
}
@media (min-width: 1000px) { .page-hero--split .hero-grid { align-items: start; } .dw-hero .page-hero__copy { padding-top: 24px; } }

/* ---- What to try: numbered hairline rows, each with a drawn mini ------ */
.dw-try { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .dw-try { grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 0; } .dw-try > li { border-top: 1px solid var(--line); } }
@media (min-width: 1400px) { .dw-try { column-gap: 96px; } }
.dw-try > li { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .dw-try > li { border-bottom: 0; } .dw-try > li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); } }
.dw-try a { display: grid; grid-template-columns: 30px minmax(0, 1fr) 120px 24px; gap: 18px; align-items: center; padding: 22px 0; color: inherit; min-height: 44px; }
.dw-try__n { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); font-variant-numeric: tabular-nums; align-self: start; padding-top: 2px; }
.dw-try__n::before { content: "0"; color: var(--line-2); }
.dw-try__txt { min-width: 0; }
.dw-try__txt b { display: block; font-size: var(--fs-l); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 4px; }
.dw-try__txt span { display: block; font-size: 15.5px; color: var(--ink-3); line-height: 1.5; text-wrap: pretty; }
.dw-try__go { width: 24px; height: 24px; color: var(--ink-3); display: grid; place-items: center; transition: transform var(--dur-1) var(--ease), color var(--dur-1); }
.dw-try__go svg { width: 18px; height: 18px; }
.dw-try a:hover .dw-try__go { transform: translateX(4px); color: var(--ink); }
.dw-try a:hover .dw-mini { border-color: var(--ink); }
@media (max-width: 599px) {
  .dw-try a { grid-template-columns: 24px minmax(0, 1fr) 88px; gap: 12px; padding: 18px 0; }
  .dw-try__go { display: none; }
  .dw-try__n { font-size: 14px; }
  .dw-try__txt b { font-size: 17px; }
  .dw-try__txt span { font-size: 14.5px; }
}

/* the minis: a 120×78 box (88×66 on phones) with a tiny drawing of the page */
.dw-mini { position: relative; display: grid; align-content: center; gap: 5px; width: 120px; height: 78px; padding: 9px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; transition: border-color var(--dur-1); }
.dw-mini i, .dw-mini s, .dw-mini em, .dw-mini b { display: block; text-decoration: none; font-style: normal; }
@media (max-width: 599px) { .dw-mini { width: 88px; height: 66px; padding: 7px; gap: 4px; } }
/* 1 · reservations: door badge, a line, a state dot */
.dw-mini--rsv .r { display: grid; grid-template-columns: 14px 1fr 9px; gap: 6px; align-items: center; height: 16px; padding: 0 4px; border-radius: 3px; border-left: 2px solid transparent; }
.dw-mini--rsv .r b { width: 14px; height: 12px; border-radius: 2px; background: var(--ink); color: #fff; font-size: 8px; font-weight: 700; line-height: 12px; text-align: center; }
.dw-mini--rsv .r s { height: 4px; border-radius: 2px; background: var(--line-2); }
.dw-mini--rsv .r em { width: 9px; height: 9px; border-radius: 50%; }
.dw-mini--rsv .g { background: #15803d; } .dw-mini--rsv .y { background: #d97706; } .dw-mini--rsv .b { background: #2563eb; }
.dw-mini--rsv .is-in { background: #bbf7d0; border-left-color: #15803d; }
.dw-mini--rsv .is-ci { background: #fff7ed; border-left-color: #d97706; }
/* 2 · calendar: seven columns, four bars coloured by booking site */
.dw-mini--cal { grid-template-columns: repeat(7, 1fr); grid-auto-rows: 11px; gap: 4px 3px; align-content: center; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / 7) 100%; background-position: 9px 0; }
.dw-mini--cal .bar { grid-column: var(--s) / span var(--n); height: 11px; border-radius: 2px; }
.dw-mini--cal .bar.booking { background: var(--ch-booking-soft); border-left: 2px solid var(--ch-booking); }
.dw-mini--cal .bar.airbnb { background: var(--ch-airbnb-soft); border-left: 2px solid var(--ch-airbnb); }
.dw-mini--cal .bar.direct { background: var(--ch-direct-soft); border-left: 2px solid var(--ch-direct); }
/* 3 · the guest's phone: a real screenshot in a tiny drawn phone */
.dw-mini--phone { place-items: center; padding: 6px; background: var(--band-blue); }
.dw-mini--phone .phone-frame { display: block; width: 34px; padding: 2px; border-radius: 7px; box-shadow: none; }
.dw-mini--phone .phone-frame .screen { display: block; border-radius: 5px; }
@media (max-width: 599px) { .dw-mini--phone .phone-frame { width: 28px; } }
/* 4 · cleaning: three rows with a state tag */
.dw-mini--clean i { display: grid; grid-template-columns: 1fr 26px; gap: 6px; align-items: center; height: 16px; padding: 0 5px; background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.dw-mini--clean s { height: 4px; border-radius: 2px; background: var(--line-2); }
.dw-mini--clean em { height: 8px; border-radius: 2px; }
.dw-mini--clean .turn { background: var(--bad); } .dw-mini--clean .prog { background: var(--warn); } .dw-mini--clean .done { background: var(--ok); }
/* 5 · smart locks: the padlock and a six-digit door code */
.dw-mini--lock { grid-template-columns: 18px repeat(6, 1fr); gap: 3px; align-items: center; }
.dw-mini--lock svg { width: 16px; height: 16px; color: var(--ink); margin-right: 2px; }
.dw-mini--lock i { height: 20px; border: 1px solid var(--line-2); border-radius: 3px; background: #fff; font-family: var(--font-display); font-size: 10.5px; font-weight: 600; line-height: 18px; text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 599px) { .dw-mini--lock { grid-template-columns: 14px repeat(6, 1fr); gap: 2px; } .dw-mini--lock svg { width: 12px; height: 12px; margin-right: 0; } .dw-mini--lock i { height: 16px; font-size: 8.5px; line-height: 14px; } }
/* 6 · the hotel's website: menu bar, photo, three rooms */
.dw-mini--site { gap: 4px; background: #fff; }
.dw-mini--site .nav { display: flex; align-items: center; gap: 4px; height: 10px; }
.dw-mini--site .nav s { width: 14px; height: 3px; border-radius: 2px; background: var(--ink); }
.dw-mini--site .nav s.short { width: 8px; background: var(--line-2); }
.dw-mini--site .nav em { margin-left: auto; width: 16px; height: 7px; border-radius: 2px; background: var(--ink); }
.dw-mini--site .pic { height: 26px; border-radius: 3px; background: linear-gradient(135deg, #16324f, #2a5d7c 60%, #6fb3c9); }
.dw-mini--site .rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.dw-mini--site .rooms s { height: 12px; border-radius: 2px; background: var(--bg-3); border: 1px solid var(--line); }
/* 4 · rooms: three room cards, each with a photo and a price */
.dw-mini--rooms { gap: 4px; }
.dw-mini--rooms i { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; align-items: center; height: 16px; padding: 0 5px 0 2px; background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.dw-mini--rooms .pic { height: 12px; border-radius: 2px; }
.dw-mini--rooms .p1 { background: linear-gradient(135deg, #7c5b3c, #c9a27a); }
.dw-mini--rooms .p2 { background: linear-gradient(135deg, #2a5d7c, #8fc3d6); }
.dw-mini--rooms .p3 { background: linear-gradient(135deg, #3b5f3c, #9fc59a); }
.dw-mini--rooms s { height: 4px; border-radius: 2px; background: var(--line-2); }
.dw-mini--rooms em { font-size: 9px; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 599px) { .dw-mini--rooms em { font-size: 8px; } }
/* 8 · event pricing: a month with event days, one suggestion */
.dw-mini--evp .month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dw-mini--evp .month s { height: 8px; border-radius: 2px; background: #fff; border: 1px solid var(--line); }
.dw-mini--evp .month .ev { background: var(--c); border-color: var(--c); opacity: .55; }
.dw-mini--evp .month .ev.hot { opacity: 1; }
.dw-mini--evp .sug { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; height: 16px; padding: 0 5px; background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.dw-mini--evp .sug s { height: 4px; border-radius: 2px; background: var(--line-2); }
.dw-mini--evp .sug em { font-size: 9px; font-weight: 700; color: var(--ok-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 599px) { .dw-mini--evp .sug em { font-size: 8px; } }
/* 9 · messages: bubbles in and out */
.dw-mini--msg i { height: 13px; width: 70%; border-radius: 7px; background: #fff; border: 1px solid var(--line); }
.dw-mini--msg .out { justify-self: end; background: var(--accent-soft-2); border-color: var(--accent-soft-2); }
.dw-mini--msg .short { width: 48%; }

/* ---- Real vs pretend: the kit's three hairline columns ---------------- */
.dw-ledger .kit-step h3 { font-size: 24px; }
.dw-ledger .checks { margin-top: 18px; }
.dw-ledger .checks li { font-size: 15.5px; }
.dw-ledger .dw-checks--off svg { color: var(--bad); }
.dw-ledger .kit-step p { margin-top: 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.dw-ledger .kit-step p + p { margin-top: 12px; }
.band-blue .kit-step { border-color: var(--line-2); }

/* ---- Your own account (the page's one dark band) ---------------------- */
.dark .cta-band p { color: var(--on-dark-2); }
.dark .cta-band .note-row { color: var(--on-dark-3); }
.dark .cta-band .note-row span + span::before { background: var(--on-dark-line); }

/* ---- Footer ------------------------------------------------------------ */
.dw-foot { border-top: 1px solid var(--line); padding: 22px 0; background: #fff; }
.dw-foot .mkt-container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.dw-foot__note { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-s); color: var(--ink-3); flex: 1 1 320px; }
.dw-foot__note svg { width: 14px; height: 14px; flex: none; color: var(--ink-4); }
.dw-foot .dw-langs { margin-left: auto; }
.dw-foot .text-link { font-size: 15px; }
@media (max-width: 639px) { .dw-foot .dw-langs { margin-left: -8px; width: 100%; } }

/* ---- Brand splash on "Open the dashboard" ------------------------------ */
.demo-splash { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: var(--band-warm); opacity: 0; pointer-events: none; transition: opacity .24s var(--ease); }
.demo-splash--in { opacity: 1; pointer-events: auto; }
.demo-splash__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.demo-splash__logo { display: block; animation: demoSplashPulse 1.4s var(--ease) infinite; }
.demo-splash__text { font-size: 15px; font-weight: 500; color: var(--ink-3); opacity: 0; animation: demoSplashTextFadeIn .4s var(--ease) .15s forwards; }
@keyframes demoSplashPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .85; } }
@keyframes demoSplashTextFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .demo-splash__logo { animation: none; }
  .demo-splash__text { animation: none; opacity: 1; }
}

/* Header language dropdown: same size as the tioo.com header picker. */
.dw-head .site-lang__btn { color: var(--ink-2); border-color: var(--line-2); background: #fff; height: 38px; border-radius: var(--radius); padding: 0 12px; }
.dw-head .site-lang__item { color: var(--ink) !important; }
.dw-head .site-lang__item:hover { background: var(--bg-2); }
.dw-head .site-lang__item--current { color: var(--accent-ink) !important; }

/* Phones: "Back to top" (static/js/demo/welcome_top.js). */
.dw-to-top { display: none; }
@media (max-width: 768px) {
  .dw-to-top {
    display: inline-flex; align-items: center; justify-content: center;
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--dw-top-lift, 0px));
    width: 44px; height: 44px; border-radius: 999px; border: 0;
    background: var(--ink, #0b0f19); color: #fff; box-shadow: 0 6px 18px rgba(11, 15, 25, .22);
    opacity: 0; transform: translateY(8px); pointer-events: none;
    transition: opacity .2s ease, transform .2s ease; z-index: 900; cursor: pointer;
  }
  .dw-to-top[hidden] { display: none; }
  .dw-to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .dw-to-top:focus-visible { outline: 2px solid var(--accent-ink, #2563eb); outline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) { .dw-to-top { transition: none; } }
.dw-head__exit { margin-left: auto; }
.dw-head__lang + .dw-head__exit { margin-left: 0; }

/* Inside a practice hotel: open it, start over, or delete it (owner 2026-10-20) */
.dw-kept { margin: 10px 0 0; font-size: 15px; color: var(--ink-2, #3a3a3a); }
.dw-again { margin: 24px 0 0; }
.dw-again__title { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.dw-again__row { display: flex; flex-wrap: wrap; gap: 10px; }
.dw-again .tioo-turnstile { margin: 12px 0 0 !important; }
.dw-leave { margin: 16px 0 0; }
.dw-leave__btn { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 15px; color: #b91c1c; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.dw-leave__btn:hover { color: #991b1b; }
.dw-msgs { margin: 0 0 18px; max-width: 620px; }
.dw-msg { margin: 0 0 8px; padding: 10px 14px; border-radius: 12px; font-size: 15px; background: #ecf7f0; color: #12503a; }
.dw-msg--error, .dw-msg--warning { background: #fdecec; color: #8a1c1c; }
