/* ===== PALET WARNA ===== */
:root{
  --white:      #FFFFFF;
  --paper:      #F5F8FB;
  --ink:        #000000;
  --muted:      #4e5552;
  --line:       rgba(22,35,46,0.13);

  --blue:       #0004F6;
  --blue-deep:  #0003D1;
  --blue-tint:  #E0E0E1;

  --red:        #ff0000;
  --red-tint:   #FBEAE6;

  --serif: 'Barlow';
  --sans: 'Inter', sans-serif;

  --footer-brand-w: 560px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--white);
  color:var(--ink);
  font-family:var(--sans);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}
main{ flex:1; }
a{ color:inherit; }
img,svg{ max-width:100%; }

.wrap{ max-width:1160px; margin:0 auto; padding:0 32px; }
@media (max-width:640px){ .wrap{ padding:0 20px; } }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:3px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:1ms !important; transition-duration:1ms !important; }
}

/* ===== HEADER & NAVIGASI ===== */
header{
  position:sticky; top:0; z-index:50;
  background:var(--blue);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav{
  position:relative;
  display:flex; align-items:center; justify-content:space-between;
  padding:2px 0;
  gap:16px;
}

.brand{ display:flex; align-items:center; gap:11px; text-decoration:none; }
.brand .mark{
  font-family:var(--serif); font-style:italic; font-weight:500;
  font-size:1.5rem; color:var(--blue-deep);
}
.brand .sub{
  font-size:0.72rem; color:var(--muted); line-height:1.3; max-width:16ch;
  border-left:1px solid var(--line); padding-left:11px;
}
.brand-logo{ height:60px; width:auto; display:block; }
@media (max-width:520px){ .brand .sub{ display:none; } }
.brand-name{ color:var(--blue); font-weight:700; }

nav.links{ display:flex; gap:26px; align-items:center; }
nav.links a{ font-size:0.9rem; text-decoration:none; color:var(--white); white-space:nowrap; }
nav.links a:hover{ color:var(--white); opacity:0.8; }
nav.links a[aria-current="page"]{ color:var(--white); font-weight:600; }
nav.links a.cta{
  background:rgb(0, 4, 246); color:var(--white);
  padding:9px 16px; font-weight:500;
}
nav.links a.cta:hover{ background:rgb(0, 3, 209); color:var(--white); }
nav.links a.cta[aria-current="page"]{ color:var(--white); }

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:36px; height:36px;
  background:none; border:none; cursor:pointer;
  padding:0;
}
.nav-toggle .bar{
  display:block; width:22px; height:2px; background:var(--white);
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle.active .bar:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.active .bar:nth-child(2){ opacity:0; }
.nav-toggle.active .bar:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:860px){
  .nav-toggle{ display:flex; }
  nav.links{
    display:none;
    position:absolute;
    top:100%; left:0; right:0;
    flex-direction:column; align-items:stretch;
    gap:0;
    background:var(--blue);
    border-bottom:1px solid var(--line);
    box-shadow:0 12px 24px -12px rgba(0,0,0,0.35);
  }
  nav.links.open{ display:flex; }
  nav.links a{ padding:14px 20px; border-bottom:1px solid rgba(255,255,255,0.15); }
  nav.links a.cta{ margin:12px 20px; padding:12px 16px; text-align:center; }
}

/* ===== KERANGKA SECTION & TIPOGRAFI ===== */
section{ padding:50px 0; border-bottom:1px solid var(--line); }
section.alt{ background:var(--paper); }
main > section:last-of-type{ border-bottom:none; padding-bottom:96px; }

.eyebrow{ font-size:0.82rem; color:var(--blue); margin-bottom:16px; }
.eyebrow .dot{ color:var(--red); }

h1,h2,h3{ font-family:var(--serif); font-weight:600; color:var(--ink); }
h1{ font-size:clamp(2.5rem,4.6vw,3.2rem); line-height:1.1; letter-spacing:-0.01em; }
h2{ font-size:clamp(1.6rem,3vw,2.15rem); line-height:1.18; }
h3{ font-size:1.3rem; line-height:1.25; }

.section-head{ max-width:62ch; margin-bottom:44px; }
.section-head p{ color:var(--muted); margin-top:14px; line-height:1.7; }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 22px; font-family:var(--sans); font-size:0.95rem; font-weight:540;
  text-decoration:none; cursor:pointer; border:1.5px solid transparent; border-radius:2px;
}
.btn-primary{ background:rgb(0, 4, 246); color:var(--white); }
.btn-primary:hover{ background:rgb(0, 3, 209); }
.btn-ghost{ border-color:rgb(0, 4, 246); color:rgb(0, 4, 246); background:var(--white); }
.btn-ghost:hover{ background:var(--blue-tint); }

