/* Inter, self-hosted (SIL Open Font License, fonts/LICENSE-Inter.txt). The variable file has the optical size axis,
   so big headings get the tighter display cut by themselves. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  font-family: var(--cw-font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  --ink: var(--cw-ink);
  --muted: var(--cw-muted);
  --faint: var(--cw-subtle);
  --bg: var(--cw-surface);
  --panel: color-mix(in srgb, var(--cw-surface-soft) 55%, var(--cw-surface));
  --surface: var(--cw-surface);
  --line: var(--cw-line);
  --accent: var(--cw-accent);
  --accent-dark: var(--cw-accent-strong);
  --accent-soft: var(--cw-accent-soft);
  --accent-ink: var(--cw-accent);
  --radius: var(--cw-radius-lg);
  --shadow: var(--cw-shadow-sm);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow-x: clip;
}
a {
  color: var(--accent-ink);
  text-underline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 600;
}
h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 600;
}
p {
  color: var(--muted);
}
ul {
  padding-left: 20px;
  color: var(--muted);
}
li {
  margin-bottom: 8px;
}
code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86em;
  overflow-wrap: anywhere;
}
pre {
  margin: 0 0 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--cw-surface-soft);
  border: 1px solid var(--line);
  padding: 16px 18px;
  border-radius: var(--cw-radius-md);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
}
[hidden] {
  display: none !important;
}

/* Shared controls */
.eyebrow {
  display: block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 14px;
}
.lead {
  font-size: 19px;
  max-width: 560px;
}
.small {
  font-size: 14px;
  color: var(--muted);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--cw-on-inverse);
  border: 1px solid var(--accent);
  border-radius: var(--cw-radius-pill);
  box-shadow:
    inset 0 -1px 0 color-mix(in srgb, var(--cw-ink) 22%, transparent),
    0 1px 2px color-mix(in srgb, var(--cw-ink) 16%, transparent);
  text-decoration: none;
  cursor: pointer;
  min-height: 42px;
  white-space: nowrap;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}
.button:hover,
button:hover {
  background: color-mix(in srgb, var(--accent) 90%, white);
  border-color: color-mix(in srgb, var(--accent) 90%, white);
}
.button:active,
button:active {
  background: var(--accent-dark);
}
.quiet {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--cw-line-strong);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--cw-ink) 8%, transparent);
}
.quiet:hover {
  background: var(--cw-surface-soft);
  color: var(--ink);
  border-color: var(--cw-line-strong);
}
.text-button {
  border: 0;
  background: none;
  color: var(--accent-ink);
  padding: 6px 0;
  min-height: 0;
  font-weight: 500;
  box-shadow: none;
}
.text-button:hover {
  background: none;
  text-decoration: underline;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus,
select:focus,
textarea:focus,
summary:focus-visible {
  outline: 3px solid var(--cw-accent-focus);
  outline-offset: 3px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
input,
select,
textarea {
  font: inherit;
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--cw-line-strong);
  border-radius: var(--cw-radius);
  background: var(--surface);
  color: inherit;
  margin-top: 6px;
}
textarea {
  min-height: 96px;
  resize: vertical;
}
form > button[type="submit"] {
  margin-top: 4px;
  width: 100%;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 550;
  background: var(--accent-soft);
  color: var(--accent-dark);
  white-space: nowrap;
}
.neutral {
  background: var(--cw-surface-soft);
  color: var(--muted);
}
.paper,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--cw-ink) 4%, transparent);
  padding: 28px;
}
.paper > :last-child,
.card > :last-child {
  margin-bottom: 0;
}
.featured {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 18px 48px -18px color-mix(in srgb, var(--cw-accent) 45%, transparent);
}
.price {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 6px 0 16px;
}
.price small {
  font-size: 14px;
  font-weight: 450;
  letter-spacing: 0;
  color: var(--muted);
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--surface);
  padding: 10px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  flex-shrink: 0;
}

