/*
 * Beranda JagoUMKM — mengikuti Figma frame Home (1440 px). Ukuran desktop = nilai Figma,
 * lalu menyesuaikan laptop, tablet, dan ponsel.
 */

/* ---------- Hero ---------- */
.jg-home main { margin-top: -93px; overflow: hidden; }
.jg-home main > .container:first-child { padding-top: 100px; }
.jg-hero { position: relative; padding: 144px 0 0; text-align: center; isolation: isolate; }
.jg-hero::before { content: ""; position: absolute; z-index: -2; left: 0; right: 0; top: 0; height: 449px; border-radius: 0 0 50px 50px; background: linear-gradient(180deg, #ffe69d 0%, #fff 100%); }
.jg-hero-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: jgFloat 14s ease-in-out infinite; }
.jg-hero-blob.b1 { width: 340px; height: 340px; left: -80px; top: 60px; background: #ffd24d; }
.jg-hero-blob.b2 { width: 280px; height: 280px; right: -60px; top: 140px; background: #b9e88f; animation-delay: -6s; }
.jg-hero h1 { margin: 0 auto; font-family: var(--jg-display); font-weight: 700; font-size: 50px; line-height: 60px; color: var(--jg-green-dark); letter-spacing: 0; }
.jg-line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.jg-line > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.1s var(--jg-ease); transition-delay: var(--d, 0s); }
.is-ready .jg-line > span { transform: none; }
.jg-hero-lead { width: 856px; max-width: 100%; margin: 34px auto 0; font-size: 18px; line-height: 28px; color: var(--jg-black); }
.jg-hero-lead p { margin: 0 0 12px; }
.jg-hero-lead p:last-child { margin-bottom: 0; }
.jg-hero-lead .jg-hero-kicker { font-weight: 800; letter-spacing: .02em; color: var(--jg-green-dark, #04532b); }
.jg-hero-cta { margin-top: 43px; }
.jg-hero-cta .jg-btn { position: relative; }
.jg-hero-cta .jg-btn::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid rgba(94, 197, 46, .55); animation: jgPulse 2.4s var(--jg-ease) infinite; pointer-events: none; }

/* ---------- Slider utama ---------- */
.jg-showcase { position: relative; margin-top: 91px; padding-bottom: 40px; }
.jg-showcase-bg { position: absolute; z-index: 0; top: 61px; bottom: 0; left: max(12px, calc((100% - 1288px) / 2)); right: max(12px, calc((100% - 1288px) / 2)); border-radius: 50px; background: linear-gradient(180deg, var(--jg-green-a) 0%, var(--jg-green-b) 100%); overflow: hidden; }
.jg-showcase-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 120%, rgba(255, 255, 255, .18), transparent 70%); }
.jg-slider { position: relative; z-index: 1; width: min(1058px, calc(100% - 64px)); margin: 0 auto; aspect-ratio: 1058 / 568; border-radius: 30px; overflow: hidden; background: #dfe9d6; box-shadow: 0 30px 60px -10px rgba(0, 40, 20, .35); -webkit-mask-image: -webkit-radial-gradient(white, black); transform: translateZ(0); touch-action: pan-y; }
.jg-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--jg-ease), visibility 0s linear 1.1s; }
.jg-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.jg-slide img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 7s ease-out; -webkit-user-drag: none; user-select: none; }
.jg-slide.is-active img { transform: scale(1); }
.jg-slide a { display: block; width: 100%; height: 100%; }
.jg-slide-caption { position: absolute; left: 28px; bottom: 28px; max-width: min(520px, calc(100% - 56px)); padding: 16px 20px; border-radius: 18px; text-align: left; color: #fff; background: rgba(4, 83, 43, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transform: translate3d(0, 20px, 0); opacity: 0; transition: transform .9s var(--jg-ease) .35s, opacity .9s var(--jg-ease) .35s; }
.jg-slide.is-active .jg-slide-caption { transform: none; opacity: 1; }
.jg-slide-caption strong { display: block; font-family: var(--jg-display); font-size: 22px; line-height: 1.2; }
.jg-slide-caption span { display: block; margin-top: 4px; font-size: 14px; opacity: .92; }
.jg-slider-ctrl { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 42px; }
.jg-chev { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: background-color .25s, transform .3s var(--jg-ease); -webkit-tap-highlight-color: transparent; }
.jg-chev img { width: 23px; height: 12px; }
.jg-chev.prev img { transform: rotate(-90deg); }
.jg-chev.next img { transform: rotate(90deg); }
.jg-chev:hover { background: rgba(255, 255, 255, .16); }
.jg-chev.prev:hover { transform: translateX(-3px); }
.jg-chev.next:hover { transform: translateX(3px); }
.jg-chev:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.jg-progress-line { position: relative; width: 178px; height: 1px; background: rgba(255, 255, 255, .45); overflow: hidden; }
.jg-progress-line i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: #fff; transform-origin: left center; transform: scaleX(0); }
.jg-progress-line.is-static i { transform: none; }
.jg-slider-dots { display: none; }

/* ---------- Fitur (Jurnal Akuntansi / POS) ---------- */
.jg-feature { display: grid; grid-template-columns: 570px 460px; column-gap: 33px; align-items: start; margin-top: 106px; }
.jg-feature + .jg-feature { margin-top: 136px; }
.jg-feature-text { margin-left: 83px; max-width: 477px; }
.jg-feature.is-reverse .jg-feature-media { grid-column: 1; grid-row: 1; justify-self: end; margin-right: 33px; }
.jg-feature.is-reverse .jg-feature-text { grid-column: 2; grid-row: 1; margin-left: 0; max-width: 477px; }
.jg-tag { display: inline-block; padding: 6px 10px; border-radius: 10px 0 10px 0; background: var(--jg-tag); font-size: 15px; line-height: 18px; color: var(--jg-green-dark); }
.jg-feature h2 { margin: 14px 0 0; font-family: var(--jg-display); font-weight: 600; font-size: 50px; line-height: 60px; color: var(--jg-green-dark); }
.jg-feature-text > p { margin: 19px 0 0; font-size: 17px; line-height: 27px; color: var(--jg-black); }
.jg-feature.is-reverse .jg-feature-text > p { max-width: 453px; }
.jg-checks { display: flex; flex-direction: column; gap: 10px; margin: 27px 0 0; padding: 0; list-style: none; }
.jg-checks li { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; line-height: 27px; color: var(--jg-black); }
.jg-checks img { width: 19px; height: 19px; flex-shrink: 0; }
.jg-feature-media { position: relative; width: 460px; max-width: 100%; }
.jg-frame { position: absolute; z-index: 0; border: 1px solid var(--jg-orange); border-radius: 20px; pointer-events: none; transform: translate3d(0, var(--py, 0px), 0); transition: transform .2s linear; }
.jg-feature:not(.is-reverse) .jg-frame { left: 23.48%; top: 21.23%; width: 89.57%; height: 89.29%; }
.jg-feature.is-reverse .jg-frame { left: -12.17%; top: 23.61%; width: 89.57%; height: 87.7%; }
.jg-photo { position: relative; z-index: 1; aspect-ratio: 460 / 504; border-radius: 20px; overflow: hidden; background: #eef3ea; box-shadow: 0 24px 50px -24px rgba(4, 83, 43, .35); -webkit-mask-image: -webkit-radial-gradient(white, black); }
.jg-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--jg-ease); }
.jg-feature-media:hover .jg-photo img { transform: scale(1.06); }

