/* Talusmark product tour. Tokens first; light then dark. */
:root {
  --bg: #F6F8F7;
  --surface: #FFFFFF;
  --surface-2: #EEF3F0;
  --ink: #1E2A30;
  --ink-2: #4E5D64;
  --ink-3: #74838A;
  --line: #D6E0DB;
  --sage: #DCE6E1;
  --brand: #1E2A30;
  --focus: #39718A;
  --camp-host: #1A4D3A; --camp-host-tint: #E3EDE7;
  --admin: #4A5D68; --admin-tint: #E8ECEE;
  --site-finder: #39718A; --site-finder-tint: #E2EDF2;
  --inventory: #A64B0C; --inventory-tint: #FBEADD;
  --app: var(--camp-host); --app-tint: var(--camp-host-tint);
  --on-app: #FFFFFF;
  --hot: #E37222;
  --frame: #1E2A30;
  --shadow: 0 1px 2px rgba(30,42,48,.06), 0 8px 28px rgba(30,42,48,.10);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121A1E; --surface: #1A2429; --surface-2: #202C32; --ink: #E7EEEA; --ink-2: #B4C2BC; --ink-3: #8D9C97;
    --line: #2E3D44; --sage: #26352F; --brand: #E7EEEA; --focus: #7FB4CC;
    --camp-host: #6FB394; --camp-host-tint: #1F3229;
    --admin: #9DB1BC; --admin-tint: #253036;
    --site-finder: #7FB4CC; --site-finder-tint: #1E2F37;
    --inventory: #F0964F; --inventory-tint: #3A2717;
    --hot: #F0964F; --frame: #0A1013; --on-app: #0E1714;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121A1E; --surface: #1A2429; --surface-2: #202C32; --ink: #E7EEEA; --ink-2: #B4C2BC; --ink-3: #8D9C97;
  --line: #2E3D44; --sage: #26352F; --brand: #E7EEEA; --focus: #7FB4CC;
  --camp-host: #6FB394; --camp-host-tint: #1F3229;
  --admin: #9DB1BC; --admin-tint: #253036;
  --site-finder: #7FB4CC; --site-finder-tint: #1E2F37;
  --inventory: #F0964F; --inventory-tint: #3A2717;
  --hot: #F0964F; --frame: #0A1013; --on-app: #0E1714;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: "Space Grotesk", Inter, system-ui, sans-serif; letter-spacing: -0.01em; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Top bar */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 58px; padding-block: 8px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand .logo { height: 44px; width: auto; display: block; background: #FFFFFF; border-radius: 8px; padding: 3px 6px; flex: none; }
.brand .tourname { font-weight: 600; color: var(--ink-2); font-size: 14px; padding-left: 10px; border-left: 1px solid var(--line); }
.topnav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.topnav a { text-decoration: none; padding: 7px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.topnav a:hover { background: var(--surface-2); color: var(--ink); }
.topnav a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* Landing */
.hero { padding-block: 48px 28px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.08; margin: 0 0 14px; max-width: 18ch; }
.hero p.lede { font-size: 18px; color: var(--ink-2); max-width: 58ch; margin: 0 0 8px; }
.ownpark { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--sage); color: var(--ink); font-size: 13.5px; font-weight: 600; }
.ownpark svg { width: 16px; height: 16px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; padding-block: 8px 40px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease; }
a.card:hover { transform: translateY(-2px); }
.card .band { height: 6px; background: var(--app); }
.card .shot { aspect-ratio: 16/10; background: var(--app-tint); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.card .shot img { width: 58%; border-radius: 14px 14px 0 0; box-shadow: 0 -2px 18px rgba(0,0,0,.18); transform: translateY(8%); }
.card .shot .soon { align-self: center; color: var(--app); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .who { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--app); }
.card h2 { margin: 0; font-size: 22px; }
.card p { margin: 0; color: var(--ink-2); }
.card .go { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--app); }
.card.is-soon { opacity: .85; }
.card.is-soon .go { color: var(--ink-3); }

.connect { margin-block: 0 48px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.connect h2 { margin: 0 0 4px; font-size: 20px; }
.connect p { margin: 0; color: var(--ink-2); }
.flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; font-size: 13px; font-weight: 600; }
.flow span.node { padding: 4px 10px; border-radius: 999px; background: var(--node-tint); color: var(--node); }
.flow span.arrow { color: var(--ink-3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { opacity: .9; }
.btn.app { background: var(--app); color: var(--on-app); border-color: var(--app); }
.btn[disabled] { opacity: .4; cursor: default; }

/* Tour layout */
.tour { display: grid; grid-template-columns: 250px minmax(0, 1fr) 360px; gap: 28px; padding-block: 24px 48px; align-items: start; }
.index { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 78px); max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 4px; }
.index .apphead { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.index .apphead .dot { width: 12px; height: 12px; border-radius: 4px; background: var(--app); }
.index .apphead b { font-family: "Space Grotesk", Inter, sans-serif; font-size: 18px; }
.index h3 { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 16px 0 6px; font-family: Inter, sans-serif; }
.index ol { list-style: none; margin: 0; padding: 0; }
.index a { display: flex; gap: 10px; align-items: baseline; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: 14px; }
.index a .n { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ink-3); min-width: 18px; }
.index a:hover { background: var(--surface-2); color: var(--ink); }
.index a[aria-current="step"] { background: var(--app-tint); color: var(--app); font-weight: 600; }
.index a[aria-current="step"] .n { color: var(--app); }
.index-select { display: none; }

.stage { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.viewtoggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.viewtoggle button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.viewtoggle button svg { width: 15px; height: 15px; }
.viewtoggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.device { position: relative; max-width: 100%; }
.device.phone { width: min(100%, 360px); padding: 10px; border-radius: 44px; background: var(--frame); box-shadow: var(--shadow); }
.device.phone .screen { border-radius: 34px; overflow: hidden; }
.device.computer { width: 100%; border-radius: 12px; background: var(--frame); padding: 0 0 2px; box-shadow: var(--shadow); overflow: hidden; }
.device.computer .chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; }
.device.computer .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #5B6A70; display: block; }
.device.computer .chrome .url { margin-left: 10px; flex: 1; min-width: 0; padding: 3px 10px; border-radius: 6px; background: rgba(255,255,255,.1); color: #C9D4D0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen { position: relative; background: var(--surface-2); line-height: 0; }
.screen img { display: block; width: 100%; height: auto; }
.device.phone .screen { aspect-ratio: 390 / 844; }
.device.computer .screen { aspect-ratio: 1366 / 900; }

.hs { position: absolute; border-radius: 8px; border: 2px solid transparent; background: transparent; padding: 0; cursor: pointer; }
.hs .pin { position: absolute; top: -11px; left: -11px; width: 24px; height: 24px; border-radius: 50%; background: var(--hot); color: #fff; font: 700 12px/24px Inter, sans-serif; text-align: center; box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 2px 6px rgba(0,0,0,.3); }
.hs .pin::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--hot); animation: pulse 2.2s ease-out infinite; }
.hs:hover, .hs:focus-visible, .hs.is-on { border-color: var(--hot); background: rgba(227,114,34,.10); outline: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hs .pin::after { animation: none; } a.card:hover { transform: none; } }
.hidepins .hs { display: none; }

.stagebar { display: flex; gap: 10px; align-items: center; justify-content: space-between; width: 100%; max-width: 560px; }
.stagebar .count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.device.computer ~ .stagebar { max-width: none; }

.notes { min-width: 0; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 78px); }
.notes .sect { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--app); margin: 0 0 6px; }
.notes h1 { font-size: 30px; line-height: 1.12; margin: 0 0 10px; }
.notes .lead { font-size: 16.5px; color: var(--ink); margin: 0 0 14px; }
.notes ul.points { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.notes ul.points li { position: relative; padding-left: 18px; color: var(--ink-2); }
.notes ul.points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--app); }
.why { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--app-tint); border-left: 4px solid var(--app); }
.why b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--app); margin-bottom: 4px; }
.why p { margin: 0; }
.hotlist { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 4px; }
.hotlist button { width: 100%; text-align: left; display: flex; gap: 10px; align-items: flex-start; border: 0; background: transparent; padding: 6px 8px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-size: 14px; }
.hotlist button:hover, .hotlist button.is-on { background: var(--surface-2); color: var(--ink); }
.hotlist .pin { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--hot); color: #fff; font: 700 11px/20px Inter, sans-serif; text-align: center; margin-top: 1px; }
.hotlist .goto { display: block; font-size: 12.5px; color: var(--ink-3); }
.hotlabel { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; align-items: center; }
.chips .lbl { font-size: 13px; color: var(--ink-3); margin-right: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--chip-tint); color: var(--chip); text-decoration: none; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--chip); }
.tryit { font-size: 14px; color: var(--ink-2); padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; margin-bottom: 16px; }
.tryit a { font-weight: 600; color: var(--app); }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); z-index: 20; max-width: calc(100% - 32px); }

