/* ============================================================
   Laporan Praktik MikroTik — tema paper/editorial
   Fokus: langkah konfigurasi & hasil
   ============================================================ */

:root {
  --paper:   #f7f4ee;
  --paper-2: #fffdf9;
  --ink:     #171a21;
  --ink-2:   #43484f;
  --ink-3:   #6b6a67;
  --ink-4:   #9b978f;
  --rule:    #e2dbcd;
  --rule-2:  #cec5b3;

  --wan:   #1c4f7c;  --wan-bg:  #eef4fa;
  --lan:   #d95d2b;  --lan-bg:  #fdf1ea;
  --wlan:  #7a8b3f;  --wlan-bg: #f2f5e8;
  --fw:    #6b4b8a;  --fw-bg:   #f4eef8;
  --ok:    #2f7d5b;  --ok-bg:   #e9f4ee;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans:  'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --ease: cubic-bezier(.22,.8,.28,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow: hidden;
  background-image:
    radial-gradient(circle at 16% 10%, rgba(217,93,43,.04), transparent 40%),
    radial-gradient(circle at 86% 84%, rgba(28,79,124,.04), transparent 42%),
    repeating-linear-gradient(0deg, rgba(23,26,33,.015) 0 1px, transparent 1px 26px);
}

/* ---------------- progress ---------------- */
.rail {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: rgba(23,26,33,.08); z-index: 200;
}
.rail span {
  display: block; height: 100%; width: 0;
  background: var(--lan);
  transition: width .45s var(--ease);
}

/* ---------------- deck ---------------- */
.deck { position: relative; width: 100%; height: 100%; }

.slide {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 1.7vh, 22px);
  padding: clamp(28px, 4.2vw, 68px) clamp(26px, 5vw, 86px) clamp(64px, 7vh, 86px);
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-2) transparent;
}
.slide::-webkit-scrollbar { width: 9px; }
.slide::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 99px; }

.slide.is-active { display: flex; animation: fadeUp .42s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- type ---------------- */
.eyebrow {
  margin: 0 0 9px;
  font-size: clamp(9.5px, .86vw, 11.5px);
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lan);
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.9vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.018em;
}

.lead {
  margin: 12px 0 0;
  max-width: 74ch;
  font-size: clamp(12.5px, 1.1vw, 15.5px);
  line-height: 1.64;
  color: var(--ink-2);
}

.sh { flex: 0 0 auto; }

h3 { margin: 0; font-size: clamp(13.5px, 1.16vw, 16.5px); font-weight: 800; }
h4 { margin: 0; font-size: clamp(12.5px, 1.06vw, 14.5px); font-weight: 800; }

code {
  font-family: var(--mono);
  font-size: .9em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(23,26,33,.06);
  border: 1px solid rgba(23,26,33,.08);
  color: var(--ink);
  white-space: nowrap;
}

.dim { color: var(--ink-3); }

/* ---------------- cover ---------------- */
.cover { max-width: 1140px; width: 100%; margin: 0 auto; }

.stamp {
  margin: 0 0 5px;
  font-size: clamp(9.5px, .86vw, 11.5px);
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stamp--sub {
  font-weight: 600; letter-spacing: .1em; color: var(--ink-4);
}

.cover-title {
  margin: clamp(18px, 2.8vh, 34px) 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5.4vw, 78px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.032em;
}
.cover-title em { font-style: italic; color: var(--lan); }

.cover-sub {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: clamp(11.5px, 1.1vw, 14px);
  color: var(--ink-3);
  letter-spacing: .04em;
}

.cover-rule {
  height: 3px; width: clamp(76px, 11vw, 148px);
  margin: clamp(20px, 2.8vh, 32px) 0;
  background: var(--ink);
}

.cover-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 32px);
}
.meta-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.meta-k {
  font-size: clamp(8.5px, .78vw, 10px);
  font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-4);
}
.meta-v {
  font-size: clamp(11.5px, 1.04vw, 14px);
  font-weight: 700; line-height: 1.4; color: var(--ink);
}

