@font-face {
  font-family: "Alexandria";
  src: url("fonts/Alexandria-Light.woff2") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alexandria";
  src: url("fonts/Alexandria-SemiBold.woff2") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/IBMPlexSansArabic-Light.woff2") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/IBMPlexSansArabic-SemiBold.woff2") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --pitch: #0B1413;
  --ink: #12201D;
  --pine: #0F4C46;
  --pine-hover: #0C3E39;
  --teal: #4EC2AE;
  --mist: #EDF3F1;
  --paper: #FFFFFF;
  --grey-900: #12201D;
  --grey-700: #31403C;
  --grey-500: #5C6B67;
  --grey-400: #8A9995;
  --grey-300: #C6CFCC;
  --grey-200: #DDE3E0;
  --grey-100: #F1F4F3;
  --grey-050: #F7F8F7;
  --success: #2E9E5B;
  --warning: #D2560F;
  --danger: #B3321A;
  --success-text: #1C6E3B;
  --warning-text: #A84509;

  --font-latin: "Alexandria", system-ui, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: var(--font-latin);
  --leading-body: 1.7;
  --tracking-display: -0.028em;

  --radius-control: 8px;
  --radius-card: 12px;
  --container: 1180px;
  --gutter: 24px;
}

html[dir="rtl"] {
  --font-body: var(--font-arabic);
  --leading-body: 1.95;
  --tracking-display: 0;
}

* { box-sizing: border-box; }

html {
  background: var(--pitch);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--pitch);
  color: var(--mist);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: var(--leading-body);
  overflow-x: hidden;
}

html[dir="rtl"] body { font-size: 17px; }

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

a { color: var(--teal); }
a:hover { color: var(--mist); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  inline-size: 100%;
  max-inline-size: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: var(--gutter);
  z-index: 60;
  background: var(--teal);
  color: var(--ink);
  padding: 12px 20px;
  min-block-size: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-control);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { inset-block-start: 12px; color: var(--ink); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  background: rgba(11, 20, 19, 0.92);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid #12201D;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-block-size: 76px;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--mist);
  min-block-size: 44px;
}
.brand:hover { color: var(--mist); }

.brand svg { inline-size: 32px; block-size: 33px; flex: none; }
html[dir="rtl"] .brand svg { transform: scaleX(-1); }

