/* Awraq PDF website. No scripts, no outside fonts, light and dark, left-to-right and right-to-left. */

:root {
  color-scheme: light dark;
  --brand: #0F766E;
  --brand-strong: #0A5A54;
  --brand-bright: #14897F;
  --link: #0B6A62;
  --tint: #E4F3F0;
  --mint: #A9E4DB;
  --bg: #FFFFFF;
  --bg-soft: #F3F8F7;
  --card: #FFFFFF;
  --text: #10201E;
  --muted: #4D5F5C;
  --line: #D9E5E2;
  --shadow: 0 1px 2px rgba(16, 32, 30, .06), 0 12px 32px rgba(16, 32, 30, .10);
  --radius: 14px;
  --wrap: 1250px;
  --bad: #B23535;
  --art-flow: #0F766E;
}

@media (prefers-color-scheme: dark) {
  :root {
    --link: #6FD6CA;
    --tint: #143531;
    --bg: #0D1615;
    --bg-soft: #111D1B;
    --card: #16231F;
    --text: #E7F0EE;
    --muted: #A3B5B1;
    --line: #263936;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .45);
    --bad: #F08A8A;
    --art-flow: #3DBBAE;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  /* A short page still ends with the footer at the window's bottom. */
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

:lang(ar) body, body:lang(ar) {
  font-family: "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, system-ui, sans-serif;
  line-height: 1.85;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.015em; font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.muted { color: var(--muted); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 20;
}
.skip:focus { top: 12px; }

/* Header */

.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.logo img { width: 36px; height: 36px; }
.logo .wordmark { letter-spacing: -.01em; }
.logo .wordmark b { font-weight: inherit; color: var(--link); }
.nav { display: flex; gap: 24px; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .97rem; }
.nav a:hover { color: var(--text); }
.top .actions { display: flex; align-items: center; gap: 10px; }
/* The language link: a globe and the name of the page's own language (langLabel); it leads to the other one. */
.lang {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 600; letter-spacing: .02em;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
}
.lang svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.lang:hover { border-color: var(--brand); }
:lang(ar) .lang { letter-spacing: 0; font-size: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 600;
  padding: 13px 24px; border-radius: 12px; border: 1px solid transparent;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-strong); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.small { padding: 8px 16px; border-radius: 999px; font-size: .95rem; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); background: transparent; }
.btn.big { padding: 16px 30px; font-size: 1.08rem; }

/* Hero */

.hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding-block: 56px 0;
  background:
    radial-gradient(700px 380px at 18% 0%, color-mix(in srgb, #17998E 16%, transparent), transparent 70%),
    radial-gradient(640px 360px at 85% 8%, color-mix(in srgb, #6FD6CA 22%, transparent), transparent 70%),
    radial-gradient(1000px 520px at 50% -120px, var(--tint), transparent 72%);
}
/* A faint grid behind the words, fading out towards the edges. */
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 620px; z-index: -1;
  background-image:
    linear-gradient(color-mix(in srgb, var(--brand) 9%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--brand) 9%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 20%, transparent 75%);
}
/* The pill above the title: what the newest version brings, leading to What's new. */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 5px 12px 5px 5px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
  background: color-mix(in srgb, var(--card) 80%, transparent); backdrop-filter: blur(6px);
  color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500;
  box-shadow: 0 1px 2px rgba(16, 32, 30, .05), 0 6px 18px rgba(15, 118, 110, .10);
  transition: border-color .2s, box-shadow .2s;
}
:dir(rtl) .hero-badge, [dir="rtl"] .hero-badge { padding: 5px 5px 5px 12px; }
.hero-badge:hover { border-color: var(--brand); box-shadow: 0 1px 2px rgba(16, 32, 30, .05), 0 10px 24px rgba(15, 118, 110, .18); }
.hero-badge-tag {
  padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  color: #fff; background: linear-gradient(135deg, #17998E, #0A5A54);
}
:lang(ar) .hero-badge-tag { letter-spacing: 0; }
.hero-badge svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
[dir="rtl"] .hero-badge svg { transform: scaleX(-1); }
.hero h1 { max-width: 17ch; margin-inline: auto; font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -.025em; }
:lang(ar) .hero h1 { max-width: 20ch; letter-spacing: 0; }
.hero h1 .grad {
  background: linear-gradient(100deg, #0F766E 10%, #17998E 50%, #3DBBAE 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) {
  .hero h1 .grad { background-image: linear-gradient(100deg, #3DBBAE 10%, #6FD6CA 60%, #A9E4DB 100%); }
}
.hero .lead { max-width: 60ch; margin: 20px auto 0; font-size: 1.2rem; color: var(--muted); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.hero .cta .btn:not(.ghost) { box-shadow: 0 10px 24px rgba(15, 118, 110, .28), inset 0 1px 0 rgba(255, 255, 255, .18); }
.hero .cta .btn.ghost { background: color-mix(in srgb, var(--card) 70%, transparent); }
.hero .note { margin-top: 16px; font-size: .93rem; color: var(--muted); }
.shot {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #fff;
}
/* The screenshot in a glassy frame, with a glow of the brand's colours behind it and two chips over its corners. */
.hero-stage { position: relative; margin: 54px auto 0; max-width: 1180px; }
.hero-stage::before {
  content: ""; position: absolute; inset: 8% 6% -4%; z-index: -1; border-radius: 40px;
  background: linear-gradient(120deg, #17998E, #6FD6CA 50%, #6C8AE4);
  filter: blur(60px); opacity: .32;
}
.hero-frame {
  padding: 10px; border-radius: 22px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--card) 85%, transparent), color-mix(in srgb, var(--card) 55%, transparent));
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  box-shadow: 0 30px 80px rgba(11, 46, 42, .22), 0 2px 6px rgba(11, 46, 42, .06);
  backdrop-filter: blur(10px);
}
.hero-frame .shot { border-radius: 14px; box-shadow: none; }
.hero-frame .shot img { display: block; width: 100%; height: auto; }
.hero-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 14px; font-size: .92rem; font-weight: 600; color: var(--text);
  background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(11, 46, 42, .18); backdrop-filter: blur(8px); white-space: nowrap;
}
.hero-chip svg { width: 20px; height: 20px; flex: none; color: var(--brand); fill: currentColor; }
.hero-chip-a svg { fill: none; stroke: currentColor; }
.hero-chip-a { inset-inline-start: -16px; bottom: 16%; }
.hero-chip-b { inset-inline-end: -16px; top: 12%; }

/* Sections */

section { padding-block: 84px; }
.head { max-width: 62ch; margin-bottom: 38px; }
.head p { margin-top: 12px; color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0; list-style: none; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--link);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; fill: currentColor; }
.card p { margin-top: 8px; color: var(--muted); font-size: .98rem; }

.soft { background: var(--bg-soft); border-block: 1px solid var(--line); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.split p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

/* Privacy band */

.band {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-strong));
  color: #fff;
}
.band .head p { color: rgba(255, 255, 255, .86); }
.band .grid { gap: 16px; }
.band .card { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .22); }
.band .card p { color: rgba(255, 255, 255, .88); }
.band .card h3 { display: flex; align-items: center; gap: 10px; }
.band .card h3 svg { width: 22px; height: 22px; flex: none; stroke: var(--mint); }
.band .more { display: inline-block; margin-top: 28px; color: #fff; font-weight: 600; }

/* Planned */

.planned { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0; margin: 0; list-style: none; }
.planned li {
  border: 1px dashed var(--line); border-radius: 12px; padding: 14px 18px; color: var(--muted);
  border-color: color-mix(in srgb, var(--muted) 45%, transparent);
}
.planned li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Download */

.download { text-align: center; }
.dl-head img { width: 72px; height: 72px; margin: 0 auto 18px; }
.dl-head p { margin-top: 12px; color: var(--muted); }
/* One card per system, four in a row: the two that are out, then the two that are not (a badge where the button would be). */
.platforms {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch;
  margin: 38px 0 0;
}
.platform {
  display: flex; flex-direction: column; align-items: center; min-width: 0;
  border-radius: 20px; padding: 30px 22px 26px; box-shadow: var(--shadow);
}
.platform .ico { width: 60px; height: 60px; border-radius: 17px; margin-bottom: 16px; }
.platform .ico svg { width: 32px; height: 32px; fill: currentColor; }
.platform h3 { font-size: 1.3rem; }
.platform > p { margin-top: 10px; max-width: 44ch; font-size: .95rem; }
.platform .btns { display: flex; flex-direction: column; align-self: stretch; align-items: stretch; gap: 10px; margin-block: 22px 22px; }
.platform .btns .btn { padding: 13px 14px; font-size: 1rem; }
.platform .check { align-self: stretch; margin-top: auto; min-width: 0; padding-top: 0; }
/* The checksums open on a click, so the four cards stay short. */
.check summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 2px 0; font-weight: 600; color: var(--link);
}
.check summary::-webkit-details-marker { display: none; }
.check summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-inline-end: 4px; margin-top: -4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s;
}
.check[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.check[open] summary { margin-bottom: 16px; }
.platform .check pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.platform.soon {
  box-shadow: none; border-style: dashed;
  border-color: color-mix(in srgb, var(--muted) 40%, transparent); background: color-mix(in srgb, var(--card) 70%, transparent);
}
.platform.soon .ico { color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); }
.platform.soon .btns { align-items: center; margin-bottom: 0; }
.soon-badge {
  font-size: .88rem; font-weight: 700; letter-spacing: .02em; line-height: 1.5; padding: 9px 20px; border-radius: 12px;
  color: var(--link); background: var(--tint); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
}
:lang(ar) .soon-badge { letter-spacing: 0; }
.download .small { font-size: .93rem; color: var(--muted); }
.download .licence { margin-top: 28px; }
.check {
  padding-top: 24px; border-top: 1px solid var(--line); text-align: start;
  font-size: .93rem; color: var(--muted);
}
.check strong { color: var(--text); font-weight: 600; }
code, pre { font-family: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace; font-size: .86rem; }
.check code.sum { display: block; margin-top: 6px; overflow-wrap: anywhere; color: var(--text); }
:lang(ar) .check code.sum { text-align: right; }
.check pre {
  margin: 8px 0 0; padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; overflow-x: auto; color: var(--text); text-align: left;
}
.check p + p { margin-top: 14px; }

