:root {
  --primary: #4f46e5;
  --accent: #f59e0b;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #1f2333;
  --muted: #6b7088;
  --border: #e4e6ef;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(20, 24, 50, .07);
  --primary-soft: color-mix(in srgb, var(--primary) 12%, white);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.hidden { display: none !important; }

/* ---------- Tombol & form ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 10px; padding: 10px 18px;
  background: var(--primary); color: #fff; font-weight: 600; cursor: pointer;
  transition: transform .1s, filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-danger { background: #dc2626; }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea.input { resize: vertical; min-height: 100px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--text); display: flex; align-items: center; gap: 8px; }
.brand-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--primary); }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--primary); }
.clock-chip {
  display: flex; align-items: center; gap: 8px; background: var(--primary-soft); color: var(--primary);
  padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #000));
  color: #fff; padding: 72px 0 84px; text-align: center;
}
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; margin-bottom: 14px; }
.hero p { max-width: 640px; margin: 0 auto 26px; opacity: .9; font-size: 1.05rem; }
.hero .btn { background: #fff; color: var(--primary); }
.hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section ---------- */
.section { padding: 64px 0; scroll-margin-top: 64px; }
.app-item { scroll-margin-top: 80px; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-head p { color: var(--muted); }
.eyebrow { color: var(--primary); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Daftar harga ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 22px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border); background: var(--surface); padding: 7px 14px;
  border-radius: 999px; cursor: pointer; font-size: .9rem; font-weight: 500;
}
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.search { max-width: 260px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.price-card { padding: 22px; display: flex; flex-direction: column; position: relative; }
.price-card .icon {
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.7rem;
  background: var(--primary-soft); border-radius: 14px; margin-bottom: 12px;
}
.price-card h3 { font-size: 1.1rem; }
.price-card .cat { color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.badge {
  position: absolute; top: 16px; right: 16px; background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.plans { list-style: none; border-top: 1px dashed var(--border); padding-top: 10px; margin-bottom: 16px; flex: 1; }
.plans li { display: flex; justify-content: space-between; padding: 6px 0; font-size: .95rem; }
.plans li strong { color: var(--primary); }
.empty { text-align: center; color: var(--muted); padding: 40px; }

/* ---------- Penjelasan aplikasi ---------- */
.app-list { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.app-item summary {
  list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; gap: 14px; font-weight: 700;
}
.app-item summary::-webkit-details-marker { display: none; }
.app-item summary .icon { font-size: 1.5rem; }
.app-item summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
.app-item[open] summary .chev { transform: rotate(180deg); }
.app-item .body { padding: 0 20px 20px 58px; color: var(--muted); }
.app-item .body ul { margin-top: 10px; padding-left: 18px; }
.app-item .body li { margin: 4px 0; color: var(--text); }

/* ---------- Kalender ---------- */
.cal-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; }
.today-card {
  padding: 26px; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, #000));
  color: #fff; border: none; margin-bottom: 20px;
}
.today-card .day { opacity: .85; font-weight: 600; }
.today-card .date { font-size: 2rem; font-weight: 800; line-height: 1.2; }
.today-card .time { font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 6px; }
.today-card .meta { opacity: .8; font-size: .85rem; margin-top: 6px; }
.calendar { padding: 20px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cal-head h3 { font-size: 1.05rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: .75rem; font-weight: 700; color: var(--muted); padding: 6px 0; }
.cal-grid .dow:first-child { color: #dc2626; }
.cal-cell {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: .9rem;
  cursor: pointer; border: 1px solid transparent; background: none;
}
.cal-cell:hover { background: var(--primary-soft); }
.cal-cell.other { color: #c4c7d4; }
.cal-cell.sun { color: #dc2626; }
.cal-cell.today { background: var(--primary); color: #fff; font-weight: 700; }
.cal-cell.selected { border-color: var(--accent); font-weight: 700; }
.calc { padding: 22px; }
.tabs { display: flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.tab { flex: 1; border: none; background: none; padding: 9px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); font-size: .9rem; }
.tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
.result {
  margin-top: 6px; padding: 16px; border-radius: 12px; background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, white);
}
.result .big { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.result .small { color: var(--muted); font-size: .9rem; }

/* ---------- Kritik & saran ---------- */
.fb-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start; }
.fb-form { padding: 24px; }
.stars { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.stars input { display: none; }
.stars label { font-size: 1.8rem; color: #d4d6e0; cursor: pointer; line-height: 1; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--accent); }
.fb-summary { padding: 22px; display: flex; align-items: center; gap: 22px; margin-bottom: 14px; }
.fb-summary .avg { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.rating-bars { flex: 1; }
.rating-bars .bar { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.rating-bars .track { flex: 1; height: 7px; border-radius: 9px; background: var(--bg); overflow: hidden; }
.rating-bars .fill { height: 100%; background: var(--accent); }
.fb-list { display: grid; gap: 12px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.fb-item { padding: 16px 18px; }
.fb-item .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.fb-item .who { font-weight: 700; }
.fb-item .when { color: var(--muted); font-size: .8rem; }
.fb-item .msg { margin-top: 6px; }
.tag { font-size: .7rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-left: 6px; }
.tag.Kritik { background: #fee2e2; color: #b91c1c; }
.tag.Saran { background: #dcfce7; color: #15803d; }
.star-txt { color: var(--accent); letter-spacing: 1px; }
.reply { margin-top: 10px; padding: 10px 12px; background: var(--bg); border-left: 3px solid var(--primary); border-radius: 8px; font-size: .9rem; }
.reply b { color: var(--primary); }

/* ---------- Footer & toast ---------- */
.footer { background: #141726; color: #b9bdd0; padding: 34px 0; text-align: center; font-size: .9rem; }
.footer strong { color: #fff; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: #141726; color: #fff; padding: 12px 20px; border-radius: 12px; z-index: 100;
  transition: transform .3s; box-shadow: var(--shadow);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Responsif ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .cal-wrap, .fb-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .row { grid-template-columns: 1fr; }
  .search { max-width: none; width: 100%; }
  .clock-chip .clock-date { display: none; }
  .fb-summary { flex-direction: column; align-items: stretch; text-align: center; }
}
