/* lewat.email: satu stylesheet untuk landing, docs dan use case. Token dari landing-mockup-v2.2.html. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Variable.ttf") format("truetype");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #0a0a0a;
  --fg: #ededed;
  --muted: #8c8c8c;
  --line: #2a2a2a;
  --btn: #ededed;
  --btn-fg: #0a0a0a;
  --code: #d6d6d6;
  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --pad: 20px;
  --space-section: 16px;
  --space-page-top: 24px;
  --space-page-bottom: 48px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.48;
  letter-spacing: 0.005em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.skip {
  position: absolute; left: 16px; top: -100px;
  background: var(--btn); color: var(--btn-fg);
  font-size: 13px; font-weight: 580; padding: 10px 12px; border-radius: 2px; z-index: 10;
}
.skip:focus { top: 8px; }
.page {
  max-width: 1232px;
  margin: 0 auto;
  padding: var(--space-page-top) 16px var(--space-page-bottom);
}
.frame { border: 1px solid var(--line); }
.stack { margin-top: var(--space-section); }
.row { display: grid; border-top: 1px solid var(--line); }
.cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cols-2.split > * + * { border-left: 1px solid var(--line); }

/* Header */
.header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--pad); min-height: 52px;
}
.logo { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--fg); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--btn); color: var(--btn-fg);
  font-family: var(--sans); font-weight: 580; font-size: 13px; line-height: 1; letter-spacing: 0.01em;
  padding: 8px 12px; border: 0; border-radius: 2px; cursor: pointer; white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: default; }
.btn:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible, pre:focus-visible, .table-wrap:focus-visible {
  outline: 2px solid var(--fg); outline-offset: 2px;
}