/* Marketing site */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: 1328px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  backdrop-filter: blur(10px);
}
.site-nav {
  --nav-gap: 26px;
  margin-left: auto;
  gap: var(--nav-gap);
}
/* The theme switch sits half as far from the main button as the links do. */
.site-nav .theme-toggle + .button {
  margin-left: calc(var(--nav-gap) / -2);
}
.site-nav > a:not(.button) {
  color: var(--ink);
  font-size: 15px;
  font-weight: 450;
  text-decoration: none;
  opacity: 0.86;
}
.site-nav > a:not(.button):hover {
  opacity: 1;
}
.site-nav .button {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 14px;
}
.header-note {
  margin-left: auto;
  font-size: 14px;
}
main {
  max-width: 1328px;
  margin: auto;
  padding: 48px 32px 96px;
  min-height: 70vh;
}
footer {
  max-width: 1328px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding: 28px 32px 40px;
  font-size: 14px;
  color: var(--muted);
}
footer > div p {
  display: none;
}
footer .brand {
  font-size: 16px;
}
footer nav {
  gap: 20px;
}
footer nav a {
  color: var(--muted);
  text-decoration: none;
}
footer nav a:hover {
  color: var(--ink);
}
.hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 0 40px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
}
.hero .lead {
  margin: 0 auto 32px;
}
.hero .row {
  justify-content: center;
}
.hero .small {
  margin-top: 16px;
}
.section {
  padding: 120px 0 0;
}
.section-heading {
  max-width: 920px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-heading h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.feature-grid,
.edition-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.edition-grid {
  grid-template-columns: 1fr 1fr;
}
.feature-grid h2,
.feature-grid h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.step {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 50%;
  margin-bottom: 18px;
  font-weight: 700;
}
.edition-grid .paper,
.pricing-grid .paper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.edition-grid .badge,
.pricing-grid .badge {
  margin-bottom: 18px;
}
.edition-grid h2,
.edition-grid h3 {
  margin-bottom: 8px;
}
.edition-grid ul,
.pricing-grid ul {
  flex: 1;
  margin: 8px 0 24px;
  font-size: 15px;
}
.pricing-grid .small {
  margin-top: 14px;
  font-size: 13px;
}
.closing {
  margin-top: 88px;
  text-align: center;
  padding: 64px 32px;
  background: var(--cw-inverse);
  border-radius: 20px;
}
.closing h2 {
  color: var(--cw-on-inverse);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
}
.closing p {
  color: var(--cw-inverse-muted);
  margin-bottom: 28px;
}
.closing .row {
  justify-content: center;
}
.page-intro {
  padding: 16px 0 40px;
  max-width: 760px;
}
/* One header for the public pages (Pricing, Docs, How It Works, MCP Server): the title,
   one lead paragraph, and optional buttons. */
.page-intro .lead {
  max-width: 640px;
}
.page-intro .promo-actions,
.page-intro .row {
  justify-content: flex-start;
  margin-top: 24px;
  gap: 10px;
  flex-wrap: wrap;
}
.readable {
  max-width: 760px;
}
.faq {
  max-width: 760px;
  margin: auto;
}
.faq details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
summary {
  font-weight: 600;
  cursor: pointer;
}
.faq details p {
  margin: 12px 0 0;
}
.legal {
  max-width: 820px;
}
.legal h1 {
  font-size: 44px;
}
.legal > h2 {
  margin-top: 32px;
  font-size: 23px;
}
/* Changelog page, generated from CHANGELOG.md */
.changelog .release {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.changelog .release h2 {
  margin-bottom: 2px;
  font-size: 23px;
}
.changelog .release h2 a {
  color: var(--ink);
  text-decoration: none;
}
.changelog .release h2 a:hover {
  color: var(--accent-ink);
}
.changelog .release-date {
  margin-bottom: 14px;
}
.changelog .release h3 {
  margin: 20px 0 8px;
  font-size: 17px;
}
.changelog .release ul {
  margin: 0;
  padding-left: 20px;
}
.changelog .release li {
  margin: 8px 0;
  color: var(--cw-ink-soft);
}
.changelog .release li::marker {
  color: var(--faint);
}
.changelog code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--cw-surface-soft);
  color: var(--ink);
}
.intro {
  max-width: 650px;
}
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* Dashboard app */
.app-body {
  background: var(--cw-canvas);
}
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.solo .shell {
  grid-template-columns: minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 22px 16px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.sidebar .brand {
  padding: 0 8px;
  font-size: 19px;
}
#app-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#app-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--cw-radius);
  color: var(--cw-ink-soft);
  font-size: 15px;
  font-weight: 450;
  text-decoration: none;
}
#app-nav a:hover {
  background: var(--cw-surface-soft);
  color: var(--ink);
}
#app-nav a[aria-current="page"] {
  background: var(--cw-surface-soft);
  color: var(--ink);
  font-weight: 500;
}
.icon {
  display: inline-flex;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 18px 8px 0;
}
.plan-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.plan-line strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
}
.usage .small {
  font-size: 13px;
}
.meter {
  height: 6px;
  background: var(--cw-line);
  border-radius: 6px;
  overflow: hidden;
  margin: 8px 0 6px;
}
.meter i {
  display: block;
  height: 100%;
  background: var(--accent);
}
/* Usage meters (sidebar and Plan & billing). Amber from 80%, red at the limit. */
.meter.high i {
  background: var(--cw-warning);
}
.meter.full i {
  background: var(--cw-danger);
}
.usage-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.usage-label strong {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.usage .usage-row .meter {
  margin: 6px 0;
}
.usage.detailed {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.usage.detailed .usage-label {
  font-size: 14px;
}
.usage.detailed .meter {
  height: 8px;
  margin: 8px 0 0;
}
.usage.detailed .small {
  margin: 0;
}
.usage-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--cw-warning-line);
  border-radius: var(--cw-radius-md);
  background: var(--cw-warning-soft);
}
.usage-banner strong {
  display: block;
  color: var(--cw-warning);
}
.usage-banner span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--cw-ink-soft);
}
.usage-banner.full {
  border-color: var(--cw-danger-line);
  background: var(--cw-danger-soft);
}
.usage-banner.full strong {
  color: var(--cw-danger);
}
.usage-banner .button {
  flex: none;
}
@media (max-width: 640px) {
  .usage-banner {
    flex-direction: column;
    align-items: stretch;
  }
}
.upgrade {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 9px 16px;
  border-radius: var(--cw-radius-pill);
  background: var(--accent);
  color: var(--cw-on-inverse);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow:
    inset 0 -1px 0 color-mix(in srgb, var(--cw-ink) 22%, transparent),
    0 1px 2px color-mix(in srgb, var(--cw-ink) 16%, transparent);
}
.upgrade::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.upgrade:hover {
  background: color-mix(in srgb, var(--accent) 90%, white);
}
.sidebar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.sidebar-foot .text-button {
  color: var(--muted);
  font-size: 14px;
}
.app-main {
  max-width: 1200px;
  width: 100%;
  margin: 0;
  padding: 40px 56px 80px;
  min-height: 0;
}
.solo .app-main {
  max-width: 440px;
  margin: 0 auto;
  padding: 10vh 20px 60px;
}
.solo-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.solo .card h2 {
  font-size: 24px;
}
.solo .card {
  box-shadow: var(--shadow);
}
.solo .card .row {
  margin-top: 8px;
}
.solo .card > .row.spread {
  margin-top: 14px;
}
.solo .small {
  margin: 14px 0 0;
}
/* Continue with Google / Apple: full-width neutral pills above the email form */
.provider-buttons {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.provider-button {
  width: 100%;
  gap: 10px;
  font-weight: 600;
}
.provider-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
}
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  color: var(--cw-muted);
  font-size: 13px;
}
.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--cw-line);
}
/* Account page: one row per sign-in method */
.method-list {
  display: grid;
  border: 1px solid var(--cw-line);
  border-radius: var(--cw-radius-md);
}
.method-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
}
.method-row + .method-row {
  border-top: 1px solid var(--cw-line);
}
.method-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--cw-radius-pill);
  background: var(--cw-surface-soft);
  color: var(--cw-ink);
}
.method-info {
  display: grid;
  flex: 1;
  min-width: 0;
}
.method-info .small {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
.page-head h1 {
  font-size: 34px;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.page-head p {
  margin: 0;
}
.id-line {
  font-size: 14px;
}
.id-line code {
  color: var(--ink);
  background: var(--cw-line);
  padding: 2px 6px;
  border-radius: 5px;
}
.crumb {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.crumb:hover {
  color: var(--accent-ink);
}
.list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.list.flat {
  border: 0;
  border-radius: 0;
  margin-bottom: 0;
}
.item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.item:first-child {
  border-top: 0;
}
.list.flat .item {
  padding: 12px 0;
}
.item > div,
.item > strong {
  flex: 1;
  min-width: 0;
}
.item > div strong,
.item > div span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.item .chevron {
  transition: color 120ms ease;
}
a.item:hover strong {
  color: var(--accent-ink);
}
a.item:hover .chevron {
  color: var(--accent-ink);
}
.chevron {
  color: var(--faint);
  font-size: 22px;
  line-height: 1;
}
/* Projects page: one panel per team, with its project cards inside */
.project-group {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--cw-radius-xl);
  background: color-mix(in srgb, var(--cw-surface-soft) 70%, var(--cw-canvas));
}
.project-group + .project-group {
  margin-top: 20px;
}
.project-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 18px;
}
.project-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.project-group-title > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.project-group-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--cw-radius-md);
  background: var(--cw-accent);
  color: var(--cw-on-inverse);
  font-size: 13px;
  font-weight: 700;
}
.project-group-mark .icon,
.project-group-mark svg {
  display: inline-flex;
  width: 18px;
  height: 18px;
}
.project-group-name {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.project-group-name:hover {
  color: var(--accent-ink);
}
.project-group-title .small {
  margin: 0;
  color: var(--muted);
}
.project-group-new {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .project-group {
    padding: 14px;
    border-radius: var(--cw-radius-lg);
  }
  .project-group-head {
    flex-wrap: wrap;
    padding: 2px 2px 14px;
  }
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.project-grid > li {
  min-width: 0;
}
.project-card {
  --project-color: var(--cw-accent-strong);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.project-card:hover {
  border-color: color-mix(in srgb, var(--project-color) 55%, var(--line));
  box-shadow: 0 6px 20px
    color-mix(in srgb, var(--project-color) 8%, transparent);
}
.project-card:focus-visible {
  outline: 3px solid var(--cw-accent-focus);
  outline-offset: 3px;
}
.project-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.project-monogram {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px 14px 14px 4px;
  background: var(--cw-accent-soft);
  border: 1px solid var(--cw-accent-line);
  color: var(--cw-accent-strong);
  font-size: 17px;
  font-weight: 650;
}
.project-identity {
  flex: 1;
  min-width: 0;
}
.project-identity h2 {
  margin: 0 0 5px;
  font-size: 18px;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.project-website {
  display: block;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-open {
  align-self: flex-start;
  color: var(--muted);
  font-size: 20px;
}
.project-card:hover .project-open {
  color: var(--project-color);
}
.project-card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.project-members {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.project-members .icon {
  display: inline-flex;
}
.project-members svg {
  width: 16px;
  height: 16px;
}
.project-role {
  margin-left: auto;
  color: var(--muted);
}
.project-pending {
  color: var(--cw-warning);
  background: var(--cw-warning-soft);
  font-size: 11px;
}
@media (prefers-reduced-motion: no-preference) {
  .project-card {
    transition:
      border-color 160ms ease-out,
      box-shadow 160ms ease-out;
  }
}
@media (max-width: 1050px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .project-card {
    padding: 20px;
  }
  .project-monogram {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }
}
.empty {
  text-align: center;
  padding: 48px 32px;
}
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  margin: 24px 0 32px;
  text-align: left;
}
.steps li {
  counter-increment: step;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cw-canvas);
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
}
.steps strong,
.steps span {
  display: block;
}
.steps strong {
  color: var(--ink);
}
.steps span {
  font-size: 14px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--cw-radius-pill);
  background: var(--surface);
  margin-bottom: 24px;
}
.tabs a {
  padding: 7px 16px;
  border-radius: var(--cw-radius-pill);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.tabs a:hover {
  color: var(--ink);
}
.tabs a[aria-current="page"] {
  background: var(--cw-inverse);
  color: var(--cw-on-inverse);
}
/* Phones: one row that scrolls sideways, like the main menu. */
@media (max-width: 700px) {
  .tabs {
    flex-wrap: nowrap;
    width: auto;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tabs a {
    flex: none;
    white-space: nowrap;
  }
  /* A long choice wraps in the open menu instead of hiding its end. */
  .dropdown-option {
    white-space: normal;
  }
}
.stack > * + * {
  margin-top: 16px;
}
.card h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.card .eyebrow {
  margin-bottom: 6px;
}
.narrow {
  max-width: 600px;
}
.code {
  position: relative;
}
.code pre {
  padding-right: 80px;
}
.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 0;
  padding: 4px 10px;
  font-size: 12px;
  background: var(--surface);
  color: var(--muted);
  border-color: var(--line);
}
.copy:hover {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: var(--cw-accent-line);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.grid.two {
  grid-template-columns: 1fr 1fr;
}
.grid .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.grid .card > p {
  flex: 1;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.checks li::before {
  content: "✓";
  color: var(--accent-ink);
  font-weight: 700;
  margin-right: 10px;
}
.origin-check {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  color: var(--ink);
  background: var(--cw-surface-soft);
  border-radius: 8px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .feature-grid,
  .pricing-grid,
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: sticky;
    z-index: 5;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  #app-nav {
    flex-direction: row;
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
  #app-nav a {
    white-space: nowrap;
    padding: 7px 10px;
    font-size: 14px;
  }
  .sidebar-foot {
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .sidebar-foot .usage,
  .sidebar-foot .upgrade,
  .plan-line strong {
    display: none;
  }
  .plan-line {
    margin: 0;
  }
  .sidebar-actions {
    margin: 0;
    padding: 0;
    border: 0;
    gap: 14px;
  }
  .app-main {
    padding: 28px 16px 60px;
  }
}
@media (max-width: 700px) {
  header {
    padding: 12px 16px;
    gap: 12px;
  }
  .site-nav {
    --nav-gap: 14px;
    flex-wrap: nowrap;
    flex-shrink: 0;
  }
  .site-nav > a:not(.button) {
    display: none;
  }
  .brand {
    font-size: 16px;
  }
  main {
    padding: 28px 16px 64px;
  }
  .hero {
    padding-top: 24px;
  }
  .section {
    padding-top: 64px;
  }
  .feature-grid,
  .edition-grid,
  .pricing-grid,
  .projects,
  .grid,
  .grid.two,
  .steps {
    grid-template-columns: 1fr;
  }
  .paper,
  .card {
    padding: 22px;
  }
  .closing {
    margin-top: 64px;
    padding: 40px 20px;
  }
  footer {
    padding: 24px 16px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  footer nav {
    gap: 14px;
  }
  .page-head {
    flex-direction: column;
    gap: 14px;
  }
  .page-head h1 {
    font-size: 26px;
  }
  .item {
    padding: 14px 16px;
  }
  .item .badge {
    display: none;
  }
  pre {
    font-size: 12px;
  }
  .legal h1 {
    font-size: 34px;
  }
}
@media (max-width: 400px) {
  header {
    gap: 8px;
    padding: 12px;
  }
  header .brand {
    gap: 7px;
    font-size: 14px;
  }
  header .brand img {
    width: 28px;
    height: 28px;
  }
  .site-nav .button {
    font-size: 12px;
    padding: 8px 10px;
    min-height: 40px;
  }
  header .theme-toggle {
    width: 36px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  .button {
    transition:
      background 0.15s,
      border-color 0.15s;
  }
}
footer > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
footer > div span {
  font-size: 13px;
}
.code:last-child pre {
  margin-bottom: 0;
}
.code pre {
  white-space: pre;
  overflow-x: auto;
  overflow-wrap: normal;
}
.grid.two {
  align-items: start;
}
@media (max-width: 900px) {
  .plan-line {
    display: none;
  }
}
@media (max-width: 700px) {
  .code pre {
    padding: 44px 16px 16px;
  }
}
.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  background: var(--cw-surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--cw-radius-pill);
}
.segmented button {
  min-height: 0;
  padding: 7px 14px;
  font-size: 14px;
  background: none;
  color: var(--muted);
  border: 0;
  border-radius: var(--cw-radius-pill);
  box-shadow: none;
}
.segmented button:hover {
  background: none;
  color: var(--ink);
}
.segmented button[aria-selected="true"],
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--cw-shadow-sm);
}
/* AI Install: a sparkle on the tab and a light violet gradient on the prompt card */
.segmented .ai-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.segmented .ai-tab .icon,
.ai-card h2 .icon {
  display: inline-flex;
  color: var(--cw-ai);
}
.segmented .ai-tab svg {
  width: 16px;
  height: 16px;
}
.ai-card {
  border-color: var(--cw-ai-line);
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--cw-ai) 9%, var(--surface)) 0%,
      var(--cw-ai-soft) 45%,
      var(--surface) 100%
    );
}
.ai-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-card h2 svg {
  width: 20px;
  height: 20px;
}
.ai-card pre {
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border-color: var(--cw-ai-line);
}
.code.prompt pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 420px;
  overflow-y: auto;
  font-size: 12.5px;
}
.code.prompt .copy {
  background: var(--accent);
  color: var(--cw-on-inverse);
  border-color: var(--accent);
}

/* Landing */
.pill {
  display: inline-block;
  margin-bottom: 22px;
  padding: 5px 14px;
  border: 1px solid var(--cw-accent-line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
}
.accent {
  color: var(--accent-ink);
}
.button.big {
  min-height: 48px;
  padding: 12px 24px;
  font-size: 16px;
}
.stage {
  position: relative;
  margin-top: 24px;
  padding: 72px 48px 0;
  border-radius: var(--cw-radius-xl);
  background:
    radial-gradient(
        circle at 1px 1px,
        color-mix(in srgb, var(--cw-ink) 16%, transparent) 1px,
        transparent 0
      )
      0 0 / 20px 20px,
    var(--panel);
  overflow: hidden;
}
.visual {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--cw-radius-lg) var(--cw-radius-lg) 0 0;
  background: var(--surface);
  box-shadow: var(--cw-shadow);
  overflow: hidden;
}
@media (max-width: 700px) {
  .stage {
    padding: 32px 12px 0;
  }
}
.visual::before {
  content: "";
  position: absolute;
  inset: -40% 10% auto;
  height: 300px;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--cw-accent) 12%, transparent),
    transparent
  );
  pointer-events: none;
}
.v-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--cw-canvas);
}
.v-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cw-line-strong);
}
.v-bar i {
  margin: 0 auto;
  padding: 2px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--faint);
  font-size: 12px;
  font-style: normal;
}
.v-page {
  position: relative;
  padding: 28px 40px 44px;
}
.v-page b,
.v-page em {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--cw-line);
}
.v-nav {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 36px;
}
.v-nav b {
  width: 90px;
  height: 14px;
  background: var(--cw-accent-line);
}
.v-nav em {
  width: 54px;
}
.v-nav b + em {
  margin-left: auto;
}
.v-hero {
  max-width: 420px;
  margin-bottom: 36px;
}
.v-hero b {
  height: 26px;
  margin-bottom: 14px;
  background: var(--cw-line);
}
.v-hero em {
  margin-bottom: 9px;
}
.v-hero .short {
  width: 60%;
}
.v-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.v-card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.v-card b {
  width: 60%;
  height: 14px;
  margin-bottom: 14px;
  background: var(--cw-line);
}
.v-card em {
  margin-bottom: 8px;
}
.v-card.target {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.v-rows {
  margin-top: 30px;
}
.v-rows em {
  margin-bottom: 10px;
}
.v-rows em:first-child {
  width: 46%;
}
.v-rows em:nth-child(2) {
  width: 52%;
}
.v-rows .short {
  width: 30%;
}
.v-btn {
  display: block;
  width: 84px;
  height: 26px;
  margin-top: 16px;
  border-radius: 7px;
  background: var(--cw-accent-line);
}
/* Static copies of the widget pin and thread. Sizes and colors follow src/widget/styles.ts. */
.v-hero {
  position: relative;
}
.visual .pin {
  position: absolute;
  top: 16px;
  left: 70%;
  width: 32px;
  height: 36px;
  transform: translate(-50%, -100%);
  display: grid;
  place-items: center;
  border: 2px solid var(--cw-surface);
  border-radius: 15px 15px 15px 4px;
  background: var(--cw-accent);
  color: var(--cw-on-inverse);
  box-shadow: var(--cw-shadow-sm);
  font-size: 13px;
  font-weight: 650;
}
.visual .v-card .pin {
  top: 58px;
  left: auto;
  right: 6px;
}
.visual .pin.resolved {
  background: var(--cw-resolved);
}
.v-page {
  min-height: 540px;
}
.thread {
  position: absolute;
  top: 72px;
  right: 40px;
  width: 300px;
  border: 1px solid var(--cw-line);
  border-radius: var(--cw-radius-lg);
  background: var(--cw-surface);
  box-shadow: var(--cw-shadow);
  color: var(--cw-ink);
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
}
.thread svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.t-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
}
.t-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--cw-accent-soft);
  color: var(--accent-ink);
}
.t-title {
  flex: 1;
}
.t-title strong,
.t-title small {
  display: block;
}
.t-title strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
.thread small {
  color: var(--cw-muted);
  font-size: 12px;
}
.t-close {
  color: var(--cw-muted);
  font-size: 18px;
  line-height: 1;
}
.t-msg {
  margin: 0 14px;
  padding: 12px 0;
  border-top: 1px solid var(--cw-line);
}
.t-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.t-author strong {
  font-weight: 600;
}
.t-author small {
  margin-left: auto;
}
.thread .avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cw-avatar-bg);
  color: var(--cw-avatar-ink);
  font-size: 10px;
  font-weight: 700;
}
.t-msg p {
  margin: 6px 0 0 34px;
  color: var(--cw-ink-soft);
  font-size: 14px;
}
.t-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--cw-line);
}
.t-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--cw-resolved-text);
  font-size: 12px;
  font-weight: 600;
}
.t-status svg {
  width: 13px;
  height: 13px;
}
.t-button {
  padding: 6px 10px;
  border: 1px solid var(--cw-line);
  border-radius: var(--cw-radius);
  font-size: 12px;
  font-weight: 500;
}
.t-resolve {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-color: var(--cw-accent);
  background: var(--cw-accent);
  color: var(--cw-on-inverse);
  font-weight: 600;
}
.t-resolve svg {
  width: 13px;
  height: 13px;
}
.t-reply {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--cw-line-strong);
  border-radius: var(--cw-radius);
  color: var(--cw-subtle);
  font-size: 12px;
}

/* Looping story in the hero mock (landing.js adds .animated and the s-* steps).
   Without the script, the mock shows the finished, resolved thread. */
