/* ==========================================================================
   Redix Digital: the digital business card (digital-business-cards.html,
   tools/build-cards.js, cards.js)
   In the design of the home page: v2.css draws the bar, the menu, the footer,
   the section titles, the questions and the direct ways; page.css puts the
   home page's sky behind it all. The bold moment is the opening: the three
   real cards stand as a deck on a pool of light, a press on a kind of
   business brings its card to the front, and with a mouse the deck leans
   toward it. Around it everything is quiet and each section unlike the one
   beside it, and each across the whole width (Roei, 2026-10-21: no empty
   half on a wide screen): paper against the screen (a tired paper card and a
   real card on a phone, "מול" between), what is in a card (a real card, big,
   with four things on each side), three steps as three panels with pictures
   on a line of light, one price beside the reasons, the questions, and the
   close with the three real cards in a row.
   ========================================================================== */

.cd > section {
  position: relative;
  padding: clamp(72px, 12vh, 140px) var(--pad);
}

.cd > section > * {
  position: relative;
  z-index: 3;
}

/* --- The opening ----------------------------------------------------------------------------- */

.cd > .cd-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: calc(76px + clamp(40px, 10vh, 112px) - 50px) var(--pad) clamp(56px, 10vh, 120px);
}

.cd-title {
  margin: 0;
  font-size: clamp(2.75rem, 5.4vw, 5.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.cd-title span { display: block; }
.cd-title span:first-child { font-weight: 200; color: var(--title-thin); }
.cd-title span:last-child { font-weight: 800; color: var(--text); }

.cd-lead {
  max-width: 32em;
  margin: clamp(20px, 4vh, 32px) 0 0;
  padding-top: clamp(16px, 3vh, 24px);
  border-top: 1px solid var(--line);
  font-size: clamp(1.0625rem, 1.3vw, 1.3125rem);
  font-weight: 300;
  color: var(--text-mid);
  text-wrap: pretty;
}

.cd-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: clamp(18px, 3vh, 28px) 0 0;
}

.cd-price b {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  color: var(--cyan-hi);
  font-variant-numeric: tabular-nums;
}

.cd-price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-mid);
}

.cd-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3.4vh, 32px);
}

.cd-soon {
  max-width: 34em;
  margin: 14px 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-low);
}

/* The deck: three cards on a pool of light, the chosen one in front */
.cd-show {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vh, 28px);
}

.cd-stage {
  position: relative;
  width: 100%;
  height: clamp(440px, 46vw, 640px);
  perspective: 1400px;
}

/* The pool of light the deck stands on: the brightness of the horizon, gathered under it */
.cd-stage__glow {
  position: absolute;
  left: 50%;
  bottom: -2%;
  width: 78%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(125, 240, 244, 0.42), rgba(0, 196, 204, 0.16) 55%, rgba(0, 196, 204, 0) 100%);
  transform: translateX(-50%);
  filter: blur(6px);
  pointer-events: none;
}

.cd-deck {
  --rx: 0deg;
  --ry: 0deg;
  position: absolute;
  inset: 0;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease-out-strong);
}

.cd-deck__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: 94%;
  border-radius: clamp(20px, 2.2vw, 32px);
  box-shadow: 0 0 0 1px rgba(125, 240, 244, 0.2), 0 46px 80px -34px rgba(0, 0, 0, 0.9);
  transform-origin: 50% 110%;
  transition: transform 720ms var(--ease-expo), filter 720ms var(--ease-expo), opacity 720ms var(--ease-expo);
}

/* In front; then behind it on one side and the other, smaller and in the dark */
.cd-deck__card[data-pos="0"] {
  z-index: 3;
  transform: translate(-50%, -50%);
}

.cd-deck__card[data-pos="1"] {
  z-index: 2;
  transform: translate(-50%, -50%) translateX(-34%) rotate(-10deg) scale(0.86);
  filter: brightness(0.5) saturate(0.7);
}

