/* TrainerDesk product page.
   Brand: navy #0b1d4a, blue #1766ff, green #0fae6e. Type: Lexend throughout (SIL OFL), the TrainerDesk wordmark's face.
   Design rules for this page: flat colour, hairline rules instead of card shadows, left-aligned compositions,
   sentence-case labels, real screenshots doing the explaining. site.css is still loaded for the shared footer. */
body.td-page {
    --navy: #0b1d4a;
    --navy-ink: #071433;
    --blue: #1766ff;
    --blue-press: #0d4fd1;
    --green: #0fae6e;
    --paper: #f4f2ed;
    --text: #2f3b55;
    --soft: #5d6880;
    --rule: rgba(11, 29, 74, .14);
    --rule-light: rgba(255, 255, 255, .16);
    --max: 1180px;
    background: #fff;
    color: var(--text);
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.6;
}
body.td-page::before { display: none; }
.td-page main img { height: auto; }
.td-page h1, .td-page h2, .td-page h3, .td-page h4 { margin: 0; color: var(--navy); font-family: 'Lexend', sans-serif; font-weight: 600; letter-spacing: -.02em; }
.td-page p { margin: 0; }
.td-page strong { font-weight: 500; color: var(--navy); }
.td-wrap { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.td-label { display: block; font-size: .92rem; font-weight: 500; color: var(--blue); letter-spacing: 0; }
.td-on-navy .td-label { color: #8fb6ff; }

/* Links & buttons */
.td-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 6px; background: var(--blue); color: #fff; font: 500 1rem 'Lexend', sans-serif; text-decoration: none; transition: background .15s; }
.td-btn:hover { background: var(--blue-press); }
.td-btn svg { width: 18px; height: 18px; }
.td-btn.light { background: #fff; color: var(--navy); }
.td-btn.light:hover { background: #e9edf6; }
.td-link { color: var(--navy); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(11,29,74,.3); text-underline-offset: 5px; transition: text-decoration-color .15s; }
.td-link:hover { text-decoration-color: var(--navy); }
.td-on-navy .td-link { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.td-on-navy .td-link:hover { text-decoration-color: #fff; }
.td-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* Nav */
.td-nav { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--rule); }
.td-nav-inner { display: flex; align-items: center; height: 72px; gap: 40px; }
.td-nav-logo img { display: block; height: 32px; width: auto; }
.td-nav-links { display: flex; gap: 30px; }
.td-nav-links a { color: var(--text); font-size: .95rem; font-weight: 400; text-decoration: none; }
.td-nav-links a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; }
.td-nav-right { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.td-nav-by { color: var(--soft); font-size: .88rem; text-decoration: none; }
.td-nav-by:hover { color: var(--navy); }
.td-nav-right .td-btn { height: 42px; padding: 0 16px; font-size: .92rem; }
.td-nav-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 11px; border: 0; background: none; color: var(--navy); cursor: pointer; }
.td-nav-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; transition: transform .2s, opacity .2s; }
.td-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.td-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.td-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero: text left, a large annotated screenshot running off the right edge */
.td-hero { padding: 88px 0 0; overflow: hidden; }
.td-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: end; }
.td-hero h1 { font-size: clamp(2.6rem, 5vw, 4.3rem); line-height: 1.04; letter-spacing: -.035em; max-width: 13ch; }
.td-hero-side p { font-size: 1.15rem; color: var(--text); }
.td-hero-side .td-actions { margin-top: 30px; }
.td-hero-shot { position: relative; margin: 72px 0 0; aspect-ratio: 1600 / 760; overflow: hidden; border: 1px solid var(--rule); border-bottom: 0; border-radius: 8px 8px 0 0; box-shadow: 0 30px 60px -36px rgba(11,29,74,.45); }
.td-hero-shot::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); pointer-events: none; }
.td-shot { display: block; width: 100%; border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 30px 60px -36px rgba(11,29,74,.45); }
.td-hero-shot .td-shot { border: 0; border-radius: 0; box-shadow: none; }
.td-note { position: absolute; display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 500; color: var(--navy); white-space: nowrap; }
.td-note::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(15,174,110,.2); flex: none; }
.td-note span { padding: 6px 10px; background: #fff; border: 1px solid var(--rule); border-radius: 4px; }

/* Sections */
.td-section { padding: 112px 0; }
.td-section.paper { background: var(--paper); }
.td-section.navy { background: var(--navy); color: #c8d2e8; }
.td-section.navy h2, .td-section.navy h3, .td-section.navy h4 { color: #fff; }
.td-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; margin-bottom: 56px; }
.td-intro h2, .td-h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.08; letter-spacing: -.03em; }
.td-intro .td-label + h2 { margin-top: 12px; }
.td-intro p { font-size: 1.08rem; padding-top: 6px; }

/* Before / after table */
.td-compare { width: 100%; border-collapse: collapse; }
.td-compare th { padding: 0 0 16px; text-align: left; font-size: .92rem; font-weight: 500; color: var(--soft); }
.td-compare th:last-child { color: var(--blue); }
.td-compare td { padding: 22px 28px 22px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.td-compare td:first-child { width: 22%; font-weight: 500; color: var(--navy); }
.td-compare td:nth-child(2) { width: 36%; color: var(--soft); }
.td-compare td:last-child { color: var(--navy); font-weight: 400; }

/* Video block */
.td-video-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 64px; align-items: center; }
.td-video-grid p { margin-top: 18px; font-size: 1.05rem; }
.td-video-grid .td-meta { margin-top: 26px; font-size: .9rem; color: #8fa0c4; }
.td-video { position: relative; border-radius: 8px; overflow: hidden; background: #050d1f; }
.td-video button { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.td-video img, .td-video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.td-play { position: absolute; left: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 6px; background: #fff; color: var(--navy); font: 500 .95rem 'Lexend', sans-serif; transition: background .15s; }
.td-video button:hover .td-play { background: #e9edf6; }
.td-play-icon { width: 30px; height: 30px; border-radius: 4px; background: var(--blue); display: grid; place-items: center; }
.td-play-icon::before { content: ''; margin-left: 3px; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* Platform tour */
.td-tabs { display: flex; gap: 34px; margin-bottom: 36px; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.td-tab { flex: none; padding: 0 0 16px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; font: 400 1rem 'Lexend', sans-serif; color: var(--soft); cursor: pointer; }
.td-tab:hover { color: var(--navy); }
.td-tab[aria-selected="true"] { color: var(--navy); font-weight: 500; border-bottom-color: var(--blue); }
.td-panel { display: grid; grid-template-columns: 1.55fr .45fr; gap: 48px; align-items: start; }
.td-panel[hidden] { display: none; }
.td-panel h3 { font-size: 1.35rem; line-height: 1.2; }
.td-panel p { margin-top: 12px; }
.td-panel ul { margin: 18px 0 0; padding: 0; list-style: none; }
.td-panel li { padding: 11px 0; border-top: 1px solid var(--rule); font-size: .95rem; color: var(--navy); }

/* Timeline: one real booking, start to finish */
.td-timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0; padding: 34px 0 0; list-style: none; border-top: 2px solid var(--navy); }
.td-timeline li { position: relative; }
.td-timeline li::before { content: ''; position: absolute; top: -42px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); }
.td-timeline li:last-child::before { background: var(--green); border-color: var(--green); }
.td-when { display: block; font-size: .88rem; font-weight: 500; color: var(--blue); }
.td-timeline h3 { margin-top: 8px; font-size: 1.12rem; line-height: 1.25; }
.td-timeline p { margin-top: 8px; font-size: .95rem; }

/* Split sections (certificates, trainers) */
.td-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.td-split.flip { grid-template-columns: .8fr 1.2fr; }
.td-split p { margin-top: 18px; font-size: 1.05rem; }
.td-split .td-h2 { margin-top: 12px; }
.td-points { margin: 28px 0 0; padding: 0; list-style: none; }
.td-points li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--rule); font-size: .97rem; }
.td-points li b { font-weight: 500; color: var(--navy); }
.td-cert { position: relative; padding: 0 64px 70px 0; }
.td-cert > img { display: block; width: 100%; border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 30px 60px -36px rgba(11,29,74,.45); }
.td-phone { width: 250px; padding: 9px; border-radius: 38px; background: var(--navy-ink); }
.td-phone img { display: block; width: 100%; border-radius: 30px; }
.td-cert .td-phone { position: absolute; right: 0; bottom: 0; width: 178px; padding: 7px; border-radius: 28px; }
.td-cert .td-phone img { border-radius: 22px; }
.td-portal { display: flex; justify-content: center; padding: 30px 0; background: var(--paper); border-radius: 8px; }
.td-section.paper .td-portal { background: #fff; }

/* Spec list */
.td-spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.td-spec h3 { padding-bottom: 14px; border-bottom: 2px solid var(--navy); font-size: 1.05rem; }
.td-spec dl { margin: 0; }
.td-spec dt { padding-top: 16px; font-weight: 500; color: var(--navy); }
.td-spec dd { margin: 4px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--rule); font-size: .94rem; }

/* Case study map */
.td-case-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; margin-bottom: 64px; }
.td-case-grid .td-h2 { margin-top: 12px; }
.td-case-copy p + p { margin-top: 16px; }
.td-case-copy p { font-size: 1.05rem; }
.td-key { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 28px; font-size: .9rem; color: #fff; }
.td-key span { display: inline-flex; align-items: center; gap: 10px; }
.td-key b { width: 22px; height: 0; border-top: 2px solid; }
.td-key .core b { border-color: #8fb6ff; }
.td-key .custom b { border-color: #3fd69a; border-top-style: dashed; }
.td-map { position: relative; width: 100%; aspect-ratio: 1100 / 640; }
.td-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.td-map line { stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.td-map line.core { stroke: rgba(143,182,255,.55); }
.td-map line.custom { stroke: rgba(63,214,154,.7); stroke-dasharray: 5 6; animation: td-flow 2.4s linear infinite; }
@keyframes td-flow { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) { .td-map line.custom { animation: none; } }
.td-hub { position: absolute; left: 50%; top: 50%; z-index: 2; width: 25%; transform: translate(-50%, -50%); padding: 22px; background: #fff; border-radius: 6px; text-align: left; }
.td-hub img { display: block; width: 46px; height: auto; }
.td-hub h3 { margin-top: 14px; font-size: 1.2rem; color: var(--navy) !important; }
.td-hub p { margin-top: 6px; font-size: .86rem; color: var(--soft); }
.td-node { position: absolute; z-index: 2; width: 19%; transform: translate(-50%, -50%); padding: 12px 14px; background: var(--navy); border: 1px solid rgba(143,182,255,.45); border-radius: 6px; }
.td-node.custom { border-color: rgba(63,214,154,.75); border-style: dashed; }
.td-node h4 { font-size: .92rem; font-weight: 500; line-height: 1.25; }
.td-node p { margin-top: 3px; font-size: .78rem; line-height: 1.4; color: #a9b8d6; }
.td-node.custom h4::after { content: 'Configured'; display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 3px; background: rgba(63,214,154,.16); color: #5fe3ad; font-size: .66rem; font-weight: 500; vertical-align: 2px; }

/* Offer */
.td-offer { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: #fff; }
.td-offer > div { padding: 44px; }
.td-offer > div + div { background: var(--navy); color: #c8d2e8; }
.td-offer > div + div h3 { color: #fff; }
.td-offer > div + div .td-label { color: #8fb6ff; }
.td-offer h3 { margin-top: 10px; font-size: 1.5rem; line-height: 1.15; }
.td-offer p { margin-top: 12px; }
.td-offer ul { margin: 22px 0 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; }
.td-offer li { break-inside: avoid; padding: 9px 0; border-top: 1px solid var(--rule); font-size: .95rem; color: var(--navy); }
.td-offer > div + div li { border-color: var(--rule-light); color: #fff; }
.td-offer > div:first-child ul { columns: 1; }

/* FAQ: all answers visible, question left, answer right */
.td-faq { margin: 0; }
.td-faq > div { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; padding: 26px 0; border-top: 1px solid var(--rule); }
.td-faq dt { font-weight: 500; color: var(--navy); font-size: 1.05rem; }
.td-faq dd { margin: 0; }

/* Closing */
.td-close { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding: 56px; background: var(--navy); border-radius: 8px; }
.td-close h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.06; letter-spacing: -.03em; max-width: 16ch; }
.td-close p { margin-top: 14px; color: #c8d2e8; max-width: 46ch; }
.td-close-wrap { padding: 0 0 112px; }

/* Shared Waxley Graham footer on this page */
.td-page .site-footer { background: #07111f; color: var(--white, #f7f9fc); font-family: 'Manrope', sans-serif; font-weight: 400; }
.td-page .site-footer h2 { color: #f7f9fc; font-family: 'Manrope', sans-serif; font-weight: 700; letter-spacing: -.05em; }

@media (max-width: 1040px) {
    .td-nav-links { display: none; }
    .td-hero-grid, .td-intro, .td-video-grid, .td-case-grid, .td-split, .td-split.flip { grid-template-columns: 1fr; gap: 32px; }
    .td-panel { grid-template-columns: 1fr; gap: 28px; }
    .td-spec { grid-template-columns: 1fr 1fr; gap: 40px 40px; }
    .td-timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; border-top: 0; padding-top: 0; }
    .td-timeline li { padding-top: 26px; border-top: 2px solid var(--navy); }
    .td-timeline li::before { top: -7px; }
    .td-note { display: none; }
}
@media (max-width: 860px) {
    .td-section { padding: 80px 0; }
    .td-nav-toggle { display: block; }
    .td-nav-by, .td-nav-right .td-btn { display: none; }
    .td-nav-links.open { display: grid; position: absolute; top: 72px; left: 0; right: 0; gap: 0; padding: 6px 24px 18px; background: #fff; border-bottom: 1px solid var(--rule); }
    .td-nav-links.open a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
    .td-compare thead { display: none; }
    .td-compare tr { display: block; padding: 18px 0; border-top: 1px solid var(--rule); }
    .td-compare td { display: block; width: auto !important; padding: 4px 0; border: 0; }
    .td-compare td:nth-child(2)::before { content: 'Before: '; font-weight: 500; }
    .td-compare td:last-child::before { content: 'With TrainerDesk: '; font-weight: 500; color: var(--blue); }
    .td-offer { grid-template-columns: 1fr; }
    .td-faq > div { grid-template-columns: 1fr; gap: 8px; }
    .td-close { grid-template-columns: 1fr; padding: 40px 28px; }
    /* the integration map becomes a list */
    .td-map { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .td-map > svg { display: none; }
    .td-hub, .td-node { position: static; width: auto; transform: none; }
    .td-hub { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    body.td-page { font-size: 16px; }
    .td-hero { padding-top: 56px; }
    .td-hero-shot { margin-top: 48px; }
    .td-spec, .td-timeline, .td-map { grid-template-columns: 1fr; }
    .td-points li { grid-template-columns: 1fr; gap: 2px; }
    .td-offer > div { padding: 30px 24px; }
    .td-offer ul { columns: 1; }
    .td-cert { padding-right: 44px; }
    .td-cert .td-phone { width: 128px; border-radius: 22px; padding: 5px; }
    .td-cert .td-phone img { border-radius: 18px; }
    .td-phone { width: 210px; }
    .td-play { left: 12px; bottom: 12px; }
}
