/* Authored product walkthrough. The published landing theme stays unchanged. */
.product-tour { --tour-accent: #a5c9ac; --tour-line: #ffffff12; }
.product-tour .tour-wrap { max-width: 1248px; margin: auto; padding: 96px 24px; }
.tour-intro { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.tour-intro h2 { margin: 16px 0; font-size: clamp(28px, 3vw, 38px); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
.tour-intro > p:last-child { max-width: 560px; margin: auto; color: var(--muted-foreground); line-height: 1.75; font-size: 15px; }
.tour-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.tour-step { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 16px; border: 1px solid transparent; border-radius: 12px; text-align: left; color: var(--muted-foreground); background: transparent; cursor: pointer; transition: background .18s, border-color .18s, color .18s; }
.tour-step:hover { background: #ffffff04; color: var(--foreground); }
.tour-step[aria-selected="true"] { color: var(--foreground); border-color: #a5c9ac40; background: #a5c9ac09; }
.tour-step-number { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid var(--tour-line); border-radius: 50%; font: 11px var(--font-mono); color: var(--muted-foreground); }
.tour-step[aria-selected="true"] .tour-step-number { color: var(--tour-accent); border-color: #a5c9ac55; background: #a5c9ac10; }
.tour-step strong { display: block; font-size: 14px; font-weight: 500; }
.tour-step small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted-foreground); }
.tour-shell { overflow: hidden; border: 1px solid #ffffff16; border-radius: 18px; background: linear-gradient(150deg, #202324, #111314); box-shadow: 0 24px 80px #0003; }
.tour-toolbar { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--tour-line); }
.tour-address { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted-foreground); font: 10px var(--font-mono); }
.tour-dots { display: flex; gap: 5px; padding-right: 10px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: #ffffff25; }
.tour-demo-label { color: var(--tour-accent); white-space: nowrap; font: 10px var(--font-mono); }
.tour-panel[hidden], .tour-detail[hidden] { display: none; }
.tour-figure { margin: 0; background: #0b0c0e; }
.tour-image-frame { position: relative; }
.tour-image-frame > img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; }
.tour-hotspot { position: absolute; border: 1px solid transparent; border-radius: 5px; background: transparent; cursor: pointer; }
.tour-hotspot:hover, .tour-hotspot:focus-visible { border-color: #a5c9ac; box-shadow: 0 0 0 4px #a5c9ac25; }
.tour-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--tour-line); color: var(--muted-foreground); font-size: 11px; }
.tour-expand { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; border: none; color: var(--tour-accent); background: none; cursor: pointer; font: inherit; padding: 4px 0; }
.tour-expand svg { width: 13px; height: 13px; }
.tour-story { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); gap: 52px; padding: 32px; border-top: 1px solid var(--tour-line); }
.tour-kicker { margin: 0 0 10px; color: var(--tour-accent); font: 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.tour-story h3 { margin: 0 0 12px; font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; }
.tour-story p { color: var(--muted-foreground); font-size: 13px; line-height: 1.75; }
.tour-story p.tour-kicker { color: var(--tour-accent); font-size: 10px; }
.tour-inspector { min-width: 0; }
.tour-control-label { display: block; margin: 0 0 10px; color: var(--muted-foreground); font: 10px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.tour-segments { display: inline-flex; max-width: 100%; gap: 4px; padding: 4px; margin-bottom: 14px; border: 1px solid var(--tour-line); border-radius: 9px; background: #0b0d0d80; }
.tour-segments button { min-height: 34px; padding: 7px 12px; border: 0; border-radius: 5px; color: var(--muted-foreground); background: transparent; cursor: pointer; font-size: 12px; white-space: nowrap; }
.tour-segments button[aria-pressed="true"] { color: var(--foreground); background: #ffffff0e; }
.tour-readout { min-height: 112px; }
.tour-readout strong { display: block; margin: 0 0 5px; color: var(--foreground); font: 25px var(--font-mono); letter-spacing: -.05em; }
.tour-readout p { margin: 0; }
.tour-event-list { display: grid; gap: 5px; margin-bottom: 12px; }
.tour-event { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--tour-line); border-radius: 7px; background: #0b0d0d50; color: var(--muted-foreground); text-align: left; cursor: pointer; font-size: 11px; }
.tour-event > span:first-child { color: var(--tour-accent); font: 10px var(--font-mono); }
.tour-event code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 11px var(--font-mono); }
.tour-event > small { margin-left: auto; white-space: nowrap; font-size: 10px; }
.tour-event[aria-pressed="true"] { border-color: #a5c9ac55; background: #a5c9ac08; color: var(--foreground); }
.tour-code { margin: 0; padding: 14px; border: 1px solid var(--tour-line); border-radius: 8px; background: #090b0d; color: #c1d4c8; white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.7 var(--font-mono); }
.tour-guide-summary { margin: 0 0 16px; padding-left: 18px; color: var(--muted-foreground); font-size: 12px; line-height: 1.9; }
.tour-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tour-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 10px 15px; border: 1px solid #ffffff20; border-radius: 8px; background: #ffffff05; color: var(--foreground); font-size: 12px; font-weight: 500; text-decoration: none; cursor: pointer; }
.tour-button:hover { border-color: #a5c9ac70; background: #a5c9ac08; }
.tour-button-primary { border: 0; color: white; background: linear-gradient(135deg, #5b8cff, #8b5cf6); }
.tour-button-primary:hover { background: linear-gradient(135deg, #5b8cff, #8b5cf6); filter: brightness(1.08); }
.tour-copy-status { min-height: 20px; margin-top: 10px !important; font-size: 11px !important; }
.tour-comparison { display: grid; gap: 13px; }
.tour-bar-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: var(--muted-foreground); font-size: 11px; }
.tour-bar-label strong { color: var(--foreground); font: 11px var(--font-mono); }
.tour-bar-track { height: 7px; overflow: hidden; border-radius: 4px; background: #ffffff08; }
.tour-bar-fill { height: 100%; border-radius: inherit; background: #ffffff30; transition: width .25s; }
.tour-bar-fill-after { background: var(--tour-accent); }
.tour-change { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; }
.tour-change strong { color: var(--tour-accent); font: 27px var(--font-mono); letter-spacing: -.06em; }
.tour-change span { color: var(--muted-foreground); font-size: 12px; }
.tour-sample-note { margin-top: 9px !important; font-size: 10px !important; }
.tour-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; color: var(--muted-foreground); font-size: 12px; }
.tour-next { border: none; background: transparent; color: var(--tour-accent); font: inherit; cursor: pointer; padding: 10px 0 10px 10px; }
.tour-next:hover { color: var(--foreground); }
.tour-dialog { max-width: min(1240px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); width: 100%; margin: auto; padding: 0; border: 1px solid #ffffff25; border-radius: 16px; background: #101315; color: var(--foreground); box-shadow: 0 30px 100px #0009; }
.tour-dialog::backdrop { background: #050709d9; backdrop-filter: blur(8px); }
.tour-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-bottom: 1px solid #ffffff15; }
.tour-dialog-head h2 { margin: 0; font-size: 14px; font-weight: 500; }
.tour-dialog-close { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border: 1px solid #ffffff20; border-radius: 7px; background: transparent; color: #d9dedc; cursor: pointer; font-size: 20px; }
.tour-image-scroll { max-height: calc(100dvh - 125px); overflow: auto; overscroll-behavior: contain; }
.tour-image-scroll img { display: block; width: 100%; min-width: 960px; height: auto; }
.tour-guide-dialog { max-width: min(720px, calc(100vw - 32px)); }
.tour-guide-body { padding: 24px; overflow: auto; max-height: calc(100dvh - 170px); }
.tour-guide-body > p { color: var(--muted-foreground); font-size: 13px; line-height: 1.7; margin-bottom: 20px; }
.tour-guide-body pre { margin-bottom: 20px; font-size: 12px; line-height: 1.85; }
.tour-noscript { margin-top: 20px; color: var(--muted-foreground); font-size: 13px; }
.product-tour :is(button, a, summary):focus-visible, .tour-dialog :is(button, a):focus-visible { outline: 2px solid #a5c9ac; outline-offset: 4px; }
.landing-header-actions { display: flex; align-items: center; gap: 16px; }
.landing-mobile-login, .landing-access-short { display: none; }
@media (max-width: 900px) {
  .tour-step { gap: 8px; padding: 12px 8px; }
  .tour-step small { display: none; }
  .tour-step strong { font-size: 12px; }
  .tour-story { gap: 28px; padding: 26px; }
}
@media (max-width: 767px) {
  header > div { padding-inline: 16px !important; gap: 12px; }
  .landing-mobile-login { display: inline-flex; color: var(--muted-foreground); font-size: 13px; }
  .landing-access-long { display: none; }
  .landing-access-short { display: inline; }
  .landing-header-actions { gap: 12px; }
  .product-tour .tour-wrap { padding: 72px 16px; }
  .tour-intro { margin-bottom: 28px; }
  .tour-intro > p:last-child { font-size: 14px; }
  .tour-steps { gap: 5px; }
  .tour-step { min-height: 72px; justify-content: center; flex-direction: column; gap: 7px; padding: 10px 3px; text-align: center; }
  .tour-step-number { width: 23px; height: 23px; font-size: 9px; }
  .tour-step strong { font-size: 11px; }
  .tour-shell { border-radius: 12px; }
  .tour-toolbar { min-height: 42px; padding: 12px; gap: 8px; }
  .tour-address { font-size: 9px; }
  .tour-dots { display: none; }
  .tour-demo-label { font-size: 9px; }
  .tour-caption { padding: 10px 12px; gap: 8px; font-size: 10px; }
  .tour-hotspot { display: none; }
  .tour-story { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; gap: 24px; }
  .tour-story h3 { font-size: 21px; }
  .tour-readout { min-height: 92px; }
  .tour-bottom { align-items: flex-start; font-size: 11px; }
  .tour-bottom > span { max-width: 190px; line-height: 1.6; }
  .tour-next { white-space: nowrap; padding-top: 2px; }
  .tour-dialog { max-width: calc(100vw - 20px); max-height: calc(100dvh - 24px); }
  .tour-dialog-head { padding: 12px 16px; }
  .tour-guide-body { padding: 18px; }
}
@media (max-width: 350px) {
  header > div > a > span { display: none; }
  .tour-address { font-size: 8px; }
  .tour-segments button { padding-inline: 9px; }
  .tour-caption > span { max-width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .fade-up { animation: none !important; }
  .product-tour *, .tour-dialog * { transition: none !important; }
}
