.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand-img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  font-size: 15px;
  line-height: 1.05;
}

@media (max-width: 767px) {
  :root {
    --topbar-h: 72px;
  }

  .shell {
    width: min(var(--max), calc(100% - 28px));
  }

  .topbar {
    backdrop-filter: blur(14px);
  }

  .topbar-inner {
    padding: 10px 0;
    gap: 10px;
    align-items: center;
  }

  .topbar .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }

  .topbar .brand-text {
    font-size: 14px;
    letter-spacing: -0.03em;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
  }

  .topbar .topnav,
  .topbar .topbar-call {
    display: none;
  }

  .topbar .topbar-actions {
    margin-left: auto;
    gap: 8px;
  }

  .topbar .menu {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .topbar .topbar-book {
    display: inline-flex;
    min-height: 42px;
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
    border-radius: 999px;
  }

  .topbar .menu-panel {
    top: calc(100% + 8px);
    right: 0;
    width: min(100%, 360px);
    padding: 12px;
  }

  .topbar .menu-panel-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .topbar .menu-link {
    min-height: 48px;
    padding: 13px 14px;
    font-size: 14px;
  }

  .section {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-grid,
  .hero-grid2,
  .home-hero-grid,
  .seo-grid,
  .proof-grid,
  .cta-grid,
  .contact-grid,
  .test-grid,
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-ctas,
  .hero-actions,
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-ctas .btn,
  .hero-actions .btn,
  .cta-actions .btn,
  .modal-foot .btn,
  .modal-foot-alt .btn {
    width: 100%;
  }

  .hero-proof-bar,
  .topic-cluster-links {
    gap: 8px;
  }

  .hero-proof-pill,
  .topic-cluster-links a {
    width: 100%;
    justify-content: flex-start;
  }

  .topic-cluster {
    margin: 6px 0 10px;
  }

  .section-head {
    padding: 18px;
  }

  .card,
  .seo-card,
  .price.card,
  .tcard,
  .cta-card,
  .side-card {
    padding: 18px;
    border-radius: 20px;
  }

  .hero-visual-frame,
  .hero-home-visual,
  .hero-sell-card,
  .hero-browser,
  .hero-stage {
    border-radius: 22px;
  }

  .hero-title,
  h1 {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.02;
  }

  .section-head h2,
  h2 {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.08;
  }

  p,
  li {
    font-size: 15px;
  }

  .seo-card-media,
  .gallery-card figure {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
  }

  .seo-card-img,
  .case-study-media img,
  .gallery-card img,
  .hero-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 420px) {
  .brand-img {
    width: 34px;
    height: 34px;
  }

  .shell {
    width: calc(100% - 22px);
  }

  .topbar .brand-text {
    font-size: 13px;
  }

  .topbar .topbar-book {
    padding: 10px 12px;
    font-size: 12px;
  }
}


@media (max-width: 767px) {
  [data-seo-carousel] {
    touch-action: pan-y pinch-zoom;
    -webkit-tap-highlight-color: transparent;
  }

  .seo-card-media--carousel .seo-card-slides {
    aspect-ratio: 16 / 11;
  }

  .seo-card-media--carousel .seo-card-edge {
    width: 16%;
    max-width: 68px;
  }

  .seo-card-media--carousel .seo-card-pill-callout {
    max-width: min(68vw, 280px);
  }

  .seo-card-media--carousel .seo-card-img {
    background: #0f172a;
  }
}
