:root {
  --ink: #1b2020;
  --ink-2: #2c3333;
  --ink-3: #3a4242;
  --paper: #ffffff;
  --mist: #f4f4f0;
  --line: rgba(255, 255, 255, .12);
  --text-dim: #b9c0bf;
  --text-body: #4a5352;
  --gold: #d4af37;
  --gold-hi: #e4c251;
  --gold-ink: #7a6110;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --move: .5s;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--ink); }
body { font-family: Inter, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold); color: #1d1a0c; }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-quiet { background: transparent; color: var(--text-body); border-color: #d5d8d6; }
.btn-quiet:hover { background: var(--mist); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { min-height: 52px; padding: 0 30px; font-size: 16px; border-radius: 12px; }
.link-btn { background: none; border: 0; color: var(--text-dim); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
.link-btn:hover { color: #fff; }

/* The logo's grey wording needs a light background, so it sits on a white plate. */
.brand-plate { display: inline-flex; align-items: center; background: #fff; border-radius: 10px; padding: 6px 12px; }
.brand-plate img { display: block; height: 30px; width: auto; }
.brand-plate-sm { padding: 4px 8px; border-radius: 8px; }
.brand-plate-sm img { height: 24px; }

/* Welcome */
.home { min-height: 100%; max-width: 1240px; margin: 0 auto; padding: 22px 32px 40px; display: flex; flex-direction: column; animation: rise .6s var(--ease); }
.home-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar-actions { display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; text-decoration: none; }
.hero { text-align: center; margin: clamp(32px, 6.5vh, 72px) auto clamp(28px, 5vh, 48px); max-width: 720px; }
.eyebrow { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 62px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.hero em { font-style: normal; color: var(--gold); }
.lead { color: var(--text-dim); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; margin-top: 18px; }
.tour-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tour-card { display: flex; flex-direction: column; text-align: left; background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 0; overflow: hidden; color: #fff; transition: transform .25s var(--ease), border-color .25s; }
.tour-card:hover, .tour-card:focus-visible { transform: translateY(-5px); border-color: var(--gold); }
.tour-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #e9ebea; border-bottom: 1px solid var(--line); }
.tour-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .5s var(--ease); }
.tour-card:hover .tour-thumb img { transform: scale(1.04); }
.tour-info { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 16px; }
.tour-num { color: var(--gold); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.tour-info h2 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.tour-info p { color: var(--text-dim); font-size: 14px; line-height: 1.5; margin: 8px 0 16px; flex: 1; }
.tour-meta { display: flex; align-items: center; justify-content: space-between; color: var(--text-dim); font-size: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.tour-go { color: var(--gold); font-weight: 600; transition: transform .2s; }
.tour-card:hover .tour-go { transform: translateX(3px); }
.home-note { color: #8e9796; font-size: 13px; text-align: center; margin-top: 28px; }

/* Featured tour: a wide card with a fanned stack of screens from each module. */
.tour-feature { grid-column: 1 / -1; flex-direction: row; min-height: 320px; position: relative; isolation: isolate;
  background: radial-gradient(90% 120% at 100% 0%, rgba(212, 175, 55, .20), transparent 60%), linear-gradient(135deg, #2f3737 0%, #242a2a 100%); }
.tour-feature::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent 30%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); }
.tour-feature:hover, .tour-feature:focus-visible { transform: translateY(-4px); }
.feature-info { display: flex; flex-direction: column; flex: 0 0 44%; padding: 30px 30px 20px; }
.feature-info h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.feature-info p { color: var(--text-dim); font-size: 15px; line-height: 1.55; margin: 10px 0 18px; max-width: 440px; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 999px; border: 1px solid rgba(212, 175, 55, .38); background: rgba(212, 175, 55, .08); color: var(--gold-hi); font-size: 12.5px; font-weight: 600; }
.feature-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.feature-stats { display: flex; gap: 28px; margin: 22px 0 auto; padding-bottom: 20px; }
.feature-stat { display: flex; flex-direction: column; }
.feature-stat strong { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.feature-stat small { color: var(--text-dim); font-size: 12.5px; margin-top: 3px; }
.tour-feature .tour-meta { margin-top: 0; }
.feature-stack { position: relative; flex: 1; min-width: 0; overflow: hidden; }
/* Thumbs are 1440x900 screen photos; the 1160x900 frame crops off the app's left menu. */
.feature-shot { position: absolute; width: 56%; aspect-ratio: 1160 / 900; border-radius: 10px; overflow: hidden; background: #e9ebea;
  border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
  transition: transform .45s var(--ease); }
.feature-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right top; }
.feature-shot-1 { left: 4%; top: 17%; transform: rotate(-5deg); z-index: 1; }
.feature-shot-2 { left: 21%; top: 9%; transform: rotate(-.5deg); z-index: 2; }
.feature-shot-3 { left: 39%; top: 22%; transform: rotate(4deg); z-index: 3; }
.tour-feature:hover .feature-shot-1 { transform: translate(-14px, 4px) rotate(-8deg); }
.tour-feature:hover .feature-shot-2 { transform: translateY(-8px) rotate(-.5deg); }
.tour-feature:hover .feature-shot-3 { transform: translate(14px, 6px) rotate(7deg); }
.feature-tag { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(27, 32, 32, .88); color: #fff; font-size: 11.5px; font-weight: 600; }
.feature-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Player */
.player { position: fixed; inset: 0; display: flex; flex-direction: column; }
.topbar { flex: none; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px; background: var(--ink); border-bottom: 1px solid var(--line); z-index: 30; }
.topbar-gap { flex: 1; }
.switcher { position: relative; }
.switcher-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; background: transparent; color: #fff; border: 0; border-radius: 8px; font-size: 14px; font-weight: 600; }
.switcher-btn:hover { background: rgba(255, 255, 255, .08); }
.switcher-menu { position: absolute; top: 40px; left: 0; min-width: 230px; background: var(--paper); color: var(--ink); border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.switcher-menu button { display: flex; width: 100%; justify-content: space-between; gap: 16px; padding: 10px 12px; background: none; border: 0; border-radius: 8px; color: inherit; font-size: 14px; text-align: left; }
.switcher-menu button:hover { background: var(--mist); }
.switcher-menu button[aria-current="true"] { font-weight: 600; color: var(--gold-ink); }
.switcher-menu small { color: #7a8281; font-size: 12px; font-weight: 400; }
.sample-pill { color: var(--gold); border: 1px solid rgba(212, 175, 55, .45); border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: transparent; border: 0; border-radius: 8px; color: var(--text-dim); }
.icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.stage { position: relative; flex: 1; overflow: hidden; background: #e8eaea; }
.camera { position: absolute; left: 0; top: 0; width: 1440px; height: 100%; transform-origin: 0 0; transition: transform var(--move) var(--ease); }
.screen { position: absolute; left: 0; top: 0; width: 1440px; border: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .32s ease; }
.screen.on { opacity: 1; }
.spot { position: absolute; left: 50%; top: 50%; width: 0; height: 0; border-radius: 12px; box-shadow: 0 0 0 200vmax rgba(18, 22, 22, .66), 0 0 0 2px var(--gold), 0 0 26px 2px rgba(212, 175, 55, .35); pointer-events: auto; transition: left var(--move) var(--ease), top var(--move) var(--ease), width var(--move) var(--ease), height var(--move) var(--ease); z-index: 10; }
.hot { position: absolute; z-index: 12; background: transparent; border: 0; border-radius: 12px; padding: 0; cursor: pointer; animation: pulse 1.8s infinite; }
.hot:hover { background: rgba(212, 175, 55, .12); }
.spinner { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--gold); animation: spin .8s linear infinite; z-index: 11; }

.card { position: absolute; left: 0; top: 0; width: 370px; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 18px 20px 16px; box-shadow: 0 22px 60px rgba(0, 0, 0, .38); z-index: 20; transition: left var(--move) var(--ease), top var(--move) var(--ease); }
.card-grab { display: none; }
.progress { height: 4px; border-radius: 4px; background: #e6e8e6; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--gold); transition: width var(--move) var(--ease); }
.card-step { color: var(--gold-ink); font-size: 12px; font-weight: 600; margin: 12px 0 6px; }
#card-copy { transition: opacity .18s; }
#card-copy.swap { opacity: 0; }
.card h2 { font-size: 19px; line-height: 1.25; font-weight: 650; letter-spacing: -.012em; }
.card p#card-body { color: var(--text-body); font-size: 14.5px; line-height: 1.55; margin-top: 8px; }
.card-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.card-actions .btn { flex: 0 0 auto; min-width: 88px; }
.card-actions .btn-gold { flex: 1 1 auto; max-width: 180px; margin-left: auto; }

/* Finish */
.finish { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 40px 24px; animation: rise .6s var(--ease); }
.finish-inner { max-width: 780px; width: 100%; text-align: center; }
.finish-mark { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: var(--gold); color: var(--ink); margin-bottom: 22px; }
.finish h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
.finish .lead { margin: 16px auto 26px; max-width: 580px; }
.finish-more { color: var(--text-dim); font-size: 14px; line-height: 1.6; margin: 22px auto 0; max-width: 580px; }
.finish-sub { font-size: 14px; font-weight: 600; margin: 38px 0 14px; color: #fff; }
.finish-tours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: left; margin-bottom: 18px; }
.finish-tour { background: var(--ink-2); color: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: border-color .2s, transform .2s var(--ease); }
.finish-tour:hover { border-color: var(--gold); transform: translateY(-3px); }
.finish-tour strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.finish-tour span { color: var(--text-dim); font-size: 13px; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, .55); } 75%, 100% { box-shadow: 0 0 0 16px rgba(212, 175, 55, 0); } }

@media (max-width: 1080px) {
  .tour-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-info { flex-basis: 50%; padding: 24px 24px 18px; }
  .feature-stats { gap: 20px; }
  .feature-shot { width: 70%; }
  .feature-shot-1 { left: 2%; }
  .feature-shot-2 { left: 14%; }
  .feature-shot-3 { left: 26%; }
}
@media (max-width: 767px) {
  .home { padding: 16px 16px 28px; }
  .tour-cards { grid-template-columns: 1fr; gap: 12px; }
  .tour-card { flex-direction: row; }
  .tour-thumb { flex: 0 0 34%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .tour-info { padding: 14px; }
  .tour-info h2 { font-size: 17px; }
  .tour-info p { margin: 6px 0 10px; font-size: 13.5px; }
  .tour-meta { padding-top: 8px; }
  .topbar { gap: 8px; height: 52px; padding: 0 8px; }
  .brand-plate-sm, .sample-pill, .hide-phone { display: none; }
  .topbar .btn-sm, .bar-actions .btn { padding: 0 12px; }
  .bar-actions { gap: 8px; }
  .topbar .icon-btn { flex: none; }
  .switcher-btn { padding: 0 6px; }
  .card { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; border-radius: 18px 18px 0 0; padding: 8px 18px calc(14px + env(safe-area-inset-bottom)); transition: none; }
  .card-grab { display: block; width: 36px; height: 4px; margin: 0 auto 10px; border-radius: 4px; background: #d5d8d6; }
  .card h2 { font-size: 18px; }
  .card p#card-body { font-size: 14px; }
  .card-actions .btn { min-height: 48px; }
  .finish-tours { grid-template-columns: 1fr; }
  .tour-feature { flex-direction: column-reverse; min-height: 0; }
  .tour-feature .feature-info { padding: 16px; }
  .feature-info p { font-size: 13.5px; margin: 6px 0 12px; }
  .feature-stats { gap: 18px; margin: 14px 0 0; padding-bottom: 12px; }
  .feature-stat strong { font-size: 21px; }
  .tour-feature .tour-meta { padding-top: 8px; }
  .feature-stack { flex: none; height: 168px; border-bottom: 1px solid var(--line); }
  .feature-shot { width: 52%; }
  .feature-tag { display: none; } /* Too cramped here; the chips below name the modules. */
  .feature-shot-1 { left: 3%; top: 20%; }
  .feature-shot-2 { left: 24%; top: 12%; }
  .feature-shot-3 { left: 45%; top: 24%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  :root { --move: .01ms; }
}
