:root {
  --tf-demo-ink: #0b1020;
  --tf-demo-muted: #5d6578;
  --tf-demo-soft: #f4f6fb;
  --tf-demo-border: #dfe3ec;
  --tf-demo-purple: #7b02fb;
  --tf-demo-purple-deep: #4d11b8;
  --tf-demo-green: #07a97c;
  --tf-demo-amber: #ef9e18;
  --tf-demo-red: #d9485f;
  --tf-demo-blue: #3377e8;
  --tf-demo-radius: 24px;
  --tf-demo-shadow: 0 28px 80px rgba(7, 11, 28, 0.2);
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  color: var(--tf-demo-ink);
  background: #fff;
  color-scheme: light;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #fff;
  color: var(--tf-demo-ink);
  font-family: inherit;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #a66bff;
  outline-offset: 3px;
}

.tf-demo-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.tf-demo-skip,
.tf-skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  transform: translateY(-160%);
  background: #fff;
  color: var(--tf-demo-ink);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.tf-demo-skip:focus,
.tf-skip-link:focus {
  transform: translateY(0);
}

.tf-demo-public-header,
.tf-demo-play-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 56px);
}

.tf-demo-public-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  color: #fff;
}

.tf-demo-public-header nav,
.tf-demo-footer nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.tf-demo-public-header nav a,
.tf-demo-footer a,
.tf-demo-header-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.tf-demo-public-header nav a:hover,
.tf-demo-footer a:hover,
.tf-demo-header-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tf-demo-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.tf-demo-brand img {
  display: block;
  flex: 0 0 auto;
  border-radius: 11px;
}

.tf-demo-brand span {
  display: grid;
  gap: 2px;
}

.tf-demo-brand strong {
  font-size: 15px;
  line-height: 1.1;
}

.tf-demo-brand small {
  color: currentColor;
  font-size: 11px;
  opacity: 0.66;
}

.tf-demo-start {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 73% 28%, rgba(124, 2, 251, 0.66), transparent 30%),
    radial-gradient(circle at 15% 88%, rgba(7, 169, 124, 0.18), transparent 28%),
    linear-gradient(137deg, #080c1b 4%, #171236 48%, #2e0b66 100%);
}

.tf-demo-start::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.21;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 92%);
}

.tf-demo-start__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -150px;
  bottom: -210px;
  border-radius: 50%;
  background: rgba(166, 107, 255, 0.36);
  filter: blur(70px);
}

.tf-demo-start__grid {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, 1280px);
  min-height: 720px;
  margin: 0 auto;
  padding: 128px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(540px, 1.12fr);
  gap: clamp(38px, 5vw, 78px);
  align-items: center;
}

.tf-demo-start__copy {
  min-width: 0;
}

.tf-demo-eyebrow,
.tf-demo-section-label {
  margin: 0;
  color: #d3bbff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tf-demo-eyebrow--success {
  color: #047857;
}

.tf-demo-start h1 {
  max-width: 680px;
  margin: 19px 0 22px;
  font-size: clamp(40px, 4.5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.tf-demo-lead {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.58;
}

.tf-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.tf-demo-button {
  min-height: 48px;
  padding: 12px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 15px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 820;
  line-height: 1.2;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.tf-demo-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.tf-demo-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.tf-demo-button--primary {
  background: linear-gradient(135deg, #7b02fb, #5c13d0);
  color: #fff;
  box-shadow: 0 14px 34px rgba(85, 16, 202, 0.3);
}

.tf-demo-start .tf-demo-button--primary,
.tf-demo-presentation .tf-demo-button--primary {
  background: #fff;
  color: #171029;
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.26);
}

.tf-demo-button--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  backdrop-filter: blur(10px);
}

.tf-demo-button--ghost-dark,
.tf-demo-button--subtle {
  border-color: var(--tf-demo-border);
  background: #fff;
  color: var(--tf-demo-ink);
}

.tf-demo-button--text {
  background: transparent;
  color: var(--tf-demo-purple-deep);
}

.tf-demo-trust {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.5;
}

.tf-demo-trust span {
  color: #6ee7bd;
  font-weight: 900;
}

.tf-demo-sales-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 13px;
  font-weight: 720;
  text-underline-offset: 4px;
}

.tf-demo-live-preview {
  min-width: 0;
  perspective: 1200px;
}

.tf-demo-preview-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: #f7f8fc;
  color: var(--tf-demo-ink);
  box-shadow: 0 42px 100px rgba(0, 0, 0, 0.42);
  transform: rotateY(-2deg) rotateX(1deg);
}

.tf-demo-preview-window__bar {
  min-height: 54px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #0d1225;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.tf-demo-preview-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
}

.tf-demo-preview-logo img {
  border-radius: 8px;
}

.tf-demo-preview-window__body {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  min-height: 430px;
}

.tf-demo-preview-window__body > aside {
  padding: 22px 16px;
  background: #151a31;
  color: #fff;
}

