/* Zain (SIL Open Font License, see fonts/OFL.txt), served from this site instead of Google Fonts. */
/* arabic */
@font-face {
  font-family: 'Zain';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/zain-400-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'Zain';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/zain-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'Zain';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/zain-700-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'Zain';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/zain-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'Zain';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/zain-800-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'Zain';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/zain-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'Zain';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/fonts/zain-900-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'Zain';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/fonts/zain-900-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Yanal Skills, «ثلاثة ميادين» (three fields): Rashed's pick of three looks,
   8 November 2026, replacing the Apple-style look of 6 November.
   Black type on white, text set from the start edge (right in Arabic), and one
   bold thing: under the headline, the three areas of the lead as three blocks of
   colour, the logo's plum, its coral, and a violet. The same three colours run as
   a thin band above every footer; the rest of the page has no colour of its own.
   The two dots under each area are the two dots of the logo's «ي».
   One motion: the first screen settles in as the page opens (not for visitors who
   ask for reduced motion). No scripts, so the content policy stays strict.
   Contrast: ink 16.8 and grey 6.5 on white, grey 5.8 on lilac; white 15.5 and mist 9.4
   on plum; ink 6.0 on coral; white 6.6 and lavender 5.4 on violet; #c9c6cf 10.0 on ink. */
:root {
  --ink: #1d1d1f;
  --grey: #625a6e;      /* body text, a grey leaning to plum */
  --lilac: #f3f0f8;     /* the products band and page */
  --line: #e4dfeb;
  --plum: #2e1a47;      /* the logo tile; first field */
  --coral: #ff6b4a;     /* the logo dots; second field, the contact button */
  --coral-ink: #b8321a; /* links in words: 6.0 on white */
  --violet: #6b4e9b;    /* third field */
  --mist: #cfc6dd;      /* body text on plum */
  --lavender: #ece6f6;  /* body text on violet */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: "Zain", "Segoe UI", Tahoma, sans-serif; font-size: 20px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 4px; border-radius: 10px; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 48px; }
/* A heading on one side and its words and buttons on the other. */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 64px; align-items: end; }
.side { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }

/* ── top bar ── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; min-height: 68px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; line-height: 1.1; }
.tile { color: #fff; flex: none; width: 34px; height: 34px; }
nav { display: flex; align-items: center; gap: 4px 26px; flex-wrap: wrap; font-size: 17px; font-weight: 700; }
nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--grey); transition: color 0.2s; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--coral); }
nav .lang { font-weight: 800; color: var(--ink); }

/* ── buttons ── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { min-height: 52px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); display: inline-flex; align-items: center; font-size: 19px; font-weight: 800; transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease); max-width: 100%; overflow-wrap: anywhere; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--plum); border-color: var(--plum); transform: scale(1.03); }

/* ── home: the first screen ── */
.home-hero > .wrap { padding-block: 88px 64px; }
h1 { font-size: clamp(52px, 8.4vw, 118px); font-weight: 900; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
[lang="ar"] h1 { line-height: 1.16; letter-spacing: 0; }
.home-hero .split { grid-template-columns: 1.6fr 1fr; }
[lang="en"] .home-hero h1 { font-size: clamp(48px, 7vw, 100px); }
.home-hero .side { padding-bottom: 14px; }
.lead { font-size: clamp(21px, 2vw, 26px); color: var(--grey); text-wrap: balance; }

/* ── home: the three fields ── */
.fields { display: grid; grid-template-columns: repeat(3, 1fr); }
.field { min-height: clamp(320px, 32vw, 460px); padding: clamp(28px, 3.2vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-width: 0; }
.field h3 { font-size: clamp(40px, 5vw, 76px); font-weight: 900; line-height: 1.08; text-wrap: balance; }
.field p { margin-top: 10px; font-size: clamp(18px, 1.6vw, 21px); max-width: 16em; }
.field .pair { display: flex; gap: 10px; }
.field .pair i { width: 16px; height: 16px; border-radius: 50%; background: var(--coral); }
.field.plum { background: var(--plum); color: #fff; }
.field.plum p { color: var(--mist); }
.field.coral { background: var(--coral); color: var(--ink); }
.field.coral .pair i { background: var(--plum); }
.field.violet { background: var(--violet); color: #fff; }
.field.violet p { color: var(--lavender); }
.field.violet .pair i { background: #fff; }

/* ── home: about and the products band ── */
.about > .wrap { display: grid; grid-template-columns: 1fr 2.6fr; gap: 16px 48px; padding-block: 112px; }
.about h2 { font-size: 20px; font-weight: 800; color: var(--grey); padding-top: 0.6em; }
.statement { font-size: clamp(32px, 4.2vw, 58px); font-weight: 800; line-height: 1.3; text-wrap: balance; }
.teaser { background: var(--lilac); }
.teaser > .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: 72px; }
.teaser h2 { font-size: clamp(38px, 4.4vw, 60px); font-weight: 900; line-height: 1.15; }
.teaser p { font-size: 21px; color: var(--grey); margin-top: 6px; }

/* ── contact: on every page, the one dark band ── */
.contact { background: var(--ink); color: #fff; }
.contact > .wrap { padding-block: 104px; }
.contact h2 { font-size: clamp(48px, 7vw, 100px); font-weight: 900; line-height: 1.08; }
.contact p { color: #c9c6cf; font-size: clamp(20px, 1.9vw, 23px); }
.contact .btn { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.contact .btn:hover { background: #ff8466; border-color: #ff8466; color: var(--ink); }
.contact a:focus-visible { outline-color: var(--coral); }
.stripe { display: grid; grid-template-columns: repeat(3, 1fr); height: 10px; }
.stripe .plum { background: var(--plum); }
.stripe .coral { background: var(--coral); }
.stripe .violet { background: var(--violet); }

/* ── products and privacy pages ── */
.page-hero > .wrap { display: flex; flex-direction: column; gap: 18px; padding-block: 88px 64px; }
.page-hero h1 { font-size: clamp(52px, 8vw, 112px); }
.page-hero p { font-size: clamp(21px, 2vw, 26px); color: var(--grey); max-width: 30em; }
.products { background: var(--lilac); }
.products > .wrap { padding-block: 64px 104px; }
/* Any number of apps: the grid adds rows as site.config.mjs grows. */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 20px; }
.product { background: #fff; border-radius: 22px; padding: 34px 30px; display: flex; flex-direction: column; gap: 18px; }
a.product { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
a.product:hover, a.product:focus-visible { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(46, 26, 71, 0.45); }
.mark { flex: none; width: 76px; height: 76px; border-radius: 18px; display: block; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.25); }
.letter { color: #fff; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 900; line-height: 1; }
.letter.plum { background: var(--plum); }
.letter.coral { background: var(--coral-ink); }
.letter.violet { background: var(--violet); }
.product-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.product-name { font-size: 30px; font-weight: 900; line-height: 1.2; }
.product-text { font-size: 19px; color: var(--grey); line-height: 1.5; }
.product-domain, .product-soon { margin-top: auto; padding-top: 12px; font-size: 17px; font-weight: 800; }
.product-domain { color: var(--coral-ink); }
[dir="rtl"] .product-domain { text-align: right; }
.product-soon { align-self: flex-start; color: var(--grey); }

.prose-section > .wrap { padding-block: 16px 112px; }
.prose { max-width: 40em; display: flex; flex-direction: column; gap: 10px; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 900; margin-top: 30px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--grey); font-size: 21px; }
.app-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.app-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 2px solid var(--line); border-radius: 999px; font-weight: 800; transition: border-color 0.2s; }
.app-links a:hover { border-color: var(--ink); }
.prose .updated { margin-top: 34px; font-size: 17px; }

/* ── footer ── */
footer { font-size: 16px; color: var(--grey); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 28px; }
.foot > div { display: flex; flex-direction: column; }
.foot strong { color: var(--ink); font-weight: 800; }
.foot-end { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.foot-end a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.foot-end a:hover { text-decoration-color: var(--ink); }

/* ── the one load moment: the first screen settles in ── */
@media (prefers-reduced-motion: no-preference) {
  .home-hero h1, .home-hero .side, .page-hero .wrap > * { animation: rise 0.9s var(--ease) both; }
  .home-hero .side, .page-hero .wrap > :nth-child(2) { animation-delay: 0.12s; }
  .field { animation: rise 0.9s var(--ease) both; }
  .field:nth-child(1) { animation-delay: 0.2s; }
  .field:nth-child(2) { animation-delay: 0.28s; }
  .field:nth-child(3) { animation-delay: 0.36s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
}

@media (max-width: 900px) {
  .split, .home-hero .split, .about > .wrap { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .field { min-height: 0; gap: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 19px; }
  .wrap { padding-inline: 20px; }
  /* On a phone the bar scrolls away with the page, so it never covers the first screen. */
  .top { position: static; }
  .brand { font-size: 21px; }
  nav { font-size: 16px; gap: 2px 14px; width: 100%; justify-content: space-between; }
  .home-hero > .wrap, .page-hero > .wrap { padding-block: 40px 40px; }
  .field { padding: 30px 20px; }
  .about > .wrap { padding-block: 64px; }
  .teaser > .wrap, .contact > .wrap { padding-block: 64px; }
  .products > .wrap { padding-block: 32px 64px; }
  .product { padding: 28px 24px; }
  .mark { width: 64px; height: 64px; border-radius: 15px; }
  .btn { font-size: 18px; padding: 0 22px; min-height: 50px; }
}

/* ── the page for a missing address (404.html) ── */
.missing > .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px 56px; min-height: 70vh; align-content: center; padding-block: 64px; }
.missing-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.missing h1 { font-size: clamp(40px, 5vw, 64px); }
.missing h2 { font-size: clamp(34px, 4vw, 48px); font-weight: 900; }
.missing p { font-size: 22px; color: var(--grey); }