.cover-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: clamp(24px, 3.4vh, 40px);
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: clamp(10px, .9vw, 12px);
  color: var(--ink-3);
}

/* ---------------- summary cards ---------------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 17px);
}
.sum {
  padding: clamp(15px, 1.6vw, 21px);
  border: 1px solid var(--rule);
  border-top-width: 4px;
  background: var(--paper-2);
  min-width: 0;
}
.sum--dasar { border-top-color: var(--lan);  background: var(--lan-bg); }
.sum--nat   { border-top-color: var(--wan);  background: var(--wan-bg); }
.sum--fw    { border-top-color: var(--fw);   background: var(--fw-bg); }
.sum--hs    { border-top-color: var(--wlan); background: var(--wlan-bg); }

.sum-n {
  font-family: var(--mono);
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.03em;
}
.sum-n small {
  font-size: .42em;
  font-weight: 500;
  color: var(--ink-4);
  letter-spacing: .02em;
  margin-left: 3px;
}
.sum h3 { margin: 9px 0 5px; }
.sum p {
  margin: 0;
  font-size: clamp(10.5px, .94vw, 12.5px);
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------------- step slide ---------------- */
.step-body {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: clamp(20px, 3vw, 52px);
  align-items: start;
  flex: 1 1 auto;
  padding-top: 4px;
}

.step-hero { min-width: 0; }

.step-big {
  display: block;
  font-family: var(--serif);
  font-size: clamp(60px, 8vw, 118px);
  font-weight: 600;
  line-height: .84;
  letter-spacing: -.05em;
  color: var(--lan);
  opacity: .92;
}
.step-big span {
  font-family: var(--mono);
  font-size: .2em;
  letter-spacing: .06em;
  color: var(--ink-4);
  vertical-align: super;
  margin-left: 6px;
}

.step-path {
  margin: clamp(16px, 2.2vh, 26px) 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: clamp(13px, 1.32vw, 17px);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
}
.step-path .sep { color: var(--lan); font-weight: 700; font-size: 1.1em; }
.step-path .seg {
  padding: 5px 12px;
  border: 1.5px solid var(--ink);
  background: var(--paper-2);
  border-radius: 2px;
  box-shadow: 2px 2px 0 rgba(23,26,33,.10);
}
.step-path .seg--val {
  border-color: var(--lan);
  color: var(--lan);
  font-weight: 700;
}

.step-why {
  margin: 16px 0 0;
  padding-left: 14px;
  border-left: 2.5px solid var(--rule-2);
  font-size: clamp(12px, 1.06vw, 14.5px);
  line-height: 1.66;
  color: var(--ink-2);
  max-width: 44ch;
}

/* step progress dots */
.step-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: clamp(18px, 2.6vh, 30px);
}
.step-dots i {
  width: 26px; height: 3px;
  background: var(--rule-2);
  border-radius: 2px;
}
.step-dots i.on { background: var(--lan); }
.step-dots i.done { background: var(--ink-3); }
.step-dots span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink-4);
}

/* detail side */
.step-detail { min-width: 0; }

