/* Public About / Pricing / Status — Mission v3 sterile-lab, both themes. */
.pub-page .v3-topbar {
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
}
.pub-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.55rem;
  max-width: 100%;
}
.pub-nav a {
  color: var(--st-muted);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  padding: 0.3rem 0.1rem;
}
.pub-nav a[aria-current="page"],
.pub-nav a:hover { color: var(--st-text); }
.pub-page .v3-btn.sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 999px;
  background: var(--st-accent);
  color: var(--st-on-accent);
  border: 0;
  font-weight: 650;
  text-decoration: none;
}
.pub-main { padding-bottom: 2.5rem; }
.pub-lead {
  max-width: 38rem;
  margin: 0.35rem 0 1rem;
  color: var(--st-muted);
  line-height: 1.5;
}
.pub-grid {
  display: grid;
  gap: 0.75rem;
}
.pub-card {
  padding: 0.9rem 1rem;
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius, 18px);
  background: var(--st-surface-2);
}
.pub-card h2 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--st-accent);
}
.pub-card p,
.pub-card li {
  margin: 0 0 0.45rem;
  color: var(--st-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.pub-card ul { margin: 0; padding-left: 1.1rem; }
.pub-foot {
  margin-top: 1.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--st-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: 0.82rem;
}
.pub-foot a { color: var(--st-accent); font-weight: 650; text-decoration: none; }

.pub-overall {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.pub-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.pub-status-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius, 18px);
  background: var(--st-surface-2);
  color: var(--st-text);
  font-weight: 650;
}
.pub-overall.is-operational,
.pub-status-list .is-operational { color: var(--st-ok); }
/* Gate 0 audit #62: "Degraded" is a warning, not the accent green that "Operational" also uses. A warning token for the
   public pages (the sterile-lab palette has --st-ok and --st-danger but no warning colour). */
:root { --st-warn: #b45309; --st-on-accent: #ffffff; }
html[data-theme="dark"] { --st-warn: #fbbf24; }
.pub-overall.is-degraded,
.pub-status-list .is-degraded { color: var(--st-warn); }
.pub-overall.is-down,
.pub-status-list .is-down { color: var(--st-danger); }
.pub-overall.is-unknown,
.pub-status-list .is-unknown { color: var(--st-muted); }
.pub-updated {
  margin: 0.85rem 0 0;
  color: var(--st-muted);
  font-size: 0.8rem;
}
.pub-note { color: var(--st-muted); font-size: 0.82rem; }
.pub-rule {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 40rem;
  margin: 0 0 1rem;
}
.pub-rule > div {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--st-border);
  border-radius: 12px;
}
.pub-rule h2 { margin: 0 0 0.35rem; font-size: 1rem; }
.pub-rule p { margin: 0; color: var(--st-muted); line-height: 1.45; }
@media (max-width: 640px) {
  .pub-rule { grid-template-columns: 1fr; }
}

.pub-page .sub-plans {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pub-page .sub-plan-includes h4 {
  margin: 0.35rem 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-muted);
}
.pub-page .sub-plan-includes ul {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--st-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}
.pub-page .sub-plan-pending {
  margin: 0.35rem 0 0;
  font-weight: 750;
  color: var(--st-text);
}

@media (max-width: 860px) {
  .pub-page .sub-plans {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}
@media (max-width: 390px) {
  .pub-nav { width: 100%; justify-content: flex-start; gap: 0.1rem 0.4rem; }
  .pub-nav a { font-size: 0.78rem; }
  .pub-page .v3-title { font-size: 1.4rem; }
  .pub-lead, .pub-card p, .pub-card li { font-size: 0.86rem; }
  .pub-status-list li { padding: 0.75rem 0.8rem; }
  .pub-page .sub-plans {
    width: calc(100% + (2 * var(--st-pad)));
    max-width: none;
    margin-left: calc(-1 * var(--st-pad));
    margin-right: calc(-1 * var(--st-pad));
  }
  .pub-page .sub-plan { padding: 0.9rem 0.75rem; }
  .pub-page .sub-plan-price { font-size: 1.55rem; }
  .pro-stamp { font-size: 0.68rem; letter-spacing: 0.08em; }
}

/* Gate 0 audit #57: the public top bar is sticky but in light it had no background, so on scroll the page (plan text,
   the "Start Standard" button) passed under the nav links and the two printed over each other. It paints the page's own
   colour (--st-bg, #EEF3F8 in light) with a hairline under it. Dark already paints it (sterile-lab dark top bar). */
.pub-page .v3-topbar {
  background: var(--st-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--st-border) 70%, transparent);
}

/* Antigravity-2 LOOK (room 10534): public controls meet the 44 px tap floor on phones (nav links were 25 px, Sign up
   27 px, the What's New jump links 29 px) */
.pub-page .pub-nav a,
.pub-page .pub-nav .v3-btn.sm,
.pub-page .wn-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.pub-page .pub-foot a,
.pub-page .v3-topbar .v3-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.pub-page .v3-topbar .v3-icon-btn {
  min-width: 44px;
  min-height: 44px;
}
.pub-page .sub-plan .v3-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
/* Gate 0 audit #58 / #63: ONE public header on every public page (landing, pricing, status, about, What's New, terms,
   privacy), from public_site.public_header(). Scoped to .pub-top so a page's own buttons are not restyled.
   Desktop: brand | nav | theme on one row. Phones: brand + theme on the first row, the links on the second. */
.pub-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  background: var(--st-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--st-border) 70%, transparent);
}
.pub-top .pub-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.6rem;
}
.pub-top .pub-nav a {
  color: var(--st-muted);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
  padding: 0.55rem 0.35rem;
  min-width: 44px;
}
.pub-top .pub-nav a[aria-current="page"],
.pub-top .pub-nav a:hover {
  color: var(--st-text);
}
.pub-top .v3-btn.sm {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--st-accent);
  color: var(--st-on-accent);
  border: 0;
}
.pub-top .pub-theme {
  flex: 0 0 auto;
}
.pub-top .pub-signup-top {
  display: none;
}
@media (max-width: 640px) {
  .pub-top {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }
  .pub-top .v3-brand { order: 1; }
  /* phones: Sign up sits beside the theme button, so the second row is only the five links (it wrapped alone) */
  .pub-top .pub-signup-top { display: inline-flex; order: 2; margin-left: auto; }
  .pub-top .pub-nav .pub-signup { display: none; }
  .pub-top .pub-theme { order: 3; }
  .pub-top .pub-nav {
    order: 4;
    flex: 1 0 100%;
    margin-left: 0;
    justify-content: space-between;
  }
}