/* ---------- CTA ---------- */
.jg-cta { position: relative; margin-top: 171px; }
.jg-cta-box { position: relative; min-height: 371px; padding: 40px 67px 55px; border-radius: 50px; background: linear-gradient(180deg, var(--jg-green-a) 0%, var(--jg-green-b) 100%); overflow: visible; }
.jg-cta-box::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px 260px at 72% 100%, rgba(255, 255, 255, .22), transparent 70%); pointer-events: none; }
.jg-cta h2 { position: relative; margin: 0; font-family: var(--jg-display); font-weight: 700; font-size: 50px; line-height: 60px; color: #fff; }
.jg-cta p { position: relative; margin: 14px 0 0 3px; font-size: 18px; line-height: 25px; color: #fff; }
.jg-cta p strong { font-weight: 800; }
.jg-cta .jg-btn { margin: 28px 0 0 3px; }
.jg-cta-person { position: absolute; left: 651px; bottom: 0; width: 321px; height: 425px; pointer-events: none; }
.jg-cta-person img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom; animation: jgBob 6s ease-in-out infinite; transform-origin: bottom center; }

/* ---------- Informasi Terbaru ---------- */
.jg-info { margin-top: 109px; }
.jg-section-title { margin: 0; font-family: var(--jg-display); font-weight: 600; font-size: 50px; line-height: 60px; color: var(--jg-green-dark); }
.jg-info .jg-section-title { text-align: center; }
.jg-info .jg-track { margin-top: 54px; }
.jg-track { display: flex; gap: 20px; overflow-x: auto; overflow-y: hidden; -ms-overflow-style: none; scrollbar-width: none; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; padding: 4px 2px 18px; margin: 0 -2px -18px; cursor: grab; }
.jg-track::-webkit-scrollbar { display: none; }
.jg-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.jg-track.is-dragging a { pointer-events: none; }
.jg-track > * { scroll-snap-align: start; flex-shrink: 0; }
.jg-info-card { position: relative; display: flex; flex-direction: column; width: calc((100% - 40px) / 3); padding: 46px 29px 31px 37px; border-radius: 20px; background: var(--jg-card); color: var(--jg-black-2); text-decoration: none; transition: transform .5s var(--jg-ease), box-shadow .5s var(--jg-ease), background-color .3s; }
.jg-info-card:hover { color: var(--jg-black-2); background: #fff; transform: translateY(-8px); box-shadow: 0 24px 48px -18px rgba(4, 83, 43, .28); }
.jg-info-card h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 78px; margin: 0; font-family: var(--jg-font); font-size: 20px; font-weight: 600; line-height: 26px; color: var(--jg-black-2); transition: color .25s; }
.jg-info-card:hover h3 { color: var(--jg-green-dark); }
.jg-info-date { margin-top: 19px; font-size: 12px; line-height: 16px; }
.jg-info-thumb { margin: 30px 0 0 -10px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #e7ece3; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.jg-info-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--jg-ease); }
.jg-info-card:hover .jg-info-thumb img { transform: scale(1.08); }

/* ---------- Testimoni ---------- */
.jg-testi { margin-top: 64px; }
.jg-testi .jg-section-title { max-width: 526px; }
.jg-testi .jg-track { margin-top: 24px; gap: 28px; }
.jg-testi-card { position: relative; width: calc((100% - 28px) / 2); min-height: 314px; padding: 28px 23px 30px 32px; border: 1px solid transparent; border-radius: 20px; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(125deg, rgba(43, 177, 90, 0) 8%, rgba(43, 177, 90, .35) 30%, #2bb15a 70%, #6bc021 100%) border-box; transition: transform .5s var(--jg-ease), box-shadow .5s var(--jg-ease); }
.jg-testi-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -24px rgba(4, 83, 43, .32); }
.jg-testi-head { display: flex; align-items: center; gap: 15px; padding-right: 50px; }
.jg-testi-head img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.jg-testi-head strong, .jg-testi-head span { display: block; font-size: 15px; line-height: 23px; }
.jg-testi-head span { font-weight: 400; color: var(--jg-black); }
.jg-testi-head strong { font-weight: 700; color: var(--jg-green-dark); }
.jg-quote { position: absolute; top: 36px; right: 23px; width: 27px; height: 18px; transform: rotate(180deg); transition: transform .5s var(--jg-ease); }
.jg-testi-card:hover .jg-quote { transform: rotate(174deg) scale(1.25); }
.jg-testi-card blockquote { margin: 26px 0 0 1px; font-size: 20px; font-weight: 300; line-height: 35px; color: var(--jg-black); }
.jg-carousel-bar { display: flex; align-items: center; gap: 18px; margin-top: 35px; }
.jg-bar { position: relative; flex: 1; max-width: 1063px; height: 9px; }
.jg-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: #ededed; }
.jg-bar i { position: absolute; left: 0; top: 0; height: 9px; width: 25%; background: var(--jg-green-light); transition: transform .35s var(--jg-ease), width .35s var(--jg-ease); will-change: transform; }
.jg-arrows { display: flex; gap: 9px; margin-left: auto; }
.jg-arrow { display: inline-flex; width: 25px; height: 25px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .3s var(--jg-ease), opacity .25s; -webkit-tap-highlight-color: transparent; }
.jg-arrow img { width: 25px; height: 25px; }
.jg-arrow.prev img { transform: scaleX(-1); }
.jg-arrow:hover { transform: translateY(-2px) scale(1.08); }
.jg-arrow:disabled { opacity: .35; cursor: default; transform: none; }
.jg-arrow:focus-visible { outline: 2px solid var(--jg-green-light); outline-offset: 2px; border-radius: 4px; }

/* ---------- Perangkat ---------- */
.jg-devices { margin-top: 137px; overflow: hidden; line-height: 0; }
.jg-devices img { display: block; width: 100%; height: auto; aspect-ratio: 2039 / 771; object-fit: cover; object-position: center; }

/* ---------- Keyframes ---------- */
@keyframes jgFloat { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(30px, -24px, 0) scale(1.08); } }
@keyframes jgPulse { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.18, 1.45); } }
@keyframes jgBob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -8px, 0); } }

