/* Markooj website. Copyright (C) 2026 Ahmed Bilal and contributors. AGPL-3.0-or-later. */

@font-face {
  font-family: "Markooj Nastaliq";
  src: url("fonts/nastaliq-subset.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Markooj Naskh";
  src: url("fonts/naskh-subset.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --card: #ffffff;
  --ink: #111318;
  --ink-2: #4a4f5a;
  --ink-3: #6b7280;
  --line: rgba(17, 19, 24, .09);
  --line-2: rgba(17, 19, 24, .14);
  --accent: #0a66ff;
  --accent-ink: #0a5ce6;
  --accent-soft: rgba(10, 102, 255, .09);
  --accent-ring: rgba(10, 102, 255, .35);
  --btn-bg: #0a66ff;
  --btn-bg-hover: #0057e0;
  --btn-ink: #ffffff;
  --ghost-bg: rgba(17, 19, 24, .06);
  --ghost-bg-hover: rgba(17, 19, 24, .1);
  --nav-bg: rgba(255, 255, 255, .78);
  --shadow-win: 0 0 0 1px rgba(17, 19, 24, .08), 0 2px 6px rgba(17, 19, 24, .05), 0 30px 60px -20px rgba(17, 30, 60, .28), 0 60px 120px -40px rgba(17, 30, 60, .22);
  --shadow-card: 0 0 0 1px rgba(17, 19, 24, .06), 0 1px 2px rgba(17, 19, 24, .04), 0 12px 32px -16px rgba(17, 30, 60, .16);
  --glow-1: rgba(77, 148, 255, .20);
  --glow-2: rgba(150, 120, 255, .14);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c10;
    --bg-2: #121419;
    --card: #16181e;
    --ink: #f2f4f8;
    --ink-2: #b4bac6;
    --ink-3: #8d94a3;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --accent: #5b9dff;
    --accent-ink: #7fb2ff;
    --accent-soft: rgba(61, 139, 255, .14);
    --accent-ring: rgba(91, 157, 255, .5);
    --btn-bg: #1f6fff;
    --btn-bg-hover: #3a82ff;
    --btn-ink: #ffffff;
    --ghost-bg: rgba(255, 255, 255, .08);
    --ghost-bg-hover: rgba(255, 255, 255, .13);
    --nav-bg: rgba(11, 12, 16, .72);
    --shadow-win: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -20px rgba(0, 0, 0, .7), 0 60px 120px -40px rgba(0, 0, 0, .6);
    --shadow-card: 0 0 0 1px rgba(255, 255, 255, .07), 0 12px 32px -16px rgba(0, 0, 0, .6);
    --glow-1: rgba(61, 139, 255, .20);
    --glow-2: rgba(140, 100, 255, .14);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--mono); font-size: .88em; background: var(--ghost-bg); padding: .1em .35em; border-radius: 5px; }
b, strong { font-weight: 600; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; text-decoration: none; }

.wrap { width: min(100% - 40px, 980px); margin-inline: auto; }
.wrap-wide { width: min(100% - 40px, 1160px); margin-inline: auto; }
.center { text-align: center; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-in { width: min(100% - 40px, 1160px); margin-inline: auto; height: 56px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.nav nav { margin-left: auto; }
.nav-links { list-style: none; display: flex; gap: 26px; }
.nav-links a { color: var(--ink-2); font-size: 14.5px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 11px 18px; border-radius: 999px; border: 0;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--btn-bg-hover); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 17px; }
.btn-ghost { background: var(--ghost-bg); color: var(--ink); }
.btn-ghost:hover { background: var(--ghost-bg-hover); }
.btn .ic { width: 20px; height: 20px; stroke-width: 2; }
.nav .btn-sm { margin-left: 4px; }

/* ---------- Type ---------- */
.eyebrow { color: var(--accent-ink); font-weight: 600; font-size: 15px; letter-spacing: .01em; margin-bottom: 14px; }
h1 { font-size: clamp(44px, 7.4vw, 88px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.012em; font-weight: 650; }
.lead { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.45; color: var(--ink-2); max-width: 720px; margin: 24px auto 0; letter-spacing: -.005em; }
.sub { font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-2); max-width: 640px; margin: 18px auto 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); text-align: center; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 30% 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 30% 70%, var(--glow-1), transparent 70%),
    radial-gradient(50% 50% at 75% 65%, var(--glow-2), transparent 70%);
  filter: blur(10px);
}
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.meta { margin-top: 18px; color: var(--ink-3); font-size: 14px; }
.window.hero-shot { margin-top: clamp(48px, 7vw, 80px); }

/* a soft window frame around a screenshot */
.window {
  margin: 0; border-radius: 14px; overflow: hidden; background: var(--card);
  box-shadow: var(--shadow-win);
}
.window img { width: 100%; }
.window-bar { height: 30px; display: flex; gap: 8px; align-items: center; padding: 0 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }

/* ---------- Points ---------- */
.points { padding: clamp(40px, 6vw, 72px) 0 0; }
.point-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.point-list li { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.point-list strong { font-size: 16px; font-family: var(--font-display); letter-spacing: -.01em; }
.point-list span { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section > .wrap.center { margin-bottom: clamp(40px, 6vw, 64px); }
.tint { background: var(--bg-2); }

/* ---------- Modes ---------- */
.mode-tabs {
  display: flex; width: max-content; max-width: 100%; margin: 0 auto 28px; padding: 4px; gap: 2px;
  background: var(--ghost-bg); border-radius: 999px;
}
.mode-tabs button {
  font: inherit; font-size: 15px; font-weight: 550; color: var(--ink-2);
  background: transparent; border: 0; border-radius: 999px; padding: 9px 20px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.mode-tabs button:hover { color: var(--ink); }
.mode-tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 1px var(--line); }
.mode-note { text-align: center; color: var(--ink-2); max-width: 640px; margin: 0 auto 28px; min-height: 3.1em; }
.mode-note strong { color: var(--ink); }
.mode-panel:focus-visible { outline-offset: 8px; border-radius: 14px; }
.js .mode-panel { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Gallery ---------- */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px); }
.gallery figure { margin: 0; }
.shot {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--card);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-win); }
.shot:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 4px; border-radius: 12px; }
.gallery figcaption { margin-top: 16px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; padding-right: 8px; }
.gallery figcaption strong { color: var(--ink); display: block; font-size: 17px; font-family: var(--font-display); letter-spacing: -.01em; margin-bottom: 2px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: var(--card); border-radius: var(--radius); padding: 30px 30px 32px; box-shadow: var(--shadow-card); }
.feat-wide { grid-column: 1 / -1; }
.feat-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 18px; }
.feat h3 { margin-bottom: 14px; }
.feat > p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 20px; max-width: 820px; }
.feat ul:not(.chips) { list-style: none; display: grid; gap: 10px; }
.feat ul:not(.chips) li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.feat ul:not(.chips) li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .55; }
.feat ul li b { color: var(--ink); }
.feat ul.cols { grid-template-columns: repeat(2, 1fr); gap: 10px 32px; margin-top: 24px; }
.fmt-groups { display: grid; grid-template-columns: 1.35fr .55fr 1.25fr; gap: 28px; }
.fmt-groups h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 600; margin-bottom: 12px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.chips li { font-size: 13.5px; padding: 5px 11px; border-radius: 999px; background: var(--ghost-bg); color: var(--ink); line-height: 1.3; }
.fine { color: var(--ink-3); font-size: 13.5px; margin-top: 10px; }

