/* Inner pages in the homepage's system: edge-to-edge container, left-aligned 48/56px titles, grey cards with one radius, hover. */
body.ds.pg main.wrap, body.ds.pg main > .wrap { max-width: none; padding-inline: var(--ds-edge); box-sizing: border-box; }
body.ds.pg main { padding-top: calc(120px + env(safe-area-inset-top)); }

body.ds.pg :is(.ph__h, .mh__h, h1) { font-size: clamp(40px, 5.4vw, 48px); line-height: 1; font-weight: 400; letter-spacing: -.04em; text-wrap: balance; text-transform: none; }
body.ds.pg :is(.h2, :is(.sec, .sect, .ph, .mh) > h2, .sec__head h2, main > h2) { font-size: clamp(32px, 4.6vw, 48px); line-height: 1; font-weight: 400; letter-spacing: -.035em; text-wrap: balance; }
body.ds.pg main h3 { font-weight: 400; letter-spacing: -.03em; }
body.ds.pg :is(.ph__p, .mh__p, .lead) { font-size: 20px; line-height: 1.35; color: var(--ds-ink-2); max-width: 44ch; }
body.ds.pg :is(.ph, .mh) { text-align: left; align-items: flex-start; justify-items: start; max-width: none; margin-inline: 0; }
body.ds.pg :is(.ph, .mh) > * { margin-inline: 0; }
body.ds.pg .sec__head, body.ds.pg .sec__head--c { justify-content: space-between; text-align: left; margin-bottom: 48px; }
body.ds.pg .sec__head > div { align-items: flex-start; }
body.ds.pg main > :is(.sec, .sect):not(:first-child) { margin-block-start: 160px; padding-block-start: 0; }
@media (max-width: 600px) { body.ds.pg main > :is(.sec, .sect):not(:first-child) { margin-block-start: 96px; } }
body.ds.pg .kick { display: none; }

/* cards */
body.ds.pg :is(.plan, .ex, .q, .box, .step, .mcp, .tile, .card) {
  border-radius: var(--ds-r-l); background: var(--ds-surface); box-shadow: inset 0 0 0 1px var(--ds-hair); color: var(--ds-ink);
  transition: translate var(--ds-base) var(--ds-ease), background-color var(--ds-base) var(--ds-ease);
}
body.ds.pg :is(.plan, .ex, .box, .step) { padding: 32px; }
body.ds.pg :is(.plan__stars, .mcp__stars, .plate__glow, .btn__border, .wbtn__shine, .plan__stick) { display: none; }
@media (hover: hover) {
  body.ds.pg :is(.plan, .ex, .box, .step, .tile, .card):hover { translate: 0 -4px; }
  body.ds.pg .q:hover { background: var(--ds-hair); }
}
body.ds.pg .q summary { font-weight: 400; padding: 24px; }
body.ds.pg .q summary::first-letter { text-transform: uppercase; }

