/* The homepage product tour. All selectors stay inside the new preview. */
.app-tour { background: #080909; color: #fafaf7; padding: 80px 0 64px; }
.tour-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 34px; }
.tour-heading h2 { font-size: clamp(36px, 5vw, 58px); line-height: 1.02; margin-top: 18px; font-weight: 800; }
.tour-heading > p { color: #b4b6b7; font-size: 16px; line-height: 1.75; padding-bottom: 3px; }
.tour-shell { border: 1px solid #ffffff2e; border-radius: 24px; background: #101213; overflow: hidden; }
.tour-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid #ffffff24; }
.tour-tabs button { position: relative; display: flex; align-items: center; gap: 12px; background: #101213; border: 0; border-right: 1px solid #ffffff24; color: #a5aaad; padding: 23px 28px; font: 600 19px 'Bricolage Grotesque', sans-serif; cursor: pointer; }
.tour-tabs button:last-child { border-right: 0; }
.tour-tabs button > span { font: 500 12px 'IBM Plex Mono', monospace; opacity: .85; }
.tour-tabs svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.5; fill: none; margin-left: auto; }
.tour-tabs button[aria-selected="true"] { background: #ffeb3b; color: #090a0a; }
.tour-tabs button:hover:not([aria-selected="true"]) { background: #1b1e1f; color: #fafaf7; }
.tour-tabs button:focus-visible { outline: 3px solid #fafaf7; outline-offset: -6px; border-radius: 0; }
.tour-tabs button[aria-selected="true"]:focus-visible { outline-color: #090a0a; }
.tour-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 615px; }
.tour-panel[hidden] { display: none; }
.tour-panel:focus-visible { outline: 2px solid #ffeb3b; outline-offset: -4px; }
.tour-story { padding: 48px 20px 48px 48px; position: relative; z-index: 1; }
.tour-kicker { color: #ffeb3b; font: 500 11px 'IBM Plex Mono', monospace; letter-spacing: .11em; text-transform: uppercase; }
.tour-story h3 { font-size: clamp(34px, 4.2vw, 48px); font-weight: 800; line-height: 1.06; margin-top: 18px; text-wrap: initial; }
.tour-story > p { font-size: 16px; line-height: 1.75; color: #b8bbbd; max-width: 34ch; margin-top: 23px; }
.tour-facts { margin: 28px 0 30px; display: grid; grid-template-columns: 1fr; gap: 18px; }
.tour-facts > div { border-left: 2px solid #ffeb3b80; padding-left: 14px; }
.tour-facts dt { color: #a8acae; font-size: 12px; line-height: 1.5; }
.tour-facts dd { margin: 4px 0 0; color: #fafaf7; font-size: 15px; line-height: 1.5; font-weight: 600; }
.tour-link { display: inline-flex; align-items: center; gap: 24px; text-decoration: none; font-size: 14px; font-weight: 600; color: #ffeb3b; min-height: 44px; }
.tour-link:hover { text-decoration: underline; }
.tour-visual { position: relative; padding: 32px 30px 25px; min-width: 0; display: flex; align-items: center; flex-direction: column; justify-content: center; align-self: stretch; isolation: isolate; overflow: hidden; }
.tour-orbit { position: absolute; z-index: -1; inset: 0; opacity: .85; background: radial-gradient(ellipse at 50% 47%, #ffeb3b21, transparent 64%); }
.tour-orbit::before, .tour-orbit::after { content: ''; position: absolute; width: 360px; height: 500px; left: 50%; top: 50%; border: 1px solid #ffeb3b14; border-radius: 50%; transform: translate(-50%,-50%) rotate(-24deg); }
.tour-orbit::after { width: 490px; height: 625px; }
.tour-device { position: relative; width: 242px; max-width: 100%; display: block; padding: 5px; border: 1px solid #656868; border-radius: 35px; background: #070808; box-shadow: 0 32px 55px -17px #000000dc, inset 0 0 0 2px #222525; cursor: zoom-in; }
.tour-device img { display: block; width: 100%; height: auto; border-radius: 29px; }
.tour-components { width: 310px; padding: 0; border-radius: 20px; box-shadow: 0 28px 55px -17px #000000dc; }
.tour-components img { border-radius: 19px; }
.tour-zoom { position: absolute; right: -12px; bottom: 37px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fafaf7; color: #101213; box-shadow: 0 4px 20px #0008; }
.tour-zoom svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.tour-device-note { font: 11px 'IBM Plex Mono', monospace; color: #b0b4b6; text-align: center; margin-top: 24px; line-height: 1.6; }
.tour-bottom { border-top: 1px solid #ffffff24; display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 15px 24px; }
.tour-bottom p { font-size: 13px; color: #aeb3b5; line-height: 1.5; }
.tour-next { background: transparent; border: 0; color: #ffeb3b; font: 600 14px 'Public Sans', sans-serif; display: inline-flex; align-items: center; gap: 20px; padding: 12px 0 12px 12px; min-height: 44px; cursor: pointer; white-space: nowrap; }
.tour-footnote { font-size: 12px; color: #a7acad; line-height: 1.7; max-width: 82ch; margin-top: 20px; }
.app-tour a:focus-visible, .tour-device:focus-visible, .tour-next:focus-visible, .tour-close:focus-visible { outline: 3px solid #ffeb3b; outline-offset: 5px; }
.tour-panel.tour-enter .tour-story, .tour-panel.tour-enter .tour-device { animation: tour-enter .25s ease-out both; }
@keyframes tour-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.tour-lightbox { color-scheme: dark; background: #101213; color: #fafaf7; padding: 0; border: 1px solid #ffffff36; border-radius: 16px; width: min(540px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); overflow: auto; box-shadow: 0 24px 100px #000; }
.tour-lightbox::backdrop { background: #030404ed; }
.tour-lightbox-head { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 12px 18px; position: sticky; top: 0; z-index: 1; background: #101213; border-bottom: 1px solid #ffffff2e; }
.tour-lightbox-head p { font-size: 13px; line-height: 1.5; }
.tour-close { color: #fafaf7; background: #282c2e; border: 1px solid #5b6063; border-radius: 8px; padding: 10px 12px; min-height: 44px; font: 500 13px 'Public Sans', sans-serif; cursor: pointer; white-space: nowrap; }
.tour-close span { margin-left: 10px; font-size: 18px; }
.tour-lightbox > img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
 .tour-heading { align-items: flex-start; }
 .tour-heading > p { max-width: 26ch; }
 .tour-story { padding: 32px 12px 32px 28px; }
 .tour-story h3 { font-size: 36px; }
 .tour-visual { padding-left: 18px; padding-right: 24px; }
 .tour-tabs button { padding: 20px; }
}
@media (max-width: 650px) {
 .app-tour { padding: 60px 0 45px; }
 .tour-heading { display: block; }
 .tour-heading > p { margin-top: 20px; max-width: none; font-size: 15px; }
 .tour-shell { border-radius: 18px; }
 .tour-tabs button { padding: 18px 12px; font-size: 17px; gap: 8px; }
 .tour-tabs button > span { font-size: 10px; }
 .tour-tabs svg { display: none; }
 .tour-panel { grid-template-columns: 1fr; }
 .tour-story { padding: 30px 25px 0; }
 .tour-story h3 { font-size: 36px; }
 .tour-story h3 br { display: none; }
 .tour-story > p { font-size: 15px; margin-top: 16px; max-width: 40ch; }
 .tour-facts { grid-template-columns: 1fr 1fr; margin: 23px 0 12px; gap: 10px; }
 .tour-facts dd { font-size: 13px; }
 .tour-facts dt { font-size: 11px; }
 .tour-link { font-size: 13px; }
 .tour-visual { padding: 28px 25px 24px; }
 .tour-device { width: 224px; }
 .tour-components { width: 290px; }
 .tour-bottom { padding: 12px 20px; }
 .tour-bottom p { max-width: 21ch; font-size: 11px; }
 .tour-next { font-size: 13px; gap: 10px; }
}
@media (max-width: 380px) {
 .tour-tabs button { justify-content: center; padding: 18px 8px; font-size: 15px; }
 .tour-tabs button > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
 .tour-panel.tour-enter .tour-story, .tour-panel.tour-enter .tour-device { animation: none; }
}
