/* Shared, touch-first tour of real product screens. */
.product-tour { --tour-ink: var(--text-primary, #f4f8ff); --tour-muted: var(--text-secondary, #a7b9d5); --tour-panel: var(--bg-elevated, #0d1b31); color: var(--tour-ink); }
.tour-heading { max-width: 1160px; margin: 0 auto 24px; }
.tour-heading h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.3; letter-spacing: -.035em; margin: 0 0 14px; }
.tour-heading h2 span { color: var(--accent); }
.tour-heading p { color: var(--tour-muted); font-size: 15px; line-height: 1.8; margin: 0; }
.tour-heading .eyebrow { color: var(--accent); font-size: 11px; margin-bottom: 16px; }
.tour-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.tour-tabs { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 4px 2px; }
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tab { flex: 0 0 auto; border: 1px solid var(--border); border-radius: 999px; background: transparent; padding: 10px 16px; color: var(--tour-muted); font: inherit; font-size: 13px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tour-tab[aria-pressed="true"] { color: #fff; border-color: var(--accent); background: var(--accent); }
.tour-arrows { display: flex; gap: 8px; }
.tour-arrow { border: 1px solid var(--border); border-radius: 50%; width: 42px; height: 42px; color: var(--tour-ink); background: transparent; font-size: 19px; cursor: pointer; }
.tour-arrow:disabled { opacity: .3; cursor: default; }
.tour-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 24px; }
.tour-track::-webkit-scrollbar { display: none; }
.tour-panel { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; scroll-snap-align: start; scroll-snap-stop: always; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--tour-panel); }
.tour-copy { padding: 40px 0 40px 56px; position: relative; z-index: 1; }
.tour-number { display: block; color: var(--accent); font-size: 11px; letter-spacing: .18em; margin-bottom: 20px; }
.tour-copy h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.35; margin: 0 0 16px; letter-spacing: -.025em; }
.tour-copy p { max-width: 390px; font-size: 15px; line-height: 1.9; margin: 0; color: var(--tour-muted); }
.tour-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tour-tags span { padding: 6px 11px; border: 1px solid var(--border); border-radius: 8px; color: var(--tour-muted); font-size: 11px; }
.tour-visual { position: relative; display: grid; place-items: center; min-height: 560px; padding: 32px 20px; overflow: hidden; isolation: isolate; }
.tour-visual::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 55%, rgba(40,115,242,.26), transparent 66%); }
.tour-orbit { position: absolute; width: 440px; height: 440px; color: var(--accent); opacity: .32; z-index: -1; animation: tour-orbit 45s linear infinite paused; }
.tour-panel.is-inview .tour-orbit { animation-play-state: running; }
.tour-orbit circle { fill: none; stroke: currentColor; stroke-width: .6; }
.tour-phone { display: block; width: 220px; padding: 6px; position: relative; border: 1px solid #506184; border-radius: 29px; background: linear-gradient(145deg, #364765, #0a1120); box-shadow: 0 24px 48px rgba(0,0,0,.4); cursor: zoom-in; transition: transform .35s; }
.tour-phone img { width: 100%; height: auto; display: block; border-radius: 23px; }
.tour-phone::after { content: '↗'; position: absolute; bottom: 15px; right: 15px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #6a7b98; border-radius: 50%; color: #fff; background: #09162ae6; font-size: 16px; }
.tour-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--tour-muted); font-size: 12px; margin-top: 18px; }
.tour-counter { font-variant-numeric: tabular-nums; color: var(--accent); }
.tour-footer a { color: var(--tour-ink); text-decoration: none; }
.tour-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; padding: 64px 16px 60px; margin: 0; color: #fff; background: #040b16f5; }
.tour-dialog::backdrop { background: #040b16ed; }
.tour-dialog[open] { display: grid; place-items: center; }
.tour-dialog img { max-width: 100%; max-height: calc(100dvh - 135px); width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.tour-dialog-close { position: absolute; right: max(20px, env(safe-area-inset-right)); top: max(16px, env(safe-area-inset-top)); width: 44px; height: 44px; border: 1px solid #60718b; border-radius: 50%; background: #17263a; color: #fff; font-size: 26px; cursor: pointer; }
.tour-dialog-caption { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 20px; right: 20px; text-align: center; font-size: 13px; color: #c3d3eb; }
.tour-tab:focus-visible, .tour-arrow:focus-visible, .tour-phone:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@keyframes tour-orbit { to { transform: rotate(360deg); } }
@media (hover: hover) { .tour-phone:hover { transform: translateY(-5px); } .tour-arrow:hover:not(:disabled) { background: var(--accent); color: #fff; } }
@media (max-width: 700px) {
  .tour-heading h2 { font-size: 29px; }
  .tour-heading p { font-size: 13px; }
  .tour-toolbar { gap: 8px; }
  .tour-tab { padding: 9px 13px; font-size: 12px; }
  .tour-arrows { display: none; }
  .tour-track { gap: 12px; border-radius: 20px; }
  .tour-panel { flex-basis: 94%; grid-template-columns: 1fr; border-radius: 20px; align-content: start; }
  .tour-copy { padding: 24px 24px 0; }
  .tour-number { margin-bottom: 10px; font-size: 10px; }
  .tour-copy h3 { font-size: 25px; margin-bottom: 10px; }
  .tour-copy p { font-size: 13px; line-height: 1.75; min-height: 68px; }
  .tour-tags { margin-top: 14px; gap: 6px; }
  .tour-tags span { font-size: 10px; padding: 4px 8px; }
  .tour-visual { min-height: 0; padding: 25px 16px 28px; }
  .tour-phone { width: min(58vw, 190px); border-radius: 25px; padding: 5px; }
  .tour-phone img { border-radius: 20px; }
  .tour-orbit { width: 340px; height: 340px; }
  .tour-footer { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .tour-orbit { animation: none; } .tour-phone, .tour-tab { transition: none; } }
