/* Fresh UI (13 Nov 2026) for the lkhhh.com sub-pages (/oi, /rute-digital, /panduan/oi).
   Motion layer inspired by beUI / Bencho, plain CSS. Colours and fonts follow lkhhh.com; own variable names so it
   works on pages that name their colours differently. Hidden-until-revealed states only apply on screens with
   script (html.fx) and never in print or with reduced motion. */
:root{--fx-y:#f2c94c;--fx-c:#14321f;--fx-g:#1f5136;--fx-l:#d9efe1;--fx-spring:cubic-bezier(.34,1.56,.64,1);--fx-out:cubic-bezier(.22,1,.36,1)}

/* buttons: spring press */
.btn{transition:background .15s,color .15s,transform .35s var(--fx-spring),box-shadow .2s}
.btn:active{transform:scale(.95)}
.btn-y{box-shadow:0 5px 0 #c9a02c}
.btn-y:hover{transform:translateY(-2px)}
.btn-y:active{transform:translateY(3px);box-shadow:0 2px 0 #c9a02c}


/* headline rises word by word */
.fx-rise .w{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:.04em}
.fx-rise .w>span{display:inline-block;transform:translateY(105%);animation:fx-rise .9s var(--fx-out) forwards}
@keyframes fx-rise{to{transform:none}}

/* reading progress */
.fx-progress{position:fixed;top:0;left:0;right:0;height:4px;z-index:100;pointer-events:none}
.fx-progress i{display:block;height:100%;width:100%;background:var(--fx-y);transform-origin:0 50%;transform:scaleX(0)}

/* reveal on scroll */
@media screen{
  html.fx .rv{opacity:0;transform:translateY(26px);transition:opacity .6s var(--fx-out),transform .8s var(--fx-spring)}
  html.fx .rv.rv-l{transform:translateX(-40px) rotate(-2deg)}
  html.fx .rv.rv-r{transform:translateX(40px) rotate(2deg)}
  html.fx .rv.in{opacity:1;transform:none}
}

/* tilt + glare (mouse only, set by script) */
.fx-tilt{transition:transform .5s var(--fx-spring);will-change:transform}
.fx-glare{position:relative;overflow:hidden}
.fx-glare::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:radial-gradient(circle at var(--gx,50%) var(--gy,50%),rgba(255,255,255,.28),transparent 55%);opacity:0;transition:opacity .3s}
.fx-glare:hover::after{opacity:1}

/* "BARU" badge shimmer */
.new{position:relative;overflow:hidden}
.new::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.55) 50%,transparent 70%);transform:translateX(-120%);animation:fx-shine 2.8s 1s infinite}
@keyframes fx-shine{60%,100%{transform:translateX(120%)}}

/* OI avatar floats, ring pulses (stays a circle: only moves, never scales one axis) */
.fx-float{animation:fx-float 5s ease-in-out infinite}
@keyframes fx-float{50%{transform:translateY(-10px)}}
.fx-bubble{position:absolute;z-index:2;max-width:15rem;background:#fff;color:var(--fx-c);font-weight:700;font-size:.92rem;line-height:1.35;padding:.65rem .9rem;border-radius:16px 16px 16px 4px;box-shadow:0 14px 30px -10px rgba(0,0,0,.45);opacity:0;transform:scale(.6) translateY(10px);transform-origin:bottom left;transition:opacity .3s,transform .5s var(--fx-spring)}
.fx-bubble.me{background:#d4f5c9;border-radius:16px 16px 4px 16px;transform-origin:bottom right}
.fx-bubble.show{opacity:1;transform:none}
.fx-bubble b{display:block;font-size:.72rem;color:var(--fx-g)}
.fx-dots{display:inline-flex;gap:4px;padding:.2rem 0}
.fx-dots i{width:7px;height:7px;border-radius:50%;background:#7a8f81;animation:fx-dots 1s infinite}
.fx-dots i:nth-child(2){animation-delay:.15s}.fx-dots i:nth-child(3){animation-delay:.3s}
@keyframes fx-dots{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-5px);opacity:1}}

/* OI Dulu → Sekarang: arrow walks, "Sekarang" lights up when the card arrives */
.ba .arrow svg{animation:fx-nudge 1.6s ease-in-out infinite}
@keyframes fx-nudge{50%{transform:translateX(6px)}}
.ba .now{position:relative;overflow:hidden}
.ba .now::before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,rgba(242,201,76,.45) 50%,transparent 70%);transform:translateX(-120%);pointer-events:none}
.feat.in .ba .now::before{animation:fx-sweep 1.2s .4s var(--fx-out) forwards}
@keyframes fx-sweep{to{transform:translateX(120%)}}
.feat .ic{transition:transform .5s var(--fx-spring)}
.feat:hover .ic{transform:rotate(-8deg) scale(1.06)}

/* Panduan OI: sticky contents bar with a gliding active pill, chat bubbles pop in, phrases copy on tap */
.fx-toc{position:sticky;top:0;z-index:30;padding:.6rem 0;margin-left:-4px;margin-right:-4px;background:rgba(247,250,246,.9);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none}
.fx-toc::-webkit-scrollbar{display:none}
.fx-toc a{position:relative;z-index:1;flex:none;transition:color .25s,background .25s}
.fx-toc a.on{background:var(--fx-c)!important;color:var(--fx-y)!important}
@media screen{html.fx .chat .b{opacity:0;transform:scale(.7) translateY(10px);transition:opacity .3s,transform .5s var(--fx-spring)}
  html.fx .chat .b.m{transform-origin:bottom right}html.fx .chat .b.o{transform-origin:bottom left}
  html.fx .chat .b.show{opacity:1;transform:none}}
.also q{cursor:copy;border-radius:6px;padding:0 .15rem;transition:background .2s}
.also q:hover{background:var(--fx-l)}
.also q.copied{background:var(--fx-y)}
.fx-toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom));z-index:200;background:#0b0f0c;color:#fff;font-weight:700;font-size:.9rem;padding:.7rem 1.1rem;border-radius:999px;box-shadow:0 14px 30px rgba(0,0,0,.35);transform:translate(-50%,140%);transition:transform .5s var(--fx-spring)}
.fx-toast.show{transform:translate(-50%,0)}

@media (prefers-reduced-motion:reduce){
  .fx-rise .w>span{animation:none;transform:none}
  html.fx .rv,html.fx .chat .b{opacity:1!important;transform:none!important}
  .fx-float,.new::after,.ba .arrow svg,.fx-dots i{animation:none}
  *,*::before,*::after{transition-duration:.01ms!important}
}
@media print{.fx-progress,.fx-toast,.fx-bubble{display:none!important}.fx-toc{position:static;background:none}}

/* OI page hero: avatar wrapper carries the two chat bubbles */
.oi-hero .fx-avwrap{position:relative;justify-self:center;line-height:0}
.oi-hero .fx-avwrap .av{justify-self:auto}
.oi-hero .fx-bubble.me{top:2%;right:-6%}
.oi-hero .fx-bubble.o{bottom:4%;left:-14%}
@media (max-width:860px){
  .oi-hero .fx-avwrap{order:-1;justify-self:start}
  /* phones: bubbles overlap the right half of the avatar so they always fit */
  .oi-hero .fx-bubble{width:max-content;max-width:min(13rem,calc(100vw - 150px));font-size:.82rem;padding:.55rem .8rem}
  .oi-hero .fx-bubble.me{top:-4px;right:auto;left:56%}
  .oi-hero .fx-bubble.o{bottom:-4px;left:46%}
}
