/* Prototype chrome: POV bar + main + slim DO checklist pane */
:root {
  --guide-w: 300px;
  --proto-bar: 52px;
}

/* Screenshot / export mode — clean wireframe captures for proposal */
html[data-screenshot="1"] {
  background: #fff !important;
}
html[data-screenshot="1"] body {
  background: #fff !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
html[data-screenshot="1"] .guide-pane,
html[data-screenshot="1"] .proto-bar,
html[data-screenshot="1"] .tablet-caption,
html[data-screenshot="1"] .spark-tip,
html[data-screenshot="1"] #spark-tip,
html[data-screenshot="1"] .tip,
html[data-screenshot="1"] .lock-banner,
html[data-screenshot="1"] .do-more-btn {
  display: none !important;
}
html[data-screenshot="1"] .proto-layout {
  display: block !important;
  grid-template-columns: 1fr !important;
  min-height: auto;
  background: #fff;
}
html[data-screenshot="1"] .proto-main {
  max-width: none;
  width: 100%;
  background: #fff;
}
html[data-screenshot="1"] .tablet-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  margin: 0;
  background: #fff;
  min-height: auto;
}
html[data-screenshot="1"] .frame-tablet {
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}
html[data-screenshot="1"] .app-shell {
  margin: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
}
html[data-screenshot="1"] .auth-shell,
html[data-screenshot="1"] .auth-card {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
html[data-screenshot="1"] #screenshot-target {
  background: #fff;
  padding: 0;
}

.proto-bar {
  height: var(--proto-bar);
  padding: 0 12px;
  gap: 16px;
}
.proto-bar .pov-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.proto-bar .pov-switch a {
  color: #c5c8cb;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.proto-bar .pov-switch a:hover { color: #fff; background: rgba(255,255,255,.08); }
.proto-bar .pov-switch a.on {
  background: rgba(50, 239, 126, 0.22);
  color: var(--lime);
}
.proto-bar .pov-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #9aa3a8;
  margin-right: 6px;
  text-transform: uppercase;
}

.proto-layout {
  display: grid;
  grid-template-columns: 1fr var(--guide-w);
  min-height: calc(100vh - var(--proto-bar));
  background: var(--canvas);
}
.proto-main {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  position: relative;
}

/* —— Slim right pane: DO checklist only —— */
.guide-pane {
  background: #fff;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--proto-bar));
  max-height: calc(100vh - var(--proto-bar));
  position: sticky;
  top: var(--proto-bar);
  overflow: hidden;
}
.guide-pane .guide-scroll {
  flex: 1;
  overflow: auto;
  padding: 16px 14px 18px;
}
.guide-pane .guide-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin: 0 0 8px;
}
.guide-pane .guide-pov {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
}
.guide-pane .guide-pov i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}
.guide-do-note {
  margin: 0 0 8px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}
.guide-do-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 10px;
}
.do-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
a.do-item {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
a.do-item:hover,
a.do-item:focus-visible {
  transform: translateX(-3px);
  box-shadow: 0 8px 20px rgba(13, 107, 86, 0.12);
  border-color: var(--primary);
  outline: none;
  opacity: 1;
}
a.do-item:active {
  transform: translateX(-1px) scale(0.99);
}
.do-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 12px;
  border: 1.5px solid #cfe9d8;
  background: #ebf9f2;
  animation: do-pop .35s ease both;
  position: relative;
  overflow: hidden;
}
.do-item:not(.on) {
  background: var(--canvas);
  border-color: var(--line);
  opacity: 0.92;
}
.do-item.here {
  border-color: var(--primary);
  box-shadow: inset 3px 0 0 var(--primary);
  opacity: 1;
}
.do-item.do-pulse {
  animation: do-pulse-flash .65s ease;
}
.do-go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed rgba(13, 107, 86, 0.22);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--primary-deep);
}
.do-item:not(.on) .do-go {
  border-top-color: var(--line);
  color: var(--muted);
}
.do-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  transition: transform .18s ease, background .18s ease;
}
a.do-item:hover .do-arrow {
  transform: translateX(3px);
  background: var(--primary-deep);
}
.do-item.here .do-arrow {
  background: #fff;
  color: var(--primary-deep);
  border: 1px solid var(--primary);
  transform: none;
}