/* ---------- Laptop ---------- */
@media (max-width: 1199.98px) {
  .jg-feature { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .jg-feature-text { margin-left: 0; }
  .jg-feature.is-reverse .jg-feature-media { margin-right: 0; }
  .jg-feature-media { width: 100%; max-width: 460px; }
  .jg-feature:not(.is-reverse) .jg-feature-media { justify-self: end; }
  .jg-cta-person { left: auto; right: 7%; }
}

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
  .jg-home main { margin-top: -74px; }
  .jg-hero { padding-top: 118px; }
  .jg-hero::before { height: 420px; border-radius: 0 0 36px 36px; }
  .jg-hero h1, .jg-feature h2, .jg-cta h2, .jg-section-title { font-size: clamp(30px, 5.6vw, 44px); line-height: 1.2; }
  .jg-hero-lead { margin-top: 22px; font-size: 16px; line-height: 26px; }
  .jg-hero-cta { margin-top: 30px; }
  .jg-showcase { margin-top: 56px; padding-bottom: 36px; }
  .jg-showcase-bg { top: 40px; border-radius: 36px; }
  .jg-slider { width: calc(100% - 48px); border-radius: 22px; }
  .jg-slider-ctrl { margin-top: 22px; }
  .jg-slide-caption { left: 16px; bottom: 16px; padding: 12px 14px; }
  .jg-slide-caption strong { font-size: 17px; }
  .jg-feature, .jg-feature.is-reverse { grid-template-columns: 1fr; row-gap: 56px; margin-top: 80px; }
  .jg-feature + .jg-feature { margin-top: 96px; }
  .jg-feature .jg-feature-media, .jg-feature:not(.is-reverse) .jg-feature-media, .jg-feature.is-reverse .jg-feature-media { grid-column: 1; grid-row: 1; justify-self: center; width: min(460px, calc(100% - 60px)); margin: 0; }
  .jg-feature .jg-feature-text, .jg-feature.is-reverse .jg-feature-text { grid-column: 1; grid-row: 2; max-width: 620px; margin: 0 auto; justify-self: center; }
  .jg-cta { margin-top: 120px; }
  .jg-cta-box { min-height: 0; padding: 44px 36px 0; border-radius: 36px; text-align: center; }
  .jg-cta p { margin-left: 0; }
  .jg-cta .jg-btn { margin-left: 0; }
  .jg-cta-person { position: relative; left: auto; right: auto; width: min(260px, 70%); height: auto; aspect-ratio: 321 / 425; margin: 26px auto 0; }
  .jg-info { margin-top: 80px; }
  .jg-info .jg-track { margin-top: 36px; }
  .jg-info-card { width: calc((100% - 20px) / 2.15); }
  .jg-testi .jg-track { gap: 20px; }
  .jg-testi-card { width: calc(100% - 40px); }
  .jg-devices { margin-top: 90px; }
}

