/* The tour and the guide. Uses style.css's tokens and type; nothing here
   restyles the landing page. */

.nav-links a.on { color: var(--ink); }
.page-head { padding: 2.5rem 0 2rem; max-width: 42rem; }
.page-head .kicker { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem; }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
.page-head h1 .accent { font-style: italic; font-weight: 500; color: var(--accent); }
.page-head .lede { color: var(--muted); font-size: 1.15rem; margin: 1rem 0 0; }
.page-head .lede a { color: var(--accent); }
.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
kbd { font: 600 .74rem/1 var(--body); color: var(--ink); background: var(--panel); border: 1px solid var(--rule);
  border-bottom-width: 2px; border-radius: 6px; padding: .22rem .45rem; }

/* ---------- the tour ---------- */
.tour-stage { margin: 0 0 4rem; }
.frame { border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: .6rem .9rem; border-bottom: 1px solid var(--rule); font-size: .76rem; color: var(--faint); }
.frame-bar i { width: 10px; height: 10px; border-radius: 99px; background: var(--rule); }
.frame-bar span { margin-left: .6rem; }
.shot { position: relative; overflow: hidden; }
.shot img { width: 100%; height: auto; }
.hole { position: absolute; border-radius: 10px; pointer-events: none;
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 9999px rgba(20, 19, 17, .58);
  transition: left .6s var(--ease), top .6s var(--ease), width .6s var(--ease), height .6s var(--ease); }
.hole::after { content: ""; position: absolute; inset: -2px; border-radius: 12px; border: 2px solid var(--gold);
  animation: holepulse 2.4s var(--ease) infinite; }
@keyframes holepulse { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.04); } }
.tcard { position: absolute; width: min(340px, calc(100% - 28px)); background: var(--panel); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 14px; padding: 1rem 1.1rem .85rem; box-shadow: 0 24px 60px -24px rgba(0,0,0,.55);
  transition: left .6s var(--ease), top .6s var(--ease); }
.tcard.swap h3, .tcard.swap p { animation: tcin .45s var(--ease) both; }
.tcard.swap p { animation-delay: .06s; }
@keyframes tcin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tc-kick { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tcard h3 { font-size: 1.25rem; margin: .3rem 0 .4rem; }
.tcard p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.tc-acts { display: flex; align-items: center; gap: .4rem; margin-top: .85rem; }
.tc-acts .grow { flex: 1; }
.tbtn { font: 600 .82rem var(--body); border-radius: 9px; padding: .45rem .8rem; cursor: pointer;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink); transition: transform .15s var(--ease); }
.tbtn:active { transform: scale(.97); }
.tbtn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.tbtn.ghost:hover { border-color: var(--ink); }
.tbtn:disabled { opacity: .35; cursor: default; }

/* the route: seven stops on a road, and the bus between them */
.stops { --done: 0; list-style: none; margin: 2rem 0 0; padding: 0 0 0; position: relative;
  display: grid; grid-template-columns: repeat(7, 1fr); }
.stops::before, .stops::after { content: ""; position: absolute; top: 33px; left: calc(100% / 14); height: 3px; border-radius: 3px; }
.stops::before { right: calc(100% / 14); background: var(--rule); }
.stops::after { width: calc((100% - 100% / 7) * var(--done)); background: var(--gold); transition: width .6s var(--ease); }
.stops li { display: flex; justify-content: center; }
.stops button { background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .55rem;
  padding: 26px .2rem 0; font: 500 .8rem var(--body); color: var(--faint); position: relative; z-index: 1; }
.stops button:hover, .stops button.on { color: var(--ink); }
.stops .stop { width: 17px; height: 17px; border-radius: 99px; background: var(--bg); border: 3px solid var(--rule); transition: border-color .3s, transform .3s var(--ease-out-back); }
.stops button.past .stop { border-color: var(--gold); }
.stops button.on .stop { border-color: var(--gold); background: var(--gold); transform: scale(1.25); }
.rbus { position: absolute; left: -22px; top: -6px; width: 44px; height: 32px; transition: transform .6s var(--ease); pointer-events: none; }
@media (prefers-color-scheme: dark) { .rbus { filter: invert(1) brightness(.95); } }
.keys-hint { text-align: center; color: var(--faint); font-size: .82rem; margin: 1.4rem 0 0; }
.tour-end { text-align: center; padding: 3rem 0 4.5rem; }
.tour-end h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.tour-end .lede { color: var(--muted); margin: .5rem 0 1.4rem; }
.tour-end .cta-row { margin-top: 1.4rem; }

