/* Orsa website styles. Light only. Colours from brand/BRAND_DNA.md section 6.
   The three status colours are never used on this site. */

/* ---------- Fonts (loaded from this site only) ---------- */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  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";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
  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";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-latin-400-normal.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;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-latin-700-normal.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;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --blue: #2350E0;        /* Orsa Blue: buttons, links */
  --blue-deep: #1A3DB0;   /* Deep Blue: hover, pressed */
  --night: #0F1B2D;       /* Night: text */
  --slate: #5B6678;       /* Slate: secondary text */
  --line: #DFE4EC;        /* Line: borders */
  --mist: #F4F6FA;        /* Mist: page */
  --sky: #DCE6FF;         /* Sky: tints */
  --white: #FFFFFF;       /* White: cards */

  --font-head: "Manrope", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --w-head: 700;
  --w-strong: 600;

  /* English sizes (mobile first) */
  --fs-hero: 40px;
  --fs-h2: 28px;
  --fs-h3: 20px;
  --fs-body: 16px;
  --fs-lead: 18px;
  --fs-small: 13px;
  --lh-head: 1.15;
  --lh-body: 1.6;

  --radius: 16px;
  --gap: 20px;
}

/* Arabic: 2 px larger, line height 1.7–1.8, no letter spacing */
html[lang="ar"] {
  --font-head: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --w-head: 700;
  --w-strong: 700;
  --fs-hero: 42px;
  --fs-h2: 30px;
  --fs-h3: 22px;
  --fs-body: 18px;
  --fs-lead: 20px;
  --fs-small: 15px;
  --lh-head: 1.7;
  --lh-body: 1.8;
}

@media (min-width: 760px) {
  :root { --fs-hero: 56px; --fs-h2: 32px; --fs-h3: 22px; }
  html[lang="ar"] { --fs-hero: 58px; --fs-h2: 34px; --fs-h3: 24px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--night);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: normal;
}
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: var(--w-head);
  line-height: var(--lh-head);
  margin: 0 0 0.5em;
  letter-spacing: normal;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
strong { font-weight: var(--w-strong); }
img { max-width: 100%; display: block; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--slate); }
.small { font-size: var(--fs-small); }

.skip {
  position: absolute; inset-inline-start: 12px; inset-block-start: -60px;
  background: var(--white); color: var(--blue); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { inset-block-start: 12px; }

/* ---------- Header ---------- */
.site-header { padding-block: 16px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo-link { display: inline-block; padding: 4px; }
.logo-link img { width: 112px; height: auto; } /* primary logo: never below 72 px wide */
html[lang="ar"] .logo-link img { width: 128px; }

.lang-switch {
  display: inline-flex; align-items: center; min-height: 44px;
  padding-inline: 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--blue); font-weight: var(--w-strong);
  text-decoration: none; font-size: 15px;
}
.lang-switch:hover { border-color: var(--blue); color: var(--blue-deep); }
.lang-switch [lang="ar"] { font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 12px;
  background: var(--blue); color: var(--white); border: 1px solid var(--blue);
  font: inherit; font-weight: var(--w-strong); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }
.btn-quiet { background: var(--white); color: var(--blue); border-color: var(--line); }
.btn-quiet:hover { background: var(--sky); color: var(--blue-deep); border-color: var(--sky); }

/* ---------- Hero ---------- */
.hero { padding-block: 24px 48px; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
.hero .lead { font-size: var(--fs-lead); color: var(--slate); max-width: 34em; }
.hero-actions { margin-block-start: 24px; }
@media (min-width: 900px) {
  .hero { padding-block: 48px 72px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}

/* Result page mock-up: fictional lab, lab's own flag only, no judging colours */
.mock { margin: 0; }
.mock-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: 20px; max-width: 380px; margin-inline: auto;
}
.mock-head { display: flex; align-items: center; gap: 12px; padding-block-end: 14px; border-block-end: 1px solid var(--line); }
.mock-mark {
  inline-size: 40px; block-size: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center; background: var(--sky); color: var(--blue-deep);
  font-weight: var(--w-strong);
}
.mock-lab { font-weight: var(--w-strong); line-height: 1.3; }
.mock-lab span { display: block; font-weight: 400; font-size: var(--fs-small); color: var(--slate); }
.mock-title { margin: 14px 0 6px; font-size: var(--fs-small); color: var(--slate); }
.mock-row { padding-block: 12px; border-block-end: 1px solid var(--line); }
.mock-row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mock-test { font-weight: var(--w-strong); }
.mock-value { font-family: var(--font-body); font-weight: var(--w-strong); font-variant-numeric: tabular-nums; }
.mock-range { font-size: var(--fs-small); color: var(--slate); margin: 2px 0 0; }
.mock-flag {
  display: inline-block; margin-block-start: 6px; padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--mist); color: var(--night); font-size: var(--fs-small);
}
.mock-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 14px; }
.mock-actions span {
  padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line);
  color: var(--blue); font-size: var(--fs-small); font-weight: var(--w-strong);
}
.mock-foot { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--slate); }
.mock figcaption { text-align: center; margin-block-start: 10px; font-size: var(--fs-small); color: var(--slate); }

