/* Page-specific adaptation of Loreline's vinyl, carry and pressed sticker styles. */
.home-page { position: relative; }
.home-page .header { position: relative; }
.peel-playground { padding-top: 40px; padding-bottom: 62px; }
.peel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.peel-heading .eyebrow { color: #164bff; margin-bottom: 9px; }
.peel-heading h2 { font-size: clamp(30px, 3vw, 42px); margin: 0 0 10px; letter-spacing: -.05em; line-height: 1.08; }
.peel-heading p:not(.eyebrow) { max-width: 610px; margin: 0; color: #596782; font-size: 14px; line-height: 1.55; }
.peel-tools { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.peel-tools button { font-size: 13px; min-height: 44px; white-space: nowrap; }
.peel-sheet { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 7vw, 92px); min-height: 218px;
  padding: 18px; background: #f0f4ff; border: 1px solid #e1e8ff; border-radius: 22px;
  background-image: radial-gradient(#d5dfff 1px, transparent 1px); background-size: 16px 16px; }
.peel-sticker { --peel-turn: 0deg; border: 0; padding: 0; border-radius: 14px; background: transparent; color: #121726;
  display: block; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.peel-on-sheet { position: relative; transition: opacity .18s ease; }
.peel-print { display: block; width: 100%; height: 100%; pointer-events: none;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff)
    drop-shadow(0 3px 2px #14264b38); }
.peel-on-sheet .peel-print, .peel-spot .peel-print { transform: rotate(calc(var(--peel-turn) + var(--peel-look, 0deg))); transition: transform .22s ease-out; }
.peel-caption { display: block; margin-top: 7px; text-align: center; font-size: 13px; font-weight: 700; }
.peel-on-sheet::after { content: '↗'; position: absolute; bottom: 26px; right: 12px; width: 25px; height: 25px;
  border-radius: 50%; background: #eaff40; color: #14213a; font: 700 16px/25px 'DM Sans', sans-serif;
  box-shadow: 0 2px 4px #14264b20; pointer-events: none; }
.peel-taken { opacity: 0; }
.peel-layer { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 18; pointer-events: none; }
.peel-floating { position: absolute; transform: translate(-50%, -50%) rotate(calc(var(--peel-turn) + var(--peel-look, 0deg)));
  transition: transform .22s ease-out; pointer-events: auto; }
.peel-floating:hover { cursor: grab; }
.peel-floating .peel-print { width: 100%; height: 100%; }
.peel-lifted { visibility: hidden !important; }
.peel-logo-source { cursor: grab; touch-action: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.peel-logo-away { opacity: .14; }
.peel-hand { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 80; pointer-events: none; }
.peel-hand[hidden] { display: none; }
.peel-fallback { position: fixed; z-index: 80; pointer-events: none; transform: translate(-50%, -50%) rotate(var(--peel-turn, 0deg)); }
.peel-fallback .peel-print { transform: perspective(700px) rotateX(-10deg) rotateY(8deg) scale(1.03);
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff)
    drop-shadow(0 12px 8px #172c554f); }
.peel-fallback::after { content: ''; position: absolute; right: 23%; top: 20%; width: 21%; height: 16%;
  background: linear-gradient(135deg, #fffef5, #c9c7bc); clip-path: polygon(100% 0, 100% 100%, 0 0);
  box-shadow: -4px 5px 5px #172c5540; transform: rotate(-12deg); }
body.peel-active, body.peel-active * { user-select: none; -webkit-user-select: none; cursor: grabbing !important; }
.peel-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (hover: hover) {
  .peel-on-sheet:hover:not(.peel-taken) .peel-print, .peel-spot:hover:not(.peel-taken) .peel-print {
    transform: translateY(-5px) rotate(calc(var(--peel-turn) + var(--peel-look, 0deg))) scale(1.04); }
}
/* Emotion stickers further down the page: each hangs over a card corner and peels like the sheet. */
.peel-spot-anchor { position: relative; height: 1px; margin-bottom: -1px; }
.peel-spot-host { position: relative; }
.peel-spot { position: absolute; z-index: 3; }
.peel-spot-guarantee { right: -26px; top: -70px; }
.peel-spot-packs { right: -28px; top: -80px; }
.peel-spot-faq { left: 0; bottom: -10px; }
@media (min-width: 1001px) {
  /* The signed card spans the row: its sticker sits on the right edge, half on the page margin
     (as far as the margin allows), and the text keeps clear of it. */
  .guarantee li.peel-spot-host { padding-right: 150px; }
  .peel-spot-guarantee { top: calc(50% - 92px); right: max(-100px, calc((100% - 100vw) / 2 + 24px)); }
  .peel-spot-packs { right: max(-90px, calc((100% - 100vw) / 2 + 24px)); top: -120px; }
}
/* A sticker dropped on the studio phone: a short thread over the chat, the demo sticker
   stepping aside, and the partner's answer with a Telegram-style button under it. */
#studio .demo-stage.peel-chat-target .phone { outline: 4px solid #eaff40; outline-offset: 3px; }
#studio .demo-stage.peel-chat-target .phone-send { background: #2a7cf6; }
#studio .demo-stage.peel-chatting > picture > #demo-poster, #studio .demo-stage.peel-chatting > #demo-poster,
#studio .demo-stage.peel-chatting > canvas, #studio .demo-stage.peel-chatting .chat-time {
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
#studio .demo-stage .peel-thread { position: absolute; z-index: 4; left: calc((100cqw - var(--phone-w)) / 2 + 16px);
  right: var(--sq-right); top: calc(var(--phone-top) + 150px); bottom: calc(var(--sq-bottom) - 30px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 28px); mask-image: linear-gradient(transparent, #000 28px); }
.peel-message { margin: 0; display: flex; flex-direction: column; flex: none; max-width: 100%; }
.peel-message.is-out { align-self: flex-end; align-items: flex-end; }
.peel-message.is-in { align-self: flex-start; align-items: flex-start; }
.peel-message canvas { display: block; width: calc(var(--sq) * .62); height: calc(var(--sq) * .62); }
.peel-message.is-pending { visibility: hidden; }
.peel-message.is-arriving { animation: peel-arrive .5s cubic-bezier(.2, 1.4, .4, 1); transform-origin: 0 100%; }
@keyframes peel-arrive { from { opacity: 0; transform: scale(.6) translateY(14px); } }
.peel-message time { margin-top: -10px; padding: 2px 8px; border-radius: 10px; background: #fff; color: #7a8794;
  font-size: 11px; line-height: 16px; box-shadow: 0 1px 1px #0000001a; }
.peel-message.is-out time { margin-right: 6px; }
.peel-message.is-in time { margin-left: 6px; }
.peel-chat-cta { pointer-events: auto; margin-top: 8px; padding: 9px 14px; border-radius: 12px; background: #ffffffeb;
  color: #2a7cf6; font-size: 14px; font-weight: 700; line-height: 1.3; text-decoration: none; box-shadow: 0 1px 2px #0000001f; }
.peel-chat-cta:hover { background: #fff; text-decoration: underline; }
.peel-chat-cta:focus-visible { outline: 3px solid #164bff; outline-offset: 2px; }
#studio .demo-stage:has(.phone[data-chat=dark]) .peel-message time { background: #182533; color: #7d8b99; box-shadow: none; }
#studio .demo-stage:has(.phone[data-chat=dark]) .peel-chat-cta { background: #182533eb; color: #6ab3f3; box-shadow: none; }
.peel-chat-hint { margin-top: 8px !important; font-weight: 700; color: #164bff !important; }
@media (prefers-color-scheme: dark) {
  .peel-heading p:not(.eyebrow) { color: #a9b5c8; }
  .peel-chat-hint { color: #8fb0ff !important; }
}
/* On a phone the stage is the chat itself: the thread runs between the first bubble and the compose bar. */
@media (max-width: 700px) {
  #studio .demo-stage .peel-thread { left: 12px; right: 12px; top: 160px; bottom: calc(var(--compose) + 6px); }
  .peel-message canvas { width: min(calc(var(--sq) * .62), 92px); height: min(calc(var(--sq) * .62), 92px); }
  /* Two on a phone: on the personal guarantee card and beside the FAQ title, inside the page margins. */
  .peel-spot-guarantee { right: -10px; top: -104px; }
  /* One column: the card above reaches the right edge, so the sticker gets its own space. */
  .guarantee li.peel-spot-host { margin-top: 92px; }
  .peel-spot-packs { display: none; }
  .peel-spot-faq { left: auto; right: -6px; bottom: auto; top: -96px; }
}
@media (max-width: 760px) {
  .peel-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .peel-tools { gap: 20px; }
  .peel-sheet { gap: 7px; min-height: 158px; padding: 15px 0; border-radius: 16px; }
  .peel-on-sheet::after { right: 1px; bottom: 25px; width: 21px; height: 21px; font-size: 13px; line-height: 21px; }
  .peel-caption { font-size: 11px; }
  .peel-playground { padding-top: 18px; padding-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .peel-sticker, .peel-on-sheet .peel-print, .peel-spot .peel-print { transition: none !important; }
  .peel-message.is-arriving { animation: none; }
  .peel-on-sheet:hover:not(.peel-taken) .peel-print, .peel-spot:hover:not(.peel-taken) .peel-print,
  .peel-fallback .peel-print { transform: none; }
  .peel-fallback::after { display: none; }
}
/* Also reflect the live JS preference so gesture fallback and an immediate OS
   preference change stay consistent before the next media-query repaint. */
.home-page[data-peel-motion="reduced"] .peel-sticker,
.home-page[data-peel-motion="reduced"] .peel-on-sheet .peel-print,
.home-page[data-peel-motion="reduced"] .peel-spot .peel-print { transition: none !important; }
.home-page[data-peel-motion="reduced"] .peel-on-sheet:hover:not(.peel-taken) .peel-print,
.home-page[data-peel-motion="reduced"] .peel-spot:hover:not(.peel-taken) .peel-print,
.home-page[data-peel-motion="reduced"] .peel-fallback .peel-print { transform: none; }
.home-page[data-peel-motion="reduced"] .peel-fallback::after { display: none; }
