/* ptr-fast-demos - demos.peopletechrevolution.com
   Same dark PTR field / smoked-glass visual system as ptr-guests' gate page
   and ptr-labs-launch. One page, mobile first, no framework, no build step.
   The header block below (ptrTopNavBar / ptrMenuOverlay / ptrNavLink /
   ptrMenuLink / ...) is copied from ptr-website-html public/TopNav.dc.html
   (read-only source, never edited) so the nav bar and hamburger menu are
   byte-identical in appearance and behaviour to the corporate site's. */

:root {
  --ink: #fff;
  --muted: rgba(255, 255, 255, .62);
  --edge: rgba(255, 255, 255, .14);
  --ptr-cyan: #80EDEF;
  --ptr-blue: #41BBF5;
  --ptr-indigo: #6D57FF;
  --ptr-orchid: #D16BFF;
  --bg: #050507;
  --hdr-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }

/* The copied header markup carries inline display:flex on the overlay and
   a .ptrMenuKids{display:flex} class rule, both of which outrank the UA
   [hidden]{display:none} default. Force it so the hidden attribute (set
   and cleared by nav.js) actually hides the overlay and its accordion
   panels rather than always rendering them open. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.ptr-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 620px at 18% -10%, rgba(109, 87, 255, .28), transparent 60%),
    radial-gradient(900px 520px at 88% 8%, rgba(65, 187, 245, .20), transparent 62%),
    var(--bg);
}

/* ================================================================
   HEADER: copied from ptr-website-html TopNav.dc.html. Class names,
   selectors and values are kept identical to the source so a visitor
   cannot tell this bar apart from the corporate site's.
   ================================================================ */
.ptrNavLink, .ptrMenuLink {
  position: relative;
  display: inline-block;
  transition: color .55s ease, text-shadow .55s ease, opacity .55s ease;
}
.ptrNavLink::after, .ptrMenuLink::after {
  content: ""; position: absolute; left: 8%; right: 8%; height: 2px; border-radius: 99px;
  background: linear-gradient(90deg, var(--hm-a), var(--hm-b));
  box-shadow: 0 0 18px var(--hm-glow);
  opacity: 0; transform: scaleX(.6); transform-origin: 50% 50%;
  transition: opacity .55s ease, transform .55s ease;
  pointer-events: none;
}
.ptrMenuNav .ptrMenuTop::after, .ptrMenuNav .ptrMenuChild::after { left: 14px; right: 14px; }
.ptrNavLink::after { bottom: 4px; }
.ptrMenuLink::after { bottom: -2px; }
.ptrNavLink:hover, .ptrNavLink:focus-visible, .ptrNavLink:active,
.ptrMenuLink:hover, .ptrMenuLink:focus-visible, .ptrMenuLink:active {
  opacity: 1;
  text-shadow: 0 0 22px var(--hm-glow);
}
.ptrNavLink:hover::after, .ptrNavLink:focus-visible::after, .ptrNavLink:active::after,
.ptrMenuLink:hover::after, .ptrMenuLink:focus-visible::after, .ptrMenuLink:active::after {
  opacity: 1; transform: scaleX(1);
}
.ptrMenuLink { width: fit-content; }
.ptrMenuNav .ptrMenuTop, .ptrMenuNav .ptrMenuChild { padding: 0 14px !important; margin-left: -14px; }
.ptrMenuSec { background: none; border: none; text-align: left; cursor: pointer; font-family: inherit; color: #fff; }
.ptrChev { display: inline-block; font-size: 0.5em; vertical-align: 0.3em; opacity: 0.55; margin-left: 10px; transition: transform .3s ease; }
.ptrChev.open { transform: rotate(90deg); }
.ptrMenuKids { display: flex; flex-direction: column; gap: clamp(6px, 1.2vh, 12px); padding: clamp(4px, 0.8vh, 8px) 0 clamp(6px, 1.2vh, 12px) clamp(18px, 3vw, 34px); border-left: 1px solid rgba(255,255,255,0.14); margin-left: 6px; }
.ptrMenuNav { scrollbar-width:none; -ms-overflow-style:none; }
.ptrMenuNav::-webkit-scrollbar { width:0; height:0; display:none; }
#ptrTopNavTwin:hover, #ptrTopNavTwin:focus-visible {
  transform: translateY(-1px) scale(1.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), inset 0 -10px 22px rgba(128,237,239,0.2), 0 0 38px rgba(109,87,255,0.36);
}
@media (prefers-reduced-motion: reduce) {
  .ptrNavLink, .ptrMenuLink, .ptrNavLink::after, .ptrMenuLink::after, .ptrChev { transition: none !important; }
}
@media (max-width: 520px) {
  :root { --hdr-h: 56px; }
  #ptrTopNavBar > div:first-child { padding-top: 8px !important; padding-bottom: 8px !important; }
  #ptrTopNavBar img[alt="People Tech Revolution"] { width: 38px !important; height: 38px !important; }
  #ptrTopNavBar button[aria-label="Talk to Us"],
  #ptrTopNavBar button[aria-label="Menu"] { width: 40px !important; height: 40px !important; }
}