/* ---------- Sections ---------- */
.section { padding-block: 48px; }
@media (min-width: 760px) { .section { padding-block: 72px; } }
.section-intro { color: var(--slate); max-width: 38em; margin-block-end: 28px; }

.cards { display: grid; gap: var(--gap); list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.card p { margin: 0; color: var(--slate); }
.icon { inline-size: 40px; block-size: 40px; color: var(--blue); margin-block-end: 14px; }

.panel { background: var(--sky); border-radius: 24px; padding: 28px 22px; }
@media (min-width: 760px) { .panel { padding: 44px; } }
.panel h2 { color: var(--night); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; inline-size: 24px; block-size: 24px; color: var(--blue-deep); margin-block-start: 0.2em; }

/* ---------- Demo ---------- */
.demo-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 24px 20px;
}
@media (min-width: 760px) { .demo-card { padding: 40px; } }
.contact { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.contact li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--mist);
}
.contact-label { display: block; font-size: var(--fs-small); color: var(--slate); }
.contact-value { font-family: "Inter", Arial, sans-serif; font-weight: 600; font-size: 18px; overflow-wrap: anywhere; }
html[lang="ar"] .contact-value { font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; font-weight: 700; font-size: 20px; }
.copy-btn {
  min-height: 44px; padding: 8px 16px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--blue);
  font: inherit; font-size: 15px; font-weight: var(--w-strong);
}
.copy-btn:hover { background: var(--sky); color: var(--blue-deep); border-color: var(--sky); }
.copy-btn[hidden] { display: none; }
.status { min-height: 1.5em; margin: 0; }
.visually-hidden {
  position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Simple pages (privacy, 404) ---------- */
.page { padding-block: 24px 56px; }
.page-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 24px 20px; max-width: 760px; }
@media (min-width: 760px) { .page-card { padding: 40px; } }
.page-card h2 { font-size: var(--fs-h3); margin-block-start: 1.6em; }
.draft {
  display: inline-block; margin-block-end: 16px; padding: 4px 12px; border-radius: 8px;
  background: var(--sky); color: var(--blue-deep); font-weight: var(--w-strong);
}
.page-card ul { padding-inline-start: 1.2em; margin: 0 0 1em; }

/* ---------- Footer ---------- */
.site-footer { border-block-start: 1px solid var(--line); padding-block: 28px 40px; color: var(--slate); font-size: var(--fs-small); }
.site-footer p { margin: 0 0 4px; }
.site-footer .legal-name { color: var(--night); font-weight: var(--w-strong); }
.footer-links { margin-block-start: 12px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* English text inside an Arabic page (404) */
html[lang="ar"] div[lang="en"] {
  --font-head: "Manrope", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --lh-head: 1.15; --lh-body: 1.6; --w-strong: 600;
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  margin-block-start: 32px; padding-block-start: 24px; border-block-start: 1px solid var(--line);
}

.panel-lead { font-size: var(--fs-lead); max-width: 38em; margin-block-end: 20px; }
