/* Mansia brand tokens, shared by mansiabots.com (public_site) and the factory Mini App (webapps/factory-app).
   Dark first: the brand is mint on near-black. Category hues colour icon tiles only, never text or buttons. */
:root {
  color-scheme: dark;
  --m-bg: #0a0a0b;
  --m-bg-raised: #0f0f12;
  --m-surface: #141418;
  --m-surface-2: #1b1b20;
  --m-line: #25252c;
  --m-line-strong: #34343c;
  --m-text: #f4f4f6;
  --m-text-2: #c8c8d0;
  --m-muted: #8d8d99;
  --m-mint: #00d4a4;
  --m-mint-hover: #2fe3b9;
  --m-mint-ink: #00140f;
  --m-mint-soft: rgba(0, 212, 164, .12);
  --m-mint-line: rgba(0, 212, 164, .32);
  --m-radius-s: 10px;
  --m-radius: 14px;
  --m-radius-l: 20px;
  --m-radius-xl: 28px;
  --m-shadow: 0 24px 48px -28px rgba(0, 0, 0, .9);
  --m-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic UI", "Noto Sans Arabic",
    Tahoma, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --m-font-head: "Mansia Kufi", var(--m-font);
  --m-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --m-cat-groups: #4f8cff;
  --m-cat-media: #f0569b;
  --m-cat-tools: #f5a524;
  --m-cat-ai: #9b7bff;
  --m-cat-business: #22c58b;
  --m-cat-social: #22b8d6;
  --m-cat-fun: #ff7a45;
  --m-cat-learn: #9ccc3d;

  /* Telegram's night theme, for the drawn chats. */
  --tg-bg: #0e1621;
  --tg-header: #17212b;
  --tg-bubble: #182533;
  --tg-key: rgba(255, 255, 255, .09);
  --tg-text: #f5f5f5;
  --tg-hint: #6d7f8f;
  --tg-link: #6ab3f3;
  --tg-accent: #5eb5f7;
}

/* Pieces mansiabots.com and the factory Mini App draw the same way: Telegram chats (public_site/chat.py on the
   site, the app's guide and template pages) and the category-coloured icon tiles. Needs tokens.css before it. */

/* Category hues and icon tiles */
.cat-groups { --c: var(--m-cat-groups); } .cat-media { --c: var(--m-cat-media); }
.cat-tools { --c: var(--m-cat-tools); } .cat-ai { --c: var(--m-cat-ai); }
.cat-business { --c: var(--m-cat-business); } .cat-social { --c: var(--m-cat-social); }
.cat-fun { --c: var(--m-cat-fun); } .cat-learn { --c: var(--m-cat-learn); }
.tile { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px;
  color: var(--c); background: rgba(255, 255, 255, .06); background: color-mix(in srgb, var(--c) 17%, var(--m-surface));
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); }
.tile .i { width: 22px; height: 22px; }
.tile-s { width: 28px; height: 28px; border-radius: 50%; }
.tile-s .i { width: 15px; height: 15px; }

/* Drawn Telegram chats */
.tg { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--tg-bg);
  border: 1px solid rgba(255, 255, 255, .05); font: 14.5px/1.45 var(--m-font); color: var(--tg-text);
  text-align: start; }
.tg-head { display: flex; align-items: center; gap: 11px; padding: 11px 14px; background: var(--tg-header); }
.tg-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #2fe3b9, #00a07c); color: var(--m-mint-ink); }
.tg-avatar-i { width: 19px; height: 19px; }
.tg-who { display: grid; min-width: 0; line-height: 1.25; }
.tg-who b { font-size: 15px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-who small { color: var(--tg-hint); font-size: 12.5px; }
.tg-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px 10px 12px;
  background-color: var(--tg-bg);
  background-image: radial-gradient(rgba(94, 181, 247, .07) 1px, transparent 1.4px),
    radial-gradient(ellipse at 20% 0%, rgba(94, 181, 247, .08), transparent 60%);
  background-size: 18px 18px, 100% 100%; }
.tg-msg { align-self: flex-start; max-width: 100%; padding: 9px 12px 10px; border-radius: 16px;
  border-end-start-radius: 5px; background: var(--tg-bubble); overflow-wrap: anywhere; }