.brand-text { display: grid; line-height: 1.1; }
.brand-name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
html[dir="rtl"] .brand-name { letter-spacing: 0; }
.brand-sub {
  font-size: 12px;
  font-weight: 300;
  color: var(--grey-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
html[dir="rtl"] .brand-sub { letter-spacing: 0; text-transform: none; font-size: 13px; }

.lang-field { display: flex; align-items: center; gap: 10px; }
.lang-label {
  font-size: 12px;
  color: var(--grey-400);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
html[dir="rtl"] .lang-label { letter-spacing: 0; text-transform: none; font-size: 14px; }

.lang-picker { position: relative; }

/* Flags carry national colours, which sit outside the Lumen palette by
   necessity. They are confined to this component. */
.flag {
  inline-size: 22px;
  block-size: 15px;
  flex: none;
  border-radius: 2px;
  overflow: hidden;
  display: block;
  box-shadow: 0 0 0 1px rgba(237, 243, 241, 0.16);
}
.flag svg { display: block; inline-size: 100%; block-size: 100%; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-block-size: 44px;
  min-inline-size: 150px;
  padding-inline: 12px 12px;
  background: #12201D;
  border: 1px solid #31403C;
  border-radius: var(--radius-control);
  color: var(--mist);
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  cursor: pointer;
  text-align: start;
}
.lang-btn:hover { border-color: var(--grey-500); }
.lang-btn .chev { inline-size: 12px; block-size: 8px; flex: none; margin-inline-start: auto; }
.lang-btn .chev path { stroke: var(--grey-400); }

.lang-menu {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 45;
  margin: 0;
  padding: 6px;
  list-style: none;
  min-inline-size: 208px;
  max-block-size: 60vh;
  overflow-y: auto;
  background: #141F1C;
  border: 1px solid #31403C;
  border-radius: var(--radius-card);
  box-shadow: 0 18px 44px rgba(11, 20, 19, 0.6);
  display: none;
}
.lang-menu[data-open="true"] { display: block; }

/* Each row is a link now, so the LINK carries the layout. Left on the <li>,
   the flag, the name and the tick stopped being flex children and stacked,
   and the link took the browser's default underline. */
.lang-opt { display: block; }
.lang-opt > a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-block-size: 44px;
  padding-inline: 10px;
  border-radius: var(--radius-control);
  color: var(--mist);
  font-size: 15px;
  text-decoration: none;      /* a menu row, not prose */
  cursor: pointer;
}
.lang-opt > a:hover { background: #1B2925; color: var(--mist); }
.lang-opt > a[aria-current] { background: #1B2925; font-weight: 600; }
/* The name takes the free width so the tick sits hard against the end edge
   instead of floating beside a short word like "Deutsch". */
.lang-opt .lang-name { flex: 1 1 auto; }
.lang-opt .tick { color: var(--teal); font-size: 14px; visibility: hidden; }
.lang-opt > a[aria-current] .tick { visibility: visible; }
html[dir="rtl"] .lang-opt > a { font-size: 16px; letter-spacing: 0; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-block-size: 40px;
  padding-inline: 18px;
  border: 1px solid #31403C;
  border-radius: 999px;
  font-size: 14px;
  color: var(--mist);
  letter-spacing: 0.02em;
}
html[dir="rtl"] .pill { letter-spacing: 0; }
.pill::before {
  content: "";
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

h1 {
  margin: 28px 0 0;
  font-size: clamp(38px, 7.4vw, 82px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: var(--tracking-display);
  max-inline-size: 16ch;
  text-wrap: balance;
}
html[dir="rtl"] h1 { line-height: 1.3; max-inline-size: 18ch; }
h1 .accent { color: var(--teal); }

.lede {
  margin: 28px 0 0;
  max-inline-size: 60ch;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--grey-300);
}

.facts {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 14px 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  max-inline-size: 880px;
}
.facts li {
  display: flex;
  align-items: start;
  gap: 12px;
  font-size: 16px;
  color: var(--mist);
}
.facts svg { flex: none; inline-size: 20px; block-size: 20px; margin-block-start: 5px; }
/* A checkmark is not one of the icons that mirror in RTL. Mirrored, it
   reads as a stray chevron pointing the wrong way — see the Arabic hero.
   Directional icons (arrows, chevrons, carets) mirror; symbols do not. */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-block-start: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 52px;
  min-inline-size: 44px;
  padding-inline: 28px;
  border-radius: var(--radius-control);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--teal); color: #08201C; }
.btn-primary:hover { background: var(--mist); color: var(--ink); }
.btn-secondary { background: transparent; color: var(--mist); border-color: #31403C; }
.btn-secondary:hover { background: #12201D; color: var(--mist); border-color: var(--grey-500); }

/* ---------- beats ---------- */

.beat { padding-block: clamp(56px, 8vw, 104px); border-block-start: 1px solid #12201D; }

.beat-head { max-inline-size: 62ch; }

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 15px; }

.beat h2 {
  margin: 18px 0 0;
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
html[dir="rtl"] .beat h2 { line-height: 1.35; }

.beat p {
  margin: 20px 0 0;
  max-inline-size: 62ch;
  color: var(--grey-300);
  font-size: clamp(16px, 1.8vw, 18px);
  text-wrap: pretty;
}

figure {
  margin: 40px 0 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #12201D;
  border: 1px solid #1B2925;
}
figure img {
  inline-size: 100%;
  /* Reserve the slot before a lazy image arrives, so nothing below it jumps. */
  aspect-ratio: var(--ar, auto);
  object-fit: cover;
}

/* If an image ever fails to load, leave a quiet box of the right height
   rather than a broken-image glyph. The script adds this class on error. */
figure.pending { aspect-ratio: var(--ar, 14 / 9); }
figure.pending img { display: none; }


figcaption {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--grey-400);
  border-block-start: 1px solid #1B2925;
  background: var(--pitch);
}

/* ---------- presets ---------- */

.presets { padding-block: clamp(56px, 8vw, 104px); border-block-start: 1px solid #12201D; }
.preset-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin-block-start: 36px;
}
.preset-card {
  border: 1px solid #1B2925;
  border-radius: var(--radius-card);
  padding: 24px;
  background: #0F1A17;
}
.preset-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
html[dir="rtl"] .preset-card h3 { letter-spacing: 0; }
.preset-card p { margin: 0; font-size: 15px; color: var(--grey-400); }

/* ---------- footer ---------- */

.site-footer {
  border-block-start: 1px solid #12201D;
  padding-block: 48px 64px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--grey-400);
}
/* A 44px tap target is right, but applying it only to links gave link rows a
   44px box next to 30px text rows, so the three footer columns could not
   share a rhythm — the contact column sat 7px below the address beside it.
   Every footer line gets the same row instead, links and text alike. */
.site-footer a { display: inline-flex; align-items: center; }

/* ---------- consent banner ---------- */

.consent {
  position: fixed;
  inset-inline: 16px;
  inset-block-end: 16px;
  z-index: 50;
  max-inline-size: 640px;
  margin-inline: auto;
  background: #141F1C;
  border: 1px solid #31403C;
  border-radius: var(--radius-card);
  padding: 22px;
  display: none;
}
.consent[data-open="true"] { display: block; }
.consent p { margin: 0 0 18px; font-size: 15px; color: var(--mist); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.consent-actions .btn { flex: 1 1 160px; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 560px) {
  .header-row { gap: 10px; }
  .lang-label { display: none; }
  .lang-btn { min-inline-size: 44px; padding-inline: 10px; }
  .lang-btn .name { display: none; }
}

/* ---------------------------------------------------------------------------
   Section nav and back-to-top.

   The page is 19 screens on a desktop and 11 on a phone. Without a nav the
   only way to reach the Arabic section is to scroll past four full-page
   screenshots, and the only way back is to scroll all of it again.

   Logical properties throughout, so RTL needs no second stylesheet. Targets
   are 44px — the 40px control token is below the floor and does not belong
   on anything a thumb has to hit.
   --------------------------------------------------------------------------- */

/* The sticky header covers a heading that a #hash jump lands on. Reserve it. */
:where(#storefront, #browsing, #darkmode, #arabic, #product, #presets) {
  scroll-margin-block-start: 96px;
}
html { scroll-behavior: smooth; }

.site-nav { margin-inline: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 12px;
  border-radius: 8px;
  color: var(--grey-400);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.nav-list a:hover { color: var(--mist); background: rgba(237, 243, 241, .06); }
/* Set by the scroll spy, not by :target — :target survives a hash forever. */
.nav-list a[data-current] { color: var(--mist); background: rgba(78, 194, 174, .12); }

/* Arabic is never letter-spaced and never uppercased. */
html[dir="rtl"] .nav-list a { letter-spacing: 0; font-size: 15px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-block-size: 44px;
  padding-inline: 14px;
  border: 1px solid #1B2925;
  border-radius: 8px;
  background: transparent;
  color: var(--mist);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.nav-toggle svg { inline-size: 16px; block-size: 14px; flex: none; }

@media (max-width: 1099px) {
  .nav-toggle { display: flex; }
  .site-nav { margin-inline: 0; position: relative; }
  .nav-list {
    position: absolute;
    inset-block-start: calc(100% + 10px);
    inset-inline-start: 0;
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-inline-size: 208px;
    padding: 6px;
    border: 1px solid #1B2925;
    border-radius: 12px;
    background: #12201D;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  }
  .nav-list[data-open] { display: flex; }
}

/* Under ~520px the brand, a menu button and the language picker stop fitting
   on one row. The language picker wins: choosing a language you cannot read
   the page without beats jumping to a section. */
@media (max-width: 519px) {
  .nav-toggle span { display: none; }
  .nav-toggle { padding-inline: 12px; }
}

.to-top {
  position: fixed;
  inset-block-end: 20px;
  inset-inline-end: 20px;
  z-index: 45;
  display: grid;
  place-items: center;
  inline-size: 48px;
  block-size: 48px;
  border: 1px solid #1B2925;
  border-radius: 50%;
  background: rgba(18, 32, 29, .94);
  backdrop-filter: blur(10px);
  color: var(--mist);
  cursor: pointer;
}
/* display:grid beats the [hidden] default of display:none, so the button
   stayed painted at the top of the page while its .hidden property read
   true. Say it explicitly. */
.to-top[hidden] { display: none; }
.to-top svg { inline-size: 18px; block-size: 18px; }
.to-top:hover { background: var(--teal); color: #08201C; border-color: var(--teal); }
/* The arrow points up in both directions — it is not one of the icons that
   mirror in RTL, so the button is positioned with a logical property and the
   glyph is left alone. */

.sr-only {
  position: absolute;
  inline-size: 1px; block-size: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-list a { transition: none; }
}

/* ---------------------------------------------------------------------------
   FAQ and footer.

   The FAQ is here because answer engines quote text, not markup. The
   FAQPage schema helps them parse it; the visible copy is what actually
   gets cited, so it has to be on the page and it has to be true.
   --------------------------------------------------------------------------- */
.faq { padding-block: clamp(56px, 9vw, 104px); }
.faq h2 { max-inline-size: 22ch; margin-block-end: 40px; }

.faq-list { margin: 0; display: grid; gap: 0; }
.faq-item {
  padding-block: 28px;
  border-block-start: 1px solid #1B2925;
  display: grid;
  gap: 10px;
}
.faq-item:last-child { border-block-end: 1px solid #1B2925; }
.faq-item dt {
  font-weight: 600;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--mist);
}
.faq-item dd {
  margin: 0;
  max-inline-size: 72ch;
  color: var(--grey-500);
  line-height: var(--leading-body);
}
html[dir="rtl"] .faq-item dd { line-height: 1.95; }

@media (min-width: 860px) {
  .faq-item { grid-template-columns: minmax(0, 15fr) minmax(0, 20fr); gap: 32px; }
  .faq-item dt { margin: 0; }
}



/* ---------------------------------------------------------------------------
   Footer.

   Three columns on one baseline, every one of them aligned to the start edge.
   The previous version pushed two blocks to opposite edges and right-aligned
   the address between them, which left a ragged edge down the middle of a
   mostly empty row — the alignment read as an accident, because it was one.

   text-align: start, not left, so Arabic mirrors without a second rule.
   --------------------------------------------------------------------------- */
.site-footer { border-block-start: 1px solid #12201D; }
.footer-inner { padding-block: 48px 40px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px 40px;
  align-items: start;
  text-align: start;
}
.footer-col {
  display: grid;
  gap: 0;
  justify-items: start;
  font-style: normal;
  line-height: 1.75;
  color: var(--grey-500);
}
.footer-col > * {
  display: flex;
  align-items: center;
  min-block-size: 44px;
}
.footer-col strong { color: var(--mist); font-weight: 600; }
html[dir="rtl"] .footer-col { line-height: 1.95; }

/* Companies Act 2006 s.82 and the E-Commerce Regulations 2002 both require a
   UK company to show its registered number on its website. Quiet, not hidden. */
.footer-reg {
  margin: 32px 0 0;
  padding-block-start: 24px;
  border-block-start: 1px solid #12201D;
  color: var(--grey-400);
  font-size: 13px;
  text-align: start;
}