/* Closing */
.closing { padding-block: 56px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.closing h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; margin: 0 0 14px; }
.closing p { color: var(--ink-2); font-size: 17px; margin: 0 0 14px; max-width: 54ch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 8px; font-size: 20px; }
.panel ol { margin: 0 0 18px; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }

footer.foot { border-top: 1px solid var(--line); padding-block: 18px 28px; color: var(--ink-3); font-size: 13px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }

/* Narrow layouts */
@media (max-width: 1180px) {
  .tour { grid-template-columns: minmax(0, 1fr) 340px; }
  .index { display: none; }
  .index-select { display: block; grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .tour { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 16px 32px; }
  .notes { position: static; }
  .closing { grid-template-columns: minmax(0, 1fr); padding-block: 32px; }
  .connect { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 32px 20px; }
  .topnav { margin-left: 0; width: 100%; }
}
.index-select select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; }

/* How it all connects */
:root { --pos: var(--ink-2); --pos-tint: var(--surface-2); --pms: var(--ink-2); --pms-tint: var(--surface-2); }
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; padding-block: 8px 36px; }
.story { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; transition: transform .15s ease; }
.story:hover { transform: translateY(-2px); }
.story .num { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.story h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.story p { margin: 0; color: var(--ink-2); }
.story .flow { margin-top: 4px; }
.story .go { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--ink); }
.connmap { margin-block: 0 48px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.connmap h2 { margin: 0 0 4px; font-size: 22px; }
.connmap .sub { margin: 0 0 16px; color: var(--ink-2); }
.conns { list-style: none; margin: 0; padding: 0; display: grid; }
.conns li { display: grid; grid-template-columns: 340px minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.conns .ends { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.conns .arrow { color: var(--ink-3); font-weight: 700; }
.conns p { margin: 0; color: var(--ink); min-width: 0; }
.status { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; justify-self: end; }
.status.instant { background: var(--camp-host-tint); color: var(--camp-host); }
.status.batch { background: var(--site-finder-tint); color: var(--site-finder); }
.status.staff { background: var(--surface-2); color: var(--ink-2); }
.conns p small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.storysteps a small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.storysteps a { border-left: 3px solid var(--app); }
.backall { margin: 16px 0 0; font-size: 14px; }
.backall a { color: var(--ink-2); padding: 6px 8px; display: inline-block; }
.notes .chips { margin-bottom: 10px; }
.footnote { font-size: 14px; color: var(--ink-2); padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin: 0 0 14px; }
.backto { margin: 0 0 12px; text-align: center; }
.backto a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.backto a:hover { border-color: var(--app); }
.seeit { margin: 0; }
.seeit a { font-weight: 600; color: var(--app); }
@media (max-width: 860px) {
  .conns li { grid-template-columns: minmax(0, 1fr); }
  .status { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .story:hover { transform: none; } }
