/* MOBEA D18 — TACTILE INTERACTION SYSTEM
   Micro-interactions for buttons, Signature Experience and Planner.
   Layered on top of D17 cinematic surfaces. */
html[data-mobea-round="d18"]{
  --m18-ease:cubic-bezier(.18,.84,.24,1);
  --m18-spring:cubic-bezier(.2,1.35,.32,1);
  --m18-purple:#7d42e4;
  --m18-pink:#ee76b9;
  --m18-gold:#f2c269;
  --m18-ink:#241337;
}

/* Tactile press surfaces */
html[data-mobea-round="d18"] :is(.vn-btn,.s4-header-cta,.header-cta,.vn-signature__choices button,.vn-choice-grid button,.vn-planner__nav button,.vn-planner__step-actions button,.vn-planner__actions button,.vn-planner__actions a,.vn-page-rail a,.vn-page-rail button,.vn-card a,.vn-secondary-path a){
  -webkit-tap-highlight-color:transparent;
  transform-origin:center;
  transition:transform .22s var(--m18-ease),box-shadow .28s var(--m18-ease),border-color .24s ease,background-color .24s ease,color .24s ease,filter .24s ease;
}
html[data-mobea-round="d18"] .m18-tactile{position:relative;isolation:isolate}
html[data-mobea-round="d18"] .m18-tactile::after{
  content:"";position:absolute;z-index:9;left:50%;top:50%;width:18px;height:18px;border-radius:999px;pointer-events:none;
  background:radial-gradient(circle,rgba(255,255,255,.54),rgba(230,196,255,.22) 45%,transparent 72%);
  opacity:0;transform:translate(-50%,-50%) scale(.2);mix-blend-mode:screen
}
html[data-mobea-round="d18"] .m18-tactile.m18-pressing::after{animation:m18-press-wave .54s var(--m18-ease) both}

@media (hover:hover) and (pointer:fine){
  html[data-mobea-round="d18"] :is(.vn-btn,.vn-card a,.vn-secondary-path a):hover{transform:translateY(-2px)}
  html[data-mobea-round="d18"] :is(.vn-signature__choices button,.vn-choice-grid button,.vn-planner__nav button):hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(74,35,110,.09)}
  html[data-mobea-round="d18"] .vn-page-rail a:hover{transform:translateY(-1px)}
}
html[data-mobea-round="d18"] :is(.vn-btn,.vn-signature__choices button,.vn-choice-grid button,.vn-planner__nav button,.vn-planner__step-actions button,.vn-planner__actions button,.vn-planner__actions a):active{transform:translateY(1px) scale(.985)}

/* Signature: selection should feel like a decision, not a simple tab switch. */
html[data-mobea-round="d18"] .vn-signature__choices button{overflow:hidden}
html[data-mobea-round="d18"] .vn-signature__choices button[aria-pressed="true"]{
  box-shadow:0 15px 34px rgba(120,67,220,.20),inset 0 0 0 1px rgba(222,190,255,.28);
  transform:translateY(-2px)
}
html[data-mobea-round="d18"] .vn-signature__choices button[aria-pressed="true"] span{
  box-shadow:0 0 0 5px rgba(229,193,255,.11),0 0 22px rgba(228,182,255,.26)
}
html[data-mobea-round="d18"] .vn-signature__canvas.m18-signature-shift{animation:m18-canvas-shift .48s var(--m18-ease)}
html[data-mobea-round="d18"] .vn-signature__canvas.m18-signature-shift .vn-signature__signal span{animation:m18-signal-pop .52s var(--m18-spring)}
html[data-mobea-round="d18"] .vn-signature__canvas.m18-signature-shift .vn-signature__result article{animation:m18-result-card-in .52s var(--m18-ease) both}
html[data-mobea-round="d18"] .vn-signature__canvas.m18-signature-shift .vn-signature__result article:nth-child(2){animation-delay:.05s}
html[data-mobea-round="d18"] .vn-signature__canvas.m18-signature-shift .vn-signature__result article:nth-child(3){animation-delay:.10s}
html[data-mobea-round="d18"] .vn-signature__canvas.m18-signature-shift .vn-signature__rationale{animation:m18-rationale-in .62s var(--m18-ease) .11s both}
html[data-mobea-round="d18"] .vn-signature__handoff.m18-handoff-pulse{animation:m18-handoff-pulse .65s var(--m18-spring)}

