/* Linktwos organiser demo (/events-demo.html). Loaded after home.css, which
   supplies the tokens, header, footer, buttons, FAQ and cookie banner.
   Everything here is prefixed d- so it can't clash with shared styles. */

:root { --live: #34eb8f; --warn: #ffa94d; --danger: #f47b7b; --on-grad: #04131c; }

.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.14em; }

/* Without JavaScript the page is a static walk-through. */
html:not(.js) [data-js-only] { display: none !important; }
.js [data-nojs-only], .js .d-nojs-title { display: none; }
.js .d-panel:not(.is-on), .js .d-opanel:not(.is-on) { display: none; }

/* ---- Hero ---- */
.d-hero { position: relative; overflow: hidden; padding: clamp(40px, 8vw, 96px) 0 clamp(32px, 6vw, 64px); }
.d-hero-inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.d-title { font: 900 clamp(38px, 7.4vw, 76px)/1.02 var(--display); letter-spacing: -0.04em; max-width: 15ch; text-wrap: balance; }
.d-lead { margin-top: 20px; max-width: 36em; color: var(--text-2); font-size: clamp(17px, 2vw, 19px); line-height: 1.6; text-wrap: pretty; }
.d-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---- Guest view: step tabs ---- */
.d-guest { padding-top: clamp(40px, 7vw, 80px); }
.d-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.d-steps[hidden] { display: none; }
.d-step-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--hairline);
  transition: background-color .2s, color .2s;
}
.d-step-tab span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--overlay); font: 800 13px/1 var(--display); }
.d-step-tab:hover { color: var(--text); }
.d-step-tab[aria-selected="true"] { background: var(--overlay); color: var(--text); box-shadow: inset 0 0 0 1px var(--hairline-2); }
.d-step-tab[aria-selected="true"] span { background: var(--grad); color: var(--on-grad); }
.d-step-tab.is-done span { color: var(--teal); }

/* A step: what's happening on the left, the phone on the right */
.d-panel { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(28px, 5vw, 64px); align-items: start; }
html:not(.js) .d-panel + .d-panel { margin-top: 72px; }
.d-say { padding-top: 8px; max-width: 34em; }
.d-say-num { font-size: 13px; font-weight: 700; color: var(--teal); letter-spacing: .02em; margin-bottom: 8px; }
.d-say > p { margin-top: 12px; color: var(--text-2); line-height: 1.65; }
.d-say strong { color: var(--text); font-weight: 600; }
.d-say-nav { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.d-say-nav .btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }

.d-personas { border: 0; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.d-persona {
  text-align: left; border: 0; cursor: pointer; padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.4;
  background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--hairline-2); transition: background-color .2s, box-shadow .2s;
}
.d-persona:hover { background: var(--raised); }
.d-persona[aria-pressed="true"] { background: rgba(24, 161, 229, .14); box-shadow: inset 0 0 0 1.5px var(--blue); }

