/* =============================================================
   Instant Link — company profile
   Design tokens & components. Mobile-first, no framework.
   Brand: PT Kreasi Teknologi Mandiri Indonesia (KTMI)
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --indigo:        #3B2FBF;
  --indigo-700:    #2E2496;
  --indigo-tint:   #F7F6FC;
  --indigo-line:   #E6E4F2;
  --amber:         #F2A93B;
  --green:         #12805C;

  /* Neutrals */
  --ink:           #14131F;
  --body:          #3C3E45;
  --muted:         #6E7178;
  --faint:         #B9B8BE;
  --line:          #EDECEF;
  --line-soft:     #F2F1F4;
  --surface:       #FFFFFF;
  --panel:         #FAFAFC;
  --panel-2:       #F5F4F8;

  /* Type */
  --font-display: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:    'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Fluid type scale */
  --t-eyebrow: 0.78rem;
  --t-small:   0.9rem;
  --t-body:    1rem;
  --t-lead:    clamp(1.02rem, 0.96rem + 0.3vw, 1.19rem);
  --t-h3:      clamp(1.18rem, 1.1rem + 0.4vw, 1.35rem);
  --t-h2:      clamp(1.6rem, 1.3rem + 1.5vw, 2.25rem);
  --t-h1:      clamp(2.05rem, 1.5rem + 2.6vw, 3.25rem);
  --t-price:   clamp(1.9rem, 1.6rem + 1.2vw, 2.4rem);

  /* Space */
  --gutter:    clamp(1rem, 4vw, 2rem);
  --section:   clamp(3rem, 7vw, 4.5rem);
  --max:       1280px;
  --max-text:  56rem;

  /* Radius & elevation */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 26px;
  --pill: 999px;
  --shadow-1: 0 1px 2px rgba(20, 19, 31, .04);
  --shadow-2: 0 2px 6px rgba(20, 19, 31, .05), 0 24px 48px -32px rgba(20, 19, 31, .28);
  --shadow-brand: 0 3px 6px rgba(20, 19, 31, .05), 0 40px 70px -40px rgba(59, 47, 191, .5);

  --header-h: clamp(60px, 5vw, 68px);  /* design min-height of the header bar */
  --header-real: 60px;                 /* measured height — set by site.js, never feeds back */
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-real) + 56px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); letter-spacing: -.03em; line-height: 1.06; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p  { margin: 0; }

a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--ink); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Screen-reader-only text that still reaches assistive tech */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ---------- 3. Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--text { max-width: calc(var(--max-text) + 2 * var(--gutter)); }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2rem, 5vw, 3rem); }
.section + .section { padding-top: 0; }

/* Auto-fit card grid — the whole responsive story in one rule */
.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  align-items: stretch;
}
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

/* Tepat empat kartu berisi (judul + deskripsi + daftar). auto-fit menyisakan
   satu kartu yatim di baris kedua begitu muat 3 kolom, dan memaksanya jadi
   4 kolom malah membuat teksnya membungkus dua kali lipat. 2x2 menang di
   dua-duanya. */
.grid--quad { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--quad { grid-template-columns: repeat(2, 1fr); } }

/* Two-up split: image beside prose, stacks under 900px */
.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.25rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip > :first-child { order: 2; }
}

.stack   { display: flex; flex-direction: column; gap: 1rem; }
.stack-s { display: flex; flex-direction: column; gap: .55rem; }

/* ---------- 4. Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.eyebrow--brand { color: var(--indigo); }
.lead  { font-size: var(--t-lead); line-height: 1.65; color: var(--body); }
.muted { color: var(--muted); }
.small { font-size: var(--t-small); color: var(--muted); }
.nums  { font-variant-numeric: tabular-nums; }

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  align-self: center;
  border: 1px solid var(--indigo-line);
  background: var(--surface);
  border-radius: var(--pill);
  padding: .4rem .9rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--indigo);
  text-transform: uppercase;
}
.pill-tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--indigo);
  flex: none;
}

/* Checked list */
.checks { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: center; padding: 0; margin: 0; list-style: none; }
.checks li,
.feature-list li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .97rem;
  line-height: 1.5;
  color: var(--body);
}
.checks li::before,
.feature-list li::before {
  content: "";
  flex: none;
  width: 1.05em; height: 1.05em;
  margin-top: .18em;
  background: var(--green);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}
