/* Visit pop-up and corner reminder. Spec: design-plans/visit-popup/DESIGN.md
   Anatomy follows the shadcn/ui Dialog: overlay, content, title, description, footer, close. */
.vp-root, .vp-corner { --ink: #16130f; --paper: #f6f6f5; --stone: #ebeae6; --muted: rgba(22,19,15,.64); --hl: oklch(0.9 0.085 88 / .62); font-family: "Geist", "Helvetica Neue", Arial, sans-serif; color: var(--ink); }
.vp-root[hidden] { display: none; }

/* overlay */
.vp-overlay { position: fixed; inset: 0; z-index: 9990; background: rgba(22,19,15,.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .28s ease; }
.vp-root[data-state="open"] .vp-overlay { opacity: 1; }
.vp-root[data-layout="c"] .vp-overlay { display: none; }

/* content */
.vp-dialog { position: fixed; z-index: 9991; left: 50%; top: 50%; translate: -50% calc(-50% + 12px); opacity: 0; transition: opacity .28s ease, translate .28s cubic-bezier(.2,.7,.2,1); background: #fff; border-radius: 20px; box-shadow: 0 1px 2px rgba(22,19,15,.06), 0 40px 90px -40px rgba(22,19,15,.45); overflow: hidden; }
.vp-root[data-state="open"] .vp-dialog { opacity: 1; translate: -50% -50%; }
.vp-dialog:focus { outline: none; }

.vp-photo { margin: 0; overflow: hidden; background: var(--stone); }
.vp-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 68% 40%; }

.vp-copy { display: flex; flex-direction: column; }
.vp-title { margin: 0; font-family: "MADE Awelier", Georgia, serif; font-weight: 300; font-size: clamp(31.5px, 2.91vw, 42.5px); line-height: 1.06; letter-spacing: -0.012em; text-wrap: balance; }
.vp-title mark { color: inherit; background: linear-gradient(transparent 46%, var(--hl) 46%, var(--hl) 94%, transparent 94%); padding: 0 .1em; margin: 0 -.1em; border-radius: 2px; }
.vp-desc { margin: 14px 0 0; text-wrap: pretty; font-size: 17.5px; line-height: 1.6; color: var(--muted); max-width: 38ch; }
.vp-desc b { font-family: "MADE Awelier", Georgia, serif; font-weight: 500; font-size: 1.16em; line-height: 1; letter-spacing: -0.005em; color: var(--ink); }
.vp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.vp-actions .dd-cta { margin: 0; }
.vp-link { color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.vp-link:hover { text-decoration-thickness: 2px; }
.vp-later { margin-top: 22px; align-self: flex-start; border: 0; background: none; padding: 6px 0; font: inherit; font-size: 15px; color: var(--muted); cursor: pointer; }
.vp-later span { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.vp-later:hover span { text-decoration-thickness: 2px; }
.vp-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background .18s ease; }
.vp-close:hover { background: var(--stone); }
.vp-close svg { width: 14px; height: 14px; }
.vp-root :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* A: split card */
.vp-root[data-layout="a"] .vp-dialog { width: min(860px, calc(100vw - 48px)); display: grid; grid-template-columns: 44% 1fr; }
.vp-root[data-layout="a"] .vp-photo { margin: 12px; border-radius: 14px; min-height: 440px; }
.vp-root[data-layout="a"] .vp-copy { padding: 52px 44px 36px 32px; justify-content: center; }

/* B: photo with an overlapping card */
.vp-root[data-layout="b"] .vp-dialog { width: min(980px, calc(100vw - 48px)); height: min(560px, calc(100vh - 64px)); background: var(--stone); }
.vp-root[data-layout="b"] .vp-photo { position: absolute; inset: 0; }
.vp-root[data-layout="b"] .vp-photo img { object-position: 70% 40%; }
.vp-root[data-layout="b"] .vp-copy { position: absolute; left: 18px; top: 18px; bottom: 18px; width: min(420px, 46%); background: #fff; border-radius: 16px; padding: 44px 36px 28px; justify-content: center; }
.vp-root[data-layout="b"] .vp-close { top: 30px; right: 30px; background: var(--stone); }

/* B: copy on top, then a footer where Mr. Opo stands beside "Keep browsing", split by a hairline */
.vp-root[data-layout="b"] .vp-copy { justify-content: flex-start; width: min(460px, 48%); padding: 48px 40px 28px; }
.vp-root[data-layout="b"] .vp-actions { flex-wrap: wrap; align-items: center; gap: 14px 40px; margin: auto 0; padding: 24px 0; }
.vp-foot { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--stone); }
.vp-foot .vp-later { align-self: center; margin: 0; }
.vp-mascot { flex: none; margin: 0 -6px 0 -14px; pointer-events: none; }
.vp-mascot .vp-opo { width: 72px; height: 86px; }
.vp-desc b { white-space: nowrap; }

/* C: non-blocking corner card */
.vp-root[data-layout="c"] .vp-dialog { left: auto; top: auto; right: 24px; bottom: 24px; translate: 0 16px; width: min(440px, calc(100vw - 32px)); display: grid; grid-template-columns: 132px 1fr; border-radius: 22px; }
.vp-root[data-layout="c"][data-state="open"] .vp-dialog { translate: 0 0; }
.vp-root[data-layout="c"] .vp-photo { margin: 10px; border-radius: 14px; }
.vp-root[data-layout="c"] .vp-copy { padding: 24px 22px 18px 6px; }
.vp-root[data-layout="c"] .vp-title { font-size: 27px; padding-right: 26px; }
.vp-root[data-layout="c"] .vp-desc { font-size: 15px; margin-top: 8px; }
.vp-root[data-layout="c"] .vp-actions { margin-top: 16px; gap: 10px 18px; }
.vp-root[data-layout="c"] .vp-actions .dd-cta { padding: 9px 16px 8px; font-size: 11px; }
.vp-root[data-layout="c"] .vp-later { margin-top: 10px; font-size: 14px; }
.vp-root[data-layout="c"] .vp-close { top: 10px; right: 10px; width: 30px; height: 30px; background: var(--stone); }

/* phones: a bottom sheet with a photo band */
@media (max-width: 720px) {
  .vp-root .vp-dialog, .vp-root[data-layout] .vp-dialog { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; height: auto; translate: 0 24px; display: block; border-radius: 22px; background: #fff; }
  .vp-root[data-state="open"] .vp-dialog { translate: 0 0; }
  .vp-root[data-layout] .vp-photo { position: static; margin: 8px; border-radius: 16px; height: 168px; min-height: 0; }
  .vp-root[data-layout] .vp-copy { position: static; width: auto; padding: 18px 22px 20px; background: none; }
  .vp-root[data-layout] .vp-title { font-size: 29px; }
  .vp-root[data-layout] .vp-close { top: 16px; right: 16px; background: rgba(255,255,255,.92); }
  .vp-root[data-layout="c"] .vp-overlay { display: block; }
  .vp-mascot { display: none; }
}

/* corner reminder */
.vp-corner { position: fixed; right: max(20px, calc(env(safe-area-inset-right) + 16px)); bottom: max(20px, calc(env(safe-area-inset-bottom) + 16px)); z-index: 9980; display: flex; align-items: flex-end; gap: 6px; opacity: 0; translate: 0 14px; pointer-events: none; transition: opacity .36s ease, translate .36s cubic-bezier(.2,.7,.2,1); }
.vp-corner.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.vp-corner.is-fresh .vp-note, .vp-corner.is-fresh:not(.is-tucked) .vp-mini { display: none !important; }
.vp-open { border: 0; background: none; padding: 0; min-width: 44px; min-height: 44px; font: inherit; color: var(--ink); cursor: pointer; display: flex; align-items: flex-end; gap: 4px; }
.vp-hide { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(22,19,15,.12); display: grid; place-items: center; cursor: pointer; color: var(--muted); align-self: flex-start; }
.vp-hide svg { width: 9px; height: 9px; }
.vp-hide:hover { color: var(--ink); }

.vp-pill { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 8px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(22,19,15,.06), 0 18px 40px -20px rgba(22,19,15,.4); font-size: 15px; font-weight: 500; white-space: nowrap; transition: translate .2s ease; }
.vp-pill .vp-dot { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; }
.vp-pill .vp-dot img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 35%; }
.vp-open:hover .vp-pill { translate: 0 -2px; }

/* Still curious? note: a small card beside Mr. Opo, with its own start button */
/* The preview board keeps its original note arrangement. */
html[data-vp-board] .vp-corner:has(.vp-note) { right: auto; left: var(--vp-corner-left, 24px); bottom: var(--vp-corner-bottom, 24px); flex-direction: row-reverse; }
/* Keep the desktop hero placement until the note tucks away. */
@media (min-width: 1100px) {
  html:not([data-vp="friend"]) .vp-corner.is-hero:not(.is-tucked):has(.vp-note), html[data-vp-board] .vp-corner:has(.vp-note) { left: var(--vp-corner-left, calc(50vw - 584px)); right: auto; bottom: 100px; }
  html[data-hero="left"]:not([data-vp="friend"]) .vp-corner.is-hero:not(.is-tucked):has(.vp-note) { left: auto; right: 16px; bottom: 80px; flex-direction: row; }
}
.vp-hopper .vp-opo { width: 80px; height: 96px; }
.vp-note { position: relative; margin: 0 0 46px -8px; padding: 15px 38px 15px 16px; border-radius: 16px 16px 16px 5px; background: #fff; box-shadow: 0 1px 2px rgba(22,19,15,.06), 0 22px 44px -22px rgba(22,19,15,.42); text-align: left; }
.vp-note-title { margin: 0; font-family: "MADE Awelier", Georgia, serif; font-weight: 400; font-size: 18.5px; line-height: 1.15; letter-spacing: -0.01em; }
.vp-note-line { margin: 4px 0 12px; font-size: 14px; line-height: 1.45; color: var(--muted); white-space: nowrap; }
.vp-note-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #f6f6f5; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: background .18s ease; }
.vp-note-btn svg { width: 16px; height: 7px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: translate .18s ease; }
.vp-note-btn:hover { background: oklch(0.32 0.01 70); }
.vp-note-btn:hover svg { translate: 3px 0; }
.vp-note .vp-hide { position: absolute; top: 11px; right: 11px; width: 22px; height: 22px; box-shadow: none; background: var(--stone); }
.vp-note .vp-hide::after { content: ""; position: absolute; inset: -11px; }
/* shared bits of the three note designs (?note=a|b|c) */
.vp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vp-note-talk { color: var(--ink); font-weight: 500; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.vp-note-talk:hover { text-decoration-thickness: 2px; }
.vp-note form { display: flex; align-items: center; }
.vp-note form input { flex: 1; min-width: 0; border: 0; background: none; font: 400 13.5px/1 "Geist", sans-serif; color: var(--ink); outline: none; }
.vp-note form input::placeholder { color: rgba(22,19,15,.5); }
.vp-note form button { flex: none; display: grid; place-items: center; border: 0; cursor: pointer; color: var(--ink); background: none; }
.vp-note form button svg { width: 13px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: translate .18s ease; }
.vp-note form button:hover svg { translate: 2px 0; }
.vp-note[data-note] { padding: 13px 34px 14px 14px; }
.vp-note[data-note] .vp-note-title { font-size: 17.5px; }
.vp-note[data-note] .vp-note-line { margin: 3px 0 10px; font-size: 13.5px; }
.vp-note[data-note] .vp-note-btn { min-height: 30px; padding: 0 13px; font-size: 10.5px; }
.vp-note[data-note] .vp-hide { top: 9px; right: 9px; width: 20px; height: 20px; }

/* A: "Email me instead" swaps the button for an email field in the same spot */
.vp-na-alt { margin: 9px 0 0; display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.vp-na-toggle { border: 0; padding: 0; background: none; font: 500 13px/1.4 "Geist", sans-serif; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.vp-na-toggle:hover { text-decoration-thickness: 2px; }
.vp-na-form { display: none; align-items: center; gap: 10px; }
.vp-note.is-mail .vp-na-main { display: none; }
.vp-note.is-mail .vp-na-form { display: flex; }
.vp-na-mail { width: 178px; height: 30px; padding: 0 3px 0 12px; border-radius: 999px; background: var(--stone); }
.vp-na-mail:focus-within { box-shadow: 0 0 0 1.5px var(--ink); }
.vp-na-mail button { width: 24px; height: 24px; border-radius: 50%; background: var(--ink) !important; color: #f6f6f5 !important; }
.vp-na-back { border: 0; padding: 0; background: none; font: 500 13px/1 "Geist", sans-serif; color: var(--muted); cursor: pointer; }
.vp-na-back:hover { color: var(--ink); }

/* B: Talk to us beside the button, email in a quiet strip along the bottom of the card */

.vp-nb-row { display: flex; align-items: center; gap: 14px; font-size: 13.5px; }
/* field beats from Refero (New Yorker, Phrase, Voicenotes, Luma sign-ups): a visible label above,
   a white field with a real border, the send button joined to its edge, an email-shaped placeholder */
.vp-nb-foot { margin: 14px 0 0; }
.vp-nb-label { display: block; margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.vp-note form.vp-nb-mail { height: 32px; padding: 0 4px 0 10px; border: 1px solid rgba(22,19,15,.22); border-radius: 8px; background: #fff; cursor: text; transition: border-color .18s ease; }
.vp-note form.vp-nb-mail:hover { border-color: rgba(22,19,15,.45); }
.vp-note form.vp-nb-mail:focus-within { border-color: var(--ink); }
.vp-nb-mail input { height: 100%; font-size: 13.5px !important; }
.vp-note form.vp-nb-mail button { width: 26px; height: 26px; border-radius: 6px; }
.vp-note form.vp-nb-mail button:hover, .vp-note form.vp-nb-mail button:focus-visible { background: var(--stone); outline: none; }

/* C: Talk to us sits inside the sentence, email is one underlined line under the button */
.vp-note[data-note="c"] .vp-note-talk { font-size: inherit; color: var(--ink); }
.vp-nc-mail { margin-top: 11px; height: 28px; border-bottom: 1px solid rgba(22,19,15,.28); transition: border-color .18s ease; }
.vp-nc-mail:focus-within { border-bottom-color: var(--ink); }
.vp-nc-mail input { font-size: 13px; }
.vp-nc-mail button { width: 22px; height: 22px; }

/* tucked: after scrolling down the note folds away and Mr. Opo shrinks into the corner */
.vp-note { transform-origin: 0% 100%; transition: opacity .22s ease, scale .32s cubic-bezier(.2,.7,.2,1), visibility 0s linear 0s; }
html[data-hero="left"] .vp-note { transform-origin: 100% 100%; }
html:not([data-vp-board]) .vp-note { position: absolute; left: auto; right: 66px; bottom: 46px; margin: 0; border-radius: 14px 14px 4px 14px; transform-origin: 100% 100%; }
@media (min-width: 1100px) {
  html:not([data-vp="friend"]):not([data-vp-board]) .vp-corner.is-hero:not(.is-tucked) .vp-note { position: relative; right: auto; bottom: auto; margin: 0 -8px 46px 0; }
}
.vp-corner.is-tucked .vp-note { opacity: 0; scale: .9; visibility: hidden; pointer-events: none; transition: opacity .18s ease, scale .26s ease, visibility 0s linear .26s; }
.vp-corner.is-tucked .vp-hopper .vp-opo { width: 56px; height: 67px; }
/* Hover or focus restores the small bubble; a tap opens the full note. */
.vp-mini { position: absolute; bottom: 58px; left: 66px; display: none; padding: 7px 12px 6px; border: 0; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: 0 1px 2px rgba(22,19,15,.08), 0 14px 30px -16px rgba(22,19,15,.45); font: 400 15px/1.1 "MADE Awelier", Georgia, serif; color: var(--ink); white-space: nowrap; cursor: pointer; transition: translate .18s ease; }
html:not([data-vp-board]) .vp-mini, html[data-hero="left"] .vp-mini { left: auto; right: 66px; border-radius: 14px 14px 4px 14px; transform-origin: 100% 100%; }
.vp-mini:hover { translate: 0 -2px; }
.vp-corner.is-tucked .vp-mini { transition: translate .18s ease, opacity .22s ease; }
.vp-corner.is-tucked .vp-mini.is-quiet { opacity: 0; pointer-events: none; animation: none; }
.vp-corner.is-tucked .vp-mini { display: block; animation: vpMiniIn .32s cubic-bezier(.2,.7,.2,1) .2s backwards; }
@keyframes vpMiniIn { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
html[data-vp-board] .vp-corner.is-tucked:not(.no-peek):hover .vp-note, .vp-corner.is-tucked.is-peek .vp-note, .vp-corner.is-tucked .vp-note:focus-within { opacity: 1; scale: 1; visibility: visible; pointer-events: auto; transition: opacity .2s ease, scale .28s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.vp-corner.is-tucked:has(.vp-open:hover) .vp-mini, .vp-corner.is-tucked:has(.vp-open:focus-visible) .vp-mini, .vp-corner.is-tucked .vp-mini:focus-visible { opacity: 1; pointer-events: auto; }
.vp-corner.is-tucked.is-peek .vp-mini, .vp-corner.is-tucked.is-chat .vp-mini, .vp-corner.is-tucked:focus-within .vp-mini, .vp-corner.is-tucked:has(.vp-note:focus-within) .vp-mini { opacity: 0; pointer-events: none; animation: none; }
.vp-corner.is-chat .vp-mini { display: none; }
@media (max-width: 640px) {
  html:not([data-vp-board]) .vp-corner { transition: opacity .25s ease, translate .25s ease; }
  .vp-corner.is-on.is-scroll-hidden:not(.is-peek):not(.is-chat):not(:focus-within) { translate: 0 calc(100% + 24px); opacity: 0; pointer-events: none; }
}
@media (max-width: 480px) {
  .vp-corner { right: max(12px, calc(env(safe-area-inset-right) + 12px)); bottom: max(12px, calc(env(safe-area-inset-bottom) + 12px)); }
  html[data-vp-board] .vp-corner:has(.vp-note) { left: 12px; bottom: 12px; }
  .vp-hopper .vp-opo { width: 68px; height: 82px; }
  .vp-corner.is-tucked .vp-hopper .vp-opo { width: 48px; height: 58px; }
  .vp-note { max-width: calc(100vw - 92px); margin-bottom: 40px; }
  .vp-note-line { white-space: normal; }
  .vp-mini { white-space: normal; max-width: 210px; width: max-content; text-align: left; line-height: 1.2; }
  .vp-na-mail { width: 100%; }
  .vp-na-form { flex-wrap: wrap; }
}



.vp-bubble { position: relative; margin-bottom: 52px; margin-right: -6px; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: #fff; box-shadow: 0 1px 2px rgba(22,19,15,.06), 0 18px 40px -20px rgba(22,19,15,.4); font-size: 14.5px; line-height: 1.35; text-align: left; white-space: nowrap; }
.vp-bubble b { display: block; font-family: "MADE Awelier", Georgia, serif; font-weight: 500; font-size: 17px; }

.vp-opo { width: 84px; height: 100px; display: block; overflow: visible; filter: drop-shadow(0 10px 12px rgba(22,19,15,.16)); }
.vp-root .vp-opo .bob, html[data-vp-board] .vp-opo .bob { animation: vpBob 3.2s ease-in-out infinite; transform-origin: 32px 56px; }
.vp-opo .wave { transform-box: view-box; transform-origin: var(--wx) var(--wy); }
.vp-open:hover .vp-opo .wave { animation: vpWave .9s ease-in-out 2; }
@keyframes vpBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-2deg); } }
@keyframes vpWave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-22deg); } 75% { transform: rotate(14deg); } }
.vp-tip { position: absolute; right: 100%; bottom: 34px; margin-right: 6px; padding: 8px 12px; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px -14px rgba(22,19,15,.4); font-size: 14px; font-weight: 500; white-space: nowrap; opacity: 0; translate: 6px 0; transition: opacity .18s ease, translate .18s ease; pointer-events: none; }
.vp-open:hover .vp-tip, .vp-open:focus-visible .vp-tip { opacity: 1; translate: 0 0; }

/* One hop on arrival or interaction; the preview board keeps its original loops. */
.vp-corner .bob { transform-box: view-box; transform-origin: 38.6px 56px; }
.vp-corner.is-on.is-hopping .bob { animation: vpHop 1.5s cubic-bezier(.4,0,.3,1) 1; }
html[data-vp-board] .vp-hopper .bob { animation: vpHop 1.5s cubic-bezier(.4,0,.3,1) infinite; transform-box: view-box; transform-origin: 38.6px 56px; }
html[data-vp-board] .vp-hopper .vp-shadow { animation: vpShadow 1.5s cubic-bezier(.4,0,.3,1) infinite; transform-box: view-box; transform-origin: 38.6px 56.4px; }
.vp-root .vp-opo .hat, html[data-vp-board] .vp-opo .hat { animation: vpHat 3s ease-in-out infinite; }
html[data-vp-board] .vp-hopper .hat { animation: vpHatHop 1.5s cubic-bezier(.4,0,.3,1) infinite; }
@keyframes vpHop { 0%, 100% { transform: translateY(0) scale(1.05, .93); } 12% { transform: translateY(0) scale(.97, 1.04); } 45% { transform: translateY(-9px) scale(1, 1); } 80% { transform: translateY(0) scale(1, 1); } }
@keyframes vpShadow { 0%, 100% { transform: scale(1); opacity: 1; } 45% { transform: scale(.7); opacity: .55; } 80% { transform: scale(1); opacity: 1; } }
@keyframes vpHat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes vpHatHop { 0%, 100% { transform: translateY(0); } 52% { transform: translateY(-3.5px); } 86% { transform: translateY(.5px); } }

@media (prefers-reduced-motion: reduce) {
  .vp-dialog, .vp-corner { transition: opacity .2s linear !important; translate: none !important; }
  .vp-note, .vp-hopper { transition: opacity .2s linear !important; scale: 1 !important; }
  .vp-corner.is-tucked .vp-mini { animation: none; }
  .vp-root[data-layout] .vp-dialog { translate: -50% -50% !important; }
  .vp-root[data-layout="c"] .vp-dialog { translate: none !important; }
  .vp-opo .bob, .vp-open:hover .vp-opo .wave, .vp-hopper .bob, .vp-hopper .vp-shadow, .vp-opo .hat { animation: none !important; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) { .vp-root[data-layout] .vp-dialog { translate: none !important; } }
html[data-only] .vp-root, html[data-only] .vp-corner { display: none !important; }
.vp-root .vp-dialog:focus-visible { outline: none; }

/* dizzy Mr. Opo: squiggles pop in over his head, wobble, then fade */
.vp-opo { overflow: visible; }
.vp-dizzy path { opacity: 0; }
.vp-opo.is-dizzy .vp-dizzy path { animation: vpSquiggle 2.8s ease both; transform-box: fill-box; transform-origin: center; }
.vp-opo.is-dizzy .vp-dizzy .s2 { animation-delay: .12s; }
.vp-opo.is-dizzy .vp-dizzy .s3 { animation-delay: .24s; }
@keyframes vpSquiggle { 0% { opacity: 0; scale: .4; rotate: -20deg; } 12% { opacity: 1; scale: 1.1; } 30% { rotate: 14deg; } 50% { rotate: -10deg; scale: 1; } 70% { rotate: 8deg; opacity: 1; } 100% { opacity: 0; rotate: 0deg; scale: .9; } }

/* Mr. Opo's chat: the note grows into a short conversation with preset questions */
.vp-log { display: grid; gap: 8px; max-height: min(44vh, 320px); margin: 6px -8px 0 0; padding: 0 8px 2px 0; overflow-y: auto; overscroll-behavior: contain; }
.vp-msg { justify-self: start; margin: 0; max-width: 30ch; padding: 8px 11px; border-radius: 12px 12px 12px 4px; background: var(--paper); font-size: 14px; line-height: 1.45; color: rgba(22,19,15,.82); animation: vpMsgIn .26s cubic-bezier(.2,.7,.2,1); }
.vp-msg a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.vp-msg.is-you { justify-self: end; max-width: 26ch; padding: 6px 10px; border-radius: 12px 12px 4px 12px; background: var(--stone); color: var(--ink); }
.vp-msg-act { animation: vpMsgIn .26s cubic-bezier(.2,.7,.2,1); }
.vp-msg-act .vp-note-talk { font-size: 14px; }
/* iOS-style foot: a quiet row of small reply chips, then a rounded composer with a round send button */
.vp-chat { background: #fff; box-shadow: 0 1px 2px rgba(22,19,15,.06), 0 22px 44px -22px rgba(22,19,15,.42); }
.vp-chat .vp-msg { background: var(--stone); border-radius: 16px 16px 16px 5px; }
.vp-chat .vp-msg.is-you { background: #dcdad5; color: var(--ink); border-radius: 16px 16px 5px 16px; }
.vp-chat-foot { margin: 12px -26px -7px -8px; padding: 10px 8px 0; border-top: 1px solid rgba(22,19,15,.07); }
.vp-opts { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 8px; padding: 1px 2px 2px; }
.vp-opts:empty { display: none; }
.vp-opt { flex: none; padding: 3px 9px; border: 1px solid rgba(22,19,15,.12); border-radius: 999px; white-space: nowrap; background: rgba(255,255,255,.7); font: 500 12.5px/1.4 "Geist", sans-serif; color: rgba(22,19,15,.78); cursor: pointer; transition: border-color .16s ease, background-color .16s ease, scale .12s ease; }
.vp-opt:active { scale: .96; }
.vp-opt:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.vp-compose { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 3px 0 13px; border: 1px solid rgba(22,19,15,.12); border-radius: 999px; background: rgba(255,255,255,.82); transition: border-color .18s ease; }
.vp-compose input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 14.5px/1 "Geist", sans-serif; color: var(--ink); }
.vp-note .vp-compose button { display: grid; place-items: center; flex: none; width: 27px; height: 27px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; transition: opacity .16s ease, scale .12s ease; }
.vp-note .vp-compose button:disabled { opacity: .22; cursor: default; }
.vp-compose button:not(:disabled):active { scale: .92; }
.vp-compose button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.vp-note .vp-compose button:hover svg { translate: none; }
.vp-note .vp-compose button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes vpMsgIn { from { opacity: 0; translate: 0 4px; } }
@media (prefers-reduced-motion: reduce) { .vp-msg, .vp-msg-act { animation: none; } }

/* ---- iOS Messages pass (staging, Oct 2026): taller panel, typing dots, stacked start chips ---- */
.vp-chat { display: flex; flex-direction: column; width: 320px; height: min(440px, 60vh); min-height: 300px; }
.vp-chat .vp-log { grid-template-columns: minmax(0, 1fr); flex: 1; min-height: 0; max-height: none; align-content: start; gap: 3px; padding-top: 6px; padding-bottom: 16px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%); scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(22,19,15,.22) transparent; }
.vp-chat .vp-log::-webkit-scrollbar { width: 4px; }
.vp-chat .vp-log::-webkit-scrollbar-track { background: transparent; }
.vp-chat .vp-log::-webkit-scrollbar-thumb { background: rgba(22,19,15,.22); border-radius: 999px; }
.vp-chat .vp-msg { max-width: 78%; padding: 8px 12px; border-radius: 18px 18px 18px 6px; font-size: 15px; line-height: 1.4; color: var(--ink); animation: vpBubbleIn .32s cubic-bezier(.2,.8,.2,1) backwards; transform-origin: 0 100%; }
.vp-chat .vp-msg a[href^="tel:"] { white-space: nowrap; }
.vp-chat .vp-msg.is-you { max-width: 78%; padding: 8px 12px; border-radius: 18px 18px 6px 18px; transform-origin: 100% 100%; }
.vp-chat .vp-msg + .vp-msg.is-you, .vp-chat .vp-msg.is-you + .vp-msg:not(.is-you), .vp-chat .vp-msg.is-you + .vp-typing, .vp-chat .vp-msg-act + .vp-msg { margin-top: 10px; }
.vp-chat .vp-msg-act { margin: 4px 0 2px; }
.vp-chat .lf-err, .vp-chat .lf-done, .vp-chat .lf-field-err, .vp-chat .vp-msg-act { scroll-margin-bottom: 16px; }
.vp-chat .lf-field-err, .vp-chat .lf-done { margin-left: 4px; font-size: 13px; line-height: 1.4; }
.vp-chat .vp-msg-act label { position: static; display: block; width: auto; height: auto; clip: auto; clip-path: none; overflow: visible; white-space: normal; margin: 0 0 6px 4px; font-size: 13px; line-height: 1.3; text-wrap: pretty; color: var(--muted, rgba(22,19,15,.64)); }
.vp-chat .vp-msg-act .vp-note-btn { text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 500; min-height: 32px; padding: 0 14px; }
.vp-note.vp-chat form.vp-nb-mail { height: 38px; border-radius: 999px; border: 1px solid rgba(22,19,15,.24); background: #fff; padding: 0 5px 0 16px; }
.vp-note.vp-chat form.vp-nb-mail:focus-within { border-color: var(--ink); }
.vp-chat form.vp-nb-mail:has([aria-invalid=true]), .vp-note.vp-chat form.vp-nb-mail:has([aria-invalid=true]) { border-color: #a3402f; }
.vp-note.vp-chat form.vp-nb-mail button { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; }
.vp-note.vp-chat form.vp-nb-mail button:disabled { opacity: .22; cursor: default; }
.vp-note.vp-chat form.vp-nb-mail button svg { width: 13px; height: 13px; stroke-width: 2; }
.vp-note.vp-chat form.vp-nb-mail button:hover svg { translate: none; }
.vp-note.vp-chat form.vp-nb-mail button:hover, .vp-note.vp-chat form.vp-nb-mail button:focus-visible { background: var(--ink); color: #fff; }
.vp-note.vp-chat form.vp-nb-mail button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.vp-typing { justify-self: start; display: flex; gap: 4px; margin: 10px 0 0; padding: 11px 13px; border-radius: 18px 18px 18px 6px; background: var(--stone); animation: vpBubbleIn .26s cubic-bezier(.2,.8,.2,1) backwards; transform-origin: 0 100%; }
.vp-typing.is-still { animation: none; padding: 8px 12px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.vp-typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(22,19,15,.45); animation: vpDot 1.2s ease-in-out infinite; }
.vp-typing i:nth-child(2) { animation-delay: .15s; } .vp-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes vpDot { 0%, 60%, 100% { translate: 0 0; opacity: .45; } 30% { translate: 0 -4px; opacity: 1; } }
@keyframes vpBubbleIn { from { opacity: 0; translate: 0 8px; scale: .94; } to { opacity: 1; translate: 0 0; scale: 1; } }
.vp-chat .vp-chat-foot { border-top: 0; }
.vp-chat .vp-opts.is-start { flex-direction: column; align-items: flex-end; gap: 5px; margin: 0 0 8px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.vp-chat .vp-opts:not(.is-start) { justify-content: flex-end; }
.vp-chat .vp-opt { padding: 6px 12px; border: 1px solid rgba(22,19,15,.14); background: #fff; box-shadow: none; font-size: 13.5px; color: var(--ink); }
.vp-chat .vp-opts.is-start .vp-opt { padding: 6px 13px; font-size: 13.5px; }
.vp-chat .vp-opts.is-start .vp-opt:nth-child(n+4) { display: none; }
.vp-chat .vp-log .vp-msg:first-child { margin-top: 0; }
.vp-chat .vp-opt:hover { background: #fff; border-color: rgba(22,19,15,.32); box-shadow: none; }
.vp-chat .vp-compose { height: 38px; padding: 0 5px 0 16px; border: 1px solid rgba(22,19,15,.24); background: #fff; }
.vp-chat .vp-compose:focus-within { border-color: var(--ink); box-shadow: none; background: #fff; }
.vp-chat .vp-compose input { font-size: 15.5px; }
.vp-note.vp-chat input::placeholder, .vp-chat form input::placeholder { color: rgba(22,19,15,.64); }
.vp-note.vp-chat .vp-compose button { width: 32px; height: 32px; }
@media (prefers-reduced-motion: reduce) { .vp-chat .vp-msg, .vp-typing, .vp-typing i { animation: none; } .vp-chat .vp-log { scroll-behavior: auto; } }
@media (max-width: 640px) {
  html:not([data-vp-board]) .vp-corner:has(.vp-chat):not(.is-scroll-hidden) { translate: none; }
  html:not([data-vp-board]) .vp-corner.is-on:not(.is-fresh):not(.is-scroll-hidden) .vp-note.vp-chat { position: fixed; left: 0; right: 0; margin-left: auto; margin-right: auto; bottom: calc(94px + 10px + env(safe-area-inset-bottom)); transform-origin: 50% 100%; }
  .vp-chat { width: min(320px, calc(100vw - 92px)); height: min(480px, 58vh); min-height: 320px; }
  .vp-chat .vp-opt { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .vp-chat .vp-msg-act .vp-note-btn { min-height: 40px; }
  .vp-note.vp-chat form.vp-nb-mail { height: 46px; }
  .vp-note.vp-chat form.vp-nb-mail button { min-width: 40px; min-height: 40px; width: 40px; height: 40px; }
  .vp-chat .vp-compose { height: 46px; padding: 0 3px 0 16px; }
  .vp-note.vp-chat .vp-compose button { min-width: 40px; min-height: 40px; width: 40px; height: 40px; }
  .vp-note .vp-hide, .vp-note[data-note] .vp-hide { top: 0; right: 0; width: 40px; height: 40px; min-width: 40px; min-height: 40px; background: none; }
  .vp-note .vp-hide::before { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: var(--stone); }
  .vp-note .vp-hide::after { content: none; }
  .vp-note .vp-hide svg { position: relative; z-index: 1; }
  .vp-chat .vp-compose input { font-size: 18px; }
  .vp-note.vp-chat form.vp-nb-mail input { font-size: 18px !important; min-width: 0; width: 100%; }
}
@media (min-width: 481px) and (max-width: 640px) {
  html:not([data-vp-board]) .vp-corner.is-on:not(.is-fresh):not(.is-scroll-hidden) .vp-note.vp-chat { bottom: calc(116px + 10px + env(safe-area-inset-bottom)); }
}

