/* The public pages a prospect reads signed out, the onboarding diagnostic and the onboarding.
   One reading column: the promise, the sentence to paste, what comes back, why it is safe. */
.diagnostic {
  --display: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  width: 100%;
  max-width: 40rem;
  margin: 1.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.diagnostic h1,
.diagnostic h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

.diagnostic h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
  letter-spacing: -0.015em;
}

.diagnostic h2 {
  font-size: 1.4rem;
}

.diagnostic p {
  margin: 0;
}

.diagnostic header,
.diagnostic section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.diagnostic .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--text-md);
}

.diagnostic .brand span:not(.mark) {
  color: var(--muted);
  font-weight: 400;
}

.diagnostic .mark {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--in);
}

.diagnostic .lede {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--muted);
}

.diagnostic .promise {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--good);
}

/* The launch: the one thing to do, on a sheet of its own. */
.diagnostic .launch {
  padding: 1.6rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-top: 3px solid var(--in);
  border-radius: var(--radius);
}

.diagnostic ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.diagnostic ol li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
}

.diagnostic ol li::before {
  content: counter(step);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wash);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--text-sm);
}

.diagnostic .step {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.diagnostic .where {
  font-size: var(--text-sm);
  color: var(--muted);
}

.diagnostic .opens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.diagnostic .open {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sheet);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--text-md);
  white-space: nowrap;
}

/* The sentence and the one strong action on the page: copying it. */
.diagnostic .command {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.7rem 0.7rem 1rem;
  background: var(--wash);
  border-radius: var(--radius);
}

.diagnostic .command q {
  flex: 1;
  min-width: 0;
  font-size: var(--text-lg);
  line-height: 1.45;
  overflow-wrap: anywhere;
  quotes: "« " " »";
}

.diagnostic .command q:lang(en) {
  quotes: "“" "”";
}

.diagnostic .command button {
  flex: none;
  padding: 0.55rem 1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  font-size: var(--text-md);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.diagnostic .command button[data-said="copied"] {
  background: var(--good);
  border-color: var(--good);
}

.diagnostic .open:hover {
  text-decoration: none;
  border-color: var(--muted);
}

.diagnostic ul {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.diagnostic .trust ul {
  padding: 0;
  list-style: none;
}

.diagnostic .trust li {
  padding-left: 1.6rem;
  position: relative;
}

.diagnostic .trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 600;
}

.diagnostic footer {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: var(--text-sm);
  color: var(--muted);
}

@media (max-width: 520px) {
  .diagnostic .launch {
    padding: 1.1rem;
  }

  .diagnostic .command {
    flex-direction: column;
    align-items: stretch;
  }

  .diagnostic .command button {
    min-height: 44px;
  }
}
