/* AINS NILAM Helper website. Office Memo Slate, system stack, 14px floor, no shadows.
   Panel rules (.p-*) mirror extension/static/sidepanel.css so the rendered panel is the real thing. */
:root {
  --paper: #ffffff; --bone: #fafafa; --ash: #f4f4f5; --line: #e4e4e7; --line-cool: #e4e7ec;
  --ink: #18181b; --midnight: #09090b; --slate: #71717a; --deep-slate: #404045;
  --green: #22c55e; --amber: #f59e0b; --red: #ef4444; --blue: #3b82f6;
  --accent: #580860; --accent-hover: #46074d;
  --r-sm: 4px; --r-md: 6px; --r-lg: 8px;
  --measure: 62ch;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bone); color: var(--midnight);
  font: 400 16px/1.55 -apple-system, system-ui, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
::selection { background: #e9d8ec; color: var(--midnight); }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-cool); }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: 2.25rem; line-height: 1.15; letter-spacing: -0.025em; }
h2 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; }
h3 { font-size: 1rem; line-height: 1.4; letter-spacing: -0.01em; }
p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 12px; }
.small { font-size: 0.875rem; }
.muted { color: var(--slate); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.wrap { width: min(1040px, 100% - 40px); margin-inline: auto; }

/* ---- buttons (site scale) ---- */
.btn {
  border: 1px solid var(--line); background: var(--ash); color: var(--ink); border-radius: var(--r-md);
  padding: 10px 16px; min-height: 40px; cursor: pointer; text-decoration: none; font: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background-color 150ms cubic-bezier(.4,0,.2,1), border-color 150ms cubic-bezier(.4,0,.2,1);
}
.btn:hover { background: #ececee; text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--ash); }
.btn[aria-disabled="true"] { background: var(--ash); color: var(--slate); border-color: var(--line-cool); cursor: default; pointer-events: none; }
.btn-primary[aria-disabled="true"] { background: #c9b3cc; border-color: #c9b3cc; color: var(--paper); }

/* ---- top bar ---- */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.top .wrap { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.mark { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.mark svg { width: 17px; height: 17px; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 10px; border-radius: var(--r-md); color: var(--deep-slate); }
.nav a:hover { background: var(--ash); color: var(--ink); }
@media (max-width: 720px) { .nav a:not(:last-child) { display: none; } }

/* ---- sections ---- */
section { padding: 64px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
.sec-head { display: grid; gap: 8px; margin-bottom: 32px; }
.sec-head p { max-width: var(--measure); }
@media (max-width: 720px) { section { padding: 44px 0; } .sec-head { margin-bottom: 24px; } }

/* ---- hero ---- */
.hero { padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px; align-items: start; }
.hero-copy { display: grid; gap: 20px; padding-top: 12px; }
.hero-copy .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-copy .note { color: var(--slate); }
@media (max-width: 900px) {
  .hero { padding: 36px 0 44px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  h1 { font-size: 1.75rem; }
}

/* ---- browser frame with docked panel ---- */
.browser { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.chrome { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--bone); font-size: 0.875rem; color: var(--slate); }
.chrome .lights { display: inline-flex; gap: 5px; }
.chrome .lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.chrome .url { flex: 1; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewport { display: grid; grid-template-columns: minmax(0, 1fr) 384px; min-height: 560px; }
.page { padding: 20px; border-right: 1px solid var(--line); display: grid; gap: 14px; align-content: start; color: var(--slate); font-size: 0.875rem; }
.page .ph { height: 10px; background: var(--ash); border-radius: 3px; }
.page .ph-t { height: 14px; width: 55%; }
.page .ph-s { width: 34%; }
.page .rows { margin-top: 6px; }
.page .rowline { display: grid; grid-template-columns: 3fr 1.2fr 1.4fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.page .rowline:last-child { border-bottom: 0; }
@media (max-width: 900px) {
  .viewport { grid-template-columns: 1fr; min-height: 0; }
  .page { display: none; }
}
@media (max-width: 440px) { .browser { margin-inline: -20px; border-radius: 0; border-left: 0; border-right: 0; } }

/* ---- rendered side panel, lifted from sidepanel.css ---- */
.panel { background: var(--bone); display: flex; flex-direction: column; font-size: 14px; line-height: 1.5; min-height: 100%; }
.p-hdr { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.p-hdr .mark { width: 24px; height: 24px; border-radius: 6px; }
.p-hdr .mark svg { width: 15px; height: 15px; }
.p-hdr b { font-weight: 600; letter-spacing: -0.01em; }
.p-hdr .ver { color: var(--slate); }
.p-hdr .gear { margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; color: var(--deep-slate); }
.p-hdr .gear svg { width: 18px; height: 18px; }
.p-strip { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; }
.p-strip .spacer { flex: 1; }
.p-strip .p-btn { min-height: 32px; padding: 4px 10px; }
.p-view { padding: 12px; display: grid; gap: 12px; align-content: start; flex: 1; }
.p-view .lead { margin: 4px 0 0; font-weight: 600; }
.p-btn { border: 1px solid var(--line); background: var(--ash); color: var(--ink); border-radius: var(--r-md); padding: 8px 14px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; }
.p-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.p-btn-ghost { background: transparent; border-color: transparent; }
.p-btn-block { width: 100%; }
.task { display: grid; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; min-height: 96px; text-align: left; width: 100%; }
.task .t { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -0.01em; }
.task .t svg { width: 18px; height: 18px; color: var(--deep-slate); flex: none; }
.task .t .chev { margin-left: auto; color: var(--slate); }
.task .t .tag { font-weight: 400; color: var(--slate); }
.task .sub { color: var(--slate); }
.task .st { display: flex; align-items: center; margin-top: 4px; }
.p-sep { border-top: 1px solid var(--line); }
.p-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.p-foot { color: var(--slate); padding: 8px 12px 16px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: var(--slate); flex: none; }
.dot-green { background: var(--green); } .dot-amber { background: var(--amber); } .dot-red { background: var(--red); } .dot-blue { background: var(--blue); }
.p-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 10px; font-size: 14px; }
.p-card h3 { font-size: 14px; }
.p-card table { width: 100%; border-collapse: collapse; }
.p-card td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.p-card tr:last-child td { border-bottom: 0; }
.p-card td:first-child { color: var(--slate); width: 38%; }
.progress { height: 6px; background: var(--ash); border-radius: 3px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 600ms cubic-bezier(.4,0,.2,1); }

/* signature moment: strip settles, card status flips */
.p-strip { transition: opacity 400ms cubic-bezier(.4,0,.2,1), transform 400ms cubic-bezier(.4,0,.2,1); }
.panel.is-done .p-strip { opacity: 0; transform: translateY(-4px); height: 0; padding-block: 0; border-bottom-width: 0; }
@media (prefers-reduced-motion: reduce) { .p-strip { transition: none; } }

/* ---- two columns (untuk siapa) ---- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cols > div { display: grid; gap: 10px; align-content: start; padding: 0 40px 0 0; }
.cols > div + div { border-left: 1px solid var(--line); padding: 0 0 0 40px; }
@media (max-width: 720px) {
  .cols { grid-template-columns: 1fr; }
  .cols > div { padding: 0 0 28px; }
  .cols > div + div { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
}

/* ---- steps (a real sequence) ---- */
.steps-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before { content: counter(step); font-weight: 600; color: var(--slate); font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; }
.steps li div { display: grid; gap: 4px; }
.steps li p { max-width: 52ch; }
.aside-panel { width: min(384px, 100%); justify-self: end; }
@media (max-width: 900px) { .steps-wrap { grid-template-columns: 1fr; gap: 32px; } .aside-panel { justify-self: start; } }

/* ---- data table (privasi ringkas) ---- */
.data { display: grid; grid-template-columns: repeat(3, 1fr); }
.data > div { padding: 0 32px 0 0; display: grid; gap: 10px; align-content: start; }
.data > div + div { border-left: 1px solid var(--line); padding: 0 32px; }
.data > div:last-child { padding-right: 0; }
.data ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 720px) {
  .data { grid-template-columns: 1fr; }
  .data > div, .data > div + div { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .data > div:first-child { padding-top: 0; border-top: 0; }
}

/* ---- pricing ---- */
.price-scroll { overflow-x: auto; margin-inline: -20px; padding-inline: 20px; }
.price { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.price th, .price td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price th { font-weight: 600; letter-spacing: -0.01em; background: var(--bone); }
.price th.th-plain { font-weight: 400; color: var(--slate); }
.price th .amt { display: block; font-weight: 400; color: var(--slate); font-size: 0.875rem; margin-top: 2px; }
.price td:first-child { color: var(--slate); width: 28%; }
.price tr:last-child td { border-bottom: 0; }
.price tfoot td { padding: 14px; background: var(--bone); }
.price-notes { margin-top: 16px; display: grid; gap: 6px; }
.pending { display: block; margin-top: 6px; }
.demo-note { margin-top: 10px; }
@media (max-width: 720px) {
  .price-scroll { overflow: visible; margin-inline: 0; padding-inline: 0; }
  .price { min-width: 0; border: 0; background: transparent; }
  .price thead { display: none; }
  .price tbody tr, .price tfoot tr { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .price tbody tr:first-child { border-top: 1px solid var(--line); }
  .price td { display: block; padding: 0; border: 0; width: auto; }
  .price td:first-child { color: var(--ink); font-weight: 600; letter-spacing: -0.01em; width: auto; }
  .price tbody td:not(:first-child)::before, .price tfoot td::before { content: attr(data-label) ": "; color: var(--slate); }
  .price tfoot td { background: transparent; padding: 0; }
  .price tfoot td::before { display: block; margin-bottom: 4px; content: attr(data-label); }
  .price tfoot .foot-blank { display: none; }
  .price tfoot tr { border-bottom: 0; }
}

/* ---- faq ---- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; letter-spacing: -0.01em; list-style: none; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid var(--deep-slate); border-bottom: 1.5px solid var(--deep-slate); transform: rotate(45deg); flex: none; transition: transform 150ms cubic-bezier(.4,0,.2,1); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding-bottom: 16px; }

/* ---- support / footer ---- */
.support { display: grid; gap: 12px; }
.support .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
footer { border-top: 1px solid var(--line); background: var(--paper); padding: 24px 0 32px; color: var(--slate); font-size: 0.875rem; }
footer .wrap { display: grid; gap: 6px; }
footer .links { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--deep-slate); }

/* ---- long-form (privasi) ---- */
.doc { padding: 48px 0 64px; display: grid; gap: 28px; }
.doc header { display: grid; gap: 8px; }
.doc h2 { margin-top: 8px; }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; max-width: var(--measure); }
.doc table { border-collapse: collapse; width: 100%; max-width: 720px; background: var(--paper); border: 1px solid var(--line); }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--slate); font-weight: 500; font-size: 0.875rem; width: 34%; }
.doc tr:last-child td, .doc tr:last-child th { border-bottom: 0; }