/* ===== HERO ===== */
.hero{
  --hero-w: 100ch;
  padding:64px 0 60px;
  display:flex; flex-direction:column; align-items:center;
}
.hero-content{ width:70%; max-width:var(--hero-w); text-align:center; }
.hero h1{ text-align:center; }
.hero p.lead{
  margin-top:22px; font-size:1.05rem; color:var(--muted);
  line-height:1.7; text-align:justify; text-justify:inter-word;
}

.cta-row{ margin-top:32px; display:flex; gap:14px; flex-wrap:wrap; justify-content:center; }
.cta-row .btn{
  --btn-w: 250px;
  width:var(--btn-w);
  justify-content:center;
}

/* ===== KARTU NAVIGASI MENU ===== */
.menu-grid{
  display:grid; grid-template-columns:repeat(3,1fr); grid-auto-rows:1fr;
  gap:0; border:1px solid var(--line); background:var(--white);
}
@media (max-width:760px){ .menu-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .menu-grid{ grid-template-columns:1fr; } }

.menu-card{
  background:var(--white); padding:26px 24px; text-decoration:none; display:block;
  border-right:1px solid var(--line); border-bottom:1px solid var(--line);
}
.menu-card:nth-child(3n){ border-right:none; }
.menu-card:nth-last-child(-n+2){ border-bottom:none; }
@media (max-width:760px){
  .menu-card{ border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
  .menu-card:nth-child(2n){ border-right:none; }
  .menu-card:nth-last-child(-n+1){ border-bottom:none; }
}
@media (max-width:480px){
  .menu-card{ border-right:none; }
  .menu-card:last-child{ border-bottom:none; }
}
.menu-card .num{ font-family:var(--serif); font-style:italic; color:var(--red); font-size:0.95rem; }
.menu-card h3{ margin:10px 0 8px; font-size:1.1rem; }
.menu-card p{ color:var(--muted); font-size:0.87rem; line-height:1.6; }

/* ===== HALAMAN TENTANG ===== */
.about-grid{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:56px; align-items:center; }
.about-grid .logo-box{ display:flex; align-items:center; justify-content:center; }
.about-grid .logo-box img{ width:260px; max-width:100%; height:auto; }
.about-grid .figure{ font-family:var(--serif); font-size:clamp(2.4rem,5vw,3.4rem); color:var(--blue-deep); line-height:1; }
.about-grid .figure small{ display:block; font-family:var(--sans); font-size:0.85rem; color:var(--muted); font-weight:400; margin-top:5px; line-height:1.5; }
.about-grid .body p{ color:var(--muted); line-height:1.75; margin-bottom:15px; text-align:justify; text-justify:inter-word; }
.about-grid .body p:last-child{ margin-bottom:0; }
.about-grid .body strong{ color:var(--ink); font-weight:600; }
@media (max-width:900px){
  .about-grid{ grid-template-columns:1fr; gap:28px; }
  .about-grid .logo-box{ order:-1; }
  .about-grid .logo-box img{ width:180px; max-width:60%; }
}

/* ===== HALAMAN APLIKASI ===== */
.apps{ display:grid; grid-template-columns:1fr; gap:28px; }

.app-card{
  border:1px solid var(--line); background:var(--white);
  display:grid;
  grid-template-columns:220px 1fr;
  grid-template-areas:
    "figure body"
    "figure foot";
  align-items:stretch; /* ganti dari start, supaya figure meregang penuh tinggi kartu */
}
.app-card .figure{
  grid-area:figure;
  padding:26px;
  display:flex; align-items:center; justify-content:center;
  border-right:1px solid var(--line);
}
.app-card .body{ grid-area:body; padding:26px 26px 0; }
.app-card .body p{ color:var(--muted); line-height:1.7; margin-bottom:16px; }
.app-card ul{ list-style:none; display:flex; flex-direction:column; gap:9px; margin-bottom:4px; }
.app-card ul li{ font-size:0.9rem; color:var(--ink); padding-left:18px; position:relative; }
.app-card ul li::before{
  content:''; position:absolute; left:0; top:8px; width:6px; height:6px; background:var(--blue);
}
.app-card .foot{
  grid-area:foot; padding:18px 26px 24px; text-align:right; align-self:end;
  border-top:1px solid var(--line); /* garis pemisah body & foot */
  margin-top:18px; /* jarak biar garis gak terlalu nempel ke isi body */
}

@media (max-width:640px){
  .app-card{
    grid-template-columns:1fr;
    grid-template-areas:
      "figure"
      "body"
      "foot";
  }
  .app-card .figure{ border-right:none; border-bottom:1px solid var(--line); }
}
/* ===== HALAMAN DOWNLOAD ===== */
.dl-list{
  display:grid;
  grid-template-columns:1.4fr 0.7fr 0.7fr 0.7fr auto;
  border:1px solid var(--line);
}
.dl-item{ display:contents; }
.dl-item > *{
  display:flex; align-items:center;
  padding:22px 26px;
  border-bottom:1px solid var(--line);
}
.dl-item:last-of-type > *{ border-bottom:none; }

.dl-head > span{
  background:var(--blue); color:rgba(255,255,255,0.85);
  font-size:0.78rem; font-weight:600;
}

.dl-item .name{ flex-direction:column; align-items:flex-start; font-family:var(--serif); font-size:1.05rem; color:var(--ink); }
.dl-item .name small{ font-family:var(--sans); font-size:0.8rem; color:var(--muted); margin-top:3px; font-weight:400; }
.dl-item .btn{ margin: 0 16px; align-self: center; justify-self: start; padding:8px 16px; font-size:0.85rem; white-space:nowrap; border-radius:0px; background:var(--blue); color:var(--white); text-decoration:none; }
.dl-item .btn:hover{ background:var(--blue-deep); color:var(--white); }
.dl-action{
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width:500px){
  .dl-list{ display:block; }
  .dl-item{ display:grid; grid-template-columns:1fr 1fr; row-gap:10px; padding:22px 26px; border-bottom:1px solid var(--line); background: transparent; box-sizing: border-box; }
  .dl-item > *{ display:block; padding:0; border-bottom:none; }
  .dl-list .dl-item:last-child{ border-bottom:none; }
  .dl-list .dl-head{ display:none; }
  .dl-item .lbl{ display:block; font-size:0.7rem; color:var(--muted); }
}

/* ===== HALAMAN KONSULTASI ===== */
.consult{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:56px; align-items:start; }
@media (max-width:900px){ .consult{ grid-template-columns:1fr; gap:32px; } }
.consult .body p{ color:var(--muted); line-height:1.75; margin-bottom:16px; text-align:justify; text-justify:inter-word; }
.consult .body strong{ color:var(--ink); font-weight:600; }
.consult ul{ list-style:none; margin-top:18px; display:flex; flex-direction:column; gap:10px; }
.consult ul li{ font-size:0.92rem; color:var(--ink); padding-left:18px; position:relative; }
.consult ul li::before{ content:''; position:absolute; left:0; top:8px; width:6px; height:6px; background:var(--red); }

form.consult-form{ background:var(--paper); border:1px solid var(--line); padding:28px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:0.82rem; color:var(--muted); margin-bottom:6px; }
.field input, .field select, .field textarea{
  width:100%; padding:11px 12px; font-family:var(--sans); font-size:0.92rem;
  border:1px solid var(--line); background:var(--white); color:var(--ink);
}
.field textarea{ resize:vertical; min-height:96px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:560px){ .field-row{ grid-template-columns:1fr; } }
form.consult-form .btn{ width:100%; justify-content:center; border:none; }
.form-note{ font-size:0.78rem; color:var(--muted); margin-top:12px; }

/* ===== HALAMAN TEORI DASAR ===== */
.theory{ display:grid; grid-template-columns:1fr; gap:28px; }
.theory-card{ border:1px solid var(--line); background:var(--white); }
.theory-card .top{ padding:22px 24px 0; }
.theory-card .top .flag{
  display:inline-block; font-size:0.72rem; font-weight:600; color:var(--blue);
  background:var(--blue-tint); padding:3px 9px; margin-bottom:12px;
}
.theory-card .diagram{ padding:1px 200px 0; }
.theory-card .diagram svg{ width:100%; height:auto; display:block; }
/* padding kiri-kanan diagram diperkecil di layar sempit, supaya gambar
   tidak "tergencet" atau meluber keluar kartu di ponsel */
@media (max-width:700px){
  .theory-card .diagram{ padding:1px 24px 0; }
}

.theory-card .txt{ padding:16px 24px 24px; }
.theory-card .txt p{
  color:var(--muted); line-height:1.72; font-size:0.94rem;
  text-align:justify; text-justify:inter-word;
  margin-bottom:14px;
}
.theory-card .txt p:last-child{ margin-bottom:0; }

/* ===== BLOK PENUTUP (BERANDA) ===== */
.closing{ display:grid; grid-template-columns:1.2fr 0.8fr; gap:40px; align-items:end; }
@media (max-width:820px){ .closing{ grid-template-columns:1fr; } }
.closing h2{ max-width:22ch; }
.closing .side{ color:var(--muted); font-size:0.95rem; line-height:1.7; }

/* ===== JUDUL HALAMAN (NON-BERANDA) ===== */
.page-head{ padding:56px 0 8px; }
.page-head .eyebrow{ margin-bottom:14px; }
.page-head p.lead{ color:var(--muted); max-width:60ch; margin-top:14px; line-height:1.7; }

/* ===== FOOTER ===== */
footer{ padding:20px 0; background:rgb(0, 4, 246); color:rgba(255,255,255,0.85); }
footer .wrap{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:24px; }

footer .col-brand{ max-width:var(--footer-brand-w); }
footer .brand-foot{
  font-family:var(--serif); font-size:1rem; color:var(--white); font-weight:600;
  margin-bottom:8px; white-space:nowrap;
}
@media (max-width:800px){
  footer .col-brand{ max-width:100%; }
  footer .brand-foot{ white-space:normal; }
}
footer .col p{ font-size:0.85rem; line-height:1.7; max-width:100ch; }
footer .col-brand p{ max-width:100%; }

footer .col h4{ font-size:0.9rem; color:var(--white); margin-bottom:10px; font-weight:600; }
footer .col a{ display:block; font-size:0.85rem; text-decoration:none; color:rgba(255,255,255,0.85); margin-bottom:8px; }
footer .col a:hover{ color:var(--white); }

footer .bottom{
  max-width:1160px; margin:10px auto 0; padding:20px 32px 0; border-top:1px solid rgba(255,255,255,0.15);
  font-size:0.78rem; color:rgba(255,255,255,0.8);
}

/* ===== SLIDESHOW DOKUMENTASI (BERANDA) =====
   .slideshow adalah "kotak pembungkus" yang wajib punya position:relative
   supaya .slide (position:absolute) menempel ke kotak ini, bukan melebar
   ke ancestor lain yang lebih besar. Kalau rule ini hilang, slide akan
   "kabur" dari panel kecilnya — ini penyebab tampilan kacau sebelumnya. */
.slideshow{
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--paper);
}
.slide{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  background-color:var(--blue-tint);
  opacity:0; transition: opacity 2s ease;
  display:flex; align-items:flex-end;
}
.slides{
  position:relative;
  width:100%;
}
.slide.is-active{ opacity:1; }