/* ---- The phone ---- */
.d-phone {
  position: relative; width: 100%; max-width: 372px; justify-self: end;
  border-radius: 38px; padding: 8px; background: #1a1f29;
  box-shadow: 0 0 0 1px rgba(53, 218, 190, .22), 0 0 80px -16px rgba(24, 161, 229, .35), 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.d-phone-top { height: 44px; display: grid; place-items: center; background: #0A0D12; border-radius: 30px 30px 0 0; border-bottom: 1px solid var(--hairline); }
.d-logo { font: 900 18px/1 var(--display); letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.d-screen {
  position: relative; overflow: hidden; background: #0A0D12; border-radius: 0 0 30px 30px;
  min-height: 560px; padding: 14px 14px 18px; font-size: 14px; line-height: 1.45;
}
.d-muted { color: var(--text-2); font-size: 13.5px; }
.d-tiny { color: var(--text-3); font-size: 12.5px; line-height: 1.45; }

.d-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border: 0; border-radius: 12px;
  font: 600 14px/1 var(--body); cursor: pointer; white-space: nowrap; text-decoration: none; transition: filter .2s, background-color .2s, transform .15s;
}
.d-btn:active { transform: scale(.97); }
.d-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.d-btn-block { width: 100%; }
.d-btn-go { background: var(--grad); color: var(--on-grad); }
.d-btn-go:hover { filter: brightness(1.08); }
.d-btn-live { background: var(--live); color: #03140b; }
.d-btn-live:hover { filter: brightness(1.06); }
.d-btn-quiet { background: var(--overlay); color: var(--text); box-shadow: inset 0 0 0 1px var(--hairline); }
.d-btn-quiet:hover { background: #242a37; }
.d-btn-danger { background: rgba(244, 123, 123, .14); color: var(--danger); }
.d-btn-on { background: var(--grad); color: var(--on-grad); }
.d-ibtn {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; font-size: 18px;
}
.d-ibtn:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.d-ibtn[aria-pressed="true"] { color: var(--teal); }
.d-ibtn[aria-pressed="true"] .i { fill: currentColor; }

.d-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.d-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--overlay); color: var(--text-2); }
.d-pill-live { background: rgba(52, 235, 143, .12); color: var(--live); }
.d-pill-teal { background: rgba(53, 218, 190, .12); color: var(--teal); }
.d-pill[hidden] { display: none; }
.d-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .d-dot { animation: d-pulse 1.8s ease-in-out infinite; }
  @keyframes d-pulse { 50% { opacity: .35; } }
}

/* Step 1 */
.d-joined { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--teal); padding: 8px 12px; border-radius: 12px; background: rgba(53, 218, 190, .08); margin-bottom: 12px; }
.d-joined strong { letter-spacing: .04em; }
.d-cover {
  position: relative; padding: 18px 16px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(24, 161, 229, .28), transparent 60%), radial-gradient(90% 80% at 0% 100%, rgba(53, 218, 190, .16), transparent 60%), #10151d;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.d-ev-title { font: 900 25px/1.1 var(--display); letter-spacing: -0.03em; margin-top: 12px; }
.d-hosted { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.d-hosted strong { color: var(--text); font-weight: 600; }
.d-faces { display: inline-flex; }
.d-faces .d-av + .d-av { margin-left: -6px; }
.d-facts { margin-top: 14px; display: grid; gap: 7px; font-size: 13.5px; color: var(--text-2); }
.d-facts li { display: flex; align-items: center; gap: 9px; }
.d-facts .i { font-size: 16px; color: var(--text-3); }
.d-live-text { color: var(--live); }
.d-cover-actions { margin-top: 16px; }
.d-mini-tabs { display: flex; gap: 2px; margin: 14px -2px 12px; border-bottom: 1px solid var(--hairline); overflow: hidden; }
.d-mini-tabs > span { position: relative; padding: 8px 8px 10px; font-size: 12.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.d-mini-tabs .on { color: var(--text); }
.d-mini-tabs .on::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); }
.d-ev-mini { font: 800 17px/1.2 var(--display); letter-spacing: -0.02em; }

