/* Jasa OTP Indonesia: global styles.
   Palette: white, black, one electric blue. No shadows, square corners (only the SMS bubble is round).
   Mobile first. Layout breakpoint 900px, nav breakpoint 980px. */
:root {
  --white: #FFFFFF;
  --black: #000000;
  --blue: #0047FF;
  --tint: #EEF3FF;
  --blue-on-dark: #8DA4FF;
  --ink-60: rgba(0, 0, 0, .64);
  --rule: rgba(0, 0, 0, .2);
  --max-width: 1200px;
  --header-h: 72px;
  --f-head: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-code: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--white); color: var(--black);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--black); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-dark :focus-visible, .cta-band-wrap :focus-visible, .stats-band :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 900px) { .wrap { padding: 0 2rem; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--black); color: var(--white); padding: .7rem 1rem; z-index: 100; }
.skip-link:focus { top: 1rem; color: var(--white); }

h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 800; font-stretch: 88%; letter-spacing: -0.025em; line-height: 1.04; margin: 0; color: var(--black); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1.1rem; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--f-head); font-stretch: 92%; font-weight: 700; font-size: 1.05rem; line-height: 1.15; letter-spacing: -0.01em;
  padding: 1rem 1.55rem; border: 2px solid transparent; border-radius: 0; text-decoration: none; cursor: pointer;
  transition: transform .16s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); }
.btn-invert { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-invert:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.btn-sm { padding: .65rem 1.1rem; font-size: .98rem; }
.btn-lg { padding: 1.15rem 1.9rem; font-size: 1.15rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 2px solid var(--black); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.site-logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--black); }
.site-logo:hover { color: var(--black); }
.site-logo__img { width: 40px; height: 40px; }
.site-logo__text { font-family: var(--f-head); font-stretch: 86%; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.nav-toggle { display: inline-flex; background: var(--white); border: 2px solid var(--black); border-radius: 0; padding: .5rem; color: var(--black); cursor: pointer; }
.nav-toggle:hover { background: var(--black); color: var(--white); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--white); border-bottom: 2px solid var(--black); padding: 1rem 1.25rem 1.5rem; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.site-nav li a { display: block; padding: .8rem 0; color: var(--black); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--rule); }
.site-nav li a:hover { color: var(--blue); }
.site-nav li a.active { color: var(--blue); }
@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 1.5rem; position: static; background: none; border: 0; padding: 0; }
  .site-nav ul { display: flex; gap: .25rem; margin: 0; }
  .site-nav li a { padding: .5rem .8rem; border: 0; font-size: .98rem; white-space: nowrap; box-shadow: inset 0 -4px 0 transparent; }
  .site-nav li a:hover { color: var(--black); box-shadow: inset 0 -4px 0 var(--black); }
  .site-nav li a.active { color: var(--black); box-shadow: inset 0 -4px 0 var(--blue); }
}

/* Tables */
.table-scroll { overflow-x: auto; margin: 2rem 0; border: 2px solid var(--black); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .98rem; line-height: 1.5; }
th, td { text-align: left; padding: .85rem 1rem; vertical-align: top; border-bottom: 1px solid var(--rule); }
thead th { background: var(--black); color: var(--white); font-family: var(--f-head); font-stretch: 92%; font-weight: 600; letter-spacing: -0.01em; border-bottom: 0; }
tbody th { background: var(--tint); font-weight: 600; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
th:first-child, td:first-child { min-width: 9rem; }

/* Footer */
.site-footer { background: var(--black); color: var(--white); padding: 4rem 0 1.75rem; }
.site-footer a { color: var(--white); text-decoration-thickness: 1px; }
.site-footer a:hover { color: var(--blue-on-dark); }
.site-logo--light, .site-logo--light:hover { color: var(--white); }
.site-footer .site-logo__text { font-size: 1.9rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand p { margin-top: 1.1rem; max-width: 34ch; color: rgba(255, 255, 255, .78); }
.footer-title { font-family: var(--f-head); font-stretch: 90%; font-weight: 700; font-size: 1.2rem; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .28); font-size: .92rem; color: rgba(255, 255, 255, .78); }
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