/* overlay gradasi gelap di belakang caption, supaya teks putih tetap kebaca
   di atas foto apapun */
.slide-caption{
  width:100%;
  padding:32px 28px 24px;
  color:var(--white);
}
.slide-caption .tag{
  display:inline-block; font-size:0.75rem; font-weight:600;
  background:var(--red); padding:3px 10px; margin-bottom:10px;
}
.slide-caption p{ font-size:0.95rem; max-width:50ch; }

.slide-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:40px; height:40px; border:none; border-radius:50%;
  background:rgba(255,255,255,0.85); color:var(--blue-deep);
  font-size:1.4rem; line-height:1; cursor:pointer;
}
.slide-btn:hover{ background:var(--white); }
.slide-btn.prev{ left:14px; }
.slide-btn.next{ right:14px; }

.slide-dots{ position:absolute; bottom:14px; left:50%; transform:translateX(-50%); display:flex; gap:8px; }
.slide-dots button{
  width:8px; height:8px; border-radius:50%; border:none;
  background:rgba(255,255,255,0.55); cursor:pointer; padding:0;
  transition:width .2s ease;
}
.slide-dots button.is-active{ background:var(--white); width:22px; border-radius:5px; }

/* ---------- showcase: latar foto tetap + panel slide kecil di kanan ---------- */
.showcase-section{ position:relative; overflow:hidden; border-bottom:1px solid var(--line); }

