/* FlowForge website — palette and icons taken from the extension itself. */
@font-face {
  font-family: "FlowForgeEmoji";
  src: url("/assets/fonts/FlowForgeEmoji.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #14121f;
  --bg-2: #110f1b;
  --panel: #1c1930;
  --panel-2: #23203d;
  --border: #322c4d;
  --border-soft: #2a2542;
  --text: #f1eefc;
  --text-2: #d9d3ef;
  --dim: #a79fc7;
  --faint: #7d7599;
  --accent: #7c5cff;
  --accent-soft: #b9a4ff;
  --accent-2: #ff5c9a;
  --good: #33d17a;
  --warn: #ffb454;
  --grad: linear-gradient(90deg, var(--accent), var(--accent-2));
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-soft); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(124, 92, 255, 0.45); }
[hidden] { display: none !important; }
.emoji { font-family: "FlowForgeEmoji", "Segoe UI Emoji", "Apple Color Emoji", sans-serif; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 12px; transform: translateY(-300%); background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { transform: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
p { margin: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(20, 18, 31, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 19px; }
.brand:hover { color: var(--text); }
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { color: var(--dim); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 13px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--border); }
.header-cta { flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer;
  padding: 13px 20px; border-radius: 12px; border: 0; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 26px -10px rgba(124, 92, 255, 0.85); }
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-quiet { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn-quiet:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.yt-mark { width: 20px !important; height: 14px !important; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto 45%; height: 640px;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.24), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 40% 40% auto -10%; height: 420px;
  background: radial-gradient(closest-side, rgba(255, 92, 154, 0.10), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 13.5px; color: var(--text-2);
  background: var(--panel); border: 1px solid var(--border);
}
.hero-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: var(--dim); font-size: 18.5px; max-width: 46ch; margin: 20px 0 30px; }
.hero .fineprint { margin-top: 18px; color: var(--faint); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.hero .fineprint svg { width: 16px; height: 16px; color: var(--good); flex: none; }

.shots { position: relative; display: flex; justify-content: center; }
.shot {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85), 0 0 0 6px rgba(124, 92, 255, 0.07);
}
.shot img { width: 100%; height: auto; }
.shot-main { width: min(380px, 100%); }
.shot-float {
  position: absolute; width: 300px; left: -34px; bottom: -40px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(162, 139, 255, 0.35), 0 0 40px -6px rgba(124, 92, 255, 0.45);
}

/* ---------- sections ---------- */
.section { padding: 88px 0; border-top: 1px solid var(--border-soft); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(29px, 3.4vw, 40px); }
.section-head p { color: var(--dim); margin-top: 12px; font-size: 17.5px; }

/* modes */
.modes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.mode { display: flex; flex-direction: column; align-items: flex-start; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 22px 20px 22px; transition: border-color 0.2s, transform 0.2s; }
.mode:hover { border-color: rgba(124, 92, 255, 0.6); transform: translateY(-2px); }
.tile { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--border); margin-bottom: 18px; flex: none; }
.tile svg { width: 26px; height: 26px; }
.tile .emoji { font-size: 24px; line-height: 1; }
.mode h3 { font-size: 18px; margin-bottom: 8px; }
.mode p { color: var(--dim); font-size: 15px; line-height: 1.55; margin-bottom: 16px; }
.mode .kind { display: inline-block; margin-top: auto; padding-top: 3px; font-size: 12.5px; color: var(--accent-soft); background: rgba(124, 92, 255, 0.12); padding: 3px 9px; border-radius: 999px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 22px 20px; counter-increment: step; }
.step .tile svg { width: 30px; height: 30px; }
.step-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 6px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--dim); font-size: 15px; }

/* features */
.features { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.feature { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--border-soft); }
.feature .tile { margin: 0; }
.feature .tile svg { width: 26px; height: 26px; }
.feature .tile .line { width: 22px; height: 22px; color: var(--accent-soft); }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--dim); font-size: 15.5px; }
.langs-title { display: flex; align-items: center; gap: 8px; margin-top: 36px; font-weight: 600; color: var(--text-2); }
.langs-title .emoji { font-size: 18px; }
.langs { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.langs span { padding: 7px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); font-size: 14.5px; color: var(--text-2); }

/* trust */
.trust { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.trust-head { margin: 0; }
.trust-head .btn { margin-top: 22px; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.trust-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; color: var(--dim); font-size: 15.5px; }
.trust-list strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.trust-list .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--border); }
.trust-list .ic svg { width: 24px; height: 24px; }

