/* Shared product-page and screenshot-tour interactions. */
[hidden] { display: none !important; }
.feature-switcher { display: grid; grid-template-columns: minmax(220px, .35fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); margin-block: 48px; }
.feature-switcher__tabs { display: flex; flex-direction: column; gap: 8px; align-self: start; }
.feature-switcher__tabs button { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px solid #565656; border-radius: 8px; background: transparent; color: #eee; font: inherit; text-align: left; cursor: pointer; }
.feature-switcher__tabs button[aria-selected="true"] { color: #111; background: #fe79cb; border-color: #fe79cb; }
.feature-switcher svg, .view-banner svg { width: 24px; height: 24px; flex-shrink: 0; }
.feature-map-panel > h3 { margin: 0 0 24px; font-size: 1.7rem; }
.feature-map-panel ul { padding: 0; margin: 0; list-style: none; }
.feature-map-panel li { border-top: 1px solid #555; padding: 22px 0; }
.feature-map-panel h4 { font-size: 1.1rem; margin: 0 0 8px; color: #fff; }
.feature-map-panel p { margin: 0; color: #c7c7c7; }
.feature-switcher.is-enhanced .feature-map-panel { animation: feature-in .25s ease-out; }
.comparison-price { border-top: 1px solid #aaa79f; padding-top: 14px; margin-top: 20px; font-size: .9rem; line-height: 1.55; }
.comparison-price > strong { display: block; margin-bottom: 5px; }
.editorial-heading { margin-bottom: 64px; }
.editorial-workflow { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 100px); align-items: start; }
.duty-timeline { position: sticky; top: calc(var(--site-header-height, 86px) + 24px); padding: 28px; border: 1px solid #494949; border-radius: 12px; background: #191919; }
.duty-timeline > h3 { font-size: 1.4rem; margin: 0 0 14px; }
.duty-timeline > p:not(.eyebrow) { color: #bfbfbf; font-size: .95rem; }
.duty-timeline ol { padding: 0; margin: 24px 0; list-style: none; }
.duty-timeline li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; position: relative; padding-bottom: 20px; }
.duty-timeline li:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 1px; background: #606060; }
.duty-marker { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #777; border-radius: 50%; font-size: .85rem; }
.duty-timeline li p { font-size: .95rem; margin: 6px 0 0; color: #c8c8c8; }
.is-tracking .duty-timeline li[data-state="next"] { opacity: .45; }
.is-tracking .duty-timeline li[data-state="next"] p, .is-tracking .duty-timeline li[data-state="done"] p { display: none; }
.duty-timeline li[data-state="current"] p { animation: feature-in .4s ease-out; }
.duty-timeline li[data-state="current"] .duty-marker { border-color: #fe79cb; box-shadow: 0 0 0 4px #fe79cb18; }
.duty-timeline li[data-state="done"] .duty-marker { background: #fe79cb; color: #111; border-color: #fe79cb; }
.duty-goal { border-top: 1px solid #555; padding-top: 18px; display: flex; align-items: center; gap: 14px; }
.duty-goal > span { font-size: 1.8rem; line-height: 1; color: #fe79cb; }
.duty-goal[data-complete="true"] { color: #fe79cb; }
.editorial-workflow .long-copy > section { padding-bottom: 36px; }
.screenshot-tour { --tour-accent: #fe79cb; }
.product-das-board .screenshot-tour { --tour-accent: #7abc32; }
.product-sitrep .screenshot-tour { --tour-accent: #47a3ff; }
.product-passport .screenshot-tour { --tour-accent: #b494ff; }
.product-hp-source .screenshot-tour { --tour-accent: #c5a84e; }
.tour-intro { padding-block: clamp(36px, 6vw, 80px); }
.tour-intro h1 { font-size: clamp(3rem, 7vw, 6rem); max-width: 15ch; line-height: 1; margin-block: 20px; }
.tour-intro > p { max-width: 760px; font-size: 1.2rem; }
.tour-intro .tour-hint { color: #bbb; font-size: .95rem; }
.view-banner { position: sticky; top: var(--site-header-height, 86px); z-index: 8; background: #181818f5; backdrop-filter: blur(16px); border-block: 1px solid #555; }
.view-banner__inner { max-width: 1440px; margin: auto; display: flex; align-items: stretch; }
.view-banner__product { margin: 6px; padding: 12px 16px; display: flex; align-self: center; align-items: center; gap: 10px; min-height: 44px; white-space: nowrap; color: #eee; border: 1px solid #666; border-radius: 6px; background: #202020; text-decoration: none; font: 500 .9rem/1.4 "Poppins", sans-serif; }
.view-banner__product:hover { color: #fff; border-color: #999; background: #303030; }
.view-banner__links { display: flex; flex: 1; min-width: 0; overflow-x: auto; gap: 4px; padding: 6px; scrollbar-width: thin; }
.view-banner__links a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; white-space: nowrap; border-radius: 5px; color: #ddd; text-decoration: none; font-size: .9rem; }
.view-banner__links a[aria-current="location"] { color: #111; background: var(--tour-accent); }
.screenshot-view { padding-block: clamp(36px, 6vw, 80px); scroll-margin-top: calc(var(--site-header-height, 86px) + var(--view-banner-height, 75px) + 16px); border-bottom: 1px solid #494949; background: #111; }
.screenshot-view:nth-of-type(odd) { background: #181818; }
.screenshot-view__heading { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 30px; }
.screenshot-view h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.08; margin: 0; max-width: 24ch; }
.screenshot-view__heading > p { margin: 0; color: #c8c8c8; }
.annotated-shot { width: 100%; max-width: var(--shot-max-width, 1120px); margin: 0 0 26px; }
.shot-crop { position: relative; overflow: hidden; border-radius: 10px; }
.shot-crop > img { position: absolute; inset: 0 auto auto 0; display: block; height: auto; max-width: none; }
.annotated-shot__image { position: relative; border: 1px solid #555; border-radius: 10px; background: #13151a; isolation: isolate; }
.annotated-shot__image > img { display: block; width: 100%; height: auto; border-radius: 10px; }
.annotated-shot figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 0; font-size: .85rem; color: #bbb; }
.annotated-shot figcaption a { color: inherit; }
.shot-hotspot { position: absolute; left: var(--spot-x); top: var(--spot-y); transform: translate(-50%, -50%); z-index: 1; }
.shot-hotspot:has([aria-expanded="true"]) { z-index: 4; }
.shot-hotspot > button { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid #111; border-radius: 50%; background: var(--tour-accent); color: #111; font-size: 24px; font-weight: bold; cursor: pointer; position: relative; }
.shot-hotspot > button::before { content: ''; position: absolute; inset: -6px; border: 2px solid var(--tour-accent); border-radius: 50%; pointer-events: none; opacity: 0; }
.shot-hotspot > button:is(:hover, :focus-visible)::before { animation: spot-pulse 2.4s ease-out 2; }
.hotspot-note { position: absolute; top: 100%; left: 0; width: 270px; max-width: calc(100vw - 48px); padding: 18px; border: 1px solid #777; border-radius: 9px; background: #f6f5f1; color: #111; box-shadow: 0 10px 35px #0008; font-size: .95rem; line-height: 1.45; }
.hotspot-note p { margin: 8px 0 0; }
.shot-hotspot--left .hotspot-note { left: auto; right: 0; }
.shot-hotspot--above .hotspot-note { top: auto; bottom: 100%; }
.screenshot-feature-notes { font-size: .95rem; color: #ddd; }
.screenshot-feature-notes summary { cursor: pointer; width: fit-content; padding: 10px 0; }
.tour-ending { padding-block: 60px; }
.tour-ending h2 { font-size: clamp(2rem, 4vw, 3rem); }
:is(.feature-switcher, .screenshot-tour) :is(button, a, summary):focus-visible { outline: 3px solid #fe79cb; outline-offset: 4px; }
@keyframes spot-pulse { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.65); opacity: 0; } }
@keyframes feature-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .feature-switcher, .editorial-workflow, .screenshot-view__heading { grid-template-columns: 1fr; gap: 24px; }
  .feature-switcher__tabs { flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .feature-switcher__tabs button { min-width: 180px; }
  .duty-timeline { top: calc(var(--site-header-height, 100px) + 8px); z-index: 4; padding: 16px; }
  .is-tracking .duty-timeline > :is(h3, p:not(.eyebrow)), .is-tracking .duty-timeline li:not([data-state="current"]) div, .is-tracking .duty-timeline li p { display: none; }
  .duty-timeline ol { display: flex; margin: 12px 0; gap: 8px; align-items: start; }
  .duty-timeline li { display: flex; gap: 8px; padding: 0; align-items: center; }
  .duty-timeline li::before { display: none; }
  .duty-timeline li strong { font-size: .85rem; }
  .duty-marker { width: 25px; height: 25px; flex-shrink: 0; }
  .duty-goal { padding-top: 8px; font-size: .85rem; }
  .view-banner__product { padding: 10px; }
  .view-banner__product-name { display: none; }
  .view-banner__links a { padding: 10px; }
  .view-banner svg { width: 20px; height: 20px; }
  .shot-hotspot > button { width: 36px; height: 36px; font-size: 20px; }
  .hotspot-note { width: 220px; font-size: .85rem; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .view-banner, .shot-hotspot, .feature-switcher__tabs { display: none; }
  .feature-map-panel[hidden] { display: block !important; }
  .duty-timeline { position: static; }
  .screenshot-feature-notes > * { display: block; }
}

.annotated-shot.is-in-view .shot-hotspot > button::before { animation: spot-pulse 2.4s ease-out 2; }
@media (prefers-reduced-motion: reduce) { .annotated-shot.is-in-view .shot-hotspot > button::before { animation: none; } }
/* Compact, readable cards; dark surfaces sit into the page. */
body.product-work-pane { --card-accent: #fe79cb; }
body.product-das-board { --card-accent: #7abc32; }
body.product-sitrep { --card-accent: #47a3ff; }
body.product-passport { --card-accent: #b494ff; }
body.product-hp-source { --card-accent: #c5a84e; }
body[class*="product-"] .product-page :is(.impact-list, .time-grid, .security-grid) {
  gap: 12px;
  border: 0;
  background: transparent;
}
body[class*="product-"] .product-page :is(.impact-list > li, .time-card) {
  min-height: 0;
  padding: 18px 20px;
  border: 1px solid #b7b3aa;
  border-radius: 6px;
  color: #171717;
  background: #f6f5f1;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: none;
  transform: none !important;
}
body[class*="product-"] .product-page .impact-list > li {
  display: flex;
  align-items: center;
  font-weight: 600;
}
body[class*="product-"] .product-page .time-card h3 { margin: 0 0 16px; font-size: 1.12rem; line-height: 1.35; color: #111; }
body[class*="product-"] .product-page .time-card dl { margin: 0; }
body[class*="product-"] .product-page .time-card dl > div + div { margin-top: 14px; padding-top: 14px; border-color: #c5c1b8; }
body[class*="product-"] .product-page .time-card dt { color: #64264d; font-size: .8rem; font-weight: 600; letter-spacing: .025em; }
body[class*="product-"] .product-page .time-card dd { color: #30302e; font-size: 1rem; line-height: 1.55; margin-top: 5px; }
body[class*="product-"] .product-page :is(.security-grid > article, .risk-note, .duty-timeline, .feature-map-panel li) {
  padding: 20px 22px;
  border: 1px solid #383838;
  border-bottom-color: #4b4b4b;
  border-radius: 6px;
  background: #090909;
  color: #f6f5f1;
  box-shadow: inset 0 3px 8px #000b, 0 1px 0 #ffffff08;
  transform: none !important;
}
body[class*="product-"] .product-page :is(.security-grid > article, .risk-note, .duty-timeline, .feature-map-panel li):is(:hover, :focus-within) {
  border-color: color-mix(in srgb, var(--card-accent) 72%, #383838);
  background: color-mix(in srgb, var(--card-accent) 7%, #151515);
  box-shadow: inset 0 3px 8px #000b, inset 0 0 18px color-mix(in srgb, var(--card-accent) 5%, transparent), 0 1px 0 #ffffff08;
  transform: none !important;
}
body[class*="product-"] .product-page :is(.security-grid > article, .risk-note, .feature-map-panel li) h3 { color: #f6f5f1; font-size: 1.15rem; line-height: 1.4; margin: 0 0 10px; }
body[class*="product-"] .product-page :is(.security-grid > article, .risk-note, .feature-map-panel li) p { color: #deddd9; font-size: 1rem; line-height: 1.6; }
body[class*="product-"] .product-page .feature-map-panel li + li { margin-top: 10px; }
@media (max-width: 760px) {
  body[class*="product-"] .product-page :is(.impact-list > li, .time-card, .security-grid > article, .risk-note, .feature-map-panel li) { padding: 16px; }
  body[class*="product-"] .product-page .duty-timeline { padding: 14px 16px; }
}

/* Colour belongs to the whole surface: never a decorative left stripe. */
body[class*="product-"] .product-page :is(.security-grid > article, .risk-note, .duty-timeline, .feature-map-panel li) {
  --panel-interaction-accent: var(--card-accent);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
body[class*="product-"] .product-page :is(.boundary-note, .long-copy blockquote) {
  border: 0;
  border-radius: 6px;
  padding: 20px 24px;
  background: color-mix(in srgb, var(--card-accent) 5%, #151515);
}
body[class*="product-"] .product-page .light-section .boundary-note {
  background: #cfccc5;
}
@media (prefers-reduced-motion: reduce) {
  body[class*="product-"] .product-page :is(.security-grid > article, .risk-note, .duty-timeline, .feature-map-panel li) { transition: none; }
}

/* Task-based tours with step-by-step screenshot groups. */
.workflow-screen-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.workflow-screen-tabs button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid #555; border-radius: 7px; background: #101010; color: #deddd9; font: 500 .9rem/1.4 "Poppins", sans-serif; text-align: left; cursor: pointer; }
.workflow-screen-tabs button > span { color: #c5a84e; font-size: .8rem; }
.workflow-screen-tabs button[aria-selected="true"] { background: #29261e; border-color: #c5a84e; color: #fff3d0; }
.workflow-screen { position: relative; }
.workflow-screen__description { color: #ccc; margin: 0 0 18px; font-size: .98rem; }
.workflow-screen__description strong { color: #eee; }
.workflow-screen[role="tabpanel"]:focus-visible { outline: 2px solid #c5a84e; outline-offset: 6px; }
.workflow-features { margin-top: 24px; padding-top: 20px; border-top: 1px solid #444; }
.workflow-features h3 { font-size: .85rem; color: #d4d0c5; margin: 0 0 12px; }
.workflow-features ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 0; }
.workflow-features li { color: #ddd; font-size: .95rem; }
.workflow-features li::before { content: '✓'; color: #c5a84e; margin-right: 8px; }
.highlight-toggle { padding: 8px 12px; border: 1px solid #666; border-radius: 6px; color: #deddd9; background: transparent; font: inherit; font-size: .85rem; cursor: pointer; }
.screenshot-tour .shot-hotspot > button { width: 44px; height: 44px; border: 0; background: transparent; box-shadow: none; }
.screenshot-tour .shot-hotspot > button > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgb(231 202 116 / 78%); background: rgb(197 168 78 / 34%); color: #fff0be; font-size: 18px; line-height: 1; box-shadow: 0 1px 5px #0007; text-shadow: 0 1px 3px #000; }
.screenshot-tour .shot-hotspot > button:is(:hover, :focus-visible, [aria-expanded="true"]) > span { background: rgb(197 168 78 / 62%); }
.screenshot-tour .shot-hotspot > button::before,
.screenshot-tour .shot-hotspot > button::after { content: ''; position: absolute; inset: 7px; border: 1.5px solid rgb(231 202 116 / 85%); border-radius: 50%; pointer-events: none; opacity: 0; animation: none; }
.screenshot-tour .annotated-shot.is-in-view .shot-hotspot > button::before { animation: gold-ping 2.8s ease-out infinite; animation-delay: var(--ping-delay, 0s); }
.screenshot-tour .annotated-shot.is-in-view .shot-hotspot > button::after { animation: gold-ping 2.8s ease-out infinite; animation-delay: calc(var(--ping-delay, 0s) + .38s); }
@keyframes gold-ping { 0% { transform: scale(.8); opacity: .9; } 45%, 100% { transform: scale(2.2); opacity: 0; } }
.screenshot-tour.highlights-paused .annotated-shot.is-in-view .shot-hotspot > button::before,
.screenshot-tour.highlights-paused .annotated-shot.is-in-view .shot-hotspot > button::after { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .screenshot-tour .annotated-shot.is-in-view .shot-hotspot > button::before,
  .screenshot-tour .annotated-shot.is-in-view .shot-hotspot > button::after { animation: none; }
}
@media (max-width: 760px) {
  .workflow-screen-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .workflow-screen-tabs button { min-width: 170px; flex-shrink: 0; padding: 10px 12px; }
}
@media print {
  .workflow-screen-tabs, .highlight-toggle { display: none; }
  .workflow-screen[hidden] { display: block !important; }
}