@media (max-width: 760px) {
  .tcard { position: relative; z-index: 2; width: auto; margin: 0; border-radius: 0; border: 0; border-top: 1px solid var(--rule); box-shadow: none; }
  .keys-hint { display: none; }
  .stops .lbl { display: none; }
  .stops button { padding-top: 26px; }
  .hole { box-shadow: 0 0 0 2px var(--gold), 0 0 0 9999px rgba(20, 19, 17, .5); }
}

/* ---------- the guide ---------- */
.guide-tools { position: sticky; top: 0; z-index: 5; background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: .9rem 0 .8rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.gsearch { display: flex; align-items: center; gap: .6rem; background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: .1rem .9rem; }
.gsearch:focus-within { border-color: var(--accent); }
.gsearch svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; }
.gsearch input { flex: 1; min-width: 0; border: 0; background: none; font: 400 1rem var(--body); color: var(--ink); padding: .7rem 0; outline: none; }
.gcount { font-size: .8rem; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gchips { display: flex; gap: .4rem; margin-top: .7rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.gchips::-webkit-scrollbar { display: none; }
.gchip { flex: none; font: 500 .8rem var(--body); color: var(--muted); background: none; border: 1px solid var(--rule); border-radius: 99px; padding: .35rem .8rem; cursor: pointer; }
.gchip:hover { color: var(--ink); border-color: var(--faint); }
.gchip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.guide { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.gindex { position: sticky; top: 9.5rem; display: grid; gap: .1rem; font-size: .86rem; }
.gindex a { text-decoration: none; color: var(--faint); padding: .3rem .7rem; border-left: 2px solid var(--rule); transition: color .2s, border-color .2s; }
.gindex a:hover { color: var(--ink); }
.gindex a.on { color: var(--ink); border-left-color: var(--gold); }
.gsec { margin: 0 0 3rem; scroll-margin-top: 9rem; }
.gsec h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.55rem; margin-bottom: 1rem; }
.gi { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: .75rem; }
.feat { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: .95rem 1rem .85rem;
  display: flex; flex-direction: column; gap: .35rem; scroll-margin-top: 10rem;
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease); }
.feat:hover { border-color: color-mix(in oklab, var(--accent) 45%, var(--rule)); transform: translateY(-2px); box-shadow: var(--shadow); }
.feat h3 { font-family: var(--body); font-size: .98rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.feat p { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.feat .where { margin-top: auto; padding-top: .35rem; font-size: .74rem; color: var(--faint); }
.feat .where a { color: var(--accent); }
.feat details { font-size: .84rem; color: var(--muted); }
.feat summary { cursor: pointer; color: var(--accent); font-weight: 500; font-size: .8rem; list-style: none; }
.feat summary::-webkit-details-marker { display: none; }
.feat summary::before { content: "+ "; }
.feat details[open] summary::before { content: "– "; }
.feat details ol, .feat details p { margin: .45rem 0 0; padding-left: 1.1rem; line-height: 1.5; }
.feat details p { padding-left: 0; }
.feat .tag { font: 600 .62rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border-radius: 6px; padding: .15rem .4rem; vertical-align: 2px; margin-left: .3rem; }
.feat.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 30% { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in oklab, var(--gold) 30%, transparent); } }
.gnote { font-size: .86rem; color: var(--muted); margin: 1rem 0 0; }
.gnote a { color: var(--accent); }
.keygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: .55rem 1.2rem; font-size: .9rem; color: var(--muted); }
.keygrid span { display: flex; align-items: center; gap: .6rem; }
.keygrid kbd { min-width: 2.6rem; text-align: center; }
.gempty { color: var(--muted); text-align: center; padding: 3rem 0; }
.linkish { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }

@media (max-width: 860px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  .gindex { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hole, .tcard, .rbus, .stops::after { transition: none; }
  .hole::after, .tcard.swap h3, .tcard.swap p, .feat.flash { animation: none; }
  .feat:hover { transform: none; }
}