:root {
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5,13 10,18 19,7'/%3E%3C/svg%3E");
}
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.feature-list li { color: var(--ink); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.3rem;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--indigo); color: #fff; }
.btn--primary:hover { background: var(--indigo-700); color: #fff; box-shadow: 0 8px 20px -8px rgba(59,47,191,.6); }

.btn--ghost { background: var(--surface); color: var(--ink); border-color: #DCDBDF; }
.btn--ghost:hover { background: var(--indigo-tint); color: var(--indigo); border-color: var(--indigo-line); }

.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: #E39A28; color: var(--ink); }

.btn--block { width: 100%; }

.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow::after { content: "→"; transition: transform .18s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- 6. Header ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .75rem 1.1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}
.site-header[data-scrolled="true"] { box-shadow: 0 6px 20px -14px rgba(20,19,31,.4); }

.site-header__bar {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
  padding-block: .5rem;
}
.brand { display: flex; align-items: center; flex: none; }
/* Lockup horizontal: brand guide menetapkan minimum 110px lebar. Rasio SVG
   860:190, jadi tinggi 32px = lebar ~145px — lega di atas ambang, dan mengecil
   sendiri ke 26px di HP supaya tidak berdesakan dengan tombol menu. */
.brand svg { height: clamp(26px, 2.2vw, 32px); width: auto; }
.brand:hover { opacity: .85; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.site-nav a:not(.btn) {
  padding: .55rem .8rem;
  font-size: .95rem; font-weight: 500;
  color: var(--body); border-radius: var(--r-sm);
}
.site-nav a:not(.btn):hover { color: var(--indigo); background: var(--indigo-tint); }
/* Buttons keep their own colours — .site-nav a would otherwise out-specify them. */
.site-nav a.btn--primary { color: #fff; }
.site-nav a.btn--primary:hover { color: #fff; background: var(--indigo-700); }
.site-nav a.btn--ghost { color: var(--ink); }
.site-nav a.btn--ghost:hover { color: var(--indigo); }
/* :not(.btn) — a nav item that is also a filled button would otherwise get
   indigo text on an indigo background and disappear. */
.site-nav a[aria-current="page"]:not(.btn) { color: var(--indigo); font-weight: 600; }
.site-nav a.btn[aria-current="page"] { box-shadow: 0 0 0 3px rgba(59, 47, 191, .22); }
.site-nav .btn { padding: .6rem 1.1rem; font-size: .95rem; }

.nav-toggle {
  margin-left: auto;
  display: none;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: none; border: 1px solid #DCDBDF; border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block;
  width: 18px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-1px); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    margin: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -24px rgba(20,19,31,.45);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden; pointer-events: none;
    /* visibility flips instantly on open, and only after the fade on close */
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
    max-height: 72dvh; overflow-y: auto;
  }
  .site-nav[data-open="true"] {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s;
  }
  .site-nav a { padding: .85rem .9rem; font-size: 1.02rem; }
  .site-nav .btn { margin-top: .5rem; padding: .85rem 1.1rem; font-size: 1rem; }
}

/* ---------- 7. Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--indigo-tint) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.15rem; text-align: center;
  padding-block: clamp(2.5rem, 7vw, 4rem);
  max-width: 46rem; margin-inline: auto;
}

/* ---------- 8. Section nav (scrollspy) ---------- */
.subnav {
  position: sticky; top: var(--header-real); z-index: 80;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav__scroll {
  display: flex; gap: .25rem;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-block: .5rem;
}
.subnav__scroll::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; scroll-snap-align: start;
  padding: .45rem .85rem;
  border-radius: var(--pill);
  font-size: .9rem; font-weight: 500; color: var(--muted);
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.subnav a:hover { color: var(--indigo); background: var(--indigo-tint); }
.subnav a[aria-current="true"] { color: var(--indigo); background: var(--indigo-tint); font-weight: 600; }

/* ---------- 9. Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 1.85rem);
  display: flex; flex-direction: column; gap: .9rem;
}
.card--dark { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.card--dark .card__desc { color: #D5D2F0; }
.card--dark a { color: var(--amber); }
.card--dark a:hover { color: #fff; }
.card__desc { color: var(--body); font-size: .97rem; line-height: 1.55; }
.card .link-arrow { margin-top: auto; }

/* ---------- 10. Pricing plans ---------- */
.plans { align-items: stretch; }
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex; flex-direction: column; gap: 1.15rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
@media (hover: hover) {
  .plan:hover { border-color: var(--indigo-line); box-shadow: var(--shadow-2); transform: translateY(-2px); }
}
.plan--featured {
  border: 2px solid var(--indigo);
  box-shadow: var(--shadow-brand);
}
.plan__badge {
  position: absolute; top: -.85rem; left: clamp(1.5rem, 3vw, 2rem);
  background: var(--indigo); color: #fff;
  border-radius: var(--pill);
  padding: .3rem .85rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; white-space: nowrap;
}
.plan__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.plan__desc { color: var(--muted); font-size: .97rem; line-height: 1.5; }
.plan__price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem;
  border-top: 1px solid var(--line-soft); padding-top: 1.15rem;
}
.plan__amount {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--t-price); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.plan__per { font-size: .95rem; color: var(--muted); }
.plan__includes { border-top: 1px solid var(--line-soft); padding-top: 1.15rem; }
.plan__includes .eyebrow { margin-bottom: .7rem; }

/* ---------- 11. Media frame + lightbox ---------- */
.shot {
  margin: 0;
  border: 1px solid #E0DEEA;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--panel-2);
  box-shadow: var(--shadow-2);
}
.shot button {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in;
}
.shot img { width: 100%; }

dialog.lightbox {
  width: min(96vw, 1200px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: 0 40px 80px -20px rgba(20,19,31,.55);
}
dialog.lightbox::backdrop { background: rgba(20,19,31,.72); backdrop-filter: blur(3px); }
.lightbox img { width: 100%; border-radius: var(--r-md); }
.lightbox__close {
  position: absolute; top: .6rem; right: .6rem;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%; border: 0;
  background: rgba(20,19,31,.72); color: #fff;
  font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.lightbox__cap { padding: .8rem 1rem; font-size: .9rem; color: var(--muted); }

/* ---------- 12. Comparison table ---------- */
.compare { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1), 0 30px 60px -44px rgba(20,19,31,.28); }
.compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.compare__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: .97rem;
}
.compare__table th, .compare__table td { text-align: center; padding: .85rem .7rem; }
/* NOTE: no position:sticky here. .compare (overflow:hidden) and
   .compare__scroll (overflow-x:auto) are both scroll containers, so a sticky
   thead would stick to the table box instead of the viewport and land in the
   middle of the rows. The plan names stay reachable via .compare__tabs. */
.compare__table thead th {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
}
.compare__table thead th:first-child {
  text-align: left; padding-left: 1.15rem;
  font-family: var(--font-mono); font-weight: 400; font-size: .75rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.compare__table tbody th {
  text-align: left; padding-left: 1.15rem;
  font-weight: 400; color: var(--ink);
}
.compare__table tbody tr { border-bottom: 1px solid var(--line-soft); }
.compare__table tbody tr:last-child { border-bottom: 0; }
.compare__table tbody tr:hover { background: #FCFCFD; }
.compare__table col.is-active { background: var(--indigo-tint); }
.compare__table th.is-plan-featured { color: var(--indigo); }

.yes, .no { display: inline-block; font-weight: 600; }
.yes { color: var(--green); }
.no  { color: var(--faint); }
.yes::before { content: "✓"; }
.no::before  { content: "–"; }

/* Mobile: plan tabs instead of a 4-column table */
.compare__tabs { display: none; gap: .4rem; padding: .75rem; border-bottom: 1px solid var(--line); background: var(--panel); }
.compare__tabs button {
  flex: 1 1 0;
  padding: .6rem .5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--pill);
  font-family: var(--font-display); font-weight: 700; font-size: .92rem;
  color: var(--body); cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.compare__tabs button[aria-selected="true"] {
  background: var(--indigo); border-color: var(--indigo); color: #fff;
}

@media (max-width: 720px) {
  .compare__tabs { display: flex; }
  .compare__scroll { overflow-x: visible; }
  table.compare__table { min-width: 0; }
  .compare__table thead th { position: static; }
  .compare__table col.is-active { background: transparent; }
  /* show only the selected plan's column */
  .compare__table[data-active="dasar"]  :is(th, td)[data-plan]:not([data-plan="dasar"]),
  .compare__table[data-active="bisnis"] :is(th, td)[data-plan]:not([data-plan="bisnis"]),
  .compare__table[data-active="skala"]  :is(th, td)[data-plan]:not([data-plan="skala"]) { display: none; }
  .compare__table th, .compare__table td { padding: .8rem .9rem; }
  .compare__table tbody th { padding-left: .9rem; }
  .compare__table td { text-align: right; }
  .compare__table thead th:not(:first-child) { text-align: right; }
}

/* ---------- 13. FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: .7rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.faq details[open] { border-color: var(--indigo-line); box-shadow: var(--shadow-1); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1rem, .95rem + .3vw, 1.1rem); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem; line-height: 1; color: var(--indigo);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 1.25rem 1.25rem; color: var(--body); line-height: 1.65; }

/* ---------- 14. CTA + footer ---------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 5vw, 3rem);
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  align-items: center; justify-content: space-between;
}
.cta__mark {
  position: absolute; right: -3rem; bottom: -3rem;
  width: 17rem; opacity: .07; pointer-events: none;
}
.cta h2 { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 1.95rem); }
.cta p { color: #A9AAB2; max-width: 34rem; }
.cta > * { position: relative; }

.site-footer { border-top: 1px solid var(--line); margin-top: var(--section); background: var(--panel); }
.site-footer__grid {
  display: grid; gap: 1.75rem;
  grid-template-columns: 1fr;
  padding-block: clamp(2rem, 5vw, 2.75rem);
}
@media (min-width: 620px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .site-footer__grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.site-footer h3 { font-family: var(--font-mono); font-weight: 500; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.site-footer a { color: var(--body); font-size: .95rem; }
.site-footer a:hover { color: var(--indigo); }
.site-footer__legal {
  border-top: 1px solid var(--line);
  padding-block: 1rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  justify-content: space-between;
  font-size: .85rem; color: var(--muted);
}
.site-footer__addr { font-size: .9rem; color: var(--muted); line-height: 1.6; margin-top: .75rem; max-width: 34rem; }

/* ---------- 15. Motion ---------- */
/* Hidden only once JS has confirmed it can reveal them again. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

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

/* ---------- 16. Print ---------- */
@media print {
  .site-header, .subnav, .cta, .nav-toggle { display: none !important; }
  body { color: #000; }
  .shot, .card, .plan, .compare { box-shadow: none; }
}

/* =============================================================
   17. Home page components
   ============================================================= */

/* Trust strip above the hero */
.trust {
  border-bottom: 1px solid var(--line);
  background: var(--indigo-tint);
}
.trust__list {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .4rem 1.5rem;
  padding-block: .6rem;
  margin: 0; list-style: none;
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--indigo);
}
.trust__list li { display: flex; align-items: center; gap: 1.5rem; }
.trust__list li + li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; opacity: .5; margin-left: -.75rem;
}
/* When the strip wraps, a leading separator dot starts the next line. */
@media (max-width: 720px) {
  .trust__list { gap: .3rem 1rem; }
  .trust__list li + li::before { display: none; }
  .trust__list li { gap: 0; }
}

/* Hero with a product shot beside the copy */
.hero--split .hero__inner {
  display: grid; gap: clamp(2rem, 5vw, 3rem);
  grid-template-columns: 1fr;
  text-align: left; align-items: center;
  /* Membatalkan max-width: 46rem milik hero versi tengah — TAPI harus kembali
     ke lebar .wrap, bukan none. Dengan none hero jadi full-bleed dan meleset
     113px dari seksi di bawahnya pada layar 1440px. */
  max-width: var(--max);
}
@media (min-width: 960px) {
  .hero--split .hero__inner { grid-template-columns: 1.05fr 1fr; }
}
.hero--split .pill-tag { align-self: flex-start; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero__actions .btn { flex: 1 1 auto; min-width: 12rem; }
@media (min-width: 480px) { .hero__actions .btn { flex: 0 0 auto; } }
.hero .checks { justify-content: flex-start; }

/* Fake browser chrome around a screenshot */
.frame {
  margin: 0;
  border: 1px solid #E0DEEA;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.frame__bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .6rem .8rem;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.frame__bar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: #D9D8E0;
}
.frame__bar span:first-child { background: #E9A5A0; }
.frame__bar span:nth-child(2) { background: #EFCB90; }
.frame__bar span:nth-child(3) { background: #A9D4BE; }
.frame button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.frame img { width: 100%; }

/* Section heading block */
.sec-head { display: flex; flex-direction: column; gap: .6rem; margin-bottom: clamp(1.5rem, 4vw, 2rem); max-width: 46rem; }

/* Numbered cards (problems / steps) */
.numbered { counter-reset: n; }
.numbered .card::before,
.step__n {
  counter-increment: n;
  content: counter(n, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .75rem; letter-spacing: .1em;
  color: var(--indigo);
}
.step {
  display: flex; flex-direction: column; gap: .6rem;
  padding-top: 1rem;
  border-top: 2px solid var(--indigo-line);
}
.step__n {
  display: inline-grid; place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--indigo); color: #fff;
  font-size: .9rem; letter-spacing: 0;
  content: none;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--body); font-size: .97rem; line-height: 1.55; }

/* Feature card with an icon chip */
.feature__icon {
  display: inline-grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: var(--r-sm);
  background: var(--indigo-tint);
  color: var(--indigo);
  margin-bottom: .2rem;
}
.feature__icon svg { width: 1.35rem; height: 1.35rem; }
.feature ul { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.feature ul li { font-size: .92rem; color: var(--muted); display: flex; gap: .5rem; }
.feature ul li::before { content: "·"; color: var(--indigo); font-weight: 700; }

/* Dark guardrail panel */
.panel-dark {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 5vw, 3rem);
}
.panel-dark__mark { position: absolute; right: -3rem; top: -3rem; width: 18rem; opacity: .07; pointer-events: none; }
.panel-dark > * { position: relative; }
.panel-dark p { color: #A9AAB2; }
.panel-dark .eyebrow { color: var(--amber); }
.rules { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .8rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.rules li { display: flex; gap: .7rem; align-items: flex-start; font-size: .97rem; line-height: 1.5; color: #E7E7EA; }
.rules li::before {
  content: ""; flex: none;
  width: 1.05em; height: 1.05em; margin-top: .2em;
  background: var(--amber);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}

/* Official vs unofficial table */
.versus { width: 100%; border-collapse: collapse; font-size: .97rem; }
.versus caption { text-align: left; padding-bottom: .75rem; color: var(--muted); font-size: .9rem; }
.versus th, .versus td { padding: .85rem 1rem; text-align: left; vertical-align: top; }
.versus thead th { background: var(--panel); border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: .95rem; }
.versus thead th:first-child { font-family: var(--font-mono); font-weight: 400; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.versus thead th.is-us { color: var(--indigo); }
.versus tbody tr { border-bottom: 1px solid var(--line-soft); }
.versus tbody tr:last-child { border-bottom: 0; }
.versus tbody th { font-weight: 400; color: var(--muted); font-size: .92rem; }
.versus td.is-us { color: var(--ink); font-weight: 500; background: var(--indigo-tint); }
@media (max-width: 640px) {
  .versus, .versus tbody, .versus tr, .versus td, .versus th { display: block; }
  .versus thead { display: none; }
  .versus tbody tr { padding: .9rem 0; }
  .versus tbody th { padding: 0 1rem .3rem; }
  .versus td { padding: .3rem 1rem; }
  .versus td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--muted); margin-bottom: .15rem;
  }
  .versus td.is-us { border-radius: var(--r-sm); margin: .2rem .5rem; padding: .5rem 1rem; }
}

/* Industry tiles */
.tiles { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.tile {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.tile:hover { border-color: var(--indigo-line); box-shadow: var(--shadow-2); transform: translateY(-2px); color: var(--ink); }
.tile__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.tile__desc { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.tile__tag {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--indigo); background: var(--indigo-tint);
  border-radius: var(--pill); padding: .2rem .5rem; margin-bottom: .2rem;
}

/* Client cards */
.clients { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.client { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.client img { width: 72px; height: 72px; border-radius: var(--r-sm); object-fit: contain; background: var(--panel-2); flex: none; }
.client__name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.client__desc { font-size: .87rem; color: var(--muted); line-height: 1.4; }

/* Product tour cards */
.tour { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.tour__item { display: flex; flex-direction: column; gap: .8rem; }
.tour__item h3 { font-size: 1.05rem; }
.tour__item p { font-size: .93rem; color: var(--muted); line-height: 1.5; }

/* =============================================================
   18. Forms, legal pages, misc
   ============================================================= */

/* Form */
.form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > span { font-size: .88rem; font-weight: 500; color: var(--body); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #DCDBDF;
  border-radius: var(--r-sm);
  padding: .7rem .85rem;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(59, 47, 191, .14);
}
.field input:user-invalid, .field select:user-invalid {
  border-color: #C1362B;
}
.field__hint { font-size: .82rem; color: var(--muted); }
.form__note { font-size: .85rem; color: var(--muted); line-height: 1.55; }
.form__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3.5vw, 2rem);
  box-shadow: var(--shadow-2);
}

/* Bullet notes beside the form */
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.notes li { border-left: 2px solid var(--indigo-line); padding-left: 1rem; color: var(--body); line-height: 1.6; }
.notes strong { color: var(--ink); }

/* Legal pages */
.legal-note {
  border: 1px dashed var(--indigo-line);
  background: var(--indigo-tint);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem;
  font-size: .95rem; line-height: 1.6; color: var(--body);
}
.clauses { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.clauses li {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.15rem 1.3rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.clauses h2 { font-size: 1.08rem; }
.clauses p { color: var(--body); line-height: 1.6; }
.issuer { margin-top: 1.75rem; font-size: .88rem; color: var(--muted); }

/* Success state */
.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; max-width: 40rem; margin-inline: auto; }
.done__badge {
  display: grid; place-items: center;
  width: 4rem; height: 4rem; border-radius: 50%;
  background: #E4F3EC; color: var(--green);
}
.done__badge svg { width: 2rem; height: 2rem; }
.done ol { text-align: left; margin: .5rem 0 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .5rem; color: var(--body); }

/* =============================================================
   19. Industry landing pages
   ============================================================= */

/* Slim header: landing pages keep one way forward, not a full menu */
.site-header--slim .site-header__bar { gap: .75rem; }
.site-header--slim .nav-toggle { display: none; }
.site-header--slim .site-nav {
  position: static; margin-left: auto;
  flex-direction: row; align-items: center; gap: .5rem;
  padding: 0; background: none; border: 0; box-shadow: none;
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  max-height: none; overflow: visible;
}
.site-header--slim .site-nav .btn { margin: 0; }
@media (max-width: 420px) {
  .site-header--slim .site-nav .btn { padding: .55rem .9rem; font-size: .88rem; }
}

/* Hero with the enquiry form beside the pitch */
.lead-hero { background: linear-gradient(180deg, var(--indigo-tint) 0%, var(--surface) 100%); border-bottom: 1px solid var(--line); }
.lead-hero__grid {
  display: grid; gap: clamp(1.75rem, 4vw, 2.5rem);
  grid-template-columns: 1fr;
  align-items: start;
  padding-block: clamp(2.25rem, 6vw, 3.5rem);
}
@media (min-width: 940px) { .lead-hero__grid { grid-template-columns: 1.08fr 1fr; } }
.lead-hero .pill-tag { align-self: flex-start; }
.lead-points { list-style: none; margin: .35rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.lead-points li { display: flex; gap: .65rem; align-items: flex-start; font-size: 1rem; line-height: 1.55; color: var(--body); }
.lead-points li::before {
  content: ""; flex: none; width: 1.1em; height: 1.1em; margin-top: .2em;
  background: var(--green);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}
.lead-badge {
  margin-top: .4rem;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em;
  color: var(--muted); line-height: 1.5;
}

/* Use-case card with a WhatsApp-style thread */
/* Tepat empat kartu — lihat catatan di .grid--quad. Aturan 4 kolom di 1400px
   sempat ada dan salah: kartu menyusut ke 291px dan tinggi gelembung chat
   melonjak 67px -> 133px karena teksnya membungkus dua kali lipat. */
.usecases { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .usecases { grid-template-columns: repeat(2, 1fr); } }
.usecase { display: flex; flex-direction: column; gap: .75rem; }
.usecase h3 { font-size: 1.08rem; }
.usecase__note { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.thread {
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: .85rem;
}
.bubble {
  max-width: 88%;
  padding: .65rem .8rem;
  border-radius: 14px;
  font-size: .92rem; line-height: 1.5;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--ink);
}
.bubble--in {
  align-self: flex-end;
  background: var(--indigo); color: #fff; border-color: var(--indigo);
  border-bottom-left-radius: 14px; border-bottom-right-radius: 4px;
  max-width: 60%;
}

/* Three-step row on landing pages */
.lead-steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

/* Closing block: pitch + second form */
.lead-close {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 4.5vw, 2.75rem);
  display: grid; gap: clamp(1.5rem, 4vw, 2.25rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 940px) { .lead-close { grid-template-columns: 1fr 1fr; } }
.lead-close > * { position: relative; }
.lead-close__mark { position: absolute; right: -3rem; bottom: -3rem; width: 18rem; opacity: .07; pointer-events: none; }
.lead-close p { color: #A9AAB2; }
.lead-close .small { color: #8B8C94; }

/* =============================================================
   20. Legal documents (prose)
   ============================================================= */
.doc { max-width: 46rem; }
.doc__meta {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em;
  color: var(--muted); margin-bottom: 2rem;
}
.doc section { margin-bottom: 2rem; }
.doc h2 {
  font-size: 1.15rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  margin-bottom: .75rem;
}
.doc section:first-of-type h2 { padding-top: 0; border-top: 0; }
.doc h2 .doc__n {
  font-family: var(--font-mono); font-weight: 400; font-size: .8rem;
  color: var(--indigo); display: block; letter-spacing: .1em; margin-bottom: .3rem;
}
.doc p { color: var(--body); line-height: 1.7; margin-bottom: .9rem; }
.doc p:last-child { margin-bottom: 0; }
.doc ul, .doc ol { color: var(--body); line-height: 1.7; margin: 0 0 .9rem; padding-left: 1.15rem; }
.doc li { margin-bottom: .45rem; }
.doc li::marker { color: var(--indigo); }
.doc dl { margin: 0 0 .9rem; }
.doc dt { font-weight: 600; color: var(--ink); margin-top: .7rem; }
.doc dd { margin: .15rem 0 0; color: var(--body); line-height: 1.7; }
.doc__contact {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--panel); padding: 1.15rem 1.3rem;
  line-height: 1.7; color: var(--body);
}
.doc__contact strong { color: var(--ink); }
.doc__en {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.doc__en p { font-size: .95rem; color: var(--muted); }
.doc__seealso { margin-top: 1.5rem; font-size: .95rem; }
