/* Kavvi limit offer (limits-20261009) - see limit-offer-20261009.js.
   The card is always Kavvi Pro's deep green (a brand moment, like the Pro page), so it reads the
   same in light and dark; only the backdrop follows the theme. Fonts: Syne / Reem Kufi are
   declared by pro-hex-20260926.css and fetched only when this card shows. */
.kvlo-backdrop {
  position: fixed; inset: 0; z-index: 10050;
  display: grid; place-items: center; padding: 16px;
  background: rgba(3, 14, 10, .58);
  -webkit-backdrop-filter: blur(7px) saturate(1.1); backdrop-filter: blur(7px) saturate(1.1);
  opacity: 0; transition: opacity .22s ease;
  overscroll-behavior: contain;
}
:root[data-theme='light'] .kvlo-backdrop { background: rgba(14, 40, 31, .42); }
@media (prefers-color-scheme: light) { :root:not([data-theme='dark']) .kvlo-backdrop { background: rgba(14, 40, 31, .42); } }
.kvlo-backdrop.is-in { opacity: 1; }
.kvlo-backdrop.is-leaving { opacity: 0; }

.kvlo {
  --mint: #CFF0D3; --mint-2: #8EE0AE; --ink: #F1F6EE; --soft: #C3D6CA; --mute: #93AB9D;
  position: relative; overflow: hidden; box-sizing: border-box;
  width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 26px 24px 20px; border-radius: 28px;
  color: var(--ink); font-family: inherit; text-align: start;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(126, 216, 160, .30), transparent 60%),
    linear-gradient(180deg, #11402F 0%, #0B2C21 48%, #071E16 100%);
  border: 1px solid rgba(207, 240, 211, .18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: translateY(26px) scale(.965); opacity: 0;
  transition: transform .5s cubic-bezier(.2, 1.25, .35, 1), opacity .25s ease;
  scrollbar-width: none;
}
.kvlo::-webkit-scrollbar { display: none; }
.kvlo-backdrop.is-in .kvlo { transform: none; opacity: 1; }
.kvlo-backdrop.is-leaving .kvlo { transform: translateY(18px) scale(.98); opacity: 0; transition-duration: .2s; }
.kvlo > * { position: relative; }

/* the hex lattice and its light */
.kvlo__lattice { position: absolute; inset: 0 0 auto 0; height: 210px; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 100%); mask-image: linear-gradient(180deg, #000 10%, transparent 100%); }
.kvlo__lattice svg { width: 100%; height: 100%; display: block; }
.kvlo__lattice .kvlo-cell { fill: rgba(207, 240, 211, 0); stroke: rgba(207, 240, 211, .13); stroke-width: 1;
  animation: kvlo-cell 5.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.4s); }
@keyframes kvlo-cell { 0%, 70%, 100% { fill: rgba(207, 240, 211, 0); } 82% { fill: rgba(207, 240, 211, .09); } }
.kvlo__glow { position: absolute; top: -90px; inset-inline-start: 50%; width: 320px; height: 220px; margin-inline-start: -160px;
  border-radius: 50%; pointer-events: none; filter: blur(30px);
  background: radial-gradient(closest-side, rgba(142, 224, 174, .45), transparent);
  animation: kvlo-drift 7s ease-in-out infinite alternate; }
@keyframes kvlo-drift { from { transform: translateX(-30px) scale(.95); } to { transform: translateX(30px) scale(1.08); } }

.kvlo__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; font: 400 22px/1 system-ui, sans-serif;
  color: var(--soft); background: rgba(255, 255, 255, .07); transition: background .15s ease, color .15s ease; }
.kvlo__close:hover { background: rgba(255, 255, 255, .14); color: var(--ink); }

.kvlo__top { display: flex; align-items: center; gap: 12px; margin-block-end: 16px; }
.kvlo__mark { display: inline-grid; filter: drop-shadow(0 0 14px rgba(142, 224, 174, .55)); animation: kvlo-float 4s ease-in-out infinite; }
.kvlo__mark svg { width: 44px; height: 44px; }
@keyframes kvlo-float { 50% { transform: translateY(-3px) rotate(4deg); } }
.kvlo__eyebrow { padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(207, 240, 211, .28);
  background: rgba(207, 240, 211, .07); color: var(--mint);
  font: 700 11.5px/1 'Syne', system-ui, sans-serif; letter-spacing: .2em; }
