/* "Everything ALL does" pages (/all/ and /es/all/). Loaded after home.css, legal.css and use-cases.css:
   every color, border and shadow comes from the tokens in home.css, so light and dark follow the site. */

.all-page .all-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }
.all-page .legal-hero p.all-pos {
  margin-top: 22px;
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.all-page .legal-hero p.all-pos + p { margin-top: 14px; }

/* Table of contents: sticky column on desktop, compact chips on small screens. */
.all-layout { padding-top: clamp(32px, 4vw, 56px); }
.security-privacy-page .all-toc a { min-height: 0; padding-block: 8px; }
.all-article { max-width: none; counter-reset: legal; }
.all-sec { padding-bottom: 44px; }
.all-sec > .all-lead { max-width: 720px; margin: 0 0 22px; color: var(--ink-2); font-size: 17px; line-height: 1.6; }

/* Capability cards */
.all-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.all-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.all-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 18px 18px 16px;
  border: 2px solid var(--edge);
  background: var(--card);
  box-shadow: 4px 4px 0 var(--hard);
}
.legal-section .all-card h3 { margin: 0; font-size: 19px; line-height: 1.2; letter-spacing: -.025em; }
.legal-section .all-card p { margin: 0; font-size: 15px; line-height: 1.6; }
.legal-section .all-card .all-what { color: var(--ink-2); }
.legal-section .all-card .all-why { padding-top: 10px; border-top: 2px dashed var(--rule-2); color: var(--ink); }
.all-why b {
  display: inline-block;
  margin-right: 8px;
  color: var(--ink-2);
  font: 600 11px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.legal-section .all-card .all-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 2px; }
.all-tools span {
  margin-right: 4px;
  color: var(--muted);
  font: 600 10.5px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.legal-section .all-tools code {
  padding: 2px 6px;
  border: 1px solid var(--rule-2);
  background: var(--paper-2);
  color: var(--ink-2);
  font: 500 11.5px/1.5 var(--mono);
  overflow-wrap: anywhere;
}
.legal-section .all-card .all-needs, .all-page .all-needs { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.all-page .all-needs { margin: 14px 0 0; }
.legal-section .all-card .all-link { margin-top: 2px; }
.all-links { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.all-callout { margin-top: 22px; }

/* Install steps */
.all-steps { display: grid; gap: 22px; margin: 0 0 26px; padding: 0; list-style: none; counter-reset: allstep; }
.legal-section .all-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; margin: 0; }
.all-step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--edge);
  background: var(--signal);
  color: var(--on-signal);
  font: 700 15px/1 var(--mono);
}
.legal-section .all-steps h3 { margin: 2px 0 6px; font-size: 19px; }
.legal-section .all-steps p { margin: 0 0 10px; }
.all-cmds { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 12px 0; }
.all-cmd { min-width: 0; }
.all-cmd pre { font-size: 12.5px; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.all-update, .all-uninstall { margin-top: 14px; }

/* Plans reuse the home receipts; here they are plain links to the purchase section of the home page. */
.all-plans { margin-top: 38px; gap: 22px; align-items: stretch; }
.all-plans.plans { max-width: none; }
.all-plans .plan { font-family: var(--mono); }
.all-plans .plan .btn { white-space: normal; text-align: center; padding-block: 12px; }
.all-plans .plan.is-featured { transform: none; }
.legal-section .all-plans .plan li { margin: 0; color: inherit; font-size: 13px; line-height: 1.5; }
.legal-section .all-plans .plan p { color: inherit; font-size: 15px; line-height: 1.6; }
.legal-section .all-plans .plan p.price { font-size: 46px; line-height: 1; color: inherit; }
.legal-section .all-plans .plan h3 { margin: 14px 0 0; font-size: 24px; }
.legal-section .all-plans .plan > p:not(.price) { margin: 18px 0 0; }
.legal-section .all-plans .plan ul { margin: 20px 0 26px; padding: 0; }
.legal-section .all-plans .plan a.btn { color: var(--ink); }
.legal-section .all-plans .plan.is-featured a.btn { color: var(--signal); }
.legal-section .all-plans .plan a.btn:not(.btn-plain) { text-decoration: none; }
.legal-section .pricing-note { max-width: 820px; margin: 34px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.legal-section .all-seats { margin: 16px 0 0; }

/* FAQ */
.all-faq { border-top: 2px solid var(--ink); }
.all-faq details { border-bottom: 1.5px solid var(--rule-2); }
.all-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; }
.all-faq summary::-webkit-details-marker { display: none; }
.all-faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--edge);
  background: var(--card);
  font: 700 16px/1 var(--mono);
}
.all-faq details[open] summary::after { content: "−"; background: var(--signal); color: var(--on-signal); }
.legal-section .all-faq h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.legal-section .all-faq p { margin: 0; padding: 0 44px 18px 0; }

.all-end { margin-top: 12px; }

@media (max-width: 900px) {
  /* Table of contents becomes a wrapped row of chips above the content. */
  .security-privacy-page .legal-toc.all-toc { display: flex; flex-wrap: wrap; gap: 8px; max-height: none; padding: 12px; box-shadow: 4px 4px 0 var(--hard); }
  .legal-toc.all-toc strong { position: static; flex: 0 0 calc(100% + 24px); margin: -12px -12px 0; padding: 10px 14px; }
  .security-privacy-page .legal-toc.all-toc a { padding: 7px 10px; border: 1.5px solid var(--rule-2); background: var(--paper-2); font-size: 13px; }
  .security-privacy-page .legal-toc.all-toc a:last-child { border-bottom: 1.5px solid var(--rule-2); }
  .all-grid, .all-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .all-plans.plans { max-width: none; }
  .legal-section .all-steps li { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
  .all-step-num { width: 32px; height: 32px; }
  .legal-section .all-faq p { padding-right: 0; }
  .all-page .all-hero-actions .btn { width: 100%; }
}