.tf-demo-preview-window__body > aside > span {
  color: #a88fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.tf-demo-preview-window__body > aside > strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.tf-demo-preview-window__body ol {
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.tf-demo-preview-window__body li {
  padding: 8px 9px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.tf-demo-preview-window__body li.is-active {
  background: rgba(123, 2, 251, 0.32);
  color: #fff;
}

.tf-demo-preview-window__canvas {
  min-width: 0;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(123, 2, 251, 0.04), transparent 45%),
    #f6f7fb;
}

.tf-demo-preview-progress {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--tf-demo-muted);
  font-size: 10px;
}

.tf-demo-preview-progress strong {
  color: var(--tf-demo-purple-deep);
}

.tf-demo-preview-card {
  margin-top: 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #e3ddf4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(19, 18, 44, 0.1);
}

.tf-demo-preview-card__step {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f0e7ff;
  color: var(--tf-demo-purple-deep);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.tf-demo-preview-card h2 {
  margin: 15px 0 8px;
  font-size: clamp(22px, 2.4vw, 31px);
  letter-spacing: -0.035em;
}

.tf-demo-preview-card p {
  margin: 0;
  color: var(--tf-demo-muted);
  font-size: 12px;
  line-height: 1.55;
}

.tf-demo-preview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 20px 0;
}

.tf-demo-preview-stats span {
  display: grid;
  gap: 3px;
  padding: 10px 8px;
  border-radius: 12px;
  background: #f5f6fa;
  color: var(--tf-demo-muted);
  font-size: 9px;
}

.tf-demo-preview-stats strong {
  color: var(--tf-demo-ink);
  font-size: 18px;
}

.tf-demo-preview-card .tf-demo-button {
  width: 100%;
  min-height: 44px;
  font-size: 12px;
}

.tf-demo-live-preview__caption {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.tf-demo-live-preview__caption span {
  color: #5ee1b8;
}

.tf-demo-proof {
  width: min(100% - 32px, 1240px);
  margin: 0 auto;
  padding: 80px 0 88px;
}

.tf-demo-section-label {
  color: var(--tf-demo-purple-deep);
}

.tf-demo-proof h2 {
  max-width: 790px;
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.tf-demo-proof__steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.tf-demo-proof__steps li {
  min-width: 0;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--tf-demo-border);
  border-radius: 18px;
  background: #fff;
}

.tf-demo-proof__steps li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #efe6ff;
  color: var(--tf-demo-purple-deep);
  font-size: 12px;
  font-weight: 900;
}

.tf-demo-proof__steps strong {
  font-size: 14px;
  line-height: 1.25;
}

.tf-demo-proof__steps small {
  color: var(--tf-demo-muted);
  font-size: 12px;
  line-height: 1.45;
}

.tf-demo-footer {
  min-height: 80px;
  padding: 18px clamp(16px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--tf-demo-border);
  color: var(--tf-demo-muted);
  font-size: 13px;
}

/* Mission shell */

.tf-demo-body--play,
.tf-demo-body--showroom,
.tf-demo-body--complete {
  background:
    radial-gradient(circle at 90% 0, rgba(123, 2, 251, 0.09), transparent 29%),
    #f2f4f9;
}

.tf-demo-play-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: 68px;
  border-bottom: 1px solid rgba(221, 225, 235, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.tf-demo-play-header__progress {
  width: min(44vw, 520px);
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--tf-demo-muted);
  font-size: 12px;
}

.tf-demo-play-header__progress strong {
  color: var(--tf-demo-purple-deep);
}

.tf-demo-play-header progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e8e9f0;
  appearance: none;
}

.tf-demo-play-header progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #e8e9f0;
}

.tf-demo-play-header progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tf-demo-purple), var(--tf-demo-green));
}

.tf-demo-play-header progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tf-demo-purple), var(--tf-demo-green));
}