/* ================================================================
   PAGE BODY: one 100dvh viewport, no scroll. Header floats fixed above
   (its own height accounted for via --hdr-h padding-top below); title,
   gate/options and the one-line footer share the remaining height.
   ================================================================ */
.page {
  height: 100dvh;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--hdr-h) + clamp(6px, 1.6vh, 18px)) clamp(16px, 4vw, 40px) clamp(4px, 1vh, 10px);
  overflow: hidden;
  box-sizing: border-box;
}

.title {
  margin: 0 0 clamp(6px, 1.4vh, 16px);
  text-align: center;
  font-size: clamp(16px, 2.6vh, 26px);
  line-height: 1.2;
  font-weight: 600;
  white-space: normal;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.plate {
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--edge);
  border-radius: 18px;
  padding: clamp(12px, 2vh, 22px);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

/* Middle row: centers whichever of gate/options is visible, shrinks to
   fit, and is the one place an overflow-y:auto safety net lives (it
   should never be needed once sizes are tuned, but a page that cannot
   grow must not be allowed to push the footer off-screen either). */
.gate, .options {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.gate .fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gate input {
  width: 100%;
  padding: clamp(8px, 1.4vh, 13px) 14px;
  border-radius: 12px;
  border: 1px solid var(--edge);
  background: rgba(0, 0, 0, .28);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.gate input:focus { border-color: rgba(128, 237, 239, .7); }
.gate input.wide { grid-column: 1 / -1; margin-top: 8px; }

.cf-turnstile { margin: clamp(8px, 1.6vh, 16px) 0 4px; min-height: 66px; }

.micro {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin: clamp(8px, 1.4vh, 14px) 0 clamp(8px, 1.4vh, 16px);
}
.micro a { color: var(--ptr-cyan); }

.gate .enter-btn,
.gate-continue-btn {
  width: 100%;
  padding: clamp(10px, 1.8vh, 14px) 16px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #050507;
  background: linear-gradient(90deg, var(--ptr-cyan), var(--ptr-blue));
}
.gate .enter-btn:disabled,
.gate-continue-btn:disabled { opacity: .6; cursor: default; }

.gate-error {
  margin: 8px 0 0;
  font-size: 13px;
  color: #FFB4B4;
  min-height: 14px;
}

.continue-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px; }
.continue-row .continue-hi { font-size: 15px; color: var(--ink); margin: 0 0 2px; }
.continue-row .continue-sub { font-size: 13px; color: var(--muted); margin: 0 0 10px; }

.options-hi {
  text-align: center;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 clamp(8px, 1.4vh, 14px);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: clamp(12px, 2vh, 20px);
  transition: border-color .15s ease, background .15s ease;
}
.card:hover, .card:focus-visible {
  border-color: rgba(128, 237, 239, .5);
  background: rgba(255, 255, 255, .07);
}
.card-eyebrow {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ptr-cyan);
  margin-bottom: 6px;
}
.card h2 { font-size: clamp(15px, 2vh, 19px); margin: 0 0 6px; font-weight: 600; }
.card p { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0 0 10px; }
.card-cta { font-size: 13px; font-weight: 600; color: var(--ptr-cyan); }

.foot {
  text-align: center;
  margin: clamp(4px, 1vh, 10px) 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, .42);
}
.foot p { margin: 0; }

