/* MyPeribadi landing — corporate edition. DIGITALPORT INTEGRATED · TR0329492-V
   Calm and plain: one brand blue (#0550B8, the app's own), neutral greys, thin borders, no gradients on text,
   no motion. Cards 12px, buttons 10px — the same corners as the app. Light and dark follow the OS until the
   visitor uses the toggle (saved as `home_theme`). Used by index.html only; the other pages keep v14. */

@font-face { font-family: "Jakarta"; src: url("assets/fonts/PlusJakartaSans-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("assets/fonts/PlusJakartaSans-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --line: #e3e8ef;
  --line-strong: #cfd6e0;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --brand: #0550b8;
  --brand-hover: #04459c;
  --brand-ink: #0550b8;
  --brand-soft: #e9f1fc;
  --on-brand: #ffffff;
  --good: #15803d;
  --good-soft: #e8f5ec;
  --bad: #b91c1c;
  --spend: #c2410c;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.06);
  --accent-ink: var(--brand-ink);
  --r-card: 12px;
  --r-btn: 10px;
  --wrap: 1180px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1220;
  --bg-alt: #0f1729;
  --surface: #111b2e;
  --surface-2: #16223a;
  --line: #1f2b42;
  --line-strong: #2b3a57;
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --brand: #0d5fd0;
  --brand-hover: #1b6be0;
  --brand-ink: #7fabf3;
  --brand-soft: rgba(56, 120, 230, 0.14);
  --good: #4ade80;
  --good-soft: rgba(74, 222, 128, 0.12);
  --bad: #f87171;
  --spend: #fb923c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: "Jakarta", "Inter", system-ui, sans-serif; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
code.ic { font: 600 0.88em/1 ui-monospace, "SF Mono", Menlo, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.15em 0.4em; color: var(--text); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: var(--r-btn); z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r-btn); border: 1px solid transparent; font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--text-2); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--surface-2); }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }

/* ── Header ── */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(10px); }
.hdr-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { height: 44px; width: auto; }
.nav { display: none; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr-actions .btn-secondary, .hdr-actions .btn-primary { display: none; }
.menu-btn { display: inline-flex; }
@media (min-width: 640px) { .hdr-actions .btn-primary { display: inline-flex; } }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .hdr-actions .btn-secondary { display: inline-flex; }
  .menu-btn { display: none; }
}

/* ── Mobile drawer ── */
.drawer-scrim { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 60; display: none; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); background: var(--bg); border-left: 1px solid var(--line); z-index: 61; display: none; flex-direction: column; padding: 16px 20px 24px; }
body.drawer-open .drawer-scrim { display: block; }
body.drawer-open .drawer { display: flex; }
body.drawer-open { overflow: hidden; }
.drawer-hd { display: flex; align-items: center; justify-content: space-between; height: 44px; margin-bottom: 12px; }
.drawer-hd img { height: 38px; width: auto; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--text-2); }
.drawer-ft { margin-top: auto; display: grid; gap: 10px; }

/* ── Sections ── */
.sec { padding: 72px 0; }
.sec-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .sec { padding: 104px 0; } }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 12px; }
.h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 800; }
.lead { margin-top: 14px; font-size: 17px; color: var(--muted); }

/* ── Hero ── */
.hero { padding: 56px 0 64px; border-bottom: 1px solid var(--line); background: radial-gradient(1000px 380px at 80% -18%, var(--brand-soft), transparent 70%), var(--bg); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero { padding: 88px 0 96px; } .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 64px; } }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text-2); }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.hero h1 { margin-top: 20px; font-size: clamp(36px, 5.6vw, 58px); line-height: 1.06; font-weight: 800; letter-spacing: -0.025em; }
.hero h1 span { color: var(--brand-ink); }
.hero .lead { font-size: 18px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: 14.5px; color: var(--text-2); }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks svg { width: 16px; height: 16px; color: var(--good); flex: none; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); max-width: 560px; }
.kpis div { padding: 14px 16px; }
.kpis div + div { border-left: 1px solid var(--line); }
.kpis b { display: block; font: 800 22px/1.2 "Jakarta", sans-serif; }
.kpis span { font-size: 13px; color: var(--muted); }

