/* ================================================================
   Hospitality — interactive console layout
   Six agents explored laterally, not scrolled through.
   ================================================================ */

/* ---------- guest journey band ---------- */
.jband { padding: 86px 0 78px; position: relative; }
.jstops { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 42px; }
.jstop { background: none; border: none; cursor: pointer; font-family: var(--font-head); text-align: left; padding: 0; display: block; }
.jstage { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; min-height: 2.1em; }
.jrail { display: block; position: relative; height: 13px; margin-bottom: 18px; }
.jrail::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: rgba(11, 27, 22, 0.22); }
.jstop:first-child .jrail::before { left: 50%; }
.jstop:last-child .jrail::before { right: 50%; }
.jdot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); transition: 0.3s; }
.jstop:hover .jdot, .jstop.on .jdot { background: var(--accent); box-shadow: 0 0 0 5px rgba(222, 112, 60, 0.16); }
.jname { display: block; font-size: 0.98rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; padding-right: 14px; transition: color 0.25s; }
.jstop:hover .jname { color: var(--accent); }
.jnum { display: block; margin-top: 5px; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em; color: var(--accent); }
.jhint { margin-top: 34px; font-size: 0.84rem; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.jhint::before { content: ""; width: 16px; height: 2px; background: var(--accent); }

/* ---------- console ---------- */
.console-sec { background: var(--paper-2); padding: 92px 0 104px; border-top: 1.5px solid var(--ink); }
.console { display: grid; grid-template-columns: 268px 1fr; gap: 26px; margin-top: 46px; align-items: start; }

.con-rail { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 106px; }
.cr-item {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: baseline;
  padding: 15px 18px; border-radius: 14px; border: 1.5px solid transparent;
  background: none; cursor: pointer; text-align: left; font-family: var(--font-head);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.cr-item:hover { background: rgba(11, 27, 22, 0.05); }
.cr-item.on { background: var(--ink); border-color: var(--ink); }
.cr-num { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }
.cr-name { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.cr-item.on .cr-name { color: var(--paper); }
.cr-stage { grid-column: 2; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.cr-item.on .cr-stage { color: rgba(242, 237, 226, 0.55); }

/* panel */
.con-panel { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 22px; padding: 40px 42px 44px; min-height: 640px; }
.cpanel { display: none; }
.cpanel.on { display: block; animation: panelIn 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.ab-tags { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 20px; }
.ab-id { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; color: var(--accent); margin-right: 4px; }
.pill { font-size: 0.63rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted); }
.pill.on { border-color: var(--accent); color: var(--accent); background: rgba(222, 112, 60, 0.08); }

.cp-name { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 14px; }
.cp-lead { font-size: 1.06rem; color: var(--muted); max-width: 62ch; margin-bottom: 30px; }

.oc-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.oc { flex: 1 1 240px; background: rgba(11, 27, 22, 0.05); border: 1px solid var(--line); border-radius: 13px; padding: 18px 20px; }
.oc span { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.oc b { font-size: 0.98rem; font-weight: 600; line-height: 1.35; }

/* tabs */
.cp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.ct { background: none; border: none; cursor: pointer; font-family: var(--font-head); font-size: 0.88rem; font-weight: 600; color: var(--muted); padding: 13px 20px; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: 0.22s; }
.ct:hover { color: var(--ink); }
.ct.on { color: var(--ink); border-bottom-color: var(--accent); }

.cp-body { min-height: 300px; }
.cbody { display: none; }
.cbody.on { display: block; animation: panelIn 0.35s ease; }

/* ---------- horizontal flow track ---------- */
.track-wrap { position: relative; margin: 0 -6px; }
.track { display: flex; align-items: flex-start; gap: 9px; overflow-x: auto; padding: 22px 6px 14px; scrollbar-width: thin; }
.track::-webkit-scrollbar { height: 4px; }
.track::-webkit-scrollbar-thumb { background: rgba(11, 27, 22, 0.2); border-radius: 4px; }
.tcol { flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; }
.tcol::before { content: ""; position: absolute; top: 12px; left: -10px; right: 50%; height: 1px; background: rgba(11, 27, 22, 0.22); }
.tcol:first-child::before { display: none; }
.tdot {
  position: relative; z-index: 1; width: 25px; height: 25px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--accent); color: var(--accent);
  display: grid; place-items: center; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.tcol.done .tdot { background: var(--accent); color: var(--paper); }
.tflag { position: absolute; top: -18px; left: 0; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.tcard { border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; background: var(--paper); }
.tcard + .tcard { margin-top: 8px; }
.tcard h4 { font-size: 0.85rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 5px; }
.tcard p { font-size: 0.735rem; line-height: 1.45; color: var(--muted); }
.tcard.dark { background: var(--ink); border-color: var(--ink); }
.tcard.dark h4 { color: var(--paper); }
.tcard.dark p { color: var(--muted-light); }
.tcard.tint { background: rgba(222, 112, 60, 0.1); border-color: rgba(222, 112, 60, 0.34); }
.tlabel { display: block; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.track-hint { font-size: 0.76rem; color: var(--muted); opacity: 0.8; margin-top: 4px; display: none; }

.flow-note { display: flex; gap: 13px; margin-top: 22px; max-width: 74ch; font-size: 0.88rem; color: var(--muted); }
.flow-note::before { content: ""; flex: none; width: 17px; height: 2px; background: var(--accent); margin-top: 10px; }

/* detail + features bodies */
.detail-copy { max-width: 70ch; }
.detail-copy p { color: var(--muted); margin-bottom: 15px; }
.detail-copy p:last-child { margin-bottom: 0; }
.features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.features li { display: flex; gap: 11px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.features li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.features b { font-weight: 600; }
.features span { color: var(--muted); }

/* ---------- foundation ---------- */
.foundation { background: var(--deep); color: var(--paper); padding: 104px 0; }
.foundation h2 { color: var(--paper); }
.fnd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: 18px; overflow: hidden; margin-top: 50px; }
.fnd-cell { background: var(--deep); padding: 38px 32px; }
.fnd-val { font-size: clamp(2.1rem, 3.8vw, 2.9rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin-bottom: 15px; }
.fnd-val i { font-style: normal; color: var(--accent); }
.fnd-cell p { color: var(--muted-light); font-size: 0.93rem; }
.fnd-foot { margin-top: 44px; max-width: 68ch; color: var(--muted-light); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .console { grid-template-columns: 1fr; gap: 20px; }
  .con-rail { position: static; flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
  .con-rail::-webkit-scrollbar { display: none; }
  .cr-item { flex: none; grid-template-columns: auto auto; align-items: center; padding: 12px 18px; border: 1.5px solid var(--line); border-radius: 999px; }
  .cr-item.on { border-color: var(--ink); }
  .cr-stage { display: none; }
  .con-panel { padding: 32px 28px 36px; min-height: 0; }
  .tcol { flex: 0 0 156px; min-width: 156px; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .jband { padding: 60px 0 54px; }
  .jstops { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
  .jrail { display: none; }
  .jstop { border-left: 2px solid var(--accent); padding-left: 14px; }
  .jstage { min-height: 0; margin-bottom: 8px; }
  .console-sec { padding: 68px 0 76px; }
  .cp-name { font-size: 1.7rem; }
  .cp-lead { font-size: 0.98rem; }
  .track-hint { display: block; }
  .tcol { flex: 0 0 168px; min-width: 168px; }
  .fnd-grid { grid-template-columns: 1fr; }
  .foundation { padding: 74px 0; }
  .ct { padding: 12px 14px; font-size: 0.84rem; }
}

/* ---------- panel header with visual ---------- */
.cp-head { margin-bottom: 30px; }
.cp-head.has-img { display: grid; grid-template-columns: 1fr 330px; gap: 36px; align-items: center; }
.cp-head .cp-lead { margin-bottom: 0; }
.cp-visual { border-radius: 15px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.cp-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

@media (max-width: 1080px) {
  .cp-head.has-img { grid-template-columns: 1fr; gap: 24px; }
  .cp-visual img { aspect-ratio: 16 / 8; }
}

/* ---------- bigger visuals, compact outcomes ---------- */
.cp-head.has-img { grid-template-columns: 1fr 430px; align-items: stretch; gap: 34px; }
.cp-head .oc-row { margin-bottom: 0; margin-top: 26px; }
.oc { flex: 1 1 150px; padding: 13px 15px; border-radius: 11px; }
.oc span { font-size: 0.55rem; letter-spacing: 0.18em; margin-bottom: 7px; }
.oc b { font-size: 0.88rem; line-height: 1.3; }
.cp-visual { align-self: stretch; min-height: 260px; display: flex; }
.cp-visual img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }

/* ---------- WhatsApp thread mockup (Escalation Agent) ---------- */
.cp-visual.mock { flex-direction: column; padding: 16px; background: var(--paper-2); gap: 0; }
.cm-head { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; border-bottom: 1px dashed var(--line); }
.cm-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--moss); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 0.82rem; }
.cm-name { display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: -0.01em; }
.cm-sub { display: block; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.cm-live { margin-left: auto; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #2E9E6B; display: inline-flex; align-items: center; gap: 5px; }
.cm-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2E9E6B; }
.cm-thread { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
.cm-msg { max-width: 90%; padding: 9px 12px; border-radius: 13px; font-size: 0.75rem; line-height: 1.45; }
.cm-msg.them { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cm-msg.us { align-self: flex-end; background: var(--moss); color: var(--paper); border-bottom-right-radius: 4px; }
.cm-sys { align-self: center; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); padding: 2px 0; }
.cm-day { align-self: center; font-size: 0.56rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 8px 0 2px; }

@media (max-width: 1080px) {
  .cp-head.has-img { grid-template-columns: 1fr; }
  .cp-visual { min-height: 0; }
  .cp-visual img { aspect-ratio: 16 / 9; }
}

/* ---------- photos: show the whole frame, never crop ---------- */
.cp-visual:not(.mock) { align-self: start; min-height: 0; background: var(--paper-2); }
.cp-visual:not(.mock) img { width: 100%; height: auto; aspect-ratio: 1408 / 768; object-fit: contain; }

/* ---------- v3: bleed the photo to the panel edge, outcomes as chips ---------- */
.cp-head.has-img { grid-template-columns: minmax(0, 1fr) 460px; gap: 40px; align-items: start; }

/* photo sits flush with the panel's top + right edge so it reads as composed, not inserted */
.cp-visual:not(.mock) {
  margin: -40px -42px 0 0;
  border: none; border-radius: 0 22px 0 22px;
  overflow: hidden; background: var(--paper-2);
  align-self: start; min-height: 0; display: block;
}
.cp-visual:not(.mock) img {
  width: 100%; height: auto; display: block;
  aspect-ratio: auto; object-fit: fill;
}

/* outcomes: small clay chips with a tick, one shared label */
.oc-label {
  display: block; margin: 28px 0 11px;
  font-size: 0.56rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}
.cp-head .oc-row, .oc-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; }
.oc {
  flex: 0 1 auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px 8px 10px; border-radius: 999px;
  background: rgba(222, 112, 60, 0.08); border: 1px solid rgba(222, 112, 60, 0.26);
  font-size: 0.8rem; font-weight: 600; line-height: 1.3; color: var(--ink);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.oc:hover { background: rgba(222, 112, 60, 0.15); border-color: rgba(222, 112, 60, 0.5); transform: translateY(-1px); }
.oc::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2EDE2' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 10px; background-position: center; background-repeat: no-repeat;
}

@media (max-width: 1080px) {
  .cp-head.has-img { grid-template-columns: 1fr; gap: 26px; }
  .cp-visual:not(.mock) { margin: 0; border-radius: 15px; border: 1px solid var(--line); }
}

/* ---------- ID document bubble (Arrival Assistant) ---------- */
.cm-msg.doc { background: var(--paper); border: 1px solid var(--line); padding: 10px; border-bottom-left-radius: 4px; max-width: 78%; }
.idcard { width: 100%; border-radius: 7px; overflow: hidden; border: 1px solid rgba(11, 27, 22, 0.14); background: #E9E2D4; }
.id-top { height: 19px; background: var(--moss); display: flex; align-items: center; justify-content: space-between; padding: 0 7px; }
.id-top span { font-size: 0.46rem; letter-spacing: 0.16em; color: var(--paper); font-weight: 700; }
.id-top i { width: 13px; height: 8px; border-radius: 2px; background: var(--accent); }
.id-body { display: flex; gap: 9px; padding: 9px; }
.id-photo { flex: none; width: 36px; height: 44px; border-radius: 3px; background: linear-gradient(160deg, #C9BFAD 0%, #9BA69C 100%); }
.id-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.id-lines span { height: 4px; border-radius: 2px; background: rgba(11, 27, 22, 0.18); }
.id-lines span:nth-child(1) { width: 78%; } .id-lines span:nth-child(2) { width: 54%; }
.id-lines span:nth-child(3) { width: 68%; } .id-lines span:nth-child(4) { width: 38%; }
.id-mrz { height: 13px; margin: 0 9px 9px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(11, 27, 22, 0.2) 0 3px, transparent 3px 6px); }
.cm-cap { display: block; margin-top: 8px; font-size: 0.6rem; color: var(--muted); }

/* key code bubble */
.cm-key { align-self: flex-end; background: var(--ink); color: var(--paper); border-radius: 13px; border-bottom-right-radius: 4px; padding: 12px 18px; text-align: center; }
.cm-key span { display: block; font-size: 0.52rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.cm-key b { font-size: 1.12rem; font-weight: 600; letter-spacing: 0.3em; }

/* ---------- live call transcript (Follow-Up Agent) ---------- */
.cp-visual.mock.call .cm-thread { height: 288px; overflow: hidden; justify-content: flex-end; }
.cp-visual.mock.call .cm-msg { transition: opacity 0.45s ease; }
.cm-msg.typing { display: inline-flex; gap: 5px; align-items: center; padding: 12px 15px; }
.cm-msg.typing i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.55; animation: tdot 1s infinite; }
.cm-msg.typing i:nth-child(2) { animation-delay: 0.18s; }
.cm-msg.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes tdot { 40% { transform: translateY(-4px); opacity: 1; } }
.cm-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 0.7rem; color: var(--muted); }
.cm-foot .wave { height: 14px; }
.cm-live.rec { color: #C43C2B; }
.cm-live.rec::before { background: #C43C2B; animation: blinkrec 1.2s infinite; }
@keyframes blinkrec { 50% { opacity: 0.25; } }

/* ---------- benchmarks ledger on paper (sits between two dark sections) ---------- */
.bench { background: var(--paper); }
.bench .o-row { border-top-color: var(--line); }
.bench .o-row:last-child { border-bottom-color: var(--line); }
.bench .o-row:hover { background: rgba(11, 27, 22, 0.035); }
.bench .o-row p { color: var(--muted); }
.bench .o-src { color: rgba(11, 27, 22, 0.42); }
/* wave divider must be the last thing in the foundation band — no dark padding beneath it */
.foundation.dotgrid { padding-bottom: 0; }
