/* Jasa OTP Virtual: global styles. Flat, minimal.
   Colour roles (nothing else is used):
   ink     = text, structure, footer, neutral bars
   accent  = action and HeroSMS only (buttons, links, rank 1, HeroSMS bars)
   amber   = caution notes only
   white / soft grey / line = surfaces */

@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  --max-width: 1160px;
  --ink: #0e1116;
  --ink-2: #1d232c;
  --accent: #1456f0;
  --accent-d: #0f43c4;
  --accent-wash: #eef3ff;
  --amber: #b45309;
  --amber-wash: #fff7e6;
  --paper: #ffffff;
  --soft: #f5f6f8;
  --line: #e3e6eb;
  --line-2: #c9cfd8;
  --muted: #5b6370;
  --neutral-bar: #aeb5c1;
  --on-ink: #e8ebf0;
  --on-ink-muted: #a9b0bc;
  --radius: 12px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.09rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 0; color: var(--ink); }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-d); }
strong { font-weight: 700; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 860px; }
.visually-hidden { position: absolute !important; 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; z-index: 100; background: var(--ink); color: #fff; font-weight: 700; padding: 0.7rem 1rem; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* icons: outline, one stroke weight */
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 1.05em; height: 1.05em; }
.i--lg { width: 1.5em; height: 1.5em; }

/* buttons: flat */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 44px; padding: 0.65rem 1.25rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: -0.01em;
  border: 2px solid transparent; border-radius: 8px; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-d); color: #fff; }
.btn--invert { background: #fff; color: var(--ink); }
.btn--invert:hover { background: var(--soft); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--soft); color: var(--ink); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn--lg { min-height: 52px; padding: 0.8rem 1.6rem; font-size: 1.05rem; }
.btn--sm { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.95rem; }
.btn .i--arrow { width: 1.1em; height: 1.1em; }
.btn--invert:focus-visible, .btn--ghost-light:focus-visible { outline-color: #fff; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.site-logo { display: inline-flex; flex: none; }
.site-logo__img { height: 32px; width: auto; }
.site-nav { margin-left: auto; display: none; }
.site-nav ul { list-style: none; display: flex; gap: 0.25rem; }
.site-nav a { display: block; padding: 0.5rem 0.85rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; border-radius: 6px; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.header-cta { margin-left: auto; }
.header-cta .btn { white-space: nowrap; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 8px; cursor: pointer; }
.nav-toggle .i--close { display: none; }
.nav-toggle[aria-expanded="true"] .i--menu { display: none; }
.nav-toggle[aria-expanded="true"] .i--close { display: block; }
.site-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); padding: 0.5rem 1.25rem 1rem; border-bottom: 1px solid var(--line); }
.site-nav.is-open ul { flex-direction: column; }
.site-nav.is-open a { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--line); }

/* footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 3rem 0 2.25rem; font-size: 0.98rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.4); }
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }
.footer__grid { display: grid; gap: 1.75rem; }
.footer__nav { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer__note { margin: 1rem 0 0; max-width: 62ch; }
.footer__copy { margin: 0; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.92rem; }

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
}
@media (min-width: 1040px) {
  .site-nav { display: block; }
  .nav-toggle { display: none; }
  .header-cta { margin-left: 0.5rem; }
}
@media (max-width: 767px) {
  .site-header .container { gap: 0.6rem; }
  .header-cta { margin-left: auto; }
  .header-cta .btn { padding: 0.4rem 0.8rem; min-height: 40px; font-size: 0.92rem; }
  .site-logo__img { height: 28px; }
  .nav-toggle { width: 40px; height: 40px; }
}
@media (max-width: 430px) {
  .header-cta .btn .i--arrow { display: none; }
}
@media (max-width: 360px) {
  .site-header .container { padding: 0 0.75rem; gap: 0.4rem; }
  .site-logo__img { height: 21px; }
  .header-cta .btn { padding: 0.35rem 0.6rem; font-size: 0.85rem; }
  .nav-toggle { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