/* faq */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; }
.faq details[open] { border-color: rgba(124, 92, 255, 0.5); }
.faq summary { list-style: none; cursor: pointer; padding: 17px 20px; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .answer { padding: 0 20px 18px; color: var(--dim); font-size: 15.5px; }

.faq-more { text-align: center; margin-top: 22px; color: var(--dim); font-size: 15.5px; }
.coming-soon { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px 13px; border-radius: 999px; font-size: 13.5px; color: var(--text-2); background: var(--panel); border: 1px dashed var(--border); }
.coming-soon svg { width: 16px; height: 16px; color: var(--accent-soft); }
.feature .tile .emoji { font-size: 22px; }
.feature .tile > svg { width: 24px; height: 24px; }

/* cta band */
.cta-band {
  margin: 0 0 92px; padding: 44px; border-radius: 22px; border: 1px solid var(--border);
  background: radial-gradient(120% 140% at 0% 0%, rgba(124, 92, 255, 0.24), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(255, 92, 154, 0.18), transparent 55%), var(--panel);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(25px, 3vw, 33px); }
.cta-band p { color: var(--dim); margin-top: 8px; }

/* ---------- inner pages ---------- */
.page-head { padding: 60px 0 36px; }
.page-head h1 { font-size: clamp(34px, 4.8vw, 52px); font-weight: 800; letter-spacing: -0.03em; }
.page-head p { color: var(--dim); font-size: 18px; margin-top: 12px; max-width: 62ch; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: var(--dim); font-size: 14.5px; }
.meta-row span { display: inline-flex; align-items: center; gap: 8px; }
.meta-row svg { width: 16px; height: 16px; color: var(--accent-soft); }

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 60px; padding-bottom: 104px; align-items: start; }
.toc { position: sticky; top: 90px; font-size: 14.5px; padding-inline-end: 6px; }
.toc-title { font-weight: 600; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--border); }
.toc a { display: block; padding: 6px 14px; color: var(--dim); text-decoration: none; border-inline-start: 2px solid transparent; margin-inline-start: -1px; line-height: 1.4; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-inline-start-color: var(--accent); }

.prose { max-width: 72ch; min-width: 0; }
.prose h2 { font-size: 26px; margin: 54px 0 14px; scroll-margin-top: 88px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 30px 0 10px; scroll-margin-top: 88px; }
.prose p { margin: 0 0 15px; color: var(--text-2); }
.prose ul, .prose ol { margin: 0 0 17px; padding-inline-start: 22px; color: var(--text-2); }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent-soft); }
.prose strong { color: var(--text); font-weight: 600; }
.prose code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.88em; background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.prose .ui { font-weight: 600; color: var(--text); background: rgba(124, 92, 255, 0.15); border-radius: 6px; padding: 1px 7px; }
.prose figure { margin: 6px 0 22px; }
.prose figure .shot { max-width: 380px; }
.prose figcaption { color: var(--faint); font-size: 13.5px; margin-top: 8px; }
.inline-icon { display: inline-flex; vertical-align: -5px; width: 22px; height: 22px; }
.inline-icon svg { width: 22px; height: 22px; }

.callout { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 15px 17px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border); margin: 0 0 20px; }
.callout svg { width: 20px; height: 20px; margin-top: 3px; }
.callout p:last-child { margin: 0; }
.callout.tip svg { color: var(--accent-soft); }
.callout.warn { border-color: rgba(255, 180, 84, 0.4); }
.callout.warn svg { color: var(--warn); }