.cd-deck__card[data-pos="2"] {
  z-index: 1;
  transform: translate(-50%, -50%) translateX(34%) rotate(10deg) scale(0.86);
  filter: brightness(0.5) saturate(0.7);
}

/* The kinds of business: the press that brings a card to the front */
.cd-pick {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.cd-pick__label {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-mid);
}

.cd-pick__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.cd-pick__btn {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: rgba(7, 11, 26, 0.6);
  box-shadow: inset 0 0 0 1px rgba(194, 205, 232, 0.32);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.cd-pick__btn[aria-pressed="true"] {
  background: rgba(0, 196, 204, 0.16);
  box-shadow: inset 0 0 0 2px var(--cyan-hi);
  color: var(--cyan-hi);
}

.cd-pick__btn:focus-visible {
  outline: 3px solid var(--cyan-hi);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .cd-pick__btn:not([aria-pressed="true"]):hover { box-shadow: inset 0 0 0 1px var(--cyan-hi); }
}

/* --- Paper against the screen, across the whole width ------------------------------------------
   Two halves and "מול" between them. Each half: a big object, its name, and four lines that stand
   level with the other half's four (each line keeps one height). */

/* the paper card turns and moves; it stays inside the width of a phone */
.cd-vs { overflow-x: clip; }

.cd-vs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  margin-top: clamp(40px, 7vh, 84px);
}

.cd-vs__side {
  display: grid;
  align-content: start;
  justify-items: center;
}

.cd-vs__art {
  position: relative;
  display: grid;
  place-items: center;
  grid-template-rows: minmax(0, 1fr);   /* the phone is as tall as the place, not its picture */
  width: 100%;
  height: clamp(300px, 27vw, 440px);
}

/* A paper card: the only warm thing on the page, and tired. The old number is crossed out by hand,
   an older card under it */
.cd-paper {
  position: relative;
  display: grid;
  align-content: center;
  gap: 4px;
  width: clamp(300px, 25vw, 460px);
  aspect-ratio: 1.75;
  padding: 0 8%;
  border-radius: 6px;
  background: linear-gradient(170deg, #f1ece2 0%, #e2dccf 100%);
  box-shadow: 0 34px 60px -26px rgba(0, 0, 0, 0.95);
  color: #2b2b33;
  transform: rotate(-4deg);
  filter: saturate(0.85) brightness(0.92);
}

.cd-vs__art > .cd-paper { grid-area: 1 / 1; }

.cd-paper--under {
  background: linear-gradient(170deg, #ddd6c8 0%, #cbc3b3 100%);
  transform: translate(6%, 7%) rotate(5deg);
  filter: saturate(0.7) brightness(0.62);
}

.cd-paper b { font-size: clamp(1.375rem, 1.9vw, 2.125rem); font-weight: 800; line-height: 1.15; }
.cd-paper span { font-size: clamp(0.875rem, 1vw, 1.125rem); color: #5a5a66; }
.cd-paper__tel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 12%; font-variant-numeric: tabular-nums; }
.cd-paper__tel s { text-decoration: line-through 2px #b73a2c; }
.cd-paper__tel em { font-style: italic; font-weight: 700; color: #2a48a6; transform: rotate(-5deg); }

/* The digital card: a real one on a phone, in its own light, with what it just did */
.cd-vs__halo {
  position: absolute;
  inset: 4% 18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 196, 204, 0.3), rgba(0, 196, 204, 0));
}

.cd-vs__phone {
  position: relative;
  width: auto;
  height: 100%;
  transform: rotate(4deg);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
}

.cd-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(125, 240, 244, 0.42);
  border-radius: 14px;
  background: rgba(10, 18, 40, 0.92);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45), 0 0 28px rgba(0, 196, 204, 0.18);
  font-size: clamp(0.875rem, 1vw, 1rem);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.cd-chip svg { width: 18px; height: 18px; color: var(--cyan-hi); }
.cd-chip--1 { top: 18%; inset-inline-start: calc(50% + clamp(70px, 8vw, 130px)); }
.cd-chip--2 { bottom: 16%; inset-inline-end: calc(50% + clamp(70px, 8vw, 130px)); }

/* מול: a line of light between the halves, and its word level with the objects */
.cd-vs__mid {
  position: relative;
  width: clamp(72px, 7vw, 130px);
}

.cd-vs__mid::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: linear-gradient(rgba(125, 240, 244, 0), rgba(125, 240, 244, 0.45) 30%, rgba(125, 240, 244, 0.45) 70%, rgba(125, 240, 244, 0));
}

