:root {
  --navy: #0C0E12;
  --orange: #C6F135;
  --ink: #F7F9FC;
  --muted: #C9D6EA;
  --bar: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--navy); color: var(--ink); font-family: 'Inter', Arial, sans-serif; overflow: hidden; }

/* One 1920x1080 stage, scaled to fit whatever screen it is on. */
#viewport { position: fixed; inset: 0 0 var(--bar) 0; overflow: hidden; }
#stage { width: 1920px; height: 1080px; position: absolute; left: 50%; top: 50%; transform-origin: center center; transform: translate(-50%, -50%); }
#stage > section { position: absolute; inset: 0; width: 1920px; height: 1080px; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
#stage > section.on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
#stage p, #stage h1, #stage h2, #stage h3 { margin: 0; }
#stage ul, #stage ol { padding-left: 1.2em; }
#stage a { cursor: pointer; }
.conn { position: absolute; inset: 0; width: 1920px; height: 1080px; pointer-events: none; }

/* Build-ins, in order, each time a slide shows. */
section.on [data-in] { animation: in-rise .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--o, 1) * 140ms); }
section.on [data-in="pop"] { animation-name: in-pop; }
section.on [data-in="fade"] { animation-name: in-fade; }
@keyframes in-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes in-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes in-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { section.on [data-in] { animation: none; } #stage > section { transition: none; } }

/* Videos. */
.vid video { background: #000; }
.vid { cursor: pointer; }
/* "See it work": one press plays the video once (deck.js). Stage pixels. */
.vid .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 0; cursor: pointer; font-family: inherit; font-size: 34px; font-weight: 800; color: var(--navy); background: var(--orange); border-radius: 999px; padding: 26px 44px 26px 36px; display: flex; gap: 16px; align-items: center; white-space: nowrap; box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 0 10px rgba(198,241,53,.22); }
.vid .play i { font-size: 40px; }
.vid:hover .play { background: #6fe0da; }
.vid.playing .play { display: none; }

/* The live try-it card (inside the stage, so stage pixels). */
.da label { display: flex; flex-direction: column; gap: 12px; font-size: 26px; font-weight: 600; color: var(--muted); }
.da input { font: inherit; font-size: 34px; font-weight: 600; color: var(--navy); background: var(--ink); border: 3px solid transparent; border-radius: 18px; padding: 20px 26px; width: 100%; outline: none; }
.da input:focus { border-color: var(--orange); }
.da input::placeholder { color: #8FA6C8; font-weight: 500; }
.da .go { font: inherit; font-size: 36px; font-weight: 800; color: var(--navy); background: var(--orange); border: 0; border-radius: 999px; padding: 28px; cursor: pointer; display: flex; gap: 16px; align-items: center; justify-content: center; }
.da .go[disabled] { opacity: .6; cursor: wait; }
.da .go.end { background: var(--ink); }
.da .row { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 40px; }
.da .status { flex: 1; font-size: 26px; color: var(--muted); }
.da .time { font-size: 26px; font-weight: 700; color: var(--orange); font-variant-numeric: tabular-nums; }
.da .orb { width: 22px; height: 22px; border-radius: 50%; background: #2A5AA0; flex: none; }
.da .orb.listening { background: #3DDC97; box-shadow: 0 0 0 8px rgba(61,220,151,.18); }
.da .orb.speaking { background: var(--orange); box-shadow: 0 0 0 10px rgba(198,241,53,.22); animation: pulse 1s ease-in-out infinite; }
.da .orb.thinking { background: #FFC24B; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px rgba(63,208,201,.08); } }
.da .tx { display: flex; flex-direction: column; gap: 12px; font-size: 26px; line-height: 1.4; color: var(--ink); height: 260px; overflow: hidden; justify-content: flex-end; }
.da .tx b { color: var(--orange); }
.da .tx .you b { color: #9FB3E6; }
.da .hint { font-size: 22px; color: #8FA6C8; line-height: 1.4; }

/* The bar under the stage. */
#bar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--bar); display: flex; align-items: center; gap: 12px; padding: 0 16px; background: #08090B; border-top: 1px solid #23272E; }
#bar button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid #2A5AA0; background: transparent; color: var(--ink); font-size: 22px; cursor: pointer; display: grid; place-items: center; }
#bar button:hover { background: #1A1D23; }
#bar button[disabled] { opacity: .35; cursor: default; }
#count { font-size: 15px; font-weight: 600; color: var(--muted); min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; }
#progress { flex: 1; height: 4px; background: #23272E; border-radius: 4px; overflow: hidden; }
#progress span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .3s ease; }
#cta { flex: none; font-size: 15px; font-weight: 800; color: var(--navy); background: var(--orange); border-radius: 999px; padding: 11px 20px; text-decoration: none; white-space: nowrap; }
#rotate { display: none; }
@media (max-width: 600px) {
  #count { min-width: 44px; }
  #cta { padding: 10px 14px; font-size: 14px; }
}
@media (orientation: portrait) and (max-width: 900px) {
  #rotate { display: block; position: fixed; left: 16px; right: 16px; top: 16px; text-align: center; font-size: 14px; color: var(--muted); }
}
/* The opening click that switches sound on (deck.js firstTouch). */
#start { position: fixed; left: 50%; bottom: calc(var(--bar) + 28px); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer; font-family: inherit; font-size: 18px; font-weight: 800; color: var(--navy); background: var(--orange); border-radius: 999px; padding: 16px 28px; box-shadow: 0 12px 32px rgba(0,0,0,.35); animation: start-pulse 2s ease-in-out infinite; }
#start small { font-size: 13px; font-weight: 600; opacity: .75; }
body.started #start { display: none; }
@keyframes start-pulse { 50% { box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 0 0 10px rgba(63,208,201,.18); } }
@media (prefers-reduced-motion: reduce) { #start { animation: none; } }

/* "Be the homeowner" card */
.da .ok { flex-direction: row; align-items: flex-start; gap: 16px; font-size: 22px; font-weight: 500; line-height: 1.4; }
.da .ok input { width: 32px; height: 32px; flex: none; margin-top: 2px; accent-color: var(--orange); }
.da .go { font-size: 30px; padding: 24px; }
.da .go.alt { background: transparent; color: var(--ink); border: 3px solid var(--orange); }
.da .status { font-size: 24px; line-height: 1.4; color: var(--muted); min-height: 68px; }
.da .status.err { color: #ffb4a8; }
#cta { color: #0C0E12; }
.da .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.da label { font-size: 23px; gap: 10px; }
.da label em { font-style: normal; font-weight: 500; color: var(--dim, #8FA6C8); font-size: 20px; }
.da input, .da select { font: inherit; font-size: 28px; font-weight: 600; color: var(--navy); background: var(--ink); border: 3px solid transparent; border-radius: 16px; padding: 16px 22px; width: 100%; outline: none; }
.da select:focus { border-color: var(--orange); }
.da #tt-depamt { margin-top: 10px; }
.da .ok input { width: 32px; height: 32px; padding: 0; }

/* CrewStride: the browser call on the try slide */
.da .go.end { background: #F04E4E; color: #fff; }
.da .live { max-height: 220px; overflow: auto; display: none; flex-direction: column; gap: 8px; font-size: 24px; line-height: 1.35; color: #E8EAED; }
.da .live.on { display: flex; }
.da .live b { color: #C6F135; margin-right: 10px; }
