/* Salesforge rebuild, version 3, round 3: the live domain check, "Is Your Domain Ready For Cold Email?".
   Frank's homepage tells visitors to never land in spam and offers new domains from Mailforge, Infraforge and Primeforge,
   but gives them no way to see where their own domain stands. Here the visitor types a domain and its MX, SPF, DKIM and
   DMARC records are read live from public DNS and explained in the words of Salesforge's own free checker pages; cold
   email domains for their brand are suggested and looked up; then the round-2 plan takes over. The report card sits on
   the same purple artwork panel Frank uses for his feature pictures. */

#domain-check { scroll-margin-top: 88px; }
.dc__frame {
  display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); grid-template-areas: "ask art";
  column-gap: 5%; padding: 48px 32px;
  border-left: 1px solid var(--gray-200); border-right: 1px solid var(--gray-200);
}
.dc__frame.is-done { grid-template-areas: "ask art" "after art"; grid-template-rows: auto 1fr; }

/* ---------------------------------------------------------------- the ask (left) */
.dc__ask { grid-area: ask; align-self: center; display: flex; flex-direction: column; gap: 28px; min-width: 0; padding: 20px 0 8px 8px; }
.dc__frame.is-done .dc__ask { align-self: start; }
.dc__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.dc__pill {
  display: inline-flex; padding: 4px 12px; border-radius: 9999px; background: var(--violet-100); color: var(--violet);
  font-size: 13px; line-height: 1.4; font-weight: 600;
}
.dc__form { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dc__label { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--gray-700); }
.dc__row { display: flex; gap: 8px; min-width: 0; }
.dc__field.field { flex: 1 1 auto; width: auto; min-width: 0; height: 52px; font-size: 16px; }
.dc__btn.btn { flex: none; min-height: 52px; height: 52px; padding: 0 20px; font-size: 15px; }
.dc__hint { min-height: 20px; font-size: 13px; line-height: 1.5; color: var(--gray-500); }
.dc__hint.is-error { color: #b42318; }
.dc__try { font-weight: 600; color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.dc__try:hover { color: var(--violet-hover); }
.dc__fine { margin-top: -12px; font-size: 12px; line-height: 1.5; color: var(--gray-400); }

/* ---------------------------------------------------------------- the report card (right, on Frank's purple panel) */
.dc__art {
  grid-area: art; position: relative; display: flex; align-items: center; justify-content: center; min-width: 0;
  padding: 44px; border-radius: 12px; overflow: hidden;
  background: var(--violet) url("../img/bg-02.avif") 50% / cover no-repeat;
}
.dc__card {
  width: 100%; max-width: 580px; padding: 24px 24px 12px; border-radius: 14px; background: var(--white); color: var(--ink);
  box-shadow: 5px 10px 20px rgba(0, 0, 0, .1), 20px 40px 40px rgba(0, 0, 0, .09), 40px 80px 50px rgba(0, 0, 0, .05);
}
.dc__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dc__id { min-width: 0; }
.dc__kicker { font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--violet); }
.dc__domain { margin-top: 2px; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.4px; overflow-wrap: anywhere; }
.dc__domain.is-empty { color: var(--gray-300); }
.dc__meta { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--gray-500); }
.dc__score { position: relative; flex: none; width: 64px; height: 64px; }
.dc__score svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.dc__ring-bg { fill: none; stroke: var(--gray-100); stroke-width: 6; }
.dc__ring {
  fill: none; stroke: var(--violet); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1), stroke .4s;
}
.dc__score[data-tone="ok"] .dc__ring { stroke: #17b26a; }
.dc__score[data-tone="warn"] .dc__ring { stroke: #f79009; }
.dc__score[data-tone="bad"] .dc__ring { stroke: #f04438; }
.dc.is-running .dc__score svg { animation: dc-spin-ring 1.1s linear infinite; }
.dc.is-running .dc__ring { stroke-dashoffset: 72; transition: none; }
.dc__score-num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 16px; line-height: 1; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums;
}

.dc__verdict { margin-top: 16px; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.45; font-weight: 500; overflow-wrap: anywhere; }
.dc__verdict[hidden] { display: none; }
.dc__verdict[data-tone="ok"] { background: #ecfdf3; color: #067647; }
.dc__verdict[data-tone="warn"] { background: #fffaeb; color: #b54708; }
.dc__verdict[data-tone="bad"] { background: #fef3f2; color: #b42318; }
.dc__verdict[data-tone="unknown"] { background: var(--gray-100); color: var(--gray-700); }

.dc__checks { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--gray-200); }
.dc__check { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--gray-200); }
.dc__check:last-child { border-bottom: 0; }
.dc__check.is-new { animation: dc-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.dc__icon {
  width: 28px; height: 28px; margin-top: -2px; border-radius: 50%;
  background: var(--gray-100) 50% / 16px 16px no-repeat;
}
.dc__check[data-state="idle"] .dc__icon, .dc__check[data-state="skip"] .dc__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='2.5' fill='%2398A2B3'/%3E%3C/svg%3E");
}
.dc__check[data-state="run"] .dc__icon { background: none; border: 2.5px solid var(--violet-100); border-top-color: var(--violet); animation: dc-spin .8s linear infinite; }
.dc__check[data-state="ok"] .dc__icon {
  background-color: #dcfae6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M13 4.8 6.4 11.4 3 8' stroke='%23079455' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.dc__check[data-state="warn"] .dc__icon {
  background-color: #fef0c7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 3.8v5' stroke='%23DC6803' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11.8' r='1.2' fill='%23DC6803'/%3E%3C/svg%3E");
}
.dc__check[data-state="bad"] .dc__icon {
  background-color: #fee4e2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4.6 4.6 6.8 6.8m0-6.8-6.8 6.8' stroke='%23D92D20' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.dc__check[data-state="unknown"] .dc__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6 6.1a2 2 0 1 1 2.7 1.9c-.5.2-.7.6-.7 1v.4' stroke='%23667085' stroke-width='1.7' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='12' r='1.1' fill='%23667085'/%3E%3C/svg%3E");
}
.dc__what { min-width: 0; }
.dc__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dc__name { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.dc__name span { margin-left: 4px; font-size: 13px; font-weight: 500; color: var(--gray-500); }
.dc__status {
  flex: none; padding: 2px 10px; border-radius: 9999px; background: var(--gray-100); color: var(--gray-500);
  font-size: 12px; line-height: 18px; font-weight: 600; white-space: nowrap;
}
.dc__check[data-state="run"] .dc__status { background: var(--violet-50); color: var(--violet); }
.dc__check[data-state="ok"] .dc__status { background: #ecfdf3; color: #067647; }
.dc__check[data-state="warn"] .dc__status { background: #fffaeb; color: #b54708; }
.dc__check[data-state="bad"] .dc__status { background: #fef3f2; color: #b42318; }
.dc__detail { margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--gray-500); overflow-wrap: anywhere; }
.dc__check[data-state="ok"] .dc__detail, .dc__check[data-state="warn"] .dc__detail, .dc__check[data-state="bad"] .dc__detail { color: var(--gray-700); }
.dc__more { margin-top: 6px; font-size: 12px; line-height: 18px; font-weight: 600; color: var(--violet); }
.dc__more[hidden] { display: none; }
.dc__more:hover { color: var(--violet-hover); text-decoration: underline; text-underline-offset: 2px; }
.dc__drawer { margin-top: 8px; }
.dc__drawer[hidden] { display: none; }
.dc__raw {
  display: block; padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: 8px; background: var(--gray-50);
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; color: var(--gray-700);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.dc__raw[hidden], .dc__note[hidden] { display: none; }
.dc__note { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--gray-500); }

/* ---------------------------------------------------------------- after the check (left, under the form) */
.dc__after { grid-area: after; display: flex; flex-direction: column; gap: 24px; min-width: 0; padding: 36px 0 8px 8px; }
.dc__after[hidden] { display: none; }
.dc__after.is-new { animation: dc-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.dc__ideas[hidden], .dc__free[hidden] { display: none; }
.dc__h { font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--gray-500); }
.dc__h span { color: var(--violet); }
.dc__ideas-lead { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.dc__ideas-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.dc__idea {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px;
  border: 1px solid var(--gray-200); border-radius: 10px; background: var(--white); box-shadow: var(--shadow-xs);
}
.dc__idea.is-new { animation: dc-in .4s cubic-bezier(.2, .8, .2, 1) both; }
.dc__idea-name { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); overflow-wrap: break-word; }   /* breaks before the dot first (wbr) */
.dc__idea-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 18px; color: #067647; }
.dc__idea-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #17b26a; }
.dc__idea.is-taken { background: var(--gray-50); box-shadow: none; }
.dc__idea.is-taken .dc__idea-name { color: var(--gray-400); text-decoration: line-through; }
.dc__idea.is-taken .dc__idea-state { color: var(--gray-400); }
.dc__idea.is-taken .dc__idea-state::before { background: var(--gray-300); }
.dc__ideas-note { margin-top: 10px; font-size: 12px; line-height: 1.55; color: var(--gray-500); }
.dc__bridge { padding: 20px; border: 1px solid #e9d7fe; border-radius: 12px; background: var(--violet-50); }
.dc__bridge-title { font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.dc__bridge-text { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--gray-700); }
.dc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.dc__cta.btn { min-height: 48px; padding: 0 20px; font-size: 15px; white-space: normal; text-align: center; overflow-wrap: anywhere; }
.dc__share { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--violet); overflow-wrap: anywhere; text-align: left; }
.dc__share:hover { color: var(--violet-hover); text-decoration: underline; text-underline-offset: 3px; }

/* the link from "Never Land In Spam" down to the check */
.dc-jump { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--violet); }
.dc-jump::after {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 3v10m0 0 4-4m-4 4L4 9' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 50% / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 3v10m0 0 4-4m-4 4L4 9' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 50% / contain no-repeat;
  transition: transform .25s ease;
}
.dc-jump:hover { color: var(--violet-hover); }
.dc-jump:hover::after { transform: translateY(2px); }

@keyframes dc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dc-spin { to { transform: rotate(360deg); } }
@keyframes dc-spin-ring { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1199px) {
  .dc__art { padding: 32px; }
}
@media (max-width: 991px) {
  .dc__frame, .dc__frame.is-done {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "ask" "art" "after"; grid-template-rows: none;
    row-gap: 32px; padding: 28px 16px;
  }
  .dc__ask { padding: 0 8px; }
  .dc__after { padding: 0 8px; }
}
@media (min-width: 640px) and (max-width: 991px) {
  .dc__ideas-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
  .dc__frame, .dc__frame.is-done { row-gap: 24px; padding: 24px 16px; }
  .dc__ask { gap: 24px; padding: 0; }
  .dc__row { flex-direction: column; }
  .dc__btn.btn { width: 100%; }
  .dc__art { padding: 12px; }
  .dc__card { padding: 18px 14px 6px; }
  .dc__domain { font-size: 20px; }
  .dc__score, .dc__score svg { width: 56px; height: 56px; }
  .dc__check { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
  .dc__icon { width: 24px; height: 24px; background-size: 14px 14px; }
  .dc__top { flex-wrap: wrap; gap: 4px 10px; }
  .dc__ideas-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }   /* two a row where they fit, else one */
  .dc__idea { padding: 8px 10px; }
  .dc__idea-name { font-size: 13px; line-height: 18px; }
  .dc__after { padding: 0; }
  .dc__cta.btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .dc__check.is-new, .dc__after.is-new, .dc__idea.is-new { animation: none; }
  .dc__check[data-state="run"] .dc__icon, .dc.is-running .dc__score svg { animation: none; }
  .dc__ring { transition: none; }
}
