/* guide.css — GuidedTour static styles.
   1:1 conversion of the React inline-style objects in
   apps/studio-demo/src/components/studio/GuidedTour.tsx (read-only reference).
   Anything dynamic (spot/tip/menu geometry, per-step tip width/padding/align,
   scrim opacity/visibility, swatch backgrounds, hover states) is JS-applied
   in guide.js, exactly like the source. LOCK_CSS is NOT here — guide.js
   injects it as a real <style> tag, byte-for-byte, like the source did. */

/* baseline the original inherited from Tailwind preflight via globals.css —
   scoped to the tour's own subtree so computed boxes match the source 1:1
   (no-op when chrome.css already provides the same global reset) */
#gd-root,
#gd-root * { box-sizing: border-box; }
#gd-root { line-height: 1.5; }
#gd-root button { margin: 0; line-height: inherit; text-transform: none; }

/* <div id="gd-root" style={{ fontFamily: 'var(--prizma-font-ui)' }}> */
#gd-root { font-family: var(--prizma-font-ui); }

/* welcome + finale scrim — darkens the whole app under the modal */
/* #gd-scrim is styled entirely inline by guide.js, like the source JSX
   (GuidedTour.tsx:744-756) — no stylesheet rule existed in the original. */

/* spotlight: scrim with a travelling hole — sits ABOVE the color picker so
   the hole can single out the purple swatch inside it.
   NOTE (bug preserved on purpose): the gd-pulse keyframes in LOCK_CSS animate
   box-shadow, so while pulsing they override the 9999px hole shadow below —
   the dim layer pulses away. Do NOT fix. */
#gd-spot {
  position: fixed;
  z-index: 2002;
  pointer-events: none;
  border-radius: 12px;
  border: 2px solid var(--prizma-surface-brand);
  box-shadow: 0 0 0 9999px rgba(10, 12, 16, 0.35);
  animation: gd-pulse 1.6s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.2s;
}

/* coach tip — width/padding/text-align swap per step (262/330/380) in JS */
#gd-tip {
  position: fixed;
  z-index: 2003;
  width: 262px;
  padding: 16px 18px;
  background: var(--prizma-surface-0);
  border: 1px solid var(--prizma-border-100);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.2s;
  text-align: left;
}

/* "Step n of 9" pill */
#gd-tip .gd-step-pill {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--prizma-surface-brand-50);
  font-size: 11px;
  font-weight: 500;
  color: var(--prizma-text-brand);
}

/* subtle ← Back */
#gd-tip .gd-back {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  padding: 2px;
  font-family: inherit;
  font-size: 11px;
  color: var(--prizma-text-tertiary);
  cursor: pointer;
}

/* intro card */
#gd-tip .gd-intro-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--prizma-surface-brand-50);
  font-size: 11px;
  font-weight: 500;
  color: var(--prizma-text-brand);
}
#gd-tip .gd-intro-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--prizma-text-primary);
}
#gd-tip .gd-intro-body {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--prizma-text-secondary);
}
#gd-tip .gd-intro-cta {
  margin-top: 20px;
  width: 100%;
  padding: 12px 0;
  border-radius: 999px;
  border: none;
  background: var(--prizma-surface-brand);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}
#gd-tip .gd-intro-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--prizma-text-tertiary);
}

/* finale card */
#gd-tip .gd-done-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--prizma-text-primary);
}
#gd-tip .gd-done-body {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--prizma-text-secondary);
}
#gd-tip .gd-done-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
#gd-tip .gd-done-replay {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--prizma-border-200);
  background: var(--prizma-surface-0);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--prizma-text-primary);
  cursor: pointer;
}
#gd-tip .gd-done-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--prizma-surface-brand);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}

/* per-step coach copy */
#gd-tip .gd-tip-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--prizma-text-primary);
}
#gd-tip .gd-tip-body {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--prizma-text-secondary);
}

/* logo-pick sample list */
#gd-tip .gd-samples {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
}
#gd-tip .gd-sample {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--prizma-text-primary);
  cursor: pointer;
  text-align: left;
}
#gd-tip .gd-sample-svg {
  width: 64px;
  height: 17px;
  display: block;
  line-height: 0;
}
#gd-tip .gd-sample-name { flex: 1; }
#gd-tip .gd-sample-size {
  font-size: 11px;
  color: var(--prizma-text-tertiary);
}

/* Finish — appears once ALL THREE platforms were reviewed */
#gd-tip .gd-finish {
  margin-top: 12px;
  width: 100%;
  padding: 9px 0;
  border-radius: 999px;
  border: none;
  background: var(--prizma-surface-brand);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}

/* anchored color picker — docks under the brand chip during step 5 */
#gd-menu {
  position: fixed;
  z-index: 2001;
  width: 196px;
  padding: 12px;
  background: var(--prizma-surface-0);
  border: 1px solid var(--prizma-border-200);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
}
#gd-menu .gd-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
#gd-menu .gd-menu-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--prizma-text-primary);
}
#gd-menu .gd-menu-hex {
  font-size: 11px;
  color: var(--prizma-text-tertiary);
}
#gd-menu .gd-menu-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
#gd-menu .gd-swatch {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
}
#gd-menu .gd-swatch-inert {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0.9;
}