.tf-demo-icon-button,
.tf-demo-header-link {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--tf-demo-border);
  border-radius: 13px;
  background: #fff;
  color: var(--tf-demo-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.tf-demo-presenter-toolbar {
  padding: 10px clamp(16px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #1a1038;
  color: #fff;
  font-size: 13px;
}

.tf-demo-presenter-toolbar[hidden] {
  display: none;
}

.tf-demo-presenter-toolbar div {
  display: flex;
  gap: 8px;
}

.tf-demo-presenter-toolbar button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-weight: 750;
}

.tf-demo-shell {
  width: min(100% - 32px, 1460px);
  min-height: calc(100vh - 144px);
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: stretch;
}

.tf-demo-mission-nav,
.tf-demo-product,
.tf-demo-context-panel {
  min-width: 0;
  border: 1px solid var(--tf-demo-border);
  border-radius: var(--tf-demo-radius);
  background: #fff;
  box-shadow: 0 15px 45px rgba(12, 17, 40, 0.06);
}

.tf-demo-mission-nav {
  padding: 24px 18px;
  background: linear-gradient(168deg, #151a31, #0b1020);
  color: #fff;
}

.tf-demo-mission-nav__label,
.tf-demo-context-panel__eyebrow {
  margin: 0;
  color: #a992ee;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tf-demo-mission-nav h1 {
  margin: 9px 0 8px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.tf-demo-mission-nav > p:not(.tf-demo-mission-nav__label) {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.5;
}

.tf-demo-mission-nav ol {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  list-style: none;
}

.tf-demo-mission-nav li button {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  cursor: default;
  text-align: left;
}

.tf-demo-mission-nav li button > span:first-child {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 850;
}

.tf-demo-mission-nav li button strong {
  overflow-wrap: break-word;
  font-size: 11px;
  line-height: 1.25;
}

.tf-demo-mission-nav li.is-active button {
  border-color: rgba(172, 126, 255, 0.42);
  background: rgba(123, 2, 251, 0.23);
  color: #fff;
}

.tf-demo-mission-nav li.is-done button {
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.tf-demo-mission-nav li.is-done button > span:first-child {
  border-color: rgba(69, 224, 176, 0.48);
  background: rgba(7, 169, 124, 0.22);
  color: #7af2ce;
}

.tf-demo-mission-nav li.is-skipped button {
  color: rgba(255, 255, 255, 0.42);
}

.tf-demo-safety-note {
  margin-top: 24px;
  padding: 12px;
  display: flex;
  gap: 9px;
  border: 1px solid rgba(103, 235, 194, 0.15);
  border-radius: 13px;
  background: rgba(7, 169, 124, 0.08);
  color: #6ee7c0;
  font-size: 11px;
}

.tf-demo-safety-note > span:last-child {
  display: grid;
  gap: 2px;
  color: rgba(255, 255, 255, 0.55);
}

.tf-demo-safety-note strong {
  color: #b8f5df;
}

.tf-demo-product {
  position: relative;
  min-height: 640px;
  padding: 20px;
  overflow: hidden;
}

.tf-demo-product__topline {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--tf-demo-muted);
  font-size: 12px;
  font-weight: 700;
}

.tf-demo-safe-chip,
.tf-demo-mission-complete-chip {
  display: inline-flex;
  min-height: 32px;
  padding: 6px 10px;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: #e9f9f3;
  color: #057b5c;
  font-size: 11px;
  font-weight: 850;
}

.tf-demo-scene {
  min-height: 556px;
  margin-top: 12px;
  padding: clamp(22px, 4vw, 46px);
  display: grid;
  align-content: center;
  border: 1px solid #e8e9f1;
  border-radius: 20px;
  background:
    radial-gradient(circle at 95% 0, rgba(123, 2, 251, 0.08), transparent 28%),
    linear-gradient(145deg, #fff, #fafaff);
}

.tf-demo-scene__loading {
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--tf-demo-muted);
}

.tf-demo-scene__loading span {
  width: 38px;
  height: 38px;
  border: 3px solid #e8dcff;
  border-top-color: var(--tf-demo-purple);
  border-radius: 50%;
  animation: tf-demo-spin 900ms linear infinite;
}

@keyframes tf-demo-spin {
  to { transform: rotate(360deg); }
}

.tf-demo-scene-layout {
  width: min(100%, 760px);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.tf-demo-scene-head {
  display: grid;
  gap: 10px;
}

.tf-demo-scene-head__step {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eee5ff;
  color: var(--tf-demo-purple-deep);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tf-demo-scene-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.tf-demo-scene-head p {
  max-width: 650px;
  margin: 0;
  color: var(--tf-demo-muted);
  font-size: 15px;
  line-height: 1.55;
}

.tf-demo-mission-stats,
.tf-demo-scene-options,
.tf-demo-version-grid,
.tf-demo-channel-tabs {
  display: grid;
  gap: 10px;
}

.tf-demo-mission-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tf-demo-mission-stats div {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--tf-demo-border);
  border-radius: 16px;
  background: #fff;
}

.tf-demo-mission-stats strong {
  display: block;
  font-size: 26px;
}

.tf-demo-mission-stats span {
  color: var(--tf-demo-muted);
  font-size: 12px;
}

.tf-demo-scene-primary {
  min-height: 52px;
  justify-self: start;
  padding-inline: 24px;
}

.tf-demo-scene-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tf-demo-idea-card,
.tf-demo-version-card,
.tf-demo-calendar-slot,
.tf-demo-channel-tab,
.tf-demo-role-card,
.tf-demo-template-card {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--tf-demo-border);
  border-radius: 16px;
  background: #fff;
  color: var(--tf-demo-ink);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tf-demo-idea-card:hover,
.tf-demo-version-card:hover,
.tf-demo-calendar-slot:hover,
.tf-demo-channel-tab:hover,
.tf-demo-role-card:hover,
.tf-demo-template-card:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 2, 251, 0.34);
  box-shadow: 0 16px 34px rgba(70, 20, 147, 0.09);
}

.tf-demo-idea-card span,
.tf-demo-version-card span {
  display: block;
  margin-bottom: 9px;
  color: var(--tf-demo-purple-deep);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.tf-demo-idea-card strong,
.tf-demo-version-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.tf-demo-idea-card small,
.tf-demo-version-card small {
  display: block;
  margin-top: 8px;
  color: var(--tf-demo-muted);
  font-size: 11px;
  line-height: 1.4;
}

.tf-demo-idea-card.is-target,
.tf-demo-version-card.is-target {
  border-color: rgba(123, 2, 251, 0.3);
  background: linear-gradient(145deg, #fff, #f5efff);
}

.tf-demo-calendar-board {
  padding: 14px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--tf-demo-border);
  border-radius: 18px;
  background: #f7f8fc;
}

.tf-demo-drag-card {
  padding: 16px;
  display: grid;
  gap: 6px;
  align-content: start;
  border: 1px solid rgba(123, 2, 251, 0.28);
  border-radius: 15px;
  background: #fff;
  cursor: grab;
  box-shadow: 0 12px 26px rgba(78, 21, 154, 0.1);
}

.tf-demo-drag-card:active {
  cursor: grabbing;
}

.tf-demo-drag-card span {
  color: var(--tf-demo-purple-deep);
  font-size: 10px;
  font-weight: 850;
}

.tf-demo-drag-card strong {
  font-size: 13px;
  line-height: 1.35;
}

.tf-demo-calendar-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tf-demo-calendar-slot {
  min-height: 106px;
  display: grid;
  gap: 4px;
  align-content: center;
  text-align: center;
}

.tf-demo-calendar-slot span {
  color: var(--tf-demo-muted);
  font-size: 11px;
}

.tf-demo-calendar-slot strong {
  font-size: 15px;
}

.tf-demo-calendar-slot.is-target {
  border-style: dashed;
  border-color: var(--tf-demo-purple);
  background: #f4edff;
  color: var(--tf-demo-purple-deep);
}

.tf-demo-calendar-slot.is-over {
  transform: scale(1.02);
  background: #e9dcff;
}

.tf-demo-version-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tf-demo-version-card {
  min-height: 150px;
}

.tf-demo-version-lines {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.tf-demo-version-lines i {
  height: 7px;
  border-radius: 99px;
  background: #eceef4;
}

.tf-demo-version-lines i:nth-child(2) { width: 82%; }
.tf-demo-version-lines i:nth-child(3) { width: 64%; }

.tf-demo-approval-window {
  padding: 18px;
  border: 1px solid var(--tf-demo-border);
  border-radius: 18px;
  background: #f7f8fb;
}

.tf-demo-approval-window__bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--tf-demo-muted);
  font-size: 11px;
}

.tf-demo-approval-card {
  margin-top: 12px;
  padding: 20px;
  display: grid;
  gap: 12px;
  border: 1px solid #e5e7ef;
  border-radius: 15px;
  background: #fff;
}

.tf-demo-approval-card h3,
.tf-demo-approval-card p {
  margin: 0;
}

.tf-demo-approval-card p {
  color: var(--tf-demo-muted);
  font-size: 13px;
  line-height: 1.5;
}

.tf-demo-approval-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.tf-demo-approval-actions .tf-demo-button {
  min-height: 48px;
}

.tf-demo-approval-comment {
  display: grid;
  gap: 8px;
  color: var(--tf-demo-ink);
  font-size: 13px;
  font-weight: 850;
}

.tf-demo-approval-comment textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid var(--tf-demo-border);
  border-radius: 13px;
  background: #fff;
  color: var(--tf-demo-ink);
  font: inherit;
  line-height: 1.5;
}

.tf-demo-approval-comment textarea:focus-visible {
  outline: 3px solid rgba(123, 2, 251, 0.24);
  outline-offset: 2px;
}

.tf-demo-approval-card--result {
  justify-items: start;
  border-color: #bce8da;
  background: #f2fcf8;
}

.tf-demo-approval-result-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #0a9f77;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

@media (max-width: 520px) {
  .tf-demo-approval-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .tf-demo-approval-actions .tf-demo-button {
    width: 100%;
  }
}

.tf-demo-channel-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tf-demo-channel-tab {
  min-height: 48px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 850;
}

.tf-demo-channel-tab.is-active {
  border-color: var(--tf-demo-purple);
  background: #f1e8ff;
  color: var(--tf-demo-purple-deep);
}

.tf-demo-channel-preview {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--tf-demo-border);
  border-radius: 18px;
  background: #fff;
}

