/* LexKas — landing & checkout */
:root {
  --bg: #f7f6f2; --surface: #ffffff; --ink: #14212f; --muted: #5d6877; --line: #e4e2da;
  --brand: #16324f; --brand-2: #1f4a73; --gold: #c9a45c; --gold-soft: #f4ecda; --green: #2f7d6d; --bad: #b42318;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --serif: "Fraunces", Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-2); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; } .wrap.narrow { max-width: 780px; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h2 { font: 700 clamp(26px, 4vw, 38px)/1.15 var(--serif); letter-spacing: -.01em; margin-bottom: 12px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px var(--font); border-radius: 10px; padding: 12px 20px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .1s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn.sm { padding: 8px 14px; font-size: 14px; } .btn.lg { padding: 15px 24px; font-size: 16px; } .btn.block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; } .btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); } .btn-ghost:hover { background: #16324f0d; }
.btn-gold { background: var(--gold); color: var(--brand); } .btn-gold:hover { background: #d8b673; }
.btn:disabled { opacity: .6; cursor: wait; }
.logo { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: var(--gold); font: 700 20px var(--serif); }
.logo.sm { width: 22px; height: 22px; font-size: 14px; border-radius: 6px; vertical-align: -5px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(247, 246, 242, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px var(--serif); color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; } .nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; } .nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; } .nav-cta .link { font-weight: 600; text-decoration: none; color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 40px; background: radial-gradient(circle at 90% 0, #c9a45c22, transparent 40%), radial-gradient(circle at 0 100%, #2f7d6d18, transparent 40%); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font: 700 clamp(34px, 5.4vw, 56px)/1.08 var(--serif); letter-spacing: -.02em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--green); }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 26px; max-width: 560px; } .lead b { color: var(--ink); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.trust li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.browser { background: #fff; border-radius: 14px; box-shadow: 0 30px 60px -20px #16324f55, 0 0 0 1px #16324f14; overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.browser-bar { height: 28px; background: #eef0f3; display: flex; gap: 6px; align-items: center; padding: 0 12px; } .browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d7dd; }
.shot-note { font-size: 12px; color: var(--muted); text-align: center; margin: 10px 0 0; }

/* Sections */
section { padding: 72px 0; }
.pains { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.pain { background: #fbf3f2; border: 1px solid #f1d9d6; border-radius: 14px; padding: 18px; } .pain b { color: var(--bad); } .pain p { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.feat .ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--gold-soft); color: var(--brand); font-size: 18px; margin-bottom: 10px; }
.feat b { display: block; margin-bottom: 4px; } .feat p { margin: 0; font-size: 14.5px; color: var(--muted); }
.steps-sec { background: var(--brand); color: #e7eef6; } .steps-sec h2 { color: #fff; } .steps-sec .eyebrow { color: var(--gold); }
.steps3 { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps3 li { background: #ffffff10; border: 1px solid #ffffff22; border-radius: 14px; padding: 22px; counter-increment: s; }
.steps3 li::before { content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--brand); font-weight: 800; margin-bottom: 10px; }
.steps3 b { display: block; color: #fff; font-size: 17px; } .steps3 p { margin: 6px 0 0; font-size: 14.5px; color: #c9d6e6; }
.pricing { text-align: center; } .sub { color: var(--muted); margin: 0 auto 28px; max-width: 560px; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 20px; }
.price { position: relative; background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 30px 26px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.price.hl { border-color: var(--gold); box-shadow: 0 20px 40px -24px #c9a45c99; }
.price h3 { font-size: 18px; } .amount { font: 800 34px/1.1 var(--font); letter-spacing: -.02em; } .amount small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.per { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.pbadge { position: absolute; top: -13px; left: 26px; background: var(--gold); color: var(--brand); font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 99px; }
.incl { list-style: none; padding: 0; margin: 26px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--muted); font-size: 14.5px; }
.incl li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; } .faq summary::after { content: "+"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "−"; } .faq details p { margin: 0 0 14px; color: var(--muted); }
.final { text-align: center; background: linear-gradient(180deg, var(--bg), var(--gold-soft)); } .final h2 { margin-bottom: 20px; } .muted-l { color: var(--muted); font-size: 14px; }
.foot { border-top: 1px solid var(--line); padding: 22px 0; font-size: 13.5px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wa-float { position: fixed; right: 16px; bottom: 16px; background: #25d366; color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 99px; text-decoration: none; box-shadow: 0 10px 24px #0003; z-index: 20; }
.wa-float[hidden] { display: none; }

/* Checkout */
.co { padding: 32px 0 60px; }
.co-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.co-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.co h1 { font: 700 30px var(--serif); margin-bottom: 6px; }
.co .plan-opt { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; margin-bottom: 10px; }
.co .plan-opt:has(input:checked) { border-color: var(--brand); background: #16324f08; }
.co .plan-opt input { margin-top: 5px; accent-color: var(--brand); }
.co .plan-opt b { display: block; } .co .plan-opt .pp { font-weight: 800; font-size: 20px; }
.co .tag { background: var(--gold); color: var(--brand); font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; margin-left: 6px; }
.co label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.co input[type=text], .co input[type=email], .co input[type=tel], .co input[type=password] { display: block; width: 100%; margin-top: 6px; font: 16px var(--font); padding: 12px 14px; border: 1px solid #cfd3da; border-radius: 10px; background: #fff; color: var(--ink); }
.co input:focus { outline: 3px solid #1f4a7333; border-color: var(--brand-2); }
.co .hint { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.co .err { background: #fde8e7; color: var(--bad); padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.co .err[hidden] { display: none; }
.co .sum-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.co .sum-row.total { font-weight: 800; font-size: 18px; border: 0; }
.co .benefits { list-style: none; padding: 0; margin: 16px 0 0; font-size: 14px; color: var(--muted); } .co .benefits li { padding: 3px 0; } .co .benefits li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.pw-wrap { position: relative; } .pw-wrap button { position: absolute; right: 8px; bottom: 8px; background: none; border: 0; color: var(--muted); cursor: pointer; font: 600 13px var(--font); padding: 4px 6px; }
#ts { margin: 6px 0 14px; min-height: 0; }
.secure { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 12px; }

@media (max-width: 980px) {
  .hero-in, .co-grid { grid-template-columns: 1fr; } .browser { transform: none; }
  .pain-grid, .feat-grid { grid-template-columns: repeat(2, 1fr); } .steps3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  section { padding: 52px 0; } .hero { padding: 32px 0 24px; } .lead { font-size: 16.5px; }
  .pain-grid, .feat-grid, .price-grid { grid-template-columns: 1fr; } .hero-cta .btn { width: 100%; }
  .nav-cta .link { display: none; } .co-card { padding: 20px; }
}

/* ===== Gerak & interaksi (palet tetap) ===== */
.nav { transition: box-shadow .25s ease, background .25s ease; }
.nav.scrolled { box-shadow: 0 10px 30px -22px rgba(22, 50, 79, .55); }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].in { opacity: 1; transform: none; }
.hero > * > * { animation: heroin .8s cubic-bezier(.2,.8,.2,1) both; }
.hero > * > *:nth-child(2) { animation-delay: .12s; }
@keyframes heroin { from { opacity: 0; transform: translateY(18px); } }
.browser { transition: transform .5s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.feat, .price { position: relative; overflow: hidden; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .2s, opacity .7s, translate .7s; }
.feat::after, .price::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 164, 92, .18), transparent 65%); }
.feat:hover::after, .price:hover::after { opacity: 1; }
.feat:hover, .price:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(22, 50, 79, .5); }
.feat .ico { display: inline-grid; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.feat:hover .ico { transform: scale(1.15) rotate(-8deg); }
.btn { position: relative; overflow: hidden; transition: transform .12s ease, background .15s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-primary:hover { box-shadow: 0 10px 24px -12px rgba(22, 50, 79, .7); }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .2; transform: scale(0); pointer-events: none; animation: ripple .6s ease forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
details > summary { transition: color .2s; } details[open] > *:not(summary) { animation: heroin .35s ease both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
/* kartu di grid: pakai animasi (bukan transisi) agar hover tidak ikut tertunda */
[data-reveal-kids] > [data-reveal] { transform: none; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .2s; }
[data-reveal-kids] > [data-reveal].in { animation: heroin .7s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i, 0) * 70ms); opacity: 1; }
.price { overflow: visible; } .price::after { border-radius: inherit; }

/* ===== Bingkai perangkat: laptop (browser) → tablet → HP, gambar ikut berganti ===== */
.device { position: relative; }
.device picture, .device img { display: block; width: 100%; height: auto; }
.browser-bar .url { margin-left: 10px; flex: 1; max-width: 260px; height: 16px; border-radius: 8px; background: #fff; font-size: 10px; line-height: 16px; padding: 0 10px; color: #8a94a3; }
.dev-notch, .dev-home { display: none; }
.shot-note a { color: var(--brand-2); font-weight: 600; text-decoration: none; } .shot-note a:hover { text-decoration: underline; }

@media (min-width: 601px) and (max-width: 1024px) {
  .hero-shot { display: flex; flex-direction: column; align-items: center; }
  .device { width: min(560px, 86vw); padding: 16px; border-radius: 36px; background: linear-gradient(145deg, #22344a, #0f1a28); overflow: visible;
    box-shadow: inset 0 0 0 1.5px #3b4f68, 0 40px 70px -30px #16324f99, 0 0 0 1px #0b1220; transform: none !important; }
  .device .browser-bar { display: none; }
  .device picture, .device img { border-radius: 20px; overflow: hidden; }
  .device .dev-notch { display: block; position: absolute; top: 6px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #3b4f68; }
}
@media (max-width: 600px) {
  .hero-shot { display: flex; flex-direction: column; align-items: center; margin-top: 8px; }
  .device { width: min(290px, 76vw); padding: 9px; border-radius: 46px; background: linear-gradient(145deg, #26384f, #0f1a28); overflow: visible;
    box-shadow: inset 0 0 0 1.5px #3b4f68, 0 36px 60px -26px #16324fa6, 0 0 0 1px #0b1220; transform: none !important; }
  .device .browser-bar { display: none; }
  .device picture, .device img { border-radius: 38px; overflow: hidden; }
  .device .dev-notch { display: block; position: absolute; z-index: 2; top: 18px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 14px; background: #0b1220; }
  .device::before, .device::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #22344a; }
  .device::before { left: -3px; top: 120px; height: 56px; } .device::after { right: -3px; top: 150px; height: 80px; }
  .device { animation: floaty 6s ease-in-out infinite; }
}
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .device { animation: none; } }
