/* Final CTA (#get-started): two doors. Prefix: ct- */

.ct { padding-block-end: clamp(64px, 7vw, 112px); }

.ct-doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.ct-door {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: clamp(540px, 46vw, 640px);
  padding: clamp(28px, 3.6vw, 56px);
  border-radius: var(--r-xl);
  color: #fff;
}
.ct-door__body { position: relative; z-index: 2; display: grid; justify-items: start; }

.ct-kicker {
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.45;
  text-wrap: balance;
}
.ct-h {
  margin-block-start: 14px;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.6rem + 3.6vw, 5rem);
  line-height: .98;
  text-wrap: balance;
}
:lang(ar) .ct-h { line-height: 1.24; letter-spacing: 0; }

/* ---------- Blue door ---------- */
.ct-door--z {
  background: var(--z-blue);
  box-shadow: 0 30px 60px -30px rgba(51, 92, 255, .55);
}
.ct-door--z .ct-kicker { color: rgba(255, 255, 255, .78); }
.ct-h--z { font-weight: 600; letter-spacing: -.03em; }
.ct-btn { margin-block-start: clamp(24px, 2.6vw, 36px); min-height: 52px; padding-inline: 24px; box-shadow: 0 10px 24px -10px rgba(10, 20, 80, .55); }
.ct-btn:hover { --btn-bg: var(--z-blue-50); }
.ct-btn .ico { width: 18px; height: 18px; }
.ct-door--z :focus-visible { outline-color: #fff; }

/* The Zimam "Z" ribbon, drawn large like a loose rein across the corner. */
.ct-rein {
  position: absolute;
  z-index: 0;
  inset-block-start: 36%;
  inset-inline-end: 8%;
  width: 30%;
  rotate: -8deg;
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.ct-rein__path { fill: rgba(255, 255, 255, .1); stroke: none; }

/* Dictionary entry */
.ct-dict {
  position: relative;
  z-index: 2;
  margin-block-start: auto;
  align-self: flex-start;
  width: min(84%, 25rem);
  padding: 22px 24px 20px;
  border-radius: var(--r-md);
  background: #FFFDF8;
  color: var(--ink);
  rotate: -2deg;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 40px -18px rgba(10, 20, 80, .55);
}
.ct-dict::before {
  /* thin ruled line, like a printed dictionary page */
  content: "";
  position: absolute;
  inset-inline: 24px;
  top: 64px;
  height: 1px;
  background: rgba(10, 10, 10, .12);
}
:lang(ar) .ct-dict::before { top: 70px; }
.ct-dict__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 2px;
  min-height: 42px;
  margin-block-end: 18px;
}
.ct-dict__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -.01em;
  line-height: 1.2;
}
:lang(ar) .ct-dict__word { font-size: 1.875rem; letter-spacing: 0; line-height: 1.35; }
.ct-dict__ar {
  font-family: "IBM Plex Sans Arabic", var(--font-ui);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--g-600);
}
.ct-dict__pos {
  font-family: var(--font-ui);
  font-size: .9375rem;
  font-style: italic;
  color: var(--g-500);
}
:lang(ar) .ct-dict__pos { font-style: normal; }
.ct-dict__senses { display: grid; gap: 8px; }
.ct-dict__senses li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--g-800);
  text-wrap: pretty;
}
:lang(ar) .ct-dict__senses li { line-height: 1.75; }
.ct-dict__n {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--z-blue);
  line-height: 1.9;
}
:lang(ar) .ct-dict__n { line-height: 2.2; }

/* ---------- Plum door ---------- */
.ct-door--b {
  background: var(--b-plum);
  --ill-ink: #fff;
  --ill-paper: var(--b-plum-800);
  --ill-mute: var(--b-plum-700);
}
.ct-door--b .ct-kicker { color: var(--b-lilac); }
.ct-h--b { font-size: clamp(2.75rem, 1.5rem + 4vw, 5.5rem); }
:lang(ar) .ct-h--b { font-weight: 880; }
.ct-sub {
  margin-block-start: 18px;
  max-width: 21rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .74);
  text-wrap: pretty;
}

.ct-get {
  position: relative;
  z-index: 2;
  margin-block-start: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.ct-badges { display: grid; gap: 12px; justify-items: start; }
.ct-badge {
  display: block;
  border-radius: 10px;
  transition: transform var(--t-fast) var(--ease-out);
}
.ct-badge:hover { transform: translateY(-2px); }
.ct-badge:active { transform: scale(.98); }
.ct-badge img { height: 48px; width: auto; }

.ct-qr { display: grid; justify-items: center; gap: 10px; }
.ct-qr__tile {
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  color: var(--b-plum);
  rotate: 2.5deg;
  box-shadow: 0 20px 30px -16px rgba(0, 0, 0, .5);
}
.ct-qr__svg { width: 100%; height: 100%; shape-rendering: crispEdges; }
.ct-qr__cap { font-size: .8125rem; font-weight: 500; color: rgba(255, 255, 255, .7); }

/* Stickers (white ink on plum). In flow, between the headline and the store links, so they never sit on text. */
.ct-door__body { order: 0; }
.ct-stickers {
  order: 1;
  position: relative;
  z-index: 1;
  margin-block: auto;
  padding-block: 20px 30px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
}
.ct-get { order: 2; margin-block-start: 0; }
.ct-st { position: relative; display: block; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .28)); }
.ct-st .ill { width: 100%; height: auto; }
.ct-st--heart { order: 2; width: clamp(100px, 10vw, 144px); rotate: 7deg; margin-inline-end: 2%; }
.ct-st--coin { order: 1; width: clamp(54px, 5.2vw, 76px); rotate: -12deg; margin-block-end: -6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) and (min-width: 768px) {
  .ct-get { flex-direction: column; align-items: flex-start; }
  .ct-stickers { padding-block-end: 52px; }
  .ct-qr { position: absolute; inset-block-end: 0; inset-inline-end: 0; }
  .ct-qr__tile { width: 104px; height: 104px; }
}
@media (max-width: 767px) {
  .ct-doors { grid-template-columns: minmax(0, 1fr); }
  .ct-door { min-height: 0; border-radius: var(--r-lg); }
  .ct-door--z { padding-block-end: 32px; }
  .ct-dict { margin-block-start: 44px; align-self: stretch; width: auto; }
  .ct-rein { display: none; }
  .ct-stickers { order: -1; margin: 0 0 18px; padding: 0; justify-content: flex-start; }
  .ct-st--heart { order: 1; width: 112px; rotate: -6deg; margin: 0; }
  .ct-st--coin { order: 2; width: 62px; rotate: 10deg; margin: 0 0 4px; margin-inline-start: 6px; }
  .ct-get { margin-block-start: 32px; }
}
@media (max-width: 599px) {
  /* Nobody scans a QR code with the phone it is shown on; the store badges do the job here. */
  .ct-qr { display: none; }
  .ct-badges { grid-auto-flow: row; }
}