.cd-vs__mid span {
  position: absolute;
  top: calc(clamp(300px, 27vw, 440px) / 2);
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(56px, 4.6vw, 76px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0a1027;
  box-shadow: inset 0 0 0 1.5px var(--cyan-hi), 0 0 30px rgba(0, 196, 204, 0.35);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 800;
  color: var(--cyan-hi);
  transform: translate(-50%, -50%);
}

.cd-vs__name {
  margin: clamp(30px, 5vh, 48px) 0 0;
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
}

.cd-vs__side--paper .cd-vs__name { color: var(--text-mid); }

.cd-vs__list {
  display: grid;
  width: min(100%, 470px);
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.cd-vs__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.0625rem, 1.15vw, 1.1875rem);
  line-height: 1.45;
  color: var(--text);
}

.cd-vs__list svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--cyan-hi);
}

.cd-vs__list--no li { color: var(--text-mid); }
.cd-vs__list--no svg { color: var(--text-low); }

/* --- What is in a card: a real card, big, in the middle, and four things on each side ----------- */

.cd-what { overflow-x: clip; background: var(--veil); }

.cd-what__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(240px, 18vw, 320px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 80px);
  margin-top: clamp(40px, 7vh, 84px);
}

.cd-feats {
  display: grid;
  gap: clamp(14px, 2vh, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cd-feat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
  padding: clamp(18px, 1.6vw, 24px);
  border: 1px solid rgba(125, 240, 244, 0.1);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(22, 32, 66, 0.72), rgba(9, 14, 32, 0.55));
  transition: border-color 300ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .cd-feat:hover { border-color: rgba(125, 240, 244, 0.4); }
}

.cd-feat__ic {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(125, 240, 244, 0.1);
  box-shadow: inset 0 0 0 1px rgba(125, 240, 244, 0.32);
  color: var(--cyan-hi);
}

.cd-feat__ic svg { width: 24px; height: 24px; }

.cd-feat__t {
  margin: 2px 0 0;
  font-size: clamp(1.125rem, 1.35vw, 1.375rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

.cd-feat__d {
  margin: 6px 0 0;
  font-size: clamp(1rem, 1.05vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text-mid);
}

.cd-what__phone {
  position: relative;
  display: grid;
  place-items: center;
}

.cd-what__glow {
  position: absolute;
  inset: -10% -40%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 196, 204, 0.32), rgba(0, 196, 204, 0.08) 55%, rgba(0, 196, 204, 0));
}

.cd-what__shot {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.65));
  animation: cd-float 7s ease-in-out infinite alternate;
}

@keyframes cd-float { from { translate: 0 6px; } to { translate: 0 -10px; } }

/* --- Three steps: three panels across the width, each with its picture, on one line of light ---- */

.cd-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  margin: clamp(40px, 7vh, 80px) 0 0;
  padding: 26px 0 0;
  list-style: none;
}

/* The line the numbers stand on, from the first panel to the last */
.cd-route::before {
  content: "";
  position: absolute;
  top: 25px;
  inset-inline: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to left, rgba(125, 240, 244, 0.75), rgba(125, 240, 244, 0.12));
}

html[dir="ltr"] .cd-route::before { background: linear-gradient(to right, rgba(125, 240, 244, 0.75), rgba(125, 240, 244, 0.12)); }

