/* ZooIQ — Zoo Bangladesh brand tokens (zoobd.com mark: deep teal #102C3B → green #168568), Inter (OFL, self-hosted). */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/assets/fonts/Inter-Bold.woff2") format("woff2"); }

:root {
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", "Noto Sans", "Noto Sans Bengali", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bg: #F6F9F9; --surface: #FFFFFF; --surface-2: #EEF4F3; --text: #102C3B; --muted: #5B7280; --faint: #8FA3AD;
  --border: #DCE5E6; --border-strong: #C3D1D3;
  --primary: #102C3B; --primary-ink: #FFFFFF; --accent: #168568; --accent-soft: #DDF1E9; --accent-ink: #0F5A47;
  --link: #0F6B57; --focus: #168568;
  --public: #DCFCE7; --public-ink: #166534; --internal: #E0ECFF; --internal-ink: #1E40AF; --restricted: #FEF3C7; --restricted-ink: #92400E; --admin: #F3E8FF; --admin-ink: #6B21A8;
  --shadow: 0 1px 2px rgba(16,44,59,.06), 0 8px 24px -16px rgba(16,44,59,.25);
  --radius: 14px; --radius-sm: 9px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B151B; --surface: #111F27; --surface-2: #172932; --text: #E6EEF1; --muted: #9DB1BA; --faint: #6C838D;
    --border: #1F323B; --border-strong: #2D454F;
    --primary: #E6EEF1; --primary-ink: #0B151B; --accent: #3BB48F; --accent-soft: #11342B; --accent-ink: #9FE3CB;
    --link: #5FD0AC; --focus: #3BB48F;
    --public: #10331F; --public-ink: #86EFAC; --internal: #142448; --internal-ink: #93C5FD; --restricted: #3A2A0B; --restricted-ink: #FCD34D; --admin: #2E1A47; --admin-ink: #D8B4FE;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -18px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B151B; --surface: #111F27; --surface-2: #172932; --text: #E6EEF1; --muted: #9DB1BA; --faint: #6C838D;
  --border: #1F323B; --border-strong: #2D454F;
  --primary: #E6EEF1; --primary-ink: #0B151B; --accent: #3BB48F; --accent-soft: #11342B; --accent-ink: #9FE3CB;
  --link: #5FD0AC; --focus: #3BB48F;
  --public: #10331F; --public-ink: #86EFAC; --internal: #142448; --internal-ink: #93C5FD; --restricted: #3A2A0B; --restricted-ink: #FCD34D; --admin: #2E1A47; --admin-ink: #D8B4FE;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -18px rgba(0,0,0,.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.6; color: var(--text); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; }
h2 { font-size: 1.3rem; font-weight: 600; margin-top: 2rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin-top: 1.4rem; }
p { margin: 0 0 .9rem; }
code, pre { font-family: var(--mono); font-size: .9em; }
code { background: var(--surface-2); padding: .1em .4em; border-radius: 5px; }
pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1rem; overflow-x: auto; }
pre code { background: none; padding: 0; }
img { max-width: 100%; height: auto; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
small, .small { font-size: .86rem; } .muted { color: var(--muted); } .center { text-align: center; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
blockquote { margin: 0 0 1rem; padding: .4rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; } th, td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; } th { background: var(--surface-2); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 0 0 1rem; }
dl { margin: 0; } dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-top: .7rem; } dd { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 1.6rem; padding-bottom: 3rem; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top-inner { display: flex; align-items: center; gap: .9rem; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.15rem; color: var(--text); letter-spacing: -0.02em; } .brand b { color: var(--accent); font-weight: 700; }
.nav { display: flex; gap: .2rem; margin-left: .5rem; } .nav a { color: var(--muted); padding: .4rem .7rem; border-radius: 8px; font-weight: 500; } .nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); text-decoration: none; }
.search { display: flex; gap: .5rem; } .search input { flex: 1; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: .55rem .9rem; min-width: 0; }
.search input::placeholder { color: var(--faint); } .search input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.search.mini { margin-left: auto; width: 240px; } .search.mini button { border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); border-radius: 10px; width: 40px; cursor: pointer; }
.search.big { margin: 1.2rem 0 1rem; max-width: 760px; } .search.big input { font-size: 1.05rem; padding: .8rem 1rem; }
.icon-btn { border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; } .icon-btn:hover { color: var(--text); }
.menu { display: none; }
.user { position: relative; } .user summary { list-style: none; display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; padding: .25rem .5rem; border-radius: 10px; } .user summary::-webkit-details-marker { display: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #102C3B, #168568); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.uname { font-weight: 600; font-size: .92rem; }
.user-menu { position: absolute; right: 0; top: 110%; min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .4rem; z-index: 20; }
.user-menu p { margin: 0 0 .3rem; }
button.link { background: none; border: 0; color: var(--link); font: inherit; padding: 0; cursor: pointer; text-align: left; }

/* buttons, badges, chips */
.btn { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 600; font-size: .95rem; padding: .6rem 1.05rem; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; border-color: var(--accent); } .btn-primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); } .btn-primary:hover { opacity: .92; } .btn-sm { padding: .4rem .8rem; font-size: .88rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .03em; padding: .12rem .5rem; border-radius: 999px; vertical-align: middle; }
.badge-public { background: var(--public); color: var(--public-ink); } .badge-internal { background: var(--internal); color: var(--internal-ink); } .badge-restricted { background: var(--restricted); color: var(--restricted-ink); } .badge-admin { background: var(--admin); color: var(--admin-ink); }
.chip { display: inline-block; font-size: .8rem; padding: .18rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); vertical-align: middle; }
.chip-live { background: var(--public); color: var(--public-ink); border-color: transparent; } .chip-internal-trial, .chip-pending-setup, .chip-sso-pending { background: var(--restricted); color: var(--restricted-ink); border-color: transparent; } .chip-preparing { background: var(--internal); color: var(--internal-ink); border-color: transparent; }

