/*
 * prism.css — the Prism product page.
 *
 * Builds on the global tokens in /styles.css (--ds-*). The page has to do two
 * jobs at once: read as a product story top-to-bottom, and be skimmable by
 * someone who arrived from a search for "crossdeck chatgpt" and wants the
 * answer in ten seconds. Hence the ask/answer cards near the top.
 */

.prism-body { background: var(--ds-bg); }

.pr-inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

/* ---------- links in prose ---------- */
.pr-lede a,
.pr-section p a,
.pr-uses dd a,
.pr-qa dd a,
.pr-sec a {
  color: var(--ds-accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, var(--ds-accent-strong) 42%, transparent);
  transition: text-decoration-color 120ms ease;
}
.pr-lede a:hover,
.pr-section p a:hover,
.pr-uses dd a:hover,
.pr-qa dd a:hover,
.pr-sec a:hover { text-decoration-color: var(--ds-accent-strong); }

/* ---------- hero ---------- */
.pr-hero { padding: clamp(52px, 8.5vw, 100px) 0 clamp(24px, 3.5vw, 40px); }

.pr-hero h1 {
  margin: 18px 0 0;
  font-family: var(--ds-display, inherit);
  font-size: clamp(31px, 4.6vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--ds-text);
  text-wrap: balance;
}

.pr-lede {
  margin: 20px 0 0;
  max-width: 64ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.62;
  color: var(--ds-muted);
}

.pr-lede strong,
.pr-section p strong,
.pr-sec strong { color: var(--ds-text); font-weight: 600; }

.pr-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.pr-cta-center { justify-content: center; }

.btn-ghost {
  border: 1px solid var(--ds-border-strong, var(--ds-border));
  background: transparent;
  color: var(--ds-text);
}
.btn-ghost:hover { background: var(--ds-bg-soft); }

.pr-note {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--ds-muted-soft, var(--ds-muted));
}

/* ---------- sections ---------- */
.pr-section { padding: clamp(30px, 4.6vw, 56px) 0; }

.pr-section h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--ds-text);
  text-wrap: balance;
}

.pr-sub {
  margin: 26px 0 8px;
  font-size: clamp(16px, 1.6vw, 19px);
  letter-spacing: -0.01em;
  color: var(--ds-text);
}

.pr-section p {
  margin: 0 0 14px;
  max-width: 70ch;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.68;
  color: var(--ds-muted);
}
.pr-section p:last-child { margin-bottom: 0; }

.pr-kicker {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ds-divider, var(--ds-border));
  color: var(--ds-text);
  font-weight: 500;
}

.pr-section-accent .pr-inner {
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg, 16px);
  background: var(--ds-bg-soft);
  padding: clamp(24px, 3.4vw, 44px);
}

.pr-section code {
  font-family: var(--ds-mono, ui-monospace, monospace);
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--ds-accent-strong) 9%, transparent);
  color: var(--ds-text);
}

/* ---------- ask / answer cards ---------- */
.pr-asks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.pr-ask {
  margin: 0;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg, 16px);
  background: var(--ds-bg-soft);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pr-ask blockquote {
  margin: 0;
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.45;
  font-weight: 600;
  color: var(--ds-text);
  text-wrap: balance;
}

.pr-ask figcaption { display: grid; gap: 6px; }

.pr-ans {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ds-accent-strong);
  font-weight: 600;
}

.pr-why {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ds-muted);
}

/* ---------- steps ---------- */
.pr-steps { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 20px; }

.pr-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}

.pr-step-n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ds-accent-strong);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.pr-steps h3 {
  margin: 3px 0 6px;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--ds-text);
}

.pr-alt {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ds-divider, var(--ds-border));
}

/* ---------- capability grid ---------- */
.pr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.pr-card {
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius, 12px);
  background: var(--ds-bg-soft);
  padding: 18px 20px;
}

.pr-card h3 {
  margin: 0 0 7px;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ds-text);
}

.pr-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ds-muted);
}

/* ---------- use cases + Q&A ---------- */
.pr-uses, .pr-qa { margin: 6px 0 0; max-width: 70ch; }

.pr-uses dt, .pr-qa dt {
  margin: 22px 0 6px;
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--ds-text);
}
.pr-uses dt:first-child, .pr-qa dt:first-child { margin-top: 8px; }

.pr-uses dd, .pr-qa dd {
  margin: 0;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.68;
  color: var(--ds-muted);
}

/* ---------- security list ---------- */
.pr-sec {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 70ch;
}

.pr-sec li {
  position: relative;
  padding-left: 20px;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.62;
  color: var(--ds-muted);
}

.pr-sec li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ds-accent-strong);
}

/* ---------- closing ---------- */
.pr-cta {
  padding: clamp(36px, 5vw, 68px) 0 clamp(56px, 8vw, 96px);
  text-align: center;
}
.pr-cta h2 { margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 28px); color: var(--ds-text); }
.pr-cta p { margin: 0 auto 20px; max-width: 60ch; color: var(--ds-muted); }
