/* Tulvo MCP launch: site-wide announcement bar and the "What's new" card.
   Figma "Site/Announcement bar · Tulvo MCP" (1:741) and "Site/What's new card · Tulvo MCP" (1:768). */

/* Pulsing status dot, shared with the blog post */
.live-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
}

.live-dot::before,
.live-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--dot-color, #0588F0);
}

.live-dot::after {
  animation: live-dot-ring 1400ms ease-out infinite;
}

.live-dot-green { --dot-color: #16A34A; }

/* 1000 ms ring from 6 px to 14 px, then a 400 ms pause */
@keyframes live-dot-ring {
  0% { transform: scale(1); opacity: 0.5; }
  71% { transform: scale(2.33); opacity: 0; }
  100% { transform: scale(2.33); opacity: 0; }
}

/* ---------------------------------------------------------------- announcement bar */
.launch-banner {
  display: none;
  position: relative;
  min-height: 44px;
  background: #0A0A0A;
  color: #FFFFFF;
}

/* Shown before first paint by the inline script in <head>, so there is no layout shift */
.has-launch-banner .launch-banner { display: block; }

.launch-banner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 64px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.launch-banner-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 16px;
}

.launch-banner-short { display: none; }

.launch-banner-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.launch-banner-cta svg { width: 14px; height: 14px; }

.launch-banner-close {
  position: absolute;
  top: 50%;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  transform: translateY(-50%);
}

.launch-banner-close:hover { background: rgba(255, 255, 255, 0.1); }
.launch-banner-close svg { width: 16px; height: 16px; }

.launch-banner a:focus-visible,
.launch-banner button:focus-visible {
  outline: 2px solid #0588F0;
  outline-offset: -2px;
}

@media (max-width: 760px) {
  .launch-banner-link { flex-wrap: wrap; gap: 4px 8px; padding: 10px 44px 10px 12px; }
  .launch-banner-long { display: none; }
  .launch-banner-short { display: inline; white-space: nowrap; }
  .launch-banner-close { right: 2px; }
}

/* Smallest phones: the "New" pill shrinks to its green dot so the line still fits;
   the word stays in the accessible name. */
@media (max-width: 374px) {
  .launch-banner-link { gap: 4px 6px; }
  .launch-banner-pill { padding: 0; background: none; font-size: 0; gap: 0; }
}

/* ---------------------------------------------------------------- What's new card */
.whats-new {
  padding: 32px 40px;
  border-top: 0;
}

.whats-new-container {
  display: flex;
  justify-content: center;
  border: 0;
}

.whats-new-card {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1104px;
  padding: 24px;
  border-radius: 20px;
  background: #F6F6F7;
  color: #0A0A0A;
}

.whats-new-card:focus-visible {
  outline: 2px solid #0588F0;
  outline-offset: 2px;
}

.whats-new-media {
  position: relative;
  flex: none;
  width: 480px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #E5E5E5;
}

.whats-new-media img,
.whats-new-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.whats-new-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.whats-new-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.24px;
  color: #0573CC;
}

.whats-new-title {
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.75px;
  font-weight: 500;
}

.whats-new-desc {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.048px;
  color: #525252;
}

.whats-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: #0A0A0A;
  color: #FFFFFF;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.whats-new-card:hover .whats-new-btn { transform: translateY(-1px); }
.whats-new-btn svg { width: 16px; height: 16px; }

@media (max-width: 1024px) {
  .whats-new-media { width: 44%; }
}

@media (max-width: 760px) {
  .whats-new { padding: 24px; }

  .whats-new-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
  }

  .whats-new-media { width: 100%; border-radius: 12px; }
  .whats-new-title { font-size: 24px; line-height: 32px; letter-spacing: -0.36px; }
  .whats-new-desc { display: none; }
  .whats-new-btn { justify-content: center; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot::after { animation: none; }
  .whats-new-btn { transition: none; }
}

/* ---------------------------------------------------------------- /blog: every post as a What's new card */
.blog-list-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1104px;
  list-style: none;
}

.whats-new-media picture { display: contents; }

.whats-new-meta {
  font-size: 13px;
  line-height: 20px;
  color: #737373;
}

/* ---------------------------------------------------------------- home page: "From the blog" teaser above the newsletter */
/* Like the other home sections: vertical padding sits inside the bordered container so its side lines run full height */
.blog-teaser { padding-top: 0; padding-bottom: 0; }

.blog-teaser-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 96px 40px;
}

.blog-teaser-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }

.blog-teaser-head h2 {
  font-size: 44px;
  line-height: 52px;
  font-weight: 500;
  letter-spacing: -1.1px;
  color: #0A0A0A;
}

.blog-teaser-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #0573CC;
}

.blog-teaser-head a svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.blog-teaser-head a:hover svg { transform: translateX(2px); }

.blog-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
}

/* Fewer than three posts: let them share the row instead of leaving a gap */
.blog-teaser-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-teaser-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); max-width: 560px; }

.blog-teaser-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 12px 12px 20px;
  border: 1px solid #E5E5E5;
  border-radius: 20px;
  background: #FFFFFF;
  color: #0A0A0A;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-teaser-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(10, 10, 10, 0.08); }
.blog-teaser-card:focus-visible { outline: 2px solid #0588F0; outline-offset: 2px; }

.blog-teaser-cover {
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #F6F6F7;
  overflow: hidden;
}

.blog-teaser-cover picture { display: contents; }
.blog-teaser-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.blog-teaser-kicker,
.blog-teaser-card h3,
.blog-teaser-meta { padding: 0 8px; }

.blog-teaser-kicker {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.24px;
  text-transform: uppercase;
  color: #0573CC;
}

.blog-teaser-card h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: -0.3px;
  transition: color 0.2s ease;
}

.blog-teaser-card:hover h3 { color: #0573CC; }
.blog-teaser-meta { margin-top: auto; font-size: 13px; line-height: 20px; color: #737373; }

@media (max-width: 1024px) {
  .blog-teaser-grid,
  .blog-teaser-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .blog-teaser-container { padding: 64px 20px; }
  .blog-teaser-head h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.6px; }
  .blog-teaser-grid,
  .blog-teaser-grid[data-count="2"] { grid-template-columns: minmax(0, 1fr); }
  .blog-teaser-card h3 { font-size: 18px; line-height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-teaser-card,
  .blog-teaser-card h3,
  .blog-teaser-head a svg { transition: none; }
}