.cd-stop {
  position: relative;
  display: grid;
  align-content: start;
  padding: 44px clamp(20px, 2vw, 32px) clamp(24px, 2.4vw, 36px);
  border: 1px solid rgba(125, 240, 244, 0.1);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(22, 32, 66, 0.72), rgba(9, 14, 32, 0.55));
}

.cd-stop__n {
  position: absolute;
  top: -26px;
  inset-inline-start: clamp(20px, 2vw, 32px);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0a1027;
  box-shadow: inset 0 0 0 1.5px var(--cyan-hi), 0 0 22px rgba(125, 240, 244, 0.3);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cyan-hi);
}

.cd-stop__t {
  margin: 26px 0 0;
  font-size: clamp(1.375rem, 1.8vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

.cd-stop__d {
  margin: 8px 0 0;
  font-size: clamp(1.0625rem, 1.1vw, 1.1875rem);
  line-height: 1.6;
  color: var(--text-mid);
}

/* the pictures of the steps */
.cd-art {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(200px, 15vw, 250px);
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(125, 240, 244, 0.1), rgba(125, 240, 244, 0) 70%), rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px rgba(194, 205, 232, 0.1);
}

/* 1: the details, being filled in */
.cd-art--form { place-items: stretch; align-content: center; gap: 10px; padding: 0 clamp(18px, 12%, 64px); }

.cd-fld {
  position: relative;
  display: grid;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(194, 205, 232, 0.16);
}

.cd-fld small { font-size: 0.75rem; line-height: 1.3; color: var(--text-low); }
.cd-fld b { justify-self: start; font-size: 1rem; font-weight: 700; color: var(--text); }
.cd-fld--on { box-shadow: inset 0 0 0 1.5px var(--cyan-hi), 0 0 20px rgba(0, 196, 204, 0.22); }

.cd-caret {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 14px;
  width: 2px;
  height: 18px;
  background: var(--cyan-hi);
  animation: cd-blink 1s steps(2, jump-none) infinite;
}

@keyframes cd-blink { 50% { opacity: 0; } }

/* 2: the card, live, with a link of its own */
.cd-art__card {
  position: absolute;
  top: 16px;
  left: 50%;
  width: auto;
  height: 160%;
  transform: translateX(-50%);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.55));
}

.cd-live {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(10, 18, 40, 0.92);
  box-shadow: inset 0 0 0 1px rgba(61, 220, 132, 0.45);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.cd-live i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; animation: cd-ping 1.6s ease-out infinite; }
@keyframes cd-ping { from { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); } to { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } }

.cd-link {
  position: absolute;
  bottom: 16px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(125, 240, 244, 0.45);
  border-radius: 12px;
  background: rgba(10, 18, 40, 0.94);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  transform: translateX(-50%);
}

.cd-link svg { width: 18px; height: 18px; color: var(--cyan-hi); }

/* 3: the ways it goes out, round the sign of sharing */
.cd-share__hub,
.cd-share {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.cd-share__hub {
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  background: #0a1027;
  box-shadow: inset 0 0 0 1.5px var(--cyan-hi), 0 0 36px rgba(0, 196, 204, 0.35);
  color: var(--cyan-hi);
  transform: translate(-50%, -50%);
}

.cd-share__hub::before {
  content: "";
  position: absolute;
  inset: -46px;
  border: 1px dashed rgba(125, 240, 244, 0.3);
  border-radius: 50%;
}

.cd-share__hub svg { width: 30px; height: 30px; }

.cd-share {
  width: 54px;
  height: 54px;
  background: rgba(10, 18, 40, 0.94);
  box-shadow: inset 0 0 0 1px rgba(125, 240, 244, 0.4), 0 12px 24px rgba(0, 0, 0, 0.45);
  color: var(--text);
}

.cd-share svg { width: 24px; height: 24px; }
.cd-share--wa { top: calc(50% - 88px); left: calc(50% - 27px); background: #25d366; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45); color: #fff; }
.cd-share--mail { top: calc(50% + 22px); left: calc(50% + 50px); }
.cd-share--qr { top: calc(50% + 22px); left: calc(50% - 104px); }

/* --- One price, and the reasons ------------------------------------------------------------------ */

.cd-plan {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 110px);
}

.cd-plan__card {
  padding: clamp(26px, 3vw, 44px);
}

.cd-plan__title {
  margin: 0;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  font-weight: 800;
  color: var(--text);
}

.cd-plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 14px 0 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.cd-plan__price b {
  font-size: clamp(3.25rem, 5vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan-hi);
  font-variant-numeric: tabular-nums;
}

.cd-plan__price span {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-mid);
}