.kvlo[dir='rtl'] .kvlo__eyebrow { letter-spacing: .12em; }

.kvlo__title { margin: 0 0 8px; color: var(--ink);
  font: 800 27px/1.14 'Syne', system-ui, sans-serif; letter-spacing: -.015em; text-wrap: balance; }
.kvlo[dir='rtl'] .kvlo__title { font: 700 25px/1.5 'Kavvi Alexandria', system-ui, sans-serif; letter-spacing: 0; }
.kvlo__lead { margin: 0 0 18px; color: var(--soft); font-size: 15px; line-height: 1.6; }
.kvlo__lead:empty { display: none; }

/* Free vs Pro, side by side */
.kvlo__meter { display: grid; gap: 9px; margin-block-end: 18px; padding: 14px 14px 10px; border-radius: 18px;
  background: rgba(0, 0, 0, .22); border: 1px solid rgba(207, 240, 211, .10); }
.kvlo__bar { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; }
.kvlo__bar-label { font-size: 12.5px; font-weight: 600; color: var(--mute); }
.kvlo__bar--pro .kvlo__bar-label { color: var(--mint); font-family: 'Syne', system-ui, sans-serif; font-weight: 800; letter-spacing: .04em; }
.kvlo__track { position: relative; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.kvlo__fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w, 0%); border-radius: inherit;
  transition: width 1s cubic-bezier(.2, .9, .2, 1) .15s; }