.table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--border); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { text-align: start; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
th { background: var(--panel); font-weight: 600; }
td { color: var(--text-2); }
tr:last-child td { border-bottom: 0; }
.yes { color: var(--good); font-weight: 600; }
.no { color: var(--faint); }

.lang-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; color: var(--dim); font-size: 14.5px; }
.lang-bar svg { width: 18px; height: 18px; color: var(--accent-soft); }
.lang-bar select {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 34px 8px 12px; font: 500 15px var(--f-body); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a79fc7' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 16px; background-position: right 11px center;
}
[dir="rtl"] .lang-bar select { padding: 8px 12px 8px 34px; background-position: left 11px center; }
.notice { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 180, 84, 0.1); border: 1px solid rgba(255, 180, 84, 0.35); color: #ffd7a3; font-size: 15px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; padding-bottom: 104px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 26px; }
.card h2 { font-size: 21px; margin-bottom: 6px; }
.card > p { color: var(--dim); font-size: 15.5px; margin-bottom: 18px; }
.links { display: grid; gap: 10px; }
.link-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 15px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 14px;
  color: var(--text); text-decoration: none; transition: border-color 0.15s, transform 0.15s;
}
.link-row:hover { color: var(--text); border-color: var(--accent); transform: translateY(-1px); }
.link-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--bg); border: 1px solid var(--border); color: var(--accent-soft); overflow: hidden; }
.link-ic img { width: 26px; height: 26px; object-fit: contain; }
.link-ic svg { width: 20px; height: 20px; }
.link-text { flex: 1 1 auto; min-width: 0; }
.link-name { display: block; font-weight: 600; font-size: 15.5px; }
.link-desc { display: block; color: var(--dim); font-size: 13.5px; }
.link-go { color: var(--dim); font-size: 20px; line-height: 1; }
.skeleton { height: 66px; border-radius: 14px; background: linear-gradient(90deg, var(--panel-2), #2b2749, var(--panel-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.email-box { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--border); }
.email-box > svg { width: 18px; height: 18px; flex: none; color: var(--accent-soft); }
.email-box code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; color: var(--text); font-family: ui-monospace, Consolas, monospace; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tips li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--dim); font-size: 15px; }
.tips li strong { color: var(--text); font-weight: 600; }
.tips svg { width: 18px; height: 18px; color: var(--accent-soft); margin-top: 3px; }
.card + .card { margin-top: 20px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 52px 0 36px; font-size: 15px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid p { color: var(--dim); margin-top: 12px; max-width: 34ch; }
.foot-grid h2 { font: 600 14.5px/1.3 var(--f-body); color: var(--text); letter-spacing: 0; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid ul a { color: var(--dim); text-decoration: none; }
.foot-grid ul a:hover { color: var(--text); }
.foot-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; color: var(--faint); font-size: 13.5px; }
.foot-legal p { max-width: 78ch; }

/* ---------- 404 ---------- */
.nf { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 70px 0; }
.nf .tile { margin: 0 auto 22px; width: 64px; height: 64px; border-radius: 18px; }
.nf .tile svg { width: 40px; height: 40px; }
.nf h1 { font-size: clamp(32px, 4.6vw, 48px); margin-bottom: 12px; }
.nf p { color: var(--dim); margin-bottom: 26px; }
.nf .btn-row { justify-content: center; }

/* ---------- Urdu guide ---------- */
html[lang="ur"] body, html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 {
  font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", var(--f-body);
}
html[lang="ur"] .prose p, html[lang="ur"] .prose li, html[lang="ur"] td, html[lang="ur"] th { line-height: 2.2; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 { letter-spacing: 0; line-height: 1.9; }
html[lang="ur"] .page-head h1 { font-size: clamp(30px, 4.2vw, 44px); }
html[lang="ur"] .prose h2 { font-size: 24px; }
html[lang="ur"] .toc a { line-height: 2; }
.ltr { direction: ltr; unicode-bidi: isolate; font-family: var(--f-body); }
/* site chrome (header/footer) always stays English and left-to-right */
.site-header, .site-footer { direction: ltr; font-family: var(--f-body); }
.site-header h2, .site-footer h2 { font-family: var(--f-body); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 64px; }
  .shot-float { left: 0; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .mode:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; max-height: none; margin-bottom: 36px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
  .toc ol { columns: 2; column-gap: 24px; border: 0; }
  .toc a { border: 0; padding: 5px 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header .wrap { flex-wrap: wrap; gap: 6px 14px; padding: 12px 0 10px; min-height: 0; }
  .header-cta { margin-inline-start: auto; }
  .nav { order: 3; width: 100%; margin: 0 -8px; overflow-x: auto; scrollbar-width: none; }
  .hero { padding: 44px 0 70px; }
  .section { padding: 64px 0; }
  .modes, .steps, .features { grid-template-columns: 1fr; }
  .mode:last-child { grid-column: auto; }
  .features { column-gap: 0; }
  .shot-float { width: 230px; left: -6px; bottom: -34px; }
  .toc ol { columns: 1; }
  .cta-band { padding: 30px 22px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .toc, .lang-bar { display: none; }
  body { background: #fff; color: #000; }
  .doc { display: block; }
  .prose p, .prose li, td { color: #000; }
}

/* =====================================================================
   User guide components
   ===================================================================== */
.toc-group + .toc-group { margin-top: 18px; }
.toc-group-title { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-soft); margin: 0 0 8px; }
html[lang="ur"] .toc-group-title { text-transform: none; letter-spacing: 0; font-size: 13px; }

.prose .steps-list { counter-reset: s; list-style: none; padding-inline-start: 0; }
.prose .steps-list > li { counter-increment: s; position: relative; padding-inline-start: 36px; margin: 10px 0; }
.prose .steps-list > li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font: 700 12.5px/1 var(--f-body); color: #fff; background: var(--grad);
}

.opt-list { display: grid; gap: 8px; margin: 0 0 20px; }
.opt { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 12px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.opt > div > strong { display: block; color: var(--text); font-size: 15.5px; }
.opt p { margin: 3px 0 0 !important; color: var(--dim) !important; font-size: 14.5px; line-height: 1.55; }
.opt > div > p:first-child { margin-top: 1px !important; }
.opt-ic { min-width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--border); flex: none; }
.opt-ic svg, .opt-ic img { width: 20px; height: 20px; }
.opt-ic .emoji { font-size: 18px; line-height: 1; }
.opt-ic.badge-ic { font: 700 13.5px/1 var(--f-body); color: var(--accent-soft); }
.opt-ic.btn-ic { padding: 0 11px; font: 600 12.5px/1 var(--f-body); color: var(--text); white-space: nowrap; min-width: 70px; }
.opt-ic.btn-ic.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.avatar-mini { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 700 11px/1 var(--f-body); }
.voice-ic {
  display: inline-block; width: 22px; height: 18px;
  -webkit-mask: url("/assets/img/voice-mic.png") center / contain no-repeat;
  mask: url("/assets/img/voice-mic.png") center / contain no-repeat;
  background: var(--grad);
}

.mode-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; margin: 0 0 20px; }
.mode-card { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 12px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.mode-card strong { color: var(--text); font-size: 15px; }
.mode-card p { margin: 2px 0 0 !important; color: var(--dim) !important; font-size: 14px; line-height: 1.5; }
.mode-card-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--border); }
.mode-card-ic svg { width: 20px; height: 20px; }
.mode-card-ic .emoji { font-size: 18px; }

.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.status { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.status.queued { color: var(--dim); background: rgba(167, 159, 199, 0.12); }
.status.running { color: #cfc3ff; background: rgba(124, 92, 255, 0.22); }
.status.done { color: var(--good); background: rgba(51, 209, 122, 0.12); }
.status.failed { color: #ff8a8a; background: rgba(255, 92, 92, 0.12); }

.prose figure.figure-side { float: right; width: 240px; margin: 4px 0 16px 24px; }
html[dir="rtl"] .prose figure.figure-side { float: left; margin: 4px 24px 16px 0; }
.prose figure.figure-side .shot { max-width: 100%; border-radius: 14px; }
.prose h2 { clear: both; }
.prose kbd { font-family: ui-monospace, Consolas, monospace; font-size: 0.85em; background: var(--panel-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--text); }
.inline-icon svg { width: 20px; height: 20px; }

@media (max-width: 720px) {
  .prose figure.figure-side, html[dir="rtl"] .prose figure.figure-side { float: none; width: min(300px, 100%); margin: 6px auto 18px; }
  .mode-cards { grid-template-columns: 1fr; }
}

.prose code { overflow-wrap: anywhere; }

/* guide: meta chips, screenshot columns, open/close boxes */
.meta-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--text-2);
  background: var(--panel); border: 1px solid var(--border);
}
.meta-chip svg { width: 18px; height: 18px; flex: none; }
.lang-bar .emoji { font-size: 18px; line-height: 1; }

/* A section with a screenshot keeps one column width for all its rows */
.prose .has-shot { position: relative; padding-inline-end: 264px; }
.prose .has-shot > figure.figure-side { position: absolute; inset-inline-end: 0; top: 4px; float: none; width: 240px; margin: 0; }

.faq-boxes { display: grid; gap: 8px; margin: 0 0 20px; }
.faq-boxes details { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.faq-boxes details[open] { border-color: rgba(124, 92, 255, 0.5); }
.faq-boxes summary { list-style: none; cursor: pointer; padding: 13px 16px; font-weight: 600; font-size: 15.5px; color: var(--text); display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq-boxes summary::-webkit-details-marker { display: none; }
.faq-boxes summary::after { content: ""; width: 9px; height: 9px; flex: none; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s; }
.faq-boxes details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-boxes .answer { padding: 0 16px 14px; }
.faq-boxes .answer p { margin: 0 0 10px; color: var(--dim); font-size: 15px; }
.faq-boxes .answer p:last-child { margin-bottom: 0; }

@media (max-width: 1040px) {
  .toc { max-height: none; }
}
@media (max-width: 720px) {
  .prose .has-shot { padding-inline-end: 0; }
  .prose .has-shot > figure.figure-side { position: static; width: min(300px, 100%); margin: 6px auto 18px; }
}

/* legal pages: numbered contents, calmer reading width, section spacing */
.doc-legal .toc ol { counter-reset: toci; }
.doc-legal .toc li { counter-increment: toci; }
.doc-legal .toc a::before { content: counter(toci) ". "; color: var(--faint); }
.doc-legal .toc a.active::before { color: var(--accent-soft); }
.prose-legal { max-width: 68ch; }
.prose-legal h2 { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--border-soft); }
.prose-legal > h2:first-child { margin-top: 6px; padding-top: 0; border-top: 0; }
.prose-legal h3 { margin-top: 26px; }
.to-top { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.to-top a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14.5px; color: var(--dim); }
.to-top a:hover { color: var(--text); }
.to-top svg { width: 15px; height: 15px; transform: rotate(-90deg); }

/* contact page: the colourful icons sit in the same tile as elsewhere */
.tips > li > svg { width: 22px; height: 22px; margin-top: 2px; }
