/* Digital Health Twin — step-by-step guide (senior-friendly: large type, high contrast, big targets) */

/* ---- banner + beta-help link on the main Digital Twin page ---- */
.tg-banner { background: #fff7e6; border-bottom: 1px solid #f5d9a8; }
.tg-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.tg-banner p { margin: 0; font-size: 1.08rem; color: var(--text-strong); max-width: 70ch; }
.tg-banner-ico { font-size: 1.3rem; }
.tg-beta-help { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 18px; font-size: 1.02rem; }

/* ---- guide page ---- */
.tg-hero { background: var(--navy); padding: 64px 0 56px; }
.tg-hero h1 { color: #fff; }
.tg-hero .lede a { color: #7dd3fc; text-decoration: underline; }
.tg-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.tg-jump a { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-size: 1.05rem; font-weight: 600; padding: 12px 18px; border-radius: 999px; min-height: 48px; }
.tg-jump a:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.tg-jump a span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); font-size: .95rem; }
.tg-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

.tg-section { font-size: 19px; line-height: 1.7; }
.tg-section h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.tg-section h3 { font-size: 1.3rem; }
.tg-section .eyebrow { font-size: .85rem; }
.tg-big { font-size: 1.18rem; color: var(--text-strong); }
.tg-sub { margin-top: 36px; }
.tg-mute { color: var(--text-mute); font-size: .95em; }
.tg-tip { background: #f0f9ff; border-radius: 8px; padding: 10px 14px; font-size: .97em; }
.tg-section b { color: var(--text-strong); }

/* numbered steps */
.tg-steps { list-style: none; padding: 0; margin: 22px 0 0; counter-reset: none; }
.tg-step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 22px 10px; margin-bottom: 16px; box-shadow: var(--shadow); }
.tg-n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 1.5rem; font-weight: 700; }
.tg-step h3 { margin: 8px 0 10px; }
.tg-step ul { padding-left: 1.1em; }

/* figures + videos */
.tg-figure { margin: 26px 0; }
.tg-figure img { border-radius: 12px; width: 100%; }
.tg-shot img { border: 1px solid var(--border); box-shadow: var(--shadow); }
.tg-figure figcaption, .tg-video figcaption { font-size: .92rem; color: var(--text-mute); margin-top: 8px; }
.tg-video { margin: 26px 0 30px; }
.tg-video video { width: 100%; display: block; background: #000; aspect-ratio: 16 / 9; }
.tg-video figcaption { font-weight: 600; color: var(--text-strong); font-size: 1rem; }
.tg-video figcaption .tg-mute { display: block; font-weight: 400; font-size: .9rem; }
.tg-video video::cue { font-size: 1.1em; background: rgba(0,0,0,.78); }

/* callouts */
.tg-callout { background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--accent); border-radius: 12px; padding: 20px 22px 6px; margin: 26px 0; }
.section-alt .tg-callout { background: #fff; }
.tg-callout h3 { margin-top: 0; }
.tg-soon { border-left-color: #f59e0b; background: #fffbeb !important; }

/* feature tiles */
.tg-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.tg-tile { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tg-tile h3 { margin: 8px 0 8px; font-size: 1.22rem; }
.tg-tile p { margin-bottom: .7em; }
.tg-ico { font-size: 2.3rem; line-height: 1; }
.tg-where { margin-top: auto !important; padding-top: 10px; border-top: 1px dashed var(--border); font-size: .92em; }
.tg-where span { color: var(--text-mute); font-weight: 600; margin-right: 4px; }

/* questions */
.tg-faq { margin-top: 12px; }
.tg-qa { border: 1px solid var(--border); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.tg-qa summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 700; color: var(--text-strong); font-size: 1.12rem; position: relative; min-height: 56px; }
.tg-qa summary::-webkit-details-marker { display: none; }
.tg-qa summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--accent-dark); }
.tg-qa[open] summary::after { content: "\2212"; }
.tg-qa > div { padding: 0 20px 6px; }

/* slots for films that are on their way */
.tg-slot { border: 2px dashed #b8c7dd; border-radius: 14px; padding: 22px 24px 8px; text-align: center; background: #fbfcfe; }
.tg-slot-label { font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--text-mute); margin-bottom: .4em; }

/* help */
.tg-email { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; word-break: break-word; }
.tg-fine { font-size: .85rem; color: var(--text-mute); margin-top: 34px; }

@media (max-width: 900px) { .tg-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .tg-section { font-size: 18px; }
  .tg-hero { padding: 40px 0 36px; }
  .tg-jump a { width: 100%; }
  .tg-tiles { grid-template-columns: 1fr; }
  .tg-step { grid-template-columns: 1fr; gap: 6px; padding: 18px 16px 6px; }
  .tg-n { width: 44px; height: 44px; font-size: 1.25rem; }
  .tg-banner .btn { width: 100%; text-align: center; }
  .wrap { padding: 0 16px; }
}

@media print {
  .site-header, .site-footer, .tg-jump, .tg-hero-actions, .tg-video, .tg-slot, .btn, .btn-row, .tg-banner, .contact-modal { display: none !important; }
  .tg-hero { background: #fff; padding: 0; }
  .tg-hero h1, .tg-hero .lede { color: #000; }
  .section, .section-alt { padding: 14px 0; background: #fff; border: 0; }
  .tg-qa > div { display: block !important; }
  .tg-qa summary::after { content: ""; }
  .tg-step, .tg-tile { box-shadow: none; break-inside: avoid; }
  .tg-tiles { grid-template-columns: 1fr 1fr; }
  a[href^="mailto:"]::after { content: ""; }
}

.tg-inner { max-width: 712px; margin: 0 auto; }

/* per-device install cards */
.tg-devnav { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 22px; }
.tg-devnav a { flex: 1 1 180px; text-align: center; background: #fff; border: 2px solid var(--accent); color: var(--text-strong);
  font-weight: 700; padding: 14px 16px; border-radius: 12px; min-height: 52px; }
.tg-devnav a:hover { background: var(--accent-soft); text-decoration: none; }
.tg-device { background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--navy); border-radius: 14px;
  padding: 22px 22px 8px; margin-bottom: 18px; box-shadow: var(--shadow); scroll-margin-top: 84px; }
.tg-device h3 { margin: 0 0 4px; font-size: 1.4rem; }
.tg-mini { padding-left: 1.4em; }
.tg-mini li { margin-bottom: .6em; padding-left: .2em; }
.tg-mini li::marker { font-weight: 700; color: var(--navy); }
#install { scroll-margin-top: 84px; }
@media print { .tg-devnav { display: none; } .tg-device { box-shadow: none; break-inside: avoid; } }
