/* =========================================================
   LegalCraft — Homepage Styles
   Primary: #17517E  |  Background: #F8FAFC
   Fonts: Poppins (heading) + Inter (body)
   ========================================================= */

:root {
  --primary: #17517E;
  --primary-600: #134467;
  --primary-700: #0F3754;
  --accent: #2C83B8;
  --accent-light: #5BA9D6;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;
  --border: #E2E8F0;
  --danger: #DC2626;
  --success: #16A34A;
  --wa: #25D366;

  --grad-hero: linear-gradient(135deg, #17517E 0%, #2C83B8 55%, #6FB4DD 100%);
  --grad-brand: linear-gradient(135deg, #17517E 0%, #2C83B8 50%, #F8FAFC 100%);
  --grad-btn: linear-gradient(135deg, #17517E 0%, #2C83B8 100%);
  --grad-cta: linear-gradient(135deg, #0F3754 0%, #17517E 45%, #2C83B8 100%);
  --grad-soft: linear-gradient(180deg, #EEF5FB 0%, #F8FAFC 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px -12px rgba(23, 81, 126, .25);
  --shadow-lg: 0 24px 60px -20px rgba(15, 55, 84, .45);

  --nav-h: 72px;
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.2; color: var(--text); }
p { margin: 0; }

section[id], footer[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .75rem 1.25rem; border-radius: 12px; border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55rem 1rem; font-size: .875rem; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 20px -8px rgba(23, 81, 126, .6); }
.btn-primary:hover { box-shadow: 0 14px 28px -10px rgba(23, 81, 126, .7); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-white { background: #fff; color: var(--primary); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
.btn-white:hover { background: #F1F7FC; }

.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); border-color: #fff; }

/* ---------- Navbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled { background: rgba(255,255,255,.95); border-color: var(--border); box-shadow: var(--shadow-sm); }

.navbar { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-btn); color: #fff; font-size: 1.05rem; box-shadow: 0 6px 16px -6px rgba(23,81,126,.6);
}
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--primary); letter-spacing: -.01em; }
.brand-name span { color: var(--accent); }

.nav-menu { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  display: block; padding: .5rem .9rem; border-radius: 10px;
  font-weight: 500; font-size: .95rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--primary); background: rgba(23, 81, 126, .07); }
.nav-link.active { color: var(--primary); font-weight: 600; background: rgba(23, 81, 126, .08); }
.nav-menu-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: .5rem; }

.hamburger {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span { width: 20px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Eyebrow & section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary); background: rgba(44, 131, 184, .12);
  padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow-light { color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); text-transform: none; letter-spacing: 0; font-size: .875rem; }

.section { padding: 96px 0; }
.section-alt { background: var(--grad-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.section-subtitle { margin-top: .9rem; color: var(--muted); font-size: 1.05rem; }
.text-left { text-align: left; }
.card-title { font-size: 1.15rem; font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad-hero);
  padding: 88px 0 112px;
  margin-top: calc(var(--nav-h) * -1);
  padding-top: calc(var(--nav-h) + 72px);
}
.hero::after { /* soft fade into page background */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(180deg, rgba(248,250,252,0) 0%, var(--bg) 100%);
  pointer-events: none;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob-1 { width: 420px; height: 420px; background: #6FB4DD; top: -120px; right: -80px; }
.blob-2 { width: 360px; height: 360px; background: #0F3754; bottom: -60px; left: -120px; opacity: .5; }
.grid-pattern {
  position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.12;
  color: #fff; text-shadow: 0 2px 24px rgba(15, 55, 84, .25);
}
/* Catatan: tidak ada garis/underline dekoratif di bawah headline */
.hero-subtitle { margin-top: 1.25rem; font-size: 1.125rem; color: rgba(255,255,255,.9); max-width: 560px; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-points { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .925rem; color: rgba(255,255,255,.92); }
.hero-points i { color: #A7F3D0; margin-right: .35rem; }

/* Hero visual */
.hero-visual { position: relative; height: 440px; }
.doc-stack { position: absolute; inset: 56px 40px 56px 64px; }
.doc-sheet { position: absolute; border-radius: var(--radius-lg); }
.doc-back {
  inset: 18px -18px -18px 18px; background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.35); transform: rotate(4deg);
}
.doc-main {
  inset: 0; background: #fff; color: var(--text); padding: 28px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 22px;
}
.doc-head { display: flex; align-items: center; gap: 14px; }
.doc-head strong { font-family: var(--font-head); display: block; font-size: 1.05rem; }
.doc-head small { color: var(--muted); }
.doc-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-btn); color: #fff; font-size: 1.2rem; }
.doc-lines { display: flex; flex-direction: column; gap: 12px; }
.doc-lines span { height: 10px; border-radius: 6px; background: linear-gradient(90deg, #E2EDF6, #F1F5F9); }
.doc-progress { margin-top: auto; }
.doc-progress-label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.doc-progress-bar { height: 10px; border-radius: 999px; background: #E2E8F0; overflow: hidden; }
.doc-progress-bar span { display: block; width: 100%; height: 100%; background: var(--grad-btn); border-radius: inherit; animation: fillBar 2.4s ease-out both; }
@keyframes fillBar { from { width: 10%; } to { width: 100%; } }
.doc-stamp {
  position: absolute; right: 24px; bottom: 64px; width: 64px; height: 64px; border-radius: 50%;
  border: 3px dashed var(--success); color: var(--success); display: grid; place-items: center; font-size: 1.4rem;
  transform: rotate(-12deg); background: rgba(22, 163, 74, .06);
}

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.96); color: var(--text);
  padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: floaty 6s ease-in-out infinite; min-width: 170px;
}
.float-card strong { font-family: var(--font-head); display: block; font-size: .95rem; }
.float-card small { color: var(--primary); font-weight: 600; font-size: .85rem; }
.fc-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(44,131,184,.12); color: var(--primary); }
.card-npwp { top: 0; left: -10px; }
.card-nib { top: 44%; right: -16px; animation-delay: -2s; }
.card-pt { bottom: 0; left: 10px; animation-delay: -4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Cards grid ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad-btn);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(44,131,184,.35); }
.service-card:hover::before { transform: scaleX(1); }
.service-card p { color: var(--muted); flex-grow: 1; }
.service-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-btn); color: #fff; font-size: 1.35rem; box-shadow: 0 10px 20px -10px rgba(23,81,126,.7);
}
.service-price { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px; border-radius: 12px; background: #F1F7FC; }
.service-price small { color: var(--muted); font-size: .85rem; }
.service-price strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--primary); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num { position: absolute; top: 18px; right: 22px; font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: rgba(23,81,126,.1); }
.step-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(44,131,184,.12); color: var(--primary); font-size: 1.3rem; margin-bottom: 18px; }
.step p { color: var(--muted); margin-top: .5rem; font-size: .95rem; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.why-content .btn { margin-top: 1.75rem; }
.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-item { display: flex; gap: 14px; padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.why-item p { color: var(--muted); font-size: .925rem; margin-top: .3rem; }
.why-item .card-title { font-size: 1.02rem; }
.why-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-btn); color: #fff; }

/* ---------- Pricing ---------- */
.price-card {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-badge { align-self: flex-start; font-size: .78rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; background: rgba(44,131,184,.12); color: var(--primary); }
.price-value { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--primary); letter-spacing: -.02em; line-height: 1.1; }
.price-features { display: flex; flex-direction: column; gap: .6rem; color: var(--muted); font-size: .95rem; flex-grow: 1; margin-bottom: .5rem; }
.price-features i { color: var(--success); margin-right: .5rem; }

.price-card-featured { background: var(--grad-cta); border-color: transparent; color: #fff; box-shadow: var(--shadow-lg); }
.price-card-featured .card-title, .price-card-featured .price-value { color: #fff; }
.price-card-featured .price-badge { background: rgba(255,255,255,.18); color: #fff; }
.price-card-featured .price-features { color: rgba(255,255,255,.9); }
.price-card-featured .price-features i { color: #A7F3D0; }

/* ---------- Testimonial marquee ---------- */
.testimonial-section { overflow: hidden; }
.testimonial-section .section-head { margin-bottom: 40px; }
.marquee {
  position: relative; display: flex; flex-direction: column; gap: 20px;
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.marquee-row { overflow: hidden; width: 100%; }
.marquee-track { display: flex; width: max-content; gap: 20px; padding: 8px 0; will-change: transform; }
.marquee-left  { animation: scrollLeft 45s linear infinite; }
.marquee-right { animation: scrollRight 45s linear infinite; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }
/* Track berisi 2 set kartu identik + gap; -50% (dikompensasi gap) = seamless loop */
@keyframes scrollLeft  { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 10px)); } }
@keyframes scrollRight { from { transform: translateX(calc(-50% - 10px)); } to { transform: translateX(0); } }

.t-card {
  flex-shrink: 0; width: 340px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
}
.t-stars { color: #F59E0B; font-size: .9rem; display: flex; align-items: center; gap: 3px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border); }
.t-stars span { margin-left: 6px; color: var(--muted); font-weight: 600; font-size: .82rem; font-family: var(--font-head); }
.t-quote { margin-left: auto; color: rgba(44,131,184,.25); font-size: 1.6rem; }
.t-text { color: var(--text); font-size: .975rem; line-height: 1.6; }
.t-author { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.t-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-btn); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.t-author strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.t-author small { color: var(--accent); font-weight: 500; font-size: .825rem; }
.t-card { transition: transform .25s ease, box-shadow .25s ease; }
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* ---------- FAQ ---------- */
.faq-container { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item.open { border-color: rgba(44,131,184,.45); box-shadow: var(--shadow); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: none; border: 0; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--text);
}
.faq-question:hover { color: var(--primary); }
.faq-question i {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(44,131,184,.12); color: var(--primary); font-size: .85rem; transition: transform .3s, background .3s, color .3s;
}
.faq-item.open .faq-question i { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer > * { padding: 0 24px 22px; color: var(--muted); }
.faq-prices { display: grid; gap: 8px; }
.faq-prices li { display: flex; justify-content: space-between; padding: 10px 14px; background: #F1F7FC; border-radius: 10px; }
.faq-prices strong { color: var(--primary); font-family: var(--font-head); }

/* ---------- Final CTA ---------- */
.final-cta-wrap { padding: 24px 0 96px; }
.final-cta {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: var(--grad-cta); border-radius: 32px; padding: 72px 32px; box-shadow: var(--shadow-lg);
}
.final-cta .section-title { color: #fff; position: relative; }
.final-cta p { position: relative; margin: 1rem auto 2rem; max-width: 560px; color: rgba(255,255,255,.9); font-size: 1.1rem; }
.final-cta .btn { position: relative; }
.blob-cta { width: 380px; height: 380px; background: #6FB4DD; top: -160px; right: -100px; opacity: .45; }
.final-cta::before {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; left: -120px; bottom: -160px;
  border: 40px solid rgba(255,255,255,.07);
}

/* ---------- Footer ---------- */
.site-footer { background: #17517E; color: #fff; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: 1.1rem; }
.footer-col p { color: rgba(255,255,255,.82); font-size: .95rem; margin-top: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-col ul a { color: rgba(255,255,255,.82); font-size: .95rem; transition: color .2s, padding-left .2s; }
.footer-col ul a:hover { color: #fff; padding-left: 4px; }
.brand-footer .brand-mark { background: rgba(255,255,255,.15); box-shadow: none; }
.brand-footer .brand-name { color: #fff; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.82); font-size: .95rem; }
.footer-contact i { width: 18px; margin-top: 4px; color: #9FD0EE; }
.footer-contact a { word-break: break-word; }
.footer-bottom { margin-top: 56px; padding: 24px 20px 32px; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-direction: column; gap: .6rem; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,.85); font-size: .9rem; }
.footer-bottom .disclaimer { color: rgba(255,255,255,.65); font-size: .8rem; max-width: 820px; margin: 0 auto; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--wa); color: #fff; border: 0; border-radius: 999px;
  padding: 14px 20px 14px 16px; font-weight: 600; font-size: .95rem;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6);
  transition: transform .2s, box-shadow .2s;
}
.wa-float i { font-size: 1.6rem; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 32px -8px rgba(37, 211, 102, .7); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa);
  animation: pulse 2.2s ease-out infinite; pointer-events: none;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(15, 30, 50, .55); backdrop-filter: blur(4px); animation: fadeIn .2s ease; }
.modal-dialog {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  animation: popIn .25s ease;
}
.modal-header {
  display: flex; justify-content: space-between; gap: 16px; padding: 24px 28px;
  background: var(--grad-hero); color: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-header h2 { color: #fff; font-size: 1.4rem; }
.modal-header p { color: rgba(255,255,255,.88); font-size: .9rem; margin-top: .35rem; }
.modal-close { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.1rem; transition: background .2s; }
.modal-close:hover { background: rgba(255,255,255,.3); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

.consult-form { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: .9rem; color: var(--text); }
.req { color: var(--danger); }
.opt { color: #94A3B8; font-weight: 400; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; font-family: var(--font-body); font-size: .95rem; color: var(--text);
  padding: .75rem .9rem; border: 1.5px solid var(--border); border-radius: 12px; background: #F8FAFC;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-group textarea { resize: vertical; min-height: 88px; }
.form-group select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2317517E' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 2.4rem; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(44,131,184,.15); }
.form-group.has-error input, .form-group.has-error select { border-color: var(--danger); background: #FEF2F2; }
.error-msg { color: var(--danger); font-size: .8rem; min-height: 0; }
.error-msg:empty { display: none; }
.service-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #F1F7FC; border: 1px dashed rgba(44,131,184,.5); font-size: .9rem; color: var(--muted); }
.service-summary[hidden] { display: none; }
.service-summary i { color: var(--primary); margin-right: .25rem; }
.service-summary strong { font-family: var(--font-head); color: var(--primary); font-size: 1.1rem; }
.form-note { text-align: center; font-size: .8rem; color: #94A3B8; }
.form-note i { margin-right: .25rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; height: 400px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 12px); justify-self: center; width: 100%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hamburger { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 16px 20px 24px; border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 30px -20px rgba(15,23,42,.25);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .nav-menu.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-link { padding: .85rem 1rem; font-size: 1rem; }
  .nav-menu-cta { display: block; margin-top: 8px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding-bottom: 88px; padding-top: calc(var(--nav-h) + 48px); }
  .hero-actions .btn { width: 100%; }
  .hero-visual { height: 340px; }
  .doc-stack { inset: 46px 22px 46px 36px; }
  .doc-main { padding: 20px; gap: 16px; }
  .doc-stamp { display: none; }
  .card-pt { bottom: -14px; }
  .card-nib { top: 38%; }
  .float-card { min-width: 0; padding: 10px 12px; gap: 10px; }
  .fc-icon { width: 34px; height: 34px; }
  .card-npwp { left: -4px; }
  .card-nib { right: -4px; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid > :last-child:nth-child(odd) { max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .t-card { width: 280px; padding: 20px; }
  .marquee-left, .marquee-right { animation-duration: 35s; }
  .final-cta { padding: 56px 22px; border-radius: 24px; }
  .final-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-dialog { max-height: 92vh; border-radius: 24px 24px 0 0; }
  .modal-header { padding: 20px; }
  .consult-form { padding: 20px; }
  .wa-float { padding: 14px; right: 16px; bottom: 16px; }
  .wa-float-label { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   v2 — Benefit layanan, harga promo
   ========================================================= */
.benefit-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 12px 16px; border-radius: 12px; border: 1.5px dashed rgba(44,131,184,.45);
  background: #fff; color: var(--primary); font-weight: 600; font-size: .93rem;
  transition: background .2s, border-color .2s;
}
.benefit-toggle:hover { background: #F1F7FC; border-color: var(--accent); }
.benefit-toggle i.fa-gift { margin-right: .45rem; }
.benefit-chevron { transition: transform .3s ease; }
.benefit-toggle[aria-expanded="true"] { background: #F1F7FC; border-style: solid; }
.benefit-toggle[aria-expanded="true"] .benefit-chevron { transform: rotate(180deg); }
.benefit-panel { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.benefit-list { display: flex; flex-direction: column; gap: 8px; padding: 4px 4px 2px; }
.benefit-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s; }
.benefit-list li i { color: var(--success); margin-top: 4px; }
.service-card.benefit-open .benefit-list li { opacity: 1; transform: none; }
.service-card.benefit-open .benefit-list li:nth-child(2) { transition-delay: .05s; }
.service-card.benefit-open .benefit-list li:nth-child(3) { transition-delay: .1s; }
.service-card.benefit-open .benefit-list li:nth-child(4) { transition-delay: .15s; }
.service-card.benefit-open .benefit-list li:nth-child(5) { transition-delay: .2s; }

.promo-strip {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem;
  padding: .55rem 1.1rem; border-radius: 999px; background: #FEF2F2; color: #B91C1C;
  font-size: .9rem; font-weight: 500; border: 1px solid #FECACA;
}
.promo-strip strong { font-family: var(--font-head); font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.promo-strip i { animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

.price-card { position: relative; }
.price-badge i { margin-right: .3rem; color: #EF4444; }
.price-badge-hot { background: #FDE68A !important; color: #92400E !important; }
.price-badge-hot i { color: #B45309; }
.price-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: -6px; }
.price-old { color: #94A3B8; text-decoration: line-through; text-decoration-color: #EF4444; text-decoration-thickness: 2px; font-weight: 500; font-size: 1.05rem; }
.price-discount { background: #EF4444; color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 6px; animation: pop 2.4s ease-in-out infinite; }
@keyframes pop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.price-card-featured .price-old { color: rgba(255,255,255,.6); text-decoration-color: #FCA5A5; }
.price-features li { display: flex; align-items: flex-start; }
.price-features li i { margin-top: 4px; }
.btn-pay { margin-top: auto; }
.price-card .btn-outline.btn-pay { background: var(--grad-btn); color: #fff; border-color: transparent; }

@media (max-width: 860px) { .nav-auth { padding: .5rem .8rem; } }
@media (max-width: 400px) { .nav-auth { display: none; } }

/* =========================================================
   v6 — Gate login (Konsultasi / Price List / Pembayaran)
   ========================================================= */
.gate-dialog { max-width: 440px; padding: 34px 28px 26px; text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gate-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #F1F5F9; color: var(--muted); cursor: pointer; }
.gate-close:hover { background: #E2E8F0; color: var(--primary); }
.gate-icon { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; font-size: 1.9rem; color: #fff; background: linear-gradient(135deg, #2C83B8, #17517E); box-shadow: 0 14px 30px -12px rgba(23,81,126,.7); animation: gatePop .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes gatePop { from { transform: scale(.5) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.gate-dialog h2 { font-size: 1.45rem; color: var(--primary); margin: 4px 0 0; }
.gate-dialog > p { color: var(--muted); margin: 0; font-size: .95rem; }
.gate-benefits { list-style: none; padding: 12px 16px; margin: 4px 0; background: #F8FAFC; border-radius: 14px; width: 100%; text-align: left; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.gate-benefits i { color: var(--success); margin-right: 6px; }
.gate-actions { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.gate-note { color: var(--muted); font-size: .8rem; }

.price-lock-wrap { position: relative; }
.price-lock { display: none; }
body.is-guest .price-lock-wrap .cards-grid { filter: blur(7px) saturate(.7); pointer-events: none; user-select: none; }
body.is-guest .price-lock {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
  position: absolute; z-index: 5; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(92%, 440px); padding: 30px 26px; border-radius: 22px; background: rgba(255,255,255,.96);
  box-shadow: 0 30px 60px -20px rgba(15,30,50,.35); border: 1px solid var(--border);
}
.price-lock-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: rgba(44,131,184,.12); color: var(--primary); font-size: 1.5rem; }
.price-lock h3 { margin: 0; color: var(--primary); font-size: 1.25rem; }
.price-lock p { margin: 0 0 6px; color: var(--muted); font-size: .92rem; }
body.is-guest .float-card small, body.is-guest .faq-prices strong { filter: blur(5px); user-select: none; }

/* ---------- Navbar: user login (pengganti tombol Dashboard) ---------- */
.nav-user { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--primary); max-width: 160px; }
.nav-user img, .nav-user-ph { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nav-user-ph { display: grid; place-items: center; color: #fff; background: var(--grad-btn); font-size: .85rem; }
.nav-user-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .nav-user-name { display: none; } }