.cd-plan__list {
  display: grid;
  gap: 2px;
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
}

.cd-plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text);
}

.cd-plan__list svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--cyan-hi);
}

.cd-why__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vh, 36px) clamp(24px, 3vw, 48px);
  margin: clamp(28px, 5vh, 48px) 0 0;
  padding: 0;
  list-style: none;
}

.cd-why__list li {
  padding-top: 16px;
  border-top: 2px solid rgba(125, 240, 244, 0.5);
}

.cd-why__list h3 {
  margin: 0;
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
  font-weight: 800;
  color: var(--text);
}

.cd-why__list p {
  margin: 6px 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-mid);
}

/* --- The questions and the close ----------------------------------------------------------------- */

.cd > .cd-faq { padding-top: clamp(32px, 6vh, 72px); }

/* The close, across the width: the words and the ways on one side, the three real cards on the
   other, standing in a row in their light, the middle one up front */
.cd > .cd-end {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 96px);
  padding-bottom: clamp(96px, 16vh, 180px);
}

.cd-end .reach { margin-top: clamp(20px, 4vh, 36px); }

.cd-end__fan {
  position: relative;
  height: clamp(420px, 36vw, 620px);
}

.cd-end__glow {
  position: absolute;
  left: 50%;
  bottom: -4%;
  width: 92%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(125, 240, 244, 0.4), rgba(0, 196, 204, 0.14) 55%, rgba(0, 196, 204, 0));
  transform: translateX(-50%);
  filter: blur(6px);
}

.cd-end__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 84%;
  filter: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.6)) brightness(0.72);
  transform: translate(-50%, -50%);
}

.cd-end__card:nth-of-type(1) { transform: translate(-50%, -46%) translateX(-78%) rotate(-7deg); }
.cd-end__card:nth-of-type(2) { transform: translate(-50%, -46%) translateX(78%) rotate(7deg); }
.cd-end__card:nth-of-type(3) { z-index: 2; height: 96%; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.7)); }

/* --- Coming into view: the halves, the lists, the panels and the cards rise as they arrive
   (cards.js marks them; without it, or with the motion stopped, they are simply there) --------- */

.cd-rise [data-rise] { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 900ms var(--ease-expo); }
.cd-rise [data-rise].is-in { opacity: 1; transform: none; }
.cd-rise .cd-vs__side--screen[data-rise],
.cd-rise .cd-feats--b[data-rise],
.cd-rise .cd-stop[data-rise]:nth-child(2) { transition-delay: 140ms; }
.cd-rise .cd-stop[data-rise]:nth-child(3) { transition-delay: 280ms; }

/* the loops rest while their section is off the screen */
.is-off :is(.cd-what__shot, .cd-caret, .cd-live i) { animation-play-state: paused; }

/* --- Narrower screens ---------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  /* the card goes above the eight things, which stand in two columns under it */
  .cd-what__stage { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(28px, 5vh, 48px); }
  .cd-what__phone { grid-column: 1 / -1; grid-row: 1; width: clamp(220px, 34vw, 300px); justify-self: center; }
}