.vals {
  border: 1px solid var(--rule);
  background: var(--paper-2);
  border-radius: 2px;
  overflow: hidden;
}
.vals-row {
  display: grid;
  grid-template-columns: minmax(110px, .42fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px clamp(12px, 1.3vw, 17px);
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.vals-row:last-child { border-bottom: none; }
.vals-row:nth-child(odd) { background: rgba(23,26,33,.018); }
.vals-k {
  font-size: clamp(9.5px, .84vw, 10.5px);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.vals-v {
  font-family: var(--mono);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.result-pill {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 15px;
  border-left: 3px solid var(--ok);
  background: var(--ok-bg);
  font-size: clamp(11px, .98vw, 13px);
  line-height: 1.55;
  color: var(--ink-2);
}
.result-pill .tick {
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--ok);
}
.result-pill b { color: var(--ink); }

.note-line {
  margin-top: 12px;
  font-size: clamp(10.5px, .92vw, 12px);
  line-height: 1.55;
  color: var(--ink-3);
}

/* ---------------- test slide ---------------- */
.tests {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 17px);
}
.test {
  padding: clamp(14px, 1.5vw, 19px);
  border: 1px solid var(--rule);
  background: var(--paper-2);
  border-top: 3px solid var(--ok);
  min-width: 0;
}
.test-h {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.test-h .dot {
  width: 15px; height: 15px; flex: 0 0 15px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}
.test-h h4 { margin: 0; }
.test p {
  margin: 0 0 6px;
  font-size: clamp(10.5px, .94vw, 12.5px);
  line-height: 1.55;
  color: var(--ink-2);
}
.test .out {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: clamp(10px, .9vw, 11.5px);
  color: var(--ok);
  font-weight: 600;
}

/* ---------------- figures ---------------- */
.fig {
  margin: 0;
  flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 0;
}
.fig img {
  display: block;
  width: 100%; height: auto;
  max-height: min(62vh, 600px);
  object-fit: contain;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.fig figcaption {
  margin-top: 10px;
  font-size: clamp(10px, .9vw, 11.5px);
  color: var(--ink-3);
  line-height: 1.55;
}

/* ---------------- result screenshots ---------------- */
.slide--shot { justify-content: flex-start; gap: clamp(9px, 1.3vh, 15px); }
.sh--shot .lead { margin-top: 7px; max-width: 92ch; }

.shot-frame {
  margin: 0;
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  min-height: 0;
}
.shot-frame img {
  display: block;
  width: 100%; height: auto;
  max-height: min(60vh, 580px);
  object-fit: contain;
  border: 1px solid var(--rule-2);
  background: var(--paper-2);
  box-shadow: 0 14px 34px -22px rgba(23,26,33,.45);
}
.shot-frame figcaption {
  margin-top: 10px;
  font-size: clamp(10px, .9vw, 11.5px);
  color: var(--ink-3);
  line-height: 1.6;
}
.shot-frame figcaption b { color: var(--ink); }

.point-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 10px;
}
.point {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--rule-2);
  background: var(--paper-2);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: clamp(9.5px, .86vw, 11px);
  color: var(--ink-2);
}
.point::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--lan);
}

/* ---------------- phone proof slides ---------------- */
.phone-body {
  display: grid;
  grid-template-columns: minmax(0, .52fr) minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 56px);
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
}

.phone-frame {
  margin: 0;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
}
.phone-frame img {
  display: block;
  width: auto;
  height: auto;
  max-height: min(64vh, 580px);
  max-width: 100%;
  object-fit: contain;
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  background: #111;
  box-shadow:
    0 20px 44px -26px rgba(23,26,33,.55),
    0 0 0 6px var(--paper-2),
    0 0 0 7px var(--rule);
}
.phone-frame figcaption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: clamp(9.5px, .84vw, 10.5px);
  color: var(--ink-4);
  letter-spacing: .04em;
  text-align: center;
}

.phone-side { min-width: 0; }