/* Sheets and full-screen moments inside the phone */
.d-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 16px 16px 20px; border-radius: 22px 22px 0 0;
  background: #161b24; box-shadow: 0 -20px 50px rgba(0, 0, 0, .55), inset 0 1px 0 var(--hairline-2);
}
.d-sheet[hidden], .d-success[hidden] { display: none; }
.d-sheet::before { content: ""; position: absolute; inset: -600px 0 100% 0; background: rgba(4, 6, 9, .55); pointer-events: none; }
.d-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.d-sheet-title { font: 700 17px/1.25 var(--display); letter-spacing: -0.01em; outline: none; }
.d-door { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; padding: 10px; border-radius: 14px; background: var(--raised); }
.d-door p { font-size: 12.5px; color: var(--text-3); }
.d-qr { width: 64px; height: 64px; flex: none; border-radius: 6px; }
.d-qr-lg { width: 148px; height: 148px; border-radius: 10px; }
.d-code-input, .d-note-input, .d-chat-input {
  width: 100%; border: 0; border-radius: 12px; background: var(--raised); color: var(--text); font: inherit;
  box-shadow: inset 0 0 0 1px var(--hairline-2); padding: 11px 13px; margin-bottom: 10px;
}
.d-code-input { font: 700 18px/1 var(--display); letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.d-note-input { resize: vertical; min-height: 84px; line-height: 1.45; font-size: 14px; }
.d-code-input:focus, .d-note-input:focus, .d-chat-input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--blue); }
.d-success {
  position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px;
  background: radial-gradient(70% 50% at 50% 40%, rgba(52, 235, 143, .16), transparent 70%), #0A0D12;
}
.d-success .d-btn { min-width: 210px; }
.d-success .d-btn-go { margin-top: 18px; }
.d-tick { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--live); color: #03140b; font-size: 42px; }
.d-tick .i { stroke-width: 2.6; }
.d-tick-sm { width: 52px; height: 52px; font-size: 26px; margin: 4px auto 10px; }
.d-success-title { font: 900 30px/1.1 var(--display); letter-spacing: -0.03em; margin-top: 18px; outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .d-sheet.is-in { animation: d-up .32s cubic-bezier(.2, .9, .25, 1.05); }
  .d-success.is-in { animation: d-fade .3s ease-out; }
  .d-success.is-in .d-tick { animation: d-pop .45s cubic-bezier(.2, .9, .25, 1.3); }
  @keyframes d-up { from { transform: translateY(100%); } }
  @keyframes d-fade { from { opacity: 0; } }
  @keyframes d-pop { from { transform: scale(.4); opacity: 0; } }
}

/* Step 2: chat with the matchmaker */
.d-chat-screen { display: flex; flex-direction: column; }
.d-thread { display: flex; flex-direction: column; gap: 8px; flex: 1; padding-top: 6px; }
.d-thread .m-me, .d-thread .m-bot { max-width: 86%; }
.d-typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 12px 14px; border-radius: 18px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline); }
.d-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
@media (prefers-reduced-motion: no-preference) {
  .d-typing i { animation: d-bounce 1s infinite; }
  .d-typing i:nth-child(2) { animation-delay: .15s; }
  .d-typing i:nth-child(3) { animation-delay: .3s; }
  @keyframes d-bounce { 50% { transform: translateY(-3px); opacity: .5; } }
  .d-thread > p { animation: d-fade .25s ease-out; }
}
.d-compose { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; height: 44px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--raised); color: var(--text-3); font-size: 14px; box-shadow: inset 0 0 0 1px var(--hairline); }
.d-send { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: var(--on-grad); font-size: 16px; }
.d-room-link { align-self: flex-start; margin-top: 4px; }