/* plans, as on the homepage: monthly grey, yearly in ink */
body.ds.pg .plan { gap: 24px; }
body.ds.pg .plan:not(.plan--pro) .plan__tag { display: none; }
body.ds.pg .plan__list li::first-letter { text-transform: uppercase; }
body.ds.pg .plan--pro {
  --ds-surface: #0a0a0a; --ds-hair: #0000; --ds-ink: #fff; --ds-ink-2: #a3a3a0;
  --ink: #fff; --ink-2: #a3a3a0; --text-primary: #fff; --text-secondary: #a3a3a0; --text-tertiary: #a3a3a0;
  background: #0a0a0a !important; color: #fff;
}
body.ds.pg .plan--pro :is(.plan__name, .plan__price, .plan__price b, .plan__list li) { color: #fff; }
body.ds.pg .plan--pro :is(.plan__bill, .plan__fine, .plan__fine a, .plan__price span) { color: #a3a3a0; }
body.ds.pg .plan--pro .plan__list li::before { background-color: #ffffff2e !important; }
body.ds.pg .plan--pro .plan__head .plan__tag { visibility: visible; position: absolute; top: 32px; right: 32px; height: 32px; padding-inline: 12px; border-radius: 999px; background: #fff; color: #0a0a0a; box-shadow: none; font-size: 14px; font-weight: 400; }
body.ds.pg .plan--pro .plan__head .plan__tag::first-letter { text-transform: uppercase; }
body.ds.pg .plan--pro .wbtn { --action-primary: #fff; --action-hover: #e8e8e4; --action-ink: #0a0a0a; }
body.ds.pg .plan .btn--glass { --action-fill: var(--ds-paper); --action-ink: #0a0a0a; --action-border: var(--ds-hair); }

/* labels start with a capital, whatever the markup says */
body.ds main :is(.btn, .wbtn, .pill) > span:first-child { display: inline-block; }
body.ds main :is(.btn, .wbtn, .pill) > span:first-child::first-letter,
body.ds.pg :is(.plan__bill, .plan__fine a, .free b, .geo)::first-letter { text-transform: uppercase; }

/* one case everywhere: no shouting labels, no violet links */
body.ds { --violet: var(--ds-ink); --accent-ink: var(--ds-ink); --accent: var(--ds-ink); }
body.ds main :not(.feat__h) { text-transform: none !important; }
body.ds main :is([class*="tier"], .tchip, [class$="__k"], .kick, .cap, .tag, [class*="__lab"]) { letter-spacing: -.01em !important; }
body.ds main a:not([class]) { color: var(--ds-ink); text-decoration: underline; text-decoration-color: #0000002e; text-underline-offset: 3px; transition: text-decoration-color var(--ds-fast); }
body.ds main a:not([class]):hover { text-decoration-color: currentColor; }
body.ds .tier--pro, body.ds i.tier--pro { background: var(--ds-ink); color: var(--ds-paper); border-radius: 999px; padding-inline: 8px; font-weight: 400; }
body.ds .tier { border-radius: 999px; font-weight: 400; }

/* template page */
body.ds .tp__lab { font-size: 20px !important; line-height: 1.2; color: var(--ds-ink); margin-bottom: 16px; }
body.ds .tp__more h2 { font-size: 24px !important; line-height: 1.2; color: var(--ds-ink); }
body.ds .tp__k { font-size: 14px; font-weight: 400; }
body.ds .tchip { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 400; color: var(--ds-ink); background: var(--ds-surface); }
body.ds a.tchip { transition: background-color var(--ds-fast); } body.ds a.tchip:hover { background: var(--ds-hair); }
body.ds .tp__media { border-radius: var(--ds-r-l); }
body.ds .tp__more a :is(img, video), body.ds .tp__more img { border-radius: var(--ds-r-s); transition: transform 1s var(--ds-ease); }
@media (hover: hover) { body.ds .tp__more a:hover img { transform: scale(1.03); } }
body.ds .tbtn { height: 48px !important; min-height: 48px !important; border-radius: 999px !important; font-size: 16px !important; transition: background-color var(--ds-fast), transform var(--ds-fast); }
body.ds .tbtn:active { transform: scale(.98); }
body.ds .tp__get dt { font-weight: 400; }
body.ds .tp__more > div:first-child a, body.ds .tp__more header a { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px; background: var(--ds-surface); text-decoration: none; transition: background-color var(--ds-fast); }
body.ds .tp__more > div:first-child a:hover, body.ds .tp__more header a:hover { background: var(--ds-hair); }

/* topic chips (blog and others) */
body.ds .chip2 { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ds-surface); color: var(--ds-ink); box-shadow: none; font-size: 16px; font-weight: 400; transition: background-color var(--ds-fast), color var(--ds-fast); }
body.ds .chip2 span { font-size: 14px; color: var(--ds-ink-2); }
body.ds .chip2:hover { background: var(--ds-hair); }
body.ds .chip2.is-on { background: var(--ds-ink); color: var(--ds-paper); } body.ds .chip2.is-on span { color: #ffffff99; }

/* blog cards: covers in the homepage's colours, a lift on hover */
body.ds .bc { display: flex; flex-direction: column; gap: 12px; transition: translate var(--ds-base) var(--ds-ease); }
body.ds .bc--big { display: grid; }
body.ds .bc--big .bc__m { width: auto; }
body.ds .bc__m { border-radius: var(--ds-r-l); background: var(--ds-surface) !important; box-shadow: none !important; overflow: hidden; transition: scale var(--ds-slow) var(--ds-ease); }
body.ds .bc:nth-child(4n+2) .bc__m { background: #d7d7d3 !important; color: #0a0a0b; }
body.ds .bc:nth-child(4n+3) .bc__m { background: #0a0a0a !important; color: #fff; }
body.ds .bc:nth-child(4n) .bc__m { background: #d97757 !important; color: #fff; }
body.ds .bc__m img { transition: transform 1s var(--ds-ease); }
body.ds .bc__mark { transition: transform var(--ds-slow) var(--ds-ease); }
body.ds .bc b { font-weight: 400; letter-spacing: -.03em; }
body.ds .bc__k { font-size: 14px; color: var(--ds-ink-2); }
@media (hover: hover) { body.ds .bc:hover { translate: 0 -4px; } body.ds .bc:hover .bc__m img { transform: scale(1.04); } body.ds .bc:hover .bc__mark { transform: scale(1.12) rotate(-8deg); } }
body.ds .bc__mark { color: var(--ds-ink); background: none !important; box-shadow: none !important; filter: none !important; }
body.ds .bc__mark::before, body.ds .bc__mark::after, body.ds .bc__m::before, body.ds .bc__m::after { display: none !important; }
body.ds .bc__mark svg { fill: currentColor; color: inherit; }
body.ds .bc:is(:nth-child(4n+2), :nth-child(4n+3), :nth-child(4n)) .bc__mark { color: #fff; }
body.ds .srv { width: min(560px, 100%); box-sizing: border-box; border-radius: 999px; box-shadow: none; background: var(--ds-surface); }

/* MCP page: the replay card in the brand violet, like the MCP card on the homepage */
body.ds.pg .mcp.swarm {
  --ds-ink: #fff; --ds-ink-2: #ffffffb8; --ink: #fff; --ink-2: #ffffffb8; --text-primary: #fff; --text-secondary: #ffffffb8;
  background: #0a0a0b !important; color: #fff; box-shadow: none !important; overflow: hidden;
}
body.ds.pg .mcp.swarm :is(h3, p, .mcp__h, .mcp__p) { color: #fff; }
body.ds.pg .mcp.swarm .mcp__stars { display: block; }
body.ds.pg .mcp.swarm :is(code, kbd) { background: #ffffff2e; color: #fff; }
body.ds.pg .ex :is(pre, .term, .chat) { border-radius: var(--ds-r-m); }
@media (hover: hover) { body.ds.pg #can-do article:hover, body.ds.pg #can-do li:hover { translate: 0 -4px; } }
body.ds.pg #can-do :is(article, li) { transition: translate var(--ds-base) var(--ds-ease); }
body.ds.pg .mh { grid-template-columns: minmax(0, 1fr) !important; max-width: 100%; }
body.ds.pg .mh__t { min-width: 0; max-width: 100%; width: auto !important; }
body.ds.pg .mh__h { overflow-wrap: anywhere; }
@media (max-width: 600px) { body.ds.pg .addr { max-width: 100%; overflow: hidden; } body.ds.pg .addr code, body.ds.pg .addr span { min-width: 0; overflow: hidden; text-overflow: ellipsis; } }
body.ds.pg .plan:not(.plan--pro) .plan__list li::before { background-color: #0000000d !important; filter: grayscale(1) brightness(.35); }

/* pricing compare table: ink instead of violet, the yearly column on a darker grey */
body.ds .cmp-wrap { border-radius: var(--ds-r-l); background: var(--ds-surface); box-shadow: none; }
body.ds .cmp thead th { background: var(--ds-surface) !important; box-shadow: none !important; }
body.ds .cmp thead .is-best, body.ds .cmp .is-best, body.ds .cmp td:last-child { background: var(--ds-hair) !important; box-shadow: none !important; }
body.ds .cmp thead b { color: var(--ds-ink); font-weight: 400; }
body.ds .cmp thead em { background: var(--ds-ink); color: var(--ds-paper); font-weight: 400; font-size: 12px; }
body.ds .cmp .y svg { background: var(--ds-ink) !important; box-shadow: none !important; }
body.ds .cmp__go { height: 40px; background: var(--ds-paper); color: var(--ds-ink); box-shadow: none; font-weight: 400; }
body.ds .cmp__go:hover { background: #fff; transform: translateY(-1px); }
body.ds .cmp__go--p { background: #7948d6; color: #fff; box-shadow: none; } body.ds .cmp__go--p:hover { background: #6737c4; }
body.ds .cmp th, body.ds .cmp td { border-bottom-color: var(--ds-hair); }
