/* aisteps.io, every page of the AI Steps site. The «الوضوح» look: white cards on a pale
   green-grey ground, one green for actions, IBM Plex Sans Arabic, Western digits. */
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url("/static/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url("/static/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-display: swap; src: url("/static/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); }
/* The same face's Latin half: digits and English names, so they match the Arabic. */
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url("/static/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url("/static/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-display: swap; src: url("/static/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --ground: #F4F6F5; --surface: #FFFFFF; --ink: #14201B; --ink-2: #344039; --muted: #4A5751;
  --line: #DDE3E0; --line-input: #7F8D86; --accent: #17774C; --accent-hover: #12603D; --on-accent: #FFFFFF;
  --accent-soft: #E7F4EE; --on-soft: #12603D; --mark: #F7E27A;
  --bad: #B42318; --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%2317774C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --shadow: 0 1px 2px rgba(20, 32, 27, 0.06), 0 8px 24px rgba(20, 32, 27, 0.06);
  --ui: "IBM Plex Sans Arabic", system-ui, "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0F1613; --surface: #17211C; --ink: #E7EEEA; --ink-2: #C9D5CF; --muted: #9AA8A1;
    --line: #2A3731; --line-input: #63736B; --accent: #5BD197; --accent-hover: #74DBA8; --on-accent: #05201A;
    --accent-soft: #173327; --on-soft: #5BD197; --mark: #4A3F12;
    --bad: #F97066; --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%235BD197' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .brand img { filter: invert(1); }
}
:root[data-theme="dark"] {
  --ground: #0F1613; --surface: #17211C; --ink: #E7EEEA; --ink-2: #C9D5CF; --muted: #9AA8A1;
  --line: #2A3731; --line-input: #63736B; --accent: #5BD197; --accent-hover: #74DBA8; --on-accent: #05201A;
  --accent-soft: #173327; --on-soft: #5BD197; --mark: #4A3F12;
  --bad: #F97066; --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%235BD197' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); color: var(--ink); font: 17px/1.75 var(--ui); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.3; text-wrap: balance; }
h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
b { font-weight: 700; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 20; padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 15px/1 var(--ui); text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { color: var(--accent); }
.btn.big { height: 52px; padding: 0 24px; font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand-name { font-size: 20px; white-space: nowrap; }
.bar nav { display: flex; gap: 22px; margin-inline-end: auto; }
.bar nav a { display: block; line-height: 68px; color: var(--ink-2); text-decoration: none; font-size: 15px; white-space: nowrap; }
.bar nav a:hover { color: var(--accent); }
.bar nav a[aria-current="page"] { color: var(--accent); font-weight: 600; box-shadow: inset 0 -3px 0 var(--accent); }
.bar-actions { display: flex; gap: 8px; }

/* Hero */
.hero { padding-block: 64px 72px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hero-text { display: grid; gap: 22px; }
.product-line { color: var(--accent); font-weight: 600; font-size: 16px; }
.hero h1 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 700; line-height: 1.3; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 60ch; }

/* Sections */
main > section { padding-block: 72px; }
.section-lead { color: var(--ink-2); margin-top: 10px; max-width: 64ch; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.features article { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; display: grid; gap: 8px; align-content: start; }
.features article p { color: var(--ink-2); font-size: 16px; }
.services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.services.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-inline-start: 30px; color: var(--ink-2); font-size: 16px; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) no-repeat center / 12px var(--tick); }
.checks li b { color: var(--ink); }

.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
.trust.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trust article { border-top: 2px solid var(--accent); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.trust p { color: var(--ink-2); font-size: 16px; }

.fine { font-size: 14px; color: var(--muted); }

/* The company page: how we work, in three steps, the fields and the library */
.band { background: var(--ground); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 28px; display: grid; gap: 22px; counter-reset: step;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-soft); color: var(--on-soft); font-weight: 700; font-size: 18px; }
.steps li > div { display: grid; gap: 4px; }
.steps p { color: var(--ink-2); font-size: 16px; }
.steps.flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.steps.flow li { grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
main > section.sectors { padding-block: 22px; }
.sectors-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.sectors-in > p { color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li, .chips a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 15px; text-decoration: none; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.chips li:has(> a) { height: auto; padding: 0; border: 0; background: none; }
.card-link { font-weight: 600; font-size: 15px; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.library { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.library-text { display: grid; gap: 18px; justify-items: start; }
.library-text p { color: var(--ink-2); max-width: 60ch; }
.counts { font-weight: 700; color: var(--on-soft) !important; }
.skill-sample { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 24px 26px; display: grid; gap: 10px; }
.skill-file { font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.skill-sample p { color: var(--ink-2); font-size: 16px; }
.works { display: flex; flex-wrap: wrap; gap: 6px; }
.works span { padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--on-soft); font-size: 13px; font-weight: 600; }
.faq { display: grid; gap: 10px; margin-top: 28px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.faq details p { color: var(--ink-2); font-size: 16px; margin-top: 10px; }

/* The skills library (site/skills.html): one list, filtered by field, task and search */
.filters { display: grid; gap: 14px; margin-top: 8px; padding: 20px 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; }
.filters[hidden] { display: none; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { min-width: 64px; color: var(--muted); font-size: 14px; font-weight: 600; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font: 500 15px/1 var(--ui); cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.search input { width: 100%; max-width: 420px; height: 44px; padding: 0 14px; border: 1px solid var(--line-input); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: 400 16px/1 var(--ui); }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.count { margin-top: 18px; color: var(--muted); font-size: 15px; }
.skill-list { margin-top: 12px; }
.skill-list article[hidden] { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { padding: 3px 10px; border-radius: 999px; background: var(--ground); color: var(--muted); font-size: 13px; }
.empty { margin-top: 12px; color: var(--ink-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The skill builder (site/skill-builder.html): the form beside a live preview of SKILL.md */
.hero-short { padding-block: 48px 40px; }
.hero-short .product-line a { color: inherit; }
.builder { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px; align-items: start; }
.builder[hidden] { display: none; }
.builder-form { display: grid; gap: 16px; }
.builder fieldset { margin: 0; padding: 18px 20px; display: grid; gap: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; }
.builder legend { padding: 0 6px; font-weight: 700; font-size: 17px; }
.field { display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-input); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: 400 16px/1.6 var(--ui); resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field input[dir="ltr"] { text-align: left; }
.hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.counter { margin-inline-start: 6px; font-variant-numeric: tabular-nums; }
.counter.over { color: var(--bad); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.check input { margin-top: 6px; accent-color: var(--accent); }
.builder-preview { position: sticky; top: 84px; display: grid; gap: 12px; padding: 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.builder-preview h2 { font-size: 20px; }
.problems { margin: 0; padding: 12px 16px 12px 12px; padding-inline-start: 28px; display: grid; gap: 4px;
  background: var(--mark); border-radius: 10px; font-size: 14px; color: var(--ink); }
.problems[hidden], .ready[hidden], .from-note[hidden] { display: none; }
.try-box { display: grid; gap: 8px; justify-items: start; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); font-size: 15px; }
.try-box[hidden] { display: none; }
.field-page { margin-top: 6px; font-size: 15px; font-weight: 600; }
.try-text { width: 100%; padding: 10px 12px; border: 1px solid var(--line-input); border-radius: 10px; background: var(--surface); color: var(--ink); font: 400 14px/1.7 var(--ui); unicode-bidi: plaintext; }
.from-note { display: grid; gap: 10px; justify-items: start; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 15px; }
.ready { padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--on-soft); font-weight: 600; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.skill-text { margin: 0; max-height: 60vh; overflow: auto; padding: 14px 16px; background: var(--ground); border: 1px solid var(--line);
  border-radius: 10px; font: 400 14px/1.8 var(--ui); white-space: pre-wrap; unicode-bidi: plaintext; }
/* The guides (site/guides.html, site/guides/_page.html) */
main > section.guide-section { padding-block: 8px 56px; }
.guide { max-width: 760px; display: grid; gap: 14px; }
.guide .lead { font-size: 19px; color: var(--ink); }
.guide h2 { font-size: 24px; margin-top: 22px; }
.guide h3 { font-size: 19px; margin-top: 8px; }
.guide p, .guide li { color: var(--ink-2); font-size: 17px; line-height: 1.9; }
.guide ul, .guide ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.guide b { color: var(--ink); }
/* The privacy policy: numbered sections on the guide layout, its providers in a table. */
.policy section { display: grid; gap: 10px; }
.policy table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--line); }
.policy th, .policy td { padding: 10px 12px; text-align: start; vertical-align: top; border: 1px solid var(--line); line-height: 1.7; }
.policy th { background: var(--ground); color: var(--ink); }
@media (max-width: 640px) { .policy table { display: block; overflow-x: auto; } }
.guide table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--line); }
.guide th, .guide td { padding: 10px 12px; text-align: start; vertical-align: top; border: 1px solid var(--line); line-height: 1.7; }
.guide th { background: var(--ground); color: var(--ink); font-weight: 700; }
.guide .note { margin: 6px 0; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); max-width: none; }
.guide .fine, .guide p.fine { margin-top: 18px; font-size: 14px; color: var(--muted); }
.guide .fine a { color: var(--muted); }
.guide-list { margin-top: 20px; }
.guide-list h3 a { color: var(--ink); text-decoration: none; }
.guide-list h3 a:hover { color: var(--accent); }
.guide-list article { position: relative; }
.guide-groups > h2 { margin-top: 44px; }
.guide-groups > h2:first-child { margin-top: 0; }
.guide-groups .features { margin-top: 18px; }
.guide-list h3 a::after { content: ""; position: absolute; inset: 0; }
/* The «حدّثنا عن احتياجك» form on the company page */
.message-form { display: grid; gap: 14px; width: 100%; max-width: 760px; padding: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; }
.message-form[hidden] { display: none; }
.form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: 400 16px/1 var(--ui); }
.choice { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.choice legend { float: inline-start; margin-inline-end: 12px; font-weight: 600; font-size: 15px; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-status { color: var(--ink-2); font-size: 15px; min-height: 1.5em; }
.form-done { padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--on-soft); font-weight: 600; }
.compare { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compare article.this { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }

/* The personal assistant page (site/assistant.html): a sample morning brief, and the downloads */
.brief { gap: 8px; }
.sample-tag { justify-self: start; padding: 2px 10px; border-radius: 999px; background: var(--ground); color: var(--muted); font-size: 13px; font-weight: 600; }
.brief .brief-label { margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.brief ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.brief li { padding-inline-start: 12px; border-inline-start: 3px solid var(--line); color: var(--ink-2); font-size: 15px; }
.brief li.reply { border-color: var(--accent); }
.brief time { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; margin-inline-end: 6px; }
.draft { display: inline-block; margin-inline-start: 4px; padding: 1px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--on-soft); font-size: 12px; font-weight: 600; }
.downloads { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.steps .downloads li { display: block; counter-increment: none; }
.steps .downloads li::before { content: none; }
.setup-actions { margin-top: 24px; align-items: center; gap: 14px; }

.btn.small { height: 38px; padding: 0 14px; font-size: 14px; }
.example { font-size: 15px; color: var(--muted); }
.skill-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.install article { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px;
  display: grid; gap: 10px; align-content: start; }
.install ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: 16px; }
.note { margin-top: 24px; max-width: 70ch; color: var(--ink-2); }

.contact-in { display: grid; gap: 14px; justify-items: start; }
.contact-in p { color: var(--ink-2); }

footer { border-top: 1px solid var(--line); background: var(--ground); }
.foot-in { display: flex; flex-wrap: wrap; gap: 24px; padding-block: 24px; font-size: 14px; color: var(--muted); }
.foot-in a { color: var(--muted); }

/* Tablets */
@media (max-width: 1000px) {
  html { scroll-padding-top: 124px; }
  .bar-in { flex-wrap: wrap; height: auto; padding-top: 12px; row-gap: 4px; }
  .bar nav { order: 3; width: 100%; margin: 0; gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .bar nav::-webkit-scrollbar { display: none; }
  .bar nav a { line-height: 44px; }
  .bar-actions { margin-inline-start: auto; }
  .hero-in, .library { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .install { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .steps.flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder { grid-template-columns: minmax(0, 1fr); }
  .builder-preview { position: static; }
  .features, .services, .services.three, .trust, .trust.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phones */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .bar-in { gap: 12px; padding-top: 10px; }
  .bar nav { gap: 0 16px; }
  .bar nav a { font-size: 14px; line-height: 38px; }
  .brand-name { font-size: 18px; }
  .bar-actions .btn { height: 40px; padding: 0 14px; font-size: 14px; }
  .hero { padding-block: 36px 48px; }
  .hero h1 { font-size: 32px; }
  main > section { padding-block: 48px; }
  .features, .services, .services.three, .trust, .trust.three { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .trust { gap: 24px; }
  .steps { padding: 20px; gap: 18px; }
  .steps.flow { grid-template-columns: minmax(0, 1fr); }
  .guide table { display: block; overflow-x: auto; }
  .btn.big { width: 100%; }
  .actions { width: 100%; }
}
/* Print: a guide or a skill page as a clean handout for training, without the site around it */
@media print {
  :root { --ground: #fff; --surface: #fff; --ink: #000; --ink-2: #222; --muted: #444; --line: #bbb; }
  body { background: #fff; font-size: 12pt; }
  .bar, footer, .skip, #contact, .actions, .skill-actions, .band[aria-labelledby="more-title"], .fields-more, .filters { display: none !important; }
  main > section, main > section.guide-section { padding-block: 8pt; }
  .band { background: none; border: 0; }
  .hero-short { padding-block: 0 8pt; }
  .guide { max-width: none; }
  .guide a { color: inherit; text-decoration: underline; }
  .guide table, .guide tr, .guide li { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  .guide .note { border: 1px solid #bbb; }
  main::after { content: "من AI Steps · aisteps.io"; display: block; margin-top: 16pt; padding-top: 6pt; border-top: 1px solid #bbb; color: #444; font-size: 10pt; }
}
