/* Tour page: minimalist, playful, theme-aware. */
.tour-main { flex: 1; overflow-y: auto; overflow-x: hidden; outline: none; scroll-behavior: smooth;
  --hand: "Segoe Print", "Bradley Hand", "Chalkboard SE", "Comic Neue", "Comic Sans MS", "Marker Felt", cursive;
  --ink: #ffb347; }
[data-theme="day"] .tour-main { --ink: #d9480f; }
.tour-main > * { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }

.tour-hero { min-height: calc(100vh - 60px); display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; }
.tour-hero h2 { font-size: clamp(2rem, 6vw, 3.6rem); margin: 0; letter-spacing: -.02em; }
.tour-hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--fg2); max-width: 36ch; margin: 0 0 8px; }
.hero-logo { animation: float 4s ease-in-out infinite; }
.scroll-hint { font-family: var(--hand); color: var(--ink); margin-top: 28px; font-size: 1.1rem; animation: float 2.4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-2deg); } }

.tour-sec { display: grid; grid-template-columns: minmax(240px, 1fr) 2.2fr; gap: 36px; align-items: center; padding-block: 70px; }
.tour-sec.flip { grid-template-columns: 2.2fr minmax(240px, 1fr); }
.tour-sec.flip .copy { order: 2; }
.copy h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 10px; letter-spacing: -.01em; }
.copy p { color: var(--fg2); line-height: 1.6; margin: 0; }
.copy .kicker { font-family: var(--hand); color: var(--ink); font-size: 1.15rem; margin-bottom: 4px; transform: rotate(-2deg); display: inline-block; }

.shot { margin: 0; }
.shot .frame { position: relative; border-radius: 12px; overflow: visible; box-shadow: 0 18px 50px #0007, 0 0 0 1px var(--line); background: #000; }
.shot .frame > img { display: block; width: 100%; height: 100%; border-radius: 12px; }
.shot .arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.shot .arrows path { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s ease; filter: drop-shadow(0 1px 1px #0008); }
.shot .arrows .pin { fill: var(--ink); opacity: 0; transition: opacity .4s ease .9s; }
.shot .arrows .pin-n { font: 700 16px system-ui, sans-serif; fill: #111; text-anchor: middle; opacity: 0; transition: opacity .4s ease .9s; }
.note-bubble { position: absolute; transform: translate(-50%, -50%) rotate(-2deg) scale(.9); opacity: 0; transition: opacity .5s ease, transform .5s ease;
  font-family: var(--hand); font-size: clamp(.78rem, 1.35vw, 1.05rem); line-height: 1.2; color: #1b1b1b; background: #fff8dc;
  padding: 6px 10px; border-radius: 10px 14px 9px 13px; box-shadow: 2px 3px 0 #0005; max-width: 22ch; text-align: center; white-space: normal; }
.note-bubble b { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--ink); color: #111; font-family: system-ui; font-size: .75em; margin-right: 2px; }
.tour-sec.in .arrows path { stroke-dashoffset: 0; }
.tour-sec.in .arrows .pin, .tour-sec.in .arrows .pin-n { opacity: 1; }
.tour-sec.in .note-bubble { opacity: 1; transform: translate(-50%, -50%) rotate(-2deg) scale(1); }
.callout-list { display: none; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Day / night compare */
.compare .frame { overflow: hidden; --split: 50%; }
.compare .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .frame img.night { clip-path: inset(0 0 0 var(--split)); }
.compare .frame::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--split); width: 3px; background: var(--ink); transform: translateX(-50%); }
.compare .tag { position: absolute; top: 12px; font-family: var(--hand); background: #fff8dc; color: #222; padding: 2px 10px; border-radius: 8px; box-shadow: 2px 2px 0 #0005; }
.compare .tag.day { left: 12px; } .compare .tag.nite { right: 12px; }
.compare .split { display: block; margin-top: 12px; }
.compare .split input { width: 100%; }

.phones { display: flex; gap: 28px; justify-content: center; }
.phones .shot { width: min(46%, 300px); }
.phones .frame { border-radius: 28px; box-shadow: 0 18px 50px #0007, 0 0 0 8px #0b0c0e, 0 0 0 9px var(--line); }
.phones .frame > img { border-radius: 28px; }
.phones .shot:nth-child(2) { transform: translateY(40px) rotate(2deg); }
.phones .note-bubble { font-size: clamp(.72rem, 1.2vw, .95rem); }

.install-art { display: grid; place-items: center; position: relative; }
.install-art img { filter: drop-shadow(0 16px 30px #0008); animation: float 5s ease-in-out infinite; }
.install-art .badge { position: absolute; bottom: 10%; right: 28%; font-family: var(--hand); background: #fff8dc; color: #222; padding: 4px 12px; border-radius: 10px; transform: rotate(8deg); box-shadow: 2px 3px 0 #0005; }

.tour-drop { padding-block: 60px 120px; text-align: center; }
.tour-drop h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.drop-area { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: center; gap: 10px; width: 100%;
  min-height: 300px; place-content: center; border: 3px dashed var(--accent); border-radius: 22px; padding: 30px;
  background: color-mix(in srgb, var(--accent) 7%, transparent); transition: background .2s, transform .2s; }
.drop-area:hover, .drop-area.over { background: color-mix(in srgb, var(--accent) 16%, transparent); transform: scale(1.01); }
.drop-area:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.drop-area svg { width: 70px; height: 70px; color: var(--accent); }
.drop-area strong { font-size: clamp(1.3rem, 3.4vw, 2rem); }
.drop-area span { color: var(--fg2); }
.tour-drop .fine { color: var(--fg2); font-size: .85rem; }

@media (max-width: 720px) {
  .tour-main > * { padding-inline: 16px; }
  .tour-sec, .tour-sec.flip { grid-template-columns: 1fr; gap: 20px; padding-block: 44px; }
  .tour-sec.flip .copy { order: 0; }
  /* bubbles get too small on a phone: keep numbered pins + arrows, list the notes below */
  .note-bubble { display: none; }
  .shot .arrows path { display: none; }
  .shot .arrows .pin { r: 22; }
  .shot .arrows .pin-n { font-size: 26px; transform: translateY(4px); }
  .callout-list { display: block; margin: 14px 0 0; padding-left: 1.4em; font-family: var(--hand); color: var(--fg); }
  .callout-list li::marker { color: var(--ink); font-weight: 700; }
  .phones { gap: 14px; }
  .phones .shot:nth-child(2) { transform: translateY(20px) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .tour-main { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .shot .arrows path { stroke-dashoffset: 0; transition: none; }
  .shot .arrows .pin, .shot .arrows .pin-n, .note-bubble { opacity: 1; transition: none; }
  .note-bubble { transform: translate(-50%, -50%) rotate(-2deg); }
  .hero-logo, .scroll-hint, .install-art img { animation: none; }
}
.tour-cloud { margin: 48px auto 0; max-width: 520px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.tour-cloud h2 { font-size: 1.4rem !important; margin-top: 0; }
.tour-cloud .account-slot { justify-content: center; margin: 14px 0; }
.tour-cloud a, .tour-footer a { color: var(--accent); }
.tour-footer { text-align: center; padding: 18px 12px 40px; color: var(--fg2); font-size: .9rem; border-top: 1px solid var(--line); }