@media (max-width: 1000px) {
  .cd > .cd-top { grid-template-columns: minmax(0, 1fr); }
  .cd-stage { height: clamp(420px, 96vw, 600px); }
  .cd-plan { grid-template-columns: minmax(0, 1fr); }
  .cd > .cd-end { grid-template-columns: minmax(0, 1fr); }
  .cd-end__fan { height: clamp(340px, 80vw, 520px); }
}

@media (max-width: 900px) {
  /* The steps stand one under the other, the line running down beside their numbers */
  .cd-route { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 26px; }

  .cd-route::before {
    top: 26px;
    bottom: 0;
    inset-inline: 25px auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, rgba(125, 240, 244, 0.7), rgba(125, 240, 244, 0.12));
  }

  html[dir="ltr"] .cd-route::before { background: linear-gradient(to bottom, rgba(125, 240, 244, 0.7), rgba(125, 240, 244, 0.12)); }
  .cd-stop__n { inset-inline-start: 0; }
  .cd-stop { margin-inline-start: 0; }

  /* Paper above the screen, "מול" between them on a line across */
  .cd-vs__grid { grid-template-columns: minmax(0, 1fr); }
  .cd-vs__mid { width: 100%; height: clamp(72px, 12vw, 96px); }
  .cd-vs__mid::before { inset: 50% 0 auto; width: auto; height: 1px; background: linear-gradient(90deg, rgba(125, 240, 244, 0), rgba(125, 240, 244, 0.45) 30%, rgba(125, 240, 244, 0.45) 70%, rgba(125, 240, 244, 0)); }
  .cd-vs__mid span { top: 50%; }
  .cd-vs__art { height: clamp(240px, 56vw, 380px); }
  .cd-paper { width: min(80vw, 400px); }
}

@media (max-width: 767px) {
  .cd > .cd-top { padding-top: calc(64px + clamp(32px, 7vh, 64px) - 34px); }

  /* On a phone the opening stands on the bright line of the horizon: a deeper night behind the
     words only, soft at its edges */
  .cd-top__copy { position: relative; }

  .cd-top__copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -40px calc(-1 * var(--pad)) -48px;
    background: linear-gradient(180deg, rgba(7, 11, 26, 0) 0, rgba(7, 11, 26, 0.6) 56px, rgba(7, 11, 26, 0.6) calc(100% - 56px), rgba(7, 11, 26, 0) 100%);
    pointer-events: none;
  }

  .cd-deck__card[data-pos="1"] { transform: translate(-50%, -50%) translateX(-26%) rotate(-8deg) scale(0.84); }
  .cd-deck__card[data-pos="2"] { transform: translate(-50%, -50%) translateX(26%) rotate(8deg) scale(0.84); }
}

@media (max-width: 560px) {
  .cd-cta .btn { flex: 1 1 auto; }
  .cd-why__list { grid-template-columns: minmax(0, 1fr); }
  .cd-what__stage { grid-template-columns: minmax(0, 1fr); }
  .cd-what__phone { width: min(64vw, 260px); }
  .cd-chip { padding: 7px 11px; font-size: 0.8125rem; }
  .cd-chip--1 { inset-inline-start: calc(50% + 46px); }
  .cd-chip--2 { inset-inline-end: calc(50% + 46px); }
  .cd-end__card:nth-of-type(1) { transform: translate(-50%, -46%) translateX(-58%) rotate(-7deg); }
  .cd-end__card:nth-of-type(2) { transform: translate(-50%, -46%) translateX(58%) rotate(7deg); }
}

/* --- Motion stopped: the cards change places at once and nothing leans --------------------------- */

html.no-motion :is(.cd-deck, .cd-deck__card, .cd-pick__btn) { transition-duration: 1ms; }
html.no-motion .cd-deck { transform: none; }
html.no-motion :is(.cd-what__shot, .cd-caret, .cd-live i) { animation: none; }
html.no-motion .cd-rise [data-rise] { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  .cd-deck, .cd-deck__card { transition-duration: 1ms; }
  .cd-deck { transform: none; }
  .cd-what__shot, .cd-caret, .cd-live i { animation: none; }
  .cd-rise [data-rise] { opacity: 1; transform: none; transition: none; }
}