.t-done,
.v-cursor {
  display: none;
}
.visual:not(.animated) .t-open,
.visual:not(.animated) .t-actions.open {
  display: none;
}
.visual:not(.animated) .t-done {
  display: inline;
}
.visual:not(.animated) .pin.live {
  background: var(--cw-resolved);
}
.animated .v-cursor {
  display: block;
  position: absolute;
  top: -3px;
  left: -5px;
  z-index: 4;
  width: 22px;
  height: 22px;
  color: var(--cw-ink);
  transition: transform 1.1s cubic-bezier(0.6, 0, 0.2, 1);
  pointer-events: none;
}
.animated .v-cursor svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: var(--cw-surface);
  stroke-width: 1.5;
  stroke-linejoin: round;
  filter: drop-shadow(
    0 2px 3px color-mix(in srgb, var(--cw-ink) 30%, transparent)
  );
}
.animated .v-cursor::before,
.animated .v-cursor::after {
  content: "";
  position: absolute;
  top: -7px;
  left: -5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cw-accent) 35%, transparent);
  opacity: 0;
}
.animated.s-click .v-cursor::before,
.animated.s-resolved .v-cursor::after {
  animation: v-ripple 0.6s ease-out;
}
@keyframes v-ripple {
  from {
    opacity: 1;
    transform: scale(0.3);
  }
  to {
    opacity: 0;
    transform: scale(1.6);
  }
}
.animated .v-card.target {
  outline-color: transparent;
  transition: outline-color 0.3s;
}
.animated.s-click .v-card.target {
  outline-color: var(--accent);
}
.animated.s-closed .v-card.target {
  outline-color: transparent;
}
.animated .pin.live {
  transform: translate(-50%, -100%) scale(0);
  transition:
    transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1),
    background-color 0.4s,
    opacity 0.5s;
}
.animated.v-reset .pin.live,
.animated.v-reset .thread,
.animated.v-reset .t-msg.second {
  transition: none;
}
.animated.s-pin .pin.live {
  transform: translate(-50%, -100%) scale(1);
}
.animated.s-resolved .pin.live {
  background: var(--cw-resolved);
}
.animated.s-fade .pin.live {
  opacity: 0;
}
.animated .thread {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 0.35s,
    transform 0.35s;
}
.animated.s-open .thread {
  opacity: 1;
  transform: none;
}
.animated.s-closed .thread {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}
.animated .t-msg.first p {
  min-height: 21px;
}
.animated .t-type::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 15px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--cw-accent);
  animation: v-blink 1s steps(1) infinite;
}
.animated.s-reply .t-type::after {
  display: none;
}
@keyframes v-blink {
  50% {
    opacity: 0;
  }
}
.animated .t-msg.second {
  max-height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  border-top-color: transparent;
  transition:
    max-height 0.45s,
    padding 0.45s,
    opacity 0.45s;
}
.animated.s-reply .t-msg.second {
  max-height: 120px;
  padding: 12px 0;
  opacity: 1;
  border-top-color: var(--cw-line);
}
.animated .t-actions.done,
.animated.s-resolved .t-actions.open,
.animated.s-resolved .t-open {
  display: none;
}
.animated.s-resolved .t-actions.done {
  display: flex;
}
.animated.s-resolved .t-done {
  display: inline;
}
.works {
  margin: 40px auto 0;
  text-align: center;
  color: var(--muted);
}
.works > p {
  margin: 0 0 22px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.stack-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 38px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.stack-logos li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cw-ink-soft);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stack-logos svg {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
}
/* Framework logos keep their own brand color in the fill attribute. */
.stack-logos svg:not([fill]) {
  fill: currentColor;
}
.stack-astro svg,
.stack-nextdotjs svg {
  color: var(--ink);
}
.feature {
  padding: 30px;
}
.f-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
}
.f-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.edition-grid .checks {
  margin: 12px 0 24px;
  font-size: 15px;
}
@media (max-width: 900px) {
  .v-page {
    min-height: 0;
  }
  .thread {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin-top: 20px;
  }
}
@media (max-width: 700px) {
  .hero {
    padding-top: 24px;
  }
  .v-page {
    padding: 20px;
  }
  .v-cards {
    grid-template-columns: 1fr;
  }
  .v-cards .v-card:not(.target) {
    display: none;
  }
  .stack-logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 12px;
  }
  .stack-logos li {
    justify-content: center;
    gap: 7px;
    font-size: 13px;
  }
  .stack-logos svg {
    width: 22px;
    height: 22px;
  }
}

/* Docs */
.doc-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 36px;
}
.doc-section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.doc-section:first-child {
  border-top: 0;
}
/* Public docs page: one card per section, labelled code blocks with Copy */
body:not(.app-body) .doc {
  display: grid;
  gap: 16px;
  padding: 0;
  background: none;
  border: 0;
}
body:not(.app-body) .doc-section {
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--cw-radius-lg);
  background: var(--surface);
  scroll-margin-top: 90px;
}
body:not(.app-body) .doc-section > p:last-child {
  margin-bottom: 0;
}
.code-block {
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--cw-radius-md);
  background: var(--cw-surface-soft);
  overflow: hidden;
}
.code-block figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px 6px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.code-block pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.copy-code {
  min-height: 0;
  padding: 4px 12px;
  font-size: 12px;
  background: var(--surface);
  color: var(--ink);
  border-color: var(--cw-line-strong);
  box-shadow: none;
}
.copy-code:hover {
  background: var(--cw-surface-soft);
  border-color: var(--cw-line-strong);
}
.doc-note {
  font-size: 14px;
  color: var(--muted);
}
.doc-ai {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--cw-ai-line);
  border-radius: var(--cw-radius-md);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--cw-ai) 9%, var(--surface)) 0%,
    var(--cw-ai-soft) 45%,
    var(--surface) 100%
  );
}
.doc-ai-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--cw-ai);
  border: 1px solid var(--cw-ai-line);
}
.doc-ai p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.doc-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.doc-facts > div {
  padding: 16px 18px;
  border-radius: var(--cw-radius-md);
  background: var(--cw-canvas);
}
.doc-facts p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 700px) {
  body:not(.app-body) .doc-section {
    padding: 22px 18px;
  }
  .doc-facts {
    grid-template-columns: 1fr;
  }
}
.doc-section h2 {
  font-size: 22px;
  margin-bottom: 12px;
}
.doc-section > p {
  max-width: 640px;
}
.doc-section .segmented {
  margin-top: 4px;
}
.doc-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0;
  margin: 4px 0 18px;
}
.doc-steps li {
  counter-increment: step;
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--cw-canvas);
}
.doc-steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--cw-on-inverse);
  font-size: 12px;
  font-weight: 700;
}
.doc-steps strong,
.doc-steps span {
  display: block;
}
.doc-steps span {
  font-size: 14px;
  color: var(--muted);
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.doc-table th,
.doc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.doc-table th:first-child,
.doc-table td:first-child {
  text-align: left;
  color: var(--ink);
}
.doc-table td {
  color: var(--muted);
}
.doc-table th {
  font-size: 13px;
  color: var(--muted);
}
.faq-list details {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.faq-list details:last-child {
  border-bottom: 0;
}
.faq-list p {
  margin: 8px 0 0;
}
.toc {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc a {
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.toc a:hover {
  color: var(--ink);
}
.toc a.active {
  color: var(--accent-dark);
  border-color: var(--accent);
  font-weight: 600;
}
.toc .toc-more {
  margin-top: 14px;
  border: 0;
  padding-left: 0;
  color: var(--accent-ink);
}
@media (max-width: 1100px) {
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  /* The menu becomes a row of chips above the docs. */
  .toc {
    top: 0;
    z-index: 5;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 0;
    background: var(--cw-surface-soft);
    scrollbar-width: none;
  }
  body:not(.app-body) .toc {
    top: 70px;
    background: var(--cw-canvas);
  }
  .toc .eyebrow,
  .toc .toc-more {
    display: none;
  }
  .toc a {
    flex-shrink: 0;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: var(--surface);
    white-space: nowrap;
  }
  .toc a.active {
    background: var(--accent-soft);
    border-color: var(--cw-accent-line);
  }
}
@media (max-width: 700px) {
  .doc {
    padding: 4px 20px;
  }
  .doc-steps {
    grid-template-columns: 1fr;
  }
}
.try-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--faint);
}
button.big {
  min-height: 48px;
  padding: 12px 24px;
  font-size: 16px;
}

/* Join requests and short notifications */
#app-nav a .count {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--cw-on-inverse);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}
.card.requests {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  margin-bottom: 20px;
}
/* Get started checklist on the Projects page for new accounts */
.card.onboarding {
  margin-bottom: 24px;
}
.onboarding-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.onboarding-head h2 {
  margin-bottom: 2px;
}
.onboarding-count {
  margin: 0;
}
.onboarding-head .text-button {
  flex-shrink: 0;
  font-size: 14px;
}
.card.onboarding .meter {
  margin: 14px 0 8px;
}
.onboarding-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.onboarding-steps li {
  margin: 0;
}
.onboarding-steps li + li .item {
  border-top: 1px solid var(--line);
}
.list.flat .onboarding-step {
  padding: 12px 8px;
  margin: 0 -8px;
  border-radius: var(--cw-radius-sm);
}
.onboarding-step strong {
  color: var(--ink);
  font-weight: 600;
}
.onboarding-step .small {
  font-size: 14px;
}
.onboarding-mark {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--cw-line-strong);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}
.onboarding-step.done .onboarding-mark {
  border-color: var(--cw-resolved);
  background: var(--cw-resolved);
  color: var(--cw-on-inverse);
}
.onboarding-step.done strong {
  color: var(--muted);
}
.badge.onboarding-done {
  background: var(--cw-resolved-soft);
  color: var(--cw-resolved-text);
}
@media (max-width: 700px) {
  .onboarding-step .small {
    white-space: normal;
  }
}
.request-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.request-actions button {
  padding: 7px 14px;
}
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
}
.toast {
  background: var(--cw-inverse);
  color: var(--cw-on-inverse);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: toast-in 0.2s ease-out;
  white-space: pre-wrap;
  cursor: pointer;
}
.toast.error {
  background: var(--cw-danger-soft);
  color: var(--cw-danger);
  border: 1px solid var(--cw-danger-line);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (max-width: 640px) {
  .item.request {
    flex-wrap: wrap;
  }
  .toasts {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }
}

/* Landing workflow: one connected sequence, with a color for each stage. */
.workflow-section .section-heading,
.hosting-section .section-heading {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.workflow-section .feature-grid {
  gap: 28px;
}
.workflow-step {
  min-width: 0;
  padding: 0;
}
.workflow-copy {
  padding: 24px 8px 0;
}
.workflow-copy h3 {
  margin: 0 0 10px;
  font-size: 21px;
  letter-spacing: -0.025em;
}
.workflow-copy p {
  margin: 0;
  text-wrap: pretty;
}
.step-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.workflow-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  padding: 22px;
  border-radius: 16px;
  background: radial-gradient(
      color-mix(in srgb, var(--cw-muted) 20%, transparent) 1px,
      transparent 1px
    )
    0 0 / 18px 18px;
  isolation: isolate;
}
.workflow-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--cw-accent) 9%, transparent),
    transparent 72%
  );
}
.scene-window {
  width: 100%;
  max-width: 300px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 24px -14px
    color-mix(in srgb, var(--cw-ink) 25%, transparent);
}
.scene-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.window-dots {
  letter-spacing: 3px;
  color: var(--cw-subtle);
  font-size: 8px;
}
.scene-code {
  padding: 18px 16px;
  font:
    11px/1.9 ui-monospace,
    monospace;
  color: var(--cw-ink-soft);
}
.scene-code > span {
  color: var(--cw-accent-strong);
}
.scene-code b {
  padding-left: 12px;
  color: var(--cw-accent-strong);
  font-weight: 500;
}
.scene-ready {
  margin: 0 16px 16px;
  color: var(--muted);
  font-size: 10px;
}
.scene-ready > span {
  color: var(--cw-resolved-text);
  margin-right: 5px;
}
.scene-page {
  position: absolute;
  width: 72%;
  height: 135px;
  top: 20px;
  left: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.scene-page-line {
  display: block;
  height: 8px;
  width: 84%;
  margin-bottom: 10px;
  border-radius: 3px;
  background: var(--cw-line-strong);
}
.scene-page-line.short {
  width: 55%;
}
.scene-page-button {
  display: block;
  width: 52px;
  height: 20px;
  margin-top: 18px;
  border-radius: 5px;
  background: var(--cw-accent-soft);
  border: 1px solid var(--cw-accent-line);
}
.scene-pin {
  position: absolute;
  left: 58%;
  top: 54px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  border-radius: 50% 50% 4px 50%;
  color: white;
  background: var(--cw-accent);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cw-accent) 15%, transparent);
}
.scene-comment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  color: var(--ink);
  font-size: 11px;
}
.discuss-scene > .scene-comment {
  position: absolute;
  right: 12px;
  bottom: 24px;
  width: 86%;
  max-width: 285px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 12px 24px -14px
    color-mix(in srgb, var(--cw-ink) 25%, transparent);
}
.scene-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cw-accent-soft);
  color: var(--cw-accent-strong);
  font-size: 10px;
  font-weight: 650;
}
.scene-comment b {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.scene-replies {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
}
.scene-status {
  color: var(--cw-resolved-text);
  font-weight: 600;
}
.resolved-scene .scene-avatar {
  background: var(--cw-resolved-soft);
  color: var(--cw-resolved-text);
}
.scene-history {
  margin: 0 16px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.scene-history > span {
  color: var(--cw-resolved-text);
  margin-right: 5px;
}
.section-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.hosting-section .edition-grid {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.edition {
  min-width: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.cloud-edition {
  background: color-mix(in srgb, var(--cw-accent) 5%, var(--surface));
}
.self-edition {
  border-left: 1px solid var(--line);
}
.edition-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.edition-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cw-accent-strong);
  font-size: 14px;
  font-weight: 650;
}
.edition-label svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.self-edition .edition-label {
  color: var(--cw-resolved-text);
}
.edition-note {
  color: var(--muted);
  font-size: 11px;
}
.edition h3 {
  font-size: 26px;
  letter-spacing: -0.025em;
}
.edition .checks {
  margin: 12px 0 30px;
  font-weight: 400;
}
.self-edition .checks li::before {
  color: var(--cw-resolved-text);
}
.edition-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.edition-footer > span {
  color: var(--muted);
  font-size: 12px;
}
.edition-footer .button {
  gap: 20px;
}
@media (max-width: 900px) {
  .workflow-section .feature-grid {
    gap: 16px;
  }
  .workflow-scene {
    padding: 14px;
  }

  .edition {
    padding: 24px;
  }
}
@media (max-width: 700px) {
  .workflow-section .feature-grid {
    grid-template-columns: 1fr;
  }
  .workflow-section .feature-grid {
    gap: 36px;
  }
  .workflow-scene {
    height: 230px;
  }
  .workflow-copy {
    padding-top: 18px;
  }
  .hosting-section .edition-grid {
    grid-template-columns: 1fr;
  }
  .self-edition {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .edition-top {
    margin-bottom: 24px;
  }
}

/* Closing call to action with a soft glow and a dot pattern. */
.closing {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 88px 32px;
  border-radius: var(--cw-radius-xl);
  background:
    radial-gradient(
      55% 90% at 50% 0%,
      color-mix(in srgb, var(--cw-accent) 55%, transparent),
      transparent 70%
    ),
    radial-gradient(
      40% 60% at 85% 100%,
      color-mix(in srgb, var(--cw-accent) 30%, transparent),
      transparent 70%
    ),
    var(--closing-base, var(--cw-inverse));
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(
    color-mix(in srgb, var(--cw-on-inverse) 22%, transparent) 1px,
    transparent 1.5px
  );
  background-size: 22px 22px;
  mask-image: radial-gradient(70% 80% at 50% 45%, black, transparent);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .closing::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(
      rgb(155 140 245 / 42%) 1px,
      transparent 2px
    );
    background-size: 22px 22px;
    mask-image: radial-gradient(
      circle 140px at var(--dot-x, 50%) var(--dot-y, 50%),
      black,
      transparent 100%
    );
    opacity: 0;
    transition: opacity 180ms cubic-bezier(0.2, 0, 0, 1);
  }
  .closing.is-dot-lit::after {
    opacity: 1;
  }
}
.closing {
  border: 1px solid color-mix(in srgb, var(--cw-accent) 22%, transparent);
}
.closing p {
  color: color-mix(in srgb, var(--cw-on-inverse) 72%, transparent);
}
.closing .button {
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--cw-accent) 25%, transparent),
    0 10px 40px color-mix(in srgb, var(--cw-accent) 70%, transparent);
}
.closing .deco {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 4px;
  background: var(--accent);
  color: var(--cw-on-inverse);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--cw-accent) 25%, transparent);
  animation: float 6s ease-in-out infinite;
}
.closing .deco.one {
  top: 22%;
  left: 12%;
  transform: rotate(-8deg);
}
.closing .deco.two {
  right: 13%;
  bottom: 24%;
  background: var(--cw-resolved);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--cw-resolved) 25%, transparent);
  animation-delay: -3s;
}
@keyframes float {
  50% {
    translate: 0 -10px;
  }
}
@media (max-width: 700px) {
  .closing {
    padding: 56px 20px;
  }
  .closing .deco {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .closing .deco {
    animation: none;
  }
}

/* Self-host page */
.section.tight {
  padding-top: 56px;
}
.section-heading.left {
  margin: 0 0 24px;
  text-align: left;
}
.section-heading.left h2 {
  margin-bottom: 8px;
}
.section-heading.left p {
  margin: 0;
}
.compare {
  padding: 8px 24px;
  overflow-x: auto;
}
.compare .doc-table td,
.compare .doc-table th {
  text-align: left;
  padding: 14px 12px;
}
.compare .doc-table tr:last-child td {
  border-bottom: 0;
}
.compare .doc-table td:first-child {
  font-weight: 600;
}
.compare + .small {
  margin-top: 14px;
}
.install-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
}
.install-steps li {
  counter-increment: step;
  margin: 0;
}
.install-steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--cw-on-inverse);
  font-size: 14px;
  font-weight: 700;
}
.install-steps h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.install-steps pre {
  font-size: 12.5px;
  white-space: pre;
  overflow-x: auto;
}
.install-steps details {
  margin-top: 10px;
  font-size: 14px;
}
@media (max-width: 900px) {
  .install-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Dashboard: help cards, plan summary and plan cards */
.card.help .tile,
.card.help .icon.tile {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: var(--cw-radius);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.card.help > p {
  flex: 1;
}
.plan-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.plan-summary > div {
  flex: 1;
  min-width: 0;
}
.plan-summary h2 {
  font-size: 24px;
  margin-bottom: 4px;
}
.fine-print {
  max-width: 760px;
}
.billing-history {
  margin-bottom: 20px;
}
.billing-history h2 {
  font-size: 18px;
}
.item.invoice {
  gap: 14px;
}
.item.invoice > strong.invoice-amount {
  flex: none;
  font-variant-numeric: tabular-nums;
}
.invoice .badge.warn {
  background: var(--cw-warning-soft);
  color: var(--cw-warning);
}
.invoice button {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 14px;
}
@media (max-width: 640px) {
  .item.invoice {
    flex-wrap: wrap;
  }
  .item.invoice > div {
    flex-basis: 100%;
  }
  .item.invoice button {
    margin-left: auto;
  }
  .item.invoice .badge {
    display: inline-flex;
  }
}
@media (max-width: 900px) {
  .plan-summary {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Theme switch, added to the header and the dashboard sidebar by theme.js */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  /* Flat: no shadow from the base button style. */
  box-shadow: none;
  cursor: pointer;
}
.theme-toggle:hover {
  background: var(--cw-surface-soft);
  color: var(--ink);
  border-color: var(--cw-line-strong);
}
header .theme-toggle {
  order: 0;
}

/* Phone menu of the site header, added by theme.js. Shown below 700px only. */
.menu-toggle {
  display: none;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
  cursor: pointer;
}
.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  background: var(--cw-surface-soft);
  border-color: var(--cw-line-strong);
}
.site-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 16px;
  left: 16px;
  display: grid;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--cw-radius-md);
  box-shadow: var(--cw-shadow);
}
.site-menu[hidden] {
  display: none;
}
.site-menu a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: var(--cw-radius-sm);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.site-menu a:hover {
  background: var(--cw-surface-soft);
}
.site-menu a:focus-visible {
  outline-offset: -2px;
}
@media (max-width: 700px) {
  header .menu-toggle {
    display: inline-grid;
  }
}
@media (min-width: 701px) {
  .site-menu {
    display: none;
  }
}
@media (max-width: 400px) {
  header .menu-toggle {
    width: 36px;
    height: 40px;
  }
}
/* The smallest phones keep the logo; the name stays for screen readers. */
@media (max-width: 360px) {
  header .brand {
    gap: 0;
    font-size: 0;
  }
}

