/* "Buy a domain with email" on /create-email-account (src/create-email-account.html, site.eu in English only, task 276).
   A lavender panel like the page's hero: text, 3 step pills, the domain search and 2 links on the left; the hero's
   address card and 3 price-tag shapes on the right (on phones above the text). No text below 14px. */

.ced {
  padding-bottom: 72px;
  color: var(--foreground);
}

.ced :where(h2, p, ol, ul) {
  margin: 0;
}

.ced :where(ol, ul) {
  padding: 0;
  list-style: none;
}

.ced-panel {
  position: relative;
  overflow: clip;
  padding: 44px 40px 40px;
  border-radius: 28px 8px 28px 8px;
  background: var(--purple-200);
}

.ced-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  border-bottom-left-radius: 100%;
  background: rgb(var(--yellow));
}

.ced-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 36px;
  align-items: center;
}

.ced-eyebrow {
  font: 700 14px/1.5 var(--font-overpass);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ced h2 {
  margin-top: 12px;
  font: 800 28px/1.15 var(--font-uni-neue);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.ced-intro {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

.ced-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.ced-steps li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 13px 6px 6px;
  border-radius: 999px;
  background: #fff8ed;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.ced-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--foreground);
  color: #fff;
  font: 800 14px/1 var(--font-uni-neue);
}

/* The domain search (components/domain-search.html): a darker frame on the lavender, navy link instead of pink. */
.ced-search {
  margin-top: 26px;
}

.ced-search input {
  color: var(--foreground);
}

.ced-search form {
  border-width: 2px;
  border-color: var(--foreground);
  box-shadow: 0 5px 0 #1e1e4114;
}

.ced-search p button {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ced-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 18px;
  font-weight: 800;
}

.ced-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ced-links a:hover,
.ced-links a:focus-visible {
  text-decoration-thickness: 2px;
}

.ced-links .icon-arrow-right {
  font-size: 14px;
}

/* Address card (like the hero's .email-hero-address) and the price tags. */
.ced-art {
  container-type: inline-size;
  position: relative;
  padding: 30px 10px 10px;
}

.ced-stage {
  position: relative;
}

.ced-stage::before {
  content: '';
  position: absolute;
  inset: 10px 10px -8px;
  border-radius: 12px;
  background: var(--pink);
  transform: rotate(2.5deg);
}

.ced-address {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px 20px;
  border: 2px solid var(--foreground);
  border-radius: 12px;
  background: #fff8ed;
  font: 800 clamp(20px, 7.4cqi, 30px) / 1.2 var(--font-uni-neue);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ced-address svg {
  flex: none;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ced-address em {
  position: relative;
  isolation: isolate;
  font-style: normal;
}

.ced-address em::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -2px;
  bottom: 1px;
  left: -2px;
  height: 10px;
  border-radius: 3px;
  background: rgb(var(--yellow));
  transform: rotate(-1.2deg);
}

.ced-tags {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.ced-tags li {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 108px;
  height: 46px;
  padding-left: 14px;
  font: 800 19px/1 var(--font-uni-neue);
}

.ced-tags li:nth-child(1) {
  --tag: rgb(var(--yellow));
  transform: rotate(-7deg);
}

.ced-tags li:nth-child(2) {
  --tag: #fff;
  transform: rotate(4deg) translateY(10px);
}

.ced-tags li:nth-child(3) {
  --tag: var(--green);
  transform: rotate(-3deg);
}

.ced-tags li::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 13px;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border: 2px solid var(--foreground);
  border-radius: 50%;
  background: var(--purple-200);
}

.ced-tag-shape {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  fill: var(--tag);
  stroke: var(--foreground);
  stroke-width: 2px;
  filter: drop-shadow(3px 4px 0 var(--foreground));
}

.ced-tags b {
  position: relative;
}

@media (min-width: 768px) {
  .ced h2 {
    font-size: 36px;
  }
}

/* Tablets and phones: one column, the picture above the text. */
@media (max-width: 1023px) {
  .ced-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .ced-art {
    order: -1;
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
    padding-top: 10px;
  }
}

@media (max-width: 600px) {
  .ced {
    padding-bottom: 48px;
  }

  .ced-panel {
    margin-inline: -8px;
    padding: 28px 18px 26px;
    border-radius: 20px 6px 20px 6px;
  }

  .ced-corner {
    width: 70px;
    height: 70px;
  }

  .ced-address {
    gap: 10px;
    padding: 22px 14px;
  }

  .ced-address svg {
    width: 26px;
    height: 26px;
  }

  .ced-tags {
    gap: 10px;
    margin-top: 26px;
  }

  .ced-tags li {
    width: 88px;
    height: 40px;
    font-size: 16px;
  }
}