.tg-msg b { font-weight: 650; }
.tg-msg code { font: 13px/1.4 var(--m-mono); color: #8ccff7; }
.tg-msg blockquote { margin: 6px 0; padding: 4px 10px; border-inline-start: 3px solid var(--tg-accent);
  background: rgba(94, 181, 247, .08); border-radius: 4px; }
.tg-link { color: var(--tg-link); }
.tg-keys { display: grid; gap: 4px; }
.tg-row { display: flex; gap: 4px; }
.tg-key { flex: 1 1 0; min-width: 0; display: grid; place-items: center; min-height: 38px; padding: 7px 8px;
  border-radius: 10px; background: rgba(36, 52, 70, .78); font-size: 13px; font-weight: 600; line-height: 1.25;
  text-align: center; overflow-wrap: anywhere; }
.tg-focus .tg-row:first-child .tg-key:first-child { background: rgba(0, 212, 164, .2); color: #c9fff1;
  box-shadow: 0 0 0 2px var(--m-mint); animation: ring 2.4s ease-in-out infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 2px var(--m-mint), 0 0 0 7px rgba(0, 212, 164, .14); } }

.tg-sheet { display: grid; place-items: center; padding: 26px 16px; min-height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(94, 181, 247, .12), transparent 65%), var(--tg-bg); }
.tg-sheet-card { width: 100%; max-width: 300px; display: grid; justify-items: center; gap: 10px; padding: 22px 18px;
  border-radius: 20px; background: var(--tg-header); border: 1px solid rgba(255, 255, 255, .06); }
.tg-sheet-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, #5eb5f7, #2f7fd6); color: #fff; }
.tg-sheet-icon .i { width: 30px; height: 30px; }
.tg-sheet-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.tg-field { width: 100%; display: grid; gap: 2px; padding: 9px 12px; border-radius: 12px; background: var(--tg-bg);
  font-size: 14.5px; font-weight: 600; text-align: start; overflow-wrap: anywhere; }
.tg-field small { color: var(--tg-hint); font-size: 12px; font-weight: 500; }
.tg-sheet-ok { display: grid; place-items: center; width: 46px; height: 46px; margin-top: 6px; border-radius: 50%;
  background: var(--tg-accent); color: #fff; box-shadow: 0 0 0 6px rgba(94, 181, 247, .16); }

/* mansiabots.com. Colours and fonts come from webapps/brand/tokens.css and the drawn chats and icon tiles from
   webapps/brand/components.css, both prepended at build time; the build also
   replaces /assets/site/kufi-ar-bold.b781c2d5ed.woff2 with the hashed font path. Logical properties throughout, so ar and fa mirror for free. */

@font-face {
  font-family: "Mansia Kufi";
  src: url("/assets/site/kufi-ar-bold.b781c2d5ed.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--m-bg); color: var(--m-text); font: 16px/1.6 var(--m-font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body:is(:lang(ar), :lang(fa)) { line-height: 1.8; }
[hidden] { display: none !important; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--m-font-head); font-weight: 700; letter-spacing: -.02em; }
:is(:lang(ar), :lang(fa)) :is(h1, h2, h3) { letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--m-mint); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--m-mint); color: var(--m-mint-ink); }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: 10px 14px;
  background: var(--m-mint); color: var(--m-mint-ink); border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px;
  padding: 0 20px; border-radius: 13px; border: 1px solid transparent; font-weight: 650; font-size: 15px;
  line-height: 1.2; white-space: nowrap; transition: background .18s, border-color .18s, transform .18s; }
.btn .i { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-mint { background: var(--m-mint); color: var(--m-mint-ink);
  box-shadow: 0 10px 30px -12px rgba(0, 212, 164, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-mint:hover { background: var(--m-mint-hover); }
.btn-ghost { background: var(--m-surface); border-color: var(--m-line-strong); color: var(--m-text); }
.btn-ghost:hover { border-color: var(--m-mint-line); background: var(--m-surface-2); }
.btn-s { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn-l { min-height: 54px; padding: 0 26px; font-size: 16.5px; border-radius: 15px; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(10, 10, 11, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06); }
.hdr-in { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18.5px;
  letter-spacing: -.01em; }
.logo { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--m-text-2); font-weight: 550; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--m-text); background: var(--m-surface); }
.hdr-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }

.langs { position: relative; }
.langs summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px;
  padding: 0 11px; border-radius: 11px; border: 1px solid var(--m-line); cursor: pointer; color: var(--m-text-2);
  font-size: 13.5px; font-weight: 650; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary .i { width: 17px; height: 17px; }
.langs[open] summary, .langs summary:hover { border-color: var(--m-line-strong); color: var(--m-text); }
.langs-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px;
  background: var(--m-surface-2); border: 1px solid var(--m-line-strong); border-radius: 14px;
  box-shadow: var(--m-shadow); }