.kvlo__bar--free .kvlo__fill { background: linear-gradient(90deg, #F4C27A, #EC8A5E); }
.kvlo__bar--pro .kvlo__fill { background: linear-gradient(90deg, #6FD097, #D9F7DD); box-shadow: 0 0 14px rgba(142, 224, 174, .6); transition-delay: .35s; }
.kvlo__bar--pro .kvlo__fill::after { content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); transform: translateX(-100%);
  animation: kvlo-sweep 2.6s ease-in-out 1.4s infinite; }
.kvlo__bar-value { min-width: 2.2em; text-align: end; font: 800 15px/1 'Syne', system-ui, sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.kvlo__bar--free .kvlo__bar-value { color: #F2B98A; }
.kvlo__meter:not(.is-ready) .kvlo__bar--pro { opacity: .35; }
.kvlo__meter.is-ready .kvlo__bar--pro { opacity: 1; transition: opacity .3s ease; }
.kvlo__meter.is-solo .kvlo__bar--pro { display: none; }
.kvlo__unit { justify-self: end; font-size: 11.5px; color: var(--mute); }

.kvlo__benefits { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 4px; }
.kvlo__benefit { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px;
  font-size: 14.5px; line-height: 1.4; color: var(--ink);
  opacity: 0; transform: translateY(6px); animation: kvlo-in .45s cubic-bezier(.2, .9, .3, 1) forwards; animation-delay: calc(.18s + var(--d) * .07s); }
.kvlo__benefit.is-hit { background: linear-gradient(90deg, rgba(142, 224, 174, .16), rgba(142, 224, 174, .04)); box-shadow: inset 0 0 0 1px rgba(142, 224, 174, .22); }
.kvlo[dir='rtl'] .kvlo__benefit.is-hit { background: linear-gradient(270deg, rgba(142, 224, 174, .16), rgba(142, 224, 174, .04)); }
.kvlo__check { display: inline-grid; color: var(--mint-2); flex: none; }
@keyframes kvlo-in { to { opacity: 1; transform: none; } }

.kvlo__price { display: grid; gap: 3px; margin-block-end: 14px; text-align: center; animation: kvlo-in .4s ease forwards; }
.kvlo__price[hidden] { display: none; }
.kvlo__price-main { display: flex; align-items: baseline; justify-content: center; gap: 6px; flex-wrap: wrap; }
.kvlo__amount { font: 800 36px/1 'Syne', system-ui, sans-serif; letter-spacing: -.02em; color: var(--ink); }
.kvlo[dir='rtl'] .kvlo__amount { font-family: 'Kavvi Alexandria', 'Syne', system-ui, sans-serif; }
.kvlo__currency { font-size: 15px; font-weight: 700; color: var(--mint); }
.kvlo__cycle { font-size: 14px; color: var(--soft); }
.kvlo__price-alt { font-size: 12.5px; color: var(--mute); }

.kvlo__actions { display: grid; gap: 6px; }
.kvlo button { font: inherit; cursor: pointer; }
.kvlo__primary { position: relative; overflow: hidden; min-height: 54px; border: 0; border-radius: 16px;
  font-weight: 800 !important; font-size: 16.5px !important; color: #072018;
  background: linear-gradient(135deg, #E4FAE6 0%, #A6EBBE 55%, #79D79F 100%);
  box-shadow: 0 10px 28px rgba(110, 214, 152, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .15s ease, box-shadow .15s ease; }
.kvlo__primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(110, 214, 152, .45), inset 0 1px 0 rgba(255, 255, 255, .7); }
.kvlo__primary:active { transform: translateY(1px) scale(.99); }
.kvlo__primary-text { position: relative; z-index: 1; }
.kvlo__shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .75) 50%, transparent 70%);
  transform: translateX(-120%); animation: kvlo-sweep 3.4s ease-in-out .9s infinite; }
@keyframes kvlo-sweep { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
.kvlo__secondary { min-height: 44px; border: 0; border-radius: 14px; background: transparent; color: var(--soft); font-size: 15px; }
.kvlo__secondary:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.kvlo button:focus-visible { outline: 2px solid rgba(207, 240, 211, .7); outline-offset: 3px; }

.kvlo__back { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0;
  font-size: 12.5px; color: var(--mute); }
.kvlo__clock { display: inline-grid; }

/* a paying learner who reached a limit: the same card, no pitch */
.kvlo--calm .kvlo__lattice .kvlo-cell { animation: none; }
.kvlo--calm .kvlo__primary { background: rgba(207, 240, 211, .14); color: var(--ink); box-shadow: none; }

@media (max-width: 560px) {
  .kvlo-backdrop { place-items: end stretch; padding: 0; }
  .kvlo { width: 100%; max-height: calc(100dvh - 24px); border-radius: 28px 28px 0 0;
    padding: 22px 18px calc(16px + env(safe-area-inset-bottom)); border-bottom: 0;
    transform: translateY(100%); transition: transform .45s cubic-bezier(.2, 1.1, .3, 1), opacity .2s ease; }
  .kvlo::before { content: ''; display: block; width: 42px; height: 4px; margin: -8px auto 12px; border-radius: 4px; background: rgba(207, 240, 211, .25); }
  .kvlo-backdrop.is-leaving .kvlo { transform: translateY(100%); }
  .kvlo__top { margin-block-end: 10px; }
  .kvlo__mark svg { width: 36px; height: 36px; }
  .kvlo__title { font-size: 22px; margin-block-end: 6px; }
  .kvlo[dir='rtl'] .kvlo__title { font-size: 21px; line-height: 1.45; }
  .kvlo__lead { font-size: 14px; line-height: 1.5; margin-block-end: 12px; }
  .kvlo__meter { padding: 10px 12px 8px; gap: 7px; margin-block-end: 12px; }
  .kvlo__benefits { margin-block-end: 12px; gap: 2px; }
  .kvlo__benefit { padding: 6px 10px; font-size: 14px; }
  .kvlo__price { margin-block-end: 10px; }
  .kvlo__amount { font-size: 30px; }
  .kvlo__primary { min-height: 50px; }
  .kvlo__secondary { min-height: 40px; }
  .kvlo__back { margin-block-start: 4px; }
}
/* short phones: three benefits are enough */
@media (max-width: 560px) and (max-height: 760px) {
  .kvlo__benefit:nth-child(n+4) { display: none; }
  .kvlo__unit { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .kvlo, .kvlo-backdrop, .kvlo__fill { transition: none !important; }
  .kvlo__lattice .kvlo-cell, .kvlo__glow, .kvlo__mark, .kvlo__shine, .kvlo__bar--pro .kvlo__fill::after { animation: none !important; }
  .kvlo__benefit, .kvlo__price { animation: none; opacity: 1; transform: none; }
}
