/* Product tour (/tour/). Builds on home.css (colours, .eyebrow, .btn, .text-link, nav). */
.tour-page { max-width: 1840px; margin: 0 auto; padding: 0 44px; }
.tour-page [id] { scroll-margin-top: 150px; }
.tour-page h1 { font-size: clamp(38px, 3.6vw, 66px); line-height: 1.05; font-weight: 800; letter-spacing: -.04em; }
.tour-page h2 { font-size: clamp(30px, 2.6vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.tour-page h3 { font-size: clamp(23px, 1.7vw, 31px); line-height: 1.18; letter-spacing: -.02em; }
.tour-page p { margin: 12px 0 0; }

/* hero */
.tour-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding: 44px 0 36px; }
.tour-hero .lead { font-size: clamp(18px, 1.3vw, 23px); color: var(--ink); line-height: 1.55; max-width: 820px; margin-top: 22px; }
.hero-visual { position: relative; padding: 0 0 64px 34px; }
.hero-visual .shot-frame { box-shadow: 0 30px 70px #0f22382e; }
.hero-card { position: absolute; display: block; height: auto; border-radius: 10px; border: 1px solid #e3ddd1; background: #fffdf9; box-shadow: 0 22px 48px #0f22382b, 0 2px 6px #0f223814; -webkit-user-drag: none; user-select: none; }
.hero-card-a { width: 64%; right: -18px; top: 30%; }
.hero-card-b { width: 76%; left: 0; bottom: 0; }
.tour-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 36px; }
.tour-points li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; color: var(--ink); }
.tour-points li::before { content: ""; width: 14px; height: 14px; flex: none; image-rendering: pixelated;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23116770' d='M0 0h7v7H0z'/%3E%3Cpath fill='%23fff' d='M1 3h1v1H1zM2 4h1v1H2zM3 3h1v1H3zM4 2h1v1H4zM5 1h1v1H5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.tour-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }

/* chapter bar */
.tour-chapters { position: sticky; top: 76px; z-index: 15; margin: 0 -44px; padding: 0 44px; background: #fdfcf8f2; backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.tour-chapters ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tour-chapters a { display: flex; align-items: center; gap: 10px; padding: 16px 14px 14px; white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; }
.tour-chapters a span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #efece4; color: var(--ink); font-size: 12px; font-weight: 800; }
.tour-chapters a:hover { color: var(--ink); }
.tour-chapters a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--teal); }
.tour-chapters a[aria-current="true"] span { background: var(--teal); color: #fff; }

/* chapters */
.chapter { padding: 64px 0 24px; border-bottom: 1px solid var(--line); }
.chapter-head { display: block; max-width: 980px; margin-bottom: 12px; }
.chapter-head .num { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--teal); text-transform: uppercase; }
.chapter-head p:not(.num) { font-size: clamp(17px, 1.2vw, 21px); color: var(--muted); max-width: 820px; line-height: 1.55; }