/* Hero: a soft blue glow and a dot grid behind the heading, no borders, and two sample notes around it */
.hero {
  position: relative;
  isolation: isolate;
  max-width: 920px;
  margin: 0 auto;
  padding: 88px 0 56px;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -80px calc(50% - 50vw) 0;
  background:
    radial-gradient(
      45% 55% at 50% 38%,
      color-mix(in srgb, var(--cw-accent) 14%, transparent),
      transparent 70%
    ),
    radial-gradient(
        circle at 1px 1px,
        color-mix(in srgb, var(--cw-ink) 16%, transparent) 1px,
        transparent 0
      )
      0 0 / 20px 20px;
  mask-image: radial-gradient(60% 75% at 50% 40%, black, transparent);
  pointer-events: none;
}
.hero h1 {
  max-width: 900px;
  margin: 0 auto 24px;
  font-size: clamp(44px, 6.6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.hero .lead {
  max-width: 620px;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.hero .button.big,
.hero .quiet.big {
  min-width: 188px;
}
.pill.news {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-color: var(--cw-line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 450;
  line-height: 22px;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--cw-ink) 6%, transparent);
}
a.pill.news {
  text-decoration: none;
}
a.pill.news:hover {
  border-color: var(--accent-line, var(--cw-accent-line));
}
.pill.news .news-arrow {
  color: var(--muted);
  transition: transform 0.15s;
}
a.pill.news:hover .news-arrow {
  color: var(--accent-ink);
  transform: translateX(2px);
}
#mcp {
  scroll-margin-top: 80px;
}
.pill.news b {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--cw-radius-pill);
  background: var(--accent);
  color: var(--cw-on-inverse);
  font-size: 12px;
  font-weight: 600;
}
.accent.gradient {
  color: var(--accent-ink);
}
.hero .try-note {
  margin-top: 14px;
}
.hero-notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.h-note {
  position: absolute;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: float 7s ease-in-out infinite;
}
.h-note.left {
  top: 170px;
  left: -170px;
}
.h-note.right {
  top: 370px;
  right: -190px;
  animation-delay: -3.5s;
}
.h-pin {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 34px;
  border: 2px solid var(--cw-surface);
  border-radius: 14px 14px 14px 4px;
  background: var(--cw-accent);
  color: var(--cw-on-inverse);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--cw-shadow-sm);
}
.h-pin.done {
  border-radius: 14px 14px 4px 14px;
  background: var(--cw-resolved);
}
.h-bubble {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--cw-shadow);
  text-align: left;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  white-space: nowrap;
}
.h-bubble b {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.h-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cw-avatar-bg);
  color: var(--cw-avatar-ink);
  font-size: 11px;
  font-weight: 700;
}
.h-avatar.alt {
  background: var(--cw-resolved-soft);
  color: var(--cw-resolved-text);
}
.h-done {
  padding: 1px 8px;
  border-radius: 99px;
  background: var(--cw-resolved-soft);
  color: var(--cw-resolved-text);
  font-size: 11px;
  font-weight: 650;
}
@media (max-width: 1320px) {
  .h-note.left {
    left: -40px;
    top: 40px;
  }
  .h-note.right {
    right: -40px;
    top: 420px;
  }
}
@media (max-width: 1180px) {
  .hero-notes {
    display: none;
  }
}

/* Signed-out screens (sign in, sign up, /connect): the landing hero's dot grid and blue glow behind one card */
body.solo {
  position: relative;
  isolation: isolate;
  background: var(--bg);
  min-height: 100vh;
}
body.solo::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      38% 42% at 50% 46%,
      color-mix(in srgb, var(--cw-accent) 18%, transparent),
      transparent 72%
    ),
    radial-gradient(
        circle at 1px 1px,
        color-mix(in srgb, var(--cw-ink) 16%, transparent) 1px,
        transparent 0
      )
      0 0 / 20px 20px;
  mask-image: radial-gradient(70% 80% at 50% 45%, black, transparent);
  pointer-events: none;
}
.solo .app-main > .card {
  padding: 32px 30px 28px;
  border-radius: var(--cw-radius-xl);
  box-shadow:
    0 30px 80px -28px color-mix(in srgb, var(--cw-accent) 45%, transparent),
    var(--shadow);
}
.solo .card .auth-lead {
  margin: -6px 0 18px;
  color: var(--cw-muted);
}
.solo .card .auth-terms {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--cw-line);
  text-align: center;
  text-wrap: balance;
  font-size: 13px;
}
.auth-terms a,
.auth-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 28px 0 0;
  color: var(--cw-muted);
  font-size: 13px;
}
.auth-footer a {
  text-decoration: none;
}
.auth-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.card.connect {
  padding: 30px 28px 26px;
  border-radius: var(--cw-radius-xl);
  box-shadow:
    0 24px 60px -24px color-mix(in srgb, var(--cw-accent) 35%, transparent),
    var(--shadow);
}
.card.connect h2 {
  margin-bottom: 8px;
  text-align: center;
}
.card.connect > p:not(.small):not(.connect-host) {
  text-align: center;
}
.connect-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.connect-site,
.connect-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
}
.connect-site {
  border: 1px solid var(--line);
  background: var(--cw-surface-soft);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}
.connect-logo img {
  display: block;
  border-radius: 12px;
}
.connect-link {
  display: flex;
  gap: 4px;
}
.connect-link i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cw-accent);
  animation: connect-dot 1.4s ease-in-out infinite;
}
.connect-link i:nth-child(2) {
  animation-delay: 0.2s;
}
.connect-link i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes connect-dot {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}
.connect-host {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cw-canvas);
  font-size: 14px;
}
.connect-host span {
  color: var(--muted);
}
.connect-host strong {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
  text-align: right;
}
.connect-account {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.connect-account > div {
  flex: 1;
  min-width: 0;
}
.connect-account strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.connect-account small {
  color: var(--muted);
  font-size: 12px;
}
.connect-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cw-avatar-bg);
  color: var(--cw-avatar-ink);
  font-size: 13px;
  font-weight: 700;
}
.card.connect button.wide {
  width: 100%;
  min-height: 46px;
  font-size: 16px;
}
.card.connect .fine {
  text-align: center;
}

/* On dark surfaces accent text takes the lighter accent, so links and icons keep their contrast. */
:root[data-theme="dark"] {
  --accent-ink: var(--cw-accent-strong);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent-ink: var(--cw-accent-strong);
  }
}

/* The closing banner looks the same in both themes: dark mode's inverse color is lighter, so it is darkened back. */
:root[data-theme="dark"] .closing {
  --closing-base: color-mix(in srgb, var(--cw-inverse) 82%, black);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .closing {
    --closing-base: color-mix(in srgb, var(--cw-inverse) 82%, black);
  }
}

/* In dark mode the dashboard sits on the darkest color, so cards rise above it as they do in light mode. */
:root[data-theme="dark"] .app-body {
  background: var(--cw-canvas);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app-body {
    background: var(--cw-canvas);
  }
}