/* --- The colour modes of the accessibility menu, and the system's forced colours -----------------
   The bands of night and the pool of light go; what was told apart by glass or light is told apart
   by a line */

html:is(.a11y-contrast, .a11y-negative, .a11y-light) .cd-what { background: none; }
html:is(.a11y-contrast, .a11y-negative, .a11y-light) .cd-top__copy::before,
html:is(.a11y-contrast, .a11y-negative, .a11y-light) .cd-stage__glow { display: none; }
html:is(.a11y-contrast, .a11y-negative, .a11y-light) :is(.cd-feat__ic, .cd-stop__n, .cd-pick__btn, .cd-feat, .cd-stop, .cd-chip, .cd-vs__mid span) { outline: 1px solid currentColor; }
html:is(.a11y-contrast, .a11y-negative, .a11y-light) :is(.cd-feat, .cd-stop, .cd-art) { background: none; }
html:is(.a11y-contrast, .a11y-negative, .a11y-light) :is(.cd-what__glow, .cd-vs__halo, .cd-end__glow),
html:is(.a11y-contrast, .a11y-negative, .a11y-light) .cd-vs__mid::before { display: none; }
html:is(.a11y-contrast, .a11y-negative, .a11y-light) .cd-pick__btn[aria-pressed="true"] { outline: 3px solid currentColor; }
html:is(.a11y-contrast, .a11y-negative, .a11y-light) .cd-route::before { background: currentColor; }
html:is(.a11y-contrast, .a11y-negative, .a11y-light) .cd-why__list li { border-top-color: currentColor; }

@media (forced-colors: active) {
  .cd-top__copy::before, .cd-stage__glow, .cd-what__glow, .cd-vs__halo, .cd-end__glow { display: none; }
  .cd-feat__ic, .cd-stop__n, .cd-pick__btn, .cd-paper, .cd-feat, .cd-stop, .cd-chip { border: 1px solid CanvasText; }
  .cd-pick__btn[aria-pressed="true"] { border: 3px solid Highlight; }
  .cd-route::before { background: CanvasText; }
}

/* --- The smallest phones: the cards behind stay inside the screen ------------------------------- */

@media (max-width: 420px) {
  .cd-deck__card[data-pos="1"] { transform: translate(-50%, -50%) translateX(-19%) rotate(-7deg) scale(0.82); }
  .cd-deck__card[data-pos="2"] { transform: translate(-50%, -50%) translateX(19%) rotate(7deg) scale(0.82); }
}

/* English pages: the deck turns the other way, the next card behind on the right, where English
   reads on to */
html[dir="ltr"] .cd-deck__card[data-pos="1"] { transform: translate(-50%, -50%) translateX(34%) rotate(10deg) scale(0.86); }
html[dir="ltr"] .cd-deck__card[data-pos="2"] { transform: translate(-50%, -50%) translateX(-34%) rotate(-10deg) scale(0.86); }
@media (max-width: 767px) {
  html[dir="ltr"] .cd-deck__card[data-pos="1"] { transform: translate(-50%, -50%) translateX(26%) rotate(8deg) scale(0.84); }
  html[dir="ltr"] .cd-deck__card[data-pos="2"] { transform: translate(-50%, -50%) translateX(-26%) rotate(-8deg) scale(0.84); }
}
@media (max-width: 420px) {
  html[dir="ltr"] .cd-deck__card[data-pos="1"] { transform: translate(-50%, -50%) translateX(19%) rotate(7deg) scale(0.82); }
  html[dir="ltr"] .cd-deck__card[data-pos="2"] { transform: translate(-50%, -50%) translateX(-19%) rotate(-7deg) scale(0.82); }
}