/* Planner: progress, step changes, result changes and completion. */
html[data-mobea-round="d18"] .vn-planner__progress{position:relative;overflow:hidden}
html[data-mobea-round="d18"] .vn-planner__progress::after{
  content:"";position:absolute;inset:0 auto 0 -34%;width:24%;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.34),transparent);opacity:0
}
html[data-mobea-round="d18"] .vn-planner.m18-progress-pulse .vn-planner__progress::after{animation:m18-progress-scan .58s var(--m18-ease)}
html[data-mobea-round="d18"] .vn-planner__nav button[aria-selected="true"]{
  box-shadow:0 10px 28px rgba(117,61,217,.16),inset 0 -2px 0 rgba(139,80,225,.38)
}
html[data-mobea-round="d18"] .vn-planner__nav button[aria-selected="true"] span{transform:scale(1.06)}
html[data-mobea-round="d18"] .vn-planner__nav button span{transition:transform .25s var(--m18-spring)}
html[data-mobea-round="d18"] .vn-planner.m18-step-shift .vn-planner__questions>section:not([hidden]){animation:m18-step-panel .42s var(--m18-ease) both}
html[data-mobea-round="d18"] .vn-planner.m18-result-pulse .vn-planner__result{animation:m18-result-shell .46s var(--m18-ease)}
html[data-mobea-round="d18"] .vn-planner.m18-result-pulse .vn-result-block{animation:m18-result-line .42s var(--m18-ease) both}
html[data-mobea-round="d18"] .vn-planner.m18-result-pulse .vn-result-block:nth-of-type(2){animation-delay:.035s}
html[data-mobea-round="d18"] .vn-planner.m18-result-pulse .vn-result-block:nth-of-type(3){animation-delay:.07s}
html[data-mobea-round="d18"] .vn-planner.m18-result-pulse .vn-result-block:nth-of-type(4){animation-delay:.105s}
html[data-mobea-round="d18"] .vn-planner__snapshot span{transition:transform .22s var(--m18-spring),background-color .22s ease,border-color .22s ease}
html[data-mobea-round="d18"] .vn-planner__snapshot span.m18-chip-updated{animation:m18-chip .46s var(--m18-spring)}

html[data-mobea-round="d18"] .vn-planner[data-complete="true"] .vn-planner__result{
  box-shadow:0 28px 72px rgba(62,28,96,.22),0 0 0 1px rgba(230,195,255,.08)
}
html[data-mobea-round="d18"] .vn-planner.m18-completion .vn-planner__ready{animation:m18-ready-card .74s var(--m18-spring) both}
html[data-mobea-round="d18"] .vn-planner.m18-completion .vn-planner__ready>span{animation:m18-ready-check .72s var(--m18-spring) .04s both}
html[data-mobea-round="d18"] .vn-planner.m18-completion .vn-planner__result::before{
  content:"";position:absolute;z-index:0;inset:-20%;pointer-events:none;border-radius:50%;
  background:radial-gradient(circle at 50% 62%,rgba(182,111,241,.26),transparent 26%),radial-gradient(circle at 66% 70%,rgba(240,118,185,.15),transparent 22%);
  animation:m18-completion-halo 1.15s var(--m18-ease) both
}
html[data-mobea-round="d18"] .vn-planner.m18-completion .vn-planner__actions{animation:m18-actions-in .58s var(--m18-ease) .18s both}
html[data-mobea-round="d18"] .vn-planner[data-complete="true"] [data-planner-contact]{box-shadow:0 14px 34px rgba(122,66,214,.18)}

/* Sticky navigation: active location feels continuous. */
html[data-mobea-round="d18"] .vn-page-rail a{position:relative}
html[data-mobea-round="d18"] .vn-page-rail a::after{
  content:"";position:absolute;left:16%;right:16%;bottom:4px;height:2px;border-radius:99px;
  background:linear-gradient(90deg,var(--m18-purple),var(--m18-pink));transform:scaleX(0);opacity:0;transition:transform .3s var(--m18-ease),opacity .25s ease
}
html[data-mobea-round="d18"] .vn-page-rail a:is(.is-active,[aria-current="true"],[aria-current="location"])::after{transform:scaleX(1);opacity:1}
html[data-mobea-round="d18"] .vn-page-rail a.m18-nav-pop{animation:m18-nav-pop .42s var(--m18-spring)}