/* cards & grid */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.35rem; box-shadow: var(--shadow); }
.card.narrow { max-width: 560px; margin: 2rem auto; padding: 2rem; } .card.narrow svg { width: 2rem; height: 2rem; color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.app-card { display: flex; flex-direction: column; gap: .8rem; color: var(--text); transition: transform .15s, border-color .15s; } .app-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); }
.app-card h3 { margin: 0; font-size: 1.05rem; } .app-card .host { margin: .1rem 0 .4rem; font-size: .83rem; color: var(--accent-ink); font-family: var(--mono); } .app-card p.muted { margin: 0; font-size: .9rem; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .5rem; border-top: 1px dashed var(--border); }
.app-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.05rem; color: #fff; background: linear-gradient(135deg, #102C3B, #168568); flex: none; }
.tone-teal { background: linear-gradient(135deg, #102C3B, #168568); } .tone-blue { background: linear-gradient(135deg, #1E3A8A, #2563EB); } .tone-violet { background: linear-gradient(135deg, #4C1D95, #7C3AED); } .tone-pink { background: linear-gradient(135deg, #831843, #DB2777); } .tone-green { background: linear-gradient(135deg, #14532D, #16A34A); } .tone-amber { background: linear-gradient(135deg, #78350F, #D97706); } .tone-slate { background: linear-gradient(135deg, #1F2937, #4B5563); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 2rem 0 .9rem; } .section-head h2 { margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; } .promo svg { width: 1.6rem; height: 1.6rem; color: var(--accent); } .promo h2 { margin-top: .4rem; }
.cat { margin-top: 1.8rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }

/* hero */
.hero { padding: 2.2rem 0 1rem; } .eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; margin-bottom: .6rem; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 720px; }
.stats { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 1rem; } .stats div { display: flex; flex-direction: column; } .stats b { font-size: 1.35rem; font-weight: 700; } .stats span { font-size: .8rem; color: var(--muted); }
.stats-grid .card { text-align: center; } .stats-grid b { display: block; font-size: 1.6rem; } .stats-grid span { color: var(--muted); font-size: .85rem; }

/* app page & docs */
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: .6rem; }
.app-head { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1.5rem; } .app-head .app-icon { width: 56px; height: 56px; font-size: 1.3rem; } .app-head h1 small { font-size: .55em; font-weight: 400; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; align-items: start; }
.side { position: sticky; top: 76px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; font-size: .93rem; } .side h3 { margin-top: 0; font-size: .95rem; } .side h3 + dl dt:first-child { margin-top: 0; }
.toc ul { list-style: none; padding: 0; margin: 0; } .toc li { margin: .25rem 0; } .toc .lvl3 { padding-left: .9rem; font-size: .88rem; } .toc a { color: var(--muted); } .toc a:hover { color: var(--text); }
.features li, .doclist li { margin: .35rem 0; } .doclist { list-style: none; padding: 0; } .doclist li { padding: .55rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); } .doclist li a { font-weight: 600; } .doclist p { margin: .15rem 0 0; }
.docgroup h2 { font-size: 1.1rem; margin-top: 1.6rem; }
.shot { margin: 0 0 1.5rem; } .shot img { border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); } .shot figcaption { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.hint { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .9rem; font-size: .92rem; }
.doc header { margin-bottom: 1.2rem; } .doc h2 { padding-top: .4rem; } .doc-foot { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border); } .doc-foot h2 { font-size: 1rem; margin-top: 1rem; }
.sources { padding-left: 1.2rem; } .sources li { margin: .25rem 0; word-break: break-word; }

/* search, ask */
.results { list-style: none; padding: 0; } .results li { padding: .9rem 0; border-bottom: 1px solid var(--border); } .results p { margin: .3rem 0 0; color: var(--muted); font-size: .93rem; } mark { background: var(--accent-soft); color: var(--accent-ink); border-radius: 3px; padding: 0 .1em; }
.answer { margin-top: 1.5rem; } .answer-text { font-size: 1.05rem; } .answer sup a { font-size: .75rem; }

/* footer */
.foot { border-top: 1px solid var(--border); background: var(--surface); font-size: .85rem; color: var(--muted); } .foot-inner { display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; padding: 1.2rem 16px; }

@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; } .side { position: static; } .toc { order: -1; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .top-inner { height: auto; min-height: 56px; flex-wrap: wrap; padding: .5rem 16px; gap: .5rem; }
  .brand { margin-right: auto; } .menu { display: inline-flex; order: 3; }
  .nav { display: none; width: 100%; flex-direction: column; order: 5; padding-bottom: .5rem; } .nav.open { display: flex; }
  .search.mini { width: 100%; order: 4; margin: 0; }
  .user .uname { display: none; }
  .search.big { flex-direction: column; } .search.big .btn { justify-content: center; }
  .app-head { flex-direction: column; } .stats { gap: 1.1rem; }
  body { font-size: 15px; }
}