.langs-list a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 15px; color: var(--m-text-2); }
.langs-list a:hover { background: var(--m-surface); color: var(--m-text); }
.langs-list a[aria-current] { color: var(--m-mint); background: var(--m-mint-soft); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 72px 84px; }
.hero::before { content: ""; position: absolute; inset: -260px -20% auto; height: 760px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 212, 164, .16), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px;
  align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.06; margin-block: 18px 18px; }
:is(:lang(ar), :lang(fa)) .hero h1 { line-height: 1.3; }
.hero-bot h1 { font-size: clamp(32px, 4.4vw, 52px); }
.lead { color: var(--m-text-2); font-size: clamp(16.5px, 1.6vw, 19px); max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 10px; border-radius: 999px;
  background: var(--m-mint-soft); border: 1px solid var(--m-mint-line); color: var(--m-mint); font-size: 13.5px;
  font-weight: 650; }
.eyebrow .i { width: 16px; height: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.actions.center { justify-content: center; }
.note { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--m-muted); font-size: 14px; }
.note .i { width: 16px; height: 16px; color: var(--m-mint); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--m-text-2); font-size: 14.5px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .i { width: 18px; height: 18px; color: var(--m-mint); }

.hero-art { position: relative; display: grid; place-items: center; min-height: 520px; }
.float { position: absolute; animation: bob 7s ease-in-out infinite; }
.float .tile { width: 58px; height: 58px; border-radius: 17px; box-shadow: var(--m-shadow);
  border: 1px solid rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.float .tile .i { width: 26px; height: 26px; }
.f1 { top: 4%; inset-inline-start: 4%; } .f2 { top: 30%; inset-inline-start: -2%; animation-delay: -2s; }
.f3 { bottom: 10%; inset-inline-start: 6%; animation-delay: -4s; } .f4 { top: 8%; inset-inline-end: 4%; animation-delay: -1s; }
.f5 { top: 46%; inset-inline-end: -2%; animation-delay: -3s; } .f6 { bottom: 4%; inset-inline-end: 12%; animation-delay: -5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.phone { position: relative; width: min(100%, 360px); padding: 9px; border-radius: 36px;
  background: linear-gradient(160deg, #23232a, #0c0c0f 60%); border: 1px solid var(--m-line-strong);
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .6), 0 0 120px -40px rgba(0, 212, 164, .35); }
.phone .tg { border-radius: 28px; min-height: 470px; }
.preview { margin: 0; display: grid; justify-items: center; gap: 16px; }
.preview figcaption { color: var(--m-muted); font-size: 14px; text-align: center; }

/* Sections */
.sec { padding-block: 84px; }
.sec-tight { padding-block: 8px 72px; }
.sec-alt { background: var(--m-bg-raised); border-block: 1px solid rgba(255, 255, 255, .05); }
.sec-head { margin-bottom: 36px; }
.sec-head.center { text-align: center; }
.sec-head.center .lead { margin-inline: auto; }
.sec-head h2 { font-size: clamp(27px, 3.3vw, 40px); line-height: 1.15; }
:is(:lang(ar), :lang(fa)) .sec-head h2 { line-height: 1.4; }
.sec-head .lead { margin-top: 12px; }
.sec-head .eyebrow { margin-bottom: 14px; }
.more { margin-top: 30px; text-align: center; }

.page-head { padding-block: 56px 36px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.12; margin-block: 14px 14px; }
:is(:lang(ar), :lang(fa)) .page-head h1 { line-height: 1.35; }
.page-head.center .lead { margin-inline: auto; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--m-muted); font-size: 14px;
  margin-bottom: 18px; }
.crumbs a:hover { color: var(--m-text); }
.crumbs [aria-current] { color: var(--m-text-2); }
.hero-bot .crumbs { margin-bottom: 22px; }
.hero-bot .eyebrow { padding: 5px 13px 5px 5px; }
.big-code { font: 800 clamp(84px, 16vw, 150px)/1 var(--m-font); letter-spacing: -.05em;
  background: linear-gradient(180deg, var(--m-mint), rgba(0, 212, 164, .1)); -webkit-background-clip: text;
  background-clip: text; color: transparent; }

/* Template cards (tiles and category hues are in webapps/brand/components.css) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.card a { height: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px;
  background: var(--m-surface); border: 1px solid var(--m-line);
  transition: border-color .18s, transform .18s, background .18s; }
.card a:hover { border-color: var(--m-mint-line); background: var(--m-surface-2); transform: translateY(-2px); }
.card-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.card-text b { font-size: 16px; font-weight: 650; line-height: 1.35; }
.card-text small { color: var(--m-muted); font-size: 13.5px; line-height: 1.5; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-go { width: 18px; height: 18px; color: var(--m-muted); transition: color .18s, transform .18s; }
.card a:hover .card-go { color: var(--m-mint); }

/* Hub filters */
.hub-tools { display: grid; gap: 16px; margin-bottom: 26px; }
.search { display: flex; align-items: center; gap: 10px; max-width: 520px; min-height: 52px; padding: 0 16px;
  border-radius: 15px; background: var(--m-surface); border: 1px solid var(--m-line-strong); color: var(--m-muted); }
.search:focus-within { border-color: var(--m-mint); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--m-text);
  font: inherit; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--m-line); background: var(--m-surface); color: var(--m-text-2); font: inherit;
  font-size: 14px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--m-line-strong); color: var(--m-text); }
