/* The demo page around the kit (app/web/kit.html): the Patchwork bar above
   it, the line below it and, on a phone, the note with the rebrand loop in
   its place. In the website's own style: Nunito, the ground #1C1C1C, cream
   type, one orange mark, the green button, the stitch as a dashed line.
   Nothing here moves. */
@font-face { font-family: 'Nunito'; src: url('fonts/Nunito-VariableFont_wght.woff') format('woff'); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  --pw-ground: #1c1c1c; --pw-cream: #fae7cd; --pw-orange: #d76b2b; --pw-gold: #f6c654; --pw-green: #7dad6e;
  --pw-bar-h: 44px; --pw-foot-h: 28px;
}

.pw-bar {
  position: relative; z-index: 30; height: var(--pw-bar-h); display: flex; align-items: center; gap: 20px; padding: 0 16px;
  background: var(--pw-ground); color: var(--pw-cream); border-bottom: 1.5px dashed rgba(250, 231, 205, .35);
  font: 700 13px/1 'Nunito', system-ui, sans-serif;
}
.pw-bar a { color: inherit; text-decoration: none; }
.pw-home { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.pw-home img { display: block; width: 34px; height: auto; }
.pw-kits { display: flex; gap: 4px; margin-left: auto; }
.pw-kits a { padding: 8px 12px; white-space: nowrap; opacity: .7; }
.pw-kits a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--pw-orange); }
.pw-cta { padding: 9px 14px; border-radius: 999px; background: var(--pw-green); color: var(--pw-ground) !important; font-weight: 800; white-space: nowrap; }

.pw-kit { position: relative; height: calc(100% - var(--pw-bar-h) - var(--pw-foot-h)); }
.pw-error { margin: 0; padding: 48px 24px; text-align: center; color: var(--text); }

.pw-foot {
  height: var(--pw-foot-h); display: flex; align-items: center; justify-content: center; padding: 0 16px;
  background: var(--pw-ground); color: rgba(250, 231, 205, .75); font: 600 12px/1.2 'Nunito', system-ui, sans-serif; text-align: center;
}

/* A phone: the note and the loop in the kit's place. */
.pw-phone[hidden] { display: none; }
html[data-phone], html[data-phone] body { height: auto; overflow: auto; background: var(--pw-ground); }
/* The note carries the mark, the button and the link, so the bar goes too. */
html[data-phone] .pw-kit, html[data-phone] .pw-foot, html[data-phone] .pw-bar { display: none; }
.pw-phone {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 16px 48px; text-align: center;
  color: var(--pw-cream); font: 600 16px/1.45 'Nunito', system-ui, sans-serif;
}
.pw-phone h1 { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -.01em; }
.pw-phone p { margin: 0; max-width: 34em; }
.pw-phone .pw-eyebrow { color: var(--pw-gold); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pw-phone video { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 12px; }
.pw-phone a { color: var(--pw-cream); }
.pw-phone .pw-cta { color: var(--pw-ground); text-decoration: none; }

/* The tips (app/web/tour.mjs): Patchwork's own voice over either kit, so in
   the bar's dress. The page dims around one lit part at a time; the tip
   fades out fully before the light moves, and the next fades in after it. */
.pw-tips {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 5px; border: 1.5px solid rgba(250, 231, 205, .5);
  border-radius: 999px; background: none; color: var(--pw-cream); font: 700 13px/1 'Nunito', system-ui, sans-serif; white-space: nowrap; cursor: pointer;
}
.pw-tips:hover { border-color: var(--pw-cream); }
.pw-tips[hidden] { display: none; }
.pw-tips span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--pw-cream); color: var(--pw-ground); font-size: 12px; font-weight: 900; }

.pw-tour { position: fixed; inset: 0; z-index: 1000; pointer-events: none; transition: opacity .16s; }
.pw-tour[hidden] { display: none; }
.pw-tour.out { opacity: 0; }
.pw-tour-block { position: fixed; pointer-events: auto; }
.pw-tour-ring {
  position: fixed; box-sizing: border-box; border: 3px solid var(--pw-orange); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(28, 28, 28, .5);
  pointer-events: none; transition: left .26s ease, top .26s ease, width .26s ease, height .26s ease, border-width .26s;
}
.pw-tour-ring.bare { border-width: 0; }
/* The light pulses while its tip is up, so the eye finds it at once
   (Chadley, 2026-10-24: "users might search the screen before seeing where
   it is"): an orange ring grows from its edge and fades, as the Social Kit
   page's play badges do (2.4 s, ease-out, gone by 70%). Not on the welcome,
   which lights nothing, and not while the light moves. */
.pw-tour-ring::after { content: ''; position: absolute; inset: -3px; border-radius: inherit; pointer-events: none; animation: pwTourPulse 2.4s ease-out infinite; }
.pw-tour-ring.bare::after, .pw-tour-ring.moving::after { animation: none; }
@keyframes pwTourPulse {
  0% { box-shadow: 0 0 0 0 rgba(215, 107, 43, .6); }
  70% { box-shadow: 0 0 0 14px rgba(215, 107, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(215, 107, 43, 0); }
}
.pw-tour-card {
  position: fixed; box-sizing: border-box; width: 320px; padding: 18px 20px 16px; border-radius: 14px; background: var(--pw-ground); color: var(--pw-cream);
  font: 600 16px/1.42 'Nunito', system-ui, sans-serif; box-shadow: 0 14px 36px rgba(0, 0, 0, .4); pointer-events: auto; opacity: 0; transition: opacity .16s;
}
.pw-tour-card.in { opacity: 1; }
.pw-tour-card::before { content: ''; position: absolute; inset: 5px; border: 1.5px dashed rgba(250, 231, 205, .38); border-radius: 10px; pointer-events: none; }
.pw-tour-card::after { content: ''; position: absolute; width: 0; height: 0; border: 9px solid transparent; }
.pw-tour-card[data-side="right"]::after { left: -9px; top: calc(var(--arrow) - 9px); border-left: 0; border-right-color: var(--pw-ground); }
.pw-tour-card[data-side="left"]::after { right: -9px; top: calc(var(--arrow) - 9px); border-right: 0; border-left-color: var(--pw-ground); }
.pw-tour-card[data-side="below"]::after { top: -9px; left: calc(var(--arrow) - 9px); border-top: 0; border-bottom-color: var(--pw-ground); }
.pw-tour-card[data-side="above"]::after { bottom: -9px; left: calc(var(--arrow) - 9px); border-bottom: 0; border-top-color: var(--pw-ground); }
.pw-tour-card[data-side="none"]::after { display: none; }
.pw-tour-count { margin: 0 0 6px; color: var(--pw-gold); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pw-tour-text { margin: 0; }
.pw-tour-row { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 14px; }
.pw-tour-row button { border: 0; font: 800 14px/1 'Nunito', system-ui, sans-serif; cursor: pointer; }
.pw-tour-skip { padding: 8px 4px; background: none; color: var(--pw-cream); opacity: .75; }
.pw-tour-skip:hover { opacity: 1; }
.pw-tour-next { padding: 9px 18px; border-radius: 999px; background: var(--pw-orange); color: #fff; }
.pw-tour-row button:focus-visible { outline: 2px solid var(--pw-gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .pw-tour, .pw-tour-ring, .pw-tour-card { transition: none; }
  .pw-tour-ring::after { animation: none; }
}