.tf-demo-channel-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--tf-demo-muted);
  font-size: 11px;
}

.tf-demo-channel-preview p {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.tf-demo-publish-time {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tf-demo-publish-time button {
  min-height: 70px;
  border: 1px solid var(--tf-demo-border);
  border-radius: 15px;
  background: #fff;
  color: var(--tf-demo-ink);
  cursor: pointer;
  font-weight: 800;
}

.tf-demo-publish-time button.is-active {
  border-color: var(--tf-demo-purple);
  background: #f2eaff;
  color: var(--tf-demo-purple-deep);
}

.tf-demo-scene-complete {
  padding: 30px;
  display: grid;
  justify-items: center;
  gap: 15px;
  border: 1px solid rgba(7, 169, 124, 0.22);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #ecfbf6);
  text-align: center;
}

.tf-demo-scene-complete__check {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tf-demo-green);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.tf-demo-scene-complete h2,
.tf-demo-scene-complete p {
  margin: 0;
}

.tf-demo-scene-complete h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.tf-demo-scene-complete p {
  color: var(--tf-demo-muted);
}

.tf-demo-scene-complete__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tf-demo-confirmation {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 32px;
  min-width: min(420px, calc(100% - 44px));
  padding: 14px 18px;
  border-radius: 14px;
  transform: translateX(-50%);
  background: #0b1020;
  color: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.tf-demo-confirmation[hidden] {
  display: none;
}

.tf-demo-context-panel {
  padding: 24px 20px;
  align-self: start;
}

.tf-demo-context-panel__eyebrow {
  color: var(--tf-demo-purple-deep);
}

.tf-demo-context-panel h2 {
  margin: 10px 0 9px;
  font-size: 23px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.tf-demo-context-panel > p {
  margin: 0;
  color: var(--tf-demo-muted);
  font-size: 13px;
  line-height: 1.55;
}

.tf-demo-context-panel__result {
  margin-top: 22px;
  padding: 15px;
  display: grid;
  gap: 6px;
  border: 1px solid #d9f1e8;
  border-radius: 15px;
  background: #f0fbf7;
}

.tf-demo-context-panel__result span {
  color: #337664;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.tf-demo-context-panel__result strong {
  color: #075f49;
  font-size: 13px;
  line-height: 1.35;
}

.tf-demo-context-panel__tip {
  margin-top: 18px !important;
  padding-top: 18px;
  border-top: 1px solid var(--tf-demo-border);
  font-size: 11px !important;
}

.tf-demo-controls {
  width: min(100% - 32px, 1460px);
  min-height: 68px;
  margin: 0 auto;
  padding: 10px 0 14px 254px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tf-demo-controls > span {
  margin-left: auto;
  color: var(--tf-demo-muted);
  font-size: 11px;
}

/* Showroom */

.tf-demo-showroom {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 68px 0 86px;
}

.tf-demo-showroom__intro {
  max-width: 760px;
}

.tf-demo-showroom__intro .tf-demo-eyebrow {
  color: var(--tf-demo-purple-deep);
}

.tf-demo-showroom__intro h1 {
  margin: 15px 0 12px;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.tf-demo-showroom__intro > p:not(.tf-demo-eyebrow) {
  margin: 0;
  color: var(--tf-demo-muted);
  font-size: 17px;
  line-height: 1.6;
}

.tf-demo-showroom__intro .tf-demo-button {
  margin-top: 22px;
}

.tf-demo-showroom-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.tf-demo-showroom-card {
  position: relative;
  min-width: 0;
  min-height: 235px;
  padding: 21px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--tf-demo-border);
  border-radius: 22px;
  background: #fff;
  color: var(--tf-demo-ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 15px 40px rgba(10, 16, 38, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tf-demo-showroom-card:nth-child(1),
.tf-demo-showroom-card:nth-child(2),
.tf-demo-showroom-card:nth-child(3) {
  grid-column: span 2;
}

.tf-demo-showroom-card:nth-child(4),
.tf-demo-showroom-card:nth-child(5) {
  grid-column: span 3;
}

.tf-demo-showroom-card:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 2, 251, 0.32);
  box-shadow: 0 22px 52px rgba(65, 17, 133, 0.12);
}

.tf-demo-showroom-card.is-recommended {
  border-color: rgba(123, 2, 251, 0.3);
  background: linear-gradient(150deg, #fff, #f8f3ff);
}

.tf-demo-showroom-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 900;
}

.tf-demo-showroom-card__icon--purple { background: #eee3ff; color: #6516d9; }
.tf-demo-showroom-card__icon--blue { background: #e4efff; color: #2864c7; }
.tf-demo-showroom-card__icon--amber { background: #fff1d9; color: #b46f00; }
.tf-demo-showroom-card__icon--green { background: #ddf8ee; color: #087b5c; }
.tf-demo-showroom-card__icon--dark { background: #151a31; color: #d9c8ff; }

.tf-demo-showroom-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eee5ff;
  color: var(--tf-demo-purple-deep);
  font-size: 9px;
  font-weight: 850;
}

.tf-demo-showroom-card strong {
  margin-top: 2px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.tf-demo-showroom-card small {
  color: var(--tf-demo-muted);
  font-size: 13px;
  line-height: 1.48;
}

.tf-demo-showroom-card b {
  align-self: end;
  margin-top: auto;
  color: var(--tf-demo-purple-deep);
  font-size: 12px;
}

.tf-demo-showroom__footer {
  margin-top: 28px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--tf-demo-border);
  border-radius: 20px;
  background: #fff;
}

.tf-demo-showroom__footer p {
  margin: 0;
  color: var(--tf-demo-muted);
}

/* Dialogs and mini-scenes */

.tf-demo-dialog {
  width: min(94vw, 680px);
  max-height: min(88vh, 780px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--tf-demo-ink);
  box-shadow: 0 32px 100px rgba(4, 8, 24, 0.42);
}

.tf-demo-dialog::backdrop {
  background: rgba(6, 9, 23, 0.68);
  backdrop-filter: blur(5px);
}

.tf-demo-dialog__close-row {
  position: sticky;
  z-index: 5;
  top: 0;
  margin: 0;
  padding: 12px 14px 0;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.tf-demo-dialog__close-row button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--tf-demo-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--tf-demo-ink);
  cursor: pointer;
  pointer-events: auto;
  font-size: 24px;
}

.tf-demo-showroom-dialog #showroom-dialog-content {
  padding: 0 28px 30px;
}

.tf-demo-mini-scene {
  display: grid;
  gap: 20px;
}

.tf-demo-mini-scene__head {
  display: grid;
  gap: 8px;
}

.tf-demo-mini-scene__head span {
  color: var(--tf-demo-purple-deep);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tf-demo-mini-scene__head h2,
.tf-demo-mini-scene__head p {
  margin: 0;
}

.tf-demo-mini-scene__head h2 {
  font-size: 34px;
  letter-spacing: -0.04em;
}

.tf-demo-mini-scene__head p {
  color: var(--tf-demo-muted);
  line-height: 1.5;
}

.tf-demo-analytics-chart {
  height: 220px;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  border-radius: 18px;
  background: #f4f3fa;
}

.tf-demo-analytics-chart span {
  min-height: 28px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--tf-demo-purple), #a66bff);
}

.tf-demo-analytics-chart span:nth-child(2n) {
  background: linear-gradient(180deg, var(--tf-demo-green), #67dfba);
}

.tf-demo-mini-action {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--tf-demo-ink);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
}

.tf-demo-mini-result {
  padding: 15px;
  border-radius: 14px;
  background: #ebfaf4;
  color: #057b5c;
  font-weight: 800;
}

/* Completion and registration */

.tf-demo-complete {
  width: min(100% - 32px, 1180px);
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 64px 0 80px;
  display: grid;
  align-items: center;
}

.tf-demo-complete-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  border: 1px solid var(--tf-demo-border);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--tf-demo-shadow);
}

.tf-demo-complete-card__summary {
  padding: clamp(28px, 5vw, 64px);
}

.tf-demo-complete-card__summary h1 {
  max-width: 700px;
  margin: 16px 0 15px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.01;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.tf-demo-complete-card__summary > p:not(.tf-demo-eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--tf-demo-muted);
  font-size: 16px;
  line-height: 1.6;
}

.tf-demo-complete-score {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tf-demo-complete-score > div {
  min-width: 0;
  padding: 16px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--tf-demo-border);
  border-radius: 17px;
  background: #fafafe;
}

.tf-demo-complete-score strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.tf-demo-complete-score span {
  color: var(--tf-demo-muted);
  font-size: 11px;
  line-height: 1.3;
}

.tf-demo-complete-list {
  margin: 25px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.tf-demo-complete-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #263043;
  font-size: 13px;
}

.tf-demo-complete-list span {
  color: var(--tf-demo-green);
  font-weight: 900;
}

.tf-demo-trial-offer {
  padding: clamp(26px, 4vw, 44px);
  display: grid;
  align-content: center;
  gap: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(123, 2, 251, 0.36), transparent 34%),
    linear-gradient(155deg, #17102f, #0a1020);
  color: #fff;
}

.tf-demo-trial-offer__label {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9c6ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tf-demo-trial-offer h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.tf-demo-trial-offer > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.55;
}

.tf-demo-trial-offer ul {
  margin: 2px 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.tf-demo-trial-offer li {
  display: flex;
  gap: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  line-height: 1.4;
}

.tf-demo-trial-offer li span {
  color: #6ee7bd;
}

.tf-demo-trial-offer .tf-demo-button {
  width: 100%;
}

.tf-demo-trial-offer .tf-demo-button--primary {
  background: #fff;
  color: #151028;
}

.tf-demo-trial-offer .tf-demo-button--ghost-dark {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.tf-demo-pricing-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 750;
  text-underline-offset: 4px;
}

.tf-demo-trial-trust {
  text-align: center;
  font-size: 10px !important;
}

.tf-demo-trial-dialog {
  width: min(94vw, 540px);
}

.tf-demo-trial-dialog__head,
.tf-demo-registration,
.tf-demo-registration__login {
  margin: 0;
  padding-inline: 32px;
}

.tf-demo-trial-dialog__head .tf-demo-eyebrow {
  color: var(--tf-demo-purple-deep);
}

.tf-demo-trial-dialog__head h2 {
  margin: 10px 0 8px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.tf-demo-trial-dialog__head p {
  margin: 0;
  color: var(--tf-demo-muted);
  line-height: 1.55;
}

.tf-demo-registration {
  padding-top: 24px;
}

.tf-demo-registration > div:not([hidden]) {
  display: grid;
  gap: 16px;
}

.tf-demo-registration label:not(.tf-demo-consent) {
  display: grid;
  gap: 8px;
  color: #31394b;
  font-size: 13px;
  font-weight: 800;
}

.tf-demo-registration input[type='email'],
.tf-demo-registration input[type='password'] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--tf-demo-border);
  border-radius: 14px;
  background: #fff;
  color: var(--tf-demo-ink);
}

.tf-demo-consent {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  min-height: 44px;
  color: var(--tf-demo-muted);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.5;
}

.tf-demo-consent input {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.tf-demo-consent__box {
  position: relative;
  width: 20px;
  height: 20px;
  margin: 2px 0 0 12px;
  border: 1px solid #9aa3b4;
  border-radius: 4px;
  background: #fff;
}

.tf-demo-consent input:checked + .tf-demo-consent__box {
  border-color: var(--tf-demo-purple);
  background: var(--tf-demo-purple);
}

.tf-demo-consent input:checked + .tf-demo-consent__box::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tf-demo-consent input:focus-visible + .tf-demo-consent__box {
  outline: 3px solid rgba(123, 2, 251, 0.28);
  outline-offset: 3px;
}

.tf-demo-registration__email {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #f4f5f9;
  font-size: 13px;
  font-weight: 800;
}

.tf-demo-registration__note {
  margin: 0;
  color: var(--tf-demo-muted);
  font-size: 12px;
  line-height: 1.5;
}

.tf-demo-registration__result {
  padding: 16px;
  border: 1px solid #cfeee2;
  border-radius: 14px;
  background: #ecfaf5;
  color: #06634c;
  line-height: 1.5;
}

.tf-demo-registration__login {
  padding-top: 18px;
  padding-bottom: 28px;
  color: var(--tf-demo-muted);
  font-size: 12px;
  text-align: center;
}

.tf-demo-registration__login a {
  color: var(--tf-demo-purple-deep);
  font-weight: 800;
}

/* Presentation route */

.tf-demo-body--presentation {
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(123, 2, 251, 0.62), transparent 28%),
    linear-gradient(145deg, #090d1d, #21114c 62%, #3d0d7a);
}

.tf-demo-presentation {
  width: min(100% - 32px, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 130px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 70px;
  align-items: center;
}

.tf-demo-presentation h1 {
  margin: 18px 0;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.tf-demo-presentation section > p:not(.tf-demo-eyebrow):not(.tf-demo-trust) {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.6;
}

.tf-demo-presentation__keys {
  min-height: 340px;
  padding: 44px;
  display: grid;
  grid-template-columns: repeat(2, 80px);
  justify-content: center;
  align-content: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.tf-demo-presentation__keys > span {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 34px;
}

.tf-demo-presentation__keys strong,
.tf-demo-presentation__keys small {
  grid-column: 1 / -1;
}

.tf-demo-presentation__keys small {
  color: rgba(255, 255, 255, 0.56);
  line-height: 1.5;
}

/* Responsive */

@media (max-width: 1180px) {
  .tf-demo-start__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(470px, 1.15fr);
    gap: 32px;
  }

  .tf-demo-shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }

  .tf-demo-context-panel {
    display: none;
  }

  .tf-demo-controls {
    padding-left: 231px;
  }

  .tf-demo-proof__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .tf-demo-start__grid {
    grid-template-columns: 1fr;
    padding-top: 120px;
  }

  .tf-demo-start h1,
  .tf-demo-lead {
    max-width: 780px;
  }

  .tf-demo-live-preview {
    width: min(100%, 760px);
  }

  .tf-demo-preview-window {
    transform: none;
  }

  .tf-demo-showroom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tf-demo-showroom-card:nth-child(n) {
    grid-column: auto;
  }

  .tf-demo-showroom-card:last-child {
    grid-column: 1 / -1;
  }

  .tf-demo-complete-card {
    grid-template-columns: 1fr;
  }

  .tf-demo-presentation {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tf-demo-presentation__keys {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .tf-demo-public-header,
  .tf-demo-play-header {
    min-height: 60px;
    padding: 8px 16px;
  }

  .tf-demo-public-header nav a:first-child {
    display: none;
  }

  .tf-demo-brand small {
    display: none;
  }

  .tf-demo-start__grid {
    width: min(100% - 28px, 680px);
    min-height: auto;
    padding: 102px 0 58px;
  }

  .tf-demo-start h1 {
    font-size: clamp(38px, 10vw, 54px);
  }

  .tf-demo-actions {
    display: grid;
  }

  .tf-demo-start .tf-demo-button {
    width: 100%;
  }

  .tf-demo-preview-window__body {
    grid-template-columns: 1fr;
  }

  .tf-demo-preview-window__body > aside {
    display: none;
  }

  .tf-demo-preview-window__canvas {
    padding: 16px;
  }

  .tf-demo-proof {
    padding-block: 60px;
  }

  .tf-demo-proof__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tf-demo-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .tf-demo-footer nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .tf-demo-play-header__progress {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -22px;
    width: auto;
    min-height: 38px;
    padding: 7px 10px;
    grid-template-columns: auto minmax(60px, 1fr) auto;
    border: 1px solid var(--tf-demo-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(10, 16, 38, 0.08);
    font-size: 10px;
  }

  .tf-demo-presenter-toolbar {
    margin-top: 22px;
    align-items: flex-start;
    flex-direction: column;
  }

  .tf-demo-shell {
    width: min(100% - 24px, 720px);
    margin-top: 34px;
    padding-bottom: 88px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .tf-demo-mission-nav {
    padding: 14px;
  }

  .tf-demo-mission-nav h1,
  .tf-demo-mission-nav > p:not(.tf-demo-mission-nav__label),
  .tf-demo-safety-note {
    display: none;
  }

  .tf-demo-mission-nav ol {
    margin: 0;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .tf-demo-mission-nav li {
    flex: 0 0 auto;
  }

  .tf-demo-mission-nav li button {
    width: 44px;
    min-height: 44px;
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
  }

  .tf-demo-mission-nav li button strong {
    display: none;
  }

  .tf-demo-product {
    min-height: 0;
    padding: 12px;
  }

  .tf-demo-product__topline {
    padding-inline: 4px;
  }

  .tf-demo-scene {
    min-height: calc(100svh - 280px);
    padding: 22px 16px;
  }

  .tf-demo-scene-layout {
    gap: 18px;
  }

  .tf-demo-scene-head h2 {
    font-size: clamp(29px, 8vw, 38px);
  }

  .tf-demo-scene-head p {
    font-size: 14px;
  }

  .tf-demo-scene-primary {
    width: 100%;
    position: sticky;
    bottom: 82px;
    z-index: 5;
  }

  .tf-demo-scene-options,
  .tf-demo-version-grid {
    grid-template-columns: 1fr;
  }

  .tf-demo-idea-card,
  .tf-demo-version-card {
    min-height: 96px;
  }

  .tf-demo-calendar-board {
    grid-template-columns: 1fr;
  }

  .tf-demo-drag-card {
    display: none;
  }

  .tf-demo-calendar-slots {
    grid-template-columns: 1fr;
  }

  .tf-demo-calendar-slot {
    min-height: 62px;
  }

  .tf-demo-publish-time {
    grid-template-columns: 1fr;
  }

  .tf-demo-publish-time button {
    min-height: 54px;
  }

  .tf-demo-controls {
    position: fixed;
    z-index: 90;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: calc(68px + env(safe-area-inset-bottom));
    margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--tf-demo-border);
    backdrop-filter: blur(18px);
  }

  .tf-demo-controls > span {
    display: none;
  }

  .tf-demo-controls .tf-demo-button {
    min-width: 0;
    padding-inline: 8px;
    font-size: 12px;
  }

  .tf-demo-showroom {
    padding-top: 54px;
  }

  .tf-demo-showroom-grid {
    grid-template-columns: 1fr;
  }

  .tf-demo-showroom-card:last-child {
    grid-column: auto;
  }

  .tf-demo-showroom-card {
    min-height: 190px;
  }

  .tf-demo-showroom__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .tf-demo-complete {
    padding-top: 50px;
  }

  .tf-demo-complete-card__summary,
  .tf-demo-trial-offer {
    padding: 26px 20px;
  }

  .tf-demo-complete-card__summary h1 {
    font-size: clamp(37px, 10vw, 48px);
  }

  .tf-demo-trial-dialog__head,
  .tf-demo-registration,
  .tf-demo-registration__login {
    padding-inline: 20px;
  }
}

@media (max-width: 480px) {
  .tf-demo-start__grid,
  .tf-demo-proof,
  .tf-demo-showroom,
  .tf-demo-complete,
  .tf-demo-presentation {
    width: min(100% - 24px, 440px);
  }

  .tf-demo-start h1 {
    font-size: clamp(36px, 11vw, 46px);
  }

  .tf-demo-lead {
    font-size: 16px;
    line-height: 1.52;
  }

  .tf-demo-preview-window__bar > span:last-child {
    display: none;
  }

  .tf-demo-preview-card {
    padding: 20px;
  }

  .tf-demo-proof__steps {
    grid-template-columns: 1fr;
  }

  .tf-demo-proof__steps li {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .tf-demo-proof__steps small {
    grid-column: 2;
  }

  .tf-demo-play-header .tf-demo-brand span {
    display: none;
  }

  .tf-demo-icon-button,
  .tf-demo-header-link {
    padding-inline: 11px;
  }

  .tf-demo-product__topline > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tf-demo-mission-stats,
  .tf-demo-complete-score {
    grid-template-columns: 1fr;
  }

  .tf-demo-mission-stats div,
  .tf-demo-complete-score > div {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .tf-demo-mission-stats strong,
  .tf-demo-complete-score strong {
    font-size: 24px;
  }

  .tf-demo-channel-tabs {
    grid-template-columns: 1fr;
  }

  .tf-demo-scene-complete {
    padding: 22px 15px;
  }

  .tf-demo-scene-complete__actions {
    width: 100%;
    display: grid;
  }

  .tf-demo-showroom__intro h1 {
    font-size: 44px;
  }

  .tf-demo-showroom-card__badge {
    position: static;
    width: fit-content;
  }

  .tf-demo-mission-complete-chip {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tf-demo-complete-card {
    border-radius: 22px;
  }

  .tf-demo-presentation {
    padding-top: 112px;
  }

  .tf-demo-presentation h1 {
    font-size: 47px;
  }

  .tf-demo-presentation__keys {
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