@keyframes do-pulse-flash {
  0% { box-shadow: 0 0 0 0 rgba(37, 204, 104, 0.45); }
  40% { box-shadow: 0 0 0 8px rgba(37, 204, 104, 0.12); }
  100% { box-shadow: none; }
}

/* Teleport toast after DO jump */
.do-jump-toast {
  position: fixed;
  right: calc(var(--guide-w, 300px) + 16px);
  bottom: 20px;
  z-index: 80;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 240px;
  max-width: min(340px, calc(100vw - var(--guide-w, 300px) - 32px));
  background: #fff;
  border: 1px solid #cfe9d8;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(26, 46, 40, 0.16);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity .22s ease, transform .22s ease;
  overflow: hidden;
}
.do-jump-toast.show {
  opacity: 1;
  transform: none;
}
.do-jump-rail {
  width: 5px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #32EF7E 0%, #25CC68 55%, #0d6b56 100%);
}
.do-jump-copy {
  flex: 1;
  padding: 12px 8px 12px 14px;
}
.do-jump-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 2px;
}
.do-jump-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.do-jump-hint {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}
.do-jump-x {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 10px 12px;
  cursor: pointer;
  align-self: flex-start;
}
.do-jump-x:hover { color: var(--ink); }

@media (max-width: 960px) {
  .do-jump-toast {
    right: 12px;
    left: 12px;
    max-width: none;
    bottom: 12px;
  }
}

.do-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 1px;
}
.do-check svg {
  display: block;
}
.do-item:not(.on) .do-check {
  background: #d0d5d8;
  color: #fff;
}
.do-top {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  margin-bottom: 3px;
}
.do-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  padding: 2px 7px;
}
.do-item:not(.on) .do-tag {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
}
.do-ref {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
}
.do-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.do-detail {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}
.do-divider {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 2px;
}
.do-more-btn {
  margin-top: 12px;
  width: 100%;
  border: 1px dashed #cfe9d8;
  background: #fff;
  color: var(--primary-deep);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.do-more-btn:hover { background: var(--primary-soft); }
.guide-empty {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.guide-pane .guide-foot {
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 10px;
  color: var(--muted);
  background: #fafafa;
  flex-shrink: 0;
}

@keyframes do-pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.guide-hot {
  outline: 2px solid var(--primary) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(37, 204, 104, 0.2) !important;
  position: relative;
  z-index: 2;
  border-radius: 8px;
}

/* —— Arrival banner (top of layout, after redirect) —— */
.arrival-banner {
  position: fixed;
  left: 0;
  right: var(--guide-w, 300px);
  top: calc(var(--proto-bar, 48px) + 12px);
  bottom: auto;
  z-index: 60;
  margin: 0;
  padding: 0 16px;
  background: transparent;
  opacity: 0;
  transform: translateY(-10px);
  transition: .22s ease;
  pointer-events: none;
  box-sizing: border-box;
}
.arrival-banner.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.arrival-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1c1c1c 0%, #243028 100%);
  color: #fff;
  border-radius: 16px;
  padding: 14px 44px 14px 16px;
  border: 1px solid rgba(50, 239, 126, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
.arrival-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #32EF7E;
  margin-bottom: 8px;
}
.arrival-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.arrival-from-chip,
.arrival-here-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  max-width: 100%;
}
.arrival-from-chip {
  background: rgba(255,255,255,.1);
  color: #c5c8cb;
}
.arrival-here-chip {
  background: rgba(50, 239, 126, 0.22);
  color: #32EF7E;
}
.arrival-arrow {
  color: #9aa3a8;
  font-weight: 700;
}
.arrival-blurb {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #dfe3e6;
}
.arrival-steps {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #c5c8cb;
}
.arrival-steps li { margin-bottom: 2px; }
.arrival-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.arrival-hint {
  font-size: 11px;
  color: #9aa3a8;
  flex: 1;
  min-width: 160px;
}
.arrival-got {
  border: none;
  background: var(--vs-gradient);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.arrival-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.arrival-x:hover { background: rgba(255,255,255,.18); }

/* Arrival is top-fixed; screen guide stays bottom-right floating */
body.has-arrival .screen-helper {
  bottom: 16px;
}
@keyframes helper-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(36, 36, 36, 0.12), 0 0 0 3px rgba(37, 204, 104, 0.35); }
  50% { box-shadow: 0 10px 28px rgba(36, 36, 36, 0.12), 0 0 0 6px rgba(37, 204, 104, 0.15); }
}