.findings {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.finding {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 11px clamp(12px, 1.3vw, 17px);
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.finding:last-child { border-bottom: none; }
.finding:nth-child(odd) { background: rgba(23,26,33,.018); }

.finding .mk {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.finding .mk--note { background: var(--amber); }

.finding-t { display: block; font-size: clamp(11.5px, 1vw, 13px); font-weight: 800; margin-bottom: 2px; }
.finding-d {
  display: block;
  font-size: clamp(10.5px, .92vw, 12px);
  line-height: 1.5;
  color: var(--ink-2);
}
.finding-d code { font-size: .92em; }

/* metric callout */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 14px;
}
.metric {
  padding: clamp(11px, 1.2vw, 16px);
  background: var(--paper-2);
  display: flex; flex-direction: column; gap: 3px;
  min-width: 0;
}
.metric-k {
  font-size: clamp(8.5px, .76vw, 9.5px);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.metric-v {
  font-family: var(--mono);
  font-size: clamp(17px, 1.9vw, 26px);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.02em;
}
.metric-v small { font-size: .44em; font-weight: 500; color: var(--ink-4); margin-left: 2px; }
.metric--accent .metric-v { color: var(--ok); }

/* ---------------- end ---------------- */
.slide--end { justify-content: center; }
.end { max-width: 900px; margin: 0 auto; width: 100%; }
.end-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 62px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.03em;
}
.end-lead {
  margin: 20px 0 0;
  max-width: 56ch;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.66;
  color: var(--ink-2);
}
.end-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(24px, 3.2vh, 38px);
  background: var(--rule);
  border: 1px solid var(--rule);
}
.end-item {
  padding: clamp(12px, 1.3vw, 17px);
  background: var(--paper-2);
  display: flex; flex-direction: column; gap: 3px;
  min-width: 0;
}
.end-item b { font-size: clamp(11.5px, 1.02vw, 13.5px); }
.end-item span { font-size: clamp(10px, .9vw, 11.5px); color: var(--ink-3); }

/* ---------------- HUD ---------------- */
.hud {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 11px clamp(18px, 3.4vw, 44px);
  background: linear-gradient(0deg, var(--paper) 34%, rgba(247,244,238,0));
  pointer-events: none;
}
.hud-l, .hud-r { display: flex; gap: 7px; pointer-events: auto; }

.hud-c {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--ink-3);
  padding: 5px 13px;
  border: 1px solid var(--rule-2);
  border-radius: 99px;
  background: var(--paper-2);
  pointer-events: auto;
}

.btn {
  width: 33px; height: 33px;
  display: grid; place-items: center;
  border-radius: 3px;
  border: 1px solid var(--rule-2);
  background: var(--paper-2);
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s var(--ease);
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
.btn:active { transform: scale(.95); }
.btn:disabled { opacity: .3; cursor: default; }
.btn:disabled:hover { background: var(--paper-2); color: var(--ink-2); border-color: var(--rule-2); }

/* ---------------- overview ---------------- */
.overview {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(247,244,238,.95);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: clamp(22px, 4vw, 58px);
  animation: fadeIn .2s var(--ease);
}
.overview[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.ov-inner { width: min(1080px, 100%); max-height: 100%; overflow-y: auto; }
.ov-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 11px;
  border-bottom: 1px solid var(--rule-2);
}
.ov-head h2 { font-size: clamp(16px, 1.6vw, 21px); }

.ov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(198px, 1fr));
  gap: 8px;
}
.ov-card {
  text-align: left;
  padding: 11px 13px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
  display: flex; gap: 9px; align-items: flex-start;
  transition: all .15s var(--ease);
}
.ov-card:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.ov-card.is-current { border-color: var(--lan); background: var(--lan-bg); color: var(--ink); }
.ov-card .n {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-4);
  padding-top: 2px;
  flex: 0 0 auto;
}
.ov-card.is-current .n { color: var(--lan); }

/* ---------------- responsive ---------------- */
@media (max-width: 1120px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-body { grid-template-columns: 1fr; gap: 18px; }
  .step-big { font-size: clamp(48px, 10vw, 76px); }
  .step-why { max-width: none; }
}

@media (max-width: 860px) {
  .slide { justify-content: flex-start; }
  .tests { grid-template-columns: 1fr; }
  .end-grid { grid-template-columns: 1fr; }
  .fig img, .shot-frame img { max-height: 42vh; }
  .phone-body { grid-template-columns: 1fr; gap: 18px; }
  .phone-frame img { max-height: 40vh; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .grid-4, .cover-meta { grid-template-columns: 1fr; }
  .hud-c { display: none; }
  .cover-foot { flex-direction: column; align-items: flex-start; gap: 5px; }
}

/* ---------------- print ---------------- */
@media print {
  body { background: #fff; }
  .hud, .rail, .overview { display: none !important; }
  .slide {
    display: flex !important;
    position: relative;
    page-break-after: always;
    height: 100vh;
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