/* Questions */

/* Two columns on the home page: the heading, a few words and a contact card on one side
   (kept in view while the questions scroll), the questions as cards on the other. */
.faq-layout { display: grid; grid-template-columns: 5fr 8fr; gap: 56px; align-items: start; }
.faq-intro { position: sticky; top: 96px; }
.faq-intro h2 { margin: 0 0 14px; }
.faq-intro > p { color: var(--muted); margin: 0 0 28px; max-width: 40ch; }
.faq-contact {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--tint), var(--bg-soft)); border: 1px solid var(--line);
}
.faq-contact-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #17998E, #0A5A54); box-shadow: 0 6px 16px rgba(15, 118, 110, .28);
}
.faq-contact-icon svg { width: 22px; height: 22px; fill: #fff; }
.faq-contact div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.faq-contact strong { font-size: 1.02rem; }
.faq-contact span { color: var(--muted); font-size: .95rem; }
.faq-contact a { color: var(--link); font-weight: 600; margin-top: 4px; overflow-wrap: anywhere; }

.faq { max-width: 860px; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.faq details:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.faq details[open] {
  border-color: var(--brand); box-shadow: var(--shadow);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 55%, var(--card)), var(--card) 70%);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; font-size: 1.04rem;
  display: flex; align-items: center; gap: 16px; border-radius: var(--radius);
}
.faq summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-n { flex: none; font-size: .82rem; font-weight: 700; color: var(--brand-bright); font-variant-numeric: tabular-nums; letter-spacing: .04em; min-width: 22px; }
.faq-q { flex: 1; }
/* A plus in a ring; open, it turns a quarter and an eighth into a cross on the brand's colour. */
.faq-x {
  flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-soft); transition: transform .25s, background .2s, border-color .2s;
}
.faq-x::before, .faq-x::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 1px;
  background: var(--brand); transform: translate(-50%, -50%);
}
.faq-x::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq-x { transform: rotate(135deg); background: var(--brand); border-color: var(--brand); }
.faq details[open] .faq-x::before, .faq details[open] .faq-x::after { background: #fff; }
.faq details p { margin: 0; padding-block: 0 22px; padding-inline: 58px 20px; color: var(--muted); max-width: 72ch; line-height: 1.7; }

/* Footer */

main { flex: 1 0 auto; }

/* Footer: a deep teal panel in light and dark alike, with a thin line of the brand's colours on top. */
.foot {
  position: relative; overflow: hidden; margin-top: 0;
  background:
    radial-gradient(900px 340px at 12% -10%, rgba(23, 153, 142, .30), transparent 70%),
    radial-gradient(700px 300px at 100% 120%, rgba(111, 214, 202, .10), transparent 70%),
    linear-gradient(170deg, #0C2E2A 0%, #071B19 100%);
  color: #B9CCC8; font-size: .95rem;
}
.foot::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, #0F766E, #6FD6CA 50%, #0F766E);
}
.foot-main { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 40px 56px; padding-block: 68px 44px; }
.foot .logo { color: #fff; font-size: 1.25rem; }
.foot .logo img { width: 40px; height: 40px; }
.foot .logo .wordmark b { color: #6FD6CA; }
.foot-brand p { margin: 16px 0 22px; max-width: 34ch; line-height: 1.6; color: #B9CCC8; }
.foot-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.foot-actions .btn { background: #14897F; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.foot-actions .btn:hover { background: #17998E; }
.foot .lang { color: #E7F0EE; border-color: rgba(255, 255, 255, .22); }
.foot .lang:hover { border-color: #6FD6CA; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col h2 {
  margin: 6px 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6FD6CA;
}
:lang(ar) .foot-col h2 { letter-spacing: 0; text-transform: none; font-size: .92rem; }
.foot-col a { color: #D3E2DF; text-decoration: none; width: fit-content; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.foot-col a:hover { color: #fff; border-bottom-color: #6FD6CA; }
.foot-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px;
  padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .10); font-size: .9rem;
}
.foot-bar p { margin: 0; }
.foot-promise { color: #6FD6CA; font-weight: 600; letter-spacing: .02em; }
:lang(ar) .foot-promise { letter-spacing: 0; }
.foot .fine { margin: 0; padding-bottom: 30px; font-size: .78rem; line-height: 1.65; color: #7D9692; max-width: 110ch; }

/* Text pages (privacy, licence, notices) */

.doc { padding-block: 52px 84px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc .intro { margin-top: 12px; color: var(--muted); font-size: 1.08rem; }
.doc .jump { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.doc article { margin-top: 46px; padding-top: 38px; border-top: 1px solid var(--line); }
.doc article h2 { font-size: 1.55rem; }
.doc article h3 { font-size: 1.1rem; margin-top: 34px; }
.doc article p, .doc article ul { margin-top: 14px; }
.doc article ul { padding-inline-start: 22px; }
.doc article ul.plain { list-style: none; padding-inline-start: 16px; }
.doc article li + li { margin-top: 8px; }
.doc article .meta { color: var(--muted); font-size: .95rem; }
.doc article.ltr { direction: ltr; text-align: left; }
.doc .back { display: inline-block; margin-top: 48px; }
.doc.center { text-align: center; padding-block: 120px; }
.doc.center .btn { margin-top: 28px; }

/* Numbers under the hero */

.stats { padding-block: 52px 0; }
.stats ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stats li { padding: 8px 12px; }
.stats li + li { border-inline-start: 1px solid var(--line); }
.stats strong { display: block; font-size: 2.3rem; line-height: 1.15; font-weight: 700; color: var(--link); }
.stats span { display: block; margin-top: 6px; color: var(--muted); font-size: .95rem; }

/* Cards that are links, and "read the guide" links */

.grid > li { display: flex; }
.grid > li > a.card { flex: 1; display: block; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.grid > li > a.card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.grid > li.card { display: block; }
.more-link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: .98rem; }

/* Feature and guide cards: the sign beside the name, the words under them, and a link with a small arrow. */
.grid > li.feature, .grid > li > a.feature {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; align-content: start;
  padding: 22px; border-radius: 16px;
  background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--bg-soft) 55%, var(--card)));
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.grid > li.feature:hover, .grid > li > a.feature:hover {
  border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px);
}
.feature .ico {
  width: 44px; height: 44px; margin: 0; border-radius: 13px; color: #fff;
  background: linear-gradient(145deg, var(--brand-bright), var(--brand-strong)); box-shadow: 0 6px 14px rgba(15, 118, 110, .24);
}
.feature .ico svg { width: 23px; height: 23px; }
.feature h3 { font-size: 1.08rem; }
.feature p { grid-column: 1 / -1; margin-top: 14px; font-size: .95rem; line-height: 1.55; }
.feature .more-link {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px; font-size: .92rem; text-decoration: none;
}
.feature .more-link::after {
  content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-inline-end: 2px solid currentColor;
  transform: rotate(45deg); transition: translate .15s;
}
:lang(ar) .feature .more-link::after { transform: rotate(-45deg); }
.feature .more-link:hover::after { translate: 3px 0; }
:lang(ar) .feature .more-link:hover::after { translate: -3px 0; }

/* Illustrations */

/* Nothing lies behind a drawing; the shadows of its sheets may reach past its box. */
.art { width: 100%; height: auto; display: block; overflow: visible; }
/* Lines drawn on the page itself (arrows, joining lines) follow light and dark. */
.art-flow { stroke: var(--art-flow); }
.art-flowfill { fill: var(--art-flow); }

/* A drawing inside a small window whose top is the program's real ribbon tab (a screenshot).
   The ribbon is cut off at its far end, so it fades out there. */
.tabart {
  margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--bg-soft); box-shadow: var(--shadow);
}
.tabart-bar { position: relative; background: #fff; border-bottom: 1px solid var(--line); }
.tabart-bar img { display: block; width: 100%; height: auto; }
.tabart-bar::after {
  content: ""; position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 12%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
}
:lang(ar) .tabart-bar::after { background: linear-gradient(to left, rgba(255, 255, 255, 0), #fff); }
.tabart-body { padding: 14px 22px 10px; }

/* Picture-and-text rows */

.rows { padding-top: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.row + .row { margin-top: 92px; }
.row:nth-child(even) .row-art { order: -1; }
.row-text p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
.ticks li { position: relative; padding-inline-start: 32px; margin-top: 10px; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 6px; top: .28em; width: 7px; height: 13px;
  border: solid var(--link); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* Gallery */

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 0; margin: 0; list-style: none; }
.gallery li {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 32, 30, .05), 0 14px 36px rgba(16, 32, 30, .08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gallery li:hover {
  transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  box-shadow: 0 2px 4px rgba(16, 32, 30, .06), 0 24px 54px rgba(15, 118, 110, .16);
}
.gallery figure { margin: 0; display: flex; flex-direction: column; height: 100%; }
/* The stage: a soft wash of colour, a different one for each card, with the screenshot standing on its lower edge. */
.gal-stage {
  --wash: #17998E;
  position: relative; padding: 30px 30px 0;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--wash) 22%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--wash) 9%, var(--bg-soft)), var(--bg-soft));
  border-bottom: 1px solid var(--line);
}
.gallery li:nth-child(2) .gal-stage { --wash: #6C8AE4; }
.gallery li:nth-child(3) .gal-stage { --wash: #E9B44C; }
.gallery li:nth-child(4) .gal-stage { --wash: #1E9E6A; }
.gal-shot {
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); border-bottom: 0;
  border-radius: 12px 12px 0 0; overflow: hidden; background: #fff;
  box-shadow: 0 -2px 0 rgba(255, 255, 255, .6) inset, 0 18px 40px rgba(16, 32, 30, .18);
  transition: transform .35s ease;
  transform-origin: 50% 100%;
}
.gal-shot img { display: block; width: 100%; height: auto; }
.gallery li:hover .gal-shot { transform: scale(1.015); }
.gallery figcaption { display: flex; gap: 16px; align-items: flex-start; padding: 22px 26px 26px; }
.gal-icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #17998E, #0A5A54); box-shadow: 0 6px 14px rgba(15, 118, 110, .25);
}
.gal-icon svg { width: 22px; height: 22px; fill: #fff; }
.gal-words strong { display: block; font-size: 1.1rem; }
.gal-words span { display: block; margin-top: 4px; color: var(--muted); font-size: .97rem; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .gallery li, .gal-shot { transition: none; } .gallery li:hover, .gallery li:hover .gal-shot { transform: none; } }

/* Linux */

.linux .row + .row { margin-top: 64px; align-items: start; }
.dl { display: grid; gap: 16px; }
.dl .card p { margin-top: 6px; }
.dl pre {
  margin: 12px 0 0; padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; overflow-x: auto; color: var(--text); text-align: left;
}
.dl .more-link { margin-top: 12px; }
.dl .note { margin-top: 4px; font-size: .93rem; color: var(--muted); }

/* Three steps */

.steps3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps3 li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps3 li::before {
  content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 16px;
}
.steps3 p { margin-top: 8px; color: var(--muted); font-size: .98rem; }

/* Where the document goes */

.flow { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: stretch; }
.flow-col {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px 18px;
  box-shadow: 0 1px 2px rgba(16, 32, 30, .04), 0 10px 28px rgba(16, 32, 30, .06);
}
/* A thin line of colour along each card's top: muted red for the online tool, the brand's teal for Awraq PDF. */
.flow-col::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; }
.flow-col.bad::before { background: linear-gradient(90deg, color-mix(in srgb, var(--bad) 65%, var(--card)), color-mix(in srgb, var(--bad) 20%, var(--card))); }
.flow-col.good::before { background: linear-gradient(90deg, #0F766E, #6FD6CA); }
.flow-col.good {
  border-color: color-mix(in srgb, var(--brand) 50%, var(--line));
  background: linear-gradient(165deg, color-mix(in srgb, var(--tint) 85%, var(--card)), var(--card) 62%);
  box-shadow: 0 1px 2px rgba(15, 118, 110, .08), 0 18px 40px rgba(15, 118, 110, .16);
}
/* The disc between the two cards. */
.flow-vs {
  position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
:lang(ar) .flow-vs { letter-spacing: 0; text-transform: none; font-size: .78rem; font-weight: 700; }
.flow-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.flow-col.good .flow-top { border-bottom-color: color-mix(in srgb, var(--brand) 22%, var(--line)); }
.flow-top h3 { margin: 0; font-size: 1.08rem; }
.flow-sign {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted);
}
.flow-sign svg { width: 21px; height: 21px; }
.flow-sign img { display: block; width: 26px; height: 26px; }
.flow-col.good .flow-sign { background: #fff; border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }

/* The steps: a sign on a rail, the words beside it. Rows touch, so the steps away from the computer form one framed zone. */
.flow-steps { list-style: none; padding: 0; margin: 14px 0 16px; display: flex; flex-direction: column; }
.flow-steps li {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 7px 12px;
  border: 1px solid transparent; font-weight: 600; font-size: .97rem;
}
.flow-dot {
  position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
}
.flow-dot svg { width: 18px; height: 18px; }
.flow-steps li + li::before {
  content: ""; position: absolute; top: -9px; height: 18px; inset-inline-start: 30px;
  border-inline-start: 2px solid color-mix(in srgb, var(--muted) 35%, var(--line));
}
.flow-col.good .flow-dot {
  background: linear-gradient(145deg, var(--brand-bright), var(--brand-strong)); border-color: transparent; color: #fff;
  box-shadow: 0 5px 12px rgba(15, 118, 110, .26);
}
/* The good card's steps spread over the card's height, so its rail is one line behind the signs. */
.flow-col.good .flow-steps { position: relative; flex: 1; justify-content: space-around; }
.flow-col.good .flow-steps::before {
  content: ""; position: absolute; top: 30px; bottom: 30px; inset-inline-start: 30px;
  border-inline-start: 2px solid color-mix(in srgb, var(--brand) 55%, var(--line));
}
.flow-col.good .flow-steps li + li::before { display: none; }

.flow-steps li.away {
  color: var(--bad); background: color-mix(in srgb, var(--bad) 6%, var(--card));
  border-inline: 1px dashed color-mix(in srgb, var(--bad) 55%, var(--card));
}
.flow-steps li.away-first { border-top: 1px dashed color-mix(in srgb, var(--bad) 55%, var(--card)); border-start-start-radius: 12px; border-start-end-radius: 12px; margin-top: 12px; padding-top: 11px; }
.flow-steps li.away-last { border-bottom: 1px dashed color-mix(in srgb, var(--bad) 55%, var(--card)); border-end-start-radius: 12px; border-end-end-radius: 12px; margin-bottom: 6px; padding-bottom: 9px; }
.flow-steps li.away .flow-dot { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, var(--card)); background: color-mix(in srgb, var(--bad) 10%, var(--card)); }
.flow-steps li.away::before, .flow-steps li.away + li::before { border-inline-start: 2px dashed color-mix(in srgb, var(--bad) 70%, var(--card)); }
.flow-steps li.away-first::before { top: -23px; height: 34px; }
.flow-steps li.away-last + li::before { top: -17px; height: 26px; }
.flow-zone {
  position: absolute; top: -11px; inset-inline-end: 14px; padding: 1px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em; line-height: 1.5; white-space: nowrap;
  color: var(--bad); background: var(--card); border: 1px solid color-mix(in srgb, var(--bad) 45%, var(--card));
}
:lang(ar) .flow-zone { letter-spacing: 0; }

.flow-note {
  display: flex; align-items: flex-start; gap: 10px; margin: auto 0 0; padding: 12px 14px;
  font-size: .92rem; color: var(--muted); border-radius: 12px; background: var(--bg-soft);
}
.flow-note svg { flex: none; width: 19px; height: 19px; margin-top: 2px; }
.flow-col.bad .flow-note { background: color-mix(in srgb, var(--bad) 5%, var(--card)); }
.flow-col.bad .flow-note svg { color: var(--bad); }
.flow-col.good .flow-note { color: var(--link); font-weight: 600; background: color-mix(in srgb, var(--tint) 80%, var(--card)); }

/* Guide pages */

.guide { padding-block: 28px 76px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.guide-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 32px; }
.guide-head h1, .guides-top h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.guide .lead { margin-top: 18px; font-size: 1.15rem; color: var(--muted); }
.guide-head .cta { margin-top: 28px; }
.guide-head .note { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.guides-top { max-width: 62ch; margin-block: 32px 40px; }
.guide-body { max-width: 780px; margin-top: 66px; }
.guide-body h2 { font-size: 1.6rem; margin-top: 52px; }
.guide-body h2:first-child { margin-top: 0; }
.steps { list-style: none; padding: 0; margin: 26px 0 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-inline-start: 62px; padding-bottom: 28px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: -4px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tint); color: var(--link); font-weight: 700;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 19px; top: 44px; bottom: 8px; width: 2px; background: var(--line);
}
.steps p { margin-top: 6px; color: var(--muted); }
.notes {
  margin: 22px 0 0; padding-block: 22px; padding-inline: 46px 26px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.notes li + li { margin-top: 10px; }
.guide-body .faq { margin-top: 18px; }
.more-guides { margin-top: 76px; }
.more-guides h2 { font-size: 1.6rem; margin-bottom: 24px; }
.more-guides .more-link { margin-top: 24px; }

/* Blog */

.grid > li > a.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .3s; }
.post-card:hover .post-cover img { transform: scale(1.03); }
.post-in { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.post-shot { margin: 30px 0 0; }
.post-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.post-shot figcaption { margin-top: 12px; font-size: .9rem; line-height: 1.5; color: var(--muted); text-align: center; }
@media (min-width: 1000px) { .post-shot { margin-inline: -70px; } }
.post-date { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); }
.card .post-date { margin-top: 0; font-size: .86rem; }
.post-card h3 { margin-top: 6px; font-size: 1.12rem; }
.post-more { margin-top: auto; padding-top: 16px; color: var(--link); font-weight: 600; font-size: .95rem; }
.post { padding-block: 28px 76px; }
.post-col { max-width: 760px; margin-inline: auto; }
.post-head { margin-top: 36px; }
.post-head h1 { margin-top: 12px; font-size: clamp(2rem, 4.2vw, 2.8rem); }
.post-head .lead { margin-top: 16px; font-size: 1.15rem; color: var(--muted); }
.post-body { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); font-size: 1.06rem; line-height: 1.75; }
.post-body p, .post-body ul { margin-top: 18px; margin-bottom: 0; }
.post-body > :first-child { margin-top: 0; }
.post-body h2 { margin-top: 44px; font-size: 1.45rem; }
.post-body ul { padding-inline-start: 24px; }
.post-body li + li { margin-top: 10px; }
.post-body li::marker { color: var(--brand); }

/* What's new */

.doc .callout {
  margin-top: 28px; padding: 18px 22px; background: var(--tint); border-radius: var(--radius); color: var(--text);
}
.doc .after { margin-top: 40px; }

/* Smaller screens */

@media (max-width: 1140px) {
  .platforms { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; }
}

@media (max-width: 960px) {
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-intro { position: static; }
  .foot-main { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .row, .guide-head { grid-template-columns: 1fr; gap: 32px; }
  .row:nth-child(even) .row-art { order: 0; }
  .row + .row { margin-top: 64px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .top .wrap { gap: 12px; min-height: 60px; }
  .top .actions { margin-inline-start: auto; }
  .hero { padding-top: 48px; }
  .hero .lead { font-size: 1.08rem; }
  .hero-stage { margin-top: 40px; }
  .hero-chip { display: none; }
  .hero-frame { padding: 6px; border-radius: 16px; }
  .hero-frame .shot { border-radius: 11px; }
  section { padding-block: 60px; }
  .grid, .planned, .steps3, .flow, .gallery { grid-template-columns: 1fr; }
  .gal-stage { padding: 20px 20px 0; }
  .gallery figcaption { padding: 18px 20px 22px; }
  .flow { gap: 20px; }
  .flow-vs { display: none; }
  .faq details p { padding-inline: 20px; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li + li { border-inline-start: 0; }
  .stats strong { font-size: 1.9rem; }
  .guide-body { margin-top: 48px; }
  .platforms { grid-template-columns: 1fr; max-width: 520px; }
  .platform { padding: 28px 20px; }
  .foot-main { grid-template-columns: 1fr 1fr; padding-block: 52px 32px; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 400px) {
  .logo span { display: none; }
}