.chip[aria-pressed="true"] { background: var(--m-mint); border-color: var(--m-mint); color: var(--m-mint-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.empty { padding: 40px 0; text-align: center; color: var(--m-muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: none; }
.step { display: flex; flex-direction: column; gap: 20px; padding: 22px; border-radius: 24px;
  background: var(--m-surface); border: 1px solid var(--m-line); }
.step-text h3 { font-size: 20px; margin-block: 14px 8px; }
.step-text p { color: var(--m-text-2); font-size: 15px; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: var(--m-mint-soft); border: 1px solid var(--m-mint-line); color: var(--m-mint); font-weight: 800; }
.step-shot { margin-top: auto; }
.step-shot .tg { min-height: 300px; font-size: 13.5px; }

/* Feature, owner and «why» grids */
.whys, .feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.whys-2 { grid-template-columns: repeat(2, 1fr); }
.why, .feat { padding: 24px; border-radius: 20px; background: var(--m-surface); border: 1px solid var(--m-line); }
.why h3, .feat h3 { font-size: 17.5px; margin-block: 16px 8px; line-height: 1.35; }
.why p, .feat p { color: var(--m-text-2); font-size: 15px; }
.why-i { width: 44px; height: 44px; padding: 11px; border-radius: 13px; background: var(--m-mint-soft);
  color: var(--m-mint); }
.feat-i { width: 26px; height: 26px; color: var(--m-mint); }
.split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 36px; align-items: start; }
.uses-box { position: sticky; top: 90px; padding: 26px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(0, 212, 164, .1), var(--m-surface) 55%); border: 1px solid var(--m-mint-line); }
.uses-box h2 { font-size: 21px; margin-bottom: 16px; }
.uses { display: grid; gap: 12px; }
.uses li { display: flex; gap: 10px; align-items: flex-start; color: var(--m-text-2); }
.uses .i { width: 19px; height: 19px; margin-top: 4px; color: var(--m-mint); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.qa { border-radius: 16px; background: var(--m-surface); border: 1px solid var(--m-line); }
.qa[open] { border-color: var(--m-line-strong); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; width: 10px; height: 10px; flex: none; margin-inline-end: 4px;
  border-inline-end: 2px solid var(--m-muted); border-bottom: 2px solid var(--m-muted); transform: rotate(45deg);
  transition: transform .2s; }
.qa[open] summary::after { transform: rotate(225deg); }
.qa h3 { font-size: 16.5px; line-height: 1.45; font-family: var(--m-font); font-weight: 650; letter-spacing: 0; }
.qa p { padding: 0 20px 20px; color: var(--m-text-2); font-size: 15.5px; }

/* Closing band */
.final { padding-block: 0 84px; }
.final-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 44px;
  border-radius: 28px; border: 1px solid var(--m-mint-line);
  background: radial-gradient(ellipse at 100% 0%, rgba(0, 212, 164, .22), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(79, 140, 255, .12), transparent 50%), var(--m-surface); }
.final h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; }
.final p { margin-top: 10px; color: var(--m-text-2); font-size: 17px; }
.sec-alt + .final, .sec + .final { padding-top: 0; }