/* story: steps on the left, the console frame on the right */
.story { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.3fr); gap: 56px; }
.steps { list-style: none; margin: 0; padding: 0; }
.tstep { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 0; }
.tstep-k { margin: 0 !important; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.tstep h3 { margin-top: 10px; }
.tstep-copy > p:not(.tstep-k) { font-size: clamp(17px, 1.15vw, 20px); color: var(--muted); line-height: 1.6; max-width: 560px; }
.tour-badge { display: inline-block; margin-left: 10px; padding: 3px 9px; border-radius: 6px; background: var(--navy); color: var(--sand); font-size: 11px; letter-spacing: .08em; vertical-align: 2px; }
.stage { display: none; }

.shot { margin: 22px 0 0; }
.shot-frame { border-radius: 14px; background: #14293d; padding: 0 10px 10px; box-shadow: 0 22px 50px #0f223829; }
.shot-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 6px; }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ffffff2e; }
.shot-bar b { margin: 0 auto; padding: 4px 16px; border-radius: 7px; background: #ffffff14; color: #c9d4de; font-size: 13px; font-weight: 500; }
.shot-img { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 10; background: #f4f1ea; }
.shot-img img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.shot-img.two img, .shot-img.two .spot { transition: opacity .6s; }
.shot-img.two img.f2 { position: absolute; inset: 0; }
.shot-img.two .f2 { opacity: 0; }
.shot-img.two.show-2 .f2 { opacity: 1; }
.shot-img.two.show-2 .spot.f1 { opacity: 0; }
/* the highlight: an outline only, the screenshot keeps its own colours */
.spot { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 9px; border: 3px solid var(--teal-bright); box-shadow: 0 0 0 4px #1b9e9626; pointer-events: none; }
.spot::after { content: ""; position: absolute; inset: -3px; border-radius: 11px; border: 2px solid var(--teal-bright); animation: tour-pulse 2s ease-out infinite; }
@keyframes tour-pulse { from { inset: -3px; opacity: .8; } to { inset: -12px; opacity: 0; } }

@media (min-width: 1101px) {
  .story.is-live .stage { display: block; position: sticky; top: 156px; align-self: start; margin: 28px 0 40px; }
  .story.is-live .stage .shot { margin: 0; position: absolute; inset: 0 0 auto 0; opacity: 0; transition: opacity .45s; }
  .story.is-live .stage .shot.is-active { position: relative; opacity: 1; }
  .story.is-live .tstep { opacity: .38; transition: opacity .3s; }
  .story.is-live .tstep.is-active { opacity: 1; }
}

/* how SOVA fits: a line diagram */
.arch { margin: 34px 0 0; }
.arch svg { display: block; width: 100%; height: auto; font-family: inherit; }
.arch-zone { fill: none; stroke: #c9c0b0; stroke-width: 1.5; stroke-dasharray: 6 6; }
.arch-k { font-size: 13px; font-weight: 800; letter-spacing: .14em; fill: var(--teal); }
.arch-t { font-size: 18px; font-weight: 700; fill: var(--ink); }
.arch-s { font-size: 14px; fill: var(--muted); }
.arch-line { fill: none; stroke: var(--teal); stroke-width: 2; }
.arch-link { fill: none; stroke: var(--teal-bright); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.arch-box rect:first-child { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.arch-unit { fill: var(--navy); }
.arch-cloud rect { fill: var(--navy); }
.arch-cloud .arch-k { fill: #8fe0d4; }
.arch-cloud .arch-t { fill: #fff; }
.arch-cloud .arch-s { fill: #b8c8d4; }
.arch figcaption { margin-top: 14px; color: var(--muted); font-size: 16px; max-width: 900px; }

/* no hidden costs: the visitor's own receipt */
.deal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 64px; align-items: start; margin-top: 28px; }
.calc { display: grid; gap: 26px; }
.calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc legend { font-weight: 700; color: var(--ink); margin-bottom: 10px; font-size: 16px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: #efece4; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 10px 18px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--muted); }
.seg input:checked + label { background: var(--navy); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; }
.steppers { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 18px; }
.stepper label { display: block; font-weight: 700; color: var(--ink); font-size: 15px; margin-bottom: 8px; }
.stepper div { display: flex; align-items: center; border-bottom: 2px solid var(--ink); }
.stepper button { width: 38px; height: 42px; border: 0; background: transparent; font: inherit; font-size: 22px; cursor: pointer; color: var(--teal); }
.stepper button:hover { color: var(--ink); }
.stepper input { width: 100%; min-width: 0; height: 42px; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 800; font-size: 22px; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc-note { margin: 0 !important; font-size: 15px; color: var(--muted); }

.rcpt { position: relative; padding: 30px 30px 26px; background: #fff; border: 1px solid #e6e0d3; border-radius: 6px; box-shadow: 0 24px 50px #0f22381c; font-variant-numeric: tabular-nums; }
.rcpt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 8px 0, #fff 7px, transparent 7.5px) 0 0 / 16px 10px repeat-x; }
.rcpt-brand { margin: 0 !important; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rcpt-title { margin: 6px 0 0 !important; font-size: 24px; font-weight: 800; color: var(--ink); }
.rcpt-sub { margin: 2px 0 14px !important; color: var(--muted); font-size: 15px; }
.rcpt ul { list-style: none; margin: 0; padding: 0; border-top: 1px dashed #d9d2c3; }
.rcpt li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed #d9d2c3; font-size: 16px; }
.rcpt li b { color: var(--ink); white-space: nowrap; }
.rcpt li b.zero { color: var(--teal-deep); }
.rcpt-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 0 !important; font-weight: 800; color: var(--ink); font-size: 18px; }
.rcpt-total b { font-size: 34px; letter-spacing: -.02em; }
.rcpt-foot { margin: 4px 0 0 !important; text-align: right; font-size: 13px; color: var(--muted); }
.rcpt-stamp { position: absolute; top: 22px; right: 20px; transform: rotate(8deg); padding: 6px 10px; border: 2px solid var(--teal); border-radius: 8px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: center; line-height: 1.2; }

.promises { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 48px; }
.promises li { padding-top: 18px; border-top: 2px solid var(--ink); }
.promises h3 { font-size: 20px; letter-spacing: -.01em; }
.promises p { color: var(--muted); font-size: 16px; line-height: 1.6; }

/* try it */
.try { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.try p:not(.eyebrow) { font-size: clamp(17px, 1.2vw, 21px); line-height: 1.55; color: var(--muted); max-width: 760px; }

/* questions */
.tour-faq { padding: 48px 0 64px; max-width: 1100px; }
.tour-faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.tour-faq summary { cursor: pointer; font-weight: 700; font-size: 18px; color: var(--ink); }
.tour-faq details p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 900px; }

@media (max-width: 1100px) {
  .tour-hero, .story, .deal { grid-template-columns: 1fr; }
  .hero-visual { padding-left: 0; }
  .arch { overflow-x: auto; }
  .arch svg { min-width: 760px; }
  .tstep { min-height: 0; padding: 26px 0; }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tour-page { padding: 0 18px; }
  .tour-chapters { margin: 0 -18px; padding: 0 12px; }
  .tour-chapters a { padding: 13px 8px 11px; font-size: 14px; }
  .chapter { padding-top: 44px; }
  .tour-points { grid-template-columns: 1fr; }
  .steppers, .promises { grid-template-columns: 1fr; }
  .shot-frame { padding: 0 6px 6px; }
  .shot-bar { height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .spot::after { animation: none; opacity: 0; }
  .shot-img.two img, .shot-img.two .spot, .story.is-live .stage .shot, .story.is-live .tstep { transition: none; }
}