/* ---------- Languages ---------- */
.langs { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lang { background: var(--card); border-radius: var(--radius); padding: 26px 24px 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.script { color: var(--ink); text-align: right; min-height: 92px; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.nastaliq { font-family: "Markooj Nastaliq", "Noto Nastaliq Urdu", serif; }
.naskh { font-family: "Markooj Naskh", "Noto Naskh Arabic", serif; }
.script.nastaliq { font-size: 30px; line-height: 2.2; }
.script.naskh { font-size: 32px; line-height: 1.6; }
.lang h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.native { font-size: 19px; font-weight: 400; color: var(--ink-3); }
.native.nastaliq { font-size: 17px; line-height: 1; }
.lang > p:last-child { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.note-card { margin-top: 20px; background: var(--card); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow-card); display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: center; }
.note-card p { color: var(--ink-2); font-size: 15.5px; max-width: 760px; }
.note-card strong { color: var(--ink); }
.note-card .links { display: flex; flex-direction: column; gap: 8px; white-space: nowrap; }
.note-card .links a { font-weight: 550; }
.note-card .links a::after { content: " →"; }
.lang-en { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; overflow: hidden; margin-bottom: 44px; }
.lang-en-sample { padding: 36px 34px; background: linear-gradient(135deg, var(--accent-soft), transparent 70%); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.en-big { font-family: var(--font-display); font-size: clamp(34px, 4vw, 48px); font-weight: 650; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.en-small { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
.lang-en-body { padding: 32px 34px 34px; }
.lang-en-body h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 16px; }
.ticks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.ticks li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .55; }
.ticks li b { color: var(--ink); }
.rtl-label { text-align: center; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; margin-bottom: 18px; }
.credit { margin: 18px auto 0; max-width: 820px; text-align: center; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.credit a { color: var(--ink-2); }

/* ---------- Add-ins ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border-radius: var(--radius); padding: 28px 28px 30px; box-shadow: var(--shadow-card); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.step p b { color: var(--ink); }

/* ---------- Download ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.dl {
  background: var(--card); border-radius: var(--radius); padding: 28px 26px 26px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: box-shadow .3s ease, transform .3s ease;
}
.dl.is-mine { box-shadow: 0 0 0 2px var(--accent), var(--shadow-card); }
.dl-head { display: flex; align-items: center; gap: 12px; }
.dl-head .os { width: 26px; height: 26px; color: var(--ink); }
.dl-head h3 { font-size: 22px; }
.badge { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.dl-req { color: var(--ink-3); font-size: 14px; margin: 6px 0 20px; }
.dl-files { display: grid; gap: 10px; }
.dl-file {
  display: flex; flex-direction: column; gap: 3px; padding: 13px 16px; border-radius: 12px;
  background: var(--ghost-bg); color: var(--ink); transition: background-color .2s ease;
}
.dl-file:hover { background: var(--ghost-bg-hover); text-decoration: none; }
.dl-file.primary { background: var(--btn-bg); color: var(--btn-ink); }
.dl-file.primary:hover { background: var(--btn-bg-hover); }
.dl-file.primary .dl-detail { opacity: .92; }
.dl-name { font-weight: 600; font-size: 15.5px; }
.dl-detail { font-size: 12.5px; opacity: .78; font-family: var(--mono); overflow-wrap: anywhere; }
.dl-tip { margin-top: auto; padding-top: 18px; color: var(--ink-3); font-size: 13.5px; line-height: 1.5; }
.dl-tip b { color: var(--ink-2); }
.dl-tip code { font-size: .92em; }
.dl-foot { text-align: center; color: var(--ink-3); font-size: 15px; margin-top: 36px; }

/* ---------- Free and private ---------- */
.pillars { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.pillars li { text-align: center; }
.pillars .ic { width: 34px; height: 34px; color: var(--accent-ink); margin: 0 auto 16px; stroke-width: 1.5; }
.pillars h3 { margin-bottom: 8px; }
.pillars p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- Support ---------- */
.support { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.support-text h2 { margin-bottom: 22px; }
.support-text p { color: var(--ink-2); font-size: 17px; }
.support-text .eyebrow { color: var(--accent-ink); font-size: 15px; }
.support-text p + p { margin-top: 14px; }
.support-ways { list-style: none; counter-reset: way; display: grid; gap: 14px; }
.support-ways li { counter-increment: way; position: relative; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-card); padding: 20px 22px 20px 64px; }
.support-ways li::before {
  content: counter(way); position: absolute; left: 20px; top: 20px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 650; background: var(--accent-soft); color: var(--accent-ink);
}
.support-ways h3 { font-size: 17px; margin-bottom: 4px; }
.support-ways p { color: var(--ink-2); font-size: 15px; }
.support-ways a { font-weight: 550; white-space: nowrap; }
.support-ways a::after { content: " →"; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--ink-3); }
.foot-in { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 650; }
.foot-brand img { border-radius: 6px; }
.foot-copy { flex: 1 1 auto; }
.foot-copy a, .foot-links a { color: var(--ink-2); }
.foot-links { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(96vw, 1500px); max-width: none; max-height: 96vh; padding: 0; border: 0; border-radius: 14px; overflow: hidden;
  background: var(--card); color: var(--ink); box-shadow: 0 40px 120px rgba(0, 0, 0, .5);
}
.lightbox::backdrop { background: rgba(8, 10, 14, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lb-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 18px; border-bottom: 1px solid var(--line); margin: 0; }
.lb-cap { flex: 1; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-cap strong { color: var(--ink); }
.lb-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: var(--ghost-bg); }
#lb-img { width: 100%; max-height: calc(96vh - 54px); object-fit: contain; background: var(--bg-2); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .shot:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .features > .feat:nth-last-child(2) { grid-column: 1 / -1; }
  .langs { grid-template-columns: repeat(2, 1fr); }
  .fmt-groups { grid-template-columns: 1fr 1fr; }
  .fmt-groups > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .point-list { grid-template-columns: repeat(2, 1fr); }
  .gallery, .features { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .support { grid-template-columns: 1fr; }
  .note-card { grid-template-columns: 1fr; }
  .lang-en { grid-template-columns: 1fr; }
  .lang-en-sample { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 24px; }
  .lang-en-body { padding: 26px 24px 28px; }
  .ticks { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feat ul.cols { grid-template-columns: 1fr; }
  .br-wide { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap, .wrap-wide, .nav-in { width: calc(100% - 32px); }
  .point-list { grid-template-columns: 1fr; gap: 20px; }
  .langs { grid-template-columns: 1fr; }
  .fmt-groups { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
  .feat { padding: 24px 20px 26px; }
  .dl { padding: 24px 20px; }
  .note-card { padding: 24px 20px; }
  .step { padding: 24px 20px 26px; }
  .cta .btn-lg { width: 100%; }
  .mode-tabs button { padding: 8px 13px; font-size: 14px; }
  .window-bar { height: 22px; padding: 0 10px; gap: 6px; }
  .window-bar i { width: 8px; height: 8px; }
  .window { border-radius: 10px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .lb-cap { display: none; }
  .lb-bar { justify-content: flex-end; }
}
