/* Tours menu. Shares site.css tokens; the player has its own player.css. */

/* Menu. The first screen reuses the landing page's hero: big ink headline, one deep blue field. */
.tours-hero { min-height: calc(88svh - var(--head-h)); }
.quick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 32px; align-items: end; color: var(--white); text-decoration: none; }
.quick .screen { grid-column: 1 / -1; display: block; border: 0; box-shadow: 0 20px 44px rgba(0, 0, 0, .22); transition: transform .5s var(--ease-out); }
.quick:hover .screen { transform: translateY(-6px); }
.quick-copy b { display: block; font-size: 1.5rem; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.quick-copy span { display: block; margin-top: 8px; color: var(--on-blue); max-width: 44ch; }
.quick-go, .tour .state .when-open { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.quick-go { min-height: 52px; padding: 0 22px; border: 2px solid var(--white); border-radius: 2px; transition: background .15s, color .15s; }
.quick:hover .quick-go { background: var(--white); color: var(--blue-800); }
.quick:focus-visible { outline-color: var(--white); outline-offset: 8px; }
.quick-go svg, .tour .state svg { width: 16px; height: 16px; }

.more { padding: 0 56px 120px; }
.gate { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: end; padding: 104px 0 56px; border-bottom: 1px solid var(--ink); }
.gate h2 { font-size: clamp(2.5rem, 4.8vw, 5rem); line-height: .98; font-weight: 800; letter-spacing: -.035em; }
.gate form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.gate label { grid-column: 1 / -1; font-weight: 700; font-size: 1.125rem; }
.gate input { min-height: 52px; min-width: 0; padding: 0 16px; font: 500 1rem var(--font); color: var(--ink); border: 2px solid var(--ink); border-radius: 2px; background: var(--white); caret-color: var(--blue); }
.gate input::placeholder { color: var(--ink-500); }
.gate input:focus { outline: 3px solid var(--blue-800); outline-offset: 2px; }
.gate small, .gate-msg { grid-column: 1 / -1; }
.gate small { color: var(--ink-500); font-size: .8125rem; }
.gate-msg { font-weight: 700; padding: 10px 14px; border: 2px solid var(--ink); }
.gate .btn:disabled { opacity: .6; cursor: progress; }
.gate .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.gate-open { font-size: 1.25rem; font-weight: 600; max-width: 30ch; }

/* What the gate's state shows. tours.js only sets data-gate-state. */
.when-sending, .gate-open, .tour .state .when-open { display: none; }
[data-gate-state="sending"] .when-idle { display: none; }
[data-gate-state="sending"] .when-sending { display: inline; }
[data-gate-state="unlocked"] .gate form, [data-gate-state="unlocked"] .tour .state .when-locked { display: none; }
[data-gate-state="unlocked"] .gate-open { display: block; }
[data-gate-state="unlocked"] .tour .state .when-open { display: inline-flex; }

/* The tours read as an index: the title carries each row, and the whole row is the link. */
.list { list-style: none; padding: 0; }
.tour { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr); gap: 48px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--ink); }
.tour h3 { font-stretch: 88%; font-size: clamp(2rem, 3.6vw, 3.75rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.tour h3 a { color: var(--ink); text-decoration: none; transition: color .2s; }
.tour h3 a::after { content: ""; position: absolute; inset: 0; }
.tour h3 a:focus-visible { outline: 0; }
.tour:has(a:focus-visible) { outline: 3px solid var(--blue-800); outline-offset: 3px; }
.tour-copy p { margin-top: 14px; color: var(--ink-700); font-size: 1.125rem; max-width: 46ch; }
.tour-copy .who { margin-top: 8px; font-size: .9375rem; font-weight: 600; color: var(--ink-500); }
.tour .state { justify-self: end; font-weight: 600; color: var(--ink-500); }
.tour .state .when-locked { display: inline-flex; align-items: center; gap: 8px; }
.tour .state .when-open { color: var(--ink); transition: gap .3s var(--ease-out), color .2s; }
.tour::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.tour:hover::after, .tour:has(a:focus-visible)::after { transform: scaleX(1); }
.tour:hover h3 a, .tour:hover .state .when-open { color: var(--blue-700); }
.tour:hover .state .when-open { gap: 16px; }
.thumb { aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--ink); background: var(--canvas); position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s var(--ease-out); }
.thumb.phone-shot { background: var(--blue-50); }
.thumb.phone-shot img { width: 40%; height: auto; object-fit: initial; position: absolute; left: 30%; top: 12%; border: 1px solid var(--ink); }
.tour:hover .thumb img { transform: translateY(-6px); }


@media (max-width: 1100px) {
  .tours-hero { min-height: 0; }
  .more { padding: 0 var(--gutter) 80px; }
  .gate { grid-template-columns: 1fr; gap: 28px; align-items: start; padding: 64px 0 40px; }
  .tour { grid-template-columns: 180px minmax(0, 1fr); gap: 16px 24px; padding: 24px 0; }
  .tour .state { grid-column: 2; justify-self: start; }
}
@media (max-width: 640px) {
  .quick { grid-template-columns: 1fr; }
  .quick-go { justify-self: start; }
  .gate form { grid-template-columns: 1fr; }
  .tour { grid-template-columns: 1fr; }
  .tour .state { grid-column: 1; }
  .tour-copy p { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .quick .screen, .thumb img, .tour::after, .tour .state .when-open { transition: none; }
}