/* Backdrop: the main site's raw-WebGL brand field, painted behind everything. */
#cinBg { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; background: #020208; }
body > *:not(#cinBg) { position: relative; z-index: 1; }
.foot .made-with { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; opacity: 0.9; }
.foot .made-with img { height: 26px; width: auto; display: block; }

/* Operator 2026-09-08: title placed with room to breathe, plate centred between it and the
   footer, footer wordmark large and mobile first. */
.title {
  font-size: clamp(28px, 5.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: clamp(10px, 3vh, 36px) auto clamp(10px, 2.4vh, 28px);
}
.page > .gate, .page > .options { align-self: center; }
.card { appearance: none; -webkit-appearance: none; font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; }
.foot { margin-top: clamp(10px, 2.2vh, 20px); color: rgba(255, 255, 255, .8); }
.foot .made-with { font-size: clamp(16px, 4.2vw, 22px); gap: 12px; opacity: 1; }
.foot .made-with img { height: clamp(38px, 9vw, 56px); }
@media (min-width: 768px) {
  .foot .made-with { font-size: 20px; }
  .foot .made-with img { height: 48px; }
}

/* Operator 2026-09-08: the title sits directly over the panel; title + panel are one centred
   group between the nav and the footer. */
.page { display: flex; flex-direction: column; }
.page > .title { margin-top: auto; margin-bottom: clamp(12px, 2.4vh, 26px); }
.page > .gate, .page > .options { margin-bottom: auto; align-self: stretch; }
.foot { margin-top: 0; padding-top: clamp(8px, 1.6vh, 16px); }
/* Operator 2026-09-08: the footer is a fixed bottom band with the wordmark centred in it. */
.foot { display: flex; align-items: center; justify-content: center; min-height: clamp(56px, 9vh, 84px); padding: 0; }
/* The plate hugs the title: no leftover auto margin above it from the old grid row. */
.page > .gate, .page > .options { margin-top: 0 !important; }
.page > .title { margin-bottom: clamp(14px, 3vh, 30px); }

/* Operator 2026-09-08: the chat is embedded UNDER the two option cards and takes
   the rest of the viewport; the widget renders inline in #twinDock (no backdrop,
   never over the cards). Minimised: the dock shrinks to the widget's header strip. */
.page > .options:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0;
  max-width: 720px;
  overflow: hidden;
}
.page > .options:not([hidden]) ~ .foot { margin-top: clamp(6px, 1.2vh, 12px); }
.options .cards { flex: 0 0 auto; }
.twin-dock {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: clamp(10px, 1.8vh, 18px);
}
.twin-dock.is-minimised { flex: 0 0 auto; }
.twin-dock > ptr-digital-twin {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
}
.twin-dock.is-minimised > ptr-digital-twin { height: auto; flex: 0 0 auto; }
@media (max-height: 700px) and (min-width: 560px) {
  .card p { display: none; }
}
/* Full screen chat: lift the page above the fixed nav (no backdrop). */
body.twin-fullscreen > main.page { z-index: 100000; }
/* Operator 2026-09-08: minimised returns the widget to the header icon only; a dragged
   (floating) panel leaves the dock too. Either way the dock is gone and the cards recentre. */
.twin-dock.is-minimised { display: none; }
/* Floating: the widget element must stay rendered (its fixed window lives inside it),
   so the dock collapses to zero height instead of display:none. */
.twin-dock.is-floating { flex: 0 0 0; height: 0; min-height: 0; margin: 0; overflow: visible; }
.page.chat-away > .options:not([hidden]) { flex: 0 0 auto; margin-bottom: auto; }
