@import url("../../state-of-cold-email/styles/reset.css");
@import url("../../state-of-cold-email/styles/common.css");
@import url("../../state-of-cold-email/styles/variables.css");
@import url("../../state-of-cold-email/styles/typography.css");
@import url("../../state-of-cold-email/styles/_website.css");
@import url("../../state-of-cold-email/styles/styles.css");

body:has(.main-header) .content > section {
  scroll-margin-top: 100px;
}

/*
 * Reserve space for the lazy-loaded guide images: the shared rule pins them to
 * height: 100%, which discards the intrinsic aspect ratio from the width/height
 * attributes. Setting height: auto lets the browser reserve each image's box
 * before it loads, so nothing below reflows as the reader scrolls.
 */
.topicImageCard img {
  height: auto;
}

.descriptionTopics strong {
  font-weight: 500;
}

/* Hero stat card (stands in for the report's book cover) */

.heroStat {
  width: 100%;
  display: flex;
  gap: 24px;
  padding: 40px 28px;
  border-radius: 16px;
  flex-direction: column;
  justify-content: center;
  background: var(--background-secondary-subdued);
}

.heroStatPrompt {
  align-self: flex-end;
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 12px 12px 2px 12px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-light);
  background: var(--text-primary);
}

.heroStatReply {
  align-self: flex-start;
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 12px 12px 12px 2px;
  font-size: 16px;
  line-height: 24px;
  background: var(--background-primary);
  border: 1px solid var(--border-primary);
}

.heroStatReply code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  text-decoration: line-through;
  text-decoration-color: var(--text-accent);
}

.heroStatFigure {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-direction: column;
}

.heroStatNumber {
  font-size: 88px;
  line-height: 1;
  font-weight: 500;
  color: var(--text-accent);
  font-family: "Familjen Grotesk";
}

.heroStatLabel {
  font-size: 18px;
  line-height: 26px;
  color: var(--text-primary);
}

/* Tables */

/* Let grid columns shrink so wide tables scroll inside their wrapper */
main > * {
  min-width: 0;
}

.guideTableWrap {
  margin: 8px 0 32px;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-primary);
}

.guideTable {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 22px;
}

.guideTable th,
.guideTable td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-primary);
}

.guideTable thead th {
  font-weight: 600;
  color: var(--text-primary);
  background: var(--background-tertiary);
}

.guideTable tbody th {
  font-weight: 600;
  color: var(--text-primary);
}

.guideTable tbody tr:last-child th,
.guideTable tbody tr:last-child td {
  border-bottom: none;
}

/* Lists inside the content column */

.content ul.topicText,
.content ol.topicText {
  padding-left: 1.25em;
}

.content ul.topicText li + li,
.content ol.topicText li + li {
  margin-top: 8px;
}

/* Workflow steps */

/* The step number is drawn by CSS so it stays out of the heading text */
#workflow {
  counter-reset: workflow-step;
}

.stepHead {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  counter-increment: workflow-step;
}

.stepHead::before {
  content: counter(workflow-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background-color: var(--colors-primary-600);
  color: #fff;
  font-family: "Inter";
  font-size: 1rem;
  font-weight: 500;
}

.minorHead {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  padding-bottom: 8px;
  color: var(--text-primary);
}

/* Prompt box */

.promptCard {
  margin: 8px 0 32px;
  padding: 24px 28px;
  border-radius: 8px;
  background: var(--background-tertiary);
  border: 1px solid var(--border-primary);
}

.promptCardLabel {
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.promptCardText {
  font-size: 17px;
  line-height: 27px;
  color: var(--text-primary);
}

/* FAQ and glossary */

.faqItem + .faqItem {
  margin-top: 8px;
}

.glossary {
  margin: 0;
}

.glossary dt {
  font-weight: 600;
  color: var(--text-primary);
  font-family: "Familjen Grotesk";
  font-size: 20px;
  line-height: 26px;
}

.glossary dd {
  margin: 4px 0 24px;
}

@media (min-width: 1250px) {
  main {
    padding-top: 80px;
  }

  .heroImage {
    align-items: center;
  }

  .heroStat {
    padding: 56px 48px;
  }

  .heroStatFigure {
    gap: 16px;
    flex-direction: row;
    align-items: flex-end;
  }

  .heroStatNumber {
    font-size: 120px;
  }
}


/* 1-minute summary: all points in one highlighted card */

.content .highlightedCard.summaryCard > ul {
  margin: 0;
  padding: 0 0 0 1.25em;
  display: flex;
  gap: 16px;
  list-style: disc;
  flex-direction: column;
  color: var(--text-secondary);
}

.content .highlightedCard.summaryCard > ul > li {
  margin: 0;
}

/* Bottom CTA visual: the agents.md onboarding prompt from the MCP page
   (mirrors .codeblock in website/_code.scss) */

.waitListImage.agentPromptPanel {
  display: flex;
  padding: 40px 20px;
  align-items: center;
  justify-content: center;
  background: var(--colors-neutral-100);
}

.agentPrompt {
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  border-radius: 0.4rem;
  font-size: 16px;
  line-height: 26px;
}

.agentPromptHeader {
  padding: 16px;
  color: var(--colors-neutral-300);
  background: var(--colors-neutral-800);
}

.agentPromptBody {
  padding: 16px;
  color: #fff;
  overflow-wrap: anywhere;
  background: var(--colors-neutral-1000);
}

.agentPromptCursor {
  display: inline-block;
  width: 0.5em;
  height: 1em;
  vertical-align: middle;
  background-color: var(--colors-neutral-200);
  animation: agent-prompt-cursor-blink 1.1s steps(1) infinite;
}

@keyframes agent-prompt-cursor-blink {
  0%,
  50% {
    opacity: 1;
  }

  50.01%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agentPromptCursor {
    animation: none;
  }
}

@media (min-width: 1250px) {
  .waitListImage.agentPromptPanel {
    padding: 80px;
  }
}

/* FAQ and glossary toggles (content stays in the HTML for search) */

.faqItem {
  border-bottom: 1px solid var(--border-primary);
}

.faqItem + .faqItem {
  margin-top: 0;
}

.faqItem > summary,
.glossaryToggle > summary {
  display: flex;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
}

.faqItem > summary {
  margin: 0;
  padding: 20px 0;
}

.faqItem > summary::-webkit-details-marker,
.glossaryToggle > summary::-webkit-details-marker {
  display: none;
}

.faqItem > summary::after,
.glossaryToggle > summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-muted);
}

.faqItem[open] > summary::after,
.glossaryToggle[open] > summary::after {
  content: "\2212";
}

.faqItem > summary > h3 {
  margin: 0;
}

.faqItem > .topicText {
  padding-top: 0;
}

.glossaryToggle > summary {
  width: fit-content;
  padding: 12px 16px;
  border-radius: 4px;
  font-weight: 500;
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  background: var(--background-tertiary);
}

.glossaryToggle[open] > summary {
  margin-bottom: 24px;
}

.faqItem > summary:focus-visible,
.glossaryToggle > summary:focus-visible {
  outline: 2px solid var(--text-accent);
  outline-offset: 4px;
}