/* Gate 0 #59: a plan that cannot be bought shows a disabled button, not a solid primary one that looks tappable */
.pub-page .sub-plan .v3-btn:disabled {
  background: transparent;
  color: var(--st-muted);
  border: 1px dashed var(--st-border);
  cursor: not-allowed;
  opacity: 1;
}
/* Gate 0 #59: the price is the big number (it sat in a <span> and took the small grey "/month" style), and the card has
   no browser-default gap between the plan name and its price */
.pub-page .sub-plan-price {
  margin: 0.35rem 0 0.25rem;
}
.pub-page .sub-plan-price .pub-price-num {
  font-size: inherit;
  font-weight: 800;
  color: var(--st-text);
}

/* Antigravity-2 LOOK (room 10534) on the one public header: its links and both Sign up buttons are 44 px tall too */
.pub-top .pub-nav a,
.pub-top .v3-btn.sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
/* the brand link and theme button in the one header, on every page that uses it (landing, terms, privacy have no
   .pub-page body class), and the Terms / Privacy contents links: 44 px */
.pub-top .v3-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.pub-top .pub-theme {
  min-width: 44px;
  min-height: 44px;
}
.v3-legal-toc-grid a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
/* the 44 px rule above sets display on .v3-btn.sm; re-assert which Sign up shows where (one per width) */
.pub-top .v3-btn.sm.pub-signup-top {
  display: none;
}
@media (max-width: 640px) {
  .pub-top .v3-btn.sm.pub-signup-top { display: inline-flex; }
  .pub-top .pub-nav .v3-btn.sm.pub-signup { display: none; }
}

/* Gate 0 #81 (live look 11-14): public text meets the 11 px floor. Page kickers ("Pricing", "Status") were 10.4 px.
   What's New's kickers and badges are lifted in whats-new-v3.css; the landing caption in boarding-one.css. */
.v3-kicker {
  font-size: 0.6875rem;
}

/* How it works and FAQ sitelinks. Phones stack the step, then the phone picture. Wider screens put the picture beside the words. */
.pub-how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.pub-how-step {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}
.pub-how-step h2 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.05rem;
}
.pub-how-step p {
  margin: 0;
  color: var(--st-muted);
  line-height: 1.5;
}
.pub-how-n {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--st-accent);
}
.pub-phone {
  width: min(220px, 100%);
  margin: 0;
}
.pub-phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
}
.pub-sample {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--st-muted);
}
.pub-howcta {
  margin: 1.25rem 0 0;
}
.pub-howcta .v3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--st-accent);
  color: var(--st-on-accent);
  text-decoration: none;
  font-weight: 650;
}
.pub-faq details {
  border-bottom: 1px solid var(--st-border);
}
.pub-faq summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-weight: 650;
}
.pub-faq details p {
  margin: 0 0 0.85rem;
  color: var(--st-muted);
  line-height: 1.5;
}
@media (min-width: 768px) {
  .pub-how-step {
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: start;
  }
}
