/* Smile4U v8 · dock cards: the privacy note (js/core/consent.js) and the side intro card (js/core/intro.js).
   makro card language: paper, radius 24 (= the small button's 12 + the 12 inset: concentric), no border; a soft night
   shadow lifts it off photo and mist alike. Bottom right, 24 from the edges (phones: above the bottom bar). One at a time. */
.dock-card {
  position: fixed; z-index: 60; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--paper); color: var(--ink); border-radius: var(--r-lg);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--night) 6%, transparent), 0 18px 40px -18px color-mix(in srgb, var(--night) 32%, transparent);
  opacity: 0; transform: translate3d(0, 18px, 0) scale(.96); transform-origin: right bottom;
  transition: opacity .45s var(--ease-ui), transform .9s var(--spring-enter);
}
.dock-card.show { opacity: 1; transform: none; }
/* exit: quicker, accelerating, a short drop: reads as leaving, not a rewind */
.dock-card.out { opacity: 0; transform: translate3d(0, 10px, 0) scale(.98); transition: opacity .32s cubic-bezier(.4, 0, 1, 1), transform .38s cubic-bezier(.4, 0, 1, 1); }

/* ---- the privacy note ---- */
.note { width: min(360px, calc(100vw - 48px)); padding: 24px; }
.note-p { font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--ink); }
.note-p2 { margin-top: 8px; color: var(--ink-75); }
.note-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.note-link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-ui); color: var(--blue-deep); text-underline-offset: .2em; }
.note-ok { flex: none; }

/* ---- the intro card: question + payoff + v8's own small button ---- */
.intro { display: flex; align-items: center; gap: 20px; padding: 12px 12px 12px 24px; }
.in-q { position: relative; display: inline-block; font-size: var(--fs-h5); line-height: 1.3; letter-spacing: var(--ls-h5); white-space: nowrap; padding-bottom: 6px; }
.in-ghost { visibility: hidden; }
.in-live { position: absolute; left: 0; top: 0; }
.in-u { position: relative; display: inline-block; }
.in-mark { position: absolute; left: -.04em; right: -.06em; overflow: visible; pointer-events: none; }
.in-mark--rule { bottom: -4px; height: 2px; width: calc(100% + .1em); }
.in-mark--heartbeat { bottom: -10px; height: .8em; width: calc(100% + .1em); }
.in-mark path { fill: none; stroke: var(--lime); stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease-scroll); }
.in-mark--heartbeat path { stroke: var(--blue); }
.intro.lit .in-mark path { stroke-dashoffset: 0; }
.in-caret { display: inline-block; width: 1.5px; height: .92em; margin-left: 2px; vertical-align: -.1em; background: var(--ink); }
.intro.idle .in-caret { animation: in-blink 1s steps(1) infinite; }
.intro.lit .in-caret { opacity: 0; transition: opacity .2s; }
@keyframes in-blink { 50% { opacity: 0; } }
/* the button is wiped in after the payoff, then unclipped so its own hover (lime fill) shows in full */
.in-gw { display: inline-flex; clip-path: inset(0 100% 0 0 round 12px); opacity: 0; transition: clip-path .72s cubic-bezier(.5, 0, .15, 1) .45s, opacity .18s linear .45s; }
.intro.lit .in-gw { clip-path: inset(0 0 0 0 round 12px); opacity: 1; }
.intro.wiped .in-gw { clip-path: none; transition: none; }

@media (max-width: 809.98px) {
  .dock-card { right: 8px; left: 8px; bottom: calc(var(--bar-h) + 8px + env(safe-area-inset-bottom, 0px)); width: auto; }
  /* the intro card on phones (phone round C): a compact pill-row at the right edge, sized to its content, above the bar;
     it arrives with a short fade and 8 px rise (no scale), the line set at once, the button already there */
  .dock-card.intro--p { left: auto; max-width: calc(100vw - 16px); border-radius: 16px;   /* 12 + the 4 inset: concentric */ padding: 4px 4px 4px 16px; gap: 6px 12px;
    flex-wrap: wrap; justify-content: flex-end; transform: translate3d(0, 8px, 0);
    transition: opacity .3s var(--ease-ui), transform .4s var(--ease-ui); }
  .dock-card.intro--p.show { transform: none; }
  .intro--p .in-q { font-size: 16px; padding-bottom: 4px; }
  .intro--p .in-caret { display: none; }
  .intro--p .in-gw { clip-path: none; opacity: 1; transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dock-card, .dock-card *, .in-mark path { transition-duration: .01ms !important; animation: none !important; }
}