.showcase-bg{
  position:absolute; inset:0; z-index:0;
  background-size:cover; background-position:center;
}
.showcase-bg::after{ /* overlay putih transparan biar teks kiri tetap kebaca */
  content:''; position:absolute; inset:0;
  background:linear-gradient(120deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 45%, rgba(234,241,250,0.3) 100%);
}

.showcase{
  position:relative; z-index:1;
  display:grid; grid-template-columns:0.8fr 1.2fr; gap:45px; align-items:center;
  padding:75px 0px;
}
@media (max-width:900px){ .showcase{ grid-template-columns:1fr; padding:56px 20px; } }

.showcase-text h2 {
  font-size: clamp(50px, 4vw, 10px);
  line-height: 1;
  font-weight: 700;
  padding-top: 0;
  color: var(--blue);
}
.showcase-desc{                                    /* tulisan kecil */
  margin-top:14px; color:var(--muted); max-width:46ch; line-height:1.7; font-size:0.95rem;
}

/* panel slide diperkecil & tidak lagi full width seperti sebelumnya */
.showcase-panel{ max-width:660px; box-shadow:0 20px 40px -20px rgba(22,35,46,0.3); padding-right:0px; } 
.showcase-panel .slides{ height:350px; }
@media (max-width:700px){
  .showcase-panel{ max-width:100%; }
  .showcase-panel .slides{ height:220px; }
}