:root {
  color-scheme: light;
  --ink: #211d47;
  --sub: #55536b;
  --line: #dcdbe7;
  --violet: #5142a4;
  --pale: #eeebfa;
  --paper: #f7f7fb;
  --aqua: #b9eadf;
  --good: #086451;
  --bad: #973f31;
  font:
    16px/1.55 "Inter",
    "Noto Sans Arabic",
    Arial,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
[lang="ar"] {
  font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  line-height: 1.75;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
}
h3 {
  font-size: 1.12rem;
}
[lang="ar"] :is(h1, h2, h3) {
  letter-spacing: normal;
  line-height: 1.5;
}
a {
  color: var(--violet);
}
button,
input,
select {
  font: inherit;
}
button,
a.button,
.button {
  cursor: pointer;
}
.button,
button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font-weight: 650;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
}
.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.button:hover,
button:hover {
  border-color: var(--violet);
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #8066d1;
  outline-offset: 3px;
}
.top {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.bar,
main,
.foot {
  max-width: 1180px;
  margin: auto;
  padding-inline: clamp(16px, 4vw, 54px);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 750;
}
.brand img,
.offline img {
  border-radius: 12px;
}
.brand small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 4px;
  color: var(--sub);
}
nav {
  display: flex;
  gap: 8px;
}
nav button,
.foot button,
.link {
  border: 0;
  background: transparent;
  color: var(--sub);
}
nav button.active {
  color: var(--violet);
  background: var(--pale);
}
.tools {
  display: flex;
  gap: 8px;
  align-items: center;
}
.locale {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 0.54rem;
  min-height: 44px;
  max-width: 7rem;
}
.nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
}
.nav-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}
main {
  padding-block: 32px 44px;
  min-height: 65vh;
}
section,
article,
aside,
div {
  min-width: 0;
}
.hero {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  overflow: hidden;
  background: #211d52;
  color: white;
  border-radius: 22px;
  margin-bottom: 30px;
}
.hero-text {
  padding: clamp(24px, 4.3vw, 52px);
}
.hero-text h1 {
  max-width: 15ch;
  margin: 0.55rem 0 1rem;
}
.hero-text p {
  color: #e8e5fa;
  max-width: 48ch;
}
.hero-text .button {
  margin-top: 1.4rem;
  background: #c4eee2;
  border-color: #c4eee2;
  color: #213c39;
}
.eyebrow,
.kicker {
  font-weight: 700;
  font-size: 0.79rem;
  letter-spacing: 0.06em;
}
.hero-text .eyebrow {
  color: #c7b8fd;
}
.art {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #4e4093, #292153 80%);
}
.art:before,
.art:after {
  content: "";
  position: absolute;
  border: 1px solid #8c83b0;
  border-radius: 50%;
  width: 70%;
  aspect-ratio: 1;
  transform: rotate(-27deg) scaleX(1.6);
  opacity: 0.45;
}
.art:after {
  transform: rotate(30deg) scaleY(1.7);
}
.art img {
  width: 62%;
  max-width: 240px;
  transform: rotate(-9deg);
  border-radius: 24%;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 45px #16103570;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(245px, 1fr);
  gap: 24px;
}
.stack {
  display: grid;
  gap: 14px;
  align-content: start;
}
.card,
.panel,
.row,
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.card,
.panel {
  padding: clamp(18px, 3vw, 30px);
}
.tint {
  background: #ebe7fa;
  border-color: #e0d9f5;
}
.muted,
.card small,
.sub {
  color: var(--sub);
}
.row {
  display: flex;
  width: 100%;
  gap: 15px;
  align-items: center;
  justify-content: flex-start;
  text-align: start;
  padding: 13px 16px;
}
.row b {
  display: block;
  line-height: 1.3;
}
.topic-symbol {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1.25rem;
  background: var(--pale);
  color: #564292;
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.row:nth-of-type(3n) .topic-symbol {
  background: #dff2ed;
  color: #216150;
}
.row:nth-of-type(3n + 1) .topic-symbol {
  background: #f4e8da;
  color: #795230;
}
.arrow {
  margin-inline-start: auto;
  font-size: 1.4rem;
}
.row small {
  font-weight: 400;
  color: var(--sub);
}
[dir="rtl"] .arrow {
  transform: scaleX(-1);
}
.title {
  margin-bottom: 20px;
}
.statline,
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.statline {
  padding-block: 9px;
  border-bottom: 1px solid var(--line);
}
.statline strong {
  font-size: 1.25rem;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: #3b3273;
  display: inline-block;
  background: var(--pale);
  border-radius: 7px;
  padding: 4px 9px;
}
.price {
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.05em;
}
.foot {
  padding-block: 20px 35px;
  border-top: 1px solid var(--line);
  font-size: 0.87rem;
  color: var(--sub);
}
.foot button {
  padding: 0.4rem 0.25rem;
}
.narrow {
  max-width: 760px;
  margin-inline: auto;
}
.card p + p,
.legal p + p {
  margin-top: 0.7rem;
}
label.field {
  display: grid;
  gap: 5px;
  font-weight: 650;
}
input,
select {
  max-width: 100%;
}
.field input {
  width: 100%;
  border: 1px solid #a8a6b8;
  color: var(--ink);
  border-radius: 9px;
  background: white;
  padding: 0.65rem 0.8rem;
  min-height: 44px;
}
.question {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 650;
  line-height: 1.45;
}
.fr {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
  white-space: pre-line;
  letter-spacing: normal;
}
.answers {
  display: grid;
  gap: 9px;
}
.answer {
  justify-content: flex-start;
  text-align: left;
  border-radius: 12px;
  gap: 14px;
  width: 100%;
  padding: 13px;
  font-weight: 500;
  opacity: 1 !important;
}
.letter {
  border: 1px solid currentColor;
  border-radius: 7px;
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.choice {
  border: 2px solid var(--violet);
  background: var(--pale);
}
.right,
.success {
  background: #e0f4eb;
  color: var(--good);
}
.wrong {
  background: #fae7e1;
  color: var(--bad);
}
.feedback {
  border-inline-start: 4px solid currentColor;
  padding: 12px 16px;
  border-radius: 6px;
}
.feedback .fr {
  color: var(--ink);
}
.figure {
  max-width: 100%;
  max-height: 40vh;
  object-fit: contain;
}
.timer {
  position: sticky;
  top: 8px;
  z-index: 3;
  background: var(--ink);
  color: white;
  width: max-content;
  border-radius: 9px;
  padding: 6px 12px;
  font-variant-numeric: tabular-nums;
}
.timer bdi {
  margin-inline-start: 8px;
}
.error {
  color: var(--bad);
}
.offline {
  padding-top: 12vh;
}
.legal p {
  max-width: 80ch;
}
.review-line {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}
.metric progress {
  grid-column: 1/-1;
  width: 100%;
  height: 0.55rem;
  accent-color: var(--violet);
}
#notice:not(:empty) {
  position: fixed;
  z-index: 8;
  bottom: 18px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: #252044;
  color: #fff;
  padding: 12px 20px;
  max-width: min(92vw, 600px);
  width: max-content;
  border-radius: 12px;
}
html[dir="rtl"] #notice:not(:empty) {
  transform: translateX(50%);
}
.errorbox {
  background: #fae9e3;
  border-radius: 10px;
  padding: 10px 14px;
  color: #7f2e25;
}
.offline,
.card,
.row,
.panel,
.foot,
.brand,
.button,
button {
  overflow-wrap: anywhere;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
button[hidden],
[hidden] {
  display: none !important;
}
@media (max-width: 820px) {
  .bar {
    flex-wrap: wrap;
    padding-block: 10px;
    min-height: 0;
  }
  .bar nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .columns {
    grid-template-columns: 1.4fr 1fr;
    gap: 15px;
  }
  .bar nav button {
    font-size: 0.88rem;
  }
  .brand small {
    display: none;
  }
}
@media (max-width: 640px) {
  .bar {
    flex-wrap: nowrap;
    gap: 5px;
  }
  .brand {
    max-width: 48%;
    font-size: 0.88rem;
    gap: 6px;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .tools {
    gap: 4px;
  }
  .tools button {
    padding-inline: 9px;
  }
  .tools .account-label {
    display: none;
  }
  .locale {
    font-size: 0.85rem;
    max-width: 94px;
  }
  .bar nav {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 5px 5px calc(5px + env(safe-area-inset-bottom));
    gap: 2px;
  }
  .bar nav button {
    padding: 4px 1px;
    flex-direction: column;
    line-height: 1.2;
    font-size: 0.72rem;
    gap: 2px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) 23%;
    border-radius: 16px;
    margin-bottom: 23px;
  }
  .hero-text {
    padding: 22px 16px;
  }
  .hero-text h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.5rem);
  }
  .hero-text p {
    font-size: 0.93rem;
  }
  .art img {
    width: 132%;
    max-width: none;
    border-radius: 20%;
  }
  .art:before,
  .art:after {
    width: 150%;
  }
  main {
    padding-top: 18px;
  }
  .foot {
    padding-bottom: 90px;
  }
  .art {
    overflow: hidden;
  }
  .home-grid {
    gap: 20px;
  }
  .row {
    padding: 12px;
    gap: 10px;
  }
  .topic-symbol {
    width: 37px;
    height: 37px;
  }
  .row b {
    font-size: 0.95rem;
  }
  #notice:not(:empty) {
    bottom: 80px;
  }
  .bar .tools {
    margin-inline-start: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@media print {
  .bar,
  .foot,
  button,
  #notice {
    display: none !important;
  }
  .card {
    border: 0;
  }
  body {
    background: white;
  }
}
.bar nav,
.tools {
  flex-shrink: 0;
}
.bar nav button,
.bar .tools button {
  overflow-wrap: normal;
  white-space: nowrap;
}
.brand {
  overflow-wrap: normal;
}
.brand img {
  flex: none;
}
.brand span {
  min-width: 0;
}
.bar nav {
  gap: 3px;
}
.bar nav button {
  padding-inline: 0.7rem;
}
.bar .tools {
  gap: 5px;
}
@media (min-width: 821px) and (max-width: 1050px) {
  .bar {
    flex-wrap: wrap;
    padding-block: 10px;
  }
  .bar nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .brand {
    max-width: none;
    flex: 1;
    font-size: 0.81rem;
  }
  .bar nav button {
    white-space: normal;
    padding-inline: 1px;
  }
  .brand small {
    display: none;
  }
}
#notice {
  pointer-events: none;
}
@media (max-width: 640px) {
  html {
    scroll-padding-bottom: 92px;
  }
  main :is(button, a, input),
  .foot button {
    scroll-margin-block: 14px 92px;
  }
  .foot {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }
}