/* ---------- Ponsel ---------- */
@media (max-width: 575.98px) {
  .jg-hero h1 { font-size: 30px; }
  .jg-hero h1 .jg-line { display: inline; }
  .jg-hero-lead { font-size: 15px; line-height: 24px; }
  .jg-showcase-bg { left: 8px; right: 8px; border-radius: 28px; }
  .jg-slider { width: calc(100% - 32px); border-radius: 18px; aspect-ratio: 4 / 3; }
  .jg-slide-caption { display: none; }
  .jg-progress-line { width: 120px; }
  .jg-feature h2 { font-size: 30px; }
  .jg-feature-text > p, .jg-checks li { font-size: 15px; line-height: 24px; }
  .jg-cta-box { padding: 36px 22px 0; border-radius: 28px; }
  .jg-cta h2 { font-size: 30px; }
  .jg-cta h2 br { display: none; }
  .jg-cta p { font-size: 16px; }
  .jg-info-card { width: 84%; min-height: 0; padding: 30px 20px 22px 24px; }
  .jg-info-thumb { margin: 22px 0 0 -6px; }
  .jg-testi-card { width: 88%; padding: 22px 18px 24px 22px; }
  .jg-testi-card blockquote { font-size: 16px; line-height: 28px; }
  .jg-carousel-bar { gap: 12px; }
  .jg-devices img { min-height: 210px; }
}
.jg-feature:not(.is-reverse) .jg-feature-text > p { max-width: 419px; }
@media (max-width: 991.98px) { .jg-feature:not(.is-reverse) .jg-feature-text > p { max-width: none; } }
.jg-testi-initials { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(180deg, var(--jg-green-a), var(--jg-green-b)); color: #fff; font-weight: 800; font-size: 17px; }