/* ── Chat simulator (the phone) ── */
.sim { display: flex; justify-content: center; }
.phone { width: 100%; max-width: 380px; border: 1px solid var(--line-strong); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); padding: 10px; }
.phone-screen { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-alt); display: flex; flex-direction: column; height: 560px; }
.phone-hd { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.phone-hd img { width: 36px; height: 36px; border-radius: 50%; }
.who { min-width: 0; flex: 1; line-height: 1.25; }
.who b { display: block; font-size: 14.5px; }
.who span { font-size: 12px; color: var(--muted); }
.ch-switch { display: flex; padding: 3px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.ch-switch button { border: 0; background: transparent; padding: 4px 8px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.ch-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
.chat { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-day { align-self: center; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); padding: 2px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.bubble { max-width: 84%; padding: 9px 12px 6px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.bubble p { margin: 0; }
.bubble time { display: block; text-align: right; font-size: 10.5px; margin-top: 3px; opacity: 0.7; }
.bubble.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-top-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-top-right-radius: 4px; }
.bubble.hl { border-left: 3px solid var(--brand); }
.bubble.typing { display: inline-flex; gap: 4px; padding: 12px; }
.bubble.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: 0.6; }
.phone[data-channel="wa"] .bubble.me { background: #128c4a; }
.phone[data-channel="tg"] .bubble.me { background: #2a8bd1; }
.quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface); scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.composer { display: flex; gap: 8px; padding: 10px 12px 12px; background: var(--surface); }
.composer input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: var(--r-btn); border: 1px solid var(--line-strong); background: var(--bg); outline: none; font-size: 14px; }
.composer input:focus { border-color: var(--brand); }
.composer button { width: 40px; height: 40px; border-radius: var(--r-btn); border: 0; background: var(--brand); color: var(--on-brand); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.composer button svg { width: 18px; height: 18px; }
.sim-note { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ── Channel strip ── */
.strip { border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.strip-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 32px; padding: 22px 20px; }
.strip p { font-size: 14px; color: var(--muted); }
.strip-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.strip-items span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-2); font-size: 15px; }
.strip-items svg { width: 20px; height: 20px; }

/* ── Feature cards ── */
.feat-main { display: grid; gap: 20px; }
@media (min-width: 900px) { .feat-main { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.feat { overflow: hidden; display: flex; flex-direction: column; }
.feat figure { margin: 0; background: var(--surface-2); border-bottom: 1px solid var(--line); aspect-ratio: 16 / 10; overflow: hidden; }
.feat figure img { width: 100%; height: 100%; object-fit: cover; }
.feat-body { padding: 20px 22px 24px; }
.feat h3, .mini h3, .ch h3, .step h3 { font-size: 18px; font-weight: 700; }
.feat p, .mini p, .ch p, .step p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.feat .more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14.5px; color: var(--brand-ink); }
.feat-grid { display: grid; gap: 1px; margin-top: 20px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.mini { display: flex; gap: 14px; padding: 22px; background: var(--surface); }
.mini h3 { font-size: 16px; }
.mini p { font-size: 14.5px; margin-top: 4px; }
.ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-ink); }
.ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Dashboard showcase ── */
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.shot-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.points { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 768px) { .points { grid-template-columns: repeat(3, 1fr); } }
.points li { padding-left: 16px; border-left: 2px solid var(--brand); }
.points b { display: block; font-weight: 700; }
.points span { color: var(--muted); font-size: 15px; }

/* ── Channels ── */
.flow { margin: 0 0 28px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.ch-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .ch-grid { grid-template-columns: repeat(3, 1fr); } }
.ch { padding: 24px; }
.ch-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ch-logo { width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line); }
.ch-logo svg { width: 24px; height: 24px; fill: currentColor; }
.ch-grid .ch:nth-child(1) .ch-logo { color: #25d366; }
.ch-grid .ch:nth-child(2) .ch-logo { color: #229ed9; }
.ch-grid .ch:nth-child(3) .ch-logo { color: var(--brand-ink); }
.status-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--good); background: var(--good-soft); padding: 3px 10px; border-radius: 999px; }
.status-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags span { font-size: 12.5px; font-weight: 500; color: var(--text-2); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); }

/* ── Comparison table ── */
.cmp { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.cmp-row { display: grid; grid-template-columns: 1fr; }
.cmp-row + .cmp-row { border-top: 1px solid var(--line); }
.cmp-row > div { padding: 16px 20px; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.cmp-row > div + div { border-top: 1px dashed var(--line); }
@media (min-width: 768px) {
  .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-row > div + div { border-top: 0; border-left: 1px solid var(--line); }
}
.cmp-head > div { font-weight: 700; font-size: 14px; background: var(--surface-2); color: var(--text); }
.cmp-head > div:last-child { color: var(--brand-ink); }
.cmp .x, .cmp .ok { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.cmp .x { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.cmp .ok { background: var(--good-soft); color: var(--good); }
.cmp .x svg, .cmp .ok svg { width: 12px; height: 12px; }
.cmp .old { color: var(--muted); }

/* ── Steps ── */
.steps { display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { overflow: hidden; }
.step figure { margin: 0; border-bottom: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 7 / 4; overflow: hidden; }
.step figure img { width: 100%; height: 100%; object-fit: cover; }
.step-body { padding: 20px 22px 24px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 14px; margin-bottom: 12px; }

/* ── Calculator ── */
.calc { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
@media (min-width: 900px) { .calc { grid-template-columns: 1.1fr 0.9fr; } }
.calc-in { padding: 28px; display: grid; gap: 26px; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.field-row output { font: 700 16px/1 "Jakarta", sans-serif; color: var(--text); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(var(--brand), var(--brand)) 0 / var(--p, 50%) 100% no-repeat, var(--line); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); cursor: pointer; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); cursor: pointer; }
.calc-out { padding: 28px; background: var(--bg-alt); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .calc-out { border-top: 0; border-left: 1px solid var(--line); } }
.calc-out small { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.calc-big { font: 800 44px/1.1 "Jakarta", sans-serif; margin: 6px 0 18px; color: var(--good); }
.split { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line); }
.s-spend { background: var(--spend); }
.s-save { background: var(--good); }
.legend { display: flex; gap: 18px; margin-top: 10px; font-size: 14px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.calc-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ── FAQ ── */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.faq { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; font-size: 20px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }
.text-link { color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── Trust / company ── */
.about { display: grid; gap: 20px; }
@media (min-width: 900px) { .about { grid-template-columns: 1.2fr 0.8fr; } }
.about .card { padding: 28px; }
.about h2 { font-size: 22px; font-weight: 800; }
.about p { margin-top: 10px; color: var(--muted); }
.about .ico { margin-bottom: 16px; }
.link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.meta-list { margin-top: 16px; display: grid; }
.meta-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; font-weight: 600; text-align: right; }
.meta-list a { color: var(--brand-ink); }

/* ── CTA band ── */
.cta { border-radius: var(--r-card); background: #0550b8; color: #ffffff; padding: 44px 28px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta { grid-template-columns: 1fr auto; padding: 52px 56px; } }
.cta h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; color: #ffffff; }
.cta p { margin-top: 10px; color: rgba(255, 255, 255, 0.82); max-width: 560px; }
.cta .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn-light { background: #ffffff; color: #0550b8; }
.cta .btn-light:hover { background: #eef4fd; }
.cta .btn-outline { border-color: rgba(255, 255, 255, 0.5); color: #ffffff; }
.cta .btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* ── Footer ── */
.ftr { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 56px 0 28px; font-size: 14.5px; }
.ftr-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .ftr-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.ftr-brand img { height: 40px; width: auto; }
.ftr-brand p { margin-top: 12px; color: var(--muted); max-width: 320px; }
.ftr h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; font-family: "Inter", sans-serif; }
.ftr li + li { margin-top: 8px; }
.ftr li a { color: var(--muted); }
.ftr li a:hover { color: var(--text); }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.ftr-bottom .ok { display: inline-flex; align-items: center; gap: 8px; }
.ftr-bottom .ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }

/* Toast (shared script) */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--r-btn); font-size: 14px; display: none; z-index: 80; }
.toast.show { display: block; }

/* ==========================================================================
   Inner pages: Bot guide, Docs, Privacy, Terms
   ========================================================================== */
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.drawer-sep { height: 1px; background: var(--line); margin: 10px 0; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.reveal { opacity: 1; }

.page-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: var(--bg-alt); margin-bottom: 48px; }
@media (min-width: 768px) { .page-hero { padding: 72px 0 48px; } }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; max-width: 820px; }
.page-hero .lead { max-width: 660px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--brand-ink); font-weight: 500; }
.meta-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13.5px; color: var(--text-2); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }

/* Search and filter chips */
.search { position: relative; max-width: 640px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; }
.search input { width: 100%; height: 50px; padding: 0 16px 0 46px; border-radius: var(--r-btn); background: var(--surface); border: 1px solid var(--line-strong); font-size: 15px; outline: none; }
.search input:focus { border-color: var(--brand); }
.search input::placeholder { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 500; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* Command cards (bot guide) */
.cmd-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .cmd-grid { grid-template-columns: repeat(2, 1fr); } }
.cmd { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.cmd[hidden] { display: none; }
.cmd-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cmd h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.cmd p { color: var(--muted); font-size: 14.5px; }
.cmd-cat { flex: none; font-size: 12px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; }
@media (max-width: 559px) { .cmd-hd { flex-direction: column-reverse; gap: 10px; } }
.code-line { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border-radius: var(--r-btn); background: var(--surface-2); border: 1px solid var(--line); }
.code-line code { font: 600 14px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code-line code::before { content: "› "; color: var(--muted); }
.copy-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.copy-btn:hover { color: var(--text); }
.copy-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.empty { display: none; text-align: center; padding: 40px 16px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r-card); margin-top: 16px; }
.empty.show { display: block; }

/* Callout */
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r-card); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); }
.callout svg { width: 22px; height: 22px; flex: none; color: var(--brand-ink); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.callout b { display: block; margin-bottom: 4px; color: var(--text); }
.callout p { color: var(--text-2); font-size: 15px; margin: 0; }

/* Connection band (bot guide) */
.band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px 20px; }
@media (min-width: 768px) { .band { padding: 44px; } }
.band .step { padding: 22px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-card); }
.band .step h3 { margin-top: 2px; }
.band .step a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Docs hub and tester */
.hub-grid { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 640px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hub-grid { grid-template-columns: repeat(4, 1fr); } }
.hub { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.hub:hover { border-color: var(--brand); }
.hub small { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hub h3 { font-size: 16.5px; font-weight: 700; }
.hub p { color: var(--muted); font-size: 14.5px; flex: 1; }
.hub span { font-size: 14px; font-weight: 600; color: var(--brand-ink); }
.tester { margin: 0 0 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px 20px; }
@media (min-width: 768px) { .tester { padding: 32px; } }
.tester-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.tester-hd h2 { font-size: 21px; font-weight: 800; }
.tester > p { color: var(--muted); margin-bottom: 18px; }
.tester-row { display: flex; gap: 10px; flex-wrap: wrap; }
.input { flex: 1; min-width: 220px; height: 46px; padding: 0 14px; border-radius: var(--r-btn); background: var(--bg); border: 1px solid var(--line-strong); outline: none; font: 500 15px/1 ui-monospace, "SF Mono", Menlo, monospace; }
.input:focus { border-color: var(--brand); }
.input::placeholder { color: var(--muted); font-family: "Inter", sans-serif; }
.terminal { margin-top: 14px; border-radius: var(--r-btn); background: #0f172a; border: 1px solid #1e293b; padding: 16px 18px; font: 13.5px/1.7 ui-monospace, "SF Mono", Menlo, monospace; color: #e2e8f0; overflow-x: auto; }
.terminal[hidden] { display: none; }
.terminal .t-ok { color: #4ade80; font-weight: 700; }
.terminal .t-warn { color: #fbbf24; font-weight: 700; }
.terminal .t-k { color: #94a3b8; display: inline-block; min-width: 9.5em; }
.terminal .t-v { color: #93c5fd; }
.terminal .t-dim { color: #64748b; font-size: 12.5px; margin-top: 6px; word-break: break-all; }

/* Document layout: contents on the left, article on the right */
.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 96px; }
@media (min-width: 960px) { .doc { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; }
@media (min-width: 960px) { .toc { position: sticky; top: 96px; background: transparent; border: 0; padding: 0; } }
.toc h4 { font: 700 12px/1 "Inter", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 2px; }
@media (min-width: 960px) { .toc ol { border-left: 1px solid var(--line); } }
.toc a { display: block; padding: 6px 0; font-size: 14.5px; color: var(--text-2); }
@media (min-width: 960px) { .toc a { padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; } }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--brand-ink); border-left-color: var(--brand); font-weight: 600; }
.prose { max-width: 760px; }
.prose section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.prose section:last-child { border-bottom: 0; margin-bottom: 0; }
.prose section[hidden] { display: none; }
.prose h2 { font-size: 24px; font-weight: 800; margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline; }
.prose h2 .n, .n { font: 600 14px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--brand-ink); }
.prose h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.prose p { color: var(--text-2); margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { list-style: revert; padding-left: 22px; color: var(--text-2); display: grid; gap: 8px; margin-bottom: 14px; }
.prose li::marker { color: var(--brand-ink); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--brand-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.prose .callout { margin: 20px 0 0; }
.prose > .callout:first-child { margin: 0 0 36px; }
.numbered { list-style: none !important; padding: 0 !important; display: grid; gap: 16px !important; counter-reset: n; margin-top: 8px; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.numbered li::before { content: counter(n); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 13px; }
.numbered b { display: block; color: var(--text); margin-bottom: 2px; }
.table-wrap { overflow-x: auto; margin: 18px 0 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.table-wrap th { text-align: left; padding: 12px 16px; background: var(--surface-2); font-weight: 600; color: var(--text); font-size: 13.5px; }
.table-wrap td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.table-wrap td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.qa { display: grid; gap: 20px; }
.qa h3 { margin: 0 0 6px; font-size: 16.5px; }
.feedback { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding: 16px 18px; border-radius: var(--r-card); background: var(--bg-alt); border: 1px solid var(--line); }
.feedback b { font-size: 15px; }
.feedback div { display: flex; gap: 8px; }