/* FAQ and service cards: subtle touch response only. */
html[data-mobea-round="d18"] .vn-card{transition:transform .28s var(--m18-ease),box-shadow .3s var(--m18-ease),border-color .3s ease}
@media (hover:hover) and (pointer:fine){html[data-mobea-round="d18"] .vn-card:hover{transform:translateY(-4px);box-shadow:0 18px 44px rgba(58,27,88,.08)}}
html[data-mobea-round="d18"] .vn-faq details{transition:background-color .28s ease,border-color .28s ease,box-shadow .28s ease}
html[data-mobea-round="d18"] .vn-faq details[open]{box-shadow:0 14px 34px rgba(57,27,86,.07)}

/* Mobile: make the feedback obvious, but keep travel short. */
@media (max-width:760px){
  html[data-mobea-round="d18"] :is(.vn-signature__choices button,.vn-choice-grid button):active{transform:scale(.972)}
  html[data-mobea-round="d18"] .vn-planner.m18-step-shift .vn-planner__questions>section:not([hidden]){animation-duration:.34s}
  html[data-mobea-round="d18"] .vn-planner.m18-completion .vn-planner__ready{animation-duration:.62s}
  html[data-mobea-round="d18"] .vn-card:active{transform:scale(.988)}
}

/* Motion preferences: all D18 kinetic feedback becomes static. */
html.vn-motion-off[data-mobea-round="d18"] *,
html.vn-motion-off[data-mobea-round="d18"] *::before,
html.vn-motion-off[data-mobea-round="d18"] *::after{animation:none!important;transition-duration:0s!important;scroll-behavior:auto!important}
@media (prefers-reduced-motion:reduce){
  html[data-mobea-round="d18"] *,html[data-mobea-round="d18"] *::before,html[data-mobea-round="d18"] *::after{animation:none!important;transition-duration:0s!important;scroll-behavior:auto!important}
}

@keyframes m18-press-wave{0%{opacity:0;transform:translate(-50%,-50%) scale(.25)}28%{opacity:.7}100%{opacity:0;transform:translate(-50%,-50%) scale(8)}}
@keyframes m18-canvas-shift{0%{transform:scale(.992);filter:brightness(.97)}58%{transform:scale(1.004);filter:brightness(1.025)}100%{transform:none;filter:none}}
@keyframes m18-signal-pop{0%{transform:scale(.72);filter:brightness(.9)}58%{transform:scale(1.22);filter:brightness(1.28)}100%{transform:none;filter:none}}
@keyframes m18-result-card-in{0%{opacity:.48;transform:translateY(10px) scale(.985)}100%{opacity:1;transform:none}}
@keyframes m18-rationale-in{0%{opacity:.3;transform:translateY(8px)}100%{opacity:1;transform:none}}
@keyframes m18-handoff-pulse{0%,100%{transform:none}38%{transform:translateY(-2px) scale(1.012);box-shadow:0 18px 40px rgba(182,117,240,.16)}}
@keyframes m18-progress-scan{0%{left:-34%;opacity:0}28%{opacity:.9}100%{left:116%;opacity:0}}
@keyframes m18-step-panel{0%{opacity:.35;transform:translateX(12px)}100%{opacity:1;transform:none}}
@keyframes m18-result-shell{0%{filter:brightness(.94)}50%{filter:brightness(1.055)}100%{filter:none}}
@keyframes m18-result-line{0%{opacity:.58;transform:translateY(6px)}100%{opacity:1;transform:none}}
@keyframes m18-chip{0%{transform:scale(.96)}55%{transform:scale(1.04);background-color:rgba(225,193,255,.10)}100%{transform:none}}
@keyframes m18-ready-card{0%{opacity:0;transform:translateY(16px) scale(.97)}58%{opacity:1;transform:translateY(-2px) scale(1.01)}100%{opacity:1;transform:none}}
@keyframes m18-ready-check{0%{opacity:0;transform:scale(.55) rotate(-14deg)}65%{opacity:1;transform:scale(1.16) rotate(3deg)}100%{opacity:1;transform:none}}
@keyframes m18-completion-halo{0%{opacity:0;transform:scale(.72)}48%{opacity:1}100%{opacity:0;transform:scale(1.16)}}
@keyframes m18-actions-in{0%{opacity:.25;transform:translateY(10px)}100%{opacity:1;transform:none}}
@keyframes m18-nav-pop{0%{transform:scale(.96)}60%{transform:scale(1.04)}100%{transform:none}}
