/* Homepage demo; rem values scaled from 16px to the site's 20px root, matching the hero and workflow. */
.tgdemo {
  --tgdemo-ink: #133047;
  --tgdemo-muted: #536d80;
  --tgdemo-accent: #c94716;
  --tgdemo-blue: #147eba;
  box-sizing: border-box;
  color: var(--tgdemo-ink);
  background: #f0f6f9;
  padding: clamp(2.6rem, 5.3vw, 4.4rem) clamp(0.9rem, 3vw, 2rem);
  font: 400 0.8rem/1.55 Arial, Helvetica, sans-serif;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}
.tgdemo *, .tgdemo *::before, .tgdemo *::after { box-sizing: border-box; }
.tgdemo__inner { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(14.4rem, 1fr); gap: clamp(1.6rem, 4.25vw, 3.6rem); align-items: center; max-width: 1380px; margin-inline: auto; }
/* Text comes first for assistive technology and mobile; desktop puts the video on the left. */
.tgdemo__copy { grid-column: 2; grid-row: 1; min-width: 0; }
.tgdemo .tgdemo__eyebrow { margin: 0 0 0.68rem; color: #af3912; font-size: 0.656rem; font-weight: 700; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; }
.tgdemo h2 { margin: 0; color: var(--tgdemo-ink); font: 700 clamp(1.6rem, 3vw, 2.24rem)/1.12 Arial, Helvetica, sans-serif; letter-spacing: -.04em; text-transform: none; }
.tgdemo h2 span { color: var(--tgdemo-accent); }
.tgdemo .tgdemo__intro { margin: 0.92rem 0 1.32rem; color: var(--tgdemo-muted); font-size: 0.86rem; line-height: 1.6; }
.tgdemo__benefits { display: grid; gap: 0.896rem; margin: 0; padding: 0; list-style: none; }
.tgdemo__benefits li { display: grid; grid-template-columns: 1.96rem minmax(0, 1fr); gap: 0.64rem; align-items: start; margin: 0; padding: 0; }
.tgdemo__icon { display: grid; place-items: center; width: 1.96rem; height: 1.96rem; border: 1px solid #dce9ef; border-radius: 0.56rem; background: #fff; color: var(--tgdemo-blue); }
.tgdemo__icon svg { display: block; width: 1rem; height: 1rem; }
.tgdemo h3 { margin: 0 0 0.16rem; color: var(--tgdemo-ink); font: 700 0.8rem/1.4 Arial, Helvetica, sans-serif; letter-spacing: -.012em; text-transform: none; }
.tgdemo__benefits p { margin: 0; color: var(--tgdemo-muted); font-size: 0.728rem; line-height: 1.55; }
.tgdemo__cta { display: inline-flex; align-items: center; justify-content: center; gap: 0.52rem; min-height: 2.32rem; margin-top: 1.32rem; padding: 0.56rem 0.8rem; border: 1px solid transparent; border-radius: 0.48rem; background: var(--tgdemo-accent); color: #fff; font: 700 0.8rem/1.4 Arial, Helvetica, sans-serif; text-decoration: none; transition: background-color .16s ease; }
.tgdemo__cta svg { width: 0.92rem; height: 0.92rem; }
.tgdemo__cta:hover { color: #fff; background: #a7350d; text-decoration: none; }
.tgdemo__cta:focus-visible, .tgdemo__video:focus-visible { outline: 3px solid #086a9c; outline-offset: 4px; }
.tgdemo__media { grid-column: 1; grid-row: 1; min-width: 0; margin: 0; }
.tgdemo__frame { overflow: hidden; border: 1px solid #d6e3eb; border-radius: 0.8rem; background: #fff; box-shadow: 0 1.04rem 2rem -0.64rem #14384c24, 0 0.12rem 0.4rem #14384c0a; }
.tgdemo__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #fff; object-fit: contain; }
.tgdemo figcaption { max-width: 30.4rem; margin: 0.68rem auto 0; color: #637b8c; font-size: 0.7rem; line-height: 1.5; text-align: center; }

.tgdemo figcaption > p { margin: 0; line-height: inherit; }
.tgdemo__walkthrough { max-width: 27.2rem; margin: 0.44rem auto 0; text-align: left; }
.tgdemo__walkthrough summary { width: fit-content; margin-inline: auto; padding: 0.28rem 0.2rem; color: #315c77; font-size: 0.7rem; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.tgdemo__walkthrough summary::marker { color: #63849a; }
.tgdemo__walkthrough summary:focus-visible { outline: 3px solid #086a9c; outline-offset: 3px; border-radius: 0.16rem; }
.tgdemo__walkthrough ol { display: grid; gap: 0.44rem; margin: 0.52rem 0 0; padding: 0.76rem 0.8rem 0.76rem 1.76rem; border: 1px solid #dbe7ed; border-radius: 0.52rem; background: #ffffff8c; color: #536d80; }
.tgdemo__walkthrough li { padding-left: 0.12rem; }
.tgdemo__walkthrough strong { color: #31556d; }

@media (max-width: 1060px) and (min-width: 821px) {
  .tgdemo__inner { grid-template-columns: minmax(0, 1.4fr) minmax(13.6rem, 1fr); gap: 1.44rem; }
  .tgdemo .tgdemo__intro { font-size: 0.8rem; margin-bottom: 0.96rem; }
  .tgdemo__benefits { gap: 0.68rem; }
}
@media (max-width: 820px) {
  .tgdemo__inner { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; max-width: 33.6rem; }
  .tgdemo__copy, .tgdemo__media { grid-column: 1; grid-row: auto; }
  .tgdemo .tgdemo__intro { max-width: 28rem; }
  .tgdemo__benefits { max-width: 27.2rem; }
}
@media (max-width: 440px) {
  .tgdemo { padding-block: 2.4rem; }
  .tgdemo .tgdemo__eyebrow { font-size: 0.592rem; letter-spacing: .105em; }
  .tgdemo .tgdemo__intro { font-size: 0.8rem; }
  .tgdemo__frame { border-radius: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) { .tgdemo__cta { transition: none; } }
