/* AIM Platform prototype - "Start here" page and the walk-through bar */

.sh-page { background: var(--surface-2); min-height: 100%; }
.sh-wrap { max-width: 1040px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }

/* ---------- Hero ---------- */
.sh-hero {
  position: relative; overflow: hidden; color: #fff; padding: 64px 0 56px;
  background:
    radial-gradient(ellipse 700px 420px at 85% 10%, rgba(99, 199, 255, .16) 0%, transparent 65%),
    radial-gradient(ellipse 600px 380px at 10% 100%, rgba(99, 199, 255, .08) 0%, transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
}
.sh-mark { position: absolute; right: -90px; top: 50%; transform: translateY(-50%); width: 520px; height: 520px; color: rgba(99, 199, 255, .09); pointer-events: none; }
.sh-hero .eyebrow { color: var(--accent); }
.sh-hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.04; letter-spacing: -.025em; margin: 14px 0 18px; max-width: 16ch; text-wrap: balance; }
.sh-lede { font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .8); max-width: 60ch; margin: 0 0 12px; }
.sh-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.sh-hero .btn { height: 46px; padding: 0 20px; font-size: 15px; }
.sh-primary { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.sh-primary:hover { background: #8fd7ff; border-color: #8fd7ff; box-shadow: 0 0 22px rgba(99, 199, 255, .45); }
.sh-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.sh-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.sh-note { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 13px; color: rgba(255, 255, 255, .62); }
.sh-note svg { flex: none; color: var(--accent); }
.sh-hero :focus-visible { outline-color: var(--accent); }

/* ---------- Sections ---------- */
.sh-sec { padding-top: 52px; }
.sh-sec h2 { font-size: 24px; letter-spacing: -.01em; color: var(--navy); margin: 0 0 18px; }
.sh-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.sh-sechead h2 { margin: 0; }
.sh-sechead span, .sh-sub { color: var(--ink-3); font-size: 14px; max-width: 60ch; }
.sh-sub { margin: -8px 0 18px; }

.sh-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.sh-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 20px; box-shadow: var(--shadow-1); }
.sh-card > svg { color: var(--accent-ink); }
.sh-card h3 { font-size: 17px; margin: 12px 0 6px; color: var(--ink); }
.sh-card p { margin: 0; color: var(--ink-2); line-height: 1.55; }

.sh-princ { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sh-pr { display: flex; gap: 14px; background: var(--surface); padding: 20px 22px; }
.sh-pr > svg { flex: none; margin-top: 2px; color: var(--navy); background: var(--navy-050); border-radius: 8px; padding: 7px; width: 34px; height: 34px; box-sizing: border-box; }
.sh-pr h3 { font-size: 15px; margin: 0 0 4px; }
.sh-pr p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* ---------- Walk-through stops ---------- */
.sh-stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sh-stop { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; transition: border-color .15s, box-shadow .15s; }
.sh-stop:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.sh-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
.sh-top { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 6px; }
.sh-top h3 { margin: 0; font-size: 16px; }
.sh-as { font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--navy-050); border-radius: 20px; padding: 1px 9px; }
.sh-today, .sh-next { margin: 3px 0 0; font-size: 14px; line-height: 1.45; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
.sh-today { color: var(--ink-3); }
.sh-next { color: var(--ink); }
.sh-today b, .sh-next b { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; padding-top: 2px; }
.sh-today b { color: var(--ink-3); }
.sh-next b { color: var(--accent-ink); }
.sh-open { gap: 4px; }

/* ---------- Roles ---------- */
.sh-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.sh-role { position: relative; display: flex; gap: 14px; align-items: center; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font: inherit; color: var(--ink); }
.sh-role:hover { border-color: var(--navy); }
.sh-role[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99, 199, 255, .22); }
.sh-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
.sh-role b { display: block; }
.sh-role small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.sh-now { position: absolute; top: 10px; right: 12px; font-size: 11px; font-weight: 600; color: var(--accent-ink); }

/* ---------- What it is ---------- */
.sh-is { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.sh-is h3 { font-size: 15px; color: var(--navy); margin: 0 0 8px; }
.sh-is ul, .sh-is ol { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.sh-foot { padding-top: 32px; padding-bottom: 96px; color: var(--ink-3); font-size: 12.5px; }

@media (max-width: 640px) {
  .sh-hero { padding: 40px 0 40px; }
  .sh-mark { width: 340px; height: 340px; right: -150px; top: 30%; }
  .sh-lede { font-size: 15.5px; }
  .sh-cta .btn { flex: 1 1 100%; }
  .sh-wrap { padding-left: 16px; padding-right: 16px; }
  .sh-sec { padding-top: 40px; }
  .sh-stop { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px; align-items: start; }
  .sh-num { width: 30px; height: 30px; font-size: 13px; }
  .sh-open { grid-column: 2; justify-self: start; height: 34px; }
  .sh-today, .sh-next { grid-template-columns: 1fr; gap: 0; }
  .sh-princ { grid-template-columns: 1fr; }
}

/* ---------- Walk-through bar ---------- */
.walk-bar {
  position: fixed; z-index: 90; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px;
  background: rgba(8, 12, 16, .86); border: 1px solid rgba(99, 199, 255, .28); color: #fff;
  box-shadow: 0 10px 30px rgba(2, 29, 44, .35); backdrop-filter: blur(6px);
  max-width: calc(100vw - 24px); animation: wbIn .2s ease-out;
}
@keyframes wbIn { from { opacity: 0; transform: translate(-50%, 8px); } }
.walk-bar[hidden] { display: none; }
.walk-bar button { font: inherit; color: inherit; background: none; border-radius: 8px; height: 38px; display: inline-flex; align-items: center; gap: 6px; }
.walk-bar button:hover:not(:disabled) { background: rgba(99, 199, 255, .16); }
.walk-bar button:disabled { opacity: .35; }
.wb-btn { padding: 0 10px; }
.wb-next { background: var(--accent) !important; color: var(--navy) !important; font-weight: 600; padding: 0 10px 0 14px; }
.wb-next:hover:not(:disabled) { background: #8fd7ff !important; }
.wb-next:disabled { background: rgba(99, 199, 255, .2) !important; }
.wb-mid { padding: 0 12px; min-width: 0; }
.wb-count { font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.wb-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.wb-x { color: rgba(255, 255, 255, .7) !important; }
.walk-bar :focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
body.walking .stage-note { display: none; }
@media (max-width: 640px) {
  .wb-title, .wb-nl { display: none; }
  /* Over the AIM viewer on a phone, sit above the viewer's own bottom toolbar */
  body.site-mode .walk-bar { bottom: 84px; left: 12px; transform: none; animation: none; }
  /* Keep clear of the viewer's minimap (right) and of an open site sheet */
  body.site-mode:has(.site-page.panel-open) .walk-bar { display: none; }
}