/* —— Floating click tip (same-page only) —— */
.spark-tip {
  position: fixed;
  z-index: 9999;
  width: min(300px, calc(100vw - 24px));
  background: #1c1c1c;
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px 12px;
  box-shadow:
    0 0 0 1px rgba(50, 239, 126, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: .18s ease;
  pointer-events: auto;
}
.spark-tip.show {
  opacity: 1;
  transform: none;
}
.spark-tip::before {
  content: "";
  position: absolute;
  left: var(--spark-caret, 22px);
  width: 12px;
  height: 12px;
  background: #1c1c1c;
  transform: rotate(45deg);
  border-left: 1px solid rgba(50, 239, 126, 0.35);
  border-top: 1px solid rgba(50, 239, 126, 0.35);
}
.spark-tip.spark-below::before {
  top: -6px;
  bottom: auto;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid rgba(50, 239, 126, 0.35);
  border-top: 1px solid rgba(50, 239, 126, 0.35);
}
.spark-tip.spark-above::before {
  top: auto;
  bottom: -6px;
  border-left: none;
  border-top: none;
  border-right: 1px solid rgba(50, 239, 126, 0.35);
  border-bottom: 1px solid rgba(50, 239, 126, 0.35);
}
.spark-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #32EF7E;
  margin-bottom: 4px;
}
.spark-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  padding-right: 22px;
}
.spark-body {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #c5c8cb;
}
.spark-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.spark-x:hover { background: rgba(255,255,255,.18); }
.spark-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}
.spark-got {
  border: none;
  background: var(--vs-gradient);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}

/* —— Floating screen helper (viewport-fixed) —— */
.screen-helper {
  position: fixed;
  right: calc(var(--guide-w, 300px) + 16px);
  bottom: 16px;
  z-index: 55;
  width: min(280px, calc(100vw - var(--guide-w, 300px) - 32px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(36, 36, 36, 0.16);
  overflow: hidden;
  animation: do-pop .4s ease both;
  pointer-events: auto;
}
/* Collapsed pill stays compact in the corner */
.screen-helper.collapsed {
  width: auto;
  min-width: 0;
}
.screen-helper-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.sh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 204, 104, 0.2);
  flex-shrink: 0;
}
.sh-label {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary-deep);
}
.sh-chev {
  color: var(--muted);
  display: inline-flex;
  transition: .15s;
}
.screen-helper.collapsed .sh-chev { transform: rotate(-90deg); }
.screen-helper.collapsed .screen-helper-body { display: none; }
.screen-helper-body {
  padding: 0 12px 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.sh-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.sh-blurb {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.sh-steps {
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.45;
}
.sh-steps li { margin-bottom: 3px; }
.sh-hint {
  margin: 0;
  font-size: 11px;
  color: var(--primary-deep);
  font-weight: 600;
}

/* Hub cards */
.hub-pov-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 960px;
}
.hub-pov-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  transition: border-color .15s, transform .15s;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.hub-pov-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.hub-pov-card .who {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 6px;
}
.hub-pov-card h2 { margin: 0 0 8px; font-size: 20px; }
.hub-pov-card p { margin: 0 0 12px; font-size: 13px; color: var(--muted); flex: 1; }
.hub-pov-card ul {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}
.hub-pov-card .thumb {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

@media (max-width: 1100px) {
  :root { --guide-w: 270px; }
}
@media (max-width: 900px) {
  .proto-layout { grid-template-columns: 1fr; }
  .guide-pane {
    position: relative;
    top: auto;
    max-height: none;
    min-height: auto;
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .proto-bar .pov-switch { justify-content: flex-start; overflow-x: auto; }
  .hub-pov-grid { grid-template-columns: 1fr; max-width: 400px; }
  .screen-helper {
    position: fixed;
    right: 12px;
    bottom: 12px;
    width: min(280px, calc(100vw - 24px));
  }
  .arrival-banner {
    right: 0;
    top: calc(var(--proto-bar, 48px) + 10px);
    bottom: auto;
  }
}
