@font-face {
  font-family: Rubik;
  src: url("/fonts/Rubik-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  color: #122f49;
  background: #fafbfc;
  font-family: Rubik, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
*, ::before, ::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 3px solid #397cb6; outline-offset: 4px; }
::selection { background: #d6eafb; color: #122f49; }

.coming-soon {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto minmax(min-content, 1fr);
  gap: 24px;
  min-height: 100svh;
  padding: 30px 3.3vw 24px;
  overflow: clip;
  background: #fafbfc;
}
.brand-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 88% 45%, #f1f3f6 0%, transparent 60%);
}
.brand-background::before {
  content: "";
  position: absolute;
  inset: -3%;
  background: url("./esc-background-en.svg?v=flow-1") center / cover no-repeat;
  transform: translateZ(0);
  will-change: transform;
}
/* Keep foreground paint independent of background animation in Chromium. */
.masthead, .announcement, .footer {
  transform: translateZ(0);
  backface-visibility: hidden;
}
.masthead {
  position: relative;
  z-index: 1;
  grid-row: 1;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 100px; height: 56px; object-fit: contain; }
.brand-name { padding-inline-start: 14px; border-inline-start: 1px solid #b5cadc; font-size: 16px; color: #38617d; }
.language-switcher {
  display: flex;
  flex-shrink: 0;
  direction: ltr;
  padding: 3px;
  border: 1px solid #c9d8e5;
  border-radius: 999px;
  background: #ffffffd9;
}
.language-switcher a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.language-switcher a:hover { background: #e4f0fa; }
.language-switcher a[aria-current="page"] { background: #224d7a; color: #fff; }

.announcement {
  position: relative;
  z-index: 2;
  isolation: isolate;
  grid-row: 2;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 1100px;
  padding-block: 64px;
  text-align: center;
}
.announcement::before {
  content: "";
  position: absolute;
  inset: -48px -6vw;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse closest-side, #fafbfc 82%, #fafbfc00 100%);
}
.announcement h1, .announcement p { position: relative; z-index: 1; }
h1 { margin: 0; font-size: clamp(52px, 5.6vw, 112px); font-weight: 500; line-height: 1.13; letter-spacing: -0.045em; }
h1 span { display: block; }
h1 span:last-child { color: #2e6393; }
.announcement p { margin: 28px 0 0; font-size: clamp(21px, 1.8vw, 34px); line-height: 1.5; letter-spacing: -0.025em; color: #526d81; }
html[lang="ar"] h1 { line-height: 1.5; letter-spacing: 0; }
html[lang="ar"] .announcement p { letter-spacing: 0; }
html[dir="rtl"] .announcement { text-align: center; }
html[dir="rtl"] .brand-background::before { background-image: url("./esc-background-ar.svg?v=flow-1"); }

.footer {
  position: relative;
  z-index: 1;
  grid-row: 3;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: clamp(12px, 0.8vw, 16px);
  line-height: 1.6;
  color: #657d90;
}
.footer a { text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: #224d7a; }


@media (max-width: 1000px) {
  h1 { font-size: clamp(44px, 6.2vw, 64px); }
  .brand-background::before { background-image: url("./esc-background-tablet-en.svg?v=flow-1"); }
  html[dir="rtl"] .brand-background::before { background-image: url("./esc-background-tablet-ar.svg?v=flow-1"); }
}
@media (max-width: 680px) {
  .coming-soon { padding: 20px; gap: 20px; }
  .brand { gap: 8px; }
  .brand-logo { width: 68px; height: 40px; }
  .brand-name { padding-inline-start: 8px; font-size: 12px; max-width: 78px; }
  .language-switcher a { min-height: 38px; padding: 8px 10px; font-size: 12px; }
  .announcement, html[dir="rtl"] .announcement {
    width: 100%;
    max-width: 100%;
    margin-inline-start: 0;
    padding-block: 64px;
    text-align: center;
  }
  h1 { font-size: clamp(34px, 8.5vw, 56px); }
  .announcement::before { inset: -16px -24px; }
  .announcement p { max-width: 300px; margin: 24px auto 0; font-size: clamp(20px, 4.8vw, 26px); }
  .brand-background::before, html[dir="rtl"] .brand-background::before { background-image: url("./esc-background-mobile.svg?v=flow-1"); }
  .footer { flex-direction: column; gap: 8px; text-align: center; font-size: 12px; }
}
@media (max-height: 500px) and (min-width: 681px) {
  .coming-soon { padding-block: 16px; gap: 12px; }
  .announcement { padding-block: 24px; }
  h1 { font-size: 44px; }
  .announcement p { font-size: 22px; margin-top: 16px; }
}
