/* DOLEN public site. Design tokens from the DOLEN application. Mobile-first, one column, Arabic-first.
   Blue is reserved for actions and focus; amber only marks "in development". */
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+FEFF;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2');
  font-weight: 500 600;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2');
  font-weight: 700 800;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  /* DOLEN colour tokens (docs/COLOR_SYSTEM.md). Blue is for actions and focus only. */
  --color-background: #F7F7F4;     /* Warm Ivory: page */
  --color-surface: #FFFFFF;        /* White: controls, cards */
  --color-surface-muted: #E9EDF1;  /* Soft Mist: quiet panels, step markers (no slate text on it) */
  --color-text: #151A1E;           /* Deep Ink: headings, primary text, brand */
  --color-text-secondary: #3B444C; /* body paragraphs (about 10:1 on ivory) */
  --color-text-muted: #626D77;     /* Slate: labels, notes, footer (4.9:1 on ivory) */
  --color-primary: #315FD5;        /* Confident Blue: primary action, links */
  --color-primary-hover: #2649AD;
  --color-primary-active: #1F3D91;
  --color-on-primary: #FFFFFF;
  --color-border: #DCE1E6;         /* decorative dividers */
  --color-focus: #315FD5;
  --color-warning: #E9A21B;        /* status: in development */
  --color-warning-surface: #FBF0D6;
  --color-warning-text: #5A3D00;
  --font-latin: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --gutter: 20px;
  --col: 640px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-latin);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
html[lang='ar'] body { font-family: var(--font-arabic); line-height: 1.8; }
img { display: block; max-width: 100%; }
a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-hover); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
html[lang='ar'] h1, html[lang='ar'] h2, html[lang='ar'] h3 { letter-spacing: 0; line-height: 1.45; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--color-text); color: var(--color-on-primary); padding: 8px 12px; z-index: 10; }
.skip:focus { top: 8px; }

.col { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* Header: wordmark + language only */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 5px; color: var(--color-text); text-decoration: none; min-height: 44px; padding-block: 4px; }
/* Logo (direction A): the name in Deep Ink ending in a Confident Blue square. The only non-action use of blue. */
.wm-en { font-family: var(--font-latin); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.04em; line-height: 1; margin-inline-end: -0.04em; } /* cancel trailing tracking before the square */
.wm-ar { font-family: var(--font-arabic); font-weight: 700; font-size: 1.6rem; line-height: 1.2; }
.wm-dot { display: inline-block; width: 6px; height: 6px; background: var(--color-primary); flex: none; }
html[lang='ar'] .wm-dot { width: 7px; height: 7px; }
.lang {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface);
  color: var(--color-text); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.lang:hover { border-color: var(--color-text-muted); color: var(--color-text); }
.lang:active { background: var(--color-surface-muted); }

/* Hero */
.hero { padding-block: 40px 56px; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600; color: var(--color-warning-text);
  background: var(--color-warning-surface); border-radius: 999px; padding: 4px 12px;
}
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--color-warning); flex: none; }
.hero h1 { margin-top: 20px; font-size: clamp(2.1rem, 8.5vw, 3.4rem); text-wrap: balance; } /* no stranded last word */
.hero .lede { margin-top: 18px; font-size: 1.15rem; color: var(--color-text-secondary); }
.hero .first { margin-top: 14px; color: var(--color-text-secondary); }
.cta { margin-top: 32px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 0 24px;
  background: var(--color-primary); color: var(--color-on-primary); border-radius: 12px;
  font-size: 1.1rem; font-weight: 700; text-decoration: none;
}
.btn:hover { background: var(--color-primary-hover); color: var(--color-on-primary); }
.btn:active { background: var(--color-primary-active); }
.btn svg { width: 20px; height: 20px; flex: none; }
.cta .note { margin-top: 12px; font-size: 0.95rem; color: var(--color-text-muted); text-align: center; }
.cta .note .ltr { display: block; font-weight: 600; font-size: 1.05rem; color: var(--color-text-secondary); }

.hero .lede, .hero .first { text-wrap: pretty; } /* avoid a lone last word */
.cta + .first { margin-top: 24px; } /* example sits right after the contact block */

/* Sections */
.block { padding-block: 48px; border-top: 1px solid var(--color-border); }
.block h2 { font-size: 1.45rem; }

.steps { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 52px; padding-bottom: 24px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-surface-muted); color: var(--color-text);
  font-weight: 700; font-size: 1rem; line-height: 1;
}
html[lang='ar'] .steps li::before { content: counter(s, arabic-indic); }
.steps li::after {
  content: ''; position: absolute; inset-inline-start: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--color-border);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.1rem; padding-top: 4px; }
.steps p { color: var(--color-text-secondary); margin-top: 2px; }

.now { margin: 20px 0 0; display: grid; gap: 18px; }
.now div { display: grid; gap: 2px; }
.now dt { font-weight: 700; }
.now dd { margin: 0; color: var(--color-text-secondary); }

/* Footer */
.foot { border-top: 1px solid var(--color-border); padding-block: 28px 40px; color: var(--color-text-muted); font-size: 0.9rem; }
.foot p + p { margin-top: 10px; }
.foot a { color: var(--color-text-secondary); }

/* 404 */
.nf { padding-block: 56px; }
.nf h1 { font-size: 2rem; margin-top: 16px; }
.nf p { margin-top: 12px; color: var(--color-text-secondary); }
.nf .links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.nf .links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero { padding-block: 72px 80px; }
  .btn { width: auto; display: inline-flex; padding: 0 32px; }
  .cta .note { text-align: start; }
  html[dir='rtl'] .cta .note .ltr { text-align: right; } /* LTR-isolated number would otherwise align left */
  .block { padding-block: 64px; }
}