/* Inline Paddle checkout: our summary next to Paddle's payment form. */
.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover {
  color: var(--accent-ink);
}
.checkout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.checkout-summary .price {
  margin: 12px 0;
}
.checkout-totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  margin: 20px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.checkout-totals dt,
.checkout-totals dd {
  margin: 0;
  color: var(--muted);
}
.checkout-totals dd {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.checkout-totals .total {
  color: var(--ink);
  font-weight: 700;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.checkout-payment {
  /* The Paddle form is always light: a white panel in both site themes. */
  padding: 12px;
  border-color: var(--line);
  background: #ffffff;
  overflow: hidden;
  min-height: 480px;
}
@media (max-width: 860px) {
  .checkout {
    grid-template-columns: 1fr;
  }
}

/* Project settings and members: a title with a short note on the left, the controls on the right. */
.card.setting {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 20px 40px;
  align-items: start;
}
.setting-info h2 {
  margin-bottom: 6px;
}
.setting-info p {
  margin: 0;
  line-height: 1.55;
}
.setting-body label:last-child,
.setting-body > :last-child > label:last-child {
  margin-bottom: 0;
}
.setting-body .small {
  margin: 4px 0 0;
  line-height: 1.55;
}
.stack > .card.requests {
  margin-bottom: 0;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
}
.form-actions button {
  min-width: 150px;
}
select {
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
/* Own drop list for every select (app.js dropdown()). The native select stays hidden for forms. */
.dropdown {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 400;
}
.dropdown-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.dropdown-button,
.dropdown-button:hover,
.dropdown-button:active {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  min-height: 0;
  padding: 11px 40px 11px 13px;
  border: 1px solid var(--cw-line-strong);
  border-radius: var(--cw-radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  box-shadow: none;
  position: relative;
}
.dropdown-button:hover {
  border-color: color-mix(in srgb, var(--cw-ink) 30%, var(--cw-line-strong));
}
.dropdown-button[aria-expanded="true"] {
  border-color: var(--accent);
}
.dropdown-button:disabled {
  cursor: default;
}
.dropdown-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.dropdown-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border: solid var(--muted);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.dropdown-button[aria-expanded="true"] .dropdown-chevron {
  margin-top: -2px;
  transform: rotate(225deg);
}
.dropdown-menu {
  position: fixed;
  z-index: 1000;
  max-width: min(480px, calc(100vw - 24px));
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--cw-line);
  border-radius: var(--cw-radius-md);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--cw-shadow);
  font-size: 14px;
  font-weight: 450;
}
.dropdown-option {
  position: relative;
  padding: 9px 36px 9px 12px;
  border-radius: var(--cw-radius-sm);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown-option.active {
  background: var(--cw-surface-soft);
}
.dropdown-option[aria-selected="true"] {
  color: var(--accent-ink);
  font-weight: 600;
}
.dropdown-option[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 5px;
  height: 10px;
  margin-top: -7px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.dropdown-option[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}
.inline-form {
  display: flex;
  gap: 10px;
}
.inline-form input {
  flex: 1;
  min-width: 0;
  margin-top: 0;
}
.inline-form > button[type="submit"] {
  flex-shrink: 0;
  width: auto;
  min-width: 150px;
  margin-top: 0;
}
.list.members .item {
  gap: 14px;
}
.list.members .item:first-child {
  padding-top: 0;
}
.list.members .item:last-child {
  padding-bottom: 0;
}
.member-email {
  display: block;
  overflow-wrap: anywhere;
}
.item.member > div {
  min-width: 0;
}
.member-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cw-avatar-bg);
  color: var(--cw-avatar-ink);
  font-size: 13px;
  font-weight: 700;
}
.compact {
  min-height: 0;
  padding: 6px 12px;
  font-size: 13px;
}
.card.danger-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 20px 40px;
  align-items: start;
  margin-top: 28px;
  border-color: var(--cw-danger-line);
}
.danger-main h2 {
  margin: 0 0 6px;
  color: var(--cw-danger);
}
.danger-main .small {
  margin: 0 0 18px;
  max-width: 420px;
  line-height: 1.55;
}
.danger-note {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--cw-danger-soft);
  border: 1px solid var(--cw-danger-line);
}
.danger-note strong {
  display: block;
  color: var(--cw-danger);
  font-size: 14px;
}
.danger-note .small {
  margin: 4px 0 0;
  line-height: 1.5;
}
.confirm-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--cw-shadow);
}
.confirm-dialog::backdrop {
  background: color-mix(in srgb, black 50%, transparent);
  backdrop-filter: blur(2px);
}
.dialog-box {
  padding: 24px;
}
.dialog-box h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.dialog-box > .small {
  margin: 0;
  line-height: 1.55;
}
.dialog-match {
  margin: 18px 0 0;
  font-weight: 500;
  color: var(--muted);
}
.dialog-match strong {
  color: var(--ink);
}
.dialog-actions button:disabled {
  cursor: not-allowed;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
button.danger-button {
  min-width: 150px;
  background: var(--cw-danger);
  border-color: var(--cw-danger);
}
button.danger-button:hover {
  background: color-mix(in srgb, var(--cw-danger) 85%, var(--ink));
  border-color: color-mix(in srgb, var(--cw-danger) 85%, var(--ink));
}
.quiet.danger:hover {
  background: var(--cw-danger-soft);
  color: var(--cw-danger);
  border-color: var(--cw-danger-line);
}
.segmented.frameworks {
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.install-label {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.framework-body > .install-label:first-child {
  margin-top: 0;
}
.install-label.file {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (max-width: 760px) {
  .card.danger-zone {
    grid-template-columns: 1fr;
  }
  .card.setting {
    /* minmax(0, ...) so a long option or website never widens the page. */
    grid-template-columns: minmax(0, 1fr);
  }
  .inline-form {
    flex-direction: column;
  }
}

/* MCP settings share the dashboard's cards and readable control rows. */
.mcp-switch {
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  min-height: 28px;
  border-radius: 20px;
  padding: 3px;
  background: var(--cw-line-strong);
  border: 0;
  display: flex;
  justify-content: flex-start;
}
.mcp-switch .switch-thumb {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cw-surface);
}
.mcp-switch[aria-checked="true"] {
  background: var(--cw-accent);
  justify-content: flex-end;
}
.mcp-switch:hover {
  background: var(--cw-muted);
}
.mcp-switch[aria-checked="true"]:hover {
  background: var(--cw-accent-strong);
}
.mcp-form {
  margin-top: 20px;
}
.mcp-form fieldset {
  margin: 0 0 16px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
.mcp-form legend {
  padding: 0 6px;
  font-size: 14px;
  font-weight: 650;
}
.mcp-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 7px 0;
  cursor: pointer;
}
.mcp-choice input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.mcp-choice strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
}
.mcp-choice small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.mcp-form fieldset > .small {
  margin: 4px 0;
}
/* Permissions sit in two columns on wide screens so the whole form fits in one window. */
@media (min-width: 640px) {
  .mcp-form fieldset:nth-of-type(2) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
}
/* Submit stays visible at the bottom of the window while the form scrolls. */
.mcp-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 12px -16px 0;
  padding: 12px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.mcp-consent {
  max-width: 640px;
  margin: 24px auto;
  padding: 24px 24px 0;
}
.mcp-consent-head h1 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.mcp-consent-head p {
  margin: 0 0 4px;
}
.mcp-consent > .mcp-policy,
.mcp-consent > button {
  margin-bottom: 24px;
}
.mcp-consent .mcp-form > .small {
  margin: 0;
}
/* MCP server page */
.mcp-page {
  max-width: 1000px;
}
.mcp-page .card {
  padding: 28px;
}
.mcp-server-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.mcp-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px 14px 14px 4px;
  background: var(--cw-accent-soft);
  border: 1px solid var(--cw-accent-line);
  color: var(--accent-ink);
}
.mcp-mark svg {
  width: 24px;
  height: 24px;
}
.mcp-server-copy {
  flex: 1;
  min-width: 0;
}
.mcp-server-copy > p {
  margin: 6px 0 0;
  max-width: 600px;
}
.mcp-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
}
.mcp-title h2,
.mcp-title h3 {
  margin: 0;
  overflow-wrap: anywhere;
}
.mcp-title h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
}
.mcp-title h3 {
  font-size: 16px;
}
.mcp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  background: var(--cw-surface-soft);
  color: var(--muted);
}
.mcp-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.mcp-pill.on {
  background: var(--cw-resolved-soft);
  color: var(--cw-resolved-text);
}
.mcp-pill.warn {
  background: var(--cw-warning-soft);
  color: var(--cw-warning);
}
.mcp-pill.error {
  background: var(--cw-danger-soft);
  color: var(--cw-danger);
}
.mcp-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.mcp-address {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.mcp-address h3,
.mcp-create h3 {
  margin: 0 0 10px;
  font-size: 14px;
}
.mcp-endpoint pre {
  font-size: 14px;
}
.mcp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.mcp-steps li {
  position: relative;
  padding: 14px 14px 14px 50px;
  border: 1px solid var(--line);
  border-radius: var(--cw-radius-md, 12px);
  background: var(--cw-canvas);
  counter-increment: step;
}
.mcp-steps li::before {
  content: counter(step);
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cw-accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 650;
}
.mcp-steps strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}
.mcp-steps .small {
  display: block;
  line-height: 1.45;
}
.mcp-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.mcp-section-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.mcp-section-head p {
  margin: 0;
}
.mcp-section-head > button {
  flex-shrink: 0;
}
.mcp-create {
  margin-top: 20px;
  padding: 20px 20px 0;
  border: 1px solid var(--cw-accent-line);
  border-radius: var(--cw-radius-md, 12px);
  background: var(--surface);
}
.mcp-create > p {
  margin: 0;
}
.mcp-create .mcp-actions {
  margin: 12px -20px 0;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
}
.mcp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 32px 16px;
  border: 1px dashed var(--cw-line-strong);
  border-radius: var(--cw-radius-md, 12px);
  text-align: center;
}
.mcp-empty .mcp-mark {
  margin-bottom: 6px;
}
.mcp-connection {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--cw-radius-md, 12px);
}
.mcp-connection-top,
.mcp-policy {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mcp-identity {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mcp-identity strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.mcp-identity .small {
  font-size: 13px;
}
.mcp-buttons {
  flex-shrink: 0;
}
.mcp-page .project-monogram {
  width: 40px;
  height: 40px;
  border-radius: 12px 12px 12px 4px;
  font-size: 14px;
}
.mcp-page .project-monogram {
  --project-color: var(--cw-accent-strong);
}
.mcp-access {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  align-items: baseline;
  margin: 16px 0 0;
  padding: 14px 0 0 54px;
  border-top: 1px solid var(--line);
}
.mcp-access dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.mcp-access dd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.mcp-chip {
  padding: 3px 10px;
  border-radius: var(--cw-radius-pill);
  background: var(--cw-surface-soft);
  color: var(--cw-ink-soft);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.mcp-edit {
  margin: 12px 0 0 54px;
}
.mcp-edit > summary {
  display: inline-flex;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.mcp-edit > summary:hover {
  color: var(--cw-accent-strong);
}
.mcp-projects .mcp-policy,
.mcp-consent .mcp-policy {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.mcp-projects .mcp-section-head {
  margin-bottom: 12px;
}
.mcp-consent .mcp-policy {
  justify-content: space-between;
  gap: 20px;
}
.mcp-page .mcp-tabs {
  margin: 28px 0 0;
}
.mcp-tabs [role="tab"] {
  padding: 7px 16px;
  border: 0;
  border-radius: var(--cw-radius-pill);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: none;
  cursor: pointer;
}
.mcp-tabs [role="tab"]:hover {
  color: var(--ink);
}
.mcp-tabs [role="tab"][aria-selected="true"] {
  background: var(--cw-inverse);
  color: var(--cw-on-inverse);
}
.mcp-tabs [role="tab"]:focus-visible {
  outline: 2px solid var(--cw-accent-strong);
  outline-offset: 2px;
}
.mcp-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 14px;
}
.mcp-table th,
.mcp-table td {
  padding: 12px 10px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.mcp-table th:first-child,
.mcp-table td:first-child {
  padding-left: 0;
}
.mcp-table th:last-child,
.mcp-table td:last-child {
  padding-right: 0;
}
.mcp-table th {
  border-top: 0;
  padding-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.mcp-table time {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.mcp-person {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mcp-person strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.mcp-person .small {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.mcp-table .mcp-chip {
  display: inline-block;
}
.mcp-action {
  color: var(--ink);
}
.mcp-more {
  display: flex;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.mcp-quiet {
  margin: 12px 0 0;
}
.mcp-upgrade {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--cw-accent-line);
  border-radius: var(--radius);
  background:
    radial-gradient(
      circle at 100% 0,
      color-mix(in srgb, var(--accent) 14%, transparent),
      transparent 55%
    ),
    var(--cw-accent-soft);
}
.mcp-upgrade .mcp-mark {
  width: 56px;
  height: 56px;
  background: var(--surface);
}
.mcp-upgrade-copy {
  flex: 1;
  min-width: 0;
}
.mcp-upgrade-eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
}
.mcp-upgrade h2 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.mcp-upgrade p {
  margin: 0;
  max-width: 560px;
  color: var(--cw-ink-soft);
  font-size: 14px;
  line-height: 1.5;
}
.mcp-upgrade .upgrade {
  flex-shrink: 0;
  width: auto;
  margin: 0;
  padding: 10px 20px;
}
.mcp-consent .mcp-upgrade {
  margin-bottom: 16px;
}
@media (max-width: 760px) {
  .mcp-steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .mcp-page .card {
    padding: 20px 16px;
  }
  .mcp-server-top {
    flex-wrap: wrap;
  }
  .mcp-server-copy {
    flex-basis: calc(100% - 66px);
  }
  .mcp-toggle {
    width: 100%;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .mcp-connection {
    padding: 16px;
  }
  .mcp-connection-top {
    flex-wrap: wrap;
  }
  .mcp-buttons {
    width: 100%;
  }
  .mcp-buttons > * {
    flex: 1;
  }
  .mcp-access,
  .mcp-edit {
    padding-left: 0;
    margin-left: 0;
  }
  .mcp-access {
    grid-template-columns: 1fr;
  }
  .mcp-upgrade {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
  }
  .mcp-upgrade .upgrade {
    width: 100%;
  }
  .mcp-table thead {
    display: none;
  }
  .mcp-table,
  .mcp-table tbody,
  .mcp-table tr,
  .mcp-table td {
    display: block;
  }
  .mcp-table tr {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }
  .mcp-table td {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    border: 0;
  }
  .mcp-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
  }
  .mcp-table td > * {
    justify-self: start;
  }
  .mcp-section-head {
    flex-direction: column;
  }
}
.mcp-token {
  max-width: 620px;
}
.mcp-token pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding-top: 42px;
}
.mcp-landing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.mcp-landing h2 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.mcp-landing-copy > p {
  max-width: 470px;
}
.mcp-landing-copy > .small {
  font-size: 12px;
  margin-top: 14px;
}
.mcp-benefits {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.mcp-benefits li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cw-muted);
}
.mcp-benefits strong {
  color: var(--ink);
  font-weight: 600;
}
.mcp-benefits li > span {
  color: var(--accent-dark);
  font:
    11px ui-monospace,
    monospace;
}
.mcp-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mcp-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cw-resolved);
}
/* Landing MCP demo: a chat with a coding agent. landing.js plays it as a loop; without the script
   or with reduced motion, the whole conversation shows at once. */
.mcp-chat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--cw-radius-xl);
  background: var(--surface);
  box-shadow: var(--cw-shadow);
}
.mcp-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}
.mcp-chat-dots {
  display: inline-flex;
  gap: 6px;
}
.mcp-chat-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cw-line-strong);
}
.mcp-chat-server {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 4px 10px;
  border-radius: var(--cw-radius-pill);
  background: var(--cw-resolved-soft);
  color: var(--cw-resolved-text);
  font-size: 11px;
  font-weight: 600;
}
.mcp-chat-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: var(--panel);
}
.mcp-chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mcp-msg {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
.mcp-msg p {
  margin: 0;
}
.mcp-you {
  align-self: flex-end;
  max-width: 82%;
  padding: 9px 14px;
  border-radius: 16px 16px 4px 16px;
  background: var(--cw-accent);
  color: var(--cw-on-inverse);
}
.mcp-agent {
  align-self: flex-start;
  max-width: 92%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  background: var(--surface);
  color: var(--ink);
}
.mcp-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  max-width: 100%;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid var(--cw-ai-line);
  border-radius: var(--cw-radius-pill);
  background: var(--cw-ai-soft);
  color: var(--cw-muted);
  font-size: 11px;
}
.mcp-tool code {
  color: var(--cw-ai);
  font-size: 11px;
  font-weight: 600;
}
.mcp-tool span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mcp-tool b {
  color: var(--cw-resolved-text);
  font-weight: 700;
}
.mcp-found {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.mcp-found li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--cw-radius);
  background: var(--cw-surface-soft);
  font-size: 12px;
  color: var(--cw-ink-soft);
}
.mcp-found .scene-avatar {
  flex-shrink: 0;
}
.mcp-found strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}
.mcp-found strong span {
  color: var(--muted);
  font-weight: 400;
}
.mcp-resolved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: var(--cw-radius-pill);
  background: var(--cw-resolved-soft);
  color: var(--cw-resolved-text);
  font-size: 11px;
  font-weight: 600;
}
.mcp-chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--cw-line-strong);
  border-radius: var(--cw-radius-pill);
  font-size: 13px;
  color: var(--ink);
}
.mcp-typing {
  flex: 1;
  min-height: 20px;
  overflow: hidden;
  white-space: nowrap;
}
.mcp-typing:empty::before {
  content: "Ask about your feedback…";
  color: var(--cw-subtle);
}
.mcp-send {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cw-surface-soft);
  color: var(--cw-subtle);
  font-weight: 700;
}
.mcp-chat.animated .mcp-chat-body {
  height: 430px;
  overflow: hidden;
  /* Older messages fade out at the top, as in a real chat. */
  mask-image: linear-gradient(to bottom, transparent, black 48px);
}
.mcp-chat.animated [data-at] {
  display: none;
}
.mcp-chat.animated [data-at].shown {
  display: flex;
  animation: mcp-in 0.35s ease-out;
}
.mcp-chat.animated .mcp-agent.shown {
  display: block;
}
.mcp-chat.animated .mcp-tool.working b {
  visibility: hidden;
}
.mcp-chat.animated .mcp-tool.working::after {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid var(--cw-ai-line);
  border-top-color: var(--cw-ai);
  border-radius: 50%;
  animation: mcp-spin 0.7s linear infinite;
}
.mcp-chat.animated .mcp-typing.active::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 15px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--cw-accent);
  animation: v-blink 1s steps(1) infinite;
}
.mcp-chat.animated .mcp-typing.active + .mcp-send {
  background: var(--cw-accent);
  color: var(--cw-on-inverse);
}
.mcp-chat.fading .mcp-chat-log {
  opacity: 0;
  transition: opacity 0.5s;
}
@keyframes mcp-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes mcp-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 800px) {
  .mcp-landing {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .mcp-landing-copy > p {
    max-width: none;
  }
}
@media (max-width: 600px) {
  .mcp-form fieldset {
    padding: 12px;
  }
  .mcp-chat.animated .mcp-chat-body {
    height: 470px;
    padding: 14px;
  }
}
.mcp-switch {
  position: relative;
}
.mcp-switch::before {
  content: "";
  position: absolute;
  inset: -8px 0;
}
.mcp-consent .mcp-actions {
  margin: 12px -24px 0;
  padding: 14px 24px;
  border-radius: 0 0 var(--radius) var(--radius);
}
@media (max-width: 600px) {
  .mcp-consent {
    margin: 0 auto;
    padding: 18px 16px 0;
  }
  .mcp-consent .mcp-actions {
    margin: 12px -16px 0;
    padding: 12px 16px;
  }
  .mcp-actions > * {
    flex: 1;
  }
}

/* Cookie notice (site.js). Public pages only. The site sets only essential storage, so one dismiss button. */
.cookie-notice {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(380px, calc(100vw - 32px));
  padding: 16px 18px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--cw-radius-lg);
  box-shadow: var(--cw-shadow);
}
.cookie-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cw-ink-soft);
}
.cookie-notice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.cookie-notice-actions > * {
  min-height: 38px;
  padding: 7px 18px;
  font-size: 14px;
}
@media (max-width: 600px) {
  .cookie-notice {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }
  .cookie-notice-actions > * {
    flex: 1;
  }
}
@media print {
  .cookie-notice {
    display: none;
  }
}