/* Footer */
.ftr { border-top: 1px solid var(--m-line); padding-block: 56px 40px; background: var(--m-bg-raised); }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.ftr-brand p { margin-block: 14px 18px; color: var(--m-muted); font-size: 14.5px; max-width: 320px; }
.ftr h2 { font: 700 13px/1.4 var(--m-font); letter-spacing: .06em; text-transform: uppercase; color: var(--m-muted);
  margin-bottom: 14px; }
.ftr ul { display: grid; gap: 9px; }
.ftr li a { color: var(--m-text-2); font-size: 14.5px; }
.ftr li a:hover { color: var(--m-mint); }
.ftr-langs { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--m-line); }
.ftr-langs ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ftr-note { margin-top: 22px; color: var(--m-muted); font-size: 13px; }

/* Guides: the head lines up with the text column, beside the contents list */
.article-head .head-in { max-width: 760px; margin-inline-start: 296px; }
.article-head .lead { max-width: 720px; }
.meta { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--m-muted); font-size: 14px; }
.meta .i { width: 16px; height: 16px; }
.article-grid { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 56px; align-items: start;
  padding-bottom: 84px; }
.toc { position: sticky; top: 92px; display: grid; gap: 14px; padding: 20px; border-radius: 18px;
  background: var(--m-surface); border: 1px solid var(--m-line); }
.toc h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--m-muted); }
.toc ol { display: grid; gap: 4px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc ol a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--m-text-2); font-size: 14.5px;
  line-height: 1.45; }
.toc ol a::before { content: counter(toc); color: var(--m-mint); font-weight: 650; min-width: 1ch; }
.toc ol a:hover { background: var(--m-surface-2); color: var(--m-text); }
.toc .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; font-size: 14.5px;
  padding: 10px 12px; min-height: 46px; }
.article section + section { margin-top: 12px; }
.article h2 { font-size: clamp(23px, 2.6vw, 30px); margin-block: 32px 14px; line-height: 1.3; scroll-margin-top: 90px; }
.article section:first-child h2 { margin-top: 0; }
.article p, .article li { color: var(--m-text-2); font-size: 17px; line-height: 1.8; }
.article p + p, .article p + ul, .article ul + p { margin-top: 16px; }
.article ul { display: grid; gap: 10px; padding-inline-start: 22px; list-style: disc; }
.article li::marker { color: var(--m-mint); }
.article a.inline { color: var(--m-mint); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; }
.article a.inline:hover { text-decoration-thickness: 2px; }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.guide a { height: 100%; display: flex; gap: 16px; padding: 22px; border-radius: 20px; background: var(--m-surface);
  border: 1px solid var(--m-line); transition: border-color .18s, transform .18s, background .18s; }
.guide a:hover { border-color: var(--m-mint-line); background: var(--m-surface-2); transform: translateY(-2px); }
.guide-i { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px;
  color: var(--m-mint); background: var(--m-mint-soft); border: 1px solid var(--m-mint-line); }
.guide-i .i { width: 22px; height: 22px; }
.guide-text { display: grid; gap: 8px; align-content: start; }
.guide-text b { font-size: 18px; font-weight: 650; line-height: 1.4; }
.guide-text small { color: var(--m-muted); font-size: 14.5px; line-height: 1.6; }
.guide-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--m-mint); font-weight: 600;
  font-size: 14.5px; }
.guide-go .i { width: 16px; height: 16px; }

@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { min-height: 0; padding-block: 10px; }
  .float { display: none; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .whys, .feats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .uses-box { position: static; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 60px; }
  .toc { position: static; }
  .article-head .head-in { margin-inline-start: 0; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .hdr-in { gap: 10px; min-height: 58px; }
  .nav a:not(:first-child) { display: none; }
  .nav a { padding: 8px 10px; }
  .hdr-end .btn span { display: none; }
  .hdr-end .btn { padding: 0 11px; }
  /* touch targets of at least 44 px on phones (Chrome review 13-11) */
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .langs summary, .hdr-end .btn { min-height: 44px; }
  .langs-list a { padding-block: 12px; }
  .ftr li a, .crumbs a { display: inline-flex; align-items: center; min-height: 40px; }
  .ftr ul { gap: 2px; }
  .hero { padding-block: 40px 56px; }
  .sec { padding-block: 60px; }
  .whys, .feats, .whys-2 { grid-template-columns: 1fr; }
  .cards, .guides { grid-template-columns: 1fr; }
  .final-in { flex-direction: column; align-items: flex-start; padding: 28px; }
  .final-in .btn { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  .ftr-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