/* Step 3: the room */
.d-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.d-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 0; cursor: pointer; font-size: 12.5px; font-weight: 600; background: var(--raised); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--hairline); }
.d-chip[aria-pressed="true"] { background: rgba(24, 161, 229, .16); color: var(--text); box-shadow: inset 0 0 0 1px rgba(24, 161, 229, .55); }
.d-room { display: grid; gap: 2px; padding: 4px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); min-height: 120px; }
.d-row { position: relative; padding: 10px 8px; border-radius: 14px; }
.d-row + .d-row { box-shadow: 0 -1px 0 var(--hairline); }
.d-who { display: flex; gap: 11px; align-items: flex-start; min-width: 0; }
.d-av {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #2A3E78; color: #DCE6FF; font: 700 14px/1 var(--display);
}
.d-av-xs { width: 24px; height: 24px; font-size: 9.5px; box-shadow: 0 0 0 2px #10151d; }
.d-av-sm { width: 32px; height: 32px; font-size: 11.5px; }
.d-av-lg { width: 64px; height: 64px; font-size: 20px; box-shadow: 0 0 0 2px #0A0D12, 0 0 0 4px rgba(53, 218, 190, .7); }
.c1 { background: #2A3E78; color: #DCE6FF; } .c2 { background: #2E5B52; color: #DDF7EF; } .c3 { background: #5B3A62; color: #F5E3F8; }
.c4 { background: #6B4A2A; color: #FBE9D6; } .c5 { background: #1F5B73; color: #D9F2FC; } .c6 { background: #4A3D7A; color: #E7E1FF; }
.d-here { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2.5px var(--surface); }
.d-main { min-width: 0; flex: 1; display: block; }
.d-name { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.d-head { display: block; color: var(--text-2); font-size: 12.5px; line-height: 1.35; margin-top: 1px; }
.d-task { display: block; color: var(--text-3); font-size: 12px; line-height: 1.4; margin-top: 3px; }
.d-acts { display: flex; align-items: center; gap: 2px; margin: 8px 0 0 55px; }
.d-acts .d-btn { margin-right: 4px; }
.d-menu { position: absolute; right: 8px; top: 100%; margin-top: -6px; z-index: 3; min-width: 150px; padding: 6px; border-radius: 14px; background: #1f2531; box-shadow: 0 16px 40px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--hairline-2); }
.d-menu[hidden] { display: none; }
.d-menu button { width: 100%; text-align: left; border: 0; background: transparent; color: var(--text); padding: 9px 10px; border-radius: 10px; font-size: 13.5px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.d-menu button:hover { background: rgba(255, 255, 255, .06); }
.d-room-foot { margin-top: 10px; font-size: 12px; color: var(--text-3); text-align: center; }
.d-empty { padding: 26px 12px; text-align: center; color: var(--text-3); font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
  .d-row.is-leaving { transition: opacity .25s, transform .25s; opacity: 0; transform: translateX(-24px); }
  .d-row.is-new { animation: d-slide .35s cubic-bezier(.2, .9, .25, 1.05); }
  @keyframes d-slide { from { opacity: 0; transform: translateX(24px); } }
}
.d-starters { display: grid; gap: 6px; margin: 10px 0; }
.d-starter { text-align: left; border: 0; cursor: pointer; padding: 8px 11px; border-radius: 12px; font-size: 12.5px; line-height: 1.4; background: var(--raised); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--hairline); }
.d-starter[aria-pressed="true"] { color: var(--text); box-shadow: inset 0 0 0 1px rgba(24, 161, 229, .55); }
.d-connect-done { text-align: center; }
.d-connect-done[hidden], .d-connect-form[hidden] { display: none; }
.d-connect-done .d-muted { margin: 6px 0 14px; }

/* Step 4: speed networking */
.d-speed-card { text-align: center; padding: 20px 16px; border-radius: 20px; background: radial-gradient(80% 60% at 50% 0%, rgba(24, 161, 229, .18), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.d-speed-intro .d-speed-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 4px auto 12px; border-radius: 16px; background: var(--raised); color: var(--teal); font-size: 26px; }
.d-speed-intro h4 { font: 700 20px/1.2 var(--display); letter-spacing: -0.02em; }
.d-speed-intro p { margin-top: 8px; color: var(--text-2); font-size: 13.5px; }
.d-speed-intro .d-btn { margin-top: 16px; min-width: 160px; }
.d-round { font-size: 13px; color: var(--text-3); font-weight: 600; }
.d-timer { font: 900 64px/1 var(--display); letter-spacing: -0.04em; margin-top: 6px; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.d-timer.urgent { background: none; color: var(--warn); }
.d-gate { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 14px; padding: 8px 18px; border-radius: 14px; background: #f3d34a; color: #141109; }
.d-gate span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.d-gate strong { font: 900 30px/1 var(--display); }
.d-partner { display: flex; gap: 14px; align-items: center; text-align: left; margin-top: 18px; padding: 12px; border-radius: 16px; background: var(--raised); }
.d-partner .d-name { font-size: 16px; }
.d-offer { margin-top: 5px; font-size: 13px; color: var(--text); }
.d-demo-ctl { margin-top: 14px; font-size: 12.5px; }
.d-change { margin-top: 12px; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.d-change-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.d-change-title { font: 700 17px/1.2 var(--display); }
.d-change-row { display: flex; gap: 12px; margin-top: 14px; align-items: flex-start; }
.d-change-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 10px; }
.d-good { font-size: 12.5px; color: var(--text-3); margin: 0 2px 0 6px; }
.d-ibtn.up[aria-pressed="true"] { color: var(--teal); }
.d-ibtn.down[aria-pressed="true"] { color: var(--danger); }
.d-connected { color: var(--teal) !important; }
.js .d-change:not(.is-on) { display: none; }

/* Step 5: chat */
.d-segment { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.d-seg { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--text-3); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.d-seg[aria-pressed="true"] { background: var(--overlay); color: var(--text); }
.d-channel { margin-top: 10px; display: flex; flex-direction: column; flex: 1; }
.js .d-channel[hidden] { display: none; }
.d-channel-note { margin-bottom: 8px; }
.d-msgs { display: grid; gap: 12px; align-content: start; flex: 1; }
.d-msgs li { display: flex; gap: 10px; align-items: flex-start; }
.d-msgs li > div { min-width: 0; }
.d-msgs li p:last-child { font-size: 13.5px; color: var(--text); margin-top: 2px; }
.d-msg-who { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.d-host { font-size: 10.5px; font-weight: 700; color: var(--teal); background: rgba(53, 218, 190, .12); padding: 2px 6px; border-radius: 999px; }
.d-time { color: var(--text-3); font-weight: 400; font-size: 11.5px; }
.d-only-hosts { margin-top: 14px; text-align: center; }
.d-chat-form { display: flex; gap: 8px; margin-top: 14px; }
.d-chat-form .d-chat-input { margin: 0; border-radius: 999px; padding: 10px 16px; }
.d-send-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--grad); color: var(--on-grad); font-size: 17px; }

/* ---- Organiser view ---- */
.d-browser { border-radius: 22px; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 1px var(--hairline-2), 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 100px -40px rgba(24, 161, 229, .35); }
.d-browser-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 16px; background: #10141b; border-bottom: 1px solid var(--hairline); }
.d-lights { display: inline-flex; gap: 6px; }
.d-lights i { width: 10px; height: 10px; border-radius: 50%; background: #2a303c; }
.d-url { flex: 1; max-width: 360px; margin: 0 auto; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--raised); color: var(--text-3); font-size: 12.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.d-dash { padding: clamp(16px, 3vw, 32px); }
.d-dash-title { font: 900 clamp(24px, 3.4vw, 34px)/1.1 var(--display); letter-spacing: -0.03em; margin: 10px 0 6px; }
.d-tabs { display: flex; gap: 2px; margin: 22px 0 20px; border-bottom: 1px solid var(--hairline); overflow-x: auto; scrollbar-width: none; }
.d-tabs[hidden] { display: none; }
.d-tabs::-webkit-scrollbar { display: none; }
.d-tab { position: relative; padding: 10px 14px 12px; border: 0; background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text-3); white-space: nowrap; border-radius: 8px 8px 0 0; }
.d-tab:hover { color: var(--text); }
.d-tab[aria-selected="true"] { color: var(--text); }
.d-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); }
.d-nojs-title { font: 700 20px/1.2 var(--display); margin: 32px 0 14px; }
.d-opanel { display: flex; flex-direction: column; gap: 12px; }

.d-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.d-stats3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d-stat { padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 1px 2px rgba(0, 0, 0, .3); min-width: 0; }
.d-stat-i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--raised); color: var(--text-2); margin-bottom: 14px; font-size: 17px; }
.d-num { font: 700 30px/1.1 var(--display); letter-spacing: -0.03em; }
.d-num-none { font-size: 20px; color: var(--text-3); line-height: 1.6; }
.d-stat-l { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.d-stat-s { font-size: 12px; color: var(--text-3); margin-top: 2px; line-height: 1.45; }
.d-stat-l + .d-stat-s { color: #6f7789; }
.d-card { padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 1px 2px rgba(0, 0, 0, .3); min-width: 0; }
.d-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 16px; }
.d-card-title { font: 700 16px/1.25 var(--display); letter-spacing: -0.01em; }
.d-sec { font: 700 20px/1.2 var(--display); letter-spacing: -0.02em; margin-top: 18px; }
.d-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.d-meter + .d-meter { margin-top: 12px; }
.d-meter-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 5px; }
.d-meter-top span:last-child { color: var(--text-2); white-space: nowrap; }
.d-track { height: 6px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.d-track i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.d-track i.blue { background: var(--blue); } .d-track i.teal { background: var(--teal); } .d-track i.warn { background: var(--warn); }
.d-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.d-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw.blue { background: var(--blue); } .sw.teal { background: var(--teal); }
.d-sd { display: grid; gap: 12px; }
.d-sd-row { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr); align-items: center; gap: 12px; }
.d-sd-row p { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-sd-bars { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) minmax(0, 1fr) 2.2em; align-items: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.d-sd-bars b { font-weight: 600; color: var(--blue); }
.d-sd-bars b.rn { color: var(--teal); text-align: right; }
.d-sd-bars .l, .d-sd-bars .r { display: flex; height: 10px; background: var(--raised); }
.d-sd-bars .l { justify-content: flex-end; border-radius: 999px 0 0 999px; border-right: 1px solid var(--hairline-2); }
.d-sd-bars .r { border-radius: 0 999px 999px 0; }
.d-sd-bars .l i { background: var(--blue); border-radius: 999px 0 0 999px; }
.d-sd-bars .r i { background: var(--teal); border-radius: 0 999px 999px 0; }
.d-foot { margin-top: 12px; }
.d-unmet { display: grid; gap: 14px; }
.d-unmet p { font-size: 14px; margin-bottom: 6px; color: var(--text-2); }
.d-unmet strong { color: var(--text); font-weight: 600; }
.d-peak { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--teal); margin-bottom: 14px; }
.d-multi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.d-multi-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.d-multi-head span:last-child { color: var(--text-3); }
.d-mini, .d-bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.d-bars { height: 120px; }
.d-mini span, .d-bars span { flex: 1; border-radius: 4px 4px 1px 1px; background: rgba(24, 161, 229, .45); }
.d-mini span.peak, .d-bars span.peak { background: var(--blue); }
.b-intro span { background: rgba(53, 218, 190, .4); } .b-intro span.peak { background: var(--teal); }
.b-conn span { background: rgba(52, 235, 143, .35); } .b-conn span.peak { background: var(--live); }
.b-msg span { background: rgba(167, 175, 191, .35); } .b-msg span.peak { background: var(--text-2); }
.d-bars span.empty { background: var(--raised); }
.d-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--text-3); }

.d-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.d-code-card .d-tiny { margin-top: 4px; }
.d-code-row { display: flex; gap: 18px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.d-code-side { display: grid; gap: 10px; min-width: 0; flex: 1; }
.d-big-code { font: 800 28px/1 var(--display); letter-spacing: .06em; }
.d-url-text { font-size: 12.5px; color: var(--text-3); overflow-wrap: anywhere; }
.d-code-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.d-toast { min-height: 1.4em; font-size: 13.5px; color: var(--teal); }

.d-host-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.d-host-top .d-btn { cursor: default; }
.d-host-timer { font: 900 44px/1 var(--display); letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.d-speed-stats { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; font-size: 14px; color: var(--text-2); }
.d-speed-stats strong { color: var(--text); }
.d-tables-title { margin: 18px 0 10px; }
.d-tables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.d-tables div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--raised); min-width: 0; }
.d-tables b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #f3d34a; color: #141109; font: 800 15px/1 var(--display); }
.d-tables span { font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-tv {
  margin-top: 4px; padding: 20px 24px 26px; border-radius: 20px; text-align: center;
  background: radial-gradient(60% 70% at 50% 40%, rgba(24, 161, 229, .2), transparent 70%), #05070A; box-shadow: 0 0 0 6px #1a1f29, 0 0 0 7px var(--hairline-2);
}
.d-tv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--text-2); }
.d-tv-label { margin-top: 18px; font: 700 18px/1.2 var(--display); color: var(--text-2); }
.d-tv-timer { font: 900 clamp(64px, 11vw, 120px)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.d-tables-big { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; text-align: left; }

/* ---- How it works + CTA ---- */
.d-how { padding-bottom: clamp(56px, 8vw, 96px); }
.d-how-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.d-how-list li { padding: 26px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.d-how-list p { margin-top: 8px; color: var(--text-2); text-wrap: pretty; }
.d-cta { margin-top: clamp(48px, 7vw, 80px); padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px); border-radius: 28px; text-align: center; background: radial-gradient(60% 80% at 50% 0%, rgba(24, 161, 229, .2), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px var(--hairline-2); }
.d-cta .lead { max-width: 34em; margin-left: auto; margin-right: auto; }
.d-cta-note { margin-top: 26px; color: var(--text-3); font-size: 14.5px; line-height: 1.6; max-width: 40em; margin-left: auto; margin-right: auto; }
.d-cta-note a { color: var(--text-2); text-underline-offset: 3px; }
.d-cta-note a:hover { color: var(--text); }

/* ---- Smaller screens ---- */
@media (max-width: 960px) {
  .d-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-stats3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-codes { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .d-panel { grid-template-columns: 1fr; gap: 22px; }
  .d-phone { justify-self: center; }
  .d-how-list { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 620px) {
  .d-split { grid-template-columns: 1fr; }
  .d-tables { grid-template-columns: 1fr 1fr; }
  .d-tables-big { grid-template-columns: 1fr 1fr; }
  .d-sd-row { grid-template-columns: 1fr; gap: 4px; }
  .d-step-tab { padding-right: 12px; font-size: 13px; }
}
@media (max-width: 480px) {
  .d-phone { max-width: none; border-radius: 30px; padding: 6px; }
  .d-phone-top { border-radius: 24px 24px 0 0; }
  .d-screen { border-radius: 0 0 24px 24px; padding: 12px 10px 16px; }
  .d-stats, .d-stats3 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .d-stat { padding: 14px; }
  .d-num { font-size: 24px; }
  .d-dash { padding: 14px; }
  .d-card { padding: 16px; }
  .d-tables, .d-tables-big { grid-template-columns: 1fr; }
  .d-hero-cta .btn { width: 100%; }
  .d-mini-tabs > span { padding: 8px 6px 10px; font-size: 12px; }
}

/* ==== v2: fewer words, bigger signals ==== */
.d-hero { padding: clamp(28px, 6vw, 72px) 0 clamp(20px, 4vw, 40px); }
.d-title { font-size: clamp(40px, 7vw, 72px); max-width: 13ch; }
.d-lead { margin-top: 14px; }
.d-hero-cta { align-items: center; gap: 12px 22px; margin-top: 24px; }
.d-badge { display: inline-block; margin-top: 18px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline-2); }

.d-guest { padding: clamp(8px, 3vw, 32px) 0 clamp(48px, 7vw, 88px); }
.d-label { font: 900 clamp(26px, 3.4vw, 36px)/1.1 var(--display); letter-spacing: -0.03em; margin-bottom: 18px; }
.d-center { text-align: center; }
.d-steps { margin-bottom: 22px; }
.d-panel { align-items: center; }
.d-say-title { font: 900 clamp(32px, 4.6vw, 52px)/1.05 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.d-say > p { font-size: clamp(17px, 1.8vw, 20px); margin-top: 14px; }
.d-say > p strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }

/* Hint chips on the phone: point at the thing to tap */
.d-hint {
  position: relative; display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
  background: #f3d34a; color: #141109; font-size: 12px; font-weight: 800; white-space: nowrap; pointer-events: none; z-index: 2;
  box-shadow: 0 6px 18px -6px rgba(243, 211, 74, .6);
}
.d-hint[hidden] { display: none; }
.d-hint::before { content: ""; position: absolute; width: 8px; height: 8px; background: inherit; transform: rotate(45deg); }
.d-hint-left { margin-left: 10px; }
.d-hint-left::before { left: -3px; top: 9px; }
.d-hint-down { align-self: center; margin: 0 auto 10px; }
.d-hint-down::before { bottom: -3px; left: calc(50% - 4px); }
.d-hint-up { margin: 10px 0 0; }
.d-hint-up::before { top: -3px; left: calc(50% - 4px); }
.d-hint-right { align-self: flex-end; margin-right: 18%; }
@media (prefers-reduced-motion: no-preference) {
  .d-hint { animation: d-nudge 1.6s ease-in-out infinite; }
  @keyframes d-nudge { 50% { transform: scale(1.07); box-shadow: 0 0 0 6px rgba(243, 211, 74, .18); } }
}
.d-cover-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.d-speed-intro .d-hint-down { display: flex; width: max-content; margin-top: 14px; margin-bottom: -6px; }
.d-change .d-hint-down { display: flex; width: max-content; margin: 12px 0 -2px 60px; }
.d-acts .d-hint-left { margin-left: 6px; }

/* Step 2: the guest choices live in the phone, like quick replies */
.d-personas { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; }
.d-persona { font-size: 13.5px; padding: 10px 14px; border-radius: 14px; }
.d-room-link { margin-top: 12px; align-self: stretch; }
.d-room-link[hidden] { display: none; }
.d-chat-screen .d-thread { flex: 0 0 auto; }

/* Compact CTA strip */
.d-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 18px; margin-top: clamp(40px, 6vw, 64px); padding: 18px 22px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); text-align: center; }
.d-strip-text { font: 700 18px/1.3 var(--display); }

/* Organiser view */
.d-org-sub { color: var(--text-2); font-size: 17px; margin: -8px 0 26px; }
.d-big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.d-big li { padding: 20px 18px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.d-big b { display: block; font: 900 clamp(40px, 5.6vw, 64px)/1 var(--display); letter-spacing: -0.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.d-big span { display: block; margin-top: 8px; color: var(--text-2); font-size: 15px; font-weight: 600; }
.d-callout { padding: 20px 22px; border-radius: 20px; margin-bottom: 28px; background: linear-gradient(100deg, rgba(255, 169, 77, .14), rgba(255, 169, 77, .04)); box-shadow: inset 0 0 0 1px rgba(255, 169, 77, .45); }
.d-callout-kicker { font: 900 clamp(20px, 2.4vw, 26px)/1.2 var(--display); letter-spacing: -0.02em; }
.d-callout-main { margin-top: 6px; color: var(--text-2); font-size: 16px; }
.d-callout-main strong { color: var(--text); }
.d-warn { color: var(--warn); font-weight: 700; }
.d-dash-title { margin-top: 0; }
.d-stat { padding: 16px 18px; }
.d-unmet + .d-peak { margin: 18px 0 0; }

/* How it works + CTA */
.d-how-list li { padding: 22px; }
.d-cta-title { font: 900 clamp(34px, 5.4vw, 60px)/1.02 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.d-btn-big { height: 58px; padding: 0 32px; font-size: 17px; }
.d-cta-alt { margin-top: 14px; color: var(--text-2); font-size: 16px; }
.d-cta-alt a { color: var(--text); text-underline-offset: 3px; }
.d-faq .faq-wrap { align-items: start; }

@media (max-width: 860px) {
  /* Phone first, straight after the hero */
  .d-panel .d-phone { order: -1; }
  .d-panel { gap: 18px; }
  .d-say { padding-top: 0; }
  .d-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .d-hero-cta .btn { width: auto; }
  .d-hero-cta { flex-direction: column; gap: 14px; }
  .d-steps { gap: 6px; }
  .d-step-tab { height: 36px; padding: 0 10px 0 4px; gap: 6px; }
  .d-step-tab span { width: 26px; height: 26px; }
  .d-big li { padding: 16px 14px; }
  .d-btn-big { width: 100%; }
}
.d-hint-connect { margin: 8px 0 2px 55px; }
.d-hint-connect::before { left: 26px; }
.d-screen { min-height: 470px; }
@media (max-width: 420px) {
  .d-step-tab span { display: none; }
  .d-step-tab { padding: 0 12px; }
  .d-steps { flex-wrap: nowrap; justify-content: space-between; gap: 4px; }
}