/* Plan cards: one compact style for /pricing and Plan & billing.
   Each card has six rows (name, line, price, list, action, note); subgrid
   lines those rows up across cards so prices, lists and buttons align. */
.pricing-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.pricing-grid > .tier,
.tier-grid > .tier {
  --tier-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l2.9 2.9 6.1-6.6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-items: start;
  padding: 22px;
  border-radius: var(--cw-radius-lg);
}
.tier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.tier-top h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.tier .badge {
  margin: 0;
  padding: 3px 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tier .tier-text {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.tier .price {
  margin: 16px 0;
  font-size: 32px;
  line-height: 1.1;
}
.tier .price small {
  font-size: 13px;
}
.tier .checks {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.4;
  color: var(--cw-ink-soft);
}
.tier .checks li {
  display: flex;
  gap: 10px;
  margin: 0;
}
.tier .checks li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  background: var(--accent);
  -webkit-mask: var(--tier-check) center / 16px no-repeat;
  mask: var(--tier-check) center / 16px no-repeat;
}
.tier .button,
.tier-foot,
.tier-foot > * {
  width: 100%;
}
.tier .current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px dashed var(--cw-line-strong);
  border-radius: var(--cw-radius-pill);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.tier .current:empty {
  border-color: transparent;
}
.tier .price .per {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}
.tier .checks li.no {
  color: var(--muted);
}
.tier .checks li.no::before {
  width: 10px;
  height: 2px;
  margin: 9px 3px 0;
  border-radius: 2px;
  background: var(--cw-line-strong);
  -webkit-mask: none;
  mask: none;
}
/* The yearly saving rides inside the switch, so it reads before anyone clicks. */
.interval-switch .save {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: var(--cw-radius-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}
.tier .tier-foot-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 1100px) {
  .pricing-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .tier-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .pricing-grid.four {
    grid-template-columns: minmax(0, 1fr);
  }
  .pricing-grid > .tier,
  .tier-grid > .tier {
    padding: 20px;
  }
}
/* Activity: sentences wrap, and Load More sits under the list. */
.list.activity .item > div strong {
  white-space: normal;
  overflow-wrap: anywhere;
}
.activity-more:not(:empty) {
  margin-top: 14px;
}

/* Account page: profile rows, two-factor set-up and the deletion list. */
.profile-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 24px;
  margin: 0;
}
.profile-list dt {
  color: var(--muted);
  font-size: 14px;
}
.profile-list dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.two-factor-state {
  align-items: center;
  gap: 10px;
}
.two-factor-state .small {
  margin: 0;
}
.two-factor-pair {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
/* Phones read a QR code best dark on white, so it stays white in the dark theme too. */
.qr {
  width: 168px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}
.qr svg {
  display: block;
  width: 100%;
  height: auto;
}
.two-factor-steps {
  margin: 0 0 10px;
  padding-left: 20px;
  line-height: 1.55;
}
.code.secret-key pre,
.code.recovery-codes pre {
  font-size: 15px;
  letter-spacing: 0.04em;
}
.code.recovery-codes pre {
  column-count: 2;
}
.code.secret-key pre {
  padding-right: 76px;
  white-space: pre-wrap;
}
.two-factor-intro {
  margin: 0 0 16px;
}
.danger-main form > button[type="submit"] {
  width: auto;
}
.danger-list {
  margin: 0 0 18px;
  padding-left: 20px;
  line-height: 1.55;
}
@media (max-width: 560px) {
  .two-factor-pair {
    grid-template-columns: 1fr;
  }
  .danger-main form > button[type="submit"] {
    width: 100%;
  }
}

/* Project integrations and comment email (Settings and Notifications tabs). */
.list.integrations .item.integration {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 16px 0;
}
.list.integrations .item.integration:first-child {
  padding-top: 0;
}
.item.integration > div {
  flex: none;
}
.item.integration span {
  white-space: normal;
  overflow: visible;
}
.integration-top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.integration-top > div {
  flex: 1;
  min-width: 0;
}
.integration-top strong {
  display: block;
  overflow-wrap: anywhere;
}
.integration-top .integration-mark {
  display: grid;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.integration-status {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.integration-error {
  color: var(--cw-danger);
}
.integration-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  padding-left: 50px;
}
.integration-controls .mcp-choice small:empty {
  display: none;
}
.integration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 50px;
}
.integration-empty {
  margin: 0 0 8px;
}
.integration-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.integration-form .mcp-choice {
  margin-bottom: 14px;
}
.integration-form > .small {
  margin: 0 0 6px;
}
.integration-form > .text-button {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 14px;
}
.integration-form > button[type="submit"] {
  display: block;
  width: auto;
  min-width: 150px;
}
.integration-link {
  display: block;
  margin-top: 12px;
  color: var(--accent-ink);
  overflow-wrap: anywhere;
}
.dialog-box > label {
  margin: 16px 0 0;
}
.notification-choices .mcp-choice {
  padding: 10px 0;
}
/* Daily digest delivery time, under the email choices */
.digest-time {
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.digest-time[hidden] {
  display: none;
}
.digest-time h3 {
  margin: 0 0 12px;
  font-size: 15px;
}
.digest-fields {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 12px;
}
.digest-fields label {
  margin: 0;
}
.digest-time > .text-button {
  margin-top: 4px;
  font-size: 13px;
}
.digest-time > .text-button[hidden] {
  display: none;
}
.digest-format {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.digest-format .segmented {
  margin: 0;
}
.digest-time > p.small {
  margin: 12px 0 0;
}
@media (max-width: 640px) {
  .digest-fields {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .integration-controls,
  .integration-actions {
    padding-left: 0;
  }
}

/* Teams: lists reuse the member rows; role selects and project pickers sit inline. */
.team-avatar {
  border-radius: var(--cw-radius-md);
  background: var(--cw-accent-soft);
  color: var(--cw-accent-strong);
}
a.item.team-row {
  cursor: pointer;
}
.dropdown.team-role,
.inline-form .dropdown {
  width: auto;
  flex-shrink: 0;
  margin-top: 0;
}
.dropdown.team-role .dropdown-button {
  border-radius: var(--cw-radius-pill);
  padding: 7px 34px 7px 14px;
  font-size: 13px;
  font-weight: 550;
}
.inline-form .dropdown {
  flex: 1;
  min-width: 0;
}
.inline-form .dropdown .dropdown-button {
  border-radius: var(--cw-radius-pill);
  padding: 11px 40px 11px 16px;
}
.inline-form .dropdown.team-role {
  flex: 0 0 auto;
}
.inline-form .dropdown.team-role .dropdown-button {
  font-size: inherit;
  font-weight: inherit;
  padding: 11px 40px 11px 16px;
}
.member-teams a {
  font-weight: 600;
}
.member-teams a:hover {
  text-decoration: underline;
}
.item.member > div .member-teams {
  white-space: normal;
}
@media (max-width: 640px) {
  .item.member:has(select.team-role) {
    flex-wrap: wrap;
  }
  .item.member:has(select.team-role) > div {
    flex-basis: calc(100% - 50px);
  }
  .item.member .dropdown.team-role {
    margin-left: 50px;
  }
  .inline-form .dropdown,
  .inline-form .dropdown.team-role {
    width: 100%;
  }
}
/* Feature pages: How It Works and MCP Server */
.promo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.promo-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.promo-step-list li,
.promo-grid article,
.tool-group {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--cw-radius-lg);
  background: var(--surface);
  color: var(--cw-muted);
  font-size: 15px;
  line-height: 1.6;
}
.promo-step-list li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font:
    12px ui-monospace,
    monospace;
}
.promo-step-list strong,
.promo-grid h3 {
  display: block;
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 17px;
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.promo-grid p {
  margin: 0 0 12px;
}
.promo-grid a {
  font-weight: 600;
  text-decoration: none;
}
.promo-tools {
  display: grid;
  gap: 18px;
}
.tool-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 17px;
}
.tool-scope {
  padding: 3px 10px;
  border: 1px solid var(--cw-ai-line);
  border-radius: var(--cw-radius-pill);
  background: var(--cw-ai-soft);
  color: var(--cw-ai);
  font-size: 12px;
}
.tool-group dl {
  display: grid;
  gap: 0;
  margin: 0;
}
.tool-group dl > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.tool-group dt code {
  color: var(--cw-ai);
  font-size: 13px;
  font-weight: 600;
}
.tool-group dd {
  margin: 0;
  font-size: 14px;
}
@media (max-width: 800px) {
  .promo-step-list {
    grid-template-columns: 1fr;
  }
    .tool-group dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.mcp-project-group + .mcp-project-group { margin-top: 24px; }
.mcp-project-group h3 { margin: 0 0 8px; font-size: 15px; }
.mcp-project-group > .small { margin: 0 0 12px; }
.setting-body > .mcp-policy { justify-content: space-between; }
.mcp-policy > a { flex-shrink: 0; }

/* Project tools use the dashboard's existing surfaces and typography. */
.mcp-setup { min-width: 0; }
.mcp-page > .mcp-tabs { margin-bottom: 4px; }
.mcp-activity { overflow-x: auto; }
.mcp-activity .mcp-table { font-size: 13px; }
.mcp-activity .mcp-table td { padding-top: 10px; padding-bottom: 10px; }
.integration-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.integration-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; margin: 0 !important; }
.integration-tile h2 { font-size: 18px; margin: 0; }
.integration-tile p { margin: 0; flex: 1; }
.integration-tile .integration-mark { background: var(--cw-accent-soft); color: var(--accent-ink); }
.integration-setup { max-width: 760px; padding: 28px; }
.integration-setup[hidden] { display: none; }
.integration-setup .integration-form { margin: 0; padding: 0; border: 0; max-width: none; }
.integration-setup .integration-form h2 { margin-top: 0; }
.integration-steps { padding-left: 22px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.integration-setup .text-link { display: inline-block; margin-bottom: 20px; }
.project-mcp .mcp-policy { flex-wrap: wrap; }
.project-mcp .mcp-policy .mcp-switch { margin-left: auto; }
.project-mcp .mcp-form fieldset { border: 0; padding: 0; margin: 0; }
.project-mcp .mcp-form legend { margin-bottom: 16px; }
.project-mcp .mcp-form > button[type="submit"] { width: fit-content; max-width: 100%; margin-top: 16px; }
@media (max-width: 1000px) { .integration-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .integration-catalog { grid-template-columns: 1fr; }
  .integration-tile, .integration-setup { padding: 20px; }
  .mcp-tabs [role="tab"] { font-size: 13px; padding: 8px 12px; }
  .project-mcp .mcp-policy > strong { width: 100%; }
}

/* Provider settings stay inside their detail screen. */
.integration-back {
  align-self: flex-start;
}
.integration-detail {
  max-width: 900px;
  padding: 28px;
}
.integration-detail-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.integration-detail-heading h2 {
  margin: 0 0 6px;
}
.integration-detail-heading p {
  margin: 0;
}
.integration-detail .integration-setup {
  padding: 0;
  max-width: none;
}
.integration-detail .integration-setup[hidden] {
  display: none;
}
.integration-detail .integration-form {
  margin: 0;
  padding: 24px 0 0;
}
.integration-detail .integration {
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  padding: 24px 0;
  min-width: 0;
}
.integration-detail .integration-form h3 {
  margin-top: 0;
}
.integration-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
.integration-form-actions button {
  width: auto;
  margin: 0;
}
.integration-draft {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.integration-draft > button {
  margin-right: 10px;
}
.mcp-access-scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
}
.mcp-access-scope h3 {
  margin: 0 0 8px;
}
.mcp-access-scope p {
  margin: 0;
}
@media (max-width: 600px) {
  .integration-detail {
    padding: 20px;
  }
  .integration-form-actions {
    flex-wrap: wrap;
  }
  .integration-form-actions button {
    min-width: 0;
  }
  .mcp-access-scope {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.integration-detail.is-editing > .integration,
.integration-detail.is-editing > .integration-draft,
.integration-detail.is-editing > button {
  display: none;
}

/* Recognizable provider marks, bundled with the dashboard. */
.integration-mark svg { width: 23px; height: 23px; display: block; }
.integration-tile .integration-mark,
.integration-detail .integration-mark { background: var(--surface); color: var(--ink); }
.integration-logo-webhook svg { color: var(--accent-ink); }

/* Profile pictures and project logos. The initials stay until the picture loads. */
.has-picture {
  overflow: hidden;
  background: var(--surface);
}
.has-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.project-monogram.has-picture {
  border-color: var(--cw-line);
}
.plan-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.plan-user .member-avatar {
  width: 26px;
  height: 26px;
  font-size: 11px;
}
.page-head h1.with-mark {
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-head h1 .project-monogram {
  width: 44px;
  height: 44px;
  font-size: 16px;
  letter-spacing: 0;
}
.picture-editor {
  display: flex;
  align-items: center;
  gap: 18px;
}
.picture-badge {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: var(--cw-avatar-bg);
  color: var(--cw-avatar-ink);
  font-size: 24px;
  font-weight: 700;
}
.picture-badge-circle {
  border-radius: 50%;
}
.picture-badge-square {
  border-radius: 20px 20px 20px 6px;
  background: var(--cw-accent-soft);
  border: 1px solid var(--cw-accent-line);
  color: var(--cw-accent-strong);
}
.picture-badge-square.has-picture {
  border-color: var(--cw-line);
}
.picture-copy strong {
  display: block;
}
.picture-copy .small {
  margin: 2px 0 10px;
}
.picture-editor + .profile-list {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--cw-line);
}
.crop-stage {
  position: relative;
  width: min(280px, 100%);
  aspect-ratio: 1;
  margin: 16px auto 14px;
  overflow: hidden;
  border-radius: 20px 20px 20px 6px;
  background: var(--cw-canvas);
  outline: 1px solid var(--cw-line);
}
.crop-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.crop-stage canvas:active {
  cursor: grabbing;
}
.crop-stage canvas:focus-visible {
  outline: 2px solid var(--cw-accent);
  outline-offset: -2px;
}
/* A profile picture shows as a circle, so the corners outside it are dimmed. */
.crop-circle {
  border-radius: 20px;
}
.crop-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle closest-side, transparent calc(100% - 1px), color-mix(in srgb, var(--cw-ink) 55%, transparent) 100%);
}
.crop-zoom {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
}
.crop-zoom input {
  flex: 1;
  accent-color: var(--cw-accent);
}
/* Profile setup after sign-up: same card as Sign Up */
.profile-setup .picture-editor {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cw-line);
}
.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-hint,
.username-status {
  display: block;
  margin: 6px 0 0;
  color: var(--cw-muted);
  font-size: 13px;
  font-weight: 400;
}
.username-status:empty {
  display: none;
}
.username-status.is-ok {
  color: var(--cw-resolved-text);
}
.username-status.is-error {
  color: var(--cw-danger);
}
.username-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.username-chips .chip {
  min-height: 0;
  padding: 5px 12px;
  border: 1px solid var(--cw-line-strong);
  border-radius: var(--cw-radius-pill);
  background: var(--cw-surface);
  color: var(--cw-ink);
  font-size: 13px;
  font-weight: 500;
}
.username-chips .chip:hover {
  border-color: var(--cw-accent);
  color: var(--cw-accent);
}
.profile-setup .setup-note {
  text-align: center;
}
@media (max-width: 420px) {
  .name-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
/* Phones and touch screens: every text field is at least 44px tall with 16px text.
   iOS Safari zooms the page into any field whose text is smaller than 16px. */
@media (max-width: 700px), (pointer: coarse) {
  input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"], [type="hidden"]),
  select,
  textarea {
    min-height: 44px;
    font-size: 16px !important;
  }
}
/* Change picture: a menu with Upload Image and Choose Avatar */
.picture-menu {
  position: relative;
  display: inline-flex;
}
.picture-menu-button {
  position: relative;
  gap: 8px;
  padding-right: 40px;
}
.picture-menu-list {
  min-width: 180px;
}
.picture-menu-list .dropdown-option {
  display: block;
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
.picture-menu-list .dropdown-option:hover,
.picture-menu-list .dropdown-option:focus-visible {
  background: var(--cw-surface-soft);
  outline: 0;
}
/* Choose Avatar window: 5 x 5 round tiles */
.avatar-dialog {
  width: min(480px, calc(100vw - 32px));
}
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.avatar-choice {
  aspect-ratio: 1;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: none;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.avatar-choice img {
  display: block;
  width: 100%;
  height: 100%;
}
.avatar-choice:hover,
.avatar-choice:focus-visible {
  border-color: var(--cw-accent);
  transform: scale(1.06);
}
.avatar-choice.is-saving {
  border-color: var(--cw-accent);
  opacity: 0.7;
}
/* Enterprise Contact Us window (pricing and Community pages) */
.enterprise-dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.enterprise-form > .small {
  margin: 0 0 20px;
  color: var(--muted);
}
.enterprise-form label {
  margin-bottom: 14px;
}
.enterprise-form label input,
.enterprise-form label select,
.enterprise-form label textarea {
  margin-top: 6px;
  font-weight: 400;
}
.field-optional {
  margin-left: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.enterprise-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-error {
  margin: 4px 0 0;
  color: var(--cw-danger);
  font-size: 14px;
}
.enterprise-done {
  text-align: center;
  padding-top: 32px;
}
.enterprise-done .dialog-actions {
  justify-content: center;
}
.enterprise-done-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--cw-resolved-soft);
  color: var(--cw-resolved);
  font-size: 22px;
  font-weight: 700;
}
@media (max-width: 520px) {
  .enterprise-form .name-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
/* Community page */
.promo-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.community-options article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.community-options .badge {
  margin-bottom: 14px;
}
.community-options .checks {
  margin: 4px 0 18px;
}
.community-options a {
  margin-top: auto;
}
.community-page .section > .promo-actions {
  margin-top: 24px;
}
@media (max-width: 900px) {
  .promo-grid.three {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Public pages: the open page in the header, the footer at the window bottom, and one page header
   for the inner pages that matches the landing hero (dot grid and blue glow, centered text). */
.site-nav > a[aria-current]:not(.button),
.site-menu a[aria-current] {
  color: var(--accent-ink);
  font-weight: 550;
  opacity: 1;
}
body:not(.app-body) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body:not(.app-body) > header,
body:not(.app-body) > main,
body:not(.app-body) > footer {
  width: 100%;
  margin: 0 auto;
}
body:not(.app-body) > main {
  flex: 1 0 auto;
  min-height: 0;
}
.page-intro {
  position: relative;
  isolation: isolate;
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 0 64px;
  text-align: center;
}
.page-intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -80px calc(50% - 50vw) 0;
  background:
    radial-gradient(
      42% 55% at 50% 42%,
      color-mix(in srgb, var(--cw-accent) 13%, transparent),
      transparent 70%
    ),
    radial-gradient(
        circle at 1px 1px,
        color-mix(in srgb, var(--cw-ink) 16%, transparent) 1px,
        transparent 0
      )
      0 0 / 20px 20px;
  mask-image: radial-gradient(55% 70% at 50% 45%, black, transparent);
  pointer-events: none;
}
.page-intro h1 {
  max-width: 820px;
  margin: 0 auto 22px;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.page-intro .lead {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.page-intro .promo-actions,
.page-intro .row {
  justify-content: center;
  margin-top: 32px;
  gap: 12px;
}
.page-intro .button {
  min-width: 172px;
  min-height: 48px;
  padding: 12px 24px;
  font-size: 16px;
}
/* Pricing: the Monthly/Yearly switch sits right above the plan cards. */
.interval-switch {
  display: flex;
  width: fit-content;
  margin: -16px auto 28px;
}
/* Short windows (laptops, a browser not maximized): less space above the first screen's content. */
@media (min-width: 701px) and (max-height: 820px) {
  .hero {
    padding: 56px 0 40px;
  }
  .page-intro {
    padding: 40px 0 48px;
  }
  .page-intro h1 {
    font-size: clamp(38px, 4.6vw, 60px);
  }
  .section {
    padding-top: 88px;
  }
}
@media (max-width: 700px) {
  .page-intro {
    padding: 28px 0 44px;
  }
  .page-intro h1 {
    font-size: clamp(34px, 9vw, 44px);
  }
  .page-intro .button {
    min-width: 0;
    flex: 1 1 auto;
  }
  .interval-switch {
    margin-top: -12px;
  }
}

/* Keep the public shell steady while moving between full HTML pages. */
html { scrollbar-gutter: stable; }
.site-nav > a[aria-current]:not(.button) { font-weight: 450; }
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: 140ms ease-out both public-fade-out; }
  ::view-transition-new(root) { animation: 180ms ease-in both public-fade-in; }
}
@keyframes public-fade-out { to { opacity: 0; } }
@keyframes public-fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*) { animation: none; }
}

/* Visual product explanations: show the input, the context and the result. */
.marketing-page .visual-explainer .section-heading { max-width:720px; margin:0 auto 40px; text-align:center; }
.marketing-page .visual-explainer h2,.community-help-strip h2 { font-size:clamp(28px,3.4vw,42px); letter-spacing:-.045em; text-wrap:balance; }
.feature-label { display:block; margin-bottom:20px; font:500 12px/1.4 ui-monospace,monospace; color:var(--accent-ink); }
.feedback-journey { display:grid; grid-template-columns:1fr 24px 1fr 24px 1fr; gap:16px; align-items:center; }
.journey-frame { min-width:0; }
.journey-frame > h3 { font-size:21px; margin:24px 0 8px; }
.journey-frame > p { font-size:14px; margin:0; }
.journey-arrow { color:var(--accent-ink); font-size:24px; margin-top:-50px; }
.mini-website,.mini-inbox,.ownership-website { border:1px solid var(--line); background:var(--bg); border-radius:14px; overflow:hidden; }
.mini-browser { display:flex; align-items:center; gap:5px; min-height:40px; padding:10px 14px; border-bottom:1px solid var(--line); color:var(--muted); font-size:10px; }
.mini-browser > i { width:5px; height:5px; border-radius:50%; background:var(--line); }
.mini-browser > span:last-child { margin-left:auto; }
.mini-browser strong { font-size:11px; color:var(--ink); font-weight:550; }
.mini-page { padding:24px 20px; min-height:210px; background:var(--panel); }
.mock-line { display:block; width:45%; height:7px; margin-bottom:9px; background:color-mix(in srgb,var(--ink) 12%,transparent); border-radius:3px; }
.mock-line.wide { width:72%; height:11px; }
.preview-button { display:inline-grid; place-items:center; padding:10px 18px; border-radius:7px; font-size:12px; font-weight:600; white-space:nowrap; }
.pale-button { background:var(--cw-accent-soft); color:color-mix(in srgb,var(--cw-muted) 50%,var(--cw-surface)); }
.fixed-button { background:var(--accent); color:white; }
.pinned-button { position:relative; display:inline-block; margin-top:14px; }
.demo-pin { display:inline-grid; flex-shrink:0; place-items:center; width:25px; height:25px; border-radius:50% 50% 50% 4px; background:var(--accent); color:white; font-size:12px; font-weight:550; box-shadow:0 0 0 4px var(--accent-soft); }
.pinned-button .demo-pin { position:absolute; right:-15px; top:-10px; }
.mini-page > .preview-button { margin-top:14px; }
.feedback-bubble { display:flex; align-items:center; gap:9px; margin-top:22px; padding:12px; background:var(--bg); border:1px solid var(--line); border-radius:10px; box-shadow:0 6px 18px color-mix(in srgb,var(--ink) 4%,transparent); }
.feedback-bubble p { margin:0; color:var(--ink); font-size:11px; line-height:1.5; }
.demo-avatar { display:inline-grid; place-items:center; flex-shrink:0; width:26px; height:26px; border-radius:50%; background:var(--accent-soft); color:var(--accent-ink); font-size:9px; font-weight:600; }
.demo-check { color:var(--cw-resolved); font-size:18px; }
.resolved-bubble strong { font-size:10px; font-weight:500; color:var(--muted); }
.mini-inbox { min-height:293px; }
.inbox-project { font-size:10px; color:var(--muted); padding:18px 16px; }
.inbox-thread { display:flex; align-items:center; gap:12px; padding:18px 16px; background:var(--accent-soft); }
.inbox-thread strong,.inbox-thread div > span { display:block; font-size:11px; }
.inbox-thread div > span { margin-top:6px; font-size:9px; color:var(--muted); }
.open-dot,.status-dot { display:inline-block; flex-shrink:0; width:6px; height:6px; border-radius:50%; background:var(--accent); }
.open-dot { margin-left:auto; }
.inbox-context { padding:20px 16px; }
.inbox-context span,.inbox-context code { display:block; font-size:10px; }
.inbox-context span { color:var(--muted); margin-bottom:8px; }
.journey-destinations { display:flex; justify-content:center; flex-wrap:wrap; gap:14px 28px; margin-top:40px; padding-top:24px; border-top:1px solid var(--line); font-size:13px; }
.journey-destinations > span { color:var(--muted); }
.journey-destinations a { text-decoration:none; }
.agent-demo-stage { display:grid; grid-template-columns: .8fr 90px 1.2fr; align-items:center; padding:44px; border-radius:24px; background:var(--panel); }
.demo-input { min-width:0; }
.contrast-example { position:relative; display:inline-block; margin:20px 0 0 24px; }
.contrast-example .demo-pin { position:absolute; right:-15px; top:-12px; }
.demo-input .feedback-bubble { max-width:260px; }
.demo-caption { display:block; font-size:10px; color:var(--muted); margin-top:14px; }
.demo-bridge { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:6px; color:var(--muted); }
.demo-bridge code { font-size:10px; }
.demo-agent { overflow:hidden; background:var(--bg); border:1px solid var(--line); border-radius:14px; box-shadow:0 14px 40px color-mix(in srgb,var(--ink) 6%,transparent); }
.agent-demo-body { padding:24px; }
.human-message { background:var(--accent-soft); color:var(--ink); padding:14px 18px; border-radius:12px 12px 3px 12px; font-size:13px; margin:0 0 24px 20px; }
.agent-progress { font-size:12px; color:var(--muted); margin:14px 0; }
.agent-progress > span { color:var(--accent-ink); margin-right:10px; }
.demo-result { display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid var(--line); padding-top:20px; margin-top:24px; }
.result-label { font-size:11px; color:var(--muted); }
.connection-strip { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px 18px; padding:28px 0 0; font-size:12px; }
.connection-strip .feature-label { margin:0; }
.connection-strip b { font-weight:400; color:var(--muted); }
.connection-strip a { margin-left:12px; text-decoration:none; font-weight:600; }
.mcp-marketing .promo-trust .promo-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 40px; }
.mcp-marketing .promo-trust article { padding:24px 0; border:0; border-top:1px solid var(--line); border-radius:0; background:none; }
.mcp-marketing .promo-trust p { margin:0; }
.ownership-stage { display:grid; grid-template-columns: .85fr 100px 1.15fr; align-items:center; max-width:980px; margin:auto; }
.ownership-website .mini-page { min-height:240px; }
.ownership-arrow { display:flex; flex-direction:column; align-items:center; color:var(--muted); }
.ownership-arrow > span { font-size:32px; }
.ownership-arrow small { font-size:10px; }
.your-server { overflow:hidden; border:1px solid var(--line); background:var(--bg); border-radius:16px; box-shadow:0 16px 48px color-mix(in srgb,var(--ink) 6%,transparent); }
.server-address { display:flex; align-items:center; gap:8px; padding:14px 20px; border-bottom:1px solid var(--line); background:var(--panel); color:var(--muted); font:10px ui-monospace,monospace; }
.server-address svg { flex-shrink:0; }
.server-host-label { margin-left:auto; font:10px var(--cw-font); }
.server-app { display:flex; align-items:center; gap:14px; padding:28px 24px 24px; }
.server-app > div { min-width:0; }
.server-app strong { display:block; font-size:19px; font-weight:600; letter-spacing:-.035em; }
.server-app > div > span { display:block; margin-top:6px; color:var(--muted); font-size:11px; }
.server-running { display:flex; align-items:center; gap:5px; margin-left:auto; color:var(--muted); font-size:10px; white-space:nowrap; }
.server-running i { width:6px; height:6px; border-radius:50%; background:var(--cw-resolved); }
.server-app-features { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0 24px 28px; border:1px solid var(--line); border-radius:9px; }
.server-app-features > span { display:flex; align-items:center; justify-content:center; gap:8px; padding:16px 8px; font-size:11px; color:var(--muted); }
.server-app-features > span + span { border-left:1px solid var(--line); }
.server-app-features svg { color:var(--ink); flex-shrink:0; }
.server-disk { display:flex; align-items:center; gap:14px; padding:20px 24px; border-top:1px solid var(--line); background:var(--panel); }
.server-disk > svg { flex-shrink:0; color:var(--muted); }
.server-disk strong { display:block; font-size:12px; font-weight:550; }
.server-disk div > span { display:block; margin-top:5px; color:var(--muted); font-size:10px; }
.server-disk .disk-lock { margin-left:auto; }
.ownership-facts { display:flex; justify-content:center; margin:40px auto 0; gap:64px; }
.ownership-facts > div { text-align:center; }
.ownership-facts strong { display:block; font-size:36px; font-weight:550; letter-spacing:-.05em; }
.ownership-facts span { font-size:12px; color:var(--muted); }
.setup-frames { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; }
.setup-frames h3 { font-size:20px; margin-top:20px; }
.setup-terminal,.setup-account,.setup-snippet { height:180px; border:1px solid var(--line); border-radius:12px; background:var(--panel); overflow:hidden; }
.setup-terminal > span { display:block; font-size:10px; padding:12px 18px; border-bottom:1px solid var(--line); color:var(--muted); }
.setup-terminal code { display:block; padding:24px 18px; font-size:11px; line-height:2.3; }
.setup-terminal code b,.setup-terminal code span { color:var(--accent-ink); font-weight:400; }
.setup-account { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; }
.demo-avatar.large { width:40px; height:40px; font-size:12px; }
.setup-account strong { font-size:13px; }
.owner-label { color:var(--accent-ink); font-size:10px; }
.setup-snippet { padding:22px; }
.setup-snippet code { display:block; font-size:11px; line-height:1.6; color:var(--muted); }
.setup-snippet > span { display:block; color:var(--accent-ink); font-size:10px; margin-top:15px; }
.setup-guide-link { display:block; width:fit-content; margin:20px auto 0; font-size:14px; }
.community-choices .section-heading { text-align:left; }
.community-options.promo-grid { display:block; }
.community-options.promo-grid article { display:grid; grid-template-columns:1fr 1.3fr 1.5fr; gap:8px 32px; padding:24px 0; border:0; border-top:1px solid var(--line); border-radius:0; background:none; }
.community-options .badge { grid-column:1; margin:0; justify-self:start; }
.community-options h3 { grid-column:1; margin:0; font-size:22px; }
.community-options p { grid-column:2; grid-row:1 / span 2; margin:0; font-size:14px; }
.community-options .checks { grid-column:3; grid-row:1 / span 2; margin:0; font-size:12px; }
.community-options a { grid-column:1; margin-top:6px; font-size:12px; }
.community-help-strip { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.community-help-strip h2 { font-size:28px; }
.community-help-strip p { margin:0; }
.community-project-links { display:flex; flex-wrap:wrap; gap:14px 32px; margin-top:32px; padding-top:24px; border-top:1px solid var(--line); font-size:13px; }
.community-project-links > span { width:100%; color:var(--muted); font-size:11px; }
@media(max-width:900px) {
 .feedback-journey { gap:8px; grid-template-columns:1fr 16px 1fr 16px 1fr; }
 .mini-page { padding:20px 12px; }
 .agent-demo-stage { padding:28px; grid-template-columns:.8fr 60px 1.2fr; }
 .ownership-stage { grid-template-columns:1fr 64px 1.1fr; }
 .server-app { padding:24px 18px; gap:10px; }
 .server-running { font-size:0; gap:0; }
 .server-app-features { margin:0 18px 24px; }
 .server-app-features > span { flex-direction:column; gap:8px; }
 .server-host-label { display:none; }
 .setup-frames { gap:18px; }
 .community-options.promo-grid article { grid-template-columns:1fr 1.5fr; }
 .community-options .checks { grid-column:2; grid-row:auto; }
}
@media(max-width:700px) {
 .feedback-journey { display:flex; flex-direction:column; gap:24px; align-items:stretch; max-width:420px; margin:auto; }
 .journey-arrow { margin:0; text-align:center; transform:rotate(90deg); }
 .mini-inbox { min-height:270px; }
 .journey-frame > h3 { margin-top:16px; }
 .agent-demo-stage,.ownership-stage { display:flex; flex-direction:column; align-items:stretch; gap:24px; }
 .agent-demo-stage { padding:24px; }
 .demo-input .feedback-bubble { max-width:none; }
 .demo-bridge { flex-direction:column; }
 .demo-bridge > span { transform:rotate(90deg); }
 .ownership-arrow > span { transform:rotate(90deg); }
 .ownership-arrow { gap:8px; }
 .ownership-stage { max-width:420px; }
 .ownership-facts { gap:24px; }
 .ownership-facts strong { font-size:30px; }
 .ownership-facts span { display:block; font-size:11px; max-width:110px; }
 .setup-frames { grid-template-columns:1fr; gap:24px; max-width:420px; margin:auto; }
 .community-options.promo-grid article { grid-template-columns:1fr; gap:12px; }
 .community-options p,.community-options .checks,.community-options a { grid-column:1; grid-row:auto; }
 .community-help-strip { align-items:flex-start; flex-direction:column; }
 .mcp-marketing .promo-trust .promo-grid { grid-template-columns:1fr; }
}
/* Share preview and copy rows so all three captions stay aligned. */
@media (min-width:701px) {
  .feedback-journey {
    grid-template-rows: auto minmax(293px, auto) auto auto;
    row-gap: 0;
    align-items: stretch;
  }
  .journey-frame {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 1 / span 4;
  }
  .journey-frame > .mini-website,
  .journey-frame > .mini-inbox { min-height: 293px; }
  .journey-frame > .mini-website { display: flex; flex-direction: column; }
  .journey-frame .mini-page { flex: 1; }
  .journey-arrow { grid-row: 1 / span 4; align-self: center; }
}
.community-choices .section-heading h2 { font-size:clamp(28px,3.4vw,42px); letter-spacing:-.045em; }
/* Account state and menu setup must not move the public navigation. */
body:not(.app-body) > header { view-transition-name: public-header; }
.site-nav > a.button[href="/signup"],
.site-nav > a.button[href="/app"] { min-width:108px; }
:root[data-site-signed-in="true"] header .site-nav a[href="/login"] { visibility:hidden; pointer-events:none; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(public-header),
  ::view-transition-new(public-header) { animation:none; mix-blend-mode:normal; }
  ::view-transition-old(public-header) { visibility:hidden; }
}