/* Landing */
h1 { font-size: 40px; font-weight: 640; letter-spacing: -0.02em; line-height: 1.08; max-width: 18ch; }
.sub { margin-top: 14px; font-size: 17px; line-height: 1.45; max-width: 52em; }
.hero-text { padding: 28px var(--pad) 24px; }
.hero-actions { margin-top: 22px; }
.fine { margin-top: 12px; color: var(--muted); font-size: 13px; }
.bar {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 8px var(--pad); border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.bar strong { color: var(--fg); font-weight: 600; }
.bar span { overflow-wrap: anywhere; text-align: right; }
pre, code, .mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
pre {
  padding: 14px var(--pad) 18px; font-size: 12px; line-height: 1.58; color: var(--code);
  white-space: pre; overflow-x: auto;
}
.cm { color: #737373; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 12px var(--pad); border-bottom: 1px solid var(--line);
}
.prompt-cell { padding: 16px var(--pad) 20px; }
.prompt-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.prompt { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { padding: 16px var(--pad) 20px; }
.step + .step { border-left: 1px solid var(--line); }
.num { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 8px; letter-spacing: 0; }
.step h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.step p, footer { color: var(--muted); font-size: 13px; line-height: 1.5; }
.close { padding: 28px var(--pad); }
.close .fine { margin-top: 14px; }
form { display: flex; gap: 8px; flex-wrap: wrap; max-width: 520px; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field { flex: 1 1 240px; min-width: 0; }
input {
  width: 100%; background: transparent; color: var(--fg);
  border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--sans); font-size: 16px; line-height: 1.2; padding: 8px 10px; min-height: 40px;
}
input::placeholder { color: #707070; }
form .btn { align-self: flex-end; min-height: 40px; }
.status { margin-top: 12px; font-size: 13px; }
.status:empty { display: none; }
.status.err { color: #e5a3a3; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 16px var(--pad) 18px; }
footer .logo { color: var(--fg); display: block; margin-bottom: 6px; font-size: 15px; }
footer a:hover { color: var(--fg); }
footer p + p { margin-top: 6px; }

/* Docs dan use case */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 8px var(--pad); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #5c5c5c; }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current] { color: var(--fg); }
.doc-head { padding: 28px var(--pad) 24px; }
.doc-head h1 { font-size: 34px; max-width: 26ch; }
.doc-head .sub { max-width: 44em; }
.doc-grid { display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.side { border-right: 1px solid var(--line); padding: 16px 0 20px; font-size: 13px; }
.side h2 { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--muted); padding: 0 var(--pad); margin: 12px 0 4px; }
.side h2:first-child { margin-top: 0; }
.side ul { list-style: none; }
.side a { display: block; padding: 5px var(--pad); color: var(--muted); line-height: 1.35; }
.side a:hover { color: var(--fg); }
.side a[aria-current] { color: var(--fg); font-weight: 600; box-shadow: inset 2px 0 0 var(--fg); }
.prose { padding: 4px var(--pad) 32px; min-width: 0; font-size: 15px; line-height: 1.6; }
.prose > * { max-width: 46rem; }
.prose > .code, .prose > .table-wrap { max-width: none; }
.prose p, .prose ul, .prose ol, .prose .code, .prose .table-wrap, .prose blockquote { margin-top: 14px; }
.prose h2 {
  max-width: none; margin: 32px calc(var(--pad) * -1) 0; padding: 22px var(--pad) 0;
  border-top: 1px solid var(--line); font-size: 20px; line-height: 1.25;
}
.prose h2:first-child { border-top: 0; margin-top: 0; padding-top: 18px; }
.prose h3 { margin-top: 26px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.prose h4 { margin-top: 20px; font-size: 14px; font-weight: 600; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration: underline; text-decoration-color: #6a6a6a; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-color: var(--fg); }
.prose code { font-size: 0.87em; color: var(--code); overflow-wrap: anywhere; }
.prose strong { font-weight: 600; }
.prose blockquote { border-left: 1px solid var(--fg); padding: 2px 0 2px 14px; color: var(--fg); }
.prose blockquote p:first-child { margin-top: 0; }
.code { border: 1px solid var(--line); }
.code .bar { padding: 6px 14px; }
.code pre { padding: 12px 14px 14px; font-size: 12.5px; }
.code pre code { font-size: inherit; overflow-wrap: normal; }
.table-wrap { border: 1px solid var(--line); overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line); }
th + th, td + td { border-left: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
td code { white-space: nowrap; overflow-wrap: normal; }
td:last-child code { white-space: normal; overflow-wrap: anywhere; }
.updated { margin-top: 14px; color: var(--muted); font-size: 13px; }
.list { list-style: none; }
.list li + li { border-top: 1px solid var(--line); }
.list a { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; padding: 14px var(--pad); }
.list a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.list strong { font-weight: 600; font-size: 15px; }
.list span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); margin: 32px calc(var(--pad) * -1) -32px; max-width: none; }
.pager a { padding: 14px var(--pad); text-decoration: none; font-size: 14px; }
.pager a + a { border-left: 1px solid var(--line); text-align: right; }
.pager a:only-child.next { grid-column: 2; border-left: 1px solid var(--line); text-align: right; }
.pager small { display: block; color: var(--muted); font-size: 12px; }
.plain { padding: 28px var(--pad); }
.plain p { margin-top: 14px; max-width: 44em; }

@media (max-width: 860px) {
  :root { --pad: 16px; --space-page-top: 12px; --space-page-bottom: 32px; }
  .page { padding-left: 12px; padding-right: 12px; }
  h1 { font-size: 32px; }
  .doc-head h1 { font-size: 28px; }
  .sub { font-size: 16px; }
  .cols-2 { grid-template-columns: minmax(0, 1fr); }
  .cols-2.split > * + * { border-left: 0; }
  .cols-2 > * + * { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .step:nth-child(odd) { border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .btn { min-height: 40px; }
  form .btn, input { min-height: 44px; }
  footer a, .nav-links a { display: inline-flex; align-items: center; min-height: 40px; }
  footer p + p { margin-top: 0; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .side { order: 2; border-right: 0; border-top: 1px solid var(--line); }
  .side a { padding-top: 10px; padding-bottom: 10px; }
  .list a { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  table { min-width: 600px; }
  .prose { font-size: 15px; }
}
@media (max-width: 560px) {
  .header { flex-wrap: wrap; padding-bottom: 0; }
  .header.no-links { padding-bottom: 14px; }
  .nav { display: contents; }
  .nav-links {
    order: 3; flex: 0 0 calc(100% + var(--pad) * 2); margin: 6px calc(var(--pad) * -1) 0; padding: 0 var(--pad);
    border-top: 1px solid var(--line);
  }
  .bar { flex-wrap: wrap; gap: 2px 12px; }
  .bar strong { white-space: nowrap; }
  .logo { display: inline-flex; align-items: center; min-height: 40px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  footer { flex-direction: column; gap: 8px; }
  form .btn { flex: 1 1 100%; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager a + a, .pager a:only-child.next { border-left: 0; border-top: 1px solid var(--line); text-align: left; grid-column: auto; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.doc-head code { font-size: 0.87em; color: var(--code); overflow-wrap: anywhere; }
