/* cohesera.com. The product's tokens (packages/shell/src/styles.css), light-first: the site sells
   calm and order; dark sections only for contrast. No JavaScript: menus and FAQ are <details>. */

@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-mono.woff2') format('woff2-variations');
}

:root {
  --font: 'Geist Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono Variable', ui-monospace, Consolas, monospace;
  --brand: #07594f;
  --brand-deep: #053f38;
  --brand-ink: #0b2723;
  --brand-soft: #07594f12;
  --mint: #b8ddd4;
  --mint-hover: #c9e7df;
  --on-mint: #123d38;
  --teal: #72bdb0;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-2: #eaf1ee;
  --border: #15191b1a;
  --text: #15191b;
  --muted: #4f5c59;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(21 25 27 / 0.06), 0 24px 64px rgb(21 25 27 / 0.14);
  --wide: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.5rem, 4.1vw, 3.75rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 700;
}

h3 {
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: min(var(--wide), calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}

.lead {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 42rem;
}

.accent {
  background: linear-gradient(90deg, #07594f, #2a9d8a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow:hover {
  gap: 10px;
}

.link-arrow--light {
  color: var(--mint);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--lg {
  padding: 14px 24px;
  font-size: 1.04rem;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.92rem;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 20px rgb(7 89 79 / 0.28);
}

.btn--primary:hover {
  background: var(--brand-deep);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn--mint {
  background: var(--mint);
  color: var(--on-mint);
}

.btn--mint:hover {
  background: var(--mint-hover);
}

.btn--outline-light {
  border-color: #ffffff47;
  color: #fff;
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(255 255 255 / 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo img {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  gap: 24px;
  margin-right: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__signin {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 10px;
}

.menu {
  display: none;
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu__panel {
  position: absolute;
  right: 0;
  top: 46px;
  width: min(300px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
}

.menu__panel a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.menu__panel a:hover {
  background: var(--surface-2);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(900px 520px at 90% 0%, #55bfae2e, transparent 65%),
    radial-gradient(700px 520px at 0% 30%, #b8ddd450, transparent 60%),
    linear-gradient(180deg, #f4f7f5 0%, #ffffff 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#07594f0a 1px, transparent 1px), linear-gradient(90deg, #07594f0a 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid #07594f2e;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgb(21 25 27 / 0.05);
}

.hero__copy .lead {
  margin-bottom: 30px;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__trust svg {
  color: var(--brand);
}

.hero__visual {
  position: relative;
}

.hero__visual .browser {
  box-shadow:
    0 2px 4px rgb(21 25 27 / 0.06),
    0 40px 90px rgb(7 89 79 / 0.22);
}

.browser {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.browser__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #15191b26;
}

.browser__url {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--surface);
  border-radius: 6px;
  padding: 2px 10px;
}

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 14px 36px rgb(21 25 27 / 0.16);
  font-size: 0.85rem;
  line-height: 1.25;
}

.float strong {
  display: block;
}

.float small {
  color: var(--muted);
}

.float .app__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.float--a {
  left: -28px;
  bottom: 18%;
}

.float--b {
  right: -18px;
  top: 16%;
}

/* ---------- sections ---------- */

.section {
  padding: 112px 0;
}

.section--tint {
  background: var(--bg);
}

.section--dark {
  background: radial-gradient(800px 400px at 100% 0%, #72bdb022, transparent 60%), var(--brand-ink);
  color: #e8f2ef;
}

.section--dark .eyebrow {
  color: var(--mint);
}

.section--dark .lead,
.section--dark p {
  color: #b9d1ca;
}

.section__head {
  max-width: 46rem;
  margin-bottom: 52px;
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__head--center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* replace the stack */
.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.stack__list {
  list-style: none;
  margin: 0;
  padding: 10px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
}

.stack__list li {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface);
}

.stack__old {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: line-through;
  text-decoration-color: #c5303080;
}

.stack__old svg {
  color: #c53030;
  flex: none;
}

.stack__arrow {
  color: #15191b40;
}

.stack__new {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.stack__new .app__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

/* tour */
.tour {
  display: grid;
  gap: 96px;
}

.tour__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 64px;
  align-items: center;
}

.tour__row:nth-child(even) .tour__text {
  order: 2;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ticks svg {
  flex: none;
  margin-top: 4px;
  color: var(--brand);
}

/* bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  padding: 26px;
  border-radius: 20px;
  background: #ffffff0a;
  border: 1px solid #ffffff17;
  overflow: hidden;
}

.tile h3 {
  color: #fff;
}

.tile p {
  margin: 0;
  font-size: 0.96rem;
}

.tile__icon {
  color: var(--mint);
  margin-bottom: 14px;
}

.tile--full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.mock--zip {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}

.mock--zip strong {
  display: block;
  color: #fff;
}

.mock--zip svg {
  color: var(--mint);
  flex: none;
}

.tile--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
}

.mock {
  margin-top: 18px;
  border-radius: 14px;
  background: #ffffff0d;
  border: 1px solid #ffffff17;
  font-size: 0.86rem;
  color: #dbe9e5;
}

.mock--roles {
  margin-top: 0;
  padding: 8px;
  display: grid;
  gap: 4px;
}

.mock__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #ffffff08;
}

.mock__avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #b8ddd433;
  color: var(--mint);
  font-weight: 700;
  font-size: 0.78rem;
}

.mock__chip {
  font-size: 0.74rem;
  padding: 2px 9px;
  border-radius: 999px;
  background: #b8ddd41f;
  color: var(--mint);
}

.mock--switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.mock__toggle {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--teal);
}

.mock__toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.mock--log {
  display: grid;
  padding: 6px 14px;
}

.mock--log span {
  padding: 6px 0;
  border-bottom: 1px solid #ffffff12;
}

.mock--log span:last-child {
  border-bottom: 0;
}

.mock--log b {
  color: #fff;
  font-weight: 600;
}

.safety {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 32px;
  color: #b9d1ca;
  font-size: 0.94rem;
}

.safety span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.safety svg {
  color: var(--mint);
}

.safety .link-arrow {
  margin-left: auto;
}

/* apps */
.app__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: color-mix(in srgb, var(--accent), #000 18%);
  background: color-mix(in srgb, var(--accent) 15%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}

.appgrid {
  columns: 3 280px;
  column-gap: 28px;
}

.appgrid__group {
  break-inside: avoid;
  margin-bottom: 32px;
}

.appgrid__group h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.appgrid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.app {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.15s;
}

.app:hover {
  background: var(--bg);
}

.app__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app__name {
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app__desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
}

.badge {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}

/* pricing */
.plans {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.plan {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.plan--main {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow);
}

.plan__badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.plan__badge--muted {
  background: var(--surface-2);
  color: var(--text);
}

.plan__price {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 18px 0 4px;
  line-height: 1;
}

.plan__price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.plan__price--talk {
  font-size: 2.2rem;
}

.plan .ticks {
  margin: 22px 0 30px;
}

.plan .btn {
  margin-top: auto;
}

/* steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  padding: 28px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}

.steps p {
  color: var(--muted);
  margin: 0;
}

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}

.faq {
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brand);
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  color: var(--muted);
  margin: 0 0 20px;
}

/* final CTA */
.cta {
  padding: 0 0 96px;
}

.cta__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 56px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(600px 300px at 100% 0%, #72bdb055, transparent 60%),
    radial-gradient(500px 300px at 0% 100%, #55bfae44, transparent 60%),
    linear-gradient(135deg, #07594f, #0b3f39);
}

.cta__box h2 {
  margin-bottom: 8px;
}

.cta__box .lead {
  color: #c9ddd7;
  margin: 0;
}

/* prose pages (security, privacy, terms) */
.page-head {
  padding: 80px 0 44px;
  background: radial-gradient(700px 300px at 90% 0%, #55bfae22, transparent 60%), var(--bg);
  border-bottom: 1px solid var(--border);
}

.prose {
  max-width: 46rem;
  padding: 56px 0 96px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 1.8em;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.4em;
}

.updated {
  color: var(--muted);
  font-size: 0.92rem;
}

/* the 404 page and other centred sections */
.hero__copy--center {
  text-align: center;
}

/* footer */
.footer {
  background: var(--brand-ink);
  color: #b9d1ca;
  padding: 64px 0 40px;
  font-size: 0.95rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
}

.footer .logo {
  color: #fff;
}

.footer h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.9rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer a {
  color: #b9d1ca;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer__base {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid #ffffff1f;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

/* facts strip under the hero */
.facts {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.facts__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.facts__row > div {
  display: grid;
  gap: 2px;
  padding: 26px 24px;
  border-left: 1px solid var(--border);
}

.facts__row > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.facts strong {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.facts span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* why teams switch */
.why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.why__card,
.teams__card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.why__card p,
.teams__card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.why__icon {
  color: var(--brand);
  margin-bottom: 14px;
}

/* who it's for */
.teams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chips {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.chips a:hover {
  border-color: var(--brand);
}

.chips .app__icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
}

/* tour: mail and client-work illustrations */
.panel-mock,
.flow {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px;
}

.panel-mock__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-mock__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.panel-mock__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 600;
}

.panel-mock__list svg {
  color: var(--muted);
}

.panel-mock__note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--brand);
}

.flow {
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.flow li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.flow li span {
  display: grid;
}

.flow small {
  color: var(--muted);
}

.center-link {
  text-align: center;
  margin: 36px 0 0;
}

.appgrid a.app {
  color: inherit;
  text-decoration: none;
}

/* the apps page */
.page-head--apps h1 {
  max-width: 22ch;
}

.page-head--apps .lead {
  max-width: 44rem;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.jump a {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
}

.jump a:hover {
  border-color: var(--brand);
}

.section--compact {
  padding: 72px 0;
}

.section--compact .section__head {
  margin-bottom: 32px;
}

.section--compact h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.catalog__app {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  scroll-margin-top: 96px;
}

.catalog__app:target {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.catalog__app header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.catalog__app h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog__category {
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 600;
}

.catalog__app p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.catalog__instead {
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.shared {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

section[id] {
  scroll-margin-top: 72px;
}

/* solution and comparison pages */
.page-head--solution h1 {
  max-width: 24ch;
}

.page-head--solution .lead {
  max-width: 44rem;
}

.page-head--solution .hero__cta {
  margin-top: 28px;
}

.why--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.usecases {
  display: grid;
  gap: 72px;
}

.usecase {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.usecase h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.applist {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: grid;
  gap: 4px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.applist a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.applist a:hover {
  background: var(--bg);
}

.applist span {
  display: grid;
}

.applist strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.applist small {
  color: var(--muted);
}

.teams__card h3 a {
  color: inherit;
  text-decoration: none;
}

.teams__card h3 a:hover {
  color: var(--brand);
}

.teams__more {
  margin-top: 16px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  max-width: 52rem;
}

.compare {
  width: 100%;
  border-collapse: collapse;
}

.compare th,
.compare td {
  text-align: left;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.compare th {
  font-size: 0.82rem;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
}

.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare td:first-child {
  font-weight: 600;
  width: 45%;
}

.compare__app {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.compare__app .app__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.compare__app span {
  display: grid;
  justify-items: start;
}

.compare__app small {
  color: var(--muted);
}

.notes {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  border: 1px solid var(--border);
  max-width: 52rem;
}

.notes h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.notes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.notes li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.notes li svg {
  flex: none;
  margin-top: 5px;
  color: var(--brand);
}

.related {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.related a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- smaller screens ---------- */

@media (max-width: 1060px) {
  .hero__grid,
  .stack,
  .tour__row,
  .faq-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .tour__row:nth-child(even) .tour__text {
    order: 0;
  }
  .hero__visual {
    margin: 0 8px;
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile--wide {
    grid-column: span 2;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .header__inner {
    gap: 20px;
  }
  .nav {
    gap: 16px;
  }
  .why,
  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shared,
  .usecase {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .why--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .nav,
  .header__signin {
    display: none;
  }
  .menu {
    display: block;
  }
  .header__inner {
    justify-content: space-between;
  }
  .section {
    padding: 76px 0;
  }
  .hero {
    padding: 48px 0 64px;
  }
  body {
    font-size: 16px;
  }
  .float {
    display: none;
  }
  .bento,
  .plans,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .tile--wide,
  .tile--full {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
  }
  .stack__list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .stack__arrow {
    display: none;
  }
  .cta__box {
    padding: 36px 24px;
  }
  .safety .link-arrow {
    margin-left: 0;
  }
  .why,
  .teams,
  .catalog,
  .flow,
  .panel-mock__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .facts__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts__row > div,
  .facts__row > div:first-child {
    border-left: 0;
    padding: 18px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .app {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}

/* the download page */
.download__note {
  margin-top: 12px;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.platform {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.platform header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform h3 {
  margin: 0;
}

.platform__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
}

.platform ol {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.download__devices {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  color: var(--brand);
  padding: 32px;
}

@media (max-width: 1060px) {
  .platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .platforms {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* the Help Centre (/help and /help/<article>) */
.help {
  padding: 40px 0 96px;
}

.help-topic {
  padding-top: 32px;
}

.help-topic h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.help-topic > p {
  color: var(--muted);
  margin: 0 0 16px;
}

.help-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 12px;
}

.help-list li {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.help-list li:hover {
  border-color: var(--brand);
}

.help-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
}

.help-list a strong {
  color: var(--brand);
}

.help-list a span {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.help-list .badge {
  display: inline-block;
  margin: -4px 16px 14px;
}

.page-head--help {
  padding: 56px 0 36px;
}

.page-head--help h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin: 8px 0 12px;
}

.help-crumbs {
  font-size: 0.92rem;
  color: var(--muted);
}

.help-crumbs a {
  color: var(--muted);
}

.help-for {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.help-article {
  padding-bottom: 96px;
}

.prose--help {
  padding: 40px 0 24px;
}

.prose--help h2 {
  font-size: 1.35rem;
}

.prose--help h3 {
  font-size: 1.1rem;
  margin-top: 1.4em;
}

.prose--help ul,
.prose--help ol {
  padding-left: 1.3em;
}

.prose--help code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
}

.prose--help .help-steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.prose--help .help-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4em;
  margin-bottom: 0.7em;
}

.prose--help .help-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.65em;
  height: 1.65em;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9em;
  display: grid;
  place-items: center;
}

.callout {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: var(--brand-soft);
}

.callout p {
  margin: 0;
}

.help-related,
.help-contact {
  max-width: 46rem;
  margin-top: 32px;
}

.help-related h2,
.help-contact h2 {
  font-size: 1.25rem;
}

.help-related .help-list {
  grid-template-columns: minmax(0, 1fr);
}

.help-contact {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}

.help-contact h2 {
  margin-top: 0;
}

/* the blog (/blog, /blog/<post>, /blog/tag/<tag>): pages the API renders in this site's frame
   (api lib/blog-render.ts), from posts written in the console. On a wide screen (1024px and up)
   two columns: the posts and a sidebar that stays in view; narrower, the sidebar follows them. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page-head--blog {
  padding: 56px 0 36px;
}

.page-head--blog h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 8px 0 12px;
}

.page-head--blog .help-crumbs + h1 {
  margin-top: 14px;
}

.page-head--blog .lead {
  margin: 0;
}

.blog-count {
  margin: 0;
  color: var(--muted);
}

.blog-count a {
  font-weight: 600;
}

.blog {
  padding: 48px 0 96px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.blog-subhead {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 44px 0 16px;
}

/* the newest post, first on the blog's first page */
.post-feature {
  position: relative;
  display: grid;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(520px 280px at 100% 0%, #55bfae30, transparent 65%), var(--bg);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.post-feature:hover {
  border-color: var(--brand);
  box-shadow: 0 14px 40px rgb(21 25 27 / 0.08);
}

.post-feature__cover {
  width: 100%;
  height: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: var(--surface-2);
}

.post-feature__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 4vw, 40px);
}

.post-feature .eyebrow {
  margin: 0;
}

.post-feature h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  max-width: 26ch;
  margin: 0;
}

.post-feature h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-feature:hover h2 a {
  color: var(--brand);
}

.post-feature p {
  margin: 0;
  max-width: 60ch;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--muted);
}

.post-feature__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 6px;
}

@media (min-width: 760px) {
  .post-feature--cover {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* cards: the whole card is the link; the tags on it stay their own links */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 20px;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.post-card:hover {
  border-color: var(--brand);
  box-shadow: 0 12px 32px rgb(21 25 27 / 0.07);
}

.post-card__cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: var(--surface-2);
}

.post-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
}

.post-card h2,
.post-card h3 {
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0;
}

.post-card h2 a,
.post-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.post-card:hover h2 a,
.post-card:hover h3 a {
  color: var(--brand);
}

.post-card h2 a::after,
.post-card h3 a::after,
.post-feature h2 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.post-card:has(h2 > a:focus-visible, h3 > a:focus-visible),
.post-feature:has(h2 > a:focus-visible) {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.post-card .post-meta {
  margin-top: auto;
  padding-top: 4px;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-tags a {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  text-decoration: none;
}

.post-tags a:hover {
  background: #07594f24;
}

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.pager > :last-child {
  justify-self: end;
}

.pager__at {
  font-size: 0.92rem;
  color: var(--muted);
}

/* the sidebar */
.blog-side {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  align-content: start;
  gap: 16px;
}

.blog-side__sticky {
  display: grid;
  align-content: start;
  gap: 16px;
}

.side-box {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.side-box h2 {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.side-box p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 550;
  line-height: 1.35;
  text-decoration: none;
}

.tag-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.tag-pill__count {
  min-width: 1.7em;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.tag-pill[aria-current='page'] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.tag-pill[aria-current='page'] .tag-pill__count {
  background: rgb(255 255 255 / 0.2);
  color: #fff;
}

.side-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-posts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}

.side-posts li:first-child {
  padding-top: 0;
  border-top: 0;
}

.side-posts li:last-child {
  padding-bottom: 0;
}

.side-posts a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.side-posts a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.side-posts time {
  font-size: 0.82rem;
  color: var(--muted);
}

.side-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
}

.side-link:hover {
  text-decoration: underline;
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.share-links a {
  display: inline-block;
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.share-links a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.side-card {
  padding: 20px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(320px 200px at 100% 0%, #72bdb055, transparent 60%),
    linear-gradient(135deg, #07594f, #0b3f39);
}

.side-card h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.side-card p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #c9ddd7;
}

/* a post's contents: in the sidebar on a wide screen, a <details> above the post otherwise */
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc > ol {
  border-left: 2px solid var(--border);
}

.toc a {
  display: block;
  margin-left: -2px;
  padding: 4px 0 4px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc ol ol a {
  padding-left: 28px;
  font-size: 0.87rem;
}

.toc a:hover {
  border-left-color: var(--brand);
  color: var(--brand);
}

.toc-details {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.toc-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  font-weight: 600;
}

.toc-details summary::-webkit-details-marker {
  display: none;
}

.toc-details summary::after {
  content: '+';
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--brand);
}

.toc-details[open] summary::after {
  content: '−';
}

.toc-details .toc {
  padding: 0 16px 14px;
}

/* a post */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding: 40px 0 72px;
}

.post-head h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.12;
  margin: 14px 0 16px;
}

.post-head .lead {
  margin: 0 0 20px;
}

.post-head .post-meta {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.post-cover {
  margin: 28px 0 0;
}

.post-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.prose--blog {
  max-width: 70ch;
  margin: 0;
  padding: 32px 0 8px;
  line-height: 1.7;
}

.prose--blog > :first-child {
  margin-top: 0;
}

.prose--blog h2,
.prose--blog h3,
.prose--blog h4 {
  scroll-margin-top: 92px;
}

.prose--blog h2 {
  font-size: 1.55rem;
  line-height: 1.25;
  margin: 2em 0 0.6em;
}

.prose--blog h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 1.7em 0 0.5em;
}

.prose--blog h4 {
  font-size: 1.04rem;
  margin: 1.5em 0 0.4em;
}

.prose--blog p {
  margin: 0 0 1.15em;
}

.prose--blog ul,
.prose--blog ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}

.prose--blog li {
  margin-bottom: 0.45em;
  padding-left: 0.2em;
}

.prose--blog li::marker {
  color: var(--brand);
}

.prose--blog ol > li::marker {
  font-weight: 600;
}

.prose--blog strong {
  font-weight: 650;
}

.prose--blog a {
  text-decoration-thickness: 1px;
}

.prose--blog a:hover {
  text-decoration-thickness: 2px;
}

.prose--blog hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.prose--blog img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.prose--blog blockquote {
  margin: 1.6em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: var(--brand-soft);
}

.prose--blog blockquote > :last-child {
  margin-bottom: 0;
}

.prose--blog code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
}

.prose--blog pre {
  margin: 1.4em 0;
  overflow-x: auto;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 0.9rem;
  line-height: 1.55;
}

.prose--blog pre code {
  padding: 0;
  background: none;
}

.table-scroll {
  margin: 1.6em 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.table-scroll:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.prose--blog table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  line-height: 1.5;
}

.prose--blog th,
.prose--blog td {
  min-width: 9rem;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.prose--blog th {
  background: var(--surface-2);
  font-weight: 650;
  vertical-align: bottom;
}

.prose--blog td {
  border-top: 1px solid var(--border);
}

.prose--blog tbody tr:nth-child(even) {
  background: var(--bg);
}

.post-foot {
  margin-top: 8px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.post-foot > p:last-child {
  margin: 32px 0 0;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 40px;
}

.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.post-nav a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.post-nav span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.post-nav__next {
  grid-column: 2;
  text-align: right;
}

.post-related h2 {
  font-size: 1.25rem;
  margin: 0 0 14px;
}

.post-related__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-related__list a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.post-related__list a:hover {
  border-color: var(--brand);
}

.post-related__list strong {
  line-height: 1.3;
}

.post-related__list a:hover strong {
  color: var(--brand);
}

.post-related__list span {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

.preview-note {
  margin: 0;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  background: #fff4d6;
  color: #5c4300;
}

@media (min-width: 1024px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 56px;
  }
  .blog-side {
    grid-template-columns: minmax(0, 1fr);
  }
  /* the list pages: the sidebar runs the column's length, its last boxes stay in view */
  .blog-layout > .blog-side {
    align-self: stretch;
  }
  .blog-side__sticky {
    position: sticky;
    top: 92px;
  }
  /* a post: the whole sidebar stays in view, scrolling on its own if it must */
  .post-side {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 116px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    /* room for focus outlines inside the scrolling box */
    margin: -4px;
    padding: 4px;
  }
  .post-layout {
    grid-template-columns: minmax(0, 70ch) 300px;
    justify-content: center;
    column-gap: clamp(48px, 6vw, 88px);
    row-gap: 0;
    padding-top: 48px;
  }
  .post-main {
    grid-column: 1;
    grid-row: 1;
  }
  .post-side {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .post-foot {
    grid-column: 1;
    grid-row: 2;
  }
  .toc-details {
    display: none;
  }
}

@media (max-width: 1023.98px) {
  .post-side .toc {
    display: none;
  }
}

@media (max-width: 820px) {
  .post-nav {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-nav__next {
    grid-column: 1;
  }
  .pager {
    grid-template-columns: 1fr 1fr;
  }
  .pager__at {
    display: none;
  }
  /* wider columns, shorter rows: the table scrolls sideways */
  .prose--blog th,
  .prose--blog td {
    min-width: 11rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-card,
  .post-feature {
    transition: none;
  }
}
